Smart Contracts
Last updated
Last updated
The Lending Pool Management smart contract is responsible for:
Loan Origination: Handles loan requests, matches borrowers with lenders, and initiates loan disbursement.
Interest Calculation: Implements the dynamic interest rate model based on pool utilization and risk factors.
Repayment Processing: Manages loan repayments and distributes interest to lenders.
Default Handling: Triggers liquidation processes when loans default.
The Master Pool Management smart contract oversees:
Liquidity Aggregation: Collects funds from liquidity providers into a single pool.
Fund Allocation: Distributes funds to various Lending Pools based on demand and risk parameters.
Yield Distribution: Calculates and distributes yields to liquidity providers.
Rebalancing: Periodically rebalances funds across Lending Pools for optimal utilization.
The Collateral Escrow smart contract manages:
Collateral Locking: Secures tokenized RWAs when a loan is originated.
Collateral Release: Releases collateral upon full loan repayment.
Liquidation Support: Facilitates the liquidation process when loans default.
Collateral Valuation: Interfaces with oracles to maintain up-to-date collateral valuations.