Comment on page
Liquidity Provider and Protocol Fees
These pages describe the breakdown and distribution of fees generated from the FXPools
Note: not all FXPools charge the same 8 bps per trade. See the subpages for the actual fees charged
- 1.For every successful trade, a percentage of the transaction value is deducted as trading fees and remains in the pool
- 2.A portion of these fees is allocated to liquidity providers (LPs) and paid to them upon withdrawal, while the rest is allocated to the protocol. For a detailed breakdown of fee distribution between LPs and the Protocol for individual pools, please refer to the subsections of the Fee page and find the specific pool you are interested in for more details.
Disperse Protocol Fees
- 1.The FXPool tracks the protocol unclaimed fees from transactions through a public parameter,
FXPool.totalUnclaimedFeesInNumeraire, where "numeraire" represents USD value in our code
- 2.On every LP deposit/withdraw,
FXPool.totalUnclaimedFeesInNumeraireis paid to the protocol fee distributor contract
disperseFeesfunction can then be called by anyone, distributing half of the unclaimed fees to the Xave fee collector address and the other half to Balancer's fee collector.
Last modified 4mo ago