Skip to content

Commit

Permalink
fix: add sync even for native token settlement in CurrencySettlement (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
chefburger authored Oct 17, 2024
1 parent 4f3df9d commit b9c4a70
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/BinPoolManagerTest#testGasDonate.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
118763
118751
Original file line number Diff line number Diff line change
@@ -1 +1 @@
968494
968482
Original file line number Diff line number Diff line change
@@ -1 +1 @@
327806
327794
Original file line number Diff line number Diff line change
@@ -1 +1 @@
337530
337518
Original file line number Diff line number Diff line change
@@ -1 +1 @@
140081
140069
Original file line number Diff line number Diff line change
@@ -1 +1 @@
173046
173040
Original file line number Diff line number Diff line change
@@ -1 +1 @@
179074
179068
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133077
133071
Original file line number Diff line number Diff line change
@@ -1 +1 @@
304488
305903
Original file line number Diff line number Diff line change
@@ -1 +1 @@
347609
347561
Original file line number Diff line number Diff line change
@@ -1 +1 @@
163070
163022
Original file line number Diff line number Diff line change
@@ -1 +1 @@
238365
239754
2 changes: 1 addition & 1 deletion .forge-snapshots/CLPoolManagerTest#donateBothTokens.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
163350
163302
2 changes: 1 addition & 1 deletion .forge-snapshots/CLPoolManagerTest#gasDonateOneToken.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
108297
108273
Original file line number Diff line number Diff line change
@@ -1 +1 @@
130815
130791
Original file line number Diff line number Diff line change
@@ -1 +1 @@
163156
163132
Original file line number Diff line number Diff line change
@@ -1 +1 @@
148595
148571
1 change: 1 addition & 0 deletions test/helpers/CurrencySettlement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ library CurrencySettlement {
if (burn) {
vault.burn(payer, currency, amount);
} else if (currency.isNative()) {
vault.sync(currency);
vault.settle{value: amount}();
} else {
vault.sync(currency);
Expand Down

0 comments on commit b9c4a70

Please sign in to comment.