There are a few different types of fees on Hexagon Finance, each collected to support a healthy ecosystem. For example, Liquidity Providers collect swap fees as users trade with pools; this acts as an incentive for them to continue providing liquidity, which is useful to facilitate trades.
Hexagon will accumulate 80% of the transaction fees charged in our pools for liquidity suppliers, while the rest will be accumulated as protocol fees.
Traders pay swap fees when they trade with a pool. The fees ultimately go to Liquidity Providers in exchange for them putting their tokens in the pool to facilitate trades. Trade fees are collected at the time of a swap, and it goes directly into the pool, growing the pool's balance. As the pool collects fees, The Pool Tokens automatically collect fees because they represent a proportional share of the pool.
Protocol Fees are a percentage of swap fees collected by pools when making swaps, and a percentage of Flash Loan Fees when collected as interest on flash loans. These go to the Treasury Reserves to be used or held as seen fit. At deployment, Protocol Fees for swaps and flash loans are set to be 20% upon deployment. These fees can be changed by governance votes in the future.
Protocol Fees for swaps are a percentage of the already collected swap fees; the traders would see no change in the amount collected. The Liquidity Providers, however, would see a small change. For example, if a pool has a 1% swap fee, and there was a 10% protocol swap fee, 0.9% of each trade would be collected for the LPs, and 0.1% would be collected to the protocol fee collector contract.
Flash Loan fees are a type of Protocol Fee on Hexagon Finance. The fees collected as interest on flash loans go to the DAO Treasury. At deployment, flash loan fees were set to be %.