Skip to content

byteball/flight-delays-insurance

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Flight delay insurance

This chatbot sells insurance against flight delays. When a customer wants to receive a compensation C in case his future flight is delayed, the customer pays x% C premium, the bot pays (100% - x%) C, and the entire amount C is locked on a smart contract. After the outcome is known and posted by Flight delays oracle, the customer or the bot unlock the contract and sweep the entire amount C.

Flight delay insurance chatbot

The quotes are based on ratings provided by Flightstats: https://developer.flightstats.com/api-docs/ratings/v1.

Install

Install node.js 4+, clone the repository, then say

npm install

Run

node insurance.js

The first time you run the script, it will give you instructions for initial setup.

About

Flight delays insurance bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •