From 370fe47a11cef2890bcb00ff193efe444835f86f Mon Sep 17 00:00:00 2001 From: Anirudh Suresh Date: Mon, 13 Jan 2025 16:52:01 +0000 Subject: [PATCH] fix CI via ir (#325) * test * make change to server * add optimizier settings to permit2 --- auction-server/src/opportunity/service/get_quote.rs | 2 +- contracts/evm/foundry.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/auction-server/src/opportunity/service/get_quote.rs b/auction-server/src/opportunity/service/get_quote.rs index 81e85513..cfc1df5f 100644 --- a/auction-server/src/opportunity/service/get_quote.rs +++ b/auction-server/src/opportunity/service/get_quote.rs @@ -141,7 +141,7 @@ impl Service { ProgramSvm::SwapKamino => { entities::OpportunitySvmProgram::SwapKamino(entities::OpportunitySvmProgramSwap { user_wallet_address: quote_create.user_wallet_address, - // TODO*: we should eventually determine this more intelligently + // TODO*: we should determine this more intelligently fee_token: entities::FeeToken::InputToken, referral_fee_bps: quote_create.referral_fee_bps, }) diff --git a/contracts/evm/foundry.toml b/contracts/evm/foundry.toml index 430a5ca3..d8ee237d 100644 --- a/contracts/evm/foundry.toml +++ b/contracts/evm/foundry.toml @@ -4,11 +4,17 @@ out = "out" libs = ["lib"] fs_permissions = [{ access = "read-write", path = "./"}] solc = "0.8.20" +optimizer = true +optimizer_runs = 200 +via_ir = true [profile.permit2] src = "permit2" solc = "0.8.17" test = "permit2" script ="permit2" +optimizer = true +optimizer_runs = 200 +via_ir = true # See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options