LogoLogo
  • Xave Finance
  • Contract Reference
  • Deployment Addresses
    • Avalanche (C-Chain)
    • Polygon (POS) Mainnet
    • Ethereum Mainnet
    • Apothem Testnet
    • Sepolia Testnet
  • Developer Guides
    • Executing FX Trades
    • Adding / Removing Liquidity
  • Contract API
    • Assimilators
      • API Reference
    • FXPool
      • API Reference
  • Other API Reference
    • Pairs and Tickers
Powered by GitBook
On this page
  1. Contract API

FXPool

PreviousAPI ReferenceNextAPI Reference

Last updated 11 months ago

The FXPools are custom "Protocol Pools" built on top the Balancer V2 Vault. to learn more about this pool type.

The FXPool implements its own custom "bonding curve" via three main hooks that are called by the Balancer v2 Vault, namelyonJoinPool (called on LP deposit), onExitPool (called on LP withdrawal) and onSwap (called when swapping one token for another).

It is important to note that the FXPools only define custom logic via these three hooks and do not hold idle token balances ().

See the Balancer docs here
learn how the Balancer V2 Vault separates token accounting and logic