We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
consider these call series, when earnings_per_share is zero and total_staked all zero:
1, deposit 100 unitOfToken; 2, make_proft with 100 unitOfProfit;
now, earnings_per_share should be 1;
3, deposit 1 unitOfToken more, total_staked be 101; 4, claim: payout will be 101 unitOfProfit?
related code:
yvault/contracts/yfiipool1/yvault.sol
Line 399 in 2fe2d5b
The text was updated successfully, but these errors were encountered:
global_[0].earnings_per_share.mul(amount).sub(1).div(magnitude).add(1)
after the explain of the team, I noticed this line.
the entrie logic is correct.
issue closed.
Sorry, something went wrong.
No branches or pull requests
consider these call series, when earnings_per_share is zero and total_staked all zero:
1, deposit 100 unitOfToken;
2, make_proft with 100 unitOfProfit;
now, earnings_per_share should be 1;
3, deposit 1 unitOfToken more, total_staked be 101;
4, claim: payout will be 101 unitOfProfit?
related code:
yvault/contracts/yfiipool1/yvault.sol
Line 399 in 2fe2d5b
The text was updated successfully, but these errors were encountered: