pub fn get_variable_fee(
volatility_accumulator: u32,
bin_step: u16,
variable_fee_control: u32,
) -> u128Expand description
Calculate variable fee in 1e18 precision.
Port of PairParameterHelper.getVariableFee():
(volatilityAccumulator * binStep)^2 * variableFeeControl / 100