PoolLens
The sdk instance used by the lens.
The raw web3 contract instance for the lens.
Contract address of the lens.
Type:
string
Parameters:
Parameters:
Returns:
Promise<{
comptrollerAdmin: string,
comptrollerAdminHasRights: boolean,
comptrollerFuseAdminHasRights: boolean,
outliners: CTokenOwnership[]
}>
Parameters:
Returns:
Promise<{
totalSupply: BN,
totalBorrow: BN
underlyingTokens: string[],
underlyingSymbols:: string[]
}>
Parameters:
account: string
- The user address to get the summary of.
Returns:
Promise<{
supplyBalance: BN,
borrowBalance: BN
}>
Parameters:
account: string
- Account address to filter the pools info by.
Returns:
Promise<{
indexes: BN[],
pools:
Pool
[],
totalSupply: BN[],
totalBorrow: BN[],
underlyingTokens: string[][],
underlyingSymbols: string[][],
errored: boolean[]
}>
Parameters:
supplier: string
- - Supplier address to filter the pools info by.
Parameters:
supplier: string
- - Supplier address to filter the pools info by.
Returns:
Promise<{
indexes: BN[],
pools:
Pool
[],
totalSupply: BN[],
totalBorrow: BN[],
underlyingTokens: string[][],
underlyingSymbols: string[][],
errored: boolean[]
}>
Parameters:
maxHealth: number | string | BN
-
Returns:
Promise<{
comptrollers: string[],
users:
PoolUser
[][],
closeFactors: BN[],
liquidationIncentives: BN[],
errored: boolean[]
}>
Parameters:
Returns:
Promise<{
indexes: BN[],
pools:
Pool
[],
totalSupply: BN[],
totalBorrow: BN[],
underlyingTokens: string[][],
underlyingSymbols: string[][],
errored: boolean[]
}>
Parameters:
account: string
- - Account address to get the summary of.
Returns:
Promise<{
supplyBalance: BN,
borrowBalance: BN
}>
Parameters:
acount: string
- Account address to filter the pools info by.
Parameters:
accout: string
- - Account address to filter the pools info by.
Returns:
Promise<{
indexes: BN[],
pools:
Pool
[],
totalSupply: BN[],
totalBorrow: BN[],
underlyingTokens: string[][],
underlyingSymbols: string[][],
errored: boolean[]
}>
The sdk instance used by the lens.
Type:
MarketSDK
The raw web3 contract instance for the lens.
Contract address of the lens.
Type:
string
Parameters:
Parameters:
Returns:
Promise<{
comptrollerAdmin: string,
comptrollerAdminHasRights: boolean,
comptrollerFuseAdminHasRights: boolean,
outliners: CTokenOwnership[]
}>
Parameters:
Returns:
Promise<{
totalSupply: BN,
totalBorrow: BN,
underlyingTokens: string[],
underlyingSymbols: string[]
}>
Parameters:
indexes: (number | string | BN)[]
-
Returns:
Promise<{
indexes: BN[],
pools:
Pool
[],
totalSupply: BN[],
totalBorrow: BN[],
underlyingTokens: string[][],
underlyingSymbols: string[][],
errored: boolean[]
}>
Parameters:
Returns:
Promise<{
indexes: BN[],
pools:
Pool
[],
totalSupply: BN[],
totalBorrow: BN[],
underlyingTokens: string[][],
underlyingSymbols: string[][],
errored: boolean[]
}>
Parameters:
account: string
- Account address to filter the pools info by.
Last modified 1yr ago