Skip to main content
Version: 1.15.0

Class: GetRebalancer

Defined in: cct/evm/token-pool/operations/get-rebalancer.ts:35

Reads a LockRelease pool's rebalancer — informational, for audit and UX. The liquidity write ops gate on this same read themselves, so nothing needs to call this first.

Extends​

Constructors​

Constructor​

new GetRebalancer(): GetRebalancer

Returns​

GetRebalancer

Inherited from​

EVMQuery<GetRebalancerParams, GetRebalancerResult>.constructor

Properties​

name​

readonly name: "getRebalancer" = 'getRebalancer'

Defined in: cct/evm/token-pool/operations/get-rebalancer.ts:36

camelCase id; matches the token-manager facade method and error context.

Overrides​

EVMQuery.name

Methods​

prepare()​

protected prepare(params: GetRebalancerParams): GetRebalancerParams

Defined in: cct/evm/token-pool/operations/get-rebalancer.ts:42

Validates the pool address; nothing to convert for read.

Parameters​

ParameterType
paramsGetRebalancerParams

Returns​

GetRebalancerParams

Throws​

CCTParamsInvalidError if poolAddress is not a valid address

Overrides​

EVMQuery.prepare


query()​

query(chain: EVMChain, params: GetRebalancerParams): Promise<string>

Defined in: cct/query.ts:25

Run prepare and read; no wallet.

Parameters​

ParameterType
chainEVMChain
paramsGetRebalancerParams

Returns​

Promise<string>

Inherited from​

EVMQuery.query


read()​

protected read(chain: EVMChain, __namedParameters: GetRebalancerParams): Promise<string>

Defined in: cct/evm/token-pool/operations/get-rebalancer.ts:55

Resolves the pool's type/version before the read, so a pool without the getter reports which of the two reasons applies rather than a bare call failure.

Parameters​

ParameterType
chainEVMChain
__namedParametersGetRebalancerParams

Returns​

Promise<string>

Throws​

CCTContractTypeInvalidError if the pool is a BurnMint pool

Throws​

CCTOperationUnsupportedError on a v2.0.0 pool, which has no rebalancer: it escrows through an external ERC20LockBox, which authorizes its own callers

Throws​

CCTContractVersionUnsupportedError if the pool reports an unknown version

Overrides​

EVMQuery.read