v4-periphery icon indicating copy to clipboard operation
v4-periphery copied to clipboard

feat: add UniswapV4DeployerCompetition

Open marktoda opened this issue 1 year ago • 1 comments

this commit adds a contract that creates a competition to generate the vanity address for Uniswap V4. It does so using CREATE2 salts, pre-calculating the address at which the contract will be deployed and applying a score to the address based on its vanity. leading 0's are weighted most heavily, followed by other 0's and 4's. The winner receives an NFT, a bounty, and deployer privileges

Related Issue

Which issue does this pull request resolve?

Description of changes

marktoda avatar Jun 04 '24 21:06 marktoda

hackathon project :D

marktoda avatar Jun 04 '24 21:06 marktoda

Probably want to add some frontrunning protection to updateBestAddress e.g. by adding require(msg.sender == address(bytes20(salt)), "Not original miner"); this still leaves 96-bits of entropy for mining

Philogy avatar Oct 28 '24 20:10 Philogy