Drought Insurance

A Drought Insurance that uses ChainLink to determine the release of payment.

When the contract is deployed a farmer, insurance provider, and start time are specified. Additionally a deposit is made. The end of the contract is set to 365 days after the start time.

After the contract is created anyone can request updates from the oracle for the contract. If the oracle reports that the region is hit with drought then the deposit is released to the farmer. If the region is drought free after the contract ends, and the deposit has not been released, the deposit is sent to the insurance provider.

Built With

Share this project:

Updates