EcosystemNFTsDocs

Footer

Xchange

  • Swap
  • Liquidity
  • Loans
  • Fund
  • Vote

Tokens

  • X7R
  • X7DAO
  • X7D
  • X7101-X7105

Explore

  • Dashboard
  • Guides
  • Integration
  • Whitepaper
  • Breakdowns
  • Onchains
  • FAQs

Community

  • Telegram
  • Twitter
  • Discord
  • Warpcast
  • Blog
  • Links

Permissionless Trustless Decentralized Exchange

Launch your project on Xchange with 10-1000x the initial liquidity across multiple blockchains where anyone can Swap, Borrow and Lend!

X7 Finance·Trust No One. Trust Code. Long Live DeFi.
  • Telegram
  • Twitter
  • Discordś
  • Warpcast
  • YouTube
  • Reddit
  • GitHub
  • Pioneer 1488 avatar
    Guides
    View
  • Pioneer 1488 avatar
    Integration
    View
  • Pioneer 1488 avatar
    Whitepaper
    View
  • Pioneer 1488 avatar
    Breakdowns
    View
  • Pioneer 1488 avatar
    Onchains
    View
  • Pioneer 1488 avatar
    FAQ
    View
    • X7R Token Contract
    • X7DAO Token Contract
    • X7100 Token Contract
    • X7D
    • X7DAO Discount Authority
    • X7DAO Liquidity Hub
    • X7 Ecosystem Splitter
    • X7 Liquidity Loan Terms
    • X7 Lending Pool
    • X7 Lending Pool Reserve
    • X7 Lending Discount Authority
    • X7 Liquidity Treasury
    • X7 Profit Share Splitter
    • X7R Discount Authority
    • X7R Liquidity Hub
    • X7 Token Burner
    • X7 Token Timelock
    • X7 Treasury Splitter V3
    • X7100 Discount Authority
    • X7100 Liquidity Hub
    • X7 Borrowing Maxi NFT
    • X7 Dex Maxi NFT
    • X7 Ecosystem Maxi NFT
    • X7 Liquidity Maxi NFT
    • X7 Pioneer NFT
    • X7 Magister NFT
    • Xchange Factory
    • Xchange Pair
    • X7R Token Contract
    • X7DAO Token Contract
    • X7100 Token Contract
    • X7D
    • X7DAO Discount Authority
    • X7DAO Liquidity Hub
    • X7 Ecosystem Splitter
    • X7 Liquidity Loan Terms
    • X7 Lending Pool
    • X7 Lending Pool Reserve
    • X7 Lending Discount Authority
    • X7 Profit Share Splitter
    • X7R Discount Authority
    • X7R Liquidity Hub
    • X7 Token Burner
    • X7 Token Timelock
    • X7 Treasury Splitter V3
    • X7100 Discount Authority
    • X7100 Liquidity Hub
    • X7 Borrowing Maxi
    • X7 Dex Maxi
    • X7 Ecosystem Maxi
    • X7 Liquidity Maxi NFT
    • X7 Pioneer NFT
    • X7 Magister NFT
    • Xchange Factory
    • Xchange Pair
    • X7R Token Contract
    • X7DAO Token Contract
    • X7100 Token Contract
    • X7D
    • X7DAO Discount Authority
    • X7DAO Liquidity Hub
    • X7 Ecosystem Splitter
    • X7 Liquidity Loan Terms
    • X7 Lending Pool
    • X7 Lending Pool Reserve
    • X7 Lending Discount Authority
    • X7 Profit Share Splitter
    • X7R Discount Authority
    • X7R Liquidity Hub
    • X7 Token Burner
    • X7 Token Timelock
    • X7 Treasury Splitter V3
    • X7100 Discount Authority
    • X7100 Liquidity Hub
    • X7 Borrowing Maxi
    • X7 Dex Maxi
    • X7 Ecosystem Maxi
    • X7 Liquidity Maxi NFT
    • X7 Pioneer NFT
    • X7 Magister NFT
    • Xchange Factory
    • Xchange Pair
Smart Contract Variables
breakdowns

Xchange Pair

Smart Contract Function Variables

factory Function

Parameter NameParameter TypeDescription

getReserves Function

Parameter NameParameter TypeDescription

initialize Function

Parameter NameParameter TypeDescription
_token0addressThe address of the first token in the pair.
_token1addressThe address of the second token in the pair.

setMinimumBalance Function

Parameter NameParameter TypeDescription
tokenAddressaddressThe address of the token to set the minimum balance for.
minimumAmountuint112The minimum amount of the token.

withdrawTokensAgainstMinimumBalance Function

Parameter NameParameter TypeDescription
tokenAddressaddressThe address of the token to withdraw.
toaddressThe address to send the withdrawn tokens to.
amountuint112The amount of tokens to withdraw.

mint Function

Parameter NameParameter TypeDescription
toaddressThe address to mint the liquidity tokens to.

burn Function

Parameter NameParameter Type

On this page

  1. Smart Contract Function Variables

    1. factory Function
    2. getReserves Function
    3. initialize Function
    4. setMinimumBalance Function
    5. withdrawTokensAgainstMinimumBalance Function
    6. mint Function
    7. burn Function
    8. mustBurn Function
    9. swap Function
    10. swapWithDiscount Function
    11. skim Function
    12. sync Function
    13. syncSafe Function
    14. _mintFee Function
    15. _swap Function
    16. _update Function
    17. _safeTransfer Function
    18. _trySafeTransfer Function
Description
toaddressThe address to send the burned tokens to.

mustBurn Function

Parameter NameParameter TypeDescription
toaddressThe address to send the burned tokens to.
gasAmountuint256The amount of gas to use for the burn.

swap Function

Parameter NameParameter TypeDescription
amount0OutuintThe amount of the first token to swap out.
amount1OutuintThe amount of the second token to swap out.
toaddressThe address to send the swapped tokens to.
databytes calldataAdditional data to be passed to the function.

swapWithDiscount Function

Parameter NameParameter TypeDescription
amount0OutuintThe amount of the first token to swap out.
amount1OutuintThe amount of the second token to swap out.
toaddressThe address to send the swapped tokens to.
feeAmountOverrideuintThe overridden fee amount.
databytes calldataAdditional data to be passed to the function.

skim Function

Parameter NameParameter TypeDescription
toaddressThe address to send the skimmed tokens to.

sync Function

Parameter NameParameter TypeDescription

syncSafe Function

Parameter NameParameter TypeDescription
gasAmountToken0uint256The amount of gas to use for the synchronization of the first token.
gasAmountToken1uint256The amount of gas to use for the synchronization of the second token.

_mintFee Function

Parameter NameParameter TypeDescription
_reserve0uint112The amount of the first token in the reserve.
_reserve1uint112The amount of the second token in the reserve.

_swap Function

Parameter NameParameter TypeDescription
amount0OutuintThe amount of the first token to swap out.
amount1OutuintThe amount of the second token to swap out.
toaddressThe address to send the swapped tokens to.
feeAmountOverrideuintThe overridden fee amount.
databytes calldataAdditional data to be passed to the function.

_update Function

Parameter NameParameter TypeDescription
balance0uintThe balance of the first token.
balance1uintThe balance of the second token.
_reserve0uint112The amount of the first token in the reserve.
_reserve1uint112The amount of the second token in the reserve.

_safeTransfer Function

Parameter NameParameter TypeDescription
tokenaddressThe address of the token to transfer.
toaddressThe address to transfer the tokens to.
valueuintThe amount of tokens to transfer.

_trySafeTransfer Function

Parameter NameParameter TypeDescription
tokenaddressThe address of the token to transfer.
toaddressThe address to transfer the tokens to.
valueuintThe amount of tokens to transfer.
gasAmountuintThe amount of gas to use for the transfer.
Previous
← Xchange Factory

-

  • Pioneer 1488 avatar
    Guides
    View
  • Pioneer 1488 avatar
    Integration
    View
  • Pioneer 1488 avatar
    Whitepaper
    View
  • Pioneer 1488 avatar
    Breakdowns
    View
  • Pioneer 1488 avatar
    Onchains
    View
  • Pioneer 1488 avatar
    FAQ
    View