liquidate function allows anyone to repay the debt of an unhealthy loan (below the liquidation threshold) in exchange for the borrower's collateral at a bonus/discount.DepositEvent, BorrowEvent, etc.), allowing off-chain services and UIs to easily track protocol activity in real-time.authority: The admin wallet that can change parameters.token_mint & token_vault: The SPL token being lent and the PDA vault that holds it.pyth_price_feed: The address of the Pyth oracle price feed for the token.total_deposits & total_borrows: Protocol-wide accounting.*_interest_rate: The APR for deposits and borrows.loan_to_value_ratio: The percentage of collateral value a user can borrow against (e.g., 70%).liquidation_threshold: The LTV percentage at which a loan is considered unhealthy and can be liquidated (e.g., 80%).liquidation_bonus: The percentage bonus given to liquidators.paused: The circuit breaker flag.owner: The user's public key.deposit_balance: The user's total collateral deposited.borrow_balance: The user's total outstanding debt.Posted Dec 22, 2025
Developed a decentralized lending protocol on Solana using Anchor framework.
0
0