Closed prateek105 closed 1 year ago
rewardsClaimed
updateRewardsClaimed
NO_OF_POOLS
@dmitriia Added gas improvements as per your comment here https://github.com/ajna-finance/contracts/pull/929. I have not updated the comments for consistency in the rest of the code.
Looks ok
Description of change
High level
Contracts
rewardsClaimed
andupdateRewardsClaimed
were stored per epoch https://github.com/ajna-finance/contracts/blob/develop/src/RewardsManager.sol#L71. Since we can have multiple pools so rewardsClaimed should be stored per pool per epoch rather than only per epoch.rewardsClaimed
andupdateRewardsClaimed
per pool per epoch.Invariants
NO_OF_POOLS
env var for position and rewards manager