🦑
Liquidswap Docs
GithubDappPontem Network
Liquidswap V1 Docs
Liquidswap V1 Docs
  • Introduction v1
    • Security Audits
    • Bounty Program
    • Developer Links
  • Protocol Overview
  • Smart Contracts
    • Pool
    • LB Tokens
    • Oracles
    • Fees
    • Router & Entry
    • Other
  • Integration
    • Test Coins
    • Let's Swap
    • Add Liquidity
    • Burn Liquidity
    • Flashloans
  • Liquidswap DApp
    • Bridge
    • Testnet
Powered by GitBook
On this page
  • BinSteps
  • Math Helpers
  • Config
  • Treasury
  • Emergency
  1. Smart Contracts

Other

PreviousRouter & EntryNextIntegration

Last updated 1 year ago

BinSteps

Source code:

The concept has been previously detailed in the Pools documentation.

Within the module, there are functions specifically designed to retrieve both the symbolic and numeric representations of a BinStep. For example, for a BinStep labeled 'X10', the function returns the string 'X10' for its symbolic representation, and numerically, it would return the value 10.

Math Helpers

Source code:

The protocol leverages helper functions that implement tree math, optimizing the performance of coin swaps across Bins. At its core, the protocol utilizes fixed-point arithmetic, specifically 128-bit and 64-bit math, to ensure accurate and efficient calculations.

Config

Source code:

The component houses the current global configuration, primarily encompassing accounts designated for DAO activities, pool creation, and emergency operations.

Treasury

Source code:

Keeps the protocol collected fees and allows to withdraw them by DAO account.

Emergency

The protocol includes a provision for an emergency pause of all swap and mint operations, which can be activated through a transaction initiated by the Emergency account.

Source code:

bin_steps/
math_helpers/
sources/config.move
sources/treasury.move
sources/emergency.move