Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    DebtManager

    Manage coupon funding, principal deposits and debt redemption.

    Agreements, credentials & debtDebtManager.sol@hazbase/kit@0.9.0

    Role and use

    Manage tranches, payment schedules, claims and redemption states associated with BondToken issuance units.

    Integration considerationsTrack funding, beneficiary claims and receipts separately. These operations are distinct from bank transfers in fiat currency.

    Key SDK operations

    These operations are exposed by DebtManagerHelper 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 { DebtManagerHelper } from '@hazbase/kit';

    createTranche

    typescript
    async createTranche(a: CreateTrancheArgs): Promise<TransactionReceipt>

    payCoupon

    typescript
    async payCoupon(
        idx: BigNumberish,
        epoch: number,
        totalAmount: BigNumberish
      ): Promise<TransactionReceipt>

    claimCoupon

    typescript
    async claimCoupon(
        idx: BigNumberish,
        epoch: number
      ): Promise<TransactionReceipt>

    redeemAtMaturity

    typescript
    async redeemAtMaturity(
        idx: BigNumberish,
        amount: BigNumberish
      ): 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.

    debt-manager/contracts/DebtManager.sol

    Source revision: b53a5b5