Class: EvmDefiPositionDetails
moralis-monorepo / @moralisweb3/common-evm-utils / EvmDefiPositionDetails
Class: EvmDefiPositionDetails
@moralisweb3/common-evm-utils.EvmDefiPositionDetails
Table of contents
Methods
Properties
- apy
- assetStandard
- baseType
- currentPrice
- factory
- feeTier
- healthFactor
- isDebt
- isInRange
- isStableDebt
- isVariableDebt
- liquidity
- nftMetadata
- noPriceAvailable
- pair
- poolAddress
- positionKey
- priceLabel
- priceLower
- priceUpper
- rangeStart
- rangeTnd
- reserve0
- reserve1
- reserves
- shareOfPool
- shares
- sharesInStrategy
- strategyAddress
Methods
create
▸ Static create(input): EvmDefiPositionDetails
Parameters
| Name | Type |
|---|---|
input | EvmDefiPositionDetailsInput | EvmDefiPositionDetails |
Returns
fromJSON
▸ Static fromJSON(json): EvmDefiPositionDetails
Parameters
| Name | Type |
|---|---|
json | EvmDefiPositionDetailsJSON |
Returns
toJSON
▸ toJSON(): EvmDefiPositionDetailsJSON
Returns
Properties
apy
• Optional Readonly apy: number
Description
The annual percentage yield
assetStandard
• Optional Readonly assetStandard: string
Description
The standard of the asset
baseType
• Optional Readonly baseType: string
Description
The base type of the position
currentPrice
• Optional Readonly currentPrice: number
Description
The current price of the position
factory
• Optional Readonly factory: string
Description
The factory of the position
feeTier
• Optional Readonly feeTier: number
Description
The fee tier of the position
healthFactor
• Optional Readonly healthFactor: number
Description
The health factor of the position
isDebt
• Optional Readonly isDebt: boolean
Description
Whether the position is a debt
isInRange
• Optional Readonly isInRange: boolean
Description
Whether the position is in range
isStableDebt
• Optional Readonly isStableDebt: boolean
Description
Whether the position is a stable debt
isVariableDebt
• Optional Readonly isVariableDebt: boolean
Description
Whether the position is a variable debt
liquidity
• Optional Readonly liquidity: number
Description
The liquidity of the position
nftMetadata
• Optional Readonly nftMetadata: object
Description
Metadata of the NFT
noPriceAvailable
• Optional Readonly noPriceAvailable: boolean
Description
Whether the price is available
pair
• Optional Readonly pair: string
Description
The pair of the position
poolAddress
• Optional Readonly poolAddress: string
Description
The address of the pool
positionKey
• Optional Readonly positionKey: string
Description
The key of the position
priceLabel
• Optional Readonly priceLabel: string
Description
The price label
priceLower
• Optional Readonly priceLower: number
Description
The lower price of the range
priceUpper
• Optional Readonly priceUpper: number
Description
The upper price of the range
rangeStart
• Optional Readonly rangeStart: number
Description
The start of the range
rangeTnd
• Optional Readonly rangeTnd: number
Description
The range trend of the position
reserve0
• Optional Readonly reserve0: string
Description
The first reserve of the position
reserve1
• Optional Readonly reserve1: string
Description
The second reserve of the position
reserves
• Optional Readonly reserves: string[]
Description
The reserves of the position
shareOfPool
• Optional Readonly shareOfPool: number
Description
The share of the pool
shares
• Optional Readonly shares: string
Description
The shares of the position
sharesInStrategy
• Optional Readonly sharesInStrategy: string
Description
The shares in the strategy
strategyAddress
• Optional Readonly strategyAddress: string
Description
The address of the strategy