A wrong event value is emited for first depositor of stakingPool::deposit, it emits a greater value than the actual shares minted for first staking user
This is because the event emited doesnt account for the substracted shares deducted for the zero account.
StakingPool::deposit receives amount to mint for user
And if amount is positive it will call StakingRewardsPool::_mint
At [1] it will get how many shares to mint using getSharesByStake and
At [2] it will mint shares to recipient calling StakingRewardsPool::_mintShares, however, for the first recipient, DEAD_SHARES amount will be substracted for amount param and assigned to zero address
Finally StakingRewardsPool::_mint will emit the event:
But the DEAD_SHARES is not substrated for amount argument
So a wrong event is emited for first depositor
Integrity loss, for integrator listening to emited events, external explorer UIs
Manual Review
Substract DEAD_SHARES for amount argument for emited event for first staker
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.