
Deterministic pair addresses
3.6 Deterministic pair addresses
As in DEX Raiden v1, all DEX Raiden v1.1 pair contracts are instantiated by a single factory contract.
In DEX Raiden v1, these pair contracts were created using the CREATE opcode, which meant that the address of such a contract depended on the order in which that pair was created. DEX Raiden v1.1 uses Ethereum’s / Binance Smart Chain's new CREATE2 opcode to generate a pair contract with a deterministic address. This means that it is possible to calculate a pair’s address (if it exists) off-chain, without having to look at the chain state.

Last updated