NewTokensFactory
Inherits: INewTokensFactory
State Variables
liquidityTokenFactory
ITokenFactory private immutable liquidityTokenFactory;
depositTokenFactory
ITokenFactory private immutable depositTokenFactory;
debtTokenFactory
ITokenFactory private immutable debtTokenFactory;
liquidityDebtTokenFactory
ITokenFactory private immutable liquidityDebtTokenFactory;
Functions
constructor
constructor(
ITokenFactory _liquidityTokenFactory,
ITokenFactory _depositTokenFactory,
ITokenFactory _borrowTokenFactory,
ITokenFactory _liquidityDebtTokenFactory
);
createAllTokens
function createAllTokens(
address pair,
address pluginRegistry,
address tokenX,
address tokenY
) external returns (IAmmalgamERC20[6] memory tokens);
createToken
function createToken(
address tokenFactory,
address asset,
ERC20BaseConfig memory config
) private returns (IAmmalgamERC20);
Errors
ERC20TokenFactoryFailed
error ERC20TokenFactoryFailed();