Hunt prep
Before you test Sublime contest
What 25 disclosed reports say about Sublime 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 | 15 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Interest accrued could be zero for small decimal tokens
The project should take caution when allowing an asset to be borrowed, or scale the principal amount to 1e18 precision.
Disclosed
-
Potentially depositing at unfavorable rate since anyone can deposit the entire lenderPool to a known strategy at a pre-fixed time
The start function was restricted to be callable only by the borrower, and checks for strategy susceptibility are being incorporated during onboarding.
Disclosed
-
Pool Credit Line May Not Able to Start When _borrowAsset is Non ERC20 Compliant Tokens
The fix is to use safeTransfer instead of transfer, which handles tokens that do not return a boolean.
Disclosed
-
PooledCreditLine : termination likely fails because _principleWithdrawable is treated as shares
The amount of shares to withdraw should simply be _sharesHeld, and the function should only be callable when the credit line is ACTIVE or EXPIRED.
Disclosed
-
LenderPool : Principal withdrawable is incorrectly calculated if start() is invoked with non-zero start fee
The initial total supply should be saved when the credit line is accepted and used in the calculation instead of the current total supply.
Disclosed
-
Unable To Call emergencyWithdraw ETH in NoYield Contract
The contract should handle the case where the asset is the zero address (representing ETH) by using a different withdrawal method for ETH.
Disclosed
-
CreditLine.liquidate doesn’t transfer borrowed ETH to a lender
The code should be modified to transfer the borrowed ETH amount to the lender before returning any excess to the liquidator.
Disclosed
-
Ether can be locked in the PoolFactory contract without a way to retrieve it
The contract should be fixed by adding a check that if msg.value is greater than 0, the _collateralToken address must be the zero address.
Disclosed
-
NoYield.sol Tokens with fee on transfer are not supported
The contract should compare the balance before and after the transfer to get the actual received amount.
Disclosed
-
Missing approve(0)
The fix is to call approve(_spender, 0) to set the allowance to zero immediately before each existing approve() call.
Disclosed
-
Wrong returns of SavingsAccountUtil.depositFromSavingsAccount() can cause fund loss
The function should return the result of the transfer call instead of `_amount`.
Disclosed
-
PriceOracle Does Not Filter Price Feed Outliers
The oracle should query both Chainlink and a Uniswap TWAP and reject prices that fall outside bounds between the two, or track historic values to catch sharp moves.
Disclosed
-
Wrong implementation of NoYield.sol#emergencyWithdraw()
The function should assign the token balance to received before calling safeTransfer.
Disclosed
-
In CreditLine#_borrowTokensToLiquidate , oracle is used wrong way
The oracle call should be made with the collateral asset first and the borrow asset second, which the project confirmed as the mitigation.
Disclosed
-
Anyone can liquidate credit line when autoLiquidation is false without supplying borrow tokens
Add a require statement in the liquidate function that enforces either autoLiquidation is true or the caller is the lender.
Disclosed