solidity-challenge icon indicating copy to clipboard operation
solidity-challenge copied to clipboard

Proposed solution to the challenge

Open jeissoni opened this issue 4 years ago • 1 comments

I share a possible solution to the proposed challenge.

Use hardhat and etherjs for this solution. I would appreciate any feedback.

jeissoni avatar Jan 14 '22 15:01 jeissoni

You're not considering the time when the users deposited, so with this solution a user could wait for the total rewards to be significant, deposit double the total deposits and withdraw to get almost all the reward :fearful:

jdnichollsc avatar Dec 18 '22 16:12 jdnichollsc