You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to <action/task>: Mint Pies with yield bearing tokens in them directly from ETH in a single transaction
so that <outcome/goal/benefit>: Can enjoy my Pie without having to source the underlying assets myself
Type
Enhancement
Maintenance
Refactor
Description
The current recipe only supports buying assets from Uniswap and Balancer. Interest bearing tokens are listed on those protocols but they will cost more compared to just buying the underlying and wrapping it.
Solution
When buying one of the underlying of the pie the recipe needs to execute the following logic when swapping WETH to a Token
Check if token is lending token in Aave or Compound
If not swap regularly
If it is calculate the amount of underlying needed to buy to mint the a/cToken and buy it and wrap it
Additionally there need to be setters to map lending tokens to their underlying and protocol.
Definition of Done
New recipe is able to mint a/cTokens without any changes compared to the current interface.
User Story
Type
Description
The current recipe only supports buying assets from Uniswap and Balancer. Interest bearing tokens are listed on those protocols but they will cost more compared to just buying the underlying and wrapping it.
Solution
When buying one of the underlying of the pie the recipe needs to execute the following logic when swapping WETH to a Token
Additionally there need to be setters to map lending tokens to their underlying and protocol.
Definition of Done
New recipe is able to mint a/cTokens without any changes compared to the current interface.
Minting pies and calcToPie() work as expected.
New recipe should inherit from:
https://github.com/pie-dao/pie-oven/blob/recipe/contracts/recipes/recipes/UniswapV2BalRecipe.sol
The text was updated successfully, but these errors were encountered: