DerpDex.com
  • ðŸĪŠDerpDEX Overview
    • ðŸĪ”Vision, Why & Gap
  • 🔗Official Links
  • 🚀Roadmap & Launch Plan
  • 🧑‍ðŸĪâ€ðŸ§‘Derp DAO
  • Tokenomics
    • ðŸĪ‘DERP
    • 🔐xDERP
      • Vesting
      • Conversion
      • Earnings sharing
    • ðŸ§ŪToken Distribution
      • Release schedule
      • DERP reserved wallets
    • 🎊Airdrops!
  • Protocol
    • ⚒ïļAMM
      • 😍Concentrated Liquidity (CLAMM)
      • ðŸĪĐv2: DMM
    • 🔄Swap
      • Smart Routing
    • ðŸ’đLiquidity Provider
      • Concentrated Liquidity
    • ðŸŒąFees
      • Stablecoins
      • Other cryptocurrencies
    • 🌉Bridge
    • ðŸĪAggregator
    • 🛠ïļInscription Bridge
  • CAMPAIGN
    • 🎆Genesis Launch
  • Getting Started
    • Getting Started
    • Bridge
      • zkSync Era
      • Base
      • opBNB
      • DERP Token Bridge
    • Add Liquidity
    • Withdraw Liquidity
    • Swap
    • Inscription Bridge
  • CONTRACTS
    • Contracts
    • Contract Addresses
    • ðŸ›ĄïļAudits
  • Products
    • Genesis Pools
      • How it works?
      • Rewards
      • Genesis campaign
      • Terminology
    • Zap-to-Earn
    • Launchpad
    • 🧑‍ðŸŒūYield Farming
      • Yield Booster
      • How to Farm?
      • FAQ
    • ⭐Staking
      • How to Stake or Redeem?
  • Resources
    • ❓FAQ
    • ðŸĪPartnership
    • ðŸĪ“Meme-token launch
    • 📗zkSync Gas Fee Guide
    • 🌉DERP Bridge via OTC
Powered by GitBook
On this page
  1. Resources

zkSync Gas Fee Guide

PreviousMeme-token launchNextDERP Bridge via OTC

Last updated 1 year ago

While ZK provides better user privacy and lower gas fees compared to Ethereum mainnet, the fees calculation mechanism in zkSync is different from Ethereum, Arbitrum or Optimism.

Users usually only spend a portion of the estimated transaction cost and they receive unused portions in the form of a refund.

At times, you may receive up to 70% of the fee cost with a refund. It is an automatic process and it is not controlled by users nor DerpDEX.

Parameter to reduce Gas Limit

This parameter is set automatically in the wallet when a transaction is called. For a more customized parameter, potentially, the user can set a 50% reduction to the gas limit (please experiment at your own risk).

Default Setting

Experiment: Swapping 0.001 ETH for USDC

Please experiment at your own risk and may result in a failed transaction.

Using the default settings, the transaction fee was $0.33 with breakdown of actual fees and refund.

Adjusting the default gas limit to minimum value for successful transaction i.e. 330,000 which is at least 7 times lower than the default value.

Upon performing the transaction, you will receive 0 refund and the transaction fees is 2 times lower than the original fees ($0.33).

The minor difference may sum up to a significant value if you are performing higher volume and value transactions.

Please experiment at your own risk and may result in a failed transaction.

Credits:

📗
https://twitter.com/leshka_eth/status/1673322008418095105?s=46&t=-NCrKkS46FostsM8hS8jLg