Skip to main content
Version: 1.15.0

Type Alias: ProvideLiquidityParams

ProvideLiquidityParams = { amount: bigint; poolAddress: string; sender?: string; }

Defined in: cct/evm/token-pool/operations/provide-liquidity.ts:39

Parameters for ProvideLiquidity.

Properties​

amount​

amount: bigint

Defined in: cct/evm/token-pool/operations/provide-liquidity.ts:44

Amount of the pool's token to deposit (uint256), in the token's smallest unit.


poolAddress​

poolAddress: string

Defined in: cct/evm/token-pool/operations/provide-liquidity.ts:42

LockRelease pool to deposit into. Must be non-zero — it is the tx to, and a call to 0x0 hits no code, so it would mine as a successful no-op.


sender?​

optional sender?: string

Defined in: cct/evm/token-pool/operations/provide-liquidity.ts:52

The pool's rebalancer. Sets tx.from for offline / multisig signing, and when supplied is checked against the pool's on-chain getRebalancer() before any calldata is built. Optional for ProvideLiquidity.generate (an offline builder may not yet know the signer); ProvideLiquidity.execute defaults it to the signing wallet, so the check always runs on a broadcast tx.