Hunt prep
Before you test Smilee Finance
What 11 disclosed reports say about Smilee Finance: 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 | 7 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Access control 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.
-
If the vault's side token balance is 0 or a tiny amount, then most if not all IG Bear trades will revert due to incorrect check of computation error during delta hedge amount calculation
The protocol team fixed this issue in a pull request.
Disclosed
-
Whenever swapPrice > oraclePrice, minting via PositionManager will revert, due to not enough funds being obtained from user
The issue was fixed by considering the swap price when calculating the premium in PositionManager.
Disclosed
-
PositionManager will revert when trying to return back to user excess of the premium transferred from the user when minting position
The protocol team fixed this issue by using safeTransfer instead of safeTransferFrom.
Disclosed
-
Transferring ERC20 Vault tokens to another address and then withdrawing from the vault breaks `totalDeposit` accounting which is tied to deposit addresses
The protocol team fixed this issue in a pull request, but a review noted that transferring vault tokens to the vault itself can still bypass the deposit limit, though at a cost to the attacker.
Disclosed
-
FeeManager `receiveFee` and `trackVaultFee` functions allow anyone to call it with user-provided dvp/vault address and add any arbitrary feeAmount to any address, breaking fees accounting and temporarily bricking DVP smart contract
The protocol team fixed this issue by adding a whitelist of addresses allowed to call these functions.
Disclosed
-
Mint and sales can be dossed due to lack of safeApprove to 0
The protocol team fixed this issue by updating the approval logic, as confirmed in the referenced commit.
Disclosed
-
Position Manager providing the wrong strike when storing user's position data
The PositionManager should query the current strike from the IG contract and store that value instead of the user-provided strike.
Disclosed
-
The sign of delta hedge amount can be reversed by malicious user due to incorrect condition in `FinanceIGDelta.deltaHedgeAmount`
The check should be done only when tokensToSwap is positive, by adding a condition that tokensToSwap > 0.
Disclosed
-
Utilization rate for bonding curve purposes is calculated for a total of bull and bear usage, which can be abused to steal all vault funds
The protocol team fixed this issue by implementing a vega-weighted utilization rate solution.
Disclosed
-
Vault Inflation Attack
The issue was fixed by enforcing a minimum liquidity requirement on deposit and withdraw functions to prevent rounding down of new deposits.
Disclosed