Hunt prep
Before you test Abracadabra Mimswap
What 20 disclosed reports say about Abracadabra Mimswap: 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 | 11 | 0 | – | – | $0 |
| Smart contracts lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Race condition 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.
-
User can grief bootstrap process by sending the cap amount of unlocked tokens to it.
The cap should be checked against the locked token amount instead of the total token amount.
Disclosed
-
LockingMultiRewards contract on Blast does not configure gas yield nor token yield mode.
The gas yield mode should be configured in the constructor and an admin function should be exposed to collect the yields, with Blast points also considered.
Disclosed
-
Staking contract is not able to support native USDB/WETH
The team says it was fixed by adding the ability to set native rebasing tokens to a claimable mode and claim the yield to the staking contract.
Disclosed
-
Less base tokens are transferred when selling quote tokens due to the precision loss that occurred in _GeneralIntegrate()
The numerical integral should be rewritten to multiply before dividing so the precision loss is avoided; the report notes the team acknowledged the issue.
Disclosed
-
Adjusting ” I ” will create a sandwich opportunity because of price changes
The issue was fixed by using a protocol-owned pool where trading can be disabled, parameters changed, and the pool checked before re-enabling trading.
Disclosed
-
Factory::create() is vulnerable to reorg attacks
The issue was fixed by including the creator address (msg.sender) in the salt.
Disclosed
-
Permanent loss of yield for stakers in reward pools due to precision loss.
The reward rate should be stored scaled by 1e18 to reduce precision loss by that magnitude.
Disclosed
-
MagicLpAggregator always returns lower than correct answer, leading to arbitrage loss
The value should be calculated by multiplying each underlying token's real oracle price by its own reserve amount, and the project could offer separate lower-bound and upper-bound oracles so a lending protocol can use the lower bound for collateral.
Disclosed
-
A user’s tokens could be locked for an extended duration beyond their intention and without their control
The fix should add a `latestUnlockTime` deadline parameter to the locking functions, as recommended.
Disclosed
-
Oracle price can be manipulated
The oracle should be fixed by adding a sanity check that compares the pool-derived price with a Chainlink price feed and reverts if the difference is too large.
Disclosed
-
Tokens yeild can not be set to claimable.
The issue was fixed by using the correct function signature in the interface and mock contract.
Disclosed
-
MagicLpAggregator doesn’t consider the dcimal of MagicLP
The total supply should be scaled to 18 decimals before being used as the denominator in the price calculation.
Disclosed
-
Anyone making use of the MagicLP’s TWAP to determine token prices will be exploitable.
The TWAP update should be called before reserves are updated; the protocol ultimately removed the TWAP functionality.
Disclosed
-
Missing Return Statement in _getReserves Function in MagicLpAggregator Contract
The function should be updated to return the fetched reserves, and the text states it was fixed in main during the audit.
Disclosed
-
MagicLpAggregator can be incompatible with potential integrators due to incorrect latestRoundData function
The latestRoundData function should return the roundId, startedAt, updatedAt, and answeredInRound values from the baseOracle or quoteOracle that was used.
Disclosed