RWA-Odyssée
Self-Repaying RWA Credit Line
Videos
Description
Self-Repaying RWA Credit Line
A DeFi protocol enabling fully automated, self-repaying loans backed by yield-bearing Real World Assets (RWAs).
🎯 The Problem
Traditional DeFi lending requires constant manual management—monitoring positions, managing debt ratios, and risking liquidation. This creates high friction for mainstream adoption.
💡 Our Solution
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
⚙️ Key Features
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)
🛠️ Tech Stack
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
🔗 Deployed Contracts (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
Progress During Hackathon
Progress During Hackathon Phase 1: Architecture & Smart Contracts Designed the self-repaying vault architecture Implemented AutoRepaymentVaultManager.sol with deposit, borrow, and auto-repayment logic Created mock yield-bearing tokens (MockMETH, MockFBTC) and stablecoin (MockUSDC) Built SimplePriceOracle.sol for asset pricing Deployed all contracts to Mantle Sepolia testnet Phase 2: Keeper Bot Development Built gas-optimized keeper bot with two-phase scanning Part 1: Cheap filters (yield threshold, time interval) — no oracle calls Part 2: Price validation only for eligible vaults Integrated Redis for state persistence Implemented Express API for monitoring Phase 3: UI + Frontend Development Built responsive Next.js 16 frontend with React 19 Integrated wagmi + viem for Web3 connectivity Created Create Vault flow (deposit + borrow in one transaction) Built Dashboard with real-time vault health, debt tracking, and activity logs Implemented Analytics page with protocol-wide statistics Phase 4 : Polish & Testing Added premium UI animations (Framer Motion, GSAP) End-to-end testing on Mantle Sepolia Verified contract deployment and keeper automation Final UI polish and responsive design fixes Deliverables Completed: ✅ Smart contracts deployed on Mantle Sepolia ✅ Functional keeper bot with auto-repayment ✅ Full-featured frontend (Create Vault, Dashboard, Analytics) ✅ Live demo on testnet (mETH and fBTC + StableCoins)
Tech Stack
Fundraising Status
None