nftstaking
nftstaking copied to clipboard
Cannot Unstake when ERC20 Token exceeds Max Supply
The situation: someone staking and the erc20 token reaches it max supply then they cannot unstake. Any solution?
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; }