QuantAMMMathGuard
State Variables
ONE
int256 private constant ONE = 1 * 1e18;TWO
int256 private constant TWO = 2 * 1e18;Functions
_guardQuantAMMWeights
function _guardQuantAMMWeights(
int256[] memory _weights,
int256[] calldata _prevWeights,
int256 _epsilonMax,
int256 _absoluteWeightGuardRail
) internal pure returns (int256[] memory guardedNewWeights);Name
Type
Description
_clampWeights
Name
Type
Description
Name
Type
Description
_normalizeWeightUpdates
Name
Type
Description
_pow
Name
Type
Description
Name
Type
Description
Last updated