allPairsLength() :
This function returns the length of the allPairs array. It does this by accessing the length property of the allPairs array and returning it as a uint. (autogenerated documentation)
setPauser(address) :
This function allows the current pauser to set a new pauser. It does this by first requiring that the message sender (the current pauser) is the same as the current pauser. Then, it sets the new pauser to the address provided as an argument. (autogenerated documentation)
acceptPauser() :
This function allows a pendingPauser to become the pauser of the contract. It does this by checking that the msg.sender is equal to the pendingPauser, and if so, setting the pauser to the pendingPauser. (autogenerated documentation)
setPause(bool) :
This function allows the pauser address to set the pause state of the contract. If the msg.sender is equal to the pauser address, the isPaused variable is set to the boolean value passed in as an argument. This allows the pauser to pause or unpause the contract as needed. (autogenerated documentation)
setFeeManager(address) :
This function allows the current feeManager to set a new feeManager. It does this by first checking that the msg.sender is the current feeManager, and then setting the new feeManager address to the pendingFeeManager variable. (autogenerated documentation)
acceptFeeManager() :
This function allows the owner of the contract to accept a pending fee manager. It does this by checking that the sender of the transaction (msg.sender) is the same as the pending fee manager, and if so, sets the feeManager variable to the pendingFeeManager. (autogenerated documentation)
setFee(bool,uint256) :
This function allows the feeManager to set the stableFee or volatileFee of the contract. It requires that the msg.sender is the feeManager, that the fee is less than the MAX_FEE, and that the fee is nonzero. If the _stable parameter is true, the stableFee is set to the _fee parameter, otherwise the volatileFee is set to the _fee parameter. (autogenerated documentation)
getFee(bool) :
This function returns either the stableFee or the volatileFee depending on the boolean value passed in as an argument. If the argument is true, the function will return the stableFee, and if the argument is false, the function will return the volatileFee. (autogenerated documentation)
pairCodeHash() :
This function returns the keccak256 hash of the code used to create a Pair contract. The keccak256 hash is a cryptographic hash function that takes an input of any length and produces an output of fixed length. This function is used to ensure that the code used to create the Pair contract has not been tampered with. (autogenerated documentation)
getInitializable() :
This function is used to retrieve the address of an initializable contract, as well as the address of the contract's owner, and a boolean value indicating whether the contract has been initialized. It does this by returning the values stored in the _temp0, _temp1, and _temp variables. (autogenerated documentation)
createPair(address,address,bool) :
This function creates a new pair of tokens. It takes in two addresses for the tokens, as well as a boolean value indicating whether the pair is stable or not. It then checks to make sure that the two tokens are not the same, and that the pair does not already exist. It then creates a unique identifier for the pair using a keccak256 hash of the two token addresses and the boolean value. It then creates a new Pair contract with the salt as the identifier, and stores the address of the new Pair contract in the getPair mapping. It also adds the address of the new Pair contract to the allPairs array and sets the isPair mapping to true. Finally, it emits an event to indicate that (autogenerated documentation)