@bananapus/router-terminal-v6 0.0.64 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bananapus/router-terminal-v6",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "artifacts": "source ./.env && npx sphinx artifacts --org-id 'ea165b21-7cdc-4d7b-be59-ecdd4c26bee4' --project-name 'nana-router-terminal-v6'"
25
25
  },
26
26
  "dependencies": {
27
- "@bananapus/buyback-hook-v6": "^0.0.68",
27
+ "@bananapus/buyback-hook-v6": "^0.0.70",
28
28
  "@bananapus/core-v6": "^0.0.81",
29
29
  "@bananapus/permission-ids-v6": "^0.0.28",
30
30
  "@bananapus/univ4-router-v6": "^0.0.51",
@@ -282,10 +282,17 @@ contract JBPayRouteResolver is IJBPayRouteResolver {
282
282
  // Decode the buyback hook's routing metadata. When the hook mints in `afterPayRecordedWith`, the terminal
283
283
  // preview returns zero token counts and the router must score the route from the hook's commitments.
284
284
  (
285
- ,
285
+ bool projectTokenIs0,
286
286
  uint256 amountToMintWith,
287
- uint256 minimumSwapAmountOut,,,
288
- uint256 tokenCountWithoutHook,,,,,
287
+ uint256 minimumSwapAmountOut,
288
+ bool hasExplicitMinimumSwapAmountOut,
289
+ address controller,
290
+ uint256 tokenCountWithoutHook,
291
+ uint256 weightRatio,
292
+ uint256 quotedAmountToSwapWith,
293
+ int24 twapTick,
294
+ uint128 twapLiquidity,
295
+ bytes32 poolId,
289
296
  uint256 minimumBeneficiaryTokenCount,
290
297
  uint256 minimumReservedTokenCount,
291
298
  uint256 rawSwapQuote
@@ -299,6 +306,7 @@ contract JBPayRouteResolver is IJBPayRouteResolver {
299
306
  address,
300
307
  uint256,
301
308
  uint256,
309
+ uint256,
302
310
  int24,
303
311
  uint128,
304
312
  bytes32,
@@ -307,6 +315,14 @@ contract JBPayRouteResolver is IJBPayRouteResolver {
307
315
  uint256
308
316
  )
309
317
  );
318
+ projectTokenIs0;
319
+ hasExplicitMinimumSwapAmountOut;
320
+ controller;
321
+ weightRatio;
322
+ quotedAmountToSwapWith;
323
+ twapTick;
324
+ twapLiquidity;
325
+ poolId;
310
326
 
311
327
  // The hook's beneficiary/reserved commitments are only for the AMM leg. If the hook leaves part of the
312
328
  // payment to mint directly, estimate that direct-mint leg at the same issuance rate used for the swapped