EuclidSwap Testnet — Chapter 4— Using Voucher Tokens

Euclid Protocol
4 min readNov 28, 2024

--

Understanding the Role of Voucher Tokens Within EuclidSwap If you missed the earlier chapter on performing a swap, click HERE. This chapter will cover everything related to voucher tokens: their purpose, benefits, and functionality within EuclidSwap. If you want to skip straight to the testnet itself, click HERE for the login page.

What Are Voucher Tokens?

Voucher tokens mimic regular tokens within Euclid’s ecosystem. They offer speed, reduced gas costs, and flexibility, usable across chains for swaps and redeemable into native tokens anytime. They are exclusive to the Euclid platform and aren’t directly usable outside of it.

Benefits of Using Vouchers

  • Faster settlement and lower fees inside the Euclid ecosystem.
  • Flexibility — hold vouchers on any chain without extra swaps. This is useful for users that don’t necessarily need their token to be on a specific chain at the current time.

Swapping Native Tokens for Voucher Tokens

  • Connect to the chain with tokens (e.g., INJ on Injective).
  • Select tokens, then swap. Here we are swapping INJ tokens into NIBI tokens. We then select “Preview Transaction” in order configure the swap.
  • Note: Keep the token type being swapped in as native, we want to swap from native to voucher in this example.
  • For this swap, we’d receive 1.35 NIBI tokens. Let us receive 0.5 tokens as native and the rest as voucher, by customizing the limit. This specifies the amount of native tokens to be released on the output chain. If we use a limit less than the expected receive, the rest of the tokens will be provided as voucher tokens.
  • Note: Voucher tokens are always credited to the voucher balance of the source chain (Injective in our case) and NOT the output chain (Nibiru in our case).
  • As seen below, by setting the limit to 0.5, the remaining amount is added to the “Voucher Balance”. The final step will be selecting “Swap” and approving the transaction.
  • You can then view voucher balances via the “Tokens” tab.

Swap Vouchers for Native Tokens

Making swaps using vouchers is the same as using any regular token.

  • Toggle to “Voucher Tokens” in the swap interface, select tokens, and complete the transaction.
  • Note: Native tokens may not be available as an option if the selected token does not exist on the connected chain. In such cases, a voucher token can be used instead.

Deposit Native Tokens into Vouchers

Instead of going through a swap, you can use the “Deposit” option in the “Tokens” page if you wish to swap into vouchers.

  • In “Tokens,” select “Deposit” to swap native tokens for vouchers on any chain.
  • Example: Convert all INJ into vouchers.
  • Selecting deposit will take you to the following page.
  • Select the amount of native tokens to swap, and the output chain to receive the vouchers. In the example above, we’re swapping 3.99 native INJ from the Injective chain into voucher tokens on Stargaze.
  • Note: Vouchers offer flexibility, as they can be on any chain. For example, native INJ is not available on most of the chains above, but using vouchers, you can bypass this and have your INJ tokens on any of these chains.

Withdraw Voucher Tokens Into Native

This process is the opposite of the above. You can take deposited voucher tokens, and swap them for native using the “Withdraw” section.

  • Access the “Withdraw” section, select the amount and target chain, and confirm the swap to redeem vouchers as native tokens.
  • Note: Ensure you’re connected to a chain where you have voucher tokens available.
  • You can select the amount and destination chain to release the native tokens on. Once completed, you can check your balance, and will notice the voucher tokens have been redeemed for native ones.
  • Note: Unlike vouchers, native tokens are not available on all chains.

With this added flexibility, voucher tokens are an efficient way to navigate across chains without extra transactions, and associated fees.

If you want to get started on the app, Click HERE for the login page. To find additional articles remember to search our profile.

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

--

--