πŸ¦‰
Minerva
  • πŸ¦‰Introduction
  • πŸ“šGeneral Resources
    • 🦊How to?
    • πŸ•ŠοΈMigration
    • πŸ“—Contracts
      • πŸ”Access Control
        • ⏰TimeLock
        • πŸ› οΈUpgradeability
        • πŸ›‘οΈFlash Loan Attack Mitigations
      • πŸ—οΈVaults
      • πŸ“¨Router
      • 🏷️Price Feeds
    • πŸ“™Audit
    • ⚠️Risks
    • πŸ›£οΈRoadmap
  • πŸ”΄Tokenomics
    • πŸ—ΊοΈOverview
    • βšͺMINE
    • 🟠allMINE
    • 🟣MLP
      • Buying / Selling MLP
      • MLP Price
      • Transferring Staked MLP
  • πŸ…Core Features
    • πŸ”„Trading
      • Swap
      • Query Available Amounts
      • Opening / Increasing a Position
      • Closing / Decreasing a Position
      • Position List
    • πŸ“ˆFees
    • πŸ’°Rewards
    • πŸ†Weekly Competition
    • πŸ«‚Referall
    • πŸ›οΈGovernance
  • πŸ“„Terms and Services
    • πŸ–‹οΈTerms of Use
Powered by GitBook
On this page
  1. Tokenomics
  2. MLP

Buying / Selling MLP

Buying and selling MLP can be done through the MLPRewardRouter.

To buy MLP, call mintAndStakeMlp

  • _token: the token to buy MLP with

  • _amount: the amount of token to use for the purchase

  • _minUsdg: the minimum acceptable USD value of the MLP purchased

  • _minMlp: the minimum acceptable MLP amount

To sell MLP, unstakeAndRedeemMlp

  • _tokenOut: the token to sell MLP for

  • _mlpAmount: the amount of MLP to sell

  • _minOut: the minimum acceptable amount of tokenOut to be received

  • _receiver: the address to send tokenOut to

Note that MLP can only be redeemed up to the reservedAmount, which is based on the amount of open interest, if the pool has been fully redeemed up to the reservedAmount then redeemers will need to wait for positions to close before further redemptions can be done, in this scenario the borrowing fee APR would be very high so liquidity providers will be incentivised to mint MLP and traders will be incentivised to close positions

The price of MLP can be retrieved from the MlpManager.

  • The buy price would be getAum(true) / mlpSupply

  • The sell price would be getAum(false) / mlpSupply

PreviousMLPNextMLP Price

Last updated 1 year ago

πŸ”΄
🟣