MarketPosition
Defined in: protocol-lending-morpho-evm/src/market.ts:44
Properties
Section titled “Properties”borrowAssets
Section titled “borrowAssets”borrowAssets:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:49
Rounded up, as Morpho counts debt.
borrowShares
Section titled “borrowShares”borrowShares:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:47
collateral
Section titled “collateral”collateral:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:50
collateralValue
Section titled “collateralValue”collateralValue:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:52
Loan-token value of the collateral.
healthFactor
Section titled “healthFactor”healthFactor:
number
Defined in: protocol-lending-morpho-evm/src/market.ts:56
maxBorrow / borrowAssets; Infinity without debt. 1.0 = liquidatable.
liquidationPrice
Section titled “liquidationPrice”liquidationPrice:
bigint|null
Defined in: protocol-lending-morpho-evm/src/market.ts:60
Collateral price (loan per collateral, 1e36 scale) at which the position becomes liquidatable; null without debt.
ltv:
number
Defined in: protocol-lending-morpho-evm/src/market.ts:58
borrowAssets / collateralValue.
maxBorrow
Section titled “maxBorrow”maxBorrow:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:54
The most the position may owe at the current price.
supplyAssets
Section titled “supplyAssets”supplyAssets:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:46
supplyShares
Section titled “supplyShares”supplyShares:
bigint
Defined in: protocol-lending-morpho-evm/src/market.ts:45