Skip to content

Commit 644ff6d

Browse files
committed
fix parameter ordering bug resulting in incorrect quotes
1 parent a8cf496 commit 644ff6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/QuoteLib.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ library QuoteLib {
210210
xNew = reserve0 - amount;
211211
if (xNew < x0) {
212212
// remain on f()
213-
yNew = CurveLib.f(xNew, py, px, y0, x0, cx);
213+
yNew = CurveLib.f(xNew, px, py, x0, y0, cx);
214214
} else {
215215
// move to g()
216216
yNew = CurveLib.fInverse(xNew, py, px, y0, x0, cy);

0 commit comments

Comments
 (0)