IFactoryCallback
This interface provides methods for getting the token factory configuration.
Functions
generateTokensWithinFactory
Returns the current token factory configuration.
function generateTokensWithinFactory() external returns (IERC20, IERC20, IAmmalgamERC20[6] memory);
Returns
Name | Type | Description |
---|---|---|
<none> | IERC20 | A TokenFactoryConfig struct representing the current token factory config. |
<none> | IERC20 | |
<none> | IAmmalgamERC20[6] |
feeTo
Returns the fee recipient address.
function feeTo() external view returns (address);
Returns
Name | Type | Description |
---|---|---|
<none> | address | The address of the fee recipient. |
feeToSetter
Returns the address that can change the fee recipient.
function feeToSetter() external view returns (address);
Returns
Name | Type | Description |
---|---|---|
<none> | address | The address of the fee setter. |
saturationAndGeometricTWAPState
Returns the address of the saturation state contract
function saturationAndGeometricTWAPState() external view returns (ISaturationAndGeometricTWAPState);
Structs
TokenFactoryConfig
This struct represents the configuration of the token factory, which includes the addresses of tokenX, tokenY, and the factory itself.
struct TokenFactoryConfig {
address tokenX;
address tokenY;
address factory;
}