When adding new token pool for staking in MasterChef contract
function add(address _token, uint _allocationPoints, uint16 _depositFee, uint _startBlock)
All other, already added, pools should be updated but currently they are not.
Instead, only totalPoints is updated. Therefore, old and not updated pools will lose itβs share during the next update.
Therefore, user rewards are not computed correctly (will be always smaller).
Scenario:
Manual review
Update all existing pools before adding new pool. Use the massUdpate() function which is already present β¦ but unused.
The text was updated successfully, but these errors were encountered:
All reactions