Skip to content

feat: add chainId 138 (DeFi Oracle Meta Mainnet) #3

Description

@defiQUG

feat: add chainId 138 (DeFi Oracle Meta Mainnet) to ChainPilot

Network: DeFi Oracle Meta Mainnet (chainId 138, DefiLlama dfio_meta_main)

ChainPilot v0.3.0 rejects --chain-id 138 even with --rpc-url (UnsupportedChain in resolve_token). Please add chain 138 and enable route API support.

Suggested chain138 config

Field Value
chain_id 138
name DeFi Oracle Meta Mainnet
rpc_urls public Chain 138 RPC (see web3-rpc-provider)
dodo_approve 0xEA5Be91d0A1EdA6a2efc80f7211c30584508D56D
weth 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

Reference patch: see Defi-Oracle-Meta-Blockchain/proxmox config/chain138-chainpilot-upstream/chain138.rs (submitted alongside contract-request#30).

Backend dependencies

  1. contract-request#30
  2. api.dodoex.io/route-service/v2/widget/getdodoroute?chainId=138
  3. Tokenlist includes chain 138 canonical tokens (cUSDT, cUSDC, WETH, …)

Interim

Operators on chain 138 can use DBIS pnpm chain138:swap (ChainPilot-compatible JSON, on-chain PMM routing) until ChainPilot ships native support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions