Distributing fees

Last modified:

As discussed earlier, in CenturionDEX v2 trading fees are charged on the input side: when a trader deposits tokens into the pool, only the fee-adjusted portion of that input is actually exchanged, while the remaining portion is retained as a fee. These fees are not distributed to liquidity providers immediately, since doing so after every trade would be operationally inefficient and unnecessarily costly in gas. Instead, the fees remain in the pool, increasing the total value of its reserves and, therefore, the value of each liquidity provider's proportional share. As a consequence, when a liquidity provider later redeems LP tokens, they receive not only their share of the underlying reserves but also the additional value generated by the fees accumulated in the pool over time.