Skip to content

Instantly share code, notes, and snippets.

View melnikaite's full-sized avatar

Eugene Melnikov melnikaite

View GitHub Profile
@melnikaite
melnikaite / contract.sol
Created February 27, 2022 12:59
Onchain Metadata
// SPDX-License-Identifier: MIT
pragma solidity 0.8;
contract owned {
constructor() { owner = msg.sender; }
address owner;
modifier onlyOwner {
require(msg.sender == owner);
_;
@melnikaite
melnikaite / decentralized messenger.png
Last active April 6, 2022 18:01
Decentralized messenger
decentralized messenger.png
@melnikaite
melnikaite / readme.md
Created April 20, 2022 13:52
Decentralized microinsurance with DAO

Classic bike insurance is cheap, so I recommend using it if possible. But unfortunately in Germany, it is difficult to ensure bikes that are older than 60 months, and if you bought a used bike and you don't have a serial number, then insurance is not possible at all. This is where decentralized microinsurance with elements of a decentralized autonomous organization (DAO) comes to the rescue.

The first step to ensure your bike is to apply to your local DAO. The application consists of the first payment, an indication of the current value of the bike in the network's native currency, and a photo. Next, you need to wait until the DAO allows you to join. You will be insured as long as you pay and are a member of the DAO.

If your parking lot does not yet have a DAO, then you can just as easily create one and invite participants by printing a QR code.

This model has unique features that are not found in classic insurance. Your contributions are yours in full until an incident occurs. You can leave the organizati