Self-Repaying RWA Credit Line
A DeFi protocol enabling fully automated, self-repaying loans backed by yield-bearing Real World Assets (RWAs).
Traditional DeFi lending requires constant manual management—monitoring positions, managing debt ratios, and risking liquidation. This creates high friction for mainstream adoption.
Deposit yield-generating collateral (mETH, fBTC), borrow stablecoins (USDC), and watch your loan automatically pay itself off. Zero manual intervention required.
How it works:
One Transaction — Deposit collateral + borrow in a single action
Yield Accrues — Your collateral generates yield passively
Auto-Repayment — Keeper bot harvests yield and pays down your debt (80% to debt, 20% protocol fee)
Loan Cleared — Withdraw collateral once debt reaches zero
Gas-Optimized Keeper Bot — Two-phase scanning minimizes oracle calls
Chainlink Price Feeds — Production-grade asset pricing
One-Click UX — Deposit + borrow in a single transaction
Transparent Yield Distribution — 80/20 split (user/protocol)
Frontend: Next.js 16, React 19, TypeScript, TailwindCSS, wagmi, viem
Smart Contracts: Solidity, Hardhat, OpenZeppelin, Hardhat Ignition
Keeper Bot: Node.js, Ethers.js, Express, Redis
Blockchain: Mantle Sepolia
export const CONTRACTS = {
VAULT_MANAGER: "0xd964f2d9057997c3261af1046c486e7Eb278cB9F" as const,
ORACLE: "0x77057304c6b2B1331E83E0D8Be18961f01eedfc4" as const,
METH: "0x514F4AF14a671beD0E4378b1CF62Bb28788617Fb" as const,
FBTC: "0xf257ec0A9A87597433bee54E802C1b309a432A17" as const,
USDC: "0x9525b1083914d898468232198f53858957BD3511" as const,
} as const;
LINK : Odyssée | Self-Repaying Loans on Mantle Network
Github: https://github.com/Vishesh-Dwivedi-Git/Self-Repaying-RWA-CreditLine