Skip to content

Instantly share code, notes, and snippets.

View dimitrihartt's full-sized avatar
💭
Very Happy! I have 4 sons already!

Dimitri Hartt dimitrihartt

💭
Very Happy! I have 4 sons already!
View GitHub Profile
@dimitrihartt
dimitrihartt / MedShare.sol
Created July 8, 2020 21:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.10+commit.00c0fcaf.js&optimize=false&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.5.0 <0.7.0;
/// This is the MedShare contract!
/// This contract works with Biblical principles:
/// 1) Contract owners will receive the 12th part of the investment;
/// 1a) There will be up to 05 owners that will split the investment
/// among them to support the recreation and the maintenance of the MedShare.
/// 2) Contract share will receive the 10th part of the investment;
@dimitrihartt
dimitrihartt / contracts...4_MedShareToken.sol
Created June 15, 2024 01:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
/// @custom:security-contact dimitrileite@hotmail.com