Wombat Exchange
Launch App
  • 👩‍🏫Overview
  • 🐻The Team
  • 👾Investors
  • 🔜Roadmap
  • GETTING STARTED
    • 💰Connect Your Wallet
    • 🔁Swap
      • Swap Guide
      • Swap Guide For Crosschain Pool
    • 🧑‍🌾Yield Farming
      • Providing Liquidity
      • Stake
      • Claim
    • 🚀Yield Boosting
      • Acquire WOM
      • Lock WOM
      • Unlock WOM
      • Extend Lock
    • 📃Fee Sharing
    • 📊Analytics
    • 📍Emission Allocation
    • *️Risks
    • 🔐Security
  • governance
    • 🗳️Gauge Voting
      • Vote and Claim
    • 📔Governance Framework
  • CONCEPTS
    • ⚖️Coverage Ratio
    • ↪️Invariant Curve
    • 🌏Global Equilibrium Coverage Ratio
    • 🤽Dynamic Pool
    • 🔀Cross Chain
    • 💵Fees
      • Haircut (Swap Fee)
      • Fee Distribution
      • Deposit Gain and Withdrawal Fee
      • Coverage Ratio Fee
    • 🤽‍♀️Pool Configuration
  • Tokenomics
    • 🪙About WOM
      • Where To Buy $WOM?
      • veWOM
  • RESOURCES
    • 📃Whitepapers
    • 🔐Security Audits
    • ⬇️Brand Assets
    • 🔗Links
    • 🧑‍🤝‍🧑Community Resources
  • developers
    • 🐞Bug Bounty
    • 📚Contracts
      • BNB Chain
      • Ethereum
      • Scroll
      • Avalanche
      • Arbitrum
      • Optimism
      • Base
    • ⚙️Integration Guideline
      • Pool
      • Asset
      • Router
      • MasterWombatV2
      • MasterWombatV3
      • Voter
      • veWOM
    • GitHub
Powered by GitBook
On this page
  • Swap
  • Yield Farming
  • veWOM
  • Questions
  1. developers

Integration Guideline

PreviousBaseNextPool

Last updated 1 year ago

This page provides a high-level guide on integrating with Wombat on various projects.

Swap

You will want to use the contract. To get a quote, use . To swap BEP20 tokens, use . Each swap in the path will incur a haircut fee, which can differ for each pool.

Yield Farming

First, your tokens to a (which may trigger a deposit gain). You'll get LP tokens in BEP20 format.

Then, use 's to find the id of the asset. Use the id to the LP tokens into MasterWombat. Alternatively, you may set the param shouldStake to be true while callingPool.deposit (This feature is experimental. Please use it with caution).

To view a user's position, you may read the value amount returned by .

After the deposit, you may use to check for any pending rewards. Note that there may be more than one reward token. To claim rewards, you can either do a (with zero amount), (with zero amount), or call to claim one or more positions.

The withdrawal flow is similar to the above in reverse.

veWOM

You may call to lock WOM into the contract and mint veWOM with a length of 7 days to 1461 days. Up to 10000 positions could be locked for each user. To view locked positions, call . After the locking period, call to burn veWOM and get back locked WOM.

Questions

Please use our if you have any questions.

⚙️
Router
Pool
MasterWombat
discord
getAmountOut
swapExactTokensForTokens
getAssetPid
deposit
MasterWombat.userInfo
pendingTokens
deposit
withdraw
multiClaim
deposit
VeWom.mint
VeWom.getUserInfo
VeWom.burn