Butter Network
Github
  • 🌈About Butter Network
  • šŸ”„ZK Light Client
    • Understanding Light Client
    • Refactored ZK Light Client
  • šŸ”„Omnichain Development
    • Omnichain Isomorphism
    • More Possibilities
  • 🌈Butter Omnichain Messaging Integration
    • Introduction
    • Integration Guide
      • Message
      • Message with Ton
      • CALLDATA
      • Message And Relay
    • Contract Interface
    • Fee
    • Deployed Contracts
    • šŸ‘Øā€šŸ’»API for Omnichain Message
      • GET Message History by Source Address
      • GET Message Info by Id
      • GET Message Info by Source Hash
  • šŸ”„Butter Bridge Integration
    • Integration Guide
    • Contract Interface
    • Fee
    • Deployed Contracts
  • šŸ’°Butter Swap Integration
    • Introduction
    • 🟢Integration Guide
      • Contract Interface
      • Fee
    • Deployed Contracts
      • v2.1
    • šŸ‘©ā€šŸ’»API for Routing
      • Integration Guide
      • GET /route
      • GET /swap
      • GET /routeAndSwap
      • GET /supportedChainList
      • GET /findToken
      • šŸ”“Error Code List
    • šŸ‘Øā€šŸ’»API for Swap Data
      • GET Swap History by Source Hash
      • GET Swap History by Source Address
      • GET Swap Info by Order ID
      • GET Supported Chain Detail List
      • GET Supported Token Detail List
  • šŸ’°Butter Swap User Guide
    • šŸ«‚User Guide
  • Butter Swap SDK
    • Install
    • Config SDK
    • Request Routes
    • Execute Route
    • Others
  • Butter Swap Widget
    • Usage
  • šŸ“¢Resources
    • šŸ Website
    • šŸ«‚Telegram
    • šŸ“„X
Powered by GitBook
On this page
  1. Butter Bridge Integration

Fee

Users are able to roughly estimate the cost of a transaction depending on the formulae given below as reference.

The Bridge Fee consists of two components.

  1. The first part is omnichain service to deliver message . This portion is determined by the fluctuations in the market gas price and gasLimit want to use for execute on the destination chain .

  2. The second part is levied to provide rewards to both the liquidity providers and the Protocol.

    this part will be calculated based on the amount and a predetermined percentage factor.

    fee=amountāˆ—ratefee = amount * ratefee=amountāˆ—rate

    There are lower bound and upper bound in the Fee.

    min{minimumamountāˆ—ratemaximummin\left\{ \begin{aligned} &minimum \\ &amount * rate \\ &maximum \end{aligned} \right.mināŽ©āŽØāŽ§ā€‹ā€‹minimumamountāˆ—ratemaximum​

    If the trading volume multiplied by rate is less than the minimum, then this part fee will still charge the minimum as a basic commission.

    If the trading volume multiplied by rate is more than the maximum, then this part fee will only charge the maximum as a basic commission.

PreviousContract InterfaceNextDeployed Contracts

Last updated 10 months ago

šŸ”„