Closed code423n4 closed 2 years ago
hack3r-0m
https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Auction.sol#L146
Solidity integer division might truncate. As a result, performing multiplication before division can sometimes avoid loss of precision.
The line mentioned in the finding doesn't have a division Invalid as it seems like this is spam
Handle
hack3r-0m
Vulnerability details
https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Auction.sol#L146
Solidity integer division might truncate. As a result, performing multiplication before division can sometimes avoid loss of precision.