OptionPoolRegistry
Contract responsible for registering the Option <> Pool pair relation. It will be used when retriving an poolAddress given an optionAddress,

getPool

The function returns the address of the pool with given an _optionAddress.
Input name
Type
Required
Description
_optionAddress
address
-
The address of the option token (PodOption)
Solidity
1
/// Instantiate optionPoolRegistry
2
IOptionPoolRegistry optionPoolRegistry = IOptionPoolRegistry("/*optionPoolRegistryAddress*/");
3
4
address optionAddress = '0xe3..."
5
6
optionPoolRegistry.getPool(optionAddress)
7
8
// OptionPoolRegistry.sol
9
/**
10
* @notice Returns the address of a previously created pool
11
*
12
* @dev If the pool has not been created it will return address(0)
13
*
14
* @param _optionAddress The address of option token
15
* @return The address of the pool
16
*/
17
function getPool(
18
address _optionAddress
19
) external returns (address pool) {}
Copied!
Copy link
Contents
getPool