@bananapus/router-terminal-v6 0.0.54 → 0.0.55

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.54",
3
+ "version": "0.0.55",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2532,6 +2532,7 @@ contract JBRouterTerminal is
2532
2532
  sourceProjectId: sourceProjectId,
2533
2533
  destProjectId: destProjectId,
2534
2534
  amount: amount,
2535
+ metadata: i == 0 ? metadata : bytes(""),
2535
2536
  preferredToken: preferredToken
2536
2537
  });
2537
2538
 
@@ -2559,12 +2560,14 @@ contract JBRouterTerminal is
2559
2560
  /// @param sourceProjectId The project to cash out tokens from.
2560
2561
  /// @param destProjectId The final destination project to pay.
2561
2562
  /// @param amount The amount of source-project tokens to cash out.
2563
+ /// @param metadata Metadata forwarded into the source terminal preview for this hop.
2562
2564
  /// @return tokenToReclaim The token that would be reclaimed from the source terminal.
2563
2565
  /// @return reclaimAmount The amount of that token that would be reclaimed.
2564
2566
  function _previewCashOutStep(
2565
2567
  uint256 sourceProjectId,
2566
2568
  uint256 destProjectId,
2567
2569
  uint256 amount,
2570
+ bytes memory metadata,
2568
2571
  address preferredToken
2569
2572
  )
2570
2573
  internal
@@ -2587,7 +2590,7 @@ contract JBRouterTerminal is
2587
2590
  cashOutCount: amount,
2588
2591
  tokenToReclaim: tokenToReclaim,
2589
2592
  beneficiary: payable(address(this)),
2590
- metadata: ""
2593
+ metadata: metadata
2591
2594
  });
2592
2595
 
2593
2596
  // Deployment config makes this router a feeless cash-out beneficiary, so previews use the terminal's raw