6.1 Core Functions
All interactions happen on-chain via Soroban on Stellar’s Futurenet.
init_pool
init_pool
Role: Platform Initializes a new pool with parameters like interest model, accepted assets, collateral ratio, and risk settings.
deposit
deposit
Role: Lender Supplies liquidity to a pool. 80% goes to active pool, 20% to backstop.
borrow
borrow
Role: Borrower Requests a loan from the pool. Requires XLM collateral and unfrozen pool.
repay
repay
Role: Borrower Repays loan + interest. Unlocks collateral and updates TRBT score.
withdraw
withdraw
Role: Lender Withdraws available liquidity if pool has sufficient funds.
freeze_pool
freeze_pool
Role: Protocol Automatically triggered if risk levels (e.g., backstop ratio) fall below safe thresholds.
Last updated