In the Stacking
contract we are using 3 differnt mappings to store supplyIndex
, balances
and claimable
rewards. These all 3 mappings connected with user
address. We can convert all these 3 mappings to single mapping using struct like this;
https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Staking.sol#L19-L24
Just need to update places like this;
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.