đź’¸ Rent2Repay
A plug‑and‑play add‑on that lets incoming rents wipe out RMM debts automatically.
🔍 Main Feature
Rent2Repay lets any wallet (the Repayer) funnel its stable‑coin rents (USDC / WXDAI / armmv3 tokens) straight into the RMM pool to amortise the debt of one or many Debt Addresses—while a permission‑less Runner (bot or human) triggers the transaction and earns a fee.
Result : borrowers sleep, rents pay, keepers earn, DAO collects.
👥 Roles

Note: Repayer could be the only one adress to Debt Adress
⚙️ System Architecture
Rent2RepayProxy (UUPS)
├─ Rent2RepayV1.sol <-- business logic
│ • setConfig()
│ • executeRent2Repay()
│ • admin setters (fees, slippage, pause)
└─ Storage slot <-- mappings, trackers
RMM_PoolProxy <-- unchanged fork of Aave v3
DAO_Treasury <-- receives its fee share
REG Token (optional) <-- discounts bot fee
Key design choices
Per‑wallet weekly cap → fine‑grained spending control.
Any‑keeper execution → fully decentralised, no cron DAO needed.
UUPS proxy → upgradable without migrating user data (future V2).
RBAC (GOVERNANCE ⬝ EMERGENCY ⬝ OPERATOR) for safe parameter updates.
đź§ How Rent2Repay Works
Workflow:

Video explanation
Repay for another wallet is allowed by the RMM: here tutorial
(Optional enhancements such as per‑wallet caps and execution‑count throttling are earmarked for v2.
For the contest build we keep it lean: the contract repays the first wallet up to its cap, then rolls any leftover budget to the next wallet in FIFO order. Upgradeability (UUPS proxy) lets us plug the full granular logic later without redeploying user data.)
🛠️ Tech Stack:
Smartcontracts: Solidity & test with gnosis fork
RMM interace should be updated - Javascript/HTML ? not available on github :/
To conclude
The contract securely siphons a user‑defined slice of rents, repays the borrower’s RMM debt, and diverts only a tiny fee to the runner and the DAO— a runner can never drain funds for any other purpose.
It upgrades the RMM user‑experience while opening a fresh revenue stream for the DAO, with future room to discount those fees based on REG holdings… but that chapter comes after the two‑month delivery window — to be continued...
If you have any question, don’t hesitate — we’re just a Gnosis block away.
❤️ Dev & deploy with love