ICCIPTokenPoolConfig
Title: ICCIPTokenPoolConfig
The interface of the policy that owns the local Chainlink CCIP token pool of OHM and exposes a typed, role-separated subset of the pool owner's authority.
The policy is bound to one pool for its lifetime. Its functions form four groups: admin functions that change root authority and pool infrastructure; route functions that change the supported chains, remote pools and allowlist, callable by the config operator or the admin; the rate limit function, additionally callable by the bridge rate limiter role; and containment functions, callable by the emergency, admin, bridge admin or bridge rate limiter role, that only reduce capacity and remain callable while the policy is disabled. Every other state-changing function requires the policy to be enabled.
The config operator is the delegated operator of IConfigOperator, which the
implementing contract exposes as a separate interface next to this one:
configOperator returns it, or the zero address when none is set, and
setConfigOperator replaces it immediately or revokes it with the zero address; the
setter is intended to be callable only by the admin role while the policy is enabled.
It is the config timelock: a non-zero candidate must advertise
ICCIPTokenPoolConfigTimelock through ERC-165 and report this policy as its config,
checked after the unchanged rule below. A caller holding this interface casts to
IConfigOperator for those two functions, as it does to IEnabler for the lifecycle.
The address setters and setRemoteToken reject the value they already hold, so a
call that lands always changes state: setRouter, setRebalancer,
setRateLimitAdmin and setRemoteToken with CCIPTokenPoolConfig_AddressUnchanged,
setConfigOperator with ConfigOperator_Unchanged of IConfigOperator. Where the
zero address is a meaningful value, it is subject to the same rule: revoking an
authority that is already unset reverts. The unchanged check follows the lifecycle
and role checks; its position among the other checks of a candidate is stated on
each setter: setRateLimitAdmin and setConfigOperator run it first, the candidate
check of the config operator after it, setRebalancer requires a liquidity
container pool before it, setRouter rejects the zero address before it and probes
the candidate after it, and setRemoteToken requires the route to exist and the
candidate to be non-empty and 32 bytes long before it and reads the rate limiters of
the route after it. Tooling that phrases a step as "set or validate" reads the live
value and skips the call when it already matches.
Amounts, capacities and rates are expressed in the smallest unit of the pool token. Remote token and remote pool addresses are exactly 32 bytes: the ABI encoding of an EVM address, or the raw account address of an SVM chain, the only length that the CCIP ramps accept on every generation in service. The implementing contract checks the length only; the shape of an EVM value is validated by the tooling that builds the call. Every operation on the pool is emitted by this contract in addition to the events that the pool emits itself.
Functions
pool
Returns the token pool owned by this policy.
function pool() external view returns (address pool_);
Returns
| Name | Type | Description |
|---|---|---|
| pool_ | address | The pool address. |
isLiquidityContainer
Returns whether the pool advertises the liquidity container interface, which
enables setRebalancer and transferLiquidity.
function isLiquidityContainer() external view returns (bool isContainer);
Returns
| Name | Type | Description |
|---|---|---|
| isContainer | bool | True if the pool is a liquidity container. |