Skip to main content

INewTokensFactory

Git Source

Interface for the NewTokensFactory contract, which is responsible for creating new instances of AmmalgamERC20 tokens.

Functions

createAllTokens

Creates new instances of AmmalgamERC20 tokens for the given token addresses.

function createAllTokens(
address pair,
address pluginRegistry,
address tokenX,
address tokenY
) external returns (IAmmalgamERC20[6] memory);

Parameters

NameTypeDescription
pairaddress
pluginRegistryaddress
tokenXaddressThe address of tokenX.
tokenYaddressThe address of tokenY.

Returns

NameTypeDescription
<none>IAmmalgamERC20[6]An array of IAmmalgamERC20 tokens consisting of [liquidityToken, depositXToken, depositYToken, borrowXToken, borrowYToken, borrowLToken].