Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

LiquidityMath

Git Source - Generated with forge doc

Functions

addDelta

Add a signed liquidity delta to liquidity and revert if it overflows or underflows

function addDelta(uint128 x, int128 y) internal pure returns (uint128 z);

Parameters

NameTypeDescription
xuint128The liquidity before change
yint128The delta by which liquidity should be changed

Returns

NameTypeDescription
zuint128The liquidity delta

On this page

Tools