Commit 03105023 authored by smartcontracts's avatar smartcontracts Committed by GitHub

feat(ct): update max bond gas to 300m (#10275)

* feat(ct): update max bond gas to 300m

Updates the maximum bond gas to 300m up from 200m. Corresponds to
the increase in the cost of publishing a large preimage as a
result of emitting the data as part of a log.

* update kontrol

x

---------
Co-authored-by: default avatarclabby <ben@clab.by>
parent bd80e581
This diff is collapsed.
...@@ -116,8 +116,8 @@ ...@@ -116,8 +116,8 @@
"sourceCodeHash": "0xc4dbd17217b63f8117f56f78c213e57dda304fee7577fe296e1d804ebe049542" "sourceCodeHash": "0xc4dbd17217b63f8117f56f78c213e57dda304fee7577fe296e1d804ebe049542"
}, },
"src/dispute/FaultDisputeGame.sol": { "src/dispute/FaultDisputeGame.sol": {
"initCodeHash": "0x614fc47be249e9e2278acfff13f4167c48db77bee9dd188e0514f67fbe6d2cd2", "initCodeHash": "0x44407585a3dcf50d7e0d0f6c3d752fe5b18bb6837a9db138a2e0961757eb91c7",
"sourceCodeHash": "0xf7d3b1188f08c0bcb089db41f45622a08d71bccdcaf0479ebc71f65178f75c21" "sourceCodeHash": "0x4f930a9e4577404887c03fd91ddfcbf9915bddcfb52e4ff8d7a00099c6ad0f29"
}, },
"src/dispute/weth/DelayedWETH.sol": { "src/dispute/weth/DelayedWETH.sol": {
"initCodeHash": "0x7b6ec89eaec09e369426e73161a9c6932223bb1f974377190c3f6f552995da35", "initCodeHash": "0x7b6ec89eaec09e369426e73161a9c6932223bb1f974377190c3f6f552995da35",
......
...@@ -627,7 +627,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, ISemver { ...@@ -627,7 +627,7 @@ contract FaultDisputeGame is IFaultDisputeGame, Clone, ISemver {
// Values taken from Big Bonds v1.5 (TM) spec. // Values taken from Big Bonds v1.5 (TM) spec.
uint256 assumedBaseFee = 200 gwei; uint256 assumedBaseFee = 200 gwei;
uint256 baseGasCharged = 400_000; uint256 baseGasCharged = 400_000;
uint256 highGasCharged = 200_000_000; uint256 highGasCharged = 300_000_000;
// Goal here is to compute the fixed multiplier that will be applied to the base gas // Goal here is to compute the fixed multiplier that will be applied to the base gas
// charged to get the required gas amount for the given depth. We apply this multiplier // charged to get the required gas amount for the given depth. We apply this multiplier
......
...@@ -323,8 +323,8 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init { ...@@ -323,8 +323,8 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
// Reasonable approximation for a max depth of 8. // Reasonable approximation for a max depth of 8.
uint256 expected = 0.08 ether; uint256 expected = 0.08 ether;
for (uint64 j = 0; j < i; j++) { for (uint64 j = 0; j < i; j++) {
expected = expected * 217456; expected = expected * 22876;
expected = expected / 100000; expected = expected / 10000;
} }
assertApproxEqAbs(bond, expected, 0.01 ether); assertApproxEqAbs(bond, expected, 0.01 ether);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment