We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider removing safeMath library.
Source: OpenZeppelin/openzeppelin-contracts@24a0bc2#diff-f4b1737177aad965d94530b54ac4001a2e1f5fe6e4e34bafe023310cea599eca
Remove; https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L26
Change; https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L361
return _supply == 0 ? _tokens : _tokens.mul(_supply).div(aToken.balanceOf(address(this)));
For:
return _supply == 0 ? _tokens : (_tokens *_supply) / aToken.balanceOf(address(this));
Change: https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L373
return _supply == 0 ? _shares : _shares.mul(aToken.balanceOf(address(this))).div(_supply);
return _supply == 0 ? _shares : (_shares * aToken.balanceOf(address(this))) / _supply;
The text was updated successfully, but these errors were encountered:
0x4non issue #15
d0912b3
Duplicate of #11
Sorry, something went wrong.
Detailed report by the warden, should get extra points.
PierrickGT
No branches or pull requests
Consider removing safeMath library.
Source:
OpenZeppelin/openzeppelin-contracts@24a0bc2#diff-f4b1737177aad965d94530b54ac4001a2e1f5fe6e4e34bafe023310cea599eca
Remove;
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L26
Change;
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L361
For:
Change:
https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L373
For:
The text was updated successfully, but these errors were encountered: