nftstaking icon indicating copy to clipboard operation
nftstaking copied to clipboard

Cannot Unstake when ERC20 Token exceeds Max Supply

Open fawzydede opened this issue 3 years ago • 1 comments

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

fawzydede avatar May 30 '22 09:05 fawzydede

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; }

Solonnikov avatar Nov 23 '22 10:11 Solonnikov