Skip to content

Instantly share code, notes, and snippets.

View gyas-kk's full-sized avatar
😀
Accepting requests

Gyas gyas-kk

😀
Accepting requests
View GitHub Profile
pragma solidity ^0.4.23;
// SafeMath
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
@gyas-kk
gyas-kk / token.sol
Last active June 3, 2018 13:44
token
pragma solidity ^0.4.23;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;