Links

Types

MarketOptions

options.poolDirectory

Address of the deployed pool directory.
Type: string

options.poolLens

Address of the deployed pool lens.
Type: string

Pool

pool.name

Name of the pool.
Type: string

pool.creator

Address of the pool creator.
Type: string

pool.comptroller

The comptroller instance for the pool.
Type: Comptroller

pool.blockPosted

The block count when the pool was created.
Type: BN

pool.timestampPosted

Timestamp when the block was created.
Type: BN

PoolAsset

asset.cToken

CToken instance for the asset.
Type: CToken

asset.underlyingToken

Underlying token address.
Type: string

asset.underlyingName

Name of the underlying token.
Type: string

asset.underlyingSymbol

Symbol of the underlying token.
Type: string

asset.underlyingDecimals

The number of decimals in the underlying token.
Type: BN

asset.underlyingBalance

Underlying token balance of the connected wallet.
Type: BN

asset.underlyingPrice

Price of the underlying tokens.
Type: BN

asset.supplyRatePerBlock

Supply rate per block.
Type: BN

asset.borrowRatePerBlock

Borrow rate per block.
Type: BN

asset.totalSupply

Total supply of the asset.
Type: BN

asset.totalBorrow

Total borrow amount of the asset.
Type: BN

asset.supplyBalance

Asset's supply balance of the connected wallet.
Type: BN

asset.borrowBalance

Asset's borrow balance of the connected wallet.
Type: BN

asset.liquidity

Total liquidity of the asset.
Type: BN

asset.membership

Type: boolean

asset.exchangeRate

Exchange rate for the asset.
Type: BN

asset.underlyingPrice

Price of the underlying tokens.
Type: BN

asset.orcale

Address of the price oracle used for the asset.
Type: string

asset.collateralFactor

Collateral Factor for the asset.
Type: BN

asset.reserveFactor

Reserve Factor for the asset.
Type: BN

asset.adminFee

Admin fee for the asset.
Type: BN

asset.fuseFee

Fuse fee for the asset.
Type: BN

PoolUser

user.account

Address of the user.
Type: string

user.totalBorrow

Total borrow balance of the user.
Type: BN

user.totalCollateral

Total collateral of the user.
Type: BN

user.health

Type: BN

user.assets

Assets borrowed or supplied by the user.
Type: PoolAsset[]

NonPayableTx

tx.nonce?

Nonce for the transaction.
Type: string | number | BN

tx.chainId?

Chain Id to use for the transaction.
Type: string | number BN

tx.from?

Address of the signer.
Type: string

tx.to?

The address to send the transaction to.
Type: string

tx.data?

Transaction data to send.
Type: string

tx.gas?

Max gas fee to use.
Type: string | number | BN

tx.maxPriorityFeePerGas

Max priority fee per gas.
Type: string | number | BN

tx.maxFeePerGas

Max fee per gas.
Type: string | number | BN

gasPrice

Gas price.
Type: string | number | BN