Sherlock
Elfi
Every publicly disclosed report for Elfi and what kind of bugs they were.
- disclosed reports
- 57
- most reported class
- Business logic
- bug classes found
- 4
- first disclosure
- 2024
Disclosed reports
Newest first. Only what Elfi chose to make public.
-
The keeper will suffer continuing losses due to miss compensation for L1 rollup fees
Business logic Medium Audit finding
-
Missing compensation for the ````21,000```` intrinsic gas cost
Business logic Medium Audit finding
-
Users can have positions with a margin lower than the allowed minimum margin
Business logic Medium Audit finding
-
Minting stake tokens is not updating the pool's borrowing fee rate
Business logic High Audit finding
-
User Collateral Cap Check Issue
Business logic Medium Audit finding +13 collaborators
-
`isHoldAmountAllowed` and `isSubAmountAllowed` wrong subtraction will result in DoS
DoS Medium Audit finding
-
A significant ````105,983```` gas cost of ````processExecutionFee()```` execution is not accounted in the keeper's compensation
Business logic Medium Audit finding +1 collaborator
-
The balance.unsettledAmount is missing in the calculations for `getMaxWithdraw` and `isSubAmountAllowed` in UsdPool.sol
Business logic Medium Audit finding
-
Deleveraging can result in a zero borrowed amount while maintaining the leveraged position
Business logic High Audit finding
-
Excess fromBalance removal not added to other positions fromBalance's when leveraging up
Business logic High Audit finding
-
Updating leverage changes the cross net and cross available value
Business logic High Audit finding
-
Mismatching funding fees can result in the protocol incurring a deficit or insolvency risk
Business logic High Audit finding
-
Users profit in short cross will leave the fees in UsdPool instead of LpPool
Business logic High Audit finding
-
The `lossFee` is simply added to the `commonData` and not reimbursed to the keeper, leading to potential losses for the keeper
Business logic Medium Audit finding
-
The redeem process updates the rewards in the wrong order
Business logic High Audit finding +4 collaborators
-
If the accounted token balance is higher than actual token balance some transfers can send "0" tokens to destination
Business logic Medium Audit finding
-
Users can gas grief or completely block keepers from executing orders
DoS Medium Audit finding +1 collaborator
-
`updatePositionFromBalanceMargin` function returns "0" if amount to be updated is negative
Business logic High Audit finding +6 collaborators
-
Canceling a mint stake token can result in the execution fee being sent from the wrong vault
Business logic High Audit finding +5 collaborators
-
Uninitialized cache.redeemFee cause 0 redeem fee
Business logic High Audit finding +3 collaborators
-
Lack of timely update borrowing fee when update position's margin
Business logic High Audit finding +3 collaborators
-
Closing positions does not decrease the pool's entry price, leading to misleading pool value calculations
Business logic High Audit finding
-
Cross available value is not accounting the position fees
Business logic High Audit finding
-
Cross positions that exceed the allowed margin can be opened
Business logic Medium Audit finding
-
When a position is closed, the execution fees for the canceled stop orders are lost for the user
Business logic Medium Audit finding +1 collaborator
-
Lack of execution fee mechanism in AccountFacet
Business logic Medium Audit finding +3 collaborators
-
Call of ````revokeAllRole()```` would fail silently
Access control Medium Audit finding +2 collaborators