@bananapus/router-terminal-v6 0.0.46 → 0.0.48
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 +3 -3
- package/src/JBRouterTerminal.sol +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bananapus/router-terminal-v6",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@bananapus/buyback-hook-v6": "^0.0.49",
|
|
30
|
-
"@bananapus/core-v6": "^0.0.
|
|
30
|
+
"@bananapus/core-v6": "^0.0.59",
|
|
31
31
|
"@bananapus/permission-ids-v6": "^0.0.26",
|
|
32
|
-
"@bananapus/univ4-router-v6": "^0.0.
|
|
32
|
+
"@bananapus/univ4-router-v6": "^0.0.35",
|
|
33
33
|
"@openzeppelin/contracts": "5.6.1",
|
|
34
34
|
"@uniswap/permit2": "github:Uniswap/permit2#cc56ad0f3439c502c246fc5cfcc3db92bb8b7219",
|
|
35
35
|
"@uniswap/v3-core": "github:Uniswap/v3-core#6562c52e8f75f0c10f9deaf44861847585fc8129",
|
package/src/JBRouterTerminal.sol
CHANGED
|
@@ -847,8 +847,8 @@ contract JBRouterTerminal is
|
|
|
847
847
|
|
|
848
848
|
// Decode only the buyback field used for route scoring. `minimumSwapAmountOut` is executable because the
|
|
849
849
|
// hook will enforce it; the later raw quote word is diagnostic and can overstate what execution can prove.
|
|
850
|
-
(uint256 minimumSwapAmountOut
|
|
851
|
-
abi.decode(specification.metadata, (uint256, uint256, uint256, int24, uint128, PoolId, uint256));
|
|
850
|
+
(uint256 minimumSwapAmountOut,,,,,,,) =
|
|
851
|
+
abi.decode(specification.metadata, (uint256, uint256, uint256, int24, uint128, PoolId, uint256, bool));
|
|
852
852
|
|
|
853
853
|
// Keep whichever understood executable hook commitment implies the strongest cash-out output.
|
|
854
854
|
if (minimumSwapAmountOut > effectiveAmount) effectiveAmount = minimumSwapAmountOut;
|
|
@@ -1195,7 +1195,8 @@ contract JBRouterTerminal is
|
|
|
1195
1195
|
tokenToReclaim: tokenToReclaim,
|
|
1196
1196
|
minTokensReclaimed: 0,
|
|
1197
1197
|
beneficiary: payable(address(this)),
|
|
1198
|
-
metadata: ""
|
|
1198
|
+
metadata: "",
|
|
1199
|
+
referralProjectId: 0
|
|
1199
1200
|
});
|
|
1200
1201
|
|
|
1201
1202
|
// Measure the reclaimed-token balance delta so fee-on-transfer behavior cannot fake delivery.
|