Skip to content
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

Merged
merged 11 commits into from
Jul 18, 2023
Merged

Stargate Asset Plugin #863

merged 11 commits into from
Jul 18, 2023

Conversation

akshatmittal
Copy link
Member

No description provided.

Copy link
Collaborator

@tbrent tbrent left a 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.

@akshatmittal
Copy link
Member Author

@tbrent Yeah I did consider the AppreciatingFiatCollateral route, but didn't do it because it didn't require revenue hiding and I intended to keep as much of the original submitted plugin as I can.

@pmckelvy1
Copy link
Collaborator

+1 for using RewardableERC4626Vault or RewardableERC20Wrapper, it looks like one of those should work (probably 4626

@pmckelvy1 pmckelvy1 merged commit 05961a1 into 3.0.0 Jul 18, 2023
8 checks passed
@pmckelvy1 pmckelvy1 deleted the stargate-asset-plugin branch July 18, 2023 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants