Skip to main content
Version: 1.15.0

Function: readTokenPoolChainRebalancer()

readTokenPoolChainRebalancer(chain: EVMChain, poolAddress: string, remoteChainSelector: bigint): Promise<string>

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

Reads a v1.6.x siloed pool's getChainRebalancer(remoteChainSelector) in one eth_call: the account provideSiloedLiquidity / withdrawSiloedLiquidity accept for that lane.

Parameters​

ParameterTypeDescription
chainEVMChainChain to read from.
poolAddressstringv1.6.x SiloedLockReleaseTokenPool to read.
remoteChainSelectorbigintLane to ask about.

Returns​

Promise<string>

The rebalancer, checksummed; the zero address when none is set, which means the lane accepts liquidity calls from nobody.

Remarks​

Same gating as readTokenPoolIsSiloed. On an unsiloed lane the pool answers with its unsiloed rebalancer (readTokenPoolRebalancer).