Function: readTokenPoolAcceptsLiquidity()
readTokenPoolAcceptsLiquidity(
chain:EVMChain,poolAddress:string):Promise<boolean>
Defined in: cct/evm/token-pool/contracts.ts:703
Reads a v1.5.0 / v1.5.1 LockRelease pool's canAcceptLiquidity() in one eth_call.
Parameters
| Parameter | Type | Description |
|---|---|---|
chain | EVMChain | Chain to read from. |
poolAddress | string | LockRelease pool to read from; must be v1.5.0 or v1.5.1. |
Returns
Promise<boolean>
Whether the pool accepts liquidity deposits at all.
Remarks
Only declared at v1.5.0 and v1.5.1, where the constructor fixes i_acceptLiquidity
immutable: a pool deployed with it false rejects every deposit with LiquidityNotAccepted
for its whole lifetime, which is why that is worth one call to catch before signing. v1.6.x
pools have no flag and always accept, so callers must not reach here for it. Same shape as
readTokenPoolAllowlist's enabled.