Instantly share code, notes, and snippets.
Very Happy! I have 4 sons already!
Internet Engineer since 1993
-
ShalomEmpire
- Los Angeles
- https://shalomempire.se
- @shalomempire
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=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 [email protected] |
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=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |