diff --git a/src/consolidations/ctor.eas b/src/consolidations/ctor.eas index 76e5f4f..1022a4d 100644 --- a/src/consolidations/ctor.eas +++ b/src/consolidations/ctor.eas @@ -1,7 +1,7 @@ -;; Store 1181 as a temporary excess value as it creates a fee so large that no +;; Store 65536 as a temporary excess value as it creates a fee so large that no ;; request will be accepted in the queue until after 7002 is activated and ;; called by the system for the first time. -push 1181 +push 65536 push0 sstore diff --git a/src/consolidations/main.eas b/src/consolidations/main.eas index b082e3a..90bedba 100644 --- a/src/consolidations/main.eas +++ b/src/consolidations/main.eas @@ -24,7 +24,7 @@ #define TARGET_PER_BLOCK 1 #define MAX_PER_BLOCK 1 #define FEE_UPDATE_FRACTION 17 -#define EXCESS_INHIBITOR 1181 +#define EXCESS_INHIBITOR 65536 #define INPUT_SIZE 96 ;; the size of (source ++ target) #define RECORD_SIZE 116 ;; the size of (address ++ source ++ target) diff --git a/src/withdrawals/ctor.eas b/src/withdrawals/ctor.eas index 76e5f4f..1022a4d 100644 --- a/src/withdrawals/ctor.eas +++ b/src/withdrawals/ctor.eas @@ -1,7 +1,7 @@ -;; Store 1181 as a temporary excess value as it creates a fee so large that no +;; Store 65536 as a temporary excess value as it creates a fee so large that no ;; request will be accepted in the queue until after 7002 is activated and ;; called by the system for the first time. -push 1181 +push 65536 push0 sstore diff --git a/src/withdrawals/main.eas b/src/withdrawals/main.eas index b109751..858a7e6 100644 --- a/src/withdrawals/main.eas +++ b/src/withdrawals/main.eas @@ -34,7 +34,7 @@ #define TARGET_PER_BLOCK 2 #define MAX_PER_BLOCK 16 #define FEE_UPDATE_FRACTION 17 -#define EXCESS_INHIBITOR 1181 +#define EXCESS_INHIBITOR 65536 #define INPUT_SIZE 56 ;; the size of (pubkey ++ amount) #define RECORD_SIZE 76 ;; the size of (address ++ pubkey ++ amount) diff --git a/test/Consolidation.t.sol.in b/test/Consolidation.t.sol.in index f779ea6..cff960c 100644 --- a/test/Consolidation.t.sol.in +++ b/test/Consolidation.t.sol.in @@ -146,15 +146,15 @@ contract ConsolidationTest is Test { // testInhibitorRest verifies that after the first system call the excess // value is reset to 0. function testInhibitorReset() public { - vm.store(addr, bytes32(0), bytes32(uint256(1181))); + vm.store(addr, bytes32(0), bytes32(uint256(65536))); vm.prank(sysaddr); (bool ret, bytes memory data) = addr.call(""); assertStorage(excess_slot, 0, "expected excess requests to be reset"); - vm.store(addr, bytes32(0), bytes32(uint256(1180))); + vm.store(addr, bytes32(0), bytes32(uint256(65535))); vm.prank(sysaddr); (ret, data) = addr.call(""); - assertStorage(excess_slot, 1180-target_per_block, "didn't expect excess to be reset"); + assertStorage(excess_slot, 65535-target_per_block, "didn't expect excess to be reset"); } // -------------------------------------------------------------------------- diff --git a/test/FakeExpo.t.sol.in b/test/FakeExpo.t.sol.in index 2a12229..5aa35ec 100644 --- a/test/FakeExpo.t.sol.in +++ b/test/FakeExpo.t.sol.in @@ -11,5 +11,6 @@ contract FakeExpoTest is Test { // testFakeExpo calls the fake exponentiation logic with specific values. function testFakeExpo() public { assertEq(callFakeExpo(1, 100, 17), 357); + assertEq(callFakeExpo(1, 65536, 17), 923226766505217739920341538189009691485399699651503388307248448916147782597); } } diff --git a/test/Withdrawal.t.sol.in b/test/Withdrawal.t.sol.in index 7d66895..a79a0a9 100644 --- a/test/Withdrawal.t.sol.in +++ b/test/Withdrawal.t.sol.in @@ -144,15 +144,15 @@ contract WithdrawalsTest is Test { // testInhibitorRest verifies that after the first system call the excess // value is reset to 0. function testInhibitorReset() public { - vm.store(addr, bytes32(0), bytes32(uint256(1181))); + vm.store(addr, bytes32(0), bytes32(uint256(65536))); vm.prank(sysaddr); (bool ret, bytes memory data) = addr.call(""); assertStorage(excess_slot, 0, "expected excess requests to be reset"); - vm.store(addr, bytes32(0), bytes32(uint256(1180))); + vm.store(addr, bytes32(0), bytes32(uint256(65535))); vm.prank(sysaddr); (ret, data) = addr.call(""); - assertStorage(excess_slot, 1180-target_per_block, "didn't expect excess to be reset"); + assertStorage(excess_slot, 65535-target_per_block, "didn't expect excess to be reset"); } // --------------------------------------------------------------------------