Functions
addCollateral
- addCollateral(amount: string, vault?: string | IVault): Promise<void>
Parameters
amount: string
Optional vault: string | IVault
Returns Promise<void>
addLiquidity
Parameters
amount: string
matchingVault: undefined | IVault = undefined
Returns Promise<void>
borrow
- borrow(amount?: string, collateralAmount?: string, vault?: string | IVault, getValuesFromNetwork?: boolean): Promise<void>
Parameters
Optional amount: string
Optional collateralAmount: string
Optional vault: string | IVault
getValuesFromNetwork: boolean = true
Returns Promise<void>
closeLend
- closeLend(amount: string, series: ISeries): Promise<void>
Parameters
Returns Promise<void>
lend
- lend(amount: string, series: ISeries): Promise<void>
Parameters
Returns Promise<void>
removeCollateral
- removeCollateral(amount: string, vault: IVault, unwrapOnRemove?: boolean): Promise<void>
Parameters
amount: string
unwrapOnRemove: boolean = true
Returns Promise<void>
removeLiquidity
- removeLiquidity(amount: string, series: ISeries, matchingVault: undefined | IVault, tradeFyToken?: boolean): Promise<void>
Parameters
amount: string
matchingVault: undefined | IVault
tradeFyToken: boolean = true
Returns Promise<void>
repayDebt
- repayDebt(amount: undefined | string, vault: IVault, reclaimCollateral?: boolean): Promise<void>
Parameters
amount: undefined | string
reclaimCollateral: boolean = true
Returns Promise<void>
rollDebt
Parameters
Returns Promise<void>
rollLend
- rollLend(amount: undefined | string, fromSeries: ISeries, toSeries: ISeries): Promise<void>
Parameters
amount: undefined | string
Returns Promise<void>
REPAY FN