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
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; }
/** * @dev See {IERC721Enumerable-totalSupply}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 1408, 1526 ] }
4,100
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
tokenByIndex
function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require( index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds" ); return _allTokens[index]; }
/** * @dev See {IERC721Enumerable-tokenByIndex}. */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 1598, 1923 ] }
4,101
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnume...
/** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``...
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 2531, 3125 ] }
4,102
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
_addTokenToOwnerEnumeration
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; }
/** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 3421, 3647 ] }
4,103
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
_addTokenToAllTokensEnumeration
function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); }
/** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 3843, 4012 ] }
4,104
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
_removeTokenFromOwnerEnumeration
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; ui...
/** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes)....
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 4634, 5641 ] }
4,105
AiamasksNFT
AiamasksNFT.sol
0x4922787c7f068706eec5c764d9b5166554b90de5
Solidity
ERC721Enumerable
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex;...
/** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */
NatSpecMultiLine
_removeTokenFromAllTokensEnumeration
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allT...
/** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */
NatSpecMultiLine
v0.8.0+commit.c7dfd78e
None
ipfs://605c47d7ced8e9458e951312d3496a40737c3b1ac458c49169186b5926129533
{ "func_code_index": [ 5931, 7015 ] }
4,106
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
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 ...
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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 259, 445 ] }
4,107
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
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 ...
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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 723, 864 ] }
4,108
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
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 ...
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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 1162, 1359 ] }
4,109
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
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 ...
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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 1613, 2089 ] }
4,110
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b) 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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 2560, 2697 ] }
4,111
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 3188, 3471 ] }
4,112
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 3931, 4066 ] }
4,113
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 4546, 4717 ] }
4,114
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender =...
/** * @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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 506, 590 ] }
4,115
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender =...
/** * @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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 1148, 1301 ] }
4,116
Controller
Controller.sol
0x05aa257ef5e57bd692e5ba00f5e510328b977725
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender =...
/** * @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
None
ipfs://45c33cce26b227f47c802b42b971215ec18998881f700535f53a08eb7e56c87c
{ "func_code_index": [ 1451, 1700 ] }
4,117
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 88, 146 ] }
4,118
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 202, 255 ] }
4,119
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 309, 368 ] }
4,120
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
name
function name() external view returns (string memory);
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 418, 475 ] }
4,121
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
getOwner
function getOwner() external view returns (address);
/** * @dev Returns the bep token owner. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 532, 587 ] }
4,122
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 664, 735 ] }
4,123
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 945, 1025 ] }
4,124
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
allowance
function allowance(address _owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 1290, 1377 ] }
4,125
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 2013, 2090 ] }
4,126
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function ...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 2385, 2485 ] }
4,127
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
TuffyInu
contract TuffyInu is Context, IERC20 { // Ownership moved to in-contract for customizability. address private _owner; mapping (address => uint256) private _tOwned; mapping (address => bool) lpPairs; uint256 private timeSinceLastPair = 0; mapping (address => mapping (address => uint256)) ...
owner
function owner() public view returns (address) { return _owner; }
//=============================================================================================================== //=============================================================================================================== //==========================================================================================...
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 4845, 4929 ] }
4,128
TuffyInu
TuffyInu.sol
0xf4f80510130e6d2e900846b06b576cf30e63eda9
Solidity
TuffyInu
contract TuffyInu is Context, IERC20 { // Ownership moved to in-contract for customizability. address private _owner; mapping (address => uint256) private _tOwned; mapping (address => bool) lpPairs; uint256 private timeSinceLastPair = 0; mapping (address => mapping (address => uint256)) ...
totalSupply
function totalSupply() external pure override returns (uint256) { if (_tTotal == 0) { revert(); } return _tTotal; }
//=============================================================================================================== //=============================================================================================================== //==========================================================================================...
LineComment
v0.8.11+commit.d7f03943
MIT
ipfs://76d8b652679ff388179784d2e586fac21eda2bd340223e1a016eb4204ef46263
{ "func_code_index": [ 6078, 6198 ] }
4,129
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
SafeMath
library SafeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal returns (uint) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint c = a / b; // ass...
/** * Math operations with safety checks */
NatSpecMultiLine
sqrt
function sqrt(uint num) internal returns (uint) { if (0 == num) { // Avoid zero divide return 0; } uint n = (num / 2) + 1; // Initial estimate, never low uint n1 = (n + (num / n)) / 2; while (n1 < n) { n = n1; n1 = (n + (num / n)) / 2; } return n; }
/** * Based on http://www.codecodex.com/wiki/Calculate_an_integer_square_root */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 1182, 1517 ] }
4,130
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
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) { throw; } _; } /** * @dev transfer toke...
/** * @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.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 446, 673 ] }
4,131
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
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) { throw; } _; } /** * @dev transfer toke...
/** * @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.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 877, 983 ] }
4,132
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
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 * @p...
/** * @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) throw; balances[_to] = balances[_to].ad...
/** * @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.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 382, 873 ] }
4,133
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
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 * @p...
/** * @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.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 1108, 1622 ] }
4,134
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
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 * @p...
/** * @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.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 1940, 2075 ] }
4,135
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
AdsharesToken
function AdsharesToken (address _owner1, address _owner2, address _withdrawAddress, uint _crowdsaleStartBlock) { owner1 = _owner1; owner2 = _owner2; withdrawAddress = _withdrawAddress; crowdsaleStartBlock = _crowdsaleStartBlock; }
// constructor
LineComment
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 2020, 2301 ] }
4,136
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
getLockedBalance
function getLockedBalance() private constant returns (uint lockedBalance) { return this.balance.sub(unlockedBalance); }
/** * Returns not yet unlocked balance */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 2367, 2507 ] }
4,137
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
getBuyPrice
function getBuyPrice(uint _bidValue) constant returns (uint tokenCount, uint purchaseValue) { // Token price formula is twofold. We have flat pricing below tokenCreationMin, // and above that price linarly increases with supply. uint flatTokenCount; uint startSupply; uint linearBidValue; ...
/** * @dev Calculates how many tokens one can buy for specified value * @return Amount of tokens one will receive and purchase value without remainder. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 2693, 4713 ] }
4,138
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
getSellPrice
function getSellPrice(uint _askSizeTokens) constant returns (uint saleValue) { uint flatTokenCount; uint linearTokenMin; if(totalSupply <= tokenCreationMin) { return tokenPriceMin * _askSizeTokens; } if(totalSupply.sub(_askSizeTokens) < tokenCreationMin) { ...
/** * @dev Calculates average token price for sale of specified token count * @return Total value received for given sale size. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 4875, 5892 ] }
4,139
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
function() payable fundingActive { buyLimit(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); }
/** * Default function called by sending Ether to this address with no arguments. * @dev Buy tokens with market order */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 6043, 6181 ] }
4,140
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
buy
function buy() payable external fundingActive { buyLimit(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF); }
/** * @dev Buy tokens without price limit */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 6250, 6400 ] }
4,141
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
buyLimit
function buyLimit(uint _maxPrice) payable public fundingActive { require(msg.value >= tokenPriceMin); assert(!isHalted); uint boughtTokens; uint averagePrice; uint purchaseValue; (boughtTokens, purchaseValue) = getBuyPrice(msg.value); if(boughtTokens == 0) { ...
/** * @dev Buy tokens with limit maximum average price * @param _maxPrice Maximum price user want to pay for one token */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 6552, 8146 ] }
4,142
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
sell
function sell(uint _tokenCount) external fundingActive { sellLimit(_tokenCount, 0); }
/** * @dev Sell tokens without limit on price * @param _tokenCount Amount of tokens user wants to sell */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 8282, 8386 ] }
4,143
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
sellLimit
function sellLimit(uint _tokenCount, uint _minPrice) public fundingActive { require(_tokenCount > 0); assert(balances[msg.sender] >= _tokenCount); uint saleValue = getSellPrice(_tokenCount); uint averagePrice = saleValue.div(_tokenCount); assert(averagePrice >= tokenPriceMin); ...
/** * @dev Sell tokens with limit on minimum average priceprice * @param _tokenCount Amount of tokens user wants to sell * @param _minPrice Minimum price user wants to receive for one token */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 8615, 9603 ] }
4,144
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
unlockFunds
function unlockFunds() external onlyOwner fundingActive { assert(minFundingReached); assert(block.timestamp >= fundingUnlockTime); uint unlockedAmount = getLockedBalance().div(fundingUnlockFractionInvert); unlockedBalance += unlockedAmount; assert(getLockedBalance() > 0); ...
/** * @dev Unlock funds for withdrawal. Only 1% can be unlocked weekly. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 9702, 10102 ] }
4,145
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
withdrawFunds
function withdrawFunds(uint _value) external onlyOwner fundingActive onlyPayloadSize(32) { require(_value <= unlockedBalance); assert(minFundingReached); unlockedBalance -= _value; withdrawnBalance += _value; LogWithdraw(_value); withdrawAddress.transfer(_value); ...
/** * @dev Withdraw funds. Only unlocked funds can be withdrawn. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 10194, 10548 ] }
4,146
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
declareCrowdsaleEnd
function declareCrowdsaleEnd() external onlyOwner fundingActive { assert(minFundingReached); assert(crowdsaleEndDeclarationTime == 0); crowdsaleEndDeclarationTime = block.timestamp; LogCrowdsaleEnd(false); }
/** * @dev Declares that crowdsale is about to end. Users have one week to decide if the want to keep token or sell them to contract. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 10709, 10972 ] }
4,147
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
confirmCrowdsaleEnd
function confirmCrowdsaleEnd() external onlyOwner { assert(crowdsaleEndDeclarationTime > 0 && block.timestamp > crowdsaleEndDeclarationTime + crowdsaleEndLockTime); LogCrowdsaleEnd(true); withdrawAddress.transfer(this.balance); }
/** * @dev Can be called one week after initial declaration. Withdraws ether and stops trading. Tokens remain in circulation. */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 11125, 11401 ] }
4,148
AdsharesToken
AdsharesToken.sol
0x422866a8f0b032c5cf1dfbdef31a20f4509562b0
Solidity
AdsharesToken
contract AdsharesToken is StandardToken { using SafeMath for uint; // metadata string public constant name = "Adshares Token"; string public constant symbol = "ADST"; uint public constant decimals = 0; // crowdsale parameters uint public constant tokenCreationMin = 10000000; ...
/** * @title Adshares ICO token * * see https://github.com/adshares/ico * */
NatSpecMultiLine
haltCrowdsale
function haltCrowdsale() external onlyOwner fundingActive { assert(!minFundingReached); isHalted = !isHalted; }
/** * @dev Halts crowdsale. Can only be called before minimumFunding is reached. * @dev When contract is halted no one can buy new tokens, but can sell them back to contract. * @dev Function will be called if minimum funding target isn't reached for extended period of time */
NatSpecMultiLine
v0.4.11+commit.68ef5810
bzzr://af9623b560cc5be9532279843d39a290d62fb8422ed5d6f9eba3d7a8909bc8bf
{ "func_code_index": [ 11715, 11854 ] }
4,149
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 60, 124 ] }
4,150
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 232, 309 ] }
4,151
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 546, 623 ] }
4,152
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 946, 1042 ] }
4,153
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 1326, 1407 ] }
4,154
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// ...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 1615, 1712 ] }
4,155
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
DSW
contract DSW is StandardToken { function () { //if ether is sent to this address, send it back. throw; } string public canxaxnazka; string public canxa1xnazka; string public canxax5nazka; string public canxaxn32azka; string public canxaxnaz7ka; string public c...
//name this contract whatever you'd like
LineComment
DSW
function DSW( ) { balances[msg.sender] = 33000000 * (10 ** 18) ; totalSupply = 33000000 * (10 ** 18) ; // Update total supply (100000 for example) name = "swerve.fi"; // Set the name for display purposes decimals = 0; // Amount of decimals for di...
//human 0.1 standard. Just an arbitrary versioning scheme. // // CHANGE THESE VALUES FOR YOUR TOKEN // //make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token
LineComment
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 1370, 1819 ] }
4,156
DSW
DSW.sol
0x2e795dd7751812e282fa99c67ba0c07351ec7440
Solidity
DSW
contract DSW is StandardToken { function () { //if ether is sent to this address, send it back. throw; } string public canxaxnazka; string public canxa1xnazka; string public canxax5nazka; string public canxaxn32azka; string public canxaxnaz7ka; string public c...
//name this contract whatever you'd like
LineComment
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually s...
/* Approves and then calls the receiving contract */
Comment
v0.4.26+commit.4563c3fc
None
bzzr://42115a9f1fbdb12d8aea64c6adaa6a57b97bed3ccb82b6bee52010c0080ec089
{ "func_code_index": [ 1880, 2685 ] }
4,157
MassVestingSender
MassVestingSender.sol
0xcbc66115e9d8655709c3408d0e320410aef1161a
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; } /** * @d...
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); emit OwnershipTransferred(owner, newOwner); 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.24+commit.e67f0147
bzzr://2e613c75f05bd90dcf1e5ff7bbb8699e94418b70b387b7f0bf07394816f6c805
{ "func_code_index": [ 609, 784 ] }
4,158
MassVestingSender
MassVestingSender.sol
0xcbc66115e9d8655709c3408d0e320410aef1161a
Solidity
TokenTimelock
contract TokenTimelock { // ERC20 basic token contract being held ERC20 private _token; // beneficiary of tokens after they are released address private _beneficiary; // timestamp when token release is enabled uint256 private _releaseTime; constructor (ERC20 token, address beneficiary, uint256 relea...
/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a given release time */
NatSpecMultiLine
token
function token() public view returns (ERC20) { return _token; }
/** * @return the token being held. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://2e613c75f05bd90dcf1e5ff7bbb8699e94418b70b387b7f0bf07394816f6c805
{ "func_code_index": [ 572, 642 ] }
4,159
MassVestingSender
MassVestingSender.sol
0xcbc66115e9d8655709c3408d0e320410aef1161a
Solidity
TokenTimelock
contract TokenTimelock { // ERC20 basic token contract being held ERC20 private _token; // beneficiary of tokens after they are released address private _beneficiary; // timestamp when token release is enabled uint256 private _releaseTime; constructor (ERC20 token, address beneficiary, uint256 relea...
/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a given release time */
NatSpecMultiLine
beneficiary
function beneficiary() public view returns (address) { return _beneficiary; }
/** * @return the beneficiary of the tokens. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://2e613c75f05bd90dcf1e5ff7bbb8699e94418b70b387b7f0bf07394816f6c805
{ "func_code_index": [ 701, 785 ] }
4,160
MassVestingSender
MassVestingSender.sol
0xcbc66115e9d8655709c3408d0e320410aef1161a
Solidity
TokenTimelock
contract TokenTimelock { // ERC20 basic token contract being held ERC20 private _token; // beneficiary of tokens after they are released address private _beneficiary; // timestamp when token release is enabled uint256 private _releaseTime; constructor (ERC20 token, address beneficiary, uint256 relea...
/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a given release time */
NatSpecMultiLine
releaseTime
function releaseTime() public view returns (uint256) { return _releaseTime; }
/** * @return the time when the tokens are released. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://2e613c75f05bd90dcf1e5ff7bbb8699e94418b70b387b7f0bf07394816f6c805
{ "func_code_index": [ 852, 936 ] }
4,161
MassVestingSender
MassVestingSender.sol
0xcbc66115e9d8655709c3408d0e320410aef1161a
Solidity
TokenTimelock
contract TokenTimelock { // ERC20 basic token contract being held ERC20 private _token; // beneficiary of tokens after they are released address private _beneficiary; // timestamp when token release is enabled uint256 private _releaseTime; constructor (ERC20 token, address beneficiary, uint256 relea...
/** * @title TokenTimelock * @dev TokenTimelock is a token holder contract that will allow a * beneficiary to extract the tokens after a given release time */
NatSpecMultiLine
release
function release() public { // solium-disable-next-line security/no-block-members require(block.timestamp >= _releaseTime); uint256 amount = _token.balanceOf(address(this)); require(amount > 0); _token.transfer(_beneficiary, amount); }
/** * @notice Transfers tokens held by timelock to beneficiary. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://2e613c75f05bd90dcf1e5ff7bbb8699e94418b70b387b7f0bf07394816f6c805
{ "func_code_index": [ 1014, 1272 ] }
4,162
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @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
{ "func_code_index": [ 497, 581 ] }
4,163
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @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
{ "func_code_index": [ 1139, 1292 ] }
4,164
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @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
{ "func_code_index": [ 1442, 1691 ] }
4,165
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
MGToken
contract MGToken is ERC20("Magallane", "MG"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
// MGToken with Governance.
LineComment
mint
function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); }
/// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
NatSpecSingleLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 155, 322 ] }
4,166
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
MGToken
contract MGToken is ERC20("Magallane", "MG"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
// MGToken with Governance.
LineComment
delegates
function delegates(address delegator) external view returns (address) { return _delegates[delegator]; }
/** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 2315, 2469 ] }
4,167
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
MGToken
contract MGToken is ERC20("Magallane", "MG"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
// MGToken with Governance.
LineComment
delegate
function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); }
/** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 2608, 2717 ] }
4,168
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
MGToken
contract MGToken is ERC20("Magallane", "MG"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
// MGToken with Governance.
LineComment
delegateBySig
function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), ...
/** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECD...
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 3146, 4323 ] }
4,169
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
MGToken
contract MGToken is ERC20("Magallane", "MG"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
// MGToken with Governance.
LineComment
getCurrentVotes
function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; }
/** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 4519, 4779 ] }
4,170
MGToken
@openzeppelin/contracts/access/Ownable.sol
0xedc518f5fba01d4a4e5d51a1555a718bec74d683
Solidity
MGToken
contract MGToken is ERC20("Magallane", "MG"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); ...
// MGToken with Governance.
LineComment
getPriorVotes
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "MG::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First che...
/** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at ...
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 5205, 6461 ] }
4,171
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
Solidity
Context
abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } /** * @dev Function _msgData() defines messaging standards of ERC20 tokens as defined in the EIP. */ function _msgData() internal view virtual returns (by...
/** * @dev Contract Context of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
_msgData
function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; }
/** * @dev Function _msgData() defines messaging standards of ERC20 tokens as defined in the EIP. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 263, 501 ] }
4,172
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 94, 154 ] }
4,173
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 237, 310 ] }
4,174
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 534, 616 ] }
4,175
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 895, 983 ] }
4,176
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 1647, 1726 ] }
4,177
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 2039, 2141 ] }
4,178
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 259, 445 ] }
4,179
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 723, 864 ] }
4,180
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 1162, 1359 ] }
4,181
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 1613, 2089 ] }
4,182
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 2560, 2697 ] }
4,183
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 3188, 3471 ] }
4,184
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 3931, 4066 ] }
4,185
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 4546, 4717 ] }
4,186
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 606, 1230 ] }
4,187
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 2160, 2562 ] }
4,188
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 3318, 3496 ] }
4,189
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 3721, 3922 ] }
4,190
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 4292, 4523 ] }
4,191
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 4774, 5095 ] }
4,192
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 497, 581 ] }
4,193
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 1139, 1292 ] }
4,194
RefractFin
RefractFin.sol
0x1de8c93d2a4187b7ac51676a0c8fe121a06684b0
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
/** * @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://a226205be2a9ac5c949f9067547aae08af696fffe58268ad67fd468ba5192af3
{ "func_code_index": [ 1442, 1691 ] }
4,195
HonoraryBears
contracts/nft_on_chain_whitelist.sol
0x4f0915a980fd5c9033d4ba5b297d2a5f149231f1
Solidity
HonoraryBears
contract HonoraryBears is ERC721, Ownable { using Strings for uint256; uint256 public constant MAX_TOKENS = 250; uint256 private constant TOKENS_RESERVED = 100; uint256 public price = 300000000000000000; uint256 public constant MAX_MINT_PER_TX = 2; bool public isSaleActive; bool...
// @title: BallerBears.sol
LineComment
whitelistMint
function whitelistMint(uint256 _numTokens) external payable { require(isAllowListActive, "Whitelist is not active."); require(_allowList[msg.sender] == true, "Not whitelisted."); require(_numTokens <= MAX_MINT_PER_TX, "You can only mint a maximum of 2 per transaction."); require(mintedPerWallet[msg....
// PUBLIC FUNCTIONS
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://24f9fb75db078997a30a296c8be7ce934429051f801723b15f09232b344d7e25
{ "func_code_index": [ 890, 1719 ] }
4,196
HonoraryBears
contracts/nft_on_chain_whitelist.sol
0x4f0915a980fd5c9033d4ba5b297d2a5f149231f1
Solidity
HonoraryBears
contract HonoraryBears is ERC721, Ownable { using Strings for uint256; uint256 public constant MAX_TOKENS = 250; uint256 private constant TOKENS_RESERVED = 100; uint256 public price = 300000000000000000; uint256 public constant MAX_MINT_PER_TX = 2; bool public isSaleActive; bool...
// @title: BallerBears.sol
LineComment
flipSaleState
function flipSaleState() external onlyOwner { isSaleActive = !isSaleActive; }
// OWNER ONLY FUNCTIONS
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://24f9fb75db078997a30a296c8be7ce934429051f801723b15f09232b344d7e25
{ "func_code_index": [ 2501, 2597 ] }
4,197
HonoraryBears
contracts/nft_on_chain_whitelist.sol
0x4f0915a980fd5c9033d4ba5b297d2a5f149231f1
Solidity
HonoraryBears
contract HonoraryBears is ERC721, Ownable { using Strings for uint256; uint256 public constant MAX_TOKENS = 250; uint256 private constant TOKENS_RESERVED = 100; uint256 public price = 300000000000000000; uint256 public constant MAX_MINT_PER_TX = 2; bool public isSaleActive; bool...
// @title: BallerBears.sol
LineComment
_baseURI
function _baseURI() internal view virtual override returns (string memory) { return baseUri; }
// INTERNAL FUNCTIONS
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://24f9fb75db078997a30a296c8be7ce934429051f801723b15f09232b344d7e25
{ "func_code_index": [ 3910, 4023 ] }
4,198
ELTPLUS
ELTPLUS.sol
0xe883bd2f6b311b96342ecd8046952b614f717ced
Solidity
ELTPLUS
contract ELTPLUS is ERC20 { using SafeMath for uint256; string internal _name; string internal _symbol; uint8 internal _decimals; uint256 internal _totalSupply; address internal _admin; mapping (address => uint256) internal balances; mapping (address =>...
burnFrom
function burnFrom(address _from, uint256 _value) public returns (bool success) { require(balances[_from] >= _value); // Check if the targeted balance is enough require(_value <= allowed[_from][msg.sender]); // Check allowance balances[_from] -= _value; // Subtrac...
/** * Destroy tokens from other account */
NatSpecMultiLine
v0.5.11+commit.c082d0b4
None
bzzr://6db144f5bbe040fde6c58953976ce0348fd390ca4a8b4d42ba3503d55becb435
{ "func_code_index": [ 3041, 3652 ] }
4,199