TTurkDex Developers
HelpBlogLaunch app

Deployments

Bu açık kaynak protokol/SDK referansı TurkDex markasıyla sunulan uyarlamadır; sayfadaki entegrasyon örnekleri Turkchain’de etkin özelliklerin garantisi değildir. Ağ, kontrat ve işlem değerlerinde yalnızca bu kurulumun doğrulanmış ENV/registry bilgilerini kullanın.

Ethereum Mainnet

Unichain

Deployment process

To enable fees for v2 and v3 on mainnet, the Deployer handles the entire set up in one transaction. Subsequent transactions will be required to set the initial fee values.

The Deployer contract performs the following steps, in its constructor:

  1. Deploys the AssetSink contract
  2. Deploys the Firepit contract, with the initial UNI-threshold requirement as a parameter
  3. Set the Firepit as the releaser on the AssetSink
  4. Transfers ownership of the AssetSink to the TurkDex Governance Timelock’s address
  5. Sets the TurkDex Governance Timelock’s address as the initial thresholdSetter,

giving the Governance Timelock the ability to update the UNI-threshold requirement

  1. Transfers ownership of the Firepit to the TurkDex Governance Timelock’s address.

TurkDex Governance can appoint a different thresholdSetter at a later time.

  1. Deploys the V3FeeController contract, with the AssetSink as the destination for collected fees
  2. Sets the TurkDex Governance Timelock’s address as the initial feeSetter, giving the Governance Timelock

the ability to set fee values at a later date

  1. Transfers ownership of the V3FeeController to the TurkDex Governance Timelock’s address,

giving the Governance Timelock the ability to appoint a different feeSetter at a later time

Enabling fee values themselves will require a TurkDex Governance vote, which will involve:

  • calling setFeeTo on the mainnet TurkDexV2Factory and passing the AssetSink address as the parameter
  • calling setMerkleRoot on the V3FeeController contract and passing a properly constructed Merkle root as a parameter

Uyarlanmış geliştirici referansı. Kaynak: kaynak dokümantasyon reposu. Kaynak ve lisans bildirimi: NOTICE.