Osmosis Swap Fees

    Have you ever considered the fee of your transaction at Osmosis? In this dashboard, we deal with the transaction fee of various osmosis network tokens (swap to & swap from)

    db_img

    Overview

    In this dashboard, I will answer this question from Flipside Crypto:

    • Q21. Do fees on Osmosis differ when users swap to or from different tokens?
    • On average, which tokens have the highest and lowest swap fees on Osmosis?

    Introduction

    What is Osmosis (OSMO)?

    • Osmosis is an automated market maker (AMM) built with the Cosmos SDK; it specializes in the InterchainDeFi movement (Tendermint-based blockchains) in the Cosmos ecosystem. In other words, Osmosis is a decentralized exchange specifically built for Cosmos, with plans to expand to more blockchains.

    • Think of Cosmos as the sandbox, and Osmosis as something that can connect all the various dApps. As a DEX, Osmosis nurtures a heterogeneous and interoperable cross-chain trading experience.

    Types of fees in the osmosis network

    Fees

    • In addition to liquidity mining, Osmosis provides three sources of revenue: transaction fees, swap fees, and exit fees.

    TX Fees

    • Transaction fees are paid by any user to post a transaction on the chain. The fee amount is determined by the computation and storage costs of the transaction. Minimum gas costs are determined by the proposer of a block in which the transaction is included. This transaction fee is distributed to OSMO stakers on the network. Validators can choose which assets to accept for fees in the blocks that they propose. This optionality is a unique feature of Osmosis.

    Swap Fees

    • Swap fees are fees charged for making a swap in an LP pool. The fee is paid by the trader in the form of the input asset. Pool creators specify the swap fee when establishing the pool. The total fee for a particular trade is calculated as percentage of swap size. Fees are added to the pool, effectively resulting in pro-rata distribution to LPs proportional to their share of the total pool.

    Exit Fees

    • Osmosis LPs pay a small fee when withdrawing from the pool. Similar to swap fees, exit fees per pool are set by the pool creator. Exit fees are paid in LP tokens. Users withdraw their tokens, minus a percent for the exit fee. These LP shares are burned, resulting in pro-rata distribution to remaining LPs.

    Method

    ->

    • > To solve this question and get this data, I first joined swap transactions from the osmosis.core.fact_swaps table to the osmosis.core.fact_transactions table. So that I can get transaction fees.

    • > I used the REGEXP_SUBSTR function (fee, 'u. *') To separate the letters from the fee row.and I got the average using the avg function.

    • > Then I joined my answers to the osmosis.core.dim_labels table twice to convert the contacts to the original name of the tokens.

      • > once for swap from tokens , once for swap to tokens
    • > Finally, I used the having command so that it would not give me 0 answers

      • >I agree that there is definitely a better way, but I did not know it.
        I will definitely look at the dashboards that won the Grand Prize.

    Chart & Analysis

    Loading...
    Loading...
    • The chart above shows the 20 swaps with the lowest fees.
    • The lowest fee is seen in Lum to Osmosis swap.
      • what is lum ?: $LUM Token is the fuel of. @lum_network. used by businesses to benefit from the trust layer while rewarding their customers, by validators & delegators to secure the network & many more.
    • This fee is less than a cent!
    • The chart above shows the 20 swaps with the highest fees.
    • Note: The calculated amount is an approximate amount and is based on the average of the total fees
    • The highest fee is seen in BitSong to Wrapped Ether swap.
      • what is Bitsonge ?: BitSong is a project dedicated to musicians and their fans, which aims to overcome the bureaucratic and economic obstacles within this industry and reward artists and users for simply using the platform.
      • what is wrapped ether? : Wrapped Ether (WETH) is a token pegged to Ether (ETH). WETH is used in several platforms and DApps that support ERC-20 tokens. While ETH is used to pay for network transaction fees, it doesn't have the same functionality as ERC-20 tokens. You can easily convert ETH into WETH through a process known as wrapping.

    Conclusions

    1. In this dashboard, we showed the approximate amount of tokens and swap fees to each other on the chart.
    2. The highest swap fee in BitSong to Wrapped Ether (BTSG to WETH)
    3. The lowest swap fee in Lum to Osmosis (Lum to Osmo)

    Contact data

    -> the writer : sajjadsmoke

    -> discord : sajjadsmoke#5567

    Thanks for reading !