You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug Description:
This is a race condition type of problem where the user is able to claim their stacked MIA/NYC/CityCoins before Friedger's FAST Pool pays out the treasury stacking rewards. Because the user claim's their CityCoins before the calculation is done, their stacked CC is set to 0, so the resulting Stacking rewards is then calculated as 0.
Steps to reproduce the behavior:
Stack your CC.
When the last cycle is completed, claim your CC before the FAST Pool pays out the stacking rewards.
Checking your rewards for this last cycle will show 0.
Expected behavior:
The user is unable to claim their CC until the FAST Pool pays out the stacking rewards.
Device:
Windows 11, Brave Browser
Possible solutions:
Set an arbitrary minimum limit where the user is unable to claim for X amount of blocks after the cycle ends. Maybe something like 200 blocks; if a user checks their rewards on minecitycoins.com, it will show the CC to reclaim, but the button should be greyed out and say something along the lines of, "Please wait to claim until Stacks block XXXXXX."
Similar to the above, but instead of the minimum limit being arbitrary like 200 blocks, we read the FAST Pool TxID data and get the Anchor Block the Tx was confirmed in. The greyed out button should also show something like, "Please wait to claim until Stacks block XXXXXX." But instead of XXXXXX being the CycleEndBlock + 200 Stacks blocks, it would be the CycleEndBlock + FastPoolConfirmedAnchorBlock.
The text was updated successfully, but these errors were encountered:
Or change the calculation to use a snapsot of the user's stacked CC from a block during the last cycle they stacked for, not the block until the FAST Pool payout.
Bug Description:
This is a race condition type of problem where the user is able to claim their stacked MIA/NYC/CityCoins before Friedger's FAST Pool pays out the treasury stacking rewards. Because the user claim's their CityCoins before the calculation is done, their stacked CC is set to 0, so the resulting Stacking rewards is then calculated as 0.
Steps to reproduce the behavior:
Expected behavior:
The user is unable to claim their CC until the FAST Pool pays out the stacking rewards.
Device:
Windows 11, Brave Browser
Possible solutions:
The text was updated successfully, but these errors were encountered: