mouseless0x / rusty-sando

Implementation of a competitive v2/v3 multi-meat MEV sandwich bot written using Rust and Huff.
MIT License
782 stars 256 forks source link

huff WETH #44

Closed imcodingideas closed 1 year ago

imcodingideas commented 1 year ago

Hello,

I would like to ask for some guidance on which Constants should I care about when I am creating the contract?

https://github.com/mouseless-eth/rusty-sando/blob/master/contract/src/sando.huff#L17C67-L17C67

I understand that the SEARCHER is the same key from SEARCHER_PRIVATE_KEY https://github.com/mouseless-eth/rusty-sando/blob/master/bot/.env.example#L2

What about the WETH? Is this the WETH address that Im using in the smart contract?

PraveenAlexis commented 1 year ago

@imcodingideas sorry im not helpful here, however i have a few questions regarding SEARCHER_PRIVATE_KEY and FLASHBOTS_AUTH_KEY.

is FLASHBOTS_AUTH_KEY a wallet address? is SEARCHER_PRIVATE_KEY the private key of that wallet?

imcodingideas commented 1 year ago

I had the same questions. An awesome person on this repo helped me privately, and another publicly here https://github.com/mouseless-eth/rusty-sando/issues/39#issuecomment-1666423362

I tried to add this info into the README but @mouseless-eth didn't want to recreate the internet which is fair. We all start somewhere.

What is the FLASHBOTS_AUTH_KEY?

The FLASHBOTS_AUTH_KEY is utilized as a method to track your representation with Flashbots. If you are setting up for the first time, refer to MetaMask's guide on creating an additional account in your wallet. The FLASHBOTS_AUTH_KEY is any private key. It's recommended to generate a new one from MetaMask or a similar service, and use an unfunded one. This key is used to establish your reputation on Flashbots.

What is the SEARCHER_PRIVATE_KEY?

The SEARCHER_PRIVATE_KEY corresponds to your private key. This key should be updated in your environment variables. It's this key that will be responsible for paying fees and utilizing the contract. Remember to update it here.