Factory

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

Address

0x26B42c208D8a9d8737A2E5c9C57F4481484d4616

📝 The contract is verified on Avalanche C-Chain Explorer, 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);