FlatQube
▶️ App🔩 Sources💬 Community🔒 Audit
  • Welcome to FlatQube
  • 👨‍💻Use
    • Getting started
      • How it works
      • Roles
      • How to connect a wallet
      • Glossary
      • Everscale
      • How to get EVER
    • Swap
      • Interface
        • Basic swap
      • How to
        • Make a basic swap
        • Use limit trading
        • Configure slippage tolerance
        • Use cross-exchange
      • Concepts
        • Limit orders
        • Slippage tolerance
        • Fees
        • Price impact
        • Cross-exchange
    • Tokens
      • Interface
        • All tokens
        • Token page
          • Price
          • TVL
          • Trading volume
          • Pairs
          • Transactions
          • Open in explorer
      • How to
        • Upgrade token(s)
        • Add custom token
      • Concepts
        • Tokens we use
        • EVER and wEVER
        • Token lists
    • Pools
      • Interface
        • All pools
        • Pool page
      • How to
        • Connect DEX account
        • Add liquidity (Get LP tokens) / Withdraw liquidity
        • Create a new pool
        • Calculate the amount of LP tokens
      • Pool economics
    • Farming
      • New farming
        • Interface
          • Farming pools
          • Farming page (user)
            • Farming performance and deposits
            • Statistics
            • Farming speed and vesting
            • Transactions
          • Farm page (administrator)
        • How to
          • Claim reward
          • Deposit/Withdraw farm tokens
          • Get a boost
          • Create and manage your farming pool
      • Old farming
        • Interface
          • Farming pools
          • Farm page (user)
            • Farming perfomance and balances
            • Statistics
            • Farming speed
            • Farm information
            • Transactions
          • Farm page (administrator)
        • How to
          • Claim reward
          • Deposit farm tokens
          • Withdraw farm tokens
          • See farming performance
          • Find my transactions
      • Concepts
        • Yield farming
        • Reward distribution
        • Vesting
        • Farming token
        • Boosted farming
        • Pool share
    • DAO
      • Interface
        • DAO page
        • DAO balance
        • Epoch
      • How to
        • Lock tokens
        • Vote in Epoch
        • Get a boost
        • Become a candidate
      • Concept
        • DAO
        • veQUBE
        • Epoch
        • Boosted farming
        • FAQ
    • Token builder
      • Interface
        • Explorer
        • Token page
      • How to
        • Create new token
        • Mint tokens
        • Burn tokens
        • Transfer ownership
  • ⚒️Integrate
    • Open API
      • FlatQube DEX Indexer
        • CMC API
        • Currencies API
        • Pairs API
        • Transactions API
      • FlatQube Farming Indexer
        • Farming pools API
        • Transactions API
        • Graphics API
    • Smart contracts
      • DexAccount
      • DexPair
      • DexPlatform
      • DexRoot
      • DexVault
      • DexVaultLpTokenPending
      • EverToTip3
      • EverWeverToTip3
      • Tip3ToEver
      • TokenFactory
  • ↗️See also
    • EVER Wallet
    • Octus Bridge
    • Platform products
    • Broxus Github
Powered by GitBook
On this page

Was this helpful?

  1. Integrate

Smart contracts

Learn about the smart contracts used in FlatQube and how to integrate with them.

PreviousGraphics APINextDexAccount

Last updated 2 years ago

Was this helpful?

FlatQube is a smart contract system consisting of many libraries.

These smart contracts define the logic for managing DEX Pools, managing liquidity inside the pairs pool, deploying and updating new pairs and accounts, swapping EVERs to other TIP-3 tokens or TIP-3 tokens to EVER, creating vault and much more which is described sections below.

Libraries list:

  • DexErrors - contains codes with all the errors and their meaning.

  • DexGas - contains value for different types of operations.

  • DexOperationTypes - contains codes of all different dex operation types.

  • DexPlatformTypes - contains codes for different platform types.

  • EverToTip3Errors - contains codes with all the errors specifically related to EverToTip3 swap.

  • EverToTip3Gas - contains gas values for different types of operations specifically related to EverToTip3 contract.

  • EverToTip3OperationStatus - contains code values that represent operation status in EverToTip3 contract.

  • TokenFactoryErrors - contains codes with all the errors related to the token factory.

⚒️
Logoton-dex/contracts at master · broxus/ton-dexGitHub