yieldprotocol/mentorship2022#9
Refactor the Fractional Wrapper from assignment #4 into a Proportional Ownership Flash Loan Server. It should conform to specifications ERC3156 and ERC4626.
-
Refactor the Fractional Wrapper into an ERC3156 Flash Loan Server.
-
Underlying: token available for flash lending.
-
flashFee
= 0.1% -
When users deposit underlying, the amount of wrapper tokens they receive is proportional to the ratio of their underlying deposit to the total underlying supply in the pool.
wrapperMinted / wrapperSupply == underlyingDeposited / underlyingInWrapper
-
Refactor to the ERC4626 specification so that it can be automatically integrated to yield aggregators such as Yearn V3.
constructor()
deposit()
withdraw()
https://eips.ethereum.org/EIPS/eip-3156 https://eips.ethereum.org/EIPS/eip-4626