Scaffold-ETH-DeFi-Challenges icon indicating copy to clipboard operation
Scaffold-ETH-DeFi-Challenges copied to clipboard

FrontEnd - Figure out Mainnet Persistent Fork as a Testnet for DeFi Challenges

Open steve0xp opened this issue 1 year ago • 5 comments

After some discussion, @solidoracle and I think we need to have a mainnet persistent fork as a testnet so students can use a UI and their contracts to simulate actual DeFi interactions.

ex.) challenge-1-simple-yearn-strategy's main lesson is to teach students how to implement a basic yearn strategy on yearn v2 vaults where DAI is lent out using Compound protocol. A testnet that is a fork of mainnet and persistent would allow a user to actually see yield accumulate from this lending strategy after so many blocks. The frontend UI idea we have is to simply showcase:

  • The vault and its total assets, APY for the last X period (if time), function calls for deposit and withdraw
  • The strategy and its total assets, APY for the last X period (if time), external function calls that are deemed relevant

TODO

  • [ ] Discuss w/ Austin and others about possible service providers that we can use for this
  • [ ] Implement into challenge-1 branch
  • [ ] Consider implementing into main branch

steve0xp avatar Mar 31 '23 15:03 steve0xp

More Possible TODOs:

  • [ ] Have a front end that recognizes the vaults involved with the respective yearn strategy
    • This could be specific to this yearn strategy tutorial, but in the future it would be cool to have it generic so people could create their own strategies and showcase different vaults and strategies at play.
    • Something like this but simpler - just the DAI vault and deposit, withdraw, and event emissions showing new values that indicate APY or something for the depositor.
    • This could be done in conjunction with ApeWorX since vaults are in vyper for Yearn. ApeWorX makes great tutorials so this could be a cool collaboration point.
  • [ ] Set up front end so it shows event emits and other pertinent info for the strategy and vault involved with this tutorial

steve0xp avatar Apr 03 '23 15:04 steve0xp

@steve0xp Am looking into the frontend

Ifechukwudaniel avatar Oct 16 '23 23:10 Ifechukwudaniel

@steve0xp what if we use Tenderly Forks

Ifechukwudaniel avatar Oct 16 '23 23:10 Ifechukwudaniel

@steve0xp Am looking into the frontend

Thanks for looking into this! @solidoracle also was looking into this iirc. Did either of you make some progress that you can update us on?

steve0xp avatar Oct 19 '23 12:10 steve0xp

@steve0xp what if we use Tenderly Forks

Hmm. We were actually in the midst of talking with Tenderly to do that. We just let things kind of pause for the Summer due to other priorities. Thanks for reminding me. That is the backend though, so we still need front end deployment work.

steve0xp avatar Oct 19 '23 12:10 steve0xp