Middle Staking Docs
  • 👋Welcome
    • Presentation
    • Stake Unstake Rewards
    • Deposit
      • Deposit fees
  • 🪙MID TOKEN
    • Distribution
    • Staking rewards
    • Buy & Sell
    • Use cases
  • 📔CONTRACTS
    • Staking Contract
      • Details
      • Functions
    • Swap contract
      • Details
      • Liquidity
      • Swap
    • NFT/SFT Staking Contract
      • Details
  • Liquidity & swap
Powered by GitBook
On this page
  1. CONTRACTS
  2. Swap contract

Details

swaped_tokens : list all tokens that have liquidity with MID token

All pools are created with $MID as first token.

The swap function will allow to swap in both way

MID <-> MEX or MEX <-> MID

first_fee from a pool is applied on tokens sent by the user and used to increase liquidity.

second_fee is applied on amount of tokens that the user receive and added as $MID staking rewards.

MID to MEX : MID are added to liquidity and MEX added as staking rewards

Dualswap function can use 2 pools position in one time . eg wegld to mex will be done in one time doing WEGLD <-> MID <-> MEX takin the fees only one time instead of two.

WEGLD to MEX : WEGLD are added to liquidity and MEX added as staking rewards.

PreviousSwap contractNextLiquidity

Last updated 1 year ago

📔