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

metamorphic contracts #38

Closed PraveenAlexis closed 1 year ago

PraveenAlexis commented 1 year ago

Hi,

Sorry for this but can someone explain how can i get this done? im asking because there is a lack of documentation in this

"Fill in the searcher address in Huff contract and deploy either straight onchain or via create2 using a metamorphic like factory."

Cionn3 commented 1 year ago

You can use Keyless Create2 Factory to deploy the huff contract.

Install huff compiler curl -L get.huff.sh | bash

Get the contracts bytecode with huffc src/sando.huff --bytecode

Copy the contracts bytecode and use it to uploaded with the SafeCreate2 method, you can use this nodejs script https://github.com/Cionn3/create2-factory-contract-deploy

Make sure you run the huff compiler from the contracts folder

PraveenAlexis commented 1 year ago

is this an alternative method to using metamorphic factory?

Cionn3 commented 1 year ago

i think basically its the same thing, you can also find more info here: https://github.com/0age/metamorphic