Safe CDP Farmer
You want to have CDP and farm benefits by borrowed money, but you have no time for 24/7 position controlling? We want to take a load off your mind and let you do it by automated product with 2 buttons: Farm and Withdraw.
Screenshots



Problem Statement
Because of liquidation risk, an investor should control his Collateralized Debt Position (CDP) on Aave every time, we want to take a load off his mind and make a protocol for automated position controlling on Aave based on Health Factor, and as a bonus: with farming on Curve pools at the same time.How it works?Deposit:Alisa goes to project siteShe connects her walletThen she pushes button Farm and chooses amount of money, for example 1 ETHETH goes to project smart contractProtocol adds it to the position on Aave and borrows USDT for 1 ETH (with controlling of Health Factor (HF))Then protocol sends USDT to project position on Curve pool.If HF goes down, protocol withdraws USDT from Curve and balances the position on AaveIf HF goes up, protocol borrows more USDT at Aave and ads it to the position on CurveWithdraw:Alisa wants to close her position in the projectShe pushes button Withdraw on project siteProtocol withdraws USDT from the pool on Curve, then repays the debt on Aave and sends Alice's 1 ETH + benefits from farming on Curve to her wallet
Solution
Because of liquidating risk, the user should control his Collateralized Debt Position (CDP) on Aave every time, we want to take a load off his mind and make an algorithm for automated controlling position on Aave with farming on Curve at the same time.Scheme:User deposits money at our contract.We open position on Aave.Then we put money at Curve.If the health factor goes down, our bot takes money from Curve and closes its position on Aave.If the health factor goes up, our bot borrows more money on Aave and puts it to Curve.Profit.
Hackathon
HackMoney 2021
2021
Contributors
- Timafon
12 contributions
- Frolenarzt
3 contributions