Skip to content

Commit

Permalink
fix: toUbp div base
Browse files Browse the repository at this point in the history
  • Loading branch information
seinmyung25 committed Mar 25, 2024
1 parent f9ce859 commit 488e66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/utils/BasisPointRateMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ library UbpMath {
function toUbp(uint numerator, uint denominator) internal pure returns (Ubp bp) {
if (denominator == 0) revert ZeroDivision();
assembly {
bp := div(mul(numerator, UintBase), denominator)
bp := div(mul(numerator, UbpBase), denominator)
}
}
}
Expand Down Expand Up @@ -175,7 +175,7 @@ library IbpMath {
function toIbp(uint numerator, uint denominator) internal pure returns (Ibp bp) {
if (denominator == 0) revert ZeroDivision();
unchecked {
return wrap((numerator * UintBase) / denominator);
return wrap((numerator * UbpBase) / denominator);
}
}
}

0 comments on commit 488e66f

Please sign in to comment.