Closed RideSolo closed 4 years ago
⚡️ A tip worth 500.00000 aDAI (500.0 USD @ $1.0/aDAI) has been granted to @ridesolo for this issue from @vrortvedt. ⚡️
Nice work @ridesolo! Your tip has automatically been deposited in the ETH address we have on file.
rDAI Challenge
Problem
Obviously the problem when implementing Aave allocation strategy is that RToken only handle lending protocol with minted token value that increses against their underlying token, in the oposite of Aave tokens that is equal to the underlying token.
Description
Basically each new deposit of DAI to Aave through rDAI is a new stake that get a dynamic share from the total previous deposits, the share will represents the minted cToken value. Another important condition is that a deposit that occure at an instant T should not affect the earnings generated for the previous deposits meaning that the implemented computation formula has to be linear.
Defining the problem is simple but the implementetion is more complicated, but I have been working on a optimized Dynamic Staking Algorithm for some time now and it happens to be the perfect solution for this challenge and probably the only solution, Also please refer to the description of the DSA algorithm for more details to understand the logic implemented in the allocation strategy contract.
Requirements:
All the described requirement listed on the hackathon challenge has been fulfilled:
Did it help ?
If it helped please consider taking a look at this grant https://gitcoin.co/grants/470/staking-library and share the idea, I think that it can help a lot of projects overcome complicated staking algorithms.
Contact