Users can earn rewards when they stake their vRAACToken.
The implementation is similar to synthetic staking rewards.
but the issue is that it does not factor _balances[account]
of the user when calculating user earned rewards as result users who does not stake their VeRaacToken
would earn more rewards than users who do.
You can see that user2
earned more reward than user1
even though user2
does not stake his token
Make the following changes and run npx hardhat test test/unit/core/governance/gauges/RAACGauge.test.js
users who have stake their tokens could lose on possible rewards
earned should factor users staked balance when setting users rewards
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.