Skip to content

Commit

Permalink
Update constants.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
BitFancy authored Nov 27, 2024
1 parent 25fbc10 commit 1ad2159
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/common/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,3 @@ impl Env {
}
}
}

pub static COINBASE: &str = "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5"; // Flashbots Builder

pub static WETH: &str = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2";
pub static USDT: &str = "0xdAC17F958D2ee523a2206206994597C13D831ec7";
pub static USDC: &str = "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";

/*
Can figure out the balance slot of ERC-20 tokens using the:
EvmSimulator::get_balance_slot method
However, note that this does not work for all tokens.
Especially tokens that are using proxy patterns.
*/
pub static WETH_BALANCE_SLOT: i32 = 3;
pub static USDT_BALANCE_SLOT: i32 = 2;
pub static USDC_BALANCE_SLOT: i32 = 9;

pub static WETH_DECIMALS: u8 = 18;
pub static USDT_DECIMALS: u8 = 6;
pub static USDC_DECIMALS: u8 = 6;

0 comments on commit 1ad2159

Please sign in to comment.