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