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

Claim and earningInfo() not working properly #7

Open
tirobs000 opened this issue Apr 28, 2022 · 2 comments
Open

Claim and earningInfo() not working properly #7

tirobs000 opened this issue Apr 28, 2022 · 2 comments

Comments

@tirobs000
Copy link

Hello
NFTs rewards isn't working properly, when you stake id 4 and 5, and ID 4 have let's say 10 tokens of rewards, but ID 5 have 1 token and you claim 4 and 5 rewards, it only sends to you 1 token instead of 11 and then both go to 0 to start counting again. The same happens with earningInfo function, in this case it will only show 1 token of reward calling ["4","5"].

@hcaihao
Copy link

hcaihao commented May 15, 2022

yes, i come accross this issue too.

@thekesslereffect
Copy link

Line 103 and 130 should be earned += rewardmath / 100;

I was having the same issue. Havent actually checked to make sure, but checking the code it looks like you need to accumulate the earnings otherwise earning will just be the last token id. So it needs to be earning += instead of just earning =

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

No branches or pull requests

3 participants