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
Currently, end-of-epoch uses params.EpochDays directly when allocating farming rewards. However, if params.EpochDays are changed by Parameter ChangeProposal in the middle of the epoch, the already started epoch will perform farming allocation based on the changed params.EpochDays. Therefore, even if Epoch Days is changed in the middle of the epoch, it is necessary to ensure that the changed Epoch Days can be used in the next epoch without affecting the farming reward allocation of the epoch.
Proposal
To this end, CurrentEpochDays(global state) need to be added to check the current Epoch Days, and the existing params.EpochDays is renamed and repurposed to params.NextEpochDays, so if CurrentEpochDays and params.NextEpochDays are different at the start of the new epoch, then update CurrentEpochDays to params.NextEpochDays
Tasks
Add CurrentEpochDays or EpochEra
Rename and fix logics for params.EpochDays to params.NextEpochDays
Update spec and description
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Problem Definition
Currently, end-of-epoch uses
params.EpochDays
directly when allocating farming rewards. However, ifparams.EpochDays
are changed by Parameter ChangeProposal in the middle of the epoch, the already started epoch will perform farming allocation based on the changedparams.EpochDays
. Therefore, even if Epoch Days is changed in the middle of the epoch, it is necessary to ensure that the changed Epoch Days can be used in the next epoch without affecting the farming reward allocation of the epoch.Proposal
To this end,
CurrentEpochDays
(global state) need to be added to check the current Epoch Days, and the existingparams.EpochDays
is renamed and repurposed toparams.NextEpochDays
, so ifCurrentEpochDays
andparams.NextEpochDays
are different at the start of the new epoch, then updateCurrentEpochDays
toparams.NextEpochDays
Tasks
CurrentEpochDays
orEpochEra
params.EpochDays
toparams.NextEpochDays
For Admin Use
The text was updated successfully, but these errors were encountered: