Through the Explorer

Before you begin adding liquidity, you must prepare several things:

  • Your Wallet with the token you want to deposit

  • Your Token Contract (Example)

  • Ralayer Contract for your token (Example)

Deposit liquidity

Step1 : Approve the Relayer Contract as Spender on Token Contract

  • Visit the token contract page on the explorer.

  • Navigate to the Contract tab - Write Contract and then connect your wallet

  • Locate the approve section

  • Input two fields in the approve session to approve the Relayer Contract

    • spender (address): Fill in with Relayer Contract Address (do not enter your wallet address here).

    • amount (uint256): Input the quantity you wish to approve with its corresponding decimals. For instance, if you want to approve 50 tokens and the decimal is 18, then input 50,000,000,000,000,000,000.

    • If you are not familiar with the decimal, you can locate it in the overview section of your token contract page on the explorer.

  • Complete the approval by sending the transaction.

Step2 : Go to Relayer Contract to Execute Deposit.

  • Visit the relayer contract page on the Explorer.

  • Navigate to the Contract tab - Write Contract and then connect your wallet

  • Locate the 5. deposit section

  • Input two fields in the 5. deposit session to deposit your token

    • deposit: Keep 0

    • amount (uint256): Input the quantity you want to deposit with its corresponding decimals. For instance, if you want to deposit 50 tokens and the decimal is 18, then input 50000000000000000000.

    • If you are not familiar with the decimal, you can locate it in the overview section of your token contract page on the explorer.

  • Complete the deposit by sending the transaction.

Withdraw liquidity

Step1 : Approve the Relayer Contract as Spender on Relayer Contract

  • Visit the Relayer contract page on the explorer.

  • Navigate to the Contract tab - Write Contract and then connect your wallet

  • Find the 2. approve section

  • Input two fields in the 2. approve session to approve the Relayer Contract

    • spender (address) : Fill in with Relayer Contract Address (do not enter your wallet address here).

    • amount (uint256) : Input the quantity you wish to approve with its corresponding decimals. For instance, if you want to approve 50 tokens and the decimal is 18, then input 50,000,000,000,000,000,000.

    • If you are not familiar with the decimal, you can locate it in the overview section of your token contract page on the explorer.

  • Complete the approval by sending the transaction.

Step2 : Execute Withdraw on Relayer Contract

  • Locate the 19. withdraw section on relayer contract page

  • Input amount fields in the 19. withdraw session to withdraw your token

    • amount (uint256) : Input the quantity you want to withdraw with its corresponding decimals. For instance, if you want to withdraw 50 tokens and the decimal is 18, then input 50000000000000000000.

  • Complete the withdraw by sending the transaction.

Last updated