Skip to content

Instantly share code, notes, and snippets.

View PascalDuval's full-sized avatar

Pascal Duval PascalDuval

View GitHub Profile
did:3:kjzl6cwe1jw14av3hqmfc3qtxcqup2axixtqqx7ywhulg7cn0cb7fmh62t1q9v8
@PascalDuval
PascalDuval / contracts...Ico2.sol
Created February 21, 2022 18:36
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Ico2 is ERC20, Ownable {
uint256 public trusteeCount;
uint256 public goal = 1111 ether;
uint256 public priceToken = 0.01 ether;
@PascalDuval
PascalDuval / blockly.xml
Last active July 4, 2021 12:32
szabodemo
Let
"CandyPrice"
(ConstantParam "CandyPrice")
(When
[Case
(Deposit
(Role "Machine")
(Role "Machine")
(Token "" "CANDY")
(Constant 10000000)