Gloop
WebsiteTwitterDiscord
  • gLoop Litepaper v2
    • Introduction
    • The Two Tokens
    • Roadmap
  • PRODUCTS
    • GM Index
      • Providing/Removing Liquidity
      • Fees and Reflection
      • Deposit/Withdrawal Examples
    • GM Lend/Borrow
      • Lending USDC
      • Depositing Collateral Assets
      • Withdrawing Assets
      • Borrowing USDC
      • Repaying Debt
      • gLooping GM Assets
      • Position Management
        • Withdrawing Assets
        • Health Factor and Liquidations
      • Lending/Borrowing GMI (Coming Soon)
      • Frequently Asked Questions (FAQs)
    • GLOOP Staking (Coming Soon)
  • GM Points (COMING SOON)
  • Technical
    • Gloop Protocol Parameters
    • Gloop Parameters
    • Contracts
      • GM Lending and Looping
        • GM Lending Pool
        • GM Price Oracle
        • GM Vaults
        • GM Interest Rate Model
        • GM Incentives
      • GMI
        • GM Index
        • GMI USDC Zap
        • Token Banks
        • Token Oracles
        • Fees
  • FREQUENTLY ASKED QUESTIONS (FAQs)
    • GM Index (GMI)
    • GM Lending/Looping
    • GLOOP Staking (Coming Soon)
  • GLoop Ecosystem
    • Tokenomics
  • Security and Risk
    • Risks
    • Audits
  • Social
    • Socials
Powered by GitBook
On this page
  • How to Provide Liquidity
  • How to Remove Liquidity
  1. PRODUCTS
  2. GM Index

Providing/Removing Liquidity

Short Tutorials

PreviousGM IndexNextFees and Reflection

Last updated 7 months ago

With a few clicks, anyone can provide GM tokens into the GM Index to receive GMI tokens, which immediately exposes them to protocol fee accrual within the token. (See the and sections for further details.)

  1. GM tokens (gmBTC, gmETH, gmSOL, or gmUSDC-USDT) from .

  2. Connect the wallet used in step 1 to the dApp.

  3. In the "Deposit" tab of the "Buy / Sell GMI" section, select your specific GM token from the dropdown, enter the amount you want to transfer to the Index, click the "Approve" button, and approve the transaction in your wallet.

  4. Once you have approved, the "Approve" button will change to a "Deposit" button. Click and sign the transaction in your wallet to pay a calculated deposit fee (see section) to mint GMI. The amount of GMI received will be in proportion to the value of GM tokens deposited versus the total value of the Index. In short, you get more GMI the more GM tokens you deposit. This is effectively “buying” GMI tokens with GM tokens.

  5. Connect a wallet that has USDC to .

  6. In the "Buy GMI" tab, select USDC from the dropdown, enter the amount you want to deposit into the Index, click/tap the "Approve" button, and approve the transaction in your wallet.

  7. Once you have approved, the "Approve" button will change to a "Buy GMI" button. Click and sign the transaction in your wallet to pay a calculated deposit fee (see section) to mint GMI. When you sign the transaction in your wallet, the USDC gets automatically converted into the asset that generates the cheapest fee (e.g. shrinking the liquidity gap of the asset furthest away from its target balance) for the user. In DeFi land, this is called “zapping.” In exchange, just like in the , users receive GMI and will begin exposure to fee accrual from future deposits and withdrawals.

  8. Connect a wallet that has USDC to .

  9. In the "Deposit" tab of the "Buy / Sell GMI" section, select USDC from the dropdown, enter the amount you want to deposit into the Index, click the "Approve" button, and approve the transaction in your wallet.

  10. Once you have approved, the "Approve" button will change to a "Deposit" button. Click and sign the transaction in your wallet to pay a calculated deposit fee (see section) to mint GMI. When you sign the transaction in your wallet, the USDC gets automatically converted into the asset that generates the cheapest fee (e.g. shrinking the liquidity gap of the asset furthest away from its target balance) for the user. In DeFi land, this is called “zapping.” In exchange, just like in the above, users receive GMI and will begin exposure to fee accrual from future deposits and withdrawals.

  11. Confirm you have GMI tokens in your wallet.

  12. Connect your wallet to .

  13. In the "Sell GMI" tab, select which GM token you want to receive, and click/tap the “Sell GMI” button.

  14. Sign the transaction in your wallet to pay the withdrawal fee. Your GMI tokens will be burned, and the GM tokens are transferred to your wallet. (See the and sections for further details.) Note: There must be sufficient liquidity in the market token that you are wanting to receive. If there is not, you need to wait for other providers to deposit more of the specific GM token. You can also pick another GM token to withdraw or split the withdrawal into multiple GM tokens.

  15. Confirm you have GMI tokens in your wallet.

  16. Connect your wallet to .

  17. In the "Withdraw" tab, select which GM token you want to receive, and click the “Withdraw” button.

  18. Sign the transaction in your wallet to pay the withdrawal fee. Your GMI tokens will be burned, and the GM tokens are transferred to your wallet. (See the and sections for further details.) Note: There must be sufficient liquidity in the market token that you are wanting to receive. If there is not, you need to wait for other providers to deposit more of the specific GM token. You can also pick another GM token to withdraw or split the withdrawal into multiple GM tokens.

How to Provide Liquidity

Standard GM Method

  1. In the "Deposit" tab of the "Buy / Sell GMI" section, select your specific GM token from the dropdown, enter the amount you want to transfer to the Index, click the "Approve" button, and approve the transaction in your wallet.

Alternate USDC Zapping Method

NOTICE: Due to GMX upgrading their contracts, USDC Zapping functionality has been temporarily taken offline. We will make an announcement when it is working again.

  1. In the "Deposit" tab of the "Buy / Sell GMI" section, select USDC from the dropdown, enter the amount you want to deposit into the Index, click the "Approve" button, and approve the transaction in your wallet.

How to Remove Liquidity

  1. Confirm you have GMI tokens in your wallet.

  2. In the "Withdraw" tab, select which GM token you want to receive, and click the “Withdraw” button.

With a few clicks, anyone can provide GM tokens into the GM Index to receive GMI tokens, which immediately exposes them to protocol fee accrual within the token. (See the and sections for further details.)

GM tokens (gmBTC, gmETH, gmSOL, or gmUSDC-USDT) from .

Connect the wallet used in step 1 to the dApp.

Once you have approved, the "Approve" button will change to a "Deposit" button. Click and sign the transaction in your wallet to pay a calculated deposit fee (see section) to mint GMI. The amount of GMI received will be in proportion to the value of GM tokens deposited versus the total value of the Index. In short, you get more GMI the more GM tokens you deposit. This is effectively “buying” GMI tokens with GM tokens.

Connect a wallet that has USDC to .

Once you have approved, the "Approve" button will change to a "Deposit" button. Click and sign the transaction in your wallet to pay a calculated deposit fee (see section) to mint GMI. When you sign the transaction in your wallet, the USDC gets automatically converted into the asset that generates the cheapest fee (e.g. shrinking the liquidity gap of the asset furthest away from its target balance) for the user. In DeFi land, this is called “zapping.” In exchange, just like in the above, users receive GMI and will begin exposure to fee accrual from future deposits and withdrawals.

Connect your wallet to .

Sign the transaction in your wallet to pay the withdrawal fee. Your GMI tokens will be burned, and the GM tokens are transferred to your wallet. (See the and sections for further details.) Note: There must be sufficient liquidity in the market token that you are wanting to receive. If there is not, you need to wait for other providers to deposit more of the specific GM token. You can also pick another GM token to withdraw or split the withdrawal into multiple GM tokens.

Fees
Deposit/Withdrawal Examples
Buy
GMX
GMI
Fees
GMI
Fees
Standard GM Method
GMI
Fees
Standard GM Method
GMI
Fees
Deposit/Withdrawal Examples
GMI
Fees
Deposit/Withdrawal Examples
Fees
Deposit/Withdrawal Examples
Buy
GMX
GMI
Fees
GMI
Fees
Standard GM Method
GMI
Fees
Deposit/Withdrawal Examples