How to tweak formula behaviour
Sigmoid coefficients Fee calculation can be tuned by the following parameters:
Adaptive fee function is a combination of several sigmoids. The plot of the standard sigmoid function looks like this:
We use a more flexible formula for sigmoids:
So additional params (alpha, gamma, beta) allow us to shift, stretch and modify sigmoids.
Default params:
So
max fee value is: baseFee
+ alpha1
+ alpha2
min fee value is: baseFee
midpoint of the first sigmoid: beta1
midpoint of the second sigmoid: beta2
sigmoid âjumpâ âstartsâ around beta - 6 * gamma
, ends around beta + 6 * gamma
alpha1
, alpha2
, beta1
, beta2
, gamma1
, gamma2
â coefficients for volatility sigmoids. â coefficients for volume sigmoid
Last updated