Hunt prep
Before you test Zivoe
What 22 disclosed reports say about Zivoe: 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 | 17 | 0 | – | – | $0 |
| DoS lesson | 3 | 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.
-
cannot forward extra rewards from both OCY_Convex to OCT_YDL
The issue was fixed by using the real token address for token transfer.
Disclosed
-
ZivoeYDL::distributeYield() will revert if protocolRecipients recipients length is smaller than residualRecipients
The incorrect event emission was fixed to use _residual[i] instead of _protocol[i].
Disclosed
-
````depositReward()```` with zero amount to get reward tokens stuck in ````ZivoeRewards```` contracts
The precision of rewardRate should be increased by a factor of 1e18 to reduce rounding errors.
Disclosed
-
`ZivoeTranches#rewardZVEJuniorDeposit` function miscalculates the reward when the ratio traverses lower/upper bound
The functions should be modified to calculate the reward by dividing into two portions when the ratio traverses the lower or upper bound, similar to the case of Example 2.
Disclosed
-
EMA Data Point From Unlock Is Discarded
The distributionCounter should be set to 1 initially so that the first call to MATH.ema uses N=2, incorporating the initial data point; the protocol team fixed this issue.
Disclosed
-
Time calculation issues with exponential decay
Add a guarded function that resets lastDistribution before a distribution starts, callable only by the authorised address.
Disclosed
-
OCL_ZVE.sol::forwardYield relies on manipulable Uniswap V2 pool reserves leading to theft of funds
The protocol should revert during a call to forwardYield if amount <= basis.
Disclosed
-
ZivoeYDL::distributeYield yield distribution is flash-loan manipulatable
The recommendation is to use a minimal time locking for stZVE so that staking and unstaking cannot occur in one block, or to use past total supply (from one block ago) to claim rewards.
Disclosed
-
OCC_Modular::applyCombine will round APR down
The code should be fixed to avoid rounding down, for example by rounding up or requiring exact division.
Disclosed
-
When APR late rate is lower than APR, an OCC locker bullet loan borrower can pay way less interests by calling the loan
The protocol should prohibit bullet loan borrowers from calling `callLoan` when the loan is late and still has more than one interval remaining.
Disclosed
-
Forwarding yield in `OCL_ZVE` is possible a lot more often than the enforced 30 days
The issue was fixed by preventing forwardYield from being called when nextYieldDistribution is zero and by setting nextYieldDistribution to block.timestamp + 30 days instead of incrementing it.
Disclosed
-
OCL_ZVE::pushToLockerMulti() will revert due to incorrect assert() statements when interacting with UniswapV2
The fix should decrease the allowance by the difference between the desired amount and the actual deposited amount after adding liquidity, ensuring the allowance is zero.
Disclosed
-
Protocol unable to get extra Rewards in OCY_Convex_C
The code was fixed by calling balanceOf and safeTransfer on the underlying token address obtained via rewardToken().token() for pools with IDs 151+.
Disclosed
-
Anyone could call `depositReward` with zero reward to extend the period finish time
The protocol team fixed this issue by adding a whitelist to restrict who can call depositReward.
Disclosed
-
DAO unable to withdraw their funds due to Convex admin action
The protocol team and users should be made aware of the risk and a contingency plan should be developed.
Disclosed