Factory.sol

https://github.com/aloelabs/aloe-blend/blob/master/contracts/Factory.sol

The information provided by Aloe Labs, Inc. (โ€œwe,โ€ โ€œusโ€ or โ€œourโ€) on docs.aloe.capital (the โ€œSiteโ€) is for general informational purposes only. All information on the Site is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability or completeness of any information on the Site.

Under no circumstance shall we have any liability to you for any loss or damage of any kind incurred as a result of the use of the site or reliance on any information provided on the site. Your use of the site and your reliance on any information on the site is solely at your own risk.

Actions

createVault

Creates a new Blend vault for the given pool + silo combination.

Arguments

  • pool The Uniswap pool for which the Blend vault should manage liquidity

  • silo0 The silo to use for TOKEN0

  • silo1 The silo to use for TOKEN1

function createVault(
    IUniswapV3Pool pool,
    ISilo silo0,
    ISilo silo1
) external returns (IAloeBlend);

State

getVault

Returns an Aloe Blend vault address if one exists for the given set of parameters.

Arguments

  • pool The Uniswap pool for which the Blend vault should manage liquidity

  • silo0 The silo to use for TOKEN0

  • silo1 The silo to use for TOKEN1

function getVault(
    IUniswapV3Pool pool,
    ISilo silo0,
    ISilo silo1
) external view returns (IAloeBlend);
didCreateVault

Reports whether the given vault was deployed by this factory.

Arguments

  • vault The address of the vault to check on

function didCreateVault(IAloeBlend vault) external view returns (bool);

Immutables

volatilityOracle

The address of the volatility oracle used for all vaults deployed by this factory.

function volatilityOracle() external view returns (IVolatilityOracle);

Last updated