SMART CONTRACTS
← Contract catalogSplitter
Route received funds to configured destinations.
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>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 patternSpecification 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.solSource revision: b53a5b5