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

Add stargate strategy #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

moogito
Copy link

@moogito moogito commented Jul 26, 2022

Add stargate strategy

@@ -0,0 +1,10 @@
pragma solidity 0.5.16;

interface ICurvePoolV2 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contracts/base/interface/curve/ICurvePoolV2.sol

Copy link
Contributor

@CryptJS13 CryptJS13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment on the getRewardPoolValues function. The rest looks good good. Thanks!

return getUint256(_STARGATE_REWARD_PID_SLOT);
}

function getRewardPoolValues() public returns (uint256[] memory values) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the use of this function?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this function is to get current pending STG amounts from the pool, it's mostly unused, just to see how much we can harvest, it can be view function I guess.
Do you wanna keep it or remove it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be removed. We won't use it. We estimate profit of doHardWork by simulating the doHardWork transaction.

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.

3 participants