# =============================================================================
# Add these to .env (smom-dbis-138) — DODO PMM and pools (Chain 138)
# =============================================================================
# Run from repo root: ./scripts/deployment/set-missing-dotenv-chain138.sh
# Or copy the needed lines into .env manually. Do NOT commit .env.

# DODO PMM Provider (deployed); required for liquidity/quoting scripts
DODO_PMM_PROVIDER_ADDRESS=0x3f729632E9553EBacCdE2e9b4c8F2B285b014F2e

# Official DODO V2 DVM stack (Chain 138)
DODO_DVM_FACTORY=0xc93870594C7f83A0aE076c2e30b494Efc526b68E
DODO_VENDING_MACHINE_ADDRESS=0xb6D9EF3575bc48De3f011C310DC24d87bEC6087C
DODO_PMM_INTEGRATION_ADDRESS=0x86ADA6Ef91A3B450F89f2b751e93B1b7A3218895

# Local quote-side mirror stables (Chain 138); optional — see deploy runbooks
OFFICIAL_USDT_ADDRESS=0x004b63A7B5b0E06f6bB6adb4a5F9f590BF3182D1
OFFICIAL_USDC_ADDRESS=0x71D6687F38b93CCad569Fa6352c876eea967201b

# PMM pool addresses (optional; RegisterDODOPools reads from integration if unset)
# Canonical current stable pools were recalibrated on 2026-04-02 with i=1e18 and k=0
# so equal-reserve stable pairs quote at true 1:1 on the official DODO V2 DVM stack.
POOL_CUSDTCUSDC=0x9e89bAe009adf128782E19e8341996c596ac40dC
POOL_CUSDTUSDT=0x866Cb44b59303d8dc5f4F9E3E7A8e8b0bf238d66
POOL_CUSDCUSDC=0xc39B7D0F40838cbFb54649d327f49a6DAC964062

# Canonical stable-pool creation parameters for Chain 138 official DVM
DODO_LP_FEE_BPS=10
DODO_INITIAL_PRICE_1E18=1000000000000000000
DODO_K_FACTOR_1E18=0
DODO_ENABLE_TWAP=false

# Token-aggregation (quote API): same integration address so indexer can index DODO pools
CHAIN_138_DODO_PMM_INTEGRATION=0x86ADA6Ef91A3B450F89f2b751e93B1b7A3218895

# Optional USDW public-wrap surfaces (BSC / Polygon) for cWUSDW rollout
CWUSDW_ADDRESS_56=0xC2FA05F12a75Ac84ea778AF9D6935cA807275E55
# CWUSDW_ADDRESS_137=0x...
USDW_NATIVE_ADDRESS_56=0xed75ad08f416d4e53e4d45dd5140a4c8b84f39fb
USDW_NATIVE_ADDRESS_137=0x3deb0c60f0be9d9b99da83a2b6b2ee790f5af37a
# USDW_WRAP_VAULT_56=0x...
# USDW_WRAP_VAULT_137=0x...

# Planned ALL Mainnet AUSDT -> cWAUSDT -> cAUSDT corridor
AUSDT_ADDRESS_651940=0x015B1897Ed5279930bC2Be46F661894d219292A6
CAUSDT_ADDRESS_138=0x5fdDF65733e3d590463F68f93Cf16E8c04081271
CWAUSDT_ADDRESS_56=0xe1a51Bc037a79AB36767561B147eb41780124934
CWAUSDT_ADDRESS_137=0xf12e262F85107df26741726b074606CaFa24AAe7
CWAUSDT_ADDRESS_43114=0xff3084410A732231472Ee9f93F5855dA89CC5254
CWAUSDT_ADDRESS_42220=0xC158b6cD3A3088C52F797D41f5Aa02825361629e

# Planned ALL Mainnet gold corridor
# 138 cXAUC/cXAUT -> source-leg cWXAUC/cWXAUT -> 651940 cWAXAUC/cWAXAUT -> 651940 cAXAUC/cAXAUT
# CAXAUC_ADDRESS_651940=0x...
# CAXAUT_ADDRESS_651940=0x...
# CWAXAUC_ADDRESS_651940=0x...
# CWAXAUT_ADDRESS_651940=0x...

# Add liquidity (run-pmm-full-parity or AddLiquidityPMMPoolsChain138.s.sol); amounts in token units (6 decimals, e.g. 1000000e6 = 1M)
# ADD_LIQUIDITY_BASE_AMOUNT=1000000e6
# ADD_LIQUIDITY_QUOTE_AMOUNT=1000000e6

# Bridge quote / orchestration (Flow C: swap-bridge-swap). QuoteService: createQuoteServiceFromEnv()
# BRIDGE_REGISTRY_ADDRESS=0x...
# ENHANCED_SWAP_ROUTER_ADDRESS=0x...   # optional, source-chain router
# DESTINATION_RPC_URL=https://...      # optional, destination chain RPC
# DESTINATION_SWAP_ROUTER_ADDRESS=0x... # optional, destination DEX router
