Lucene search
+L

1 matches found

Code423n4
Code423n4
•added 2022/08/17 12:0 a.m.•12 views

Losing precision of toShares and toAmount in VaultAccount.sol when doing accounting calculation.

Lines of code Vulnerability details Impact Detailed description of the impact of this finding. the code in VaultAccountingLibrary: function toShares VaultAccount memory total, uint256 amount, bool roundUp internal pure returns uint256 shares if total.amount == 0 shares = amount; else shares =...

6.9AI score
SaveExploits0
Rows per page
Query Builder