Coin contracts

To add more coins for use in modules, follow these steps

All tokens data is stored in contracts/tokens.json

Tokens set up by default are lzUSDT and lzUSDC

You can add new tokens using UI interface through specific module in Tools window:

Tools

You can also directly add to the json file found at contracts/tokens.json, here's example:

tokens.json
[
    {
        "symbol": "aptos",
        "contract": "0x1::aptos_coin::AptosCoin",
        "gecko_id": "aptos",
        "is_pancake_available": true,
        "is_abel_available": true,
        "is_liquid_swap_available": true
    },
    {
        "symbol": "usdc",
        "contract": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC",
        "gecko_id": "usd-coin",
        "is_pancake_available": true,
        "aptos_bridge_handle": "0x8957ca6dab8475411756bfbb17e93534cc15bd942c7f275234be5381c3a48dff",
        "is_abel_available": true,
        "is_thala_available": true,
        "is_liquid_swap_available": true
    },
    {
        "symbol": "usdt",
        "contract": "0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDT",
        "is_pancake_available": true,
        "gecko_id": "tether",
        "aptos_bridge_handle": "0x2e46d98566716dc078ca858162169242fd0e45d7f2f8fb4799767c17e0af99bd",
        "is_abel_available": true,
        "is_thala_available": true,
        "is_liquid_swap_available": true
    },
    {
        "symbol": "cake",
        "contract": "0x159df6b7689437016108a019fd5bef736bac692b6d4a1f10c941f6fbb9a74ca6::oft::CakeOFT",
        "gecko_id": "pancakeswap",
        "is_pancake_available": true,
        "aptos_bridge_handle": "0xba4efb408cd949a289e2966cf7f94a5910817772881c175a1a71748ef442638",
        "is_abel_available": true,
        "is_liquid_swap_available": true
    }
]

Gecko ID

To use the token comparison feature in the swap module, you must configure the token ID (like for MATIC in the screenshot) from CoinGecko.

Is available?

All the 'is_available' fields are used to determine if a coin is available on a specific protocol. If you're adding custom coins, make sure to fill out these parameters for each coin you include.

Aptos bridge handle needs for claim after coin bridged from EVM chain, you can find more references in Layer Zero and The Aptos Bridge docs.

Last updated