Skip to content

Commit

Permalink
fix: reorder parameter use in mulPPM function call in mulPPMRoundUp. …
Browse files Browse the repository at this point in the history
…(OZ N-12)
  • Loading branch information
MoonBoi9001 committed Sep 19, 2024
1 parent 4387c6c commit 79f7828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/horizon/contracts/libraries/PPMMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ library PPMMath {
*/
function mulPPMRoundUp(uint256 a, uint256 b) internal pure returns (uint256) {
require(isValidPPM(b), PPMMathInvalidPPM(b));
return a - mulPPM(MAX_PPM - b, a);
return a - mulPPM(a, MAX_PPM - b);
}

/**
Expand Down

0 comments on commit 79f7828

Please sign in to comment.