Skip to content
docs

MarketPosition

Defined in: protocol-lending-morpho-evm/src/market.ts:44

borrowAssets: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:49

Rounded up, as Morpho counts debt.


borrowShares: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:47


collateral: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:50


collateralValue: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:52

Loan-token value of the collateral.


healthFactor: number

Defined in: protocol-lending-morpho-evm/src/market.ts:56

maxBorrow / borrowAssets; Infinity without debt. 1.0 = liquidatable.


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: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:54

The most the position may owe at the current price.


supplyAssets: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:46


supplyShares: bigint

Defined in: protocol-lending-morpho-evm/src/market.ts:45