Phoenix-Protocol-Group / phoenix-contracts

Source code of the smart contracts of the Phoenix DeFi hub DEX protocol
GNU General Public License v3.0
10 stars 7 forks source link

Factory: Return LP's address after creating a liquidity pool #149

Closed ueco-jb closed 1 year ago

ueco-jb commented 1 year ago

Currently create_liquidity_pool returns nothing.

    fn create_liquidity_pool(
        env: Env,
        lp_init_info: LiquidityPoolInitInfo,
    ) -> Result<(), ContractError>;

Change this to -> Result<Address, ContractError>; and return an address of newly created liquidity pool.