# User can instantly `unlock` most of his funds with less fee when he is unique `staker`/`liquidityProvider`

Sole staker/LP in Superfluid Locker gets instant-unlock penalty redistributed back to their own locker, bypassing the 80% fee.

- Payout: Audit contest
- Severity: medium
- Program: Superfluid
- Found by: Artur
- Disclosed: 2025-06-02
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-06-superfluid-locker-system-judging/issues/47
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-06-superfluid-locker-system%3AM-1
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:business-logic vuln:fee-bypass

**Target:** FluidLocker.unlock / _instantUnlock penalty distribution
**Root cause:** _instantUnlock distributes the penalty to LP_DISTRIBUTION_POOL and STAKER_DISTRIBUTION_POOL; when the caller is the only unit holder in those pools, the distributed penalty flows back to the same locker instead of being forfeited.
**Steps:**
1. Become the sole staker and sole liquidity provider by staking/providing a small amount of FLUID.
2. Call `unlock(amount, unlockPeriod=0)` repeatedly on the locker.
3. Observe `FLUID.distribute` to LP_DISTRIBUTION_POOL and STAKER_DISTRIBUTION_POOL returns penalty to the caller's locker.
4. Net penalty paid is only dust; most funds unlocked instantly.
**How found:** Code reading of _instantUnlock: noticed distribute() targets pools the caller may be the sole member of, so penalty returns to sender.
**Exploitation:** Attacker stakes minimal FLUID to be the only unit holder in both distribution pools, then repeatedly calls instant unlock; the 80% penalty is redistributed back to their own locker, so they withdraw nearly all funds fee-free.
**Insight:** When a penalty/fee is 'distributed' to pools, check whether the payer can be the sole beneficiary of those pools, making the penalty a no-op refund.

