Init code generate in sushiswap

Greetings to all the community, we are creating an exchange through a fork of sushiswap.

We want to generate our own INIT CODE in our smart contracts.

How can we do it?

Hi, welcome! :wave:

Maybe you can use this function have a try:

function pairCodeHash() external pure returns (bytes32) {
    return keccak256(type(UniswapV2Pair).creationCode);
}

sushiswap/UniswapV2Factory.sol at canary ยท sushiswap/sushiswap (github.com)