@bananapus/suckers-v6 0.0.70 → 0.0.71
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 +2 -2
- package/src/JBSucker.sol +3 -5
- package/src/structs/JBLeaf.sol +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bananapus/suckers-v6",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@arbitrum/nitro-contracts": "3.2.0",
|
|
29
|
-
"@bananapus/core-v6": "^0.0.
|
|
29
|
+
"@bananapus/core-v6": "^0.0.81",
|
|
30
30
|
"@bananapus/permission-ids-v6": "^0.0.28",
|
|
31
31
|
"@chainlink/contracts-ccip": "1.6.4",
|
|
32
32
|
"@chainlink/local": "0.2.7",
|
package/src/JBSucker.sol
CHANGED
|
@@ -1299,9 +1299,8 @@ abstract contract JBSucker is ERC2771Context, JBPermissioned, Initializable, ERC
|
|
|
1299
1299
|
// Record the balance before the cash out for the sanity check.
|
|
1300
1300
|
uint256 balanceBefore = _balanceOf({token: token, addr: address(this)});
|
|
1301
1301
|
|
|
1302
|
-
// Cash out the project tokens for terminal tokens. Suckers are a transparent value-mover
|
|
1303
|
-
// accounting is the entirety of their function
|
|
1304
|
-
// so `referralProjectId: 0` is correct.
|
|
1302
|
+
// Cash out the project tokens for terminal tokens. Suckers are a transparent value-mover; the bridge
|
|
1303
|
+
// accounting is the entirety of their function.
|
|
1305
1304
|
reclaimedAmount = terminal.cashOutTokensOf({
|
|
1306
1305
|
holder: address(this),
|
|
1307
1306
|
projectId: cachedProjectId,
|
|
@@ -1309,8 +1308,7 @@ abstract contract JBSucker is ERC2771Context, JBPermissioned, Initializable, ERC
|
|
|
1309
1308
|
tokenToReclaim: token,
|
|
1310
1309
|
minTokensReclaimed: minTokensReclaimed,
|
|
1311
1310
|
beneficiary: payable(address(this)),
|
|
1312
|
-
metadata: bytes("")
|
|
1313
|
-
referralProjectId: 0
|
|
1311
|
+
metadata: bytes("")
|
|
1314
1312
|
});
|
|
1315
1313
|
|
|
1316
1314
|
// Sanity check to make sure we received the expected amount.
|
package/src/structs/JBLeaf.sol
CHANGED
|
@@ -6,11 +6,9 @@ pragma solidity ^0.8.0;
|
|
|
6
6
|
/// @custom:member beneficiary The beneficiary of the leaf.
|
|
7
7
|
/// @custom:member projectTokenCount The number of project tokens to claim.
|
|
8
8
|
/// @custom:member terminalTokenAmount The amount of terminal tokens to claim.
|
|
9
|
-
/// @custom:member metadata Opaque, caller-defined
|
|
10
|
-
///
|
|
11
|
-
///
|
|
12
|
-
/// this field — it's covered by the leaf hash, so receivers can trust the value once the merkle proof verifies.
|
|
13
|
-
/// Pass `bytes32(0)` when no attribution context is needed.
|
|
9
|
+
/// @custom:member metadata Opaque, caller-defined payload that travels with the leaf inside the merkle root. The
|
|
10
|
+
/// sucker protocol itself never inspects this field — it's covered by the leaf hash, so receivers can trust the value
|
|
11
|
+
/// once the merkle proof verifies. Pass `bytes32(0)` when no extra claim context is needed.
|
|
14
12
|
struct JBLeaf {
|
|
15
13
|
uint256 index;
|
|
16
14
|
bytes32 beneficiary;
|