Skip to main content

EvmSupplyContext

@liquidium/client


@liquidium/client / EvmSupplyContext

Interface: EvmSupplyContext

Defined in: packages/client/src/modules/lending/types.ts:339

ERC-20 supply planning data returned by lending.getEvmSupplyContext(...).

Properties

action

action: SupplyAction

Defined in: packages/client/src/modules/lending/types.ts:347

Deposit or repayment action for the inflow.


allowance

allowance: string

Defined in: packages/client/src/modules/lending/types.ts:363

Current allowance serialized in base units.


amount

amount: string

Defined in: packages/client/src/modules/lending/types.ts:353

Requested amount serialized in token base units.


approvalStrategy

approvalStrategy: EvmSupplyApprovalStrategy

Defined in: packages/client/src/modules/lending/types.ts:367

Approval sequence the caller should perform.


asset

asset: "USDC" | "USDT"

Defined in: packages/client/src/modules/lending/types.ts:349

Supported ETH stablecoin asset.


balance

balance: string

Defined in: packages/client/src/modules/lending/types.ts:361

Current token balance serialized in base units.


chain

chain: "ETH"

Defined in: packages/client/src/modules/lending/types.ts:351

ETH chain discriminator.


depositContractAddress

depositContractAddress: string

Defined in: packages/client/src/modules/lending/types.ts:359

Deposit helper contract address.


poolId

poolId: string

Defined in: packages/client/src/modules/lending/types.ts:343

Pool principal text receiving the inflow.


profileId

profileId: string

Defined in: packages/client/src/modules/lending/types.ts:341

Liquidium profile principal text.


requiresApproval

requiresApproval: boolean

Defined in: packages/client/src/modules/lending/types.ts:365

Whether an approval transaction is needed before deposit.


spenderAddress

spenderAddress: string

Defined in: packages/client/src/modules/lending/types.ts:357

Contract address that must be approved as spender.


tokenAddress

tokenAddress: string

Defined in: packages/client/src/modules/lending/types.ts:355

ERC-20 token contract address.


walletAddress

walletAddress: string

Defined in: packages/client/src/modules/lending/types.ts:345

Normalized EVM wallet address.