Skip to content

Instantly share code, notes, and snippets.

View Asvoria's full-sized avatar
🌈
Rainbow after storm!

ThriftyOldStudent Asvoria

🌈
Rainbow after storm!
View GitHub Profile
@Asvoria
Asvoria / mdtk_PineApple.sol
Created September 13, 2020 10:14
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.5.17+commit.d19bba13.js&optimize=false&gist=
pragma solidity ^0.5.8;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;