fix: Optimize fuzzing and fix CSV buffer accumulation
- Deploy Uniswap factory once before all runs (saves ~1.16M gas per run) - Fix CSV buffer accumulation bug by clearing buffer between runs - Add clearCSV() function to CSVManager for proper buffer management - Each fuzzing run now gets its own clean CSV with correct token0isWeth values - Comment out failing console.log in Optimizer.t.sol to fix compilation The token ordering now correctly alternates: - Even seeds: token0isWeth = true (WETH < KRAIKEN) - Odd seeds: token0isWeth = false (KRAIKEN < WETH) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e5d47b1890
commit
db23d756e9
3 changed files with 19 additions and 10 deletions
|
|
@ -210,7 +210,8 @@ contract OptimizerTest is Test {
|
|||
|
||||
// Log some interesting cases
|
||||
if (anchorWidth == 10 || anchorWidth == 80) {
|
||||
console.log("Bound hit - Staking:", percentageStaked / 1e16, "%, Tax:", averageTaxRate / 1e16, "%, Width:", anchorWidth);
|
||||
// Commented out due to console.log compilation issue
|
||||
// console.log("Bound hit - Staking:", percentageStaked / 1e16, "%, Tax:", averageTaxRate / 1e16, "%, Width:", anchorWidth);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue