Skip to content

LeverCapital/vaults

Repository files navigation

Perpetual Vault Protocol • Tests License

Non-custodial vaults that allow

  • Traders to swap perpetuals AND
  • Everyone else to earn from them

Architecture

  • Vault.sol: Vault holds funds non-custodially and allows Managers to use them for perpetual trading on the GMX derivatives exchange.
  • VaultFactory.sol: Factory which enables anyone to deploy a Perpetual Vault.
  • modules/: Contracts used for managing and/or simplifying interaction with Vaults and the Vault Factory.
  • interfaces/: Interfaces of external contracts Vaults and modules interact with.
    • Strategy.sol: Minimal interfaces for ERC20 and ETH compatible strategies.

Diagram

TODO

  • Track positionOpen state for stopLimit orders
  • Performance fee model

Run Tests

forge test

Update Gas Snapshots

forge snapshot

About

Democratize perpetual trading

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages