Skip to main content

ALTBCFactory

Git Source Inherits: Ownable, FactoryBase Author: @oscarsernarosero @mpetersoCode55 @cirsteve creates the pools in an automated and permissioned fashion

Functions

constructor

constructor() Ownable(_msgSender());

createPool

Only allowed deployers can deploy pools and only allowed yTokens are allowed deploys an ALTBC pool
function createPool(
    address _xToken,
    address _yToken,
    uint16 _lpFee,
    ALTBCInput memory _tbcInput,
    bool _liquidityRemovalAllowed
) external onlyAllowedDeployers onlyAllowedYTokens(_yToken) returns (address deployedPool);
Parameters
NameTypeDescription
_xTokenaddressaddress of the X token (x axis)
_yTokenaddressaddress of the Y token (y axis)
_lpFeeuint16percentage of the fees in percentage basis points
_tbcInputALTBCInputinput data for the pool
_liquidityRemovalAllowedboolif true, liquidity can be removed at any time. Removal of liquidity forbidden otherwise
Returns
NameTypeDescription
deployedPooladdressthe address of the deployed pool