@bananapus/721-hook-v6 0.0.43 → 0.0.46

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.
@@ -22,8 +22,8 @@ pragma solidity ^0.8.0;
22
22
  /// @custom:member allowAddPriceFeed A flag indicating if a project can add new price feeds to calculate exchange rates
23
23
  /// between its tokens.
24
24
  /// @custom:member holdFees A flag indicating if fees should be held during this ruleset.
25
- /// @custom:member useTotalSurplusForCashOut A flag indicating if cash outs should use the project's balance held
26
- /// in all terminals instead of the project's local terminal balance from which the cash out is being fulfilled.
25
+ /// @custom:member scopeCashOutsToLocalBalances A flag indicating if omnichain cash-out calculations should use only
26
+ /// the local chain's terminal balance instead of the project's balance held in all terminals.
27
27
  /// @custom:member useDataHookForCashOuts A flag indicating if the data hook should be used for cash out transactions
28
28
  /// during
29
29
  /// this ruleset.
@@ -43,7 +43,7 @@ struct JBPayDataHookRulesetMetadata {
43
43
  bool allowAddPriceFeed;
44
44
  bool ownerMustSendPayouts;
45
45
  bool holdFees;
46
- bool useTotalSurplusForCashOuts;
46
+ bool scopeCashOutsToLocalBalances;
47
47
  bool useDataHookForCashOut;
48
48
  uint16 metadata;
49
49
  }
@@ -223,7 +223,7 @@ contract UnitTestSetup is Test {
223
223
  allowAddPriceFeed: false,
224
224
  ownerMustSendPayouts: false,
225
225
  holdFees: false,
226
- useTotalSurplusForCashOuts: false,
226
+ scopeCashOutsToLocalBalances: true,
227
227
  useDataHookForPay: true,
228
228
  useDataHookForCashOut: true,
229
229
  dataHook: address(0),
@@ -772,7 +772,7 @@ contract UnitTestSetup is Test {
772
772
  allowAddAccountingContext: false,
773
773
  allowAddPriceFeed: false,
774
774
  holdFees: false,
775
- useTotalSurplusForCashOuts: false,
775
+ scopeCashOutsToLocalBalances: true,
776
776
  useDataHookForCashOut: false,
777
777
  metadata: 0x00
778
778
  });