highLogic errorEVM-Solidity
Elfi: Traders may decrease the loss via decrease the position's margin
- Payout
- $0
- Protocol
- Elfi
- Disclosed
- Jun 20, 2024
- Source
- sherlock
Elfi's perp margin-decrease logic has an accounting omission: `_executeReduceMargin` computes the maximum withdrawable margin purely as the initial margin minus the minimum border needed for max leverage, never subtracting the position's current unrealized PnL …
Similar reports
- No close matches yet.
References
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.