Delta

Functions

combine

Combines two Delta instances by adding their delta values if skipCombine is false.

function combine(Instance memory self, Instance memory delta) internal pure;

Parameters

pastMaxTick

Checks if the activeTick is past the tickLimit for swapping to the maximum price.

function pastMaxTick(Instance memory self, int32 activeTick) internal pure returns (bool);

Parameters

Returns

Structs

Instance

struct Instance {
    uint256 deltaInBinInternal;
    uint256 deltaInErc;
    uint256 deltaOutErc;
    uint256 excess;
    bool tokenAIn;
    bool exactOutput;
    bool swappedToMaxPrice;
    bool skipCombine;
    int32 tickLimit;
    uint256 sqrtLowerTickPrice;
    uint256 sqrtUpperTickPrice;
    uint256 sqrtPrice;
    int64 fractionalPart;
}

Last updated