Pricing Manager
Insurance Smart Contract
getPricingMerkleRoot
Get the pricing merkle root.
[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.
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.
merkleRoot
bytes32
The merkle root.
verifyMerkleProof
Verify the merkle proof of the pricing data.
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.
Last updated