Hunt prep
Before you test Merit Circle
What 8 disclosed reports say about Merit Circle: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 6 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
First user can inflate `pointsPerShare` and cause `_correctPoints()` to revert due to overflow
The project added a minimum mint amount for the first minter and sent a portion of initial shares to governance as a permanent reserve, and also recommended using a smaller POINTS_MULTIPLIER.
Disclosed
-
Expired locks should not continue to earn rewards at the original high multiplier rate
The project agreed to implement a kick function that allows anyone to burn the extra shares of expired locks, resetting their reward rate.
Disclosed
-
Unit isn't recalculated on curve modification with setCurvePoint
The unit variable should be recalculated whenever setCurvePoint changes the curve length, as was done in the linked pull request.
Disclosed
-
Extend lock period should never result in a decrease of overall rewards (`total length of locked period * shares`)
The project team decided to revert if extendLock would result in a burn of tokens, as implemented in a pull request.
Disclosed
-
Front run `distributeRewards()` can steal the newly added rewards
The project should use a rewardRate-based gradual release model, similar to Synthetix's StakingRewards, and the team raised the minimum lock duration from 10 minutes to 1 day.
Disclosed
-
`escrowedReward` will be frozen in the contract if `escrowPool == address(0)` but `escrowPortion > 0`
The claim function should only deduct an escrowed amount when both the escrow portion is non-zero and the escrow pool address is non-zero; the project opened a pull request to address this.
Disclosed
-
Curve points should be guaranteed to be monotonic increasing
The recommendation is to add an internal function that validates the curve points are monotonically increasing and call it in setCurve(), setCurvePoint(), and __TimeLockPool_init().
Disclosed