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:
Name Type Description ctx struct LpContext The liquidity context. action enum LpAction The liquidity action. amount uint256 The amount of liquidity. recipient address The address to receive the liquidity. tradingFeeRate int16 The trading fee rate for the liquidity. Return Values:
Name Type Description [0] struct LpReceipt The new liquidity receipt.
_requireFeeRatesUniqueness
function _requireFeeRatesUniqueness(int16[] tradingFeeRates) internal pure