πŸ¦‰
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. General Resources
  2. Contracts

Router

The Router contracts provide convenience functions on top of the vault.

PreviousVaultsNextPrice Feeds

Last updated 2 years ago

The contract handles a two part transaction process for increasing or decreasing long / short positions, this process helps to reduce front-running issues:

  1. A user sends the request to increase / decrease a position to the PositionRouter

  2. A keeper requests the index price from an aggregate of exchanges

  3. The keeper then executes the position at the current index price

  4. If the position cannot be executed within the allowed slippage the request is cancelled and the funds are sent back to the user

A user can execute the position on their own if three minutes have passed between the request transaction and the execution transaction. The function of the position keepers is to provide convenience and the protocol can continue to operate even without these keepers. For swaps, the base fee is 0.25%, while price feeds update within 0.12% price movements, this helps to reduce front-running issues.

πŸ“š
πŸ“—
πŸ“¨
Position Router