Skip to main content
Version: 1.15.0

Function: assertSiloRebalancer()

assertSiloRebalancer(operation: string, chain: EVMChain, poolAddress: string, remoteChainSelector: bigint, sender: string): Promise<void>

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

Pre-flights sender against a lane's getChainRebalancer(remoteChainSelector) for a per-lane liquidity write: the per-lane counterpart of assertPoolRebalancer.

Parameters​

ParameterTypeDescription
operationstringOperation name, for the error's operation field.
chainEVMChainChain to read from.
poolAddressstringv1.6.x SiloedLockReleaseTokenPool being written to.
remoteChainSelectorbigintThe siloed lane.
senderstringThe address the tx will be sent from; compared checksummed.

Returns​

Promise<void>

Remarks​

Run after assertSiloedChain, so the rebalancer read is the silo's own rather than the unsiloed one the pool falls back to. Neither the owner nor the unsiloed rebalancer may move a silo's liquidity; the pool reverts Unauthorized for both.

Throws​

CCTParamsInvalidError if sender is not the silo's rebalancer, or the silo has none