Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: GopherJ <[email protected]>
  • Loading branch information
GopherJ committed Sep 27, 2023
1 parent d939c1c commit f117f5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/protocol/pool/PoolParameters.sol
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ contract PoolParameters is
return
(
(tokenInPrice * (10 ** IERC20Detailed(tokenOut).decimals()))
.wadDiv(tokenOutPrice * (10 ** IERC20Detailed(tokenIn).decimals()))
.wadDiv(
tokenOutPrice *
(10 ** IERC20Detailed(tokenIn).decimals())
)
).percentMul(
PercentageMath.PERCENTAGE_FACTOR - DEFAULT_MAX_SLIPPAGE
);
Expand Down

0 comments on commit f117f5a

Please sign in to comment.