Skip to content

DepositAndApproveOptions

DepositAndApproveOptions = object

Defined in: packages/synapse-core/src/pay/payments.ts:25

optional address?: Address

Defined in: packages/synapse-core/src/pay/payments.ts:45

The address of the account to deposit from. If not provided, the client account address will be used.


amount: bigint

Defined in: packages/synapse-core/src/pay/payments.ts:29

The amount to deposit.


optional deadline?: bigint

Defined in: packages/synapse-core/src/pay/payments.ts:49

The deadline of the permit. If not provided, the deadline will be set to 1 hour from now.


optional lockupAllowance?: bigint

Defined in: packages/synapse-core/src/pay/payments.ts:57

The lockup allowance to approve. If not provided, the maxUint256 will be used.


optional maxLockupPeriod?: bigint

Defined in: packages/synapse-core/src/pay/payments.ts:62

The max lockup period to approve. If not provided, the chain’s getPriceList().lockups.defaultLockupPeriod will be used.


optional operator?: Address

Defined in: packages/synapse-core/src/pay/payments.ts:33

The address of the operator to approve.


optional rateAllowance?: bigint

Defined in: packages/synapse-core/src/pay/payments.ts:53

The rate allowance to approve. If not provided, the maxUint256 will be used.


optional spender?: Address

Defined in: packages/synapse-core/src/pay/payments.ts:41

The address of the spender to approve. If not provided, the payments contract address will be used.


optional token?: Address

Defined in: packages/synapse-core/src/pay/payments.ts:37

The address of the token to deposit. If not provided, the USDFC token address will be used.