When adding liquidity to Curve AMM, fees are calculated by the following code
_fee: uint256 = self.fee * N_COINS / (4 * (N_COINS - 1))
I am guessing that division by 4
means 25% of self.fee
. But why is self.fee
multiplied by N_COINS / (N_COINS - 1)
?
Thanks in advance.