Skip to content
    hazBasehazBaseDocs
    SMART CONTRACTS
    Contract catalog

    Splitter

    Route received funds to configured destinations.

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

    Role and use

    Split fees or receipts between operators, reserves and other configured recipients.

    Integration considerationsDefine recipients, proportions, assets and ReservePool connections. Individual coupon claims are handled by DebtManager.

    Key SDK operations

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

    setRoutes

    typescript
    async setRoutes(routes: readonly Route[]): Promise<TransactionReceipt>

    getRoutes

    typescript
    async getRoutes(): Promise<Route[]>

    routeERC20

    typescript
    async routeERC20(token: string, amount: bigint): Promise<TransactionReceipt>

    routeNative

    typescript
    async routeNative(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.

    splitter/contracts/Splitter.sol

    Source revision: b53a5b5