Skip to main content

MarketLiquidityFacetBase.sol

MarketLiquidityFacetBase

_getLpReceipt

function _getLpReceipt(struct LpReceiptStorage ls, uint256 receiptId) internal view returns (struct LpReceipt receipt)

_newLpReceipt

function _newLpReceipt(struct LpContext ctx, enum LpAction action, uint256 amount, address recipient, int16 tradingFeeRate) internal returns (struct LpReceipt)

Creates a new liquidity receipt.

  • Parameters:

    NameTypeDescription
    ctxstruct LpContextThe liquidity context.
    actionenum LpActionThe liquidity action.
    amountuint256The amount of liquidity.
    recipientaddressThe address to receive the liquidity.
    tradingFeeRateint16The trading fee rate for the liquidity.
  • Return Values:

    NameTypeDescription
    [0]struct LpReceiptThe new liquidity receipt.

_requireFeeRatesUniqueness

function _requireFeeRatesUniqueness(int16[] tradingFeeRates) internal pure