out of gas
This commit is contained in:
parent
db23d756e9
commit
25d6e2301a
2 changed files with 6 additions and 6 deletions
|
|
@ -244,7 +244,7 @@ contract ImprovedFuzzingAnalysis is Test, CSVManager {
|
|||
// Recenter during low price
|
||||
vm.warp(block.timestamp + 1 hours);
|
||||
vm.prank(feeDestination);
|
||||
try lm.recenter() {} catch {}
|
||||
try lm.recenter{gas: 50_000_000}() {} catch {}
|
||||
|
||||
// Buy back at low price
|
||||
uint256 remainingWeth = weth.balanceOf(account);
|
||||
|
|
@ -277,7 +277,7 @@ contract ImprovedFuzzingAnalysis is Test, CSVManager {
|
|||
// Trigger recenter
|
||||
vm.warp(block.timestamp + 30 minutes);
|
||||
vm.prank(feeDestination);
|
||||
try lm.recenter() {} catch {}
|
||||
try lm.recenter{gas: 50_000_000}() {} catch {}
|
||||
}
|
||||
|
||||
// Trader tries to follow/counter
|
||||
|
|
@ -313,7 +313,7 @@ contract ImprovedFuzzingAnalysis is Test, CSVManager {
|
|||
if (tick < discoveryLower + 1000) {
|
||||
vm.warp(block.timestamp + 1 hours);
|
||||
vm.prank(feeDestination);
|
||||
try lm.recenter() {} catch {}
|
||||
try lm.recenter{gas: 50_000_000}() {} catch {}
|
||||
}
|
||||
} else {
|
||||
// Swing up - coordinated buys
|
||||
|
|
@ -365,7 +365,7 @@ contract ImprovedFuzzingAnalysis is Test, CSVManager {
|
|||
// Recenter while near discovery
|
||||
vm.warp(block.timestamp + 30 minutes);
|
||||
vm.prank(feeDestination);
|
||||
try lm.recenter() {} catch {}
|
||||
try lm.recenter{gas: 50_000_000}() {} catch {}
|
||||
|
||||
if (trackPositions) {
|
||||
_recordPositionData("Near_Discovery");
|
||||
|
|
@ -402,7 +402,7 @@ contract ImprovedFuzzingAnalysis is Test, CSVManager {
|
|||
// Recenter
|
||||
vm.warp(block.timestamp + (rand % 2 hours));
|
||||
vm.prank(feeDestination);
|
||||
try lm.recenter() {} catch {}
|
||||
try lm.recenter{gas: 50_000_000}() {} catch {}
|
||||
}
|
||||
|
||||
if (trackPositions && i % 3 == 0) {
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ contract RecordedFuzzingAnalysis is ImprovedFuzzingAnalysis {
|
|||
|
||||
vm.warp(block.timestamp + 1 hours);
|
||||
vm.prank(feeDestination);
|
||||
try lm.recenter() {} catch {}
|
||||
try lm.recenter{gas: 50_000_000}() {} catch {}
|
||||
|
||||
(, int24 tickAfter,,,,,) = pool.slot0();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue