Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    ReservePool

    Track funds allocated to liquidity and compensation.

    Markets & fund routingReservePool.sol@hazbase/kit@0.9.0

    Role and use

    Allocate funds by purpose and connect them to buyback or compensation operations.

    Integration considerationsConfigure bucket balances, permissions and buyback intervals. Payments depend on available funds and operating rules.

    Key SDK operations

    These operations are exposed by ReservePoolHelper in @hazbase/kit@0.9.0. The signatures below are type definitions; see the SDK reference for parameter structures and the complete interface.

    typescript
    import { ReservePoolHelper } from '@hazbase/kit';

    fundLiquidity

    typescript
    async fundLiquidity(
        token : Address,
        amount: bigint,
      ): Promise<TransactionReceipt>

    fundCompensation

    typescript
    async fundCompensation(
        token : Address,
        amount: bigint,
      ): Promise<TransactionReceipt>

    triggerBuyBack

    typescript
    async triggerBuyBack(
        tokenIn     : Address,
        amountIn    : bigint,
        minAmountOut: bigint,
        path        : readonly Address[],
      ): Promise<bigint>

    payCompensation

    typescript
    async payCompensation(
        token : Address,
        to    : Address,
        amount: bigint,
      ): Promise<TransactionReceipt>
    View parameters, return types and all methods

    Related contracts

    Put it into practice

    Debt & asset finance

    See the data model, processing sequence and SDK code for an application-level implementation.

    Read the implementation pattern

    Specification and source

    The Solidity source is pinned to the revision below. Match it with the SDK version and your network’s implementation address and ABI.

    reserve-pool/contracts/ReservePool.sol

    Source revision: b53a5b5