highLogic errorEVM-Solidity
Elfi: `updateAllPositionFromBalanceMargin` function mistakenly increments positions "fromBalance"
- Payout
- $0
- Protocol
- Elfi
- Disclosed
- Jun 20, 2024
- Source
- sherlock
Elfi's cross-margin accounting reallocates a closed position's settled margin to the account's other open positions via their "fromBalance" fields. The shared updateAllPositionFromBalanceMargin loop passes the original settlement amount to each iteration inste …
Similar reports
- No close matches yet.
References
This report is already public and closed. CoinBuggie never publishes active or unpatched vulnerability data.