UNPKG

@widolabs/collateral-swap-sdk

Version:

TypeScript SDK for interacting with the Wido protocol to allow collateral swaps on Compound Comet.

14 lines (13 loc) 556 B
import { BigNumber } from 'ethers'; import { Provider } from '@ethersproject/providers'; import { LoanProviderBase } from './loanProvider'; export declare class LoanProviders { private readonly providers; constructor(chainId: number, asset: string, amount: BigNumber, rpcProvider: Provider); /** * Search all potential providers to return the best one * Can return undefined in the case where no provider can be used for this asset/token */ getBest(): Promise<LoanProviderBase | undefined>; private firstValidProvider; }