QuantAMMStorage

Git Sourcearrow-up-right

Contains the logic for packing and unpacking storage slots with 128 bit integers

State Variables

MAX128

int256 private constant MAX128 = int256(type(int128).max);

MIN128

int256 private constant MIN128 = int256(type(int128).min);

Functions

_quantAMMPackTwo128

Packs two 128 bit integers into one 256 bit integer

function _quantAMMPackTwo128(int256 _leftInt, int256 _rightInt) internal pure returns (int256 packed);

Parameters

Name
Type
Description

_leftInt

int256

the left integer to pack

_rightInt

int256

the right integer to pack

Last updated