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

Cannot Unstake when ERC20 Token exceeds Max Supply #9

Open
fawzydede opened this issue May 30, 2022 · 1 comment
Open

Cannot Unstake when ERC20 Token exceeds Max Supply #9

fawzydede opened this issue May 30, 2022 · 1 comment

Comments

@fawzydede
Copy link

The situation: someone staking and the erc20 token reaches it max supply then they cannot unstake. Any solution?

@Solonnikov
Copy link

Can we cut claim amount in this case and give user possibility to claim remaining tokens ?

// Cut earned amount if user has exceeded ERC20 token maxium supply while staking
if ((MAXSUP + amount) > MAXIMUMSUPPLY) {
amount = MAXIMUMSUPPLY - MAXSUP;
}

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

2 participants