ILBFactory

Required interface of LBFactory contract

LBPairInformation

struct LBPairInformation{
    uint16 binStep;
    ILBPair LBPair;
    bool createdByOwner;
    bool ignoredForRouting;
}

Structure to store the LBPair information, such as:

  • binStep: The bin step of the LBPair

  • LBPair: The address of the LBPair

  • createdByOwner: Whether the pair was created by the owner of the factory

  • ignoredForRouting: Whether the pair is ignored for routing or not. An ignored pair will not be explored during routes finding

LBPairCreated

event LBPairCreated(
    IERC20 indexed tokenX, 
    IERC20 indexed tokenY, 
    uint256 indexed binStep, 
    ILBPair LBPair, 
    uint256 pid
    )

FeeRecipientSet

FlashLoanFeeSet

LBPairImplementationSet

LBPairIgnoredStateChanged

PresetSet

PresetOpenStateChanged

PresetRemoved

QuoteAssetAdded

QuoteAssetRemoved

getMinBinStep

getFeeRecipient

getMaxFlashLoanFee

getFlashLoanFee

getLBPairImplementation

getNumberOfLBPairs

getLBPairAtIndex

getNumberOfQuoteAssets

getQuoteAssetAtIndex

isQuoteAsset

getLBPairInformation

getPreset

getAllBinSteps

getAllLBPairs

setLBPairImplementation

createLBPair

setLBPairIgnored

setPreset

setPresetOpenState

removePreset

setFeesParametersOnPair

setFeeRecipient

setFlashLoanFee

addQuoteAsset

removeQuoteAsset

forceDecay

Last updated