highLogic errorOther
Opus: `convert_to_yang_helper()` loss precision
- Payout
- $0
- Protocol
- Opus
- Disclosed
- Mar 8, 2024
- Source
- code4rena
Opus's Cairo gate contract computes user deposit shares in `convert_to_yang_helper()` by multiplying the raw (non-18-decimal) asset amount by `total_yang` inside an 18-decimal Wad normalization before the final division by total assets. For assets with fewer t …
Similar reports
- No close matches yet.
References
- https://github.com/code-423n4/2024-01-opus-findings/issues/195
- https://github.com/code-423n4/2024-01-opus-findings
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.