mediumLogic errorEVM-Solidity
BakerFi: `deposit()` `afterDeposit` calculation formula is incorrect
- Payout
- $0
- Protocol
- BakerFi
- Disclosed
- Jun 24, 2024
- Source
- code4rena
BakerFi's Vault.deposit() enforces a per-wallet ETH deposit cap by converting the caller's existing share balance into an ETH-equivalent and adding msg.value. The conversion multiplies the share balance by the shares-per-ETH rate from _tokenPerETH() instead of …
Similar reports
- No close matches yet.
References
- https://github.com/code-423n4/2024-05-bakerfi-findings/issues/29
- https://github.com/code-423n4/2024-05-bakerfi-findings
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.