yAAVE
Allow Aave users to delegate borrowing power to the yearn platform
Problem Statement
The project uses AAVE's credit delegation to deposit into a yearn vault. Steps of the test:Alice approves delegation to Router with 1 ethBob approves delegation with all his reservesRouter’s Gov adds Alice and Bob as delegatorsRouter can calculate its eth borrowing power, (50% of the total borrowing power)Gov invests 2 eth through the Router into the vault using ZapStethThe test travels one week into the futureThe test forces a harvest in the vaultRouter withdraws from the vault using ZapStethThe test asserts that the Router made a profit after paying out the debtGov is allow to transfer the profit out
Solution
This project AAVE's credit delegation.A router smart contract is approved by two users through the credit delegation API and the smart contract through gov calls, invest money into a yearn vault.Code is done in solidity and the whole project is built with brownie.Test are done in python and they run on mainnet-fork.
Hackathon
MarketMake
2024
Contributors
- Macarse
4 contributions