Hunt prep
Before you test Yeti Finance contest
What 11 disclosed reports say about Yeti 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 | 6 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Should check return data from Chainlink aggregators
The contract should be fixed by adding checks on the return data, such as ensuring the price is positive, the answered round is not older than the round ID, and the timestamp is not zero.
Disclosed
-
Reentrancy in contracts/BorrowerOperations.sol
Add a re-entrancy guard such as OpenZeppelin's ReentrancyGuard to the affected functions.
Disclosed
-
Cannot use most piecewise linear functions with current implementation
The issue was resolved by adding negative possibility, as confirmed by the team.
Disclosed
-
Fee not decayed if past decayTime
The code was fixed by changing the condition to check if decay is less than decayTime and setting fee to zero otherwise.
Disclosed
-
Wrong lastBuyBackPrice
The code should verify that the first and last tokens in the path are YETI and YUSD, and use the first and last amounts from the swap return.
Disclosed
-
Unwhitelisted token can cause disaster
The contract should check that the collateral to be transferred is whitelisted before proceeding.
Disclosed
-
Out of gas.
The array's length should be checked, likely by imposing a maximum limit on the number of collateral tokens.
Disclosed
-
Collateral parameters can be overwritten
The check should be fixed so that it correctly rejects duplicates even when the collateral is the first element, for example by requiring that the index is zero and the first element is not the same collateral.
Disclosed
-
Wrong comment in getFee
The issue was fixed by updating the code to match the comment's intended behaviour.
Disclosed
-
Yeti token rebase checks the additional token amount incorrectly
The fix should use the adjusted balance (total balance minus effectiveYetiTokenBalance) as the cap for additionalYetiTokenBalance, and the team has already implemented a similar change.
Disclosed
-
receiveCollateral() can be called by anyone
The function was fixed by adding a check that only the ActivePool contract can call it.
Disclosed