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
EVMQuery<GetRebalancerParams,GetRebalancerResult>
Constructors
Constructor
new GetRebalancer():
GetRebalancer
Returns
GetRebalancer
Inherited from
EVMQuery<GetRebalancerParams, GetRebalancerResult>.constructor
Properties
name
readonlyname:"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()
protectedprepare(params:GetRebalancerParams):GetRebalancerParams
Defined in: cct/evm/token-pool/operations/get-rebalancer.ts:42
Validates the pool address; nothing to convert for read.
Parameters
| Parameter | Type |
|---|---|
params | GetRebalancerParams |
Returns
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
| Parameter | Type |
|---|---|
chain | EVMChain |
params | GetRebalancerParams |
Returns
Promise<string>
Inherited from
EVMQuery.query
read()
protectedread(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
| Parameter | Type |
|---|---|
chain | EVMChain |
__namedParameters | GetRebalancerParams |
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