BloomFactory

Overview

The BloomFactory allows the owner to deploy BloomPools. At the moment the Blueberry Foundation only maintains support for USDC as the lend asset and bIb01 as the rwa asset, so there will only be one BloomPool, but in the future if expansion to other assets occurs this canonical factory can generate new BloomPools for those assets.

Contract API

isFromFactory

function isFromFactory(address account) external view returns (bool);

Checks if an address is from the factory. Returning true if it is a valid BloomPool deployed from the factory and false if it is not.

createBloomPool

This is a permissioned function that only the owner of the BloomFactory can call.

function createBloomPool(address asset_, address rwa_, uint256 initLeverage)
   external
   onlyOwner
   returns (BloomPool pool);

Creates a new BloomPool instance. Returning that instance back to the user.

Last updated