House Insurance

FINANCIAL

Contract purpose

Contract for enforcing damage assessment and damage payment in case of events involving dwellings.

Contract parameters

policyNumber: the unique identifier of the insurance policy

policyLimit: the maximum amount the insurer will pay

insuree: address of the entity entitled to receive the insurance

damageAssessor: address of the entity which will set the damage amount after damage assessment

Exposed methods and variables

insurer: address of the creator of the contract

insureeAssessorApproval: set true/false depending on the approval/ disapproval of the insuree regarding the assessor

insureeDamageApproval: set true/false depending on the approval/disapproval of the insuree regarding the damage assessment

insurerDamageApproval: set true/false depending on the approval/disapproval of the insurer regarding the damage assessment

damageSet: set true when the assessor completes the damage assessment

damage the amount of money set by the assessor to cover the damage

damageDescription description of the damage found

insureeApprovesAssessor called by the insuree when he approves/disapproves the choice of the assessor

parameter nametypedetails
approvalbooltrue or false

damageAssessment called by the assessor after the damage value was determined.

parameter nametypedetails
_damageintegervalue of damage
_descriptionstringdamage description

assessorChange called by the insurer in case the insuree is not satisfied with the chosen assessor

parameter nametypedetails
_newAssessorethereum addressaddress of the new assessor

insureeApprovesDamage called by the insuree to agree/disagree with the damage value set by the assessor

parameter nametypedetails
approvalbooltrue or false

insurerApprovesDamage called by the insurer to agree/disagree with the damage value set by the assessor

parameter nametypedetails
approvalbooltrue or false

insurerPays: payable function called by the insurer when he has to send the damage value to the client

parameter nametypedetails
_damageamountvalue of damage

Events

insureeApproval: triggered when the insuree calls the insureeApprovesAssessor function

parameter nametypedetails
approvalbooltrue or false
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract