Solana/Anchor lending protocol with:
- deposits and withdrawals (
USDC,SOL,LOAFCAT); - collateral lock/unlock and borrowing/repayment flow;
- liquidation and health checks;
- staking module for
LOAFCATrewards; - governance module (proposals and voting);
- admin controls for emergency mode, APY updates, and fee withdrawals.
programs/loafbank_lending- main on-chain Rust program.tests- TypeScript integration checks and safety assertions.scripts- deployment/migration helper scripts.docs- protocol and implementation documentation.
- Program entrypoint surface is limited to active instructions in
programs/loafbank_lending/src/lib.rs. - Critical disabled admin entrypoints were removed from the public instruction surface.
- Emergency admin authorization path uses
Unauthorizederror code. - Integration checks for these hardening rules are in
tests/audit-hardening.integration.ts.
cargo check -q
cargo test -q
npm test
anchor buildanchor build is required to regenerate the IDL before external audit or deployment.
53ipEAGTwFqznutD4MKmwhkszMZK6nFBSoTQeXw2iuJz(configured inAnchor.toml)