diff --git a/foundry.toml b/foundry.toml index 3bd62b9c..c981bed5 100644 --- a/foundry.toml +++ b/foundry.toml @@ -8,7 +8,6 @@ fs_permissions = [ { access = "read", path = "./lib/morpho-blue/out/"} ] libs = ["lib"] -optimization_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. [profile.default.fuzz] runs = 16 @@ -26,10 +25,11 @@ wrap_comments = true via-ir = true test = "/dev/null" script = "/dev/null" +optimizer_runs = 80000 [profile.test] via-ir = false -# See more config options https://github.com/foundry-rs/foundry/tree/master/config +# See more config options https://github.com/foundry-rs/foundry/tree/master/crates/config diff --git a/hardhat.config.ts b/hardhat.config.ts index cefaf3a1..b19e0df3 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -39,7 +39,7 @@ const config: HardhatUserConfig = { settings: { optimizer: { enabled: true, - runs: 200, + runs: 80000, }, viaIR: true, }, @@ -49,7 +49,7 @@ const config: HardhatUserConfig = { settings: { optimizer: { enabled: true, - runs: 200, + runs: 80000, }, viaIR: true, },