By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: What You Need to Know About Gas Fees and Slippage | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > What You Need to Know About Gas Fees and Slippage | HackerNoon
Computing

What You Need to Know About Gas Fees and Slippage | HackerNoon

News Room
Last updated: 2025/04/15 at 3:58 PM
News Room Published 15 April 2025
Share
SHARE

Table of Links

Abstract and 1. Introduction

  1. Background

    2.1 Layer-2 Blockchains

    2.2 Project Mariana

  2. Related Work and Contribution

  3. System Architecture

  4. Model

    5.1 Automated Market Makers

    5.2 Price Impact

  5. Simulation

    6.1 Data and Parameters

    6.2 Results

  6. Discussion

  7. Conclusions, Acknowledgements, and References

Graphs and Tables

5 Model

The major metric to consider for evaluation of the cross-border CBDCs exchange is the cost of the CBDCs swap. In general, the total cost of DeFi service consists of three components: [31], [19]

TotalCost = GasFee + DeFiExplicitFee + DeFiImplicitFee

Gas Fees are paid to the blockchain operators for executing the transaction. In the case of transactions on roll-ups, the gas fee is comprised of both the L1 and L2 gas fee components.

DeFi Explicit Fee is charged by the DeFi protocol for the provided service. In the case of token swap at AMM-DEX, the liquidity pool fee (LP Fee) is the explicit fee charged by the DEX, and part of it (or whole) is distributed to the liquidity providers (LPs) to the pool.

DeFi Implicit Fee are indirect fees specific to the design of the DeFi protocol. Price impact and slippage are implicit fees accrued by a trader when swapping tokens at AMM [31], [19] and refer to the difference between quoted and executed price by the AMM. Price impact is caused by the transaction volume and slippage (positive or negative) results from other swaps occurring within the same block as the transaction swap.

Further the following model for the total cost of swap is considered:

TotalSwapCost = GasFee + LPFee + PriceImpact

LP Fee is typically the percentage of the transaction volume, and liquidity providers supply capital to the AMM’s liquidity pools in exchange for participation in LP fees. Price impact is the change in exchange price caused by the transaction volume and is specific to the AMM type and the liquidity pool size. The next section presents the major AMM types and corresponding price impact calculation methods.

5.1 Automated Market Makers

Constant Product with Concentrated Liquidity Market Maker (CLMM) – Uniswap v3

Stableswap Invariant – Curve v1

Cryptoswap Invariant – Curve v2 As in equation (4), but with K defined as

5.2 Price Impact

Authors:

(1) Krzysztof Gogol, University of Zurich ([email protected]);

(2) Johnnatan Messias, Matter Labs;

(3) Malte Schlosser, University of Zurich;

(4) Benjamin Kraner, University of Zurich;

(5) Claudio Tessone, University of Zurich.


Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Clair Obscur, Call of Duty and More Are Coming to Xbox Game Pass Soon
Next Article How India’s filmmakers are using the iPhone 16 Pro Max
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

iPhones Running iOS 26 Are Freezing FaceTime Calls When They Detect Nudity
News
Cloudflare will block content extraction bots for ia
Mobile
Mashable’s outdoor expert approves this early Prime Day deal — get this Bluetti power station for its lowest-ever price
News
Peacock just dropped a must-watch documentary about the Idaho college student murders
News

You Might also Like

Computing

How I cracked connecting my phone to my smart TV |

8 Min Read
Computing

The HackerNoon Newsletter: Is Generative AI a Blessing in Disguise for Journalism? (7/3/2025) | HackerNoon

3 Min Read
Computing

Perl 5.42 Released With New Operators, Unicode 16 Support, Security Fixes

1 Min Read
Computing

21 social media analytics tools to boost your strategy in 2025

23 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?