Hunt prep
Before you test Sentiment V2
What 26 disclosed reports say about Sentiment V2: 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 | 16 | 0 | – | – | $0 |
| Smart contracts lesson | 3 | 0 | – | – | $0 |
| DoS 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.
-
rounding error due to internal accounting and can steal some portion of the first depositors funds
The protocol team fixed this issue in a pull request.
Disclosed
-
Setting `minDebt` and `minBorrow` to low values can cause protocol to accrue bad debt
The minDebt and minBorrow values should not be decreased below a certain threshold.
Disclosed
-
Super pool uses `ERC20.approve` instead of safe approvals, causing it to always revert on some ERC20s
The protocol team fixed this issue by using safeApprove instead of approve in SuperPoolFactory::deploySuperPool and SuperPool::reallocate.
Disclosed
-
Liquidators may repay a position's debt to pools that are within their risk tolerance, breaking the concept of isolated risk in base pools
The protocol team fixed this issue in a pull request.
Disclosed
-
Protocol's interestFees + Interest in a pool can be lost because of precision loss when using low-decimal assets like USDT/USDC
The core cause is that the RateModels when accounting for low-decimal assets, for short-periods of time they return low values which leads to 0 interestFee. A possible solution to fix that would be to scale up the totalBorrowAssets and totalDepositAssets to always have 18 decimals, no matter the…
Disclosed
-
LTV of 98% would be extremely dangerous
The maximum LTV should be lowered to a safer value.
Disclosed
-
Attacker Can Manipulate Interest Distribution by Exploiting Asset Transfers and Fee Accrual Mechanism
Limit Dead Address Shares during interest calculation.
Disclosed
-
Under certain circumstances bad debt will cause first depositor to lose funds
The protocol team fixed this issue by not allowing pools to reach 100% utilisation.
Disclosed
-
Lack of slippage protection during withdrawal in SuperPool and Pool contracts
The contracts should be fixed by adding a minimum amount out parameter for redeem and a maximum shares in parameter for withdraw to provide slippage protection.
Disclosed
-
Griefer can DOS the `SuperPool` creation and make it very expensive for other users
The protocol team fixed this issue in the following PRs/commits: https://github.com/sentimentxyz/protocol-v2/pull/333
Disclosed
-
User's can seize more assets during liquidation by using type(uint).max
The protocol team fixed this issue in a pull request.
Disclosed
-
The `SuperPool` vault is not strictly ERC4626 compliant as it should be
The protocol team fixed this issue in a pull request.
Disclosed
-
`ChainlinkOracle` doesn't validate for minAnswer/maxAnswer
The report recommends activating a breaker when the price is outside the oracle's min/max range to reduce further losses; the protocol acknowledged the issue.
Disclosed
-
Liquidation fee is incorrectly calculated, leading to unprofitable liquidations
The fee should be calculated on the liquidator's profit (reward minus cost) rather than on the entire collateral amount.
Disclosed
-
User's can create non-liquidateable positions by leveraging `rebalanceBadDebt` to decrease share price
The protocol team fixed this issue in a pull request.
Disclosed