Mai Finance - Tutorials
🇺🇸/🇬🇧 English
🇺🇸/🇬🇧 English
  • The Unofficial Guide to Mai Finance
  • Tutorials
    • Polygon
      • How to get started on Polygon
      • Leverage Your Aave Market Tokens
      • camDAI beginner strategy
      • Farming using only stable coins
      • What to do with MAI on Polygon
      • What to do with Qi on Polygon
      • Stack DApps like Lego bricks
      • Farming or Staking? Or both?
      • How to combine farming and borrowing rewards
      • OHM forks on Polygon: The case of KLIMA
      • MAI single-staking with Ethalend
      • The Elephant, the Chimp and the Otter
      • From Traditional Finance to DeFi with Jarvis
      • DCA in bear and bull markets
      • Guides for Polygon supporters with Qi DAO
    • Avalanche
      • How to get started on Avalanche
    • Fantom
      • How to get started on Fantom
      • Leverage your crypto on Fantom
      • What to do with MAI on Fantom
      • Farming loop using SpiritSwap
      • Exodia Combo on Fantom
      • A Spooky Symfony
    • Moonriver
      • How to get started on Moonriver
      • Farming MAI on SolarBeam
    • Cronos
      • How to get started on Cronos
      • Farming Legos with CroDex
    • Harmony
      • How to get started on Harmony
      • One LP Pair, Many ways to farm
    • Gnosis Chain
      • How to get started on Gnosis Chain
    • Optimism
      • How to get started on Optimism
      • Three things have to notice before taking OP QiDao quest
      • Starter Guide for wstETH yield on Optimism
    • Arbitrum
      • How to get started on Arbitrum
    • BNB Chain
      • How to get started on BNB Chain
    • Moonbeam
      • How to get started on Moonbeam
      • Playing with MAI legos on StellaSwap
  • MAI University
    • Earning Passive Income with QiDAO
    • How does MAI work?
    • MAI loans and Vaults incentives
    • Debt repayment - Why and When?
    • Debt repayment - How?
    • MAI Metaverse
    • MAI Metaverse Pt.2
    • How to use MAI in the real life
    • How to interact directly with QiDao’s contracts
  • Join the Community
    • Discord
    • Telegram
    • Twitter
    • Use the app
Powered by GitBook
On this page
  • Minting MAI on StellaSwap
  • Putting the legos together
  • Disclaimer

Was this helpful?

  1. Tutorials
  2. Moonbeam

Playing with MAI legos on StellaSwap

Using MAI on Moonbeam to earn yield with StellaSwap.

PreviousHow to get started on MoonbeamNextEarning Passive Income with QiDAO

Last updated 2 years ago

Was this helpful?

While Mai Finance does not offer vaults on Moonbeam, it is possible to use some of your favorite tokens on the chain to mint MAI by using StellaSwap's new MAI vaults. By leveraging your collateral tokens and borrowing MAI against it, you can earn great yield through a looping strategy involving xSTELLA and MAI.

NOTE: This guide is not meant as financial advice. It was created with an educational goal in mind. The goal of this guide is not to propose a strategy to be followed blindly, so please do your homework and your own simulation, and only invest what you're ready to possibly lose.

is the leading DEX (decentralized exchange) on Moonbeam. As a full-featured DEX, StellaSwap offers users the ability to swap tokens, earn yield on farms, and participate in protocol governance. What sets StellaSwap apart, is that it is the first such protocol that allows users to mint MAI natively directly from its interface through a partnership with Mai Finance.

Minting MAI on StellaSwap

Unlike MAI vaults on Mai Finance, StellaSwap's MAI vaults do charge interest for borrowing against your assets. Currently, users can borrow MAI against xStella, StellaSwap's revenue sharing staked token, at 12% interest, or against wGLMR, a wrapped version of Moonbeam's native gas token, at 8% interest. While users familiar with Mai Finance's 0% interest vaults might be taken aback by the higher interest rates, we'll go through a looping strategy in this guide to allow you to earn high yields on your borrowed stablecoins without ever leaving StellaSwap.

  1. From here you'll be able to create an xStella or wGLMR vault to borrow MAI against. To create our looping strategy, we will create an xStella vault.

  2. Now enter your newly created vault and deposit xStella. Please note that xStella vaults have a 40% LTV (loan to value ratio) which means that for every $100 worth of xStella, you will be able to borrow $40 worth of MAI.

  3. Next, you'll want to head to the borrow section, and borrow MAI. Please keep in mind your LTV to avoid being liquidated.

Putting the legos together

This farm currently offers a very attractive 26% yield on stable coins with a pool comprised of MAI, FRAX, USDT, USDC, and DAI with a yield paid out in Stella tokens. Note that this yield is mostly offsetting the interest we are currently paying on our borrowed MAI (12%). We can take a look at our performance so far:

Staking xStella has two additional benefits. First, it provides a staking APR of 70%, thereby compounding our yields, but more importantly, xStella increases in value over time as swap revenue from the protocol is shared among users. This means that any yields we are earning from our relatively safe position in a stablecoin farm, are continuously increasing. We can then use these additional yields to deposit additional xStella into our vault to increase our LTV, or to borrow additional MAI against it.

Disclaimer

This guide is NOT financial advice, and should simply be regarded as an educational tool. Always do your own research. Discussion of a project in this guide should not be considered as an endorsement of the project.

Keep in mind that a strategy that works well at a given time may perform poorly (or make you lose money) at another time. Please stay informed, monitor the markets, keep an eye on your investments, and as always, do your own research.

First, head off to StellaSwap's .

Now that you've successfully borrowed MAI, it's time to put it to use! We'll be leveraging our MAI by depositing it into StellaSwap's MAI-Base4Pool stablecoin farm and using the yields to earn more Stella tokens by staking them. Always remember that if you enter this strategy you do so at your own risk and your vault may be liquidated if you do not do your due diligence! Let's first find the MAI-Base4Pool on the StellaSwap page.

effectiveinterest=(collateral∗borrowinterest)−(mai∗farmingyield)effective interest = (collateral * borrow interest)-(mai*farmingyield)effectiveinterest=(collateral∗borrowinterest)−(mai∗farmingyield)

This gives us an effective yield of 1.6% to borrow MAI - not bad, but we can do better. We can now take the Stella tokens we are earning from being in the MAI-Base4Pool and .

MAI minting facility
Farms
stake them to receive xStella
StellaSwap
Mint MAI directly from StellaSwap
Vaults on StellSwap
xStella vault
MAI-Base4Pool
Staking xStella