Skip to content

Sherlock

Smilee Finance

Every publicly disclosed report for Smilee Finance and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find Smilee Finance on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Smilee Finance chose to make public.

Business logic

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 delta hedge amount calculation in FinanceIGDelta.deltaHedgeAmount incorrectly checks if the absolute difference between tokens to swap and the vault's side token balance is less than 0.01% of that balance. When the side token balance is zero or very small, this check always fails, causing almost all IG Bear trades to revert in certain market conditions.

Smilee Finance

Medium
Business logic

Transferring ERC20 Vault tokens to another address and then withdrawing from the vault breaks `totalDeposit` accounting which is tied to deposit addresses

The vault's totalDeposit accounting assumes that depositors are the only ones who withdraw, but since vault shares are transferable ERC20 tokens, a user can transfer shares to another address and then withdraw a tiny amount to reduce totalDeposit by their full original deposit, bypassing the max deposit cap. Alternatively, a recipient who never deposited can withdraw all shares without reducing totalDeposit, locking the vault from further deposits.

Smilee Finance

Medium
Access control

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 FeeManager contract's trackVaultFee and receiveFee functions lack caller authentication, allowing any contract that implements the required interface to inflate fee records arbitrarily. An attacker could set a vault's fee to the maximum uint256 value, causing all subsequent fee tracking calls to revert and temporarily bricking the DVP contract's mint and burn operations.

Smilee Finance

Medium
DoS

Mint and sales can be dossed due to lack of safeApprove to 0

The PositionManager and DVP contracts use OpenZeppelin's safeApprove to grant token allowances without first resetting them to zero. After the first approval, subsequent approvals fail, causing mint and sell functions to revert and breaking the protocol's core functionality.

Smilee Finance

Medium
Business logic

The sign of delta hedge amount can be reversed by malicious user due to incorrect condition in `FinanceIGDelta.deltaHedgeAmount`

The delta hedge calculation in FinanceIGDelta.deltaHedgeAmount incorrectly compares the absolute value of the hedge amount, so a negative hedge amount close to the vault's side token balance is flipped to positive. An attacker can exploit this to force the vault to hedge in the wrong direction, then manipulate the Uniswap pool to profit and potentially drain all vault funds.

Smilee Finance

High
Business logic

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 bonding curve's volatility calculation uses the combined utilization rate of both bull and bear options, but their premiums can differ significantly. An attacker can buy the higher-priced option, manipulate volatility by buying the lower-priced option, then sell both at inflated and reduced prices respectively, making a profit and stealing vault funds over many transactions.

Smilee Finance

High
Smart contracts

Vault Inflation Attack

The vault's share calculation is vulnerable to a first-depositor inflation attack, where an attacker mints a tiny number of shares and then donates assets to inflate the share price, causing later depositors to receive zero shares due to rounding. The attacker can then withdraw all funds, stealing the later deposits.

Smilee Finance

Medium