contract_name
stringlengths
1
61
file_path
stringlengths
5
50.4k
contract_address
stringlengths
42
42
language
stringclasses
1 value
class_name
stringlengths
1
61
class_code
stringlengths
4
330k
class_documentation
stringlengths
0
29.1k
class_documentation_type
stringclasses
6 values
func_name
stringlengths
0
62
func_code
stringlengths
1
303k
func_documentation
stringlengths
2
14.9k
func_documentation_type
stringclasses
4 values
compiler_version
stringlengths
15
42
license_type
stringclasses
14 values
swarm_source
stringlengths
0
71
meta
dict
__index_level_0__
int64
0
60.4k
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 3188, 3471 ] }
15,800
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 3931, 4066 ] }
15,801
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 4546, 4717 ] }
15,802
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 870, 958 ] }
15,803
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 1072, 1164 ] }
15,804
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 1797, 1885 ] }
15,805
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 1945, 2050 ] }
15,806
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 2108, 2232 ] }
15,807
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 2440, 2620 ] }
15,808
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 2678, 2834 ] }
15,809
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 2976, 3150 ] }
15,810
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 3627, 3953 ] }
15,811
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 4357, 4580 ] }
15,812
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 5078, 5352 ] }
15,813
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { // require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 5837, 6384 ] }
15,814
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 6661, 7044 ] }
15,815
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 7372, 7795 ] }
15,816
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 8228, 8579 ] }
15,817
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 8906, 9001 ] }
15,818
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 9599, 9696 ] }
15,819
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
Ownable
contract Ownable is Context { address payable public _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address payable msg...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 514, 598 ] }
15,820
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
Ownable
contract Ownable is Context { address payable public _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address payable msg...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 1156, 1309 ] }
15,821
YFIALPHA
YFIALPHA.sol
0xca959514b07e93bc80d5377d7f8ac820eaa934ef
Solidity
Ownable
contract Ownable is Context { address payable public _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address payable msg...
transferOwnership
function transferOwnership(address payable newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
MIT
ipfs://5e06734668028202cb4ea12a315927a49c8fcad873c196dd5cd5ced7ddce8c1f
{ "func_code_index": [ 1459, 1716 ] }
15,822
Cheese_Cubes
Cheese_Cubes.sol
0xff62300af81b332abc8f09518b2291a624888eac
Solidity
Cheese_Cubes
contract Cheese_Cubes is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; mapping (address => bool) private _isSniper; bool private _swapping; uint256 private _launchTime; address public fee...
enableTrading
function enableTrading() external onlyOwner { tradingActive = true; _launchTime = block.timestamp; }
// once enabled, can never be turned off
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://50790fb0ee121fc5645dfb3db04f1166d0b6fec5ac53e8cd6b5c2928e6c2c031
{ "func_code_index": [ 4311, 4439 ] }
15,823
Cheese_Cubes
Cheese_Cubes.sol
0xff62300af81b332abc8f09518b2291a624888eac
Solidity
Cheese_Cubes
contract Cheese_Cubes is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; mapping (address => bool) private _isSniper; bool private _swapping; uint256 private _launchTime; address public fee...
removeLimits
function removeLimits() external onlyOwner returns (bool) { limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://50790fb0ee121fc5645dfb3db04f1166d0b6fec5ac53e8cd6b5c2928e6c2c031
{ "func_code_index": [ 4490, 4616 ] }
15,824
Cheese_Cubes
Cheese_Cubes.sol
0xff62300af81b332abc8f09518b2291a624888eac
Solidity
Cheese_Cubes
contract Cheese_Cubes is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; mapping (address => bool) private _isSniper; bool private _swapping; uint256 private _launchTime; address public fee...
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool) { transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://50790fb0ee121fc5645dfb3db04f1166d0b6fec5ac53e8cd6b5c2928e6c2c031
{ "func_code_index": [ 4676, 4816 ] }
15,825
Cheese_Cubes
Cheese_Cubes.sol
0xff62300af81b332abc8f09518b2291a624888eac
Solidity
Cheese_Cubes
contract Cheese_Cubes is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; mapping (address => bool) private _isSniper; bool private _swapping; uint256 private _launchTime; address public fee...
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) { require(newAmount >= totalSupply() * 1 / 100000, "Swap amount cannot be lower than 0.001% total supply."); require(newAmount <= totalSupply() * 5 / 1000, "Swap amount cannot be higher than 0.5% total supply."); swapToke...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://50790fb0ee121fc5645dfb3db04f1166d0b6fec5ac53e8cd6b5c2928e6c2c031
{ "func_code_index": [ 4886, 5273 ] }
15,826
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
SafeMath
library SafeMath { /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; ...
/** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; return c; }
/** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 150, 339 ] }
15,827
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
SafeMath
library SafeMath { /** * @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); uint256 c = a - b; ...
/** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Adds two unsigned integers, reverts on overflow. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 422, 608 ] }
15,828
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev Total number of tokens in existence. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 301, 397 ] }
15,829
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
balanceOf
function balanceOf(address owner) public view returns (uint256) { return _balances[owner]; }
/** * @dev Gets the balance of the specified address. * @param owner The address to query the balance of. * @return A uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 611, 722 ] }
15,830
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param owner address The address which owns the funds. * @param spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 1056, 1195 ] }
15,831
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
transfer
function transfer(address to, uint256 value) public returns (bool) { _transfer(msg.sender, to, value); return true; }
/** * @dev Transfer token to a specified address. * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 1365, 1510 ] }
15,832
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
approve
function approve(address spender, uint256 value) public returns (bool) { _approve(msg.sender, spender, value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * race...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 2152, 2305 ] }
15,833
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
transferFrom
function transferFrom(address from, address to, uint256 value) public returns (bool) { _transfer(from, to, value); _approve(from, msg.sender, _allowances[from][msg.sender].sub(value)); return true; }
/** * @dev Transfer tokens from one address to another. * Note that while this function emits an Approval event, this is not required as per the specification, * and other compliant implementations may not emit the event. * @param from address The address which you want to send tokens from * @param to address...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 2773, 3009 ] }
15,834
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; }
/** * @dev Increase the amount of tokens that an owner allowed to a spender. * approve should be called when _allowances[msg.sender][spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Em...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 3533, 3744 ] }
15,835
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue)); return true; }
/** * @dev Decrease the amount of tokens that an owner allowed to a spender. * approve should be called when _allowances[msg.sender][spender] == 0. To decrement * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol * Em...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 4273, 4494 ] }
15,836
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
_transfer
function _transfer(address from, address to, uint256 value) internal { require(to != address(0), "ERC20: transfer to the zero address"); _balances[from] = _balances[from].sub(value); _balances[to] = _balances[to].add(value); emit Transfer(from, to, value); }
/** * @dev Transfer token for a specified addresses. * @param from The address to transfer from. * @param to The address to transfer to. * @param value The amount to be transferred. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 4717, 5023 ] }
15,837
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
_mint
function _mint(address account, uint256 value) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(value); _balances[account] = _balances[account].add(value); emit Transfer(address(0), account, value); }
/** * @dev Internal function that mints an amount of the token and assigns it to * an account. This encapsulates the modification of balances such that the * proper events are emitted. * @param account The account that will receive the created tokens. * @param value The amount that will be created. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 5370, 5679 ] }
15,838
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
_burn
function _burn(address account, uint256 value) internal { require(account != address(0), "ERC20: burn from the zero address"); _totalSupply = _totalSupply.sub(value); _balances[account] = _balances[account].sub(value); emit Transfer(account, address(0), value); }
/** * @dev Internal function that burns an amount of the token of a given * account. * @param account The account whose tokens will be burnt. * @param value The amount that will be burnt. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 5908, 6219 ] }
15,839
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 value) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = value; emit Approval(owner, spender, value); }
/** * @dev Approve an address to spend another addresses' tokens. * @param owner The address that owns the tokens. * @param spender The address that will spend the tokens. * @param value The number of tokens that can be spent. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 6487, 6827 ] }
15,840
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20
contract ERC20 is IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev Total number of tokens in existence. */ function totalS...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * https://eips.ethereum.org/EIPS/eip-20 * Originally based on code by FirstBlood: * https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol * * This implementation emits additional Approva...
NatSpecMultiLine
_burnFrom
function _burnFrom(address account, uint256 value) internal { _burn(account, value); _approve(account, msg.sender, _allowances[account][msg.sender].sub(value)); }
/** * @dev Internal function that burns an amount of the token of a given * account, deducting from the sender's allowance for said account. Uses the * internal burn function. * Emits an Approval event (reflecting the reduced allowance). * @param account The account whose tokens will be burnt. * @param valu...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 7221, 7411 ] }
15,841
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @return the address of the owner. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 457, 541 ] }
15,842
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
isOwner
function isOwner() public view returns (bool) { return msg.sender == _owner; }
/** * @return true if `msg.sender` is the owner of the contract. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 828, 925 ] }
15,843
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. * @notice Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner....
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 1283, 1428 ] }
15,844
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 1600, 1714 ] }
15,845
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
Ownable
contract Ownable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor () internal { _owner = m...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 1859, 2093 ] }
15,846
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20Detailed
contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @retu...
/** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @return the name of the token. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 356, 444 ] }
15,847
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20Detailed
contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @retu...
/** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @return the symbol of the token. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 506, 598 ] }
15,848
ERC20Token
ERC20Token.sol
0x6e4d93efc2beac20992197278ad41f8d10b3efaa
Solidity
ERC20Detailed
contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @retu...
/** * @title ERC20Detailed token * @dev The decimals are only for visualization purposes. * All the operations are done using the smallest and indivisible token unit, * just as on Ethereum all the operations are done in wei. */
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @return the number of decimals of the token. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
MIT
bzzr://5bfe5140b36d33854a56d9e29f181d518155f3b4eedc4f3b0201fb6f0472b38c
{ "func_code_index": [ 672, 760 ] }
15,849
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 60, 124 ] }
15,850
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 232, 309 ] }
15,851
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 546, 623 ] }
15,852
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 946, 1042 ] }
15,853
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 1326, 1407 ] }
15,854
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 1615, 1712 ] }
15,855
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
GymToken
contract GymToken is StandardToken { function () { //if ether is sent to this address, send it back. throw; } function kill(address _owner) { if (msg.sender == _owner) selfdestruct( _owner); } /* Public variables of the token */ /* ...
//name this contract whatever you'd like
LineComment
GymToken
function GymToken( ) { balances[msg.sender] = 1000000000; // Give the creator all initial tokens (100000 for example) totalSupply = 1000000000; // Update total supply (100000 for example) name = "Gymcoin"; // Set the name for dis...
//human 0.1 standard. Just an arbitrary versioning scheme. // // CHANGE THESE VALUES FOR YOUR TOKEN // //make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token
LineComment
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 1281, 1830 ] }
15,856
GymToken
GymToken.sol
0xb60e133dacf00b6f560909dc0a5311ae7f9a659b
Solidity
GymToken
contract GymToken is StandardToken { function () { //if ether is sent to this address, send it back. throw; } function kill(address _owner) { if (msg.sender == _owner) selfdestruct( _owner); } /* Public variables of the token */ /* ...
//name this contract whatever you'd like
LineComment
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s...
/* Approves and then calls the receiving contract */
Comment
v0.4.19+commit.c4cbbb05
bzzr://6c645e812e7d789b71eddbab28710dca99b4e7f6e80c45b7fcf7458ec149e18a
{ "func_code_index": [ 1891, 2696 ] }
15,857
BeaconProxy
@openzeppelin/contracts/proxy/Proxy.sol
0x5aba9795d1f9cf40f138414c7b2741e5971af162
Solidity
Proxy
abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { // solhint-disabl...
/** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * ...
NatSpecMultiLine
_delegate
function _delegate(address implementation) internal virtual { // solhint-disable-next-line no-inline-assembly assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratc...
/** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://7160d24c58fd0fbd0050e7e493dc043749f3fcbcd04445a8f489a673c5cdaf2b
{ "func_code_index": [ 228, 1325 ] }
15,858
BeaconProxy
@openzeppelin/contracts/proxy/Proxy.sol
0x5aba9795d1f9cf40f138414c7b2741e5971af162
Solidity
Proxy
abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { // solhint-disabl...
/** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * ...
NatSpecMultiLine
_implementation
function _implementation() internal view virtual returns (address);
/** * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function * and {_fallback} should delegate. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://7160d24c58fd0fbd0050e7e493dc043749f3fcbcd04445a8f489a673c5cdaf2b
{ "func_code_index": [ 1509, 1581 ] }
15,859
BeaconProxy
@openzeppelin/contracts/proxy/Proxy.sol
0x5aba9795d1f9cf40f138414c7b2741e5971af162
Solidity
Proxy
abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { // solhint-disabl...
/** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * ...
NatSpecMultiLine
_fallback
function _fallback() internal virtual { _beforeFallback(); _delegate(_implementation()); }
/** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internall call site, it will return directly to the external caller. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://7160d24c58fd0fbd0050e7e493dc043749f3fcbcd04445a8f489a673c5cdaf2b
{ "func_code_index": [ 1812, 1930 ] }
15,860
BeaconProxy
@openzeppelin/contracts/proxy/Proxy.sol
0x5aba9795d1f9cf40f138414c7b2741e5971af162
Solidity
Proxy
abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { // solhint-disabl...
/** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * ...
NatSpecMultiLine
/** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://7160d24c58fd0fbd0050e7e493dc043749f3fcbcd04445a8f489a673c5cdaf2b
{ "func_code_index": [ 2128, 2199 ] }
15,861
BeaconProxy
@openzeppelin/contracts/proxy/Proxy.sol
0x5aba9795d1f9cf40f138414c7b2741e5971af162
Solidity
Proxy
abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { // solhint-disabl...
/** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * ...
NatSpecMultiLine
/** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://7160d24c58fd0fbd0050e7e493dc043749f3fcbcd04445a8f489a673c5cdaf2b
{ "func_code_index": [ 2360, 2430 ] }
15,862
BeaconProxy
@openzeppelin/contracts/proxy/Proxy.sol
0x5aba9795d1f9cf40f138414c7b2741e5971af162
Solidity
Proxy
abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internall call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { // solhint-disabl...
/** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * ...
NatSpecMultiLine
_beforeFallback
function _beforeFallback() internal virtual {}
/** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overriden should call `super._beforeFallback()`. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://7160d24c58fd0fbd0050e7e493dc043749f3fcbcd04445a8f489a673c5cdaf2b
{ "func_code_index": [ 2714, 2765 ] }
15,863
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
Divies
contract Divies { using SafeMath for uint256; using UintCompressor for uint256; address private eWLTHAddress = 0x5833C959C3532dD5B3B6855D590D70b01D2d9fA6; HourglassInterface constant eWLTH = HourglassInterface(eWLTHAddress); uint256 public pusherTracker_ = 100; mapping (address => ...
balances
function balances() public view returns(uint256) { return (address(this).balance); }
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // BALANCE //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LineComment
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 592, 727 ] }
15,864
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
Divies
contract Divies { using SafeMath for uint256; using UintCompressor for uint256; address private eWLTHAddress = 0x5833C959C3532dD5B3B6855D590D70b01D2d9fA6; HourglassInterface constant eWLTH = HourglassInterface(eWLTHAddress); uint256 public pusherTracker_ = 100; mapping (address => ...
deposit
function deposit() external payable { }
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // DEPOSIT //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LineComment
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 902, 984 ] }
15,865
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
Divies
contract Divies { using SafeMath for uint256; using UintCompressor for uint256; address private eWLTHAddress = 0x5833C959C3532dD5B3B6855D590D70b01D2d9fA6; HourglassInterface constant eWLTH = HourglassInterface(eWLTHAddress); uint256 public pusherTracker_ = 100; mapping (address => ...
function() external payable {}
// used so the distribute function can call hourglass's withdraw
LineComment
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 1061, 1096 ] }
15,866
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
Divies
contract Divies { using SafeMath for uint256; using UintCompressor for uint256; address private eWLTHAddress = 0x5833C959C3532dD5B3B6855D590D70b01D2d9fA6; HourglassInterface constant eWLTH = HourglassInterface(eWLTHAddress); uint256 public pusherTracker_ = 100; mapping (address => ...
distribute
function distribute() public { uint256 _percent = 75; // data setup address _pusher = msg.sender; uint256 _bal = address(this).balance; uint256 _compressedData; // update pushers wait que pushers_[_pusher].tracker = pusherTracker_; pusherTracker_++; ...
//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // DISTRIBUTE //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LineComment
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 1734, 3524 ] }
15,867
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
SafeMath
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; } c = a * b; require(c / a == b); ...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; require(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 99, 343 ] }
15,868
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
SafeMath
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; } c = a * b; require(c / a == b); ...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); return a - b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 463, 625 ] }
15,869
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
SafeMath
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; } c = a * b; require(c / a == b); ...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; require(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 695, 875 ] }
15,870
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
SafeMath
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; } c = a * b; require(c / a == b); ...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
sqrt
function sqrt(uint256 x) internal pure returns (uint256 y) { uint256 z = ((add(x,1)) / 2); y = x; while (z < y) { y = z; z = ((add((x / z),z)) / 2); } }
/** * @dev gives square root of given x. */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 943, 1210 ] }
15,871
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
SafeMath
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; } c = a * b; require(c / a == b); ...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
sq
function sq(uint256 x) internal pure returns (uint256) { return (mul(x,x)); }
/** * @dev gives square. multiplies x by x */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 1280, 1408 ] }
15,872
Divies
Divies.sol
0x5c79caefeab641eb667ee9dcb82c5e9d211eca73
Solidity
SafeMath
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; } c = a * b; require(c / a == b); ...
/** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs * - removed div, its useless */
NatSpecMultiLine
pwr
function pwr(uint256 x, uint256 y) internal pure returns (uint256) { if (x==0) return (0); else if (y==0) return (1); else { uint256 z = x; for (uint256 i=1; i < y; i++) z = mul(z,x); return (z); } }
/** * @dev x to the power of y */
NatSpecMultiLine
v0.4.21+commit.dfe3193c
Apache-2.0
bzzr://568ce06bbe22a00a41e1efc90c8404ca48bede6b1f30059ed8d879b684aa6ba4
{ "func_code_index": [ 1467, 1838 ] }
15,873
MindCell
J\contracts\MindCell.sol
0xfc7191393a17c25b49ab91a049b0a6499f823925
Solidity
MindCell
contract MindCell is ERC20 { string public constant name = "MindCell"; string public constant symbol = "MDC"; uint8 public constant decimals = 18; uint256 public constant initialSupply = 10000000000 * (10 ** uint256(decimals)); constructor() public { super._mint(msg.sender, in...
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. * @notice Renouncing to ownership will leave the contract without an owner. * It will not be possible to call the functions with the `onlyOwner` * modifier anymore. */
NatSpecMultiLine
v0.5.8+commit.23d335f2
MIT
bzzr://4e137b4e226f7ef857086915c3c73cdd08297c97df328c3bbf80fbfe7a124296
{ "func_code_index": [ 957, 1086 ] }
15,874
MindCell
J\contracts\MindCell.sol
0xfc7191393a17c25b49ab91a049b0a6499f823925
Solidity
MindCell
contract MindCell is ERC20 { string public constant name = "MindCell"; string public constant symbol = "MDC"; uint8 public constant decimals = 18; uint256 public constant initialSupply = 10000000000 * (10 ** uint256(decimals)); constructor() public { super._mint(msg.sender, in...
transferOwnership
function transferOwnership(address _newOwner) public onlyOwner { _transferOwnership(_newOwner); }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.5.8+commit.23d335f2
MIT
bzzr://4e137b4e226f7ef857086915c3c73cdd08297c97df328c3bbf80fbfe7a124296
{ "func_code_index": [ 1251, 1367 ] }
15,875
MindCell
J\contracts\MindCell.sol
0xfc7191393a17c25b49ab91a049b0a6499f823925
Solidity
MindCell
contract MindCell is ERC20 { string public constant name = "MindCell"; string public constant symbol = "MDC"; uint8 public constant decimals = 18; uint256 public constant initialSupply = 10000000000 * (10 ** uint256(decimals)); constructor() public { super._mint(msg.sender, in...
_transferOwnership
function _transferOwnership(address _newOwner) internal { require(_newOwner != address(0), "Already owner"); emit OwnershipTransferred(owner, _newOwner); owner = _newOwner; }
/** * @dev Transfers control of the contract to a newOwner. * @param _newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.5.8+commit.23d335f2
MIT
bzzr://4e137b4e226f7ef857086915c3c73cdd08297c97df328c3bbf80fbfe7a124296
{ "func_code_index": [ 1505, 1716 ] }
15,876
MindCell
J\contracts\MindCell.sol
0xfc7191393a17c25b49ab91a049b0a6499f823925
Solidity
MindCell
contract MindCell is ERC20 { string public constant name = "MindCell"; string public constant symbol = "MDC"; uint8 public constant decimals = 18; uint256 public constant initialSupply = 10000000000 * (10 ** uint256(decimals)); constructor() public { super._mint(msg.sender, in...
pause
function pause() public onlyOwner whenNotPaused { paused = true; emit Pause(); }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.5.8+commit.23d335f2
MIT
bzzr://4e137b4e226f7ef857086915c3c73cdd08297c97df328c3bbf80fbfe7a124296
{ "func_code_index": [ 2297, 2405 ] }
15,877
MindCell
J\contracts\MindCell.sol
0xfc7191393a17c25b49ab91a049b0a6499f823925
Solidity
MindCell
contract MindCell is ERC20 { string public constant name = "MindCell"; string public constant symbol = "MDC"; uint8 public constant decimals = 18; uint256 public constant initialSupply = 10000000000 * (10 ** uint256(decimals)); constructor() public { super._mint(msg.sender, in...
unpause
function unpause() public onlyOwner whenPaused { paused = false; emit Unpause(); }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.5.8+commit.23d335f2
MIT
bzzr://4e137b4e226f7ef857086915c3c73cdd08297c97df328c3bbf80fbfe7a124296
{ "func_code_index": [ 2493, 2603 ] }
15,878
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping (address => uint256) balances; address public addressFundTeam = 0x0DA34504b759071605f89BE43b2804b1869404f2; uint256 public fundTeam = 1125 * 10**4 * (10 ** 18); uint256 endTimeIco = 1551535200; //Saturday, 2. March 2019...
transfer
function transfer(address _to, uint256 _value) public onlyPayloadSize(2) returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); require(transfersEnabled); if (msg.sender == addressFundTeam) { require(checkVesting(_value, now) > 0); } // SafeMath.su...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 685, 1278 ] }
15,879
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping (address => uint256) balances; address public addressFundTeam = 0x0DA34504b759071605f89BE43b2804b1869404f2; uint256 public fundTeam = 1125 * 10**4 * (10 ** 18); uint256 endTimeIco = 1551535200; //Saturday, 2. March 2019...
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 1494, 1618 ] }
15,880
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want t...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public onlyPayloadSize(3) returns (bool) { require(_to != address(0)); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); require(transfersEnabled); balances[_from] = balances[_from].sub(_value);...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 413, 961 ] }
15,881
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want t...
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 1613, 1824 ] }
15,882
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want t...
allowance
function allowance(address _owner, address _spender) public onlyPayloadSize(2) constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 2160, 2332 ] }
15,883
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) internal allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want t...
increaseApproval
function increaseApproval(address _spender, uint _addedValue) public returns (bool success) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 2589, 2882 ] }
15,884
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
CryptoCasherToken
contract CryptoCasherToken is StandardToken, Ownable { string public constant name = "CryptoCasher"; string public constant symbol = "CRR"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 75 * 10**6 * (10 ** uint256(decimals)); uint256 fundForSale = 525 * 10**5 *...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
setContractAddress
function setContractAddress(address _contract) public onlyOwner { require(_contract != address(0)); addressContract = _contract; emit AddressContractChanged(_contract, msg.sender); }
/** * @dev Add an contract admin */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 1520, 1739 ] }
15,885
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
CryptoCasherToken
contract CryptoCasherToken is StandardToken, Ownable { string public constant name = "CryptoCasher"; string public constant symbol = "CRR"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 75 * 10**6 * (10 ** uint256(decimals)); uint256 fundForSale = 525 * 10**5 *...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
mint
function mint(address _to, uint256 _amount, address _owner) external onlyContract returns (bool) { require(_to != address(0) && _owner != address(0)); require(_amount <= balances[_owner]); require(transfersEnabled); balances[_to] = balances[_to].add(_amount); balances[_owner] = balances[_owne...
/** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 2091, 2561 ] }
15,886
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
CryptoCasherToken
contract CryptoCasherToken is StandardToken, Ownable { string public constant name = "CryptoCasher"; string public constant symbol = "CRR"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 75 * 10**6 * (10 ** uint256(decimals)); uint256 fundForSale = 525 * 10**5 *...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
claimTokens
function claimTokens(address _token) public onlyOwner { if (_token == 0x0) { owner.transfer(address(this).balance); return; } CryptoCasherToken token = CryptoCasherToken(_token); uint256 balance = token.balanceOf(this); token.transfer(owner, balance); emit Transfer(_t...
/** * Peterson's Law Protection * Claim tokens */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 2637, 3023 ] }
15,887
CryptoCasherToken
CryptoCasherToken.sol
0x8b4519ed0d21c10f89dad11ba2ce0641aea211c9
Solidity
CryptoCasherToken
contract CryptoCasherToken is StandardToken, Ownable { string public constant name = "CryptoCasher"; string public constant symbol = "CRR"; uint8 public constant decimals = 18; uint256 public constant INITIAL_SUPPLY = 75 * 10**6 * (10 ** uint256(decimals)); uint256 fundForSale = 525 * 10**5 *...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
ownerBurnToken
function ownerBurnToken(uint _value) public onlyOwner { require(_value > 0); require(_value <= balances[owner]); require(_value <= totalSupply); require(_value <= fundForSale); balances[owner] = balances[owner].sub(_value); totalSupply = totalSupply.sub(_value); emit Burn(msg.sender...
/** * @dev owner burn Token. * @param _value amount of burnt tokens */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://e1073767f04f9b11a2686ac92fa152a9b46b14e33d2e9c3b771f29c786b2044d
{ "func_code_index": [ 3763, 4133 ] }
15,888
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 165, 238 ] }
15,889
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 462, 544 ] }
15,890
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 823, 911 ] }
15,891
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 1575, 1654 ] }
15,892
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 1967, 2069 ] }
15,893
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 259, 445 ] }
15,894
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 723, 864 ] }
15,895
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 1162, 1359 ] }
15,896
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 1613, 2089 ] }
15,897
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 2560, 2697 ] }
15,898
MiniMarshallRogan
Mini Marshall Rogan_flat.sol
0xc0311deef4f1cf47b98f93bec5491723b360b207
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
Unlicense
ipfs://534cef7b905db509cbae7fd60d47d45e534f618feade4322478446eeeaec77bf
{ "func_code_index": [ 3188, 3471 ] }
15,899