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
DDFImplementationV2
DDFImplementationV2.sol
0x6f0bb458067038f9c7992dcde2025f0eefb5ecf6
Solidity
DDFImplementationV2
contract DDFImplementationV2 { /** * MATH */ using SafeMath for uint256; /** * DATA */ // INITIALIZATION DATA bool private initialized = false; // ERC20 BASIC DATA mapping(address => uint256) internal balances; uint256 internal totalSupply_; ...
/** * @title DDFImplementationV2 * @dev this contract is a Pausable ERC20 token with Burn and Mint * controlled by a central SupplyController. By implementing DDFosImplementation * this contract also includes external methods for setting * a new implementation contract for the Proxy. * NOTE: The storage ...
NatSpecMultiLine
whitelistBetaDelegate
function whitelistBetaDelegate(address _addr) public onlyBetaDelegateWhitelister { require(!betaDelegateWhitelist[_addr], "delegate already whitelisted"); betaDelegateWhitelist[_addr] = true; emit BetaDelegateWhitelisted(_addr); }
/** * @dev Whitelists an address to allow calling BetaDelegatedTransfer. * @param _addr The new address to whitelist. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
MIT
bzzr://ba709ffd60160b55cc55286e2d83f71ab49527b7a8a71c42a63a355bed1d4d6d
{ "func_code_index": [ 23990, 24257 ] }
4,507
DDFImplementationV2
DDFImplementationV2.sol
0x6f0bb458067038f9c7992dcde2025f0eefb5ecf6
Solidity
DDFImplementationV2
contract DDFImplementationV2 { /** * MATH */ using SafeMath for uint256; /** * DATA */ // INITIALIZATION DATA bool private initialized = false; // ERC20 BASIC DATA mapping(address => uint256) internal balances; uint256 internal totalSupply_; ...
/** * @title DDFImplementationV2 * @dev this contract is a Pausable ERC20 token with Burn and Mint * controlled by a central SupplyController. By implementing DDFosImplementation * this contract also includes external methods for setting * a new implementation contract for the Proxy. * NOTE: The storage ...
NatSpecMultiLine
unwhitelistBetaDelegate
function unwhitelistBetaDelegate(address _addr) public onlyBetaDelegateWhitelister { require(betaDelegateWhitelist[_addr], "delegate not whitelisted"); betaDelegateWhitelist[_addr] = false; emit BetaDelegateUnwhitelisted(_addr); }
/** * @dev Unwhitelists an address to disallow calling BetaDelegatedTransfer. * @param _addr The new address to whitelist. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
MIT
bzzr://ba709ffd60160b55cc55286e2d83f71ab49527b7a8a71c42a63a355bed1d4d6d
{ "func_code_index": [ 24409, 24676 ] }
4,508
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 155, 375 ] }
4,509
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 517, 710 ] }
4,510
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 854, 1351 ] }
4,511
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 1496, 1690 ] }
4,512
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 1845, 2039 ] }
4,513
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 2270, 2370 ] }
4,514
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; }
/** * @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.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 2637, 2737 ] }
4,515
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; }
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 2980, 3080 ] }
4,516
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }
/** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 3365, 3465 ] }
4,517
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 (consuming a...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 3914, 4014 ] }
4,518
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to ...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 4474, 4709 ] }
4,519
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting 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 invali...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 5189, 5423 ] }
4,520
BYOT
SafeMath.sol
0x49789d0b0f73b9195d72d94979320a33530aea94
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (f...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * C...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
MIT
ipfs://3d2af5faaea75e4440bc37580d0bd820ff1679fff9b93e8bb3bdad01f537d744
{ "func_code_index": [ 6065, 6299 ] }
4,521
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 94, 154 ] }
4,522
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 237, 310 ] }
4,523
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 534, 616 ] }
4,524
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 895, 983 ] }
4,525
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 1647, 1726 ] }
4,526
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 2039, 2141 ] }
4,527
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 259, 445 ] }
4,528
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 723, 864 ] }
4,529
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 1162, 1359 ] }
4,530
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 1613, 2089 ] }
4,531
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 2560, 2697 ] }
4,532
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 3188, 3471 ] }
4,533
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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
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.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 3931, 4066 ] }
4,534
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
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
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.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 4546, 4717 ] }
4,535
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 606, 1230 ] }
4,536
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 2160, 2562 ] }
4,537
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 3318, 3496 ] }
4,538
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 3721, 3922 ] }
4,539
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 4292, 4523 ] }
4,540
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 4774, 5095 ] }
4,541
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 569, 653 ] }
4,542
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
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.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 1212, 1365 ] }
4,543
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address 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.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 1515, 1764 ] }
4,544
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = now + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 1932, 2151 ] }
4,545
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(now > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 2222, 2520 ] }
4,546
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
KishimotoInu
contract KishimotoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address =...
setPair
function setPair(address _pancakePair) external onlyOwner { pancakePair = _pancakePair; }
// @dev set Pair
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 2525, 2633 ] }
4,547
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
KishimotoInu
contract KishimotoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address =...
setRouter
function setRouter(address _newPancakeRouter) external onlyOwner { IPancakeRouter02 _pancakeRouter = IPancakeRouter02(_newPancakeRouter); pancakeRouter = _pancakeRouter; }
// @dev set Router
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 2660, 2859 ] }
4,548
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
KishimotoInu
contract KishimotoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address =...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 15243, 16082 ] }
4,549
KishimotoInu
KishimotoInu.sol
0xf5b1fd29d23e98db2d9ebb8435e1082e3b38fb65
Solidity
KishimotoInu
contract KishimotoInu is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address =...
//to recieve ETH from pancakeRouter when swaping
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://a72543e1d2117c34011f7a45b2d67f34077411f7909545c792655f571d6db673
{ "func_code_index": [ 22866, 22900 ] }
4,550
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint; mapping(address => uint) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint size) { if(msg.data.length < size + 4) { revert(); } _; } /** * @dev transfer t...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint _value) onlyPayloadSize(2 * 32) { balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); }
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 449, 676 ] }
4,551
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint; mapping(address => uint) balances; /** * @dev Fix for the ERC20 short address attack. */ modifier onlyPayloadSize(uint size) { if(msg.data.length < size + 4) { revert(); } _; } /** * @dev transfer t...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 879, 985 ] }
4,552
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) 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 to transfer to * ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint _value) onlyPayloadSize(3 * 32) { var _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met // if (_value > _allowance) revert(); balances[_to] = balances[_to]...
/** * @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 uint the amout of tokens to be transfered */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 384, 878 ] }
4,553
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) 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 to transfer to * ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint _value) { // To change the approve amount you first have to reduce the addresses` // allowance to zero by calling `approve(_spender, 0)` if it is not // already 0 to mitigate the race condition described here: // https://github.com/ethereum/EIPs/issues/20#issueco...
/** * @dev Aprove the passed address to spend the specified amount of tokens on beahlf of msg.sender. * @param _spender The address which will spend the funds. * @param _value The amount of tokens to be spent. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 1113, 1630 ] }
4,554
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
StandardToken
contract StandardToken is BasicToken, ERC20 { mapping (address => mapping (address => uint)) 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 to transfer to * ...
/** * @title Standard ERC20 token * * @dev Implemantation of the basic standart token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens than 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 uint specifing the amount of tokens still avaible for the spender. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 1948, 2083 ] }
4,555
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public{ owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifi...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() public{ owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 169, 228 ] }
4,556
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
Ownable
contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public{ owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifi...
/** * @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) onlyOwner { if (newOwner != address(0)) { owner = 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.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 572, 703 ] }
4,557
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint value); event MintFinished(); bool public mintingFinished = false; uint public totalSupply = 0; modifier canMint() { if(mintingFinished) revert(); _; } /** * @dev Function to mint tokens ...
/** * @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, uint _amount) onlyOwner canMint returns (bool) { totalSupply = totalSupply.add(_amount); balances[_to] = balances[_to].add(_amount); Mint(_to, _amount); return true; }
/** * @dev Function to mint tokens * @param _to The address that will recieve the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 514, 734 ] }
4,558
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint value); event MintFinished(); bool public mintingFinished = false; uint public totalSupply = 0; modifier canMint() { if(mintingFinished) revert(); _; } /** * @dev Function to mint tokens ...
/** * @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
finishMinting
function finishMinting() onlyOwner returns (bool) { mintingFinished = true; MintFinished(); return true; }
/** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 851, 978 ] }
4,559
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { if (paused) revert(); _; } /** * @dev modifier to allow actions only when the ...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
pause
function pause() onlyOwner whenNotPaused returns (bool) { paused = true; Pause(); return true; }
/** * @dev called by the owner to pause, triggers stopped state */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 497, 614 ] }
4,560
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
Pausable
contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev modifier to allow actions only when the contract IS paused */ modifier whenNotPaused() { if (paused) revert(); _; } /** * @dev modifier to allow actions only when the ...
/** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */
NatSpecMultiLine
unpause
function unpause() onlyOwner whenPaused returns (bool) { paused = false; Unpause(); return true; }
/** * @dev called by the owner to unpause, returns to normal state */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 698, 817 ] }
4,561
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
TokenTimelock
contract TokenTimelock { // ERC20 basic token contract being held ERC20Basic token; // beneficiary of tokens after they are released address beneficiary; // timestamp where token release is enabled uint releaseTime; function TokenTimelock(ERC20Basic _token, address _beneficiary, uint _relea...
/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a time has passed */
NatSpecMultiLine
claim
function claim() { require(msg.sender == beneficiary); require(now >= releaseTime); uint amount = token.balanceOf(this); require(amount > 0); token.transfer(beneficiary, amount); }
/** * @dev beneficiary claims tokens held by time lock */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 528, 743 ] }
4,562
ZTRToken
ZTRToken.sol
0x107bc486966ecddadb136463764a8eb73337c4df
Solidity
ZTRToken
contract ZTRToken is PausableToken, MintableToken { using SafeMath for uint256; string public name = "ZTRToken"; string public symbol = "ZTR"; uint public decimals = 18; /** * @dev mint timelocked tokens */ function mintTimelocked(address _to, uint256 _amount, uint256 _releaseTime) on...
/** * @title ZTRToken * @dev ZTR Token contract */
NatSpecMultiLine
mintTimelocked
function mintTimelocked(address _to, uint256 _amount, uint256 _releaseTime) onlyOwner canMint returns (TokenTimelock) { TokenTimelock timelock = new TokenTimelock(this, _to, _releaseTime); mint(timelock, _amount); return timelock; }
/** * @dev mint timelocked tokens */
NatSpecMultiLine
v0.4.19+commit.c4cbbb05
bzzr://0edcfff84c6311ce6cf6fcb2ea9dd31184f45b1f42be2c5988bd9336d370b1b3
{ "func_code_index": [ 235, 497 ] }
4,563
BitMessageet
BitMessageet.sol
0x1b65788f59815a10e9c299d763bd295f8826a7bb
Solidity
Context
contract Context { constructor() internal {} // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns(address payable) { return msg.sender; } }
_msgSender
function _msgSender() internal view returns(address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.17+commit.d19bba13
None
bzzr://eb6c04204617bb18e014d10147be28adfad3fccbf9d5a0989d5892ea02a50688
{ "func_code_index": [ 105, 207 ] }
4,564
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
cap
function cap() public view returns (uint256) { return _cap; }
/** * @dev returns cap of tokens */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 429, 509 ] }
4,565
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
mint
function mint(uint256 value) public onlyOwner returns (bool) { require(totalSupply().add(value) <= _cap, "Cap exceeded"); _mint(msg.sender, value); return true; }
/** * @dev mints tokens. see ERC20._mint * requirements: cannot exceed total cap */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 619, 818 ] }
4,566
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
burn
function burn(uint256 value) public onlyOwner returns (bool) { _burn(msg.sender, value); return true; }
/** * @dev burn tokens. see _burn */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 875, 1006 ] }
4,567
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
transfer
function transfer(address to, uint256 value) public notFrozen(msg.sender) notFrozen(to) returns (bool) { return super.transfer(to, value); }
/** * @dev override func to check if relevant accounts are frozen. see ERC20.transfer */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 1115, 1274 ] }
4,568
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
transferFrom
function transferFrom(address from, address to, uint256 value) public notFrozen(msg.sender) notFrozen(from) notFrozen(to) returns (bool) { return super.transferFrom(from, to, value); }
/** * @dev override func to check if relevant accounts are frozen. see ERC20.transferFrom */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 1387, 1590 ] }
4,569
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
isFrozen
function isFrozen(address account) public view returns (bool) { return _frozenAccounts.has(account); }
/** * @dev checks if an account is frozen */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 2271, 2392 ] }
4,570
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
freeze
function freeze(address account) public onlyOwner returns (bool) { require(account!=msg.sender, "owner cannot freeze own account"); _frozenAccounts.add(account); emit Freeze(account); return true; }
/** * @dev freeze functionality, requires account to be not the owner's account * only owner can call this, and owner cannot provide his own address to freeze */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 2580, 2824 ] }
4,571
ART
contracts\BlockBerry.sol
0x7ca718cedc978725a8607fc2de535b3cc8bf7f77
Solidity
BlockBerry
contract BlockBerry is ERC20, ERC20Detailed, Ownable { using SafeMath for uint256; using Roles for Roles.Role; uint256 private _cap; constructor(string memory description, string memory symbol, uint256 cap) //initialize the contract ERC20Detailed(description, symbol, 18) //description symbo...
unfreeze
function unfreeze(address account) public onlyOwner returns (bool) { _frozenAccounts.remove(account); emit Unfreeze(account); return true; }
/** * @dev unfreeze an account */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
MIT
bzzr://5ffb067285e666f169cea6af52cffce058949b124481a53c46d782d13202570b
{ "func_code_index": [ 2878, 3055 ] }
4,572
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (addres...
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 265, 368 ] }
4,573
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TRC20
interface TRC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 93, 153 ] }
4,574
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TRC20
interface TRC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 236, 309 ] }
4,575
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TRC20
interface TRC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 533, 615 ] }
4,576
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TRC20
interface TRC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 894, 982 ] }
4,577
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TRC20
interface TRC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1646, 1725 ] }
4,578
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TRC20
interface TRC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 2038, 2140 ] }
4,579
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 251, 437 ] }
4,580
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 707, 848 ] }
4,581
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1180, 1377 ] }
4,582
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1623, 2099 ] }
4,583
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 2562, 2699 ] }
4,584
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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) { // Solidity only automatically asserts when dividing by 0 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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 3224, 3574 ] }
4,585
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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
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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 4026, 4161 ] }
4,586
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
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 (uint256...
/** * @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
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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 4675, 4846 ] }
4,587
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev See {TRC20-totalSupply}. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 470, 566 ] }
4,588
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view returns (uint256) { return _balances[account]; }
/** * @dev See {TRC20-balanceOf}. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 623, 738 ] }
4,589
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {TRC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 945, 1108 ] }
4,590
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {TRC20-allowance}. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1165, 1304 ] }
4,591
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {TRC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1445, 1602 ] }
4,592
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {TRC20-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 `amoun...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 2068, 2377 ] }
4,593
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public 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 {TRC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 2780, 2995 ] }
4,594
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public 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 {TRC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 3492, 3758 ] }
4,595
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exc...
/** * @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 4243, 4719 ] }
4,596
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 4995, 5308 ] }
4,597
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
burn
function burn(uint256 amount) external { require(_balances[msg.sender] >= amount, "ERC20: not enough balance!"); _burn(msg.sender, amount); }
/** * @dev External function to destroys `amount` tokens from `account`, reducing the * total supply. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 5440, 5611 ] }
4,598
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amo...
/** * @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.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 5939, 6292 ] }
4,599
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal { 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, amount); }
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 6727, 7070 ] }
4,600
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
ERC20
contract ERC20 is Context, TRC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; // allocating 30M tokens for liquidity, promotions, airdrops uint256 private _totalSupply = 30000000 * (10 ...
/** * @dev Implementation of the {TRC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * ...
NatSpecMultiLine
_burnFrom
function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 7251, 7488 ] }
4,601
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
dailyDataUpdate
function dailyDataUpdate(uint256 beforeDay) external { GlobalsCache memory g; GlobalsCache memory gSnapshot; _globalsLoad(g, gSnapshot); /* Skip pre-claim period */ require(g._currentDay > CLAIM_PHASE_START_DAY, "CSNE: Too early"); if (beforeDay != 0) { require(befo...
/** * @dev PUBLIC FACING: Optionally update daily data for a smaller * range to reduce gas cost for a subsequent operation * @param beforeDay Only update days before this day number (optional; 0 for current day) */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 6897, 7572 ] }
4,602
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
dailyDataRange
function dailyDataRange(uint256 beginDay, uint256 endDay) external view returns (uint256[] memory _dayStakeSharesTotal, uint256[] memory _dayPayoutTotal, uint256[] memory _dayDividends) { require(beginDay < endDay && endDay <= globals.dailyDataCount, "CSNE: range invalid"); _dayStakeShar...
/** * @dev PUBLIC FACING: External helper to return multiple values of daily data with * a single call. * @param endDay Last day (non-inclusive) of data range * @param beginDay First day of data range * @return array of day stake shares total * @return array of day payout total */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 7910, 8850 ] }
4,603
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
globalInfo
function globalInfo() external view returns (uint256[10] memory) { return [ globals.lockedSunsTotal, globals.nextStakeSharesTotal, globals.shareRate, globals.stakePenaltyTotal, globals.dailyDataCount, globals.stakeSharesTotal, ...
/** * @dev PUBLIC FACING: External helper to return most global info with a single call. * Ugly implementation due to limitations of the standard ABI encoder. * @return Fixed array of values */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 9079, 9596 ] }
4,604
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
allocatedSupply
function allocatedSupply() external view returns (uint256) { return totalSupply() + globals.lockedSunsTotal; }
/** * @dev PUBLIC FACING: ERC20 totalSupply() is the circulating supply and does not include any * staked Suns. allocatedSupply() includes both. * @return Allocated Supply in Suns */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 9814, 9982 ] }
4,605
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
currentDay
function currentDay() external view returns (uint256) { return _currentDay(); }
/** * @dev PUBLIC FACING: External helper for the current day number since launch time * @return Current day number (zero-based) */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 10142, 10279 ] }
4,606