mediumLogic errorEVM-Solidity
Union Finance: debtWriteOff updates `totalFrozen` immaturely, thereby losing staker rewards
- Payout
- $0
- Protocol
- Union Finance
- Disclosed
- Aug 7, 2026
- Source
- code4rena
Union Finance's UserManager.debtWriteOff updates totalFrozen before calling comptroller.withdrawRewards within the same transaction. For a staker whose borrowers are overdue, this raises totalFrozen to equal totalStaked, and the reward formula totalStaked - to …
Similar reports
- No close matches yet.
References
- https://github.com/code-423n4/2021-10-union-findings/issues/28
- https://github.com/code-423n4/2021-10-union-findings
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.