Types
MarketOptions
options.poolDirectory
options.poolDirectory
Address of the deployed pool directory.
Type: string
options.poolLens
options.poolLens
Address of the deployed pool lens.
Type: string
Pool
pool.name
pool.name
Name of the pool.
Type: string
pool.creator
pool.creator
Address of the pool creator.
Type: string
pool.comptroller
pool.comptroller
The comptroller instance for the pool.
Type: Comptroller
pool.blockPosted
pool.blockPosted
The block count when the pool was created.
Type: BN
pool.timestampPosted
pool.timestampPosted
Timestamp when the block was created.
Type: BN
PoolAsset
asset.cToken
asset.cToken
CToken
instance for the asset.
Type: CToken
asset.underlyingToken
asset.underlyingToken
Underlying token address.
Type: string
asset.underlyingName
asset.underlyingName
Name of the underlying token.
Type: string
asset.underlyingSymbol
asset.underlyingSymbol
Symbol of the underlying token.
Type: string
asset.underlyingDecimals
asset.underlyingDecimals
The number of decimals in the underlying token.
Type: BN
asset.underlyingBalance
asset.underlyingBalance
Underlying token balance of the connected wallet.
Type: BN
asset.underlyingPrice
asset.underlyingPrice
Price of the underlying tokens.
Type: BN
asset.supplyRatePerBlock
asset.supplyRatePerBlock
Supply rate per block.
Type: BN
asset.borrowRatePerBlock
asset.borrowRatePerBlock
Borrow rate per block.
Type: BN
asset.totalSupply
asset.totalSupply
Total supply of the asset.
Type: BN
asset.totalBorrow
asset.totalBorrow
Total borrow amount of the asset.
Type: BN
asset.supplyBalance
asset.supplyBalance
Asset's supply balance of the connected wallet.
Type: BN
asset.borrowBalance
asset.borrowBalance
Asset's borrow balance of the connected wallet.
Type: BN
asset.liquidity
asset.liquidity
Total liquidity of the asset.
Type: BN
asset.membership
asset.membership
Type: boolean
asset.exchangeRate
asset.exchangeRate
Exchange rate for the asset.
Type: BN
asset.underlyingPrice
asset.underlyingPrice
Price of the underlying tokens.
Type: BN
asset.orcale
asset.orcale
Address of the price oracle used for the asset.
Type: string
asset.collateralFactor
asset.collateralFactor
Collateral Factor for the asset.
Type: BN
asset.reserveFactor
asset.reserveFactor
Reserve Factor for the asset.
Type: BN
asset.adminFee
asset.adminFee
Admin fee for the asset.
Type: BN
asset.fuseFee
asset.fuseFee
Fuse fee for the asset.
Type: BN
PoolUser
user.account
user.account
Address of the user.
Type: string
user.totalBorrow
user.totalBorrow
Total borrow balance of the user.
Type: BN
user.totalCollateral
user.totalCollateral
Total collateral of the user.
Type: BN
user.health
user.health
Type: BN
user.assets
user.assets
Assets borrowed or supplied by the user.
Type: PoolAsset[]
NonPayableTx
tx.nonce?
tx.nonce?
Nonce for the transaction.
Type: string | number | BN
tx.chainId?
tx.chainId?
Chain Id to use for the transaction.
Type: string | number BN
tx.from?
tx.from?
Address of the signer.
Type: string
tx.to?
tx.to?
The address to send the transaction to.
Type: string
tx.data?
tx.data?
Transaction data to send.
Type: string
tx.gas?
tx.gas?
Max gas fee to use.
Type: string | number | BN
tx.maxPriorityFeePerGas
tx.maxPriorityFeePerGas
Max priority fee per gas.
Type: string | number | BN
tx.maxFeePerGas
tx.maxFeePerGas
Max fee per gas.
Type: string | number | BN
gasPrice
gasPrice
Gas price.
Type: string | number | BN
Last updated