Type Alias: SwapAction

@torque-labs/torque-utilsDocs


@torque-labs/torque-utils / SwapAction

Type Alias: SwapAction

type SwapAction: {
  inAmount: null | number;
  inToken: null | string;
  outAmount: null | number;
  outToken: null | string;
  usdcValue: null | number;
};

Swap action type

Type declaration

NameTypeDescription

inAmount?

null | number

The amount of tokens to swap from

inToken?

null | string

The token to swap from

outAmount?

null | number

The amount of tokens to swap to

outToken?

null | string

The token to swap to

usdcValue?

null | number

The USDC value TODO: USDC Value for which token?

Defined in

types/eventConfig/requirements.ts:77

Last updated