LFJ Developer Docs
  • Liquidity Book
  • Introduction
  • LB V2.2 Key Changes
  • Guides
    • Swap Tokens
    • Add/Remove Liquidity
    • Tracking Volume
    • Tracking Pool Balances
    • Finding The Best Quote
    • Byte32 Decoding
    • Price From Bin Id
    • Bin Id From Price
    • Finding Liquidity Depth
    • User Balances
  • Concepts
    • Concentrated Liquidity
    • Bin Math
    • Bin Liquidity
    • Swaps
    • Fees
    • Oracle
  • Contracts
    • Interfaces
      • ILBLegacyFactory
      • ILBLegacyToken
      • ILBLegacyPair
      • ILBLegacyRouter
      • ILBFlashLoanCallback
      • IPendingOwnable
      • IJoeFactory
      • IJoePair
      • IJoeRouter01
      • IJoeRouter02
      • IWNATIVE
      • ILBFactory
      • ILBHooks
      • ILBPair
      • ILBRouter
      • ILBToken
    • Libraries
      • Math
        • BitMath
        • Encoded
        • LiquidityConfigurations
        • PackedUint128Math
        • SafeCast
        • SampleMath
        • TreeMath
        • Uint128x128Math
        • Uint256x256Math
      • BinHelper
      • Clone
      • Constants
      • FeeHelper
      • Hooks
      • ImmutableClone
      • JoeLibrary
      • OracleHelper
      • PairParameterHelper
      • PriceHelper
      • ReentrancyGuardUpgradeable
      • TokenHelper
    • LBBaseHooks
    • LBFactory
    • LBPair
    • LBQuoter
    • LBRouter
    • LBToken
  • Deployment Addresses
    • Avalanche C-Chain
    • Fuji Testnet
    • Arbitrum One
    • Binance Smart Chain
    • Binance Smart Chain Testnet
    • Ethereum Mainnet
    • Monad Testnet
  • SDK
    • Introduction
    • Making a Trade
    • Adding Liquidity
    • Removing Liquidity
  • Audits
  • AMM
    • Joe V1 Contracts
    • Joe V1 Audits
  • LFJ DEX API
    • Dex Analytics
    • Pools
    • Rewards
    • User
    • User Lifetime Stats
    • Vaults
    • Models
  • LFJ Aggregator API
    • Default
    • Models
Powered by GitBook
On this page
  • Approval
  • Transfer
  • name
  • symbol
  • decimals
  • totalSupply
  • balanceOf
  • allowance
  • approve
  • transfer
  • transferFrom
  • DOMAIN_SEPARATOR
  • PERMIT_TYPEHASH
  • nonces
  • permit
  • Mint
  • Burn
  • Swap
  • Sync
  • MINIMUM_LIQUIDITY
  • factory
  • token0
  • token1
  • getReserves
  • price0CumulativeLast
  • price1CumulativeLast
  • kLast
  • mint
  • burn
  • swap
  • skim
  • sync
  • initialize
  1. Contracts
  2. Interfaces

IJoePair

Interface to interact with Joe V1 Pairs

Approval

event Approval(address owner, address spender, uint256 value)

Transfer

event Transfer(address from, address to, uint256 value)

name

function name() external pure returns (string)

symbol

function symbol() external pure returns (string)

decimals

function decimals() external pure returns (uint8)

totalSupply

function totalSupply() external view returns (uint256)

balanceOf

function balanceOf(address owner) external view returns (uint256)

allowance

function allowance(address owner, address spender) external view returns (uint256)

approve

function approve(address spender, uint256 value) external returns (bool)

transfer

function transfer(address to, uint256 value) external returns (bool)

transferFrom

function transferFrom(address from, address to, uint256 value) external returns (bool)

DOMAIN_SEPARATOR

function DOMAIN_SEPARATOR() external view returns (bytes32)

PERMIT_TYPEHASH

function PERMIT_TYPEHASH() external pure returns (bytes32)

nonces

function nonces(address owner) external view returns (uint256)

permit

function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external

Mint

event Mint(address sender, uint256 amount0, uint256 amount1)

Burn

event Burn(address sender, uint256 amount0, uint256 amount1, address to)

Swap

event Swap(address sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address to)

Sync

event Sync(uint112 reserve0, uint112 reserve1)

MINIMUM_LIQUIDITY

function MINIMUM_LIQUIDITY() external pure returns (uint256)

factory

function factory() external view returns (address)

token0

function token0() external view returns (address)

token1

function token1() external view returns (address)

getReserves

function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)

price0CumulativeLast

function price0CumulativeLast() external view returns (uint256)

price1CumulativeLast

function price1CumulativeLast() external view returns (uint256)

kLast

function kLast() external view returns (uint256)

mint

function mint(address to) external returns (uint256 liquidity)

burn

function burn(address to) external returns (uint256 amount0, uint256 amount1)

swap

function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data) external

skim

function skim(address to) external

sync

function sync() external

initialize

function initialize(address, address) external
PreviousIJoeFactoryNextIJoeRouter01

Last updated 8 days ago