Aperture Finance
  • Aperture Introduction
    • ๐Ÿค–AI Powered Intents
  • $APTR Token
    • ๐Ÿ“ฌToken Info
    • ๐ŸฅงTokenomics
  • Liquidity Intents
    • ๐ŸฅžLP Tooling & Automation
    • ๐ŸŽ›๏ธSupported AMMs and Networks
    • โš–๏ธRecurring Rebalance Strategy
    • โš–๏ธAutomated Rebalance (One-time Move Range)
    • ๐ŸšชAutomated Position Closure (Prescheduled Positionย Close)
    • ๐Ÿฅ•Auto Compound
    • ๐Ÿ’ฐRevenue Earning Limit Orders
    • ๐ŸŒŠLiquidity Source
    • ๐Ÿ–๏ธDune Dashboard
    • โ”FAQ
  • MaaS (Market maker as a Service)
    • โ›ฉ๏ธIntro
    • ๐ŸฆพHow does MaaS work
  • ApertureSwap (DEX)
    • ๐ŸŒŠApertureSwap on Manta Pacific L2
  • Technical Docs
    • ๐ŸงฎOpen Source Code
    • ๐Ÿ–ฅ๏ธAPI Documentation
  • Transparency
    • ๐Ÿ’ฑFees
    • ๐ŸšœDeployed Contracts
    • ๐Ÿ”Security Audit
  • Community
    • ๐Ÿงžโ€โ™‚๏ธAnalytics
    • ๐Ÿ”—Links
  • Legacy Products
    • ๐Ÿฆ€Crab Market Leveraged Farming (Retired)
      • ๐ŸงฎRebalancer
    • ๐Ÿ‚Bull Market Leveraged Farming (Retired)
    • ๐Ÿš€Terra Classic Delta-Neutral Strategy (Retired)
      • Constant-product AMM
      • Position Open
      • Rebalance & Liquidation Protection
      • Fees & Minimum Investment Size
      • APR: A Day by Day Breakdown
    • ๐Ÿ“”Deployed Contracts
    • ๐Ÿ–ฅ๏ธIntegration Guide
      • Avalanche Pseudo-Delta-Neutral Leveraged Farming
      • Terra Classic Delta-Neutral Strategy (Retired)
  • PAST CAMPAIGN
    • โ˜๏ธINTENTional (Points) Campaign
  • Liquidity Academy
    • Tick, tick width and automation
Powered by GitBook
On this page
  • uniswap-v3-automan
  • uni-v3-lib
  1. Technical Docs

Open Source Code

List of repositories open sourced by Aperture

PreviousApertureSwap on Manta Pacific L2NextAPI Documentation

Last updated 1 year ago

The UniV3Automan contract allows Aperture's automation service to perform three actions: rebalancing, reinvesting, and swapping tokens. It leverages the OptimalSwap library to calculate the optimal token swap amount, considering the desired token ratio and its impact on the liquidity position.

This repository offers close to 30% gas saving and focuses on essential Uniswap libraries for external integrators. It includes modified versions of SqrtPriceMath and TickMath, optimized for modern Solidity compilers (v0.8.0+). Inline assembly reduces gas usage in most functions. Additional libraries, like PoolCaller and NPMCaller, improve efficiency by bypassing extcodesize checks and directly manipulating stack and memory. Helpers, including nextInitializedTick, aid in searching for initialized ticks. Extensive code annotations document optimization techniques used.

๐Ÿงฎ
uniswap-v3-automan
uni-v3-lib