EuclidSwap Testnet — Chapter 3— Making Swaps

Exploring the EuclidSwap Interface

Euclid Protocol
6 min readNov 28, 2024

EuclidSwap has a streamlined interface to help you easily navigate and explore various functions. The app’s primary features are organized into five sections, each with a specific focus. If you missed the earlier chapter on adding testnet tokens, click HERE. If you want to skip straight to the testnet itself, click HERE for the login page.

The Five Key Sections in Euclid Swap

Swap: Make token swaps across different blockchains. This is your go-to section for asset exchanges.

Pools: Participate in liquidity pools by either adding liquidity to existing pools or creating new ones, gaining access to liquidity provider (LP) tokens as you do so.

Tokens: This section displays all your available assets, including both regular and voucher tokens. It’s where you can review token balances and redeem vouchers.

Chains: View the list of chains integrated with Euclid, and access your addresses on each.

Withdraw: Here, you can redeem your voucher tokens for regular tokens on the chain of your choice.

Performing a Swap

Swapping tokens on EuclidSwap is simple, and the process is fully customizable. Here’s a step-by-step guide to making your first swap.

Step 1: Connect to the Chain

To make a swap, connect to the chain holding your testnet tokens. For example, if you have INJ tokens from Injective, ensure you’re connected to the Injective chain within EuclidSwap.

Step 2: Understand Voucher Tokens

In Euclid Swap, you’ll encounter two main types of tokens:

  • Regular Tokens: Native or CW20 tokens that are recognized on specific chains.
  • Voucher Tokens: Tokens unique to Euclid that mimic regular tokens and are used for swaps on the platform. These tokens can later be redeemed on any chain. You can read more about Voucher Tokens in the next chapter.

Note: Voucher tokens aren’t stored in your wallet like regular tokens. Instead, you can view them in the “Tokens” section within EuclidSwap.

Step 3: Set Your Swap Preferences

  • Choose Tokens to Swap: Select the token you’d like to swap and the token you’d like to receive.
  • Toggle Balance Type: Decide whether to swap using regular tokens or voucher tokens by selecting from the top-right toggle. If this is your first time performing this action, you won’t have any vouchers yet.

Step 4: Adjust Slippage Tolerance

Slippage is the difference between the expected and actual trade price. You can adjust this by selecting the “Settings” icon and entering your preferred slippage percentage (default is set to 0.3%).

Step 5: Preview and Execute Your Swap

Once you’re ready:

  1. Enter the amount of tokens to swap, then click “Preview Transaction”.
  2. Euclid will automatically select the output chain with the most available tokens, but you can customize this.
  3. Review your transaction details, including the expected token output and chain selection.
  4. Click “Swap” to complete your transaction.

You can check the status of the transaction by selecting the dropdown as seen below.

This will open the following panel which contains:

  • The chain the funds will be sent to
  • The address receiving the funds
  • The status of the swap
  • A link to the blockchain explorer where you can find the transaction details

Once the swap is complete, the status will change to “Success”. After the swap, navigate to the “Tokens” section and check the relevant chain to confirm your token balance. Make sure you are connected to the output chain used in the swap.

What’s Next?

Now that you’ve completed a single-chain swap, you’re ready to explore multi-chain swaps, where tokens can be divided across multiple chains in one transaction.

Performing a Multi-Chain Swap

EuclidSwap’s multi-chain swap feature lets you split token transfers across multiple blockchains. Let’s walk through setting up a swap that distributes tokens to three different chains.

Step 1: Connect to the Source Chain

To perform a multi-chain swap, connect to the chain where your testnet tokens are stored. For instance, if you’re using INJ tokens, connect to the Injective chain through EuclidSwap.

Step 2: Preview Your Swap

Enter the amount you want to swap and select “Preview Transaction”. By default, Euclid prioritizes the output chain with the highest liquidity for the tokens you’re receiving. Here’s where you can start customizing.

Step 3: Divide Tokens Across Chains

Use the “Limit” function to allocate specific amounts to each chain. In this example, let’s split our tokens evenly across three chains:

First Chain (e.g., Stargaze): Set a custom limit of 0.1 EUCL for Stargaze.

Second Chain (e.g., Nibiru): Add a second chain, select Nibiru, and set a limit of 0.1 EUCL

Third Chain (e.g. Archway): Add Archway without setting a limit, meaning any remaining tokens from the transaction will be sent there by default.

Step 4: Review and Confirm the Swap

In the “Expected Receive” section, review the split distribution to ensure it’s as intended. You should see:

  • 0.1 EUCL on Stargaze
  • 0.1 EUCL on Nibiru
  • Remaining EUCL on Archway

Once everything looks correct, click “Swap” to execute the transaction. To confirm the balance distribution, check your EUCL token balance under “Tokens” and switch between chains to view each allocation.

Note: The multi-chain swap feature allows you to efficiently distribute assets across chains, optimizing liquidity management and access to assets across the Euclid ecosystem.

Swapping using Voucher Tokens

Voucher tokens on EuclidSwap work similarly to regular tokens but are exclusive to the Euclid platform and aren’t directly usable outside of it. To learn more about them jump to Chapter 4 of our guides.

If you want to get started on the app, Click HERE for the login page.

Euclid Protocol’s vision is to bring users back to the fundamentals of DeFi — empowering users with transparency, accessibility, and control over their financial activities — making DeFi great again!

Check out our X feed thread for more insights and updates. Additional links to our socials are here: TG Web Blog

--

--

Euclid Protocol
Euclid Protocol

Written by Euclid Protocol

Modular, Accessible, Unified Liquidity Layer

No responses yet