Pool Manager

Insurance Smart Contract

currency

function currency() external view returns (address)

Get the currency address.

Name
Type
Description

[0]

address

The address of the currency.

poolId

function poolId() external view returns (string)

Get the pool id.

Name
Type
Description

[0]

string

The pool id.

poolName

function poolName() external view returns (string)

Get the pool name.

Name
Type
Description

[0]

string

The pool name.

decimals

function decimals() external pure returns (uint8)

Get the decimals of the pool.

Name
Type
Description

[0]

uint8

The decimals of the pool.

verifier

function verifier() external view returns (address)

Get the verifier address.

Name
Type
Description

[0]

address

The address of the verifier that provides the verification service.

riskCarrierManager

function riskCarrierManager() external view returns (address)

Get the risk carrier manager address.

Name
Type
Description

[0]

address

The address of the risk carrier manager.

upfrontManager

function upfrontManager() external view returns (address)

Get the upfront manager address.

Name
Type
Description

[0]

address

The address of the upfront manager.

validatorManager

function validatorManager() external view returns (address)

Get the validator manager address.

Name
Type
Description

[0]

address

The address of the validator manager.

setCurrency

function setCurrency(address _addr_) external

Set the currency address.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • CurrencyChanged - Emitted when the currency address is changed successfully.

Name
Type
Description

addr

address

The address of the currency.

CurrencyChanged

event CurrencyChanged(address currency)

This event is emitted when the currency address is changed.

Name
Type
Description

currency

address

The currency address.

setPoolName

function setPoolName(string _poolName_) external

Set the pool name.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • PoolNameChanged - Emitted when the pool name is changed successfully.

Name
Type
Description

poolName

string

The pool name.

PoolNameChanged

event PoolNameChanged(string poolName)

This event is emitted when the pool name is changed.

Name
Type
Description

poolName

string

The pool name.

setPoolId

function setPoolId(string _poolId_) external

Set the pool id.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • PoolIdChanged - Emitted when the pool id is changed successfully.

Name
Type
Description

poolId

string

The pool id.

PoolIdChanged

event PoolIdChanged(string poolId)

This event is emitted when the pool id is changed.

Name
Type
Description

poolId

string

The pool id.

setVerifier

function setVerifier(address _addr_) external

Set the verifier address.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • VerifierChanged - Emitted when the verifier address is changed successfully.

Name
Type
Description

addr

address

The address of the verifier that provides the verification service.

VerifierChanged

event VerifierChanged(address verifier)

This event is emitted when the verifier address is changed.

Name
Type
Description

verifier

address

The verifier address.

setRiskCarrierManager

function setRiskCarrierManager(address _addr_) external

Set the risk carrier manager address.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • RiskCarrierManagerChanged - Emitted when the risk carrier manager address is changed successfully.

Name
Type
Description

addr

address

The address of the risk carrier manager.

RiskCarrierManagerChanged

event RiskCarrierManagerChanged(address riskCarrierManager)

This event is emitted when the risk carrier manager address is changed.

Name
Type
Description

riskCarrierManager

address

The risk carrier manager address.

setUpfrontManager

function setUpfrontManager(address _addr_) external

Set the upfront manager address.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • UpfrontManagerChanged - Emitted when the upfront manager address is changed successfully.

Name
Type
Description

addr

address

The address of the upfront manager.

UpfrontManagerChanged

event UpfrontManagerChanged(address upfrontManager)

This event is emitted when the upfront manager address is changed.

Name
Type
Description

upfrontManager

address

The upfront manager address.

setValidatorManager

function setValidatorManager(address _addr_) external

Set the validator manager address.

Requirements:

  • msg.sender - The caller must have the role of SUPER_MANAGER_LEVEL.

Events:

  • ValidatorManagerChanged - Emitted when the validator manager address is changed successfully.

Name
Type
Description

addr

address

The address of the validator manager.

ValidatorManagerChanged

event ValidatorManagerChanged(address validatorManager)

This event is emitted when the validator manager address is changed.

Name
Type
Description

validatorManager

address

The validator manager address.

Last updated