For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ“œContract Reference

Solidity interfaces for the LiquidCore Router and pool contracts.

Use the Router for execution. Direct pool calls are optional when you already know the pool address.

Router

Chain

chainId

Router

HyperEVM

999

0x625aC1D165c776121A52ff158e76e3544B4a0b8B

Robinhood Chain

4663

0x322F277BfB7Ba9c196194ad18011377A0fF55Fb3

Prefer the routerAddress returned by the quote API.

Discovery functions

function getPools() external pure returns (address[] memory pools)
function getPoolForPair(address tokenA, address tokenB) public view returns (address)

Off-chain, list pools with GET /liquidcore/pools?chainId=....

Execution functions

function swap(
    address tokenIn,
    address tokenOut,
    uint256 amountIn,
    uint256 minAmountOut
) external returns (uint256 amountOut)

refCode is checked against an on-chain allowlist (RefCodeRegistry). Invalid codes do not accrue referral allocation and do not block the swap.

Quote functions

estimateSwapBatch is used by the REST API quote endpoint for CSV amountIn inputs. getReserves reverts with NoPoolForPair if no pool exists.

Referral functions

See Referrals for usage details.

Router errors


Direct pool interface

Discover pool addresses via GET /liquidcore/pools?chainId=.... Do not hardcode them β€” they differ by chain and change over time.

Common direct-pool errors

Referral usage details are documented in Referrals.

Last updated