Pricing Manager
Insurance Smart Contract
getPricingMerkleRoot
Get the pricing merkle root.
Name | Type | Description |
---|---|---|
[0] | bytes32 | The merkle root of the pricing data of the insurance products. |
setPricingMerkleRoot
Set the pricing merkle root.
Requirements:
msg.sender
- The caller must have the role ofSUPER_MANAGER_LEVEL
.
Events:
PricingMerkleRootChanged
- Emitted when the pricing merkle root is changed successfully.
Name | Type | Description |
---|---|---|
merkleRoot | bytes32 | The merkle root of the pricing data of the insurance products. |
PricingMerkleRootChanged
This event is emitted when the pricing merkle root is changed.
Name | Type | Description |
---|---|---|
merkleRoot | bytes32 | The merkle root. |
verifyMerkleProof
Verify the merkle proof of the pricing data.
Name | Type | Description |
---|---|---|
proof | bytes32[] | The merkle proof of the pricing data. |
pricingReference | string | The reference of the insurance product. |
premiumRate | uint256 | The pricing data. |
Name | Type | Description |
---|---|---|
[0] | bool | True if the merkle proof is valid, false otherwise. |
Last updated