-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stargate Asset Plugin #863
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still have more to go through, but up-front: did you consider inheriting the plugin from AppreciatingFiatCollateral
? I think it would allow you to skip re-implementing tryPrice()
and refresh()
. I guess you know no revenue hiding is required, so this way is a gas-saver? Still, I think I'd make the other tradeoff. Maybe there's something I'm not considering though...interested if you had more thoughts.
Similarly, what about inheriting from RewardableERC4626Vault
for the wrapper? It might not be a good fit, but wanted to check.
contracts/plugins/assets/stargate/StargatePoolFiatCollateral.sol
Outdated
Show resolved
Hide resolved
@tbrent Yeah I did consider the |
+1 for using |
No description provided.