Hunt prep
Before you test Boot Finance contest
What 20 disclosed reports say about Boot Finance contest: 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 | 9 | 0 | – | – | $0 |
| Access control lesson | 5 | 0 | – | – | $0 |
| Smart contracts lesson | 5 | 0 | – | – | $0 |
| DoS 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.
-
SwapUtils.sol Wrong implementation
The recommendation is to add a `Swap.targetPrice` field and modify the `_xp` function to compute the token precision multipliers dynamically using the target price and current time.
Disclosed
-
Swaps are not split when trade crosses target price
The swap function should be modified to split trades that cross the target price into two parts, using both amplifier values.
Disclosed
-
Claim airdrop repeatedly
The validate function should check that the user has not already been validated before proceeding.
Disclosed
-
Unable to claim vesting due to unbounded timelock loop
The fix should add a minimum vestment amount and restrict vesting so that only the beneficiary can vest for themselves.
Disclosed
-
addInvestor() Does Not Check Availability of investors_supply
The function should be fixed by adding a require statement to ensure the amount does not exceed the remaining supply and by tracking allocated amounts with SafeMath.
Disclosed
-
Unchecked transfers
Use the SafeERC20 library's safeTransfer and safeTransferFrom to check results and support non-standard tokens.
Disclosed
-
Investor can’t claim the last tokens (via claim() )
The require statement should be removed so the final claim can succeed.
Disclosed
-
LPToken.set_minter() doesn’t check that _minter doesn’t equal zero
The function should be fixed to check that _minter is not the zero address before setting it.
Disclosed
-
Overwrite benRevocable
Whitelist the calling of vest() or check if values for benRevocable are already set.
Disclosed
-
Get virtual price is not monotonically increasing
The precision multiplier should be immutable, or the getVirtualPrice function should be removed.
Disclosed
-
MainToken.set_mint_multisig() doesn’t check that _minting_multisig doesn’t equal zero
The function should be fixed to check that `_minting_multisig` is not the zero address before setting it.
Disclosed
-
NFT flashloans can bypass sale constraints
The report suggests possible mitigations such as locking the NFT for at least one block, taking a snapshot of balances, or checking that the caller is an EOA, but notes that each has drawbacks and no definitive fix is provided.
Disclosed
-
Can not update target price
The require statements should be modified to multiply by (MAX_RELATIVE_PRICE_CHANGE + WEI_UNIT) before dividing by WEI_UNIT, as suggested in the report.
Disclosed
-
Ideal balance is not calculated correctly when providing imbalanced liquidity
The code should be fixed by replacing self.balances with _xp(self, newBalances) in the fee calculation.
Disclosed
-
customPrecisionMultipliers would be rounded to zero and break the pool
The multipliers should be scaled by an extra 10^18 before division to avoid rounding to zero.
Disclosed