Disruptive Insurance is an exotic insurance service that allows users to buy insurance against volcano eruptions. No other insurance business on Earth offers volcano eruption insurance.
Fleek (IPFS+FILECOIN):
https://disruptiveinsurance.on.fleek.co/
[Github Pages Backup]:
https://marcuswentz.github.io/DisruptiveInsurance/
Verified contract code on Etherscan using Foundry:
https://sepolia.basescan.org/address/0x271b6acd00943c78cd1b6be88fbfec3c402bafd8#code
https://www.youtube.com/watch?v=zM4xjX2BJxg
1. Record address, time, input coordinates and locked Owner ETH for policy.
1. Oracle: Get filtered volcano eruption data (time, coordinates)
2. Check if policy is older than eruption date and the coordinates are within + or - 1 coordinate point.
3. Policy holder claims 1 ETH if Step 2 checks are true then deletes policy data.
Get paid ETH directly after a policy is bought.
1.Add funds to make policies available with OwnerSendOneEthToContractFromInsuranceBusiness.
1.Check if policy connected to a mapped address is over 1 year old.
2.Liquidate ETH from policy and delete policy data.
1.Check if OpenETHtoInsure is greater than 0.
2.Claim one ETH from contract.
⚠️ Note: you might need to add libraries in forge with remappings.txt ⚠️
forge install smartcontractkit/chainlink-brownie-contracts --no-commit
forge install rari-capital/solmate --no-commit
forge install https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary --no-commit
forge create src/VolcanoInsurance.sol:VolcanoInsurance \
--private-key $devTestnetPrivateKey \
--rpc-url $baseSepoliaHTTPS \
--etherscan-api-key $basescanApiKey \
--verify
forge verify-contract \
--chain-id 84532 \
--watch \
--etherscan-api-key $basescanApiKey \
<sepolia_contract_address> \
src/VolcanoInsurance.sol:VolcanoInsurance