Skip to main content

IFactoryCallback

Git Source

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

NameTypeDescription
<none>IERC20A 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

NameTypeDescription
<none>addressThe address of the fee recipient.

feeToSetter​

Returns the address that can change the fee recipient.

function feeToSetter() external view returns (address);

Returns

NameTypeDescription
<none>addressThe 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;
}