Skip to content

Instantly share code, notes, and snippets.

View flyq's full-sized avatar
⚙️
Make Etherem Great Again

liquan.eth flyq

⚙️
Make Etherem Great Again
View GitHub Profile
@flyq
flyq / Convert.sol
Last active April 1, 2018 15:59 — forked from sherlock-shi-x/Convert.sol
Convert
pragma solidity ^0.4.21;
contract Convert {
address owner;
address public fromContractAddr;
address public toContractAddr;
mapping (uint => bool) public isConvert;
pragma solidity ^0.4.20;
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
@flyq
flyq / sponsorToken.sol
Created March 21, 2018 10:52 — forked from lychees/sponsorToken.sol
sponsorToken.sol
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
@flyq
flyq / sponsorToken.sol
Created March 21, 2018 10:52 — forked from lychees/sponsorToken.sol
sponsorToken.sol
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
pragma solidity ^0.4.20;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;