The parameters of the rule that are not lambda_long: [0] = kappa: Can be per token (vector) or single for all tokens (scalar) [1] = lambda short: Can be per token (vector) or single for all tokens (scalar)
_poolParameters
QuantAMMPoolParameters
_setInitialIntermediateValues
Set the initial intermediate values for the pool, in this case the moving averages
Parameters
Name
Type
Description
_poolAddress
address
the target pool address
_initialValues
int256[]
the initial values of the pool
_numberOfAssets
uint256
the number of assets in the pool
_requiresPrevMovingAverage
Check if the rule requires the previous moving average
Returns
Name
Type
Description
<none>
uint16
0 if it does not require the previous moving average, 1 if it does
validParameters
Check if the given parameters are valid for the rule
If parameters are not valid, either reverts or returns false
Structs
QuantAMMDifferenceMomentumLocals
Struct to store local variables for the momentum calculation