Skip to main content

ITokenFactory

Git Source

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

Functions

newTokens

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

function newTokens(address tokenX, address tokenY) external returns (IAmmalgamERC20[6] memory);

Parameters

NameTypeDescription
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].