We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 598a1fb commit c6a4b8fCopy full SHA for c6a4b8f
src/libraries/QuoteLib.sol
@@ -92,10 +92,10 @@ library QuoteLib {
92
} else {
93
// if `!exactIn`, `amount` is the amount of assets to buy from the AMM
94
require(amount <= outLimit && quote <= inLimit, SwapLimitExceeded());
95
- }
96
97
- // exactOut: inflate required amountIn
98
- if (!exactIn) quote = (quote * 1e18) / (1e18 - fee);
+ // exactOut: inflate required amountIn
+ quote = (quote * 1e18) / (1e18 - fee);
+ }
99
100
return quote;
101
}
0 commit comments