Closed code423n4 closed 2 years ago
I believe this issue was found by searching for int(
. We do not do any uint => int casting in RDT.
Here sore the two examples they are referring to: https://github.com/maple-labs/revenue-distribution-token/blob/41a3e40bf8c109ff19b38b80fde300c44fd42a3d/contracts/RevenueDistributionToken.sol#L118 https://github.com/maple-labs/revenue-distribution-token/blob/41a3e40bf8c109ff19b38b80fde300c44fd42a3d/contracts/RevenueDistributionToken.sol#L132
Both are previewMint(shares_)
which contains int(shares_)
agree with sponsor
Lines of code
https://github.com/maple-labs/revenue-distribution-token/releases/tag/v1.0.0-beta.1
Vulnerability details
use openzeppilin's safeCast in: