UNPKG

olympus-protocol-connector

Version:

Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript

18 lines (17 loc) 792 B
import { Service } from '../../../Service'; import BigNumber from 'bignumber.js'; import { Tx } from '../../../interfaces/Tx'; import { IManagedDerivative } from '../../../interfaces/IManagedDerivative'; export declare class ManagedDerivativeService extends Service implements IManagedDerivative { private feeService; private derivative; private constructor(); static create(productAddress: string): Promise<ManagedDerivativeService>; close(): Promise<Tx>; withdrawFee(amountEth: number, gasPrice: number): Promise<Tx | null>; calculateWithdrawFeeGas(amountEth: number): Promise<BigNumber>; getManagementFee(): Promise<BigNumber>; getETHBalance(): Promise<BigNumber>; getAccumulatedFee(): Promise<BigNumber>; sellAllTokens(): Promise<Tx | null>; }