Hunt prep
Before you test MagicSea - the native DEX on the IotaEVM
What 16 disclosed reports say about MagicSea - the native DEX on the IotaEVM: 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 | 10 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 3 | 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.
-
Funds unutilized for rewards may get stranded in BribeRewarder
The protocol team fixed this issue by adding a recovery method, as indicated by the linked PR.
Disclosed
-
Voting does not take into account end of staking lock period
The protocol team fixed this issue in a pull request.
Disclosed
-
Rewards might get stuck when approved actor renews a position
The protocol team fixed this issue by changing `_lockPosition` to send rewards to the position owner instead of `msg.sender`.
Disclosed
-
Attacker can block all votes to a specific pool by triggering an overflow error
The protocol team fixed this issue in the following PRs/commits.
Disclosed
-
Adding genuine BribeRewarder contract instances to a pool in order to incentivize users can be DOSed
The protocol team fixed this issue by implementing a whitelist for pool owners or verified reward distributors.
Disclosed
-
Lack of support for fee on transfer, rebasing and tokens with balance modifications outside of transfers
The recommendation is to implement a measure like the `_transferSupportingFeeOnTransfer` function to correctly handle these transfers, and a sweep function for positive rebases and airdrops.
Disclosed
-
Voters will lose all bribe rewards forever if they do not claim their rewards after the last bribing period
The claim function should limit the end period to the BribeRewarder's last voting period.
Disclosed
-
`MlumStaking::addToPosition` should assing the amount multiplier based on the new lock duration instead of initial lock duration
The addToPosition function should assign the new multiplier based on the new lock duration instead of the initial lock duration.
Disclosed
-
Non-functional vote() if there is one bribe rewarder for this pool
The owner check should be removed from deposit() and kept only in claim().
Disclosed
-
Inconsistent check in `harvestPositionsTo()` function
The check should be changed from `&&` to `||` so that either the token owner or the destination address can call the function, and this was fixed in a later pull request.
Disclosed
-
Wrong call order for `setTopPoolIdsWithWeights`, resulting in wrong distribution of rewards
The correct call order should be to call updateAll for all pools (old and new) before calling setTopPoolIdsWithWeights, or have setTopPoolIdsWithWeights itself call updateAll for all pools.
Disclosed
-
Attacker can manipulate the `lockDuration` of other users positions
The check should compare the actual owner of the tokenId with the caller, and the protocol team fixed this issue in a pull request.
Disclosed