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
Claiming tokens fail because there is insufficient reserve and no tokens what so ever can be claimed causing the hatcher to fully LOST his original hatch contribution.
Description
Currently, there is no way for a hatcher to claim ALL of his tokens due to a bug in reserve pool business logic.
The reserve pool is minted at the end of hatching period as:
BUT
Each hatcher is assigned tokens based on full allocation (including the theta) as:
Claiming tokens fail because there is insufficient reserve and no tokens what so ever can be claimed causing the hatcher to fully LOST his original hatch contribution.
With the following contract ~state (for better problem visualization):
Steps to reproduce
I created the following test reproducing the problem: https://github.com/lightstreams-network/genesis-contracts/blob/master/test/06_insufficient_reserve.js
Proposed solution
Calculate the reserve in the following way:
The text was updated successfully, but these errors were encountered: