As we get closer to v4’s launch, we’re excited to invite the community to participate in a final step: choosing the deployment address.
The Uniswap v4 Address Mining Challenge starts today and will be open until December 1st, 2024. Everyone is invited to mine and submit potential contract addresses for the v4 core contract. The official deployment address will be determined based on the number of leading zeros and the prominence of the number 4 in its structure.
Uniswap v4 is the latest evolution of the Uniswap Protocol, transforming it into a developer platform, unlocking new market structures and more assets to serve more users. v4 enables customizability, but it also saves LPs and swappers money. With architecture that is optimized for gas savings, pools on v4 are expected to be 99.99% cheaper to create and swappers will have significant savings on multi-hop swaps.
How to participate
The challenge will run from November 10th, 2024 to December 1st, 2024. Uniswap v4 will be deployed using the CREATE2 function. This function generates deterministic addresses using:
- The hash of the initcode for Uniswap v4: 0x94d114296a5af85c1fd2dc039cdaa32f1ed4b0fe0868f02d888bfc91feb645d9
- The deployer address for Uniswap v4: 0x48E516B34A1274f49457b9C6182097796D0498Cb
- Your choice of a salt*
By combining these elements, you can generate different candidate addresses. Participants can use tools like create2crunch to generate and submit salts, corresponding to candidate addresses, to the challenge smart contract on Ethereum mainnet. This contract will score and rank addresses in real-time, tracking scores on the v4 Address Challenge Leaderboard as entries come in. Addresses will be scored based on the following criteria:
- 10 points for each leading 0 nibble
- 40 points if the address starts with four consecutive 4s
- 20 points if the first nibble after the four 4s is not a 4
- 20 points if the last four nibbles are all 4s
- 1 point for each 4 elsewhere in the address
*Participants can submit as many unique addresses as they want during the challenge. To make sure that only you can submit your salt, set the first 20 bytes of your salt to the Ethereum address executing the submission. Alternatively you can leave the first 20 bytes as 0 bytes, but your submission could be frontrun. The last 12 bytes of the salt can be anything you choose.
Challenge rules
- Scoring Validity: Only addresses with a first non-zero nibble of 4 are valid for scoring.
- Submission Requirements: Each submitted address must be unique; resubmitting the same address will result in onchain errors.
Submissions will be checked and verified by the challenge contract. The highest-scoring address wins, and in case of a tie, the earliest submission takes the prize.
See full v4 Mining Challenge rules and scoring criteria here.
Track addresses on the leaderboard
Once the challenge ends and an address is determined, this address will become the official Uniswap v4 deployment address, immortalized onchain as part of v4’s launch! To follow along in real-time as addresses are submitted and scored, check out the v4 Address Mining Challenge Leaderboard.
Follow @Uniswap on Twitter for updates on v4 and Uniswap Labs products.