Lumia - The RWA Chain
  • What is Lumia Chain?
  • Polygon
    • CDK
    • AggLayer
    • Miden
    • Passport
  • ⛓️Lumia
    • Architecture
    • Roadmap
    • LUMIA Token
      • Token Swap Guide (UI)
      • Token Swap Guide (SmartContract)
    • 普通话 - LUMIA 代币
    • rwaUSD
    • HyperNodes
    • zkProvers
      • zkProver Network (zkN) via Gevolut
    • Sequencer
      • Decentralised Sequencer Network (DCN)
    • Data Availability
      • Validium
      • Volition (Enhanced Validium)
      • What is Avail DA?
        • How does AvailDA Scale?
        • Benefits of AvailDA
      • Lumia DA - Lightclient Nodes
    • Lumia Stream
      • Node Owned Liquidity
      • Liquidity Restaking
    • Interoperability
      • Polygon AggLayer
      • HyperLane
    • KYC
    • Chain & Account Abstraction with Intents
      • Particle Connect on Lumia
    • Real World Assets (RWA) on Lumia
  • 🛠️Build
    • Introduction
      • Accounts and Wallets
      • Setup Metamask with Lumia Chain
      • Bridge to/ from Lumia L2
      • Setup FoxWallet with Lumia Chain
    • Explorers
    • Build Environment
      • RPC
        • RPC Guide
      • Add Lumia Network to MetaMask
      • Testnet Tokens
    • SmartContracts
      • Deployment
        • Hardhat
        • Truffle
      • Verify
        • Hardhat
        • Truffle
      • Interact
      • Relay
      • Web3 Functions
    • On-Chain KYC
    • Oracles
      • API3
      • Supra
      • Commodity Prices
    • Indexers
      • Indexing with TheGraph
      • Indexing with Goldsky
    • zkNode
      • Run Local Validium Node
      • Run an RPC
        • JSON RPC Endpoints
      • Gas Fees
    • DA Lightclient
    • CDK Repos
    • rwaUSD
      • rwaUSD: Overcollateralizing
      • rwaUSD: Bridging
    • FAQs
Powered by GitBook
On this page
  • Token swap via SmartContract (Explorer).
  • Token Swap using Contracts
  • Ethereum SmartContract ABI:

Was this helpful?

  1. Lumia
  2. LUMIA Token

Token Swap Guide (SmartContract)

PreviousToken Swap Guide (UI)Next普通话 - LUMIA 代币

Last updated 7 months ago

Was this helpful?

This guide will walk you through the process of performing a token swap via SmartContract Explorer.

1. Introduction

2. Click "Search by Address / Txn Hash / Block / Token / Domain Name"

Begin by searching for the specific address or transaction hash.

3. Fill address bar with "0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135"

Fill in contract address provided.

4. Click "0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135"

Locate and click on the provided address.

5. Click here

Proceed by clicking on the designated link.

6. Click "Contract"

Navigate to the 'Contract' section.

7. Click "Write Contract"

Select 'Write Contract' to initiate the contract interaction.

8. Click "Connect to Web3"

Establish a connection to Web3 for further actions.

9. Click "MetaMask Popular"

Choose 'MetaMask' from the options available.

10. Click "convert"

Click on function named "Convert".

11. Click "ornAmount"

Input ORN token without its decimals i.e. for 1000 ORN just input 1000.

12. Fill in amount.

Enter token amount in the provided field.

13. Click here

Proceed by clicking on the + icon to handle decimals.

14. Adjust decimal placement

15. Select 18 decimals.

Fill in the text box with "Select 10¹⁸"

16. Click "Add"

17. Click "Write"

Finalize the token swap by clicking on 'Write'.

This guide covered the steps involved in conducting a token swap through the SmartContract Explorer on Etherscan (and BSCScan), including connecting to Web3, selecting tokens, and finalizing the swap.

Token Swap using Contracts

For those looking to conduct a token swap through direct SmartContract integration, you can use the provided Ethereum and BNB Chain SmartContract addresses. By interacting directly with these contracts, you can execute token swaps without relying on third-party interfaces, providing a more granular level of control over your transactions.

Ethereum SmartContract ABI:

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IERC20","name":"_orion","type":"address"},{"internalType":"contract IERC20","name":"_lumia","type":"address"},{"internalType":"uint256","name":"_conversionScaleFactor","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConversionDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ornAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lumiaAmount","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"burnAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"conversionScaleFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ornAmount","type":"uint256"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isConversionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumia","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumiaDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orion","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orionDecimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleIsConversionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

BNB Chain SmartContract ABI:

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"contract IERC20","name":"_orion","type":"address"},{"internalType":"contract IERC20","name":"_lumia","type":"address"},{"internalType":"uint256","name":"_conversionScaleFactor","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ConversionDisabled","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"ornAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lumiaAmount","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"burnAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"conversionScaleFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"ornAmount","type":"uint256"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isConversionEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lumia","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orion","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleIsConversionEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

BNB Chain SmartContract:

Go to or

Introduction
Click 'Search by Address / Txn Hash / Block / Token / Domain Name'
Fill address bar with '0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135'
Click '0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135'
Click here
Click 'Contract'
Click 'Write Contract'
Click 'Connect to Web3'
Click 'MetaMask Popular'
Click 'convert'
Click 'ornAmount'
Fill in amount.
Click here
Click '10¹⁸'
Select 18 decimals.
Click 'Add'
Click 'Write'

For further information on how to troubleshoot common issues or to learn more about using the SmartContract Explorer, refer to the . If you encounter any specific problems, consulting the FAQ section or reaching out to their support team can provide additional assistance.

Ethereum SmartContract:

⛓️
etherscan.io
bscscan.io
Etherscan documentation
https://etherscan.io/address/0xFBaa4E673D0cD1159beD704Fdc0e4379a41c2135
https://bscscan.com/address/0x7c2eb61ca9fb89844b10f62df23490e43fffe913
Token swap via SmartContract (Explorer).