OptionPoolRegistry
getPool
/// Instantiate optionPoolRegistry
IOptionPoolRegistry optionPoolRegistry = IOptionPoolRegistry("/*optionPoolRegistryAddress*/");
address optionAddress = '0xe3..."
optionPoolRegistry.getPool(optionAddress)
// OptionPoolRegistry.sol
/**
* @notice Returns the address of a previously created pool
*
* @dev If the pool has not been created it will return address(0)
*
* @param _optionAddress The address of option token
* @return The address of the pool
*/
function getPool(
address _optionAddress
) external returns (address pool) {}Last updated