Pool Manager
Insurance Smart Contract
currency
Get the currency address.
Name | Type | Description |
---|---|---|
[0] | address | The address of the currency. |
poolId
Get the pool id.
Name | Type | Description |
---|---|---|
[0] | string | The pool id. |
poolName
Get the pool name.
Name | Type | Description |
---|---|---|
[0] | string | The pool name. |
decimals
Get the decimals of the pool.
Name | Type | Description |
---|---|---|
[0] | uint8 | The decimals of the pool. |
verifier
Get the verifier address.
Name | Type | Description |
---|---|---|
[0] | address | The address of the verifier that provides the verification service. |
riskCarrierManager
Get the risk carrier manager address.
Name | Type | Description |
---|---|---|
[0] | address | The address of the risk carrier manager. |
upfrontManager
Get the upfront manager address.
Name | Type | Description |
---|---|---|
[0] | address | The address of the upfront manager. |
validatorManager
Get the validator manager address.
Name | Type | Description |
---|---|---|
[0] | address | The address of the validator manager. |
setCurrency
Set the currency address.
Requirements:
msg.sender
- The caller must have the role ofSUPER_MANAGER_LEVEL
.
Events:
CurrencyChanged
- Emitted when the currency address is changed successfully.
Name | Type | Description |
---|---|---|
addr | address | The address of the currency. |
CurrencyChanged
This event is emitted when the currency address is changed.
Name | Type | Description |
---|---|---|
currency | address | The currency address. |
setPoolName
Set the pool name.
Requirements:
msg.sender
- The caller must have the role ofSUPER_MANAGER_LEVEL
.
Events:
PoolNameChanged
- Emitted when the pool name is changed successfully.
Name | Type | Description |
---|---|---|
poolName | string | The pool name. |
PoolNameChanged
This event is emitted when the pool name is changed.
Name | Type | Description |
---|---|---|
poolName | string | The pool name. |
setPoolId
Set the pool id.
Requirements:
msg.sender
- The caller must have the role ofSUPER_MANAGER_LEVEL
.
Events:
PoolIdChanged
- Emitted when the pool id is changed successfully.
Name | Type | Description |
---|---|---|
poolId | string | The pool id. |
PoolIdChanged
This event is emitted when the pool id is changed.
Name | Type | Description |
---|---|---|
poolId | string | The pool id. |
setVerifier
Set the verifier address.
Requirements:
msg.sender
- The caller must have the role ofSUPER_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
This event is emitted when the verifier address is changed.
Name | Type | Description |
---|---|---|
verifier | address | The verifier address. |
setRiskCarrierManager
Set the risk carrier manager address.
Requirements:
msg.sender
- The caller must have the role ofSUPER_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
This event is emitted when the risk carrier manager address is changed.
Name | Type | Description |
---|---|---|
riskCarrierManager | address | The risk carrier manager address. |
setUpfrontManager
Set the upfront manager address.
Requirements:
msg.sender
- The caller must have the role ofSUPER_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
This event is emitted when the upfront manager address is changed.
Name | Type | Description |
---|---|---|
upfrontManager | address | The upfront manager address. |
setValidatorManager
Set the validator manager address.
Requirements:
msg.sender
- The caller must have the role ofSUPER_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
This event is emitted when the validator manager address is changed.
Name | Type | Description |
---|---|---|
validatorManager | address | The validator manager address. |
Last updated