Skip to main content

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

NameType
inputEvmDefiProtocolPositionInput | EvmDefiProtocolPosition

Returns

EvmDefiProtocolPosition


fromJSON

Static fromJSON(json): EvmDefiProtocolPosition

Parameters

NameType
jsonEvmDefiProtocolPositionJSON

Returns

EvmDefiProtocolPosition


toJSON

toJSON(): EvmDefiProtocolPositionJSON

Returns

EvmDefiProtocolPositionJSON

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