PS-Docs
  • 🚀Hello! PumpSpace
  • PumpSpace
    • 📊Bonding Curve
    • 👫How to Participate?
    • 👑How to Launch?
    • 💵Protocol Fees
    • 💰PumpSpace Reward
  • AquaSpace
    • ⏳Tokenomics
    • 👮‍♂️Audit Report
    • 📖Content Policy
    • 📚Terms and Conditions
  • Contract
    • Token
    • Factory
    • Router
    • Pair
  • 👥 Resources
    • PumpSpace (Website)
    • X (Twitter)
    • Telegram
    • BlueWhale (Website)
    • BlueWhale (Telegram)
Powered by GitBook
On this page
  • Address
  • Functions
  1. Contract

Factory

PreviousTokenNextRouter

Last updated 2 months ago

The Factory smart contract oversees the full functionality of token pair registration and transactions in PumpSpace.

Address

📝 The contract is verified on , and its source code can be publicly viewed there.


Functions

getPair

  • When the addresses of tokenA and tokenB are inputted, this returns the contract address of the corresponding pairing

  • Returns the same contract address regardless of the order of the liquidity pool pairing tokens:

    getPair[tokenA][tokenB] == getPair[tokenB][tokenA]

function getPair(address tokenA, address tokenB) external view returns (address pair);

allPairs

  • Returns the liquidity pair contract address of the pair's index.

function allPairs(uint idx) external view returns (address pair);

allPairsLength

  • Returns the current number of registered liquidity pools.

function allPairsLength() external view returns (uint count);
0x26B42c208D8a9d8737A2E5c9C57F4481484d4616
Avalanche C-Chain Explorer