Nabla Docs
  • Nabla Finance
    • The problem Nabla solves
    • Benefits of using Nabla
  • Protocol Overview
    • Swap Algorithm
    • Liquidity Pools
      • Swap Pools
      • Backstop Pool
    • Oracle Details
      • Architecture
      • Pyth
      • Chainlink
      • EV:GO
  • Roadmap
  • Protocol-owned Liquidity (POL)
    • Trading Fees and LP Incentives
    • Nabla as an autonomous protocol
  • Security
    • Audits
    • Bug Bounty Program
  • Mainnet Alpha
    • Risks and Benefits of being a Mainnet Alpha LP
  • Monad Testnet
    • Add Monad Testnet to Metamask
    • Get Monad Test Tokens
    • Monad Testnet Tasks
  • Testnet Beta
    • Connect Wallet to Base Sepolia
    • Testnet Beta Tasks
    • Obtaining Base Sepolia Ether for Gas
    • Test Assets
    • Connect Wallet to Base Sepolia Testnet
    • Performing a Swap
    • Managing Swap Pool Liquidity
    • Redeem Swap Pool Shares via Backstop Pool
    • Managing Backstop Pool Liquidity
    • Withdraw Backstop Pool Liquidity via Excess Swap Pool
  • Testnet Alpha
    • Testnet Alpha Results
    • Whitelisting for testnet
      • Whitelist Campaigns List
      • $PYTH Stakers Whitelist
    • Connect Wallet to Sepolia Testnet
    • Requesting Testnet Gas
    • How to contribute to testing
    • Performing a Swap
    • Managing Swap Pool Liquidity
    • How to swap into a swap pool that is depleted
    • Managing Backstop Pool Liquidity
    • Redeem Swap Pool Shares via Backstop Pool
    • Withdraw Backstop Pool Liquidity via Excess Swap Pool
  • Liquidity Provision
  • $NABLA
    • $sNABLA Token Utility
    • Staking Mechanism
    • Fee Distribution
    • Tokenomics
    • Token Utility Summary
    • Governance
      • Initial Governance Implementation
      • Governance structure
      • Discussion and Proposal process
      • Voting process
      • Transparency and record-keeping
      • Code of conduct
      • Amendments to the Governance Framework
      • Template for a vote
  • $AMBER Onchain Points Program
    • Mainnet Alpha Rewards
      • Arbitrum-Mainnet Alpha Rewards
      • Base-Mainnet Alpha Rewards
    • $AMBER FAQ
  • 💻Developers
    • Integration Guide
    • NablaPortal
    • NablaRouter
    • SwapPool
    • GenericPool
    • NablaBackstopPool
    • PythAdapter
    • ISlippageCurve
    • Contract addresses
      • Arbitrum One
      • Base
      • Monad Testnet
    • Contract errors
  • Community
    • Linktree
    • Twitter
    • Discord
    • Telegram
  • Whitepaper
  • Legal
    • Privacy Policy
    • Terms of Service
Powered by GitBook
On this page
  • Overview
  • Nabla Portal
  • Nabla Router
  • Nabla Backstop Pool
  • Swap Pool

Developers

Previous$AMBER FAQNextIntegration Guide

Last updated 5 months ago

Overview

The Nabla Protocol is made up of a number of smart contracts. These include the Nabla Core contracts, which include the fundamental AMM logic, as well as a combination of contracts forming a pool ensemble/pool hub and Nabla periphery contracts, which e.g. enable cross-pool swaps.

Nabla Portal

User key functions include swapExactTokensForTokens (swap ERC20 tokens for other ERC20 tokens), swapEthForExactTokens & swapExactTokensForEth (swap from or to native ETH) and quoteSwapExactTokensForTokens (retrieve quotes for token swaps, providing estimates of the amount of tokens that can be swapped for a given amount of tokens).

Nabla Router

The NablaRouter contract facilitates seamless token swaps and real-time price feed updates.

User key function include swapExactTokensForTokens and getAmountOut, which are used to swap tokens and get a quote for a swap, respectively.

Nabla Backstop Pool

The NablaBackstopPool is a specialised contract and pool built on BackstopPoolCore. It allows users to deposit and withdraw liquidity from the backstop pool and redeem LP tokens from associated swap pools.

The backstop pool serves as an insurance mechanism, mitigating risks across a set of swap pools it supports. If a swap pool has low reserves, liquidity providers can perform an insurance withdrawal. This involves burning their swap pool shares in exchange for backstop liquidity.

Swap Pool

User key functions include deposit (swap tokens for pool shares), withdraw (redeem pool shares for tokens), backstopBurn (burn shares for underlying tokens), and backstopDrain (withdraw excess tokens).

The NablaPortal contract is the main entry point for users to interact with the Nabla ecosystem. It facilitates token swaps through the contracts, supporting advanced features such as multi-hop swaps and optional interactions with native ETH.

The backstop pool owns all excess liquidity from its . It also assumes liability for any liquidity shortfalls. In return for this risk, the pool earns a share of the swap fees.

The SwapPool contract facilitates token swaps and liquidity management with features like capped deposits, configurable swap fees, and safe redeem mechanisms. It integrates with the for risk coverage.

💻
NablaRouter
NablaPortal
NablaRouter
swap pools
NablaBackstopPool
NablaBackstopPool
SwapPool
Nabla Protocol contracts overview