Skip to main content
Version: 1.15.0

Function: readTokenPoolRebalancer()

readTokenPoolRebalancer(chain: EVMChain, poolAddress: string): Promise<string>

Defined in: cct/evm/token-pool/contracts.ts:634

Reads a LockRelease pool's rebalancer — the single account the pool accepts provideLiquidity / withdrawLiquidity from — in one eth_call.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
poolAddressstringLockRelease pool to read getRebalancer() from.

Returns​

Promise<string>

The current rebalancer, checksummed; the zero address when none is configured, which means the pool accepts liquidity calls from nobody.

Remarks​

No dispatch, but callers must resolve the pool first (assertLockReleasePool, plus a v2.0.0 check): getRebalancer() is declared identically at v1.5.0–v1.6.1 by both LockRelease types, and is absent from a BurnMint pool and from v2.0.0, so those cases should report the type or version rather than a bare call failure.