Class: EvmDefiProtocolPosition
moralis-monorepo / @moralisweb3/common-evm-utils / EvmDefiProtocolPosition
Class: EvmDefiProtocolPosition
@moralisweb3/common-evm-utils.EvmDefiProtocolPosition
Table of contents
Methods
Properties
Methods
create
▸ Static
create(input
): EvmDefiProtocolPosition
Parameters
Name | Type |
---|---|
input | EvmDefiProtocolPositionInput | EvmDefiProtocolPosition |
Returns
fromJSON
▸ Static
fromJSON(json
): EvmDefiProtocolPosition
Parameters
Name | Type |
---|---|
json | EvmDefiProtocolPositionJSON |
Returns
toJSON
▸ toJSON(): EvmDefiProtocolPositionJSON
Returns
Properties
address
• Optional
Readonly
address: EvmAddress
Description
The address of the position
balanceUsd
• Readonly
balanceUsd: number
Description
The balance in USD
label
• Readonly
label: string
Description
The label of the position
positionDetails
• Optional
Readonly
positionDetails: EvmDefiPositionDetails
Description
The details of the position
tokens
• Readonly
tokens: EvmDefiTokenBalance
[]
totalUnclaimedUsdValue
• Readonly
totalUnclaimedUsdValue: number
Description
The total unclaimed USD value of the position