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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DGTCoin | contract DGTCoin is DSTokenBase , DSStop {
string public symbol="DGT";
string public name="DGT Coin";
uint256 public decimals = 5; // Standard Token Precision
uint256 public initialSupply=10000000000000;
address public burnAdmin;
constructor() public
DSTokenBase(initialSupply)... | isAdmin | function isAdmin() public view returns(bool) {
return msg.sender == burnAdmin;
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
674,
763
]
} | 27,800 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DGTCoin | contract DGTCoin is DSTokenBase , DSStop {
string public symbol="DGT";
string public name="DGT Coin";
uint256 public decimals = 5; // Standard Token Precision
uint256 public initialSupply=10000000000000;
address public burnAdmin;
constructor() public
DSTokenBase(initialSupply)... | renounceOwnership | function renounceOwnership() public onlyAdmin {
burnAdmin = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
1030,
1114
]
} | 27,801 | |||
DGTCoin | DGTCoin.sol | 0x8adbc5eb31ab846997829842e2d073cc0f0ac811 | Solidity | DGTCoin | contract DGTCoin is DSTokenBase , DSStop {
string public symbol="DGT";
string public name="DGT Coin";
uint256 public decimals = 5; // Standard Token Precision
uint256 public initialSupply=10000000000000;
address public burnAdmin;
constructor() public
DSTokenBase(initialSupply)... | burnfromAdmin | function burnfromAdmin(address guy, uint wad) public onlyAdmin {
require(guy != address(0));
_balances[guy] = sub(_balances[guy], wad);
_supply = sub(_supply, wad);
emit Burn(guy, wad);
emit Transfer(guy, address(0), wad);
}
| /**
* @dev Burns a specific amount of tokens from the target address
* @param guy address The address which you want to send tokens from
* @param wad uint256 The amount of token to be burned
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://568a3d46de111414524f01a35c1dfc70c632a74464204837c26370895cda1183 | {
"func_code_index": [
2068,
2353
]
} | 27,802 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | _transfer | function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balanceOf[_from] >= _value);
// Check for overflows
require(balanceOf[_to] + _value >= balanceOf[_to]... | /**
* Internal transfer, only can be called by this contract
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
1361,
2209
]
} | 27,803 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | transfer | function transfer(address _to, uint256 _value) public {
_transfer(msg.sender, _to, _value);
}
| /**
* Transfer tokens
*
* Send `_value` tokens to `_to` from your account
*
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
2415,
2527
]
} | 27,804 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | transferFrom | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_value <= allowance[_from][msg.sender]); // Check allowance
allowance[_from][msg.sender] -= _value;
_transfer(_from, _to, _value);
return true;
}
| /**
* Transfer tokens from other address
*
* Send `_value` tokens to `_to` on behalf of `_from`
*
* @param _from The address of the sender
* @param _to The address of the recipient
* @param _value the amount to send
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
2802,
3103
]
} | 27,805 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | approve | function approve(address _spender, uint256 _value) public
returns (bool success) {
allowance[msg.sender][_spender] = _value;
return true;
}
| /**
* Set allowance for other address
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
3367,
3543
]
} | 27,806 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | approveAndCall | function approveAndCall(address _spender, uint256 _value, bytes _extraData)
public
returns (bool success) {
tokenRecipient spender = tokenRecipient(_spender);
if (approve(_spender, _value)) {
spender.receiveApproval(msg.sender, _value, this, _extraData);
return true;
}
}
| /**
* Set allowance for other address and notify
*
* Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it
*
* @param _spender The address authorized to spend
* @param _value the max amount they can spend
* @param _extraData some extra information to s... | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
3937,
4289
]
} | 27,807 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | burn | function burn(uint256 _value) public returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
emit Burn(msg.sender,... | /**
* Destroy tokens
*
* Remove `_value` tokens from the system irreversibly
*
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
4459,
4838
]
} | 27,808 | |||
ArabOilToken | ArabOilToken.sol | 0xeea519e55d1ebeced125aa291f4457af440a7299 | Solidity | ArabOilToken | contract ArabOilToken {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// 18 decimals is the strongly suggested default, avoid changing it
uint256 public totalSupply;
// This creates an array with all balances
mapping (add... | burnFrom | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Sub... | /**
* Destroy tokens from other account
*
* Remove `_value` tokens from the system irreversibly on behalf of `_from`.
*
* @param _from the address of the sender
* @param _value the amount of money to burn
*/ | NatSpecMultiLine | v0.4.23+commit.124ca40d | bzzr://a78fe0036316522e4bf4310f7ad278f94cf0a5c37bdfae422536dfde7929160f | {
"func_code_index": [
5096,
5712
]
} | 27,809 | |||
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | ERC20 | abstract contract ERC20 {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address ... | /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances... | NatSpecSingleLine | approve | function approve(address spender, uint256 amount) public virtual returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
| /*///////////////////////////////////////////////////////////////
ERC20 LOGIC
//////////////////////////////////////////////////////////////*/ | Comment | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
2206,
2428
]
} | 27,810 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | ERC20 | abstract contract ERC20 {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address ... | /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances... | NatSpecSingleLine | permit | function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) public virtual {
require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");
// Unchecked because the only math done is incrementing
// the owner's ... | /*///////////////////////////////////////////////////////////////
EIP-2612 LOGIC
//////////////////////////////////////////////////////////////*/ | Comment | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
3633,
4661
]
} | 27,811 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | ERC20 | abstract contract ERC20 {
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address ... | /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances... | NatSpecSingleLine | _mint | function _mint(address to, uint256 amount) internal virtual {
totalSupply += amount;
// Cannot overflow because the sum of all user
// balances can't exceed the max uint256 value.
unchecked {
balanceOf[to] += amount;
}
emit Transfer(address(0), to, amount);
}
| /*///////////////////////////////////////////////////////////////
INTERNAL MINT/BURN LOGIC
//////////////////////////////////////////////////////////////*/ | Comment | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
5508,
5848
]
} | 27,812 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | SafeTransferLib | library SafeTransferLib {
/*///////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferETH(address to, uint256 amount) internal {
bool callStatus;
a... | /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20... | NatSpecSingleLine | safeTransferETH | function safeTransferETH(address to, uint256 amount) internal {
bool callStatus;
assembly {
// Transfer the ETH and store if it succeeded or not.
callStatus := call(gas(), to, amount, 0, 0, 0, 0)
}
require(callStatus, "ETH_TRANSFER_FAILED");
}
| /*///////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/ | Comment | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
214,
533
]
} | 27,813 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | SafeTransferLib | library SafeTransferLib {
/*///////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferETH(address to, uint256 amount) internal {
bool callStatus;
a... | /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20... | NatSpecSingleLine | safeTransferFrom | function safeTransferFrom(
ERC20 token,
address from,
address to,
uint256 amount
) internal {
bool callStatus;
assembly {
// Get a pointer to some free memory.
let freeMemoryPointer := mload(0x40)
// Write the abi-encoded calldata to memory piece by piece:
... | /*///////////////////////////////////////////////////////////////
ERC20 OPERATIONS
//////////////////////////////////////////////////////////////*/ | Comment | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
724,
1971
]
} | 27,814 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | SafeTransferLib | library SafeTransferLib {
/*///////////////////////////////////////////////////////////////
ETH OPERATIONS
//////////////////////////////////////////////////////////////*/
function safeTransferETH(address to, uint256 amount) internal {
bool callStatus;
a... | /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20... | NatSpecSingleLine | didLastOptionalReturnCallSucceed | function didLastOptionalReturnCallSucceed(bool callStatus) private pure returns (bool success) {
assembly {
// Get how many bytes the call returned.
let returnDataSize := returndatasize()
// If the call reverted:
if iszero(callStatus) {
// Copy the revert message ... | /*///////////////////////////////////////////////////////////////
INTERNAL HELPER LOGIC
//////////////////////////////////////////////////////////////*/ | Comment | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
4309,
5386
]
} | 27,815 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | MerkleProof | library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images... | /**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/crypt... | NatSpecMultiLine | verify | function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
| /**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
357,
552
]
} | 27,816 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | MerkleProof | library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images... | /**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/crypt... | NatSpecMultiLine | processProof | function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current el... | /**
* @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/ | NatSpecMultiLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
909,
1589
]
} | 27,817 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | setTreasury | function setTreasury(
address _treasury
) external onlyConcave {
treasury = _treasury;
emit TreasurySet(_treasury);
}
| /// @notice Set a new treasury address if treasury | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
5447,
5608
]
} | 27,818 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | setRound | function setRound(
bytes32 _merkleRoot,
uint256 _rate
) external onlyConcave {
// push new root to array of all roots - for viewing
roots.push(_merkleRoot);
// update merkle root
merkleRoot = _merkleRoot;
// update rate
rate = _rate;
emit NewRound(merkleRoot,rate);
}
| /// @notice Update merkle root and rate
/// @param _merkleRoot root of merkle tree
/// @param _rate price of pCNV in DAI/FRAX | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
5772,
6137
]
} | 27,819 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | manage | function manage(
address target,
uint256 amount
) external onlyConcave {
totalMinted += amount;
// mint target amount
_mint(target, amount);
emit Managed(target, amount, totalMinted);
}
| /// @notice Reduce an "amount" of available supply of pCNV or mint it to "target"
/// @param target address to which to mint; if address(0), will burn
/// @param amount to reduce from max supply or mint to "target" | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
6382,
6640
]
} | 27,820 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | setTransfersPaused | function setTransfersPaused(bool paused) external onlyConcave {
transfersPaused = paused;
}
| /// @notice Allows Concave to pause transfers in the event of a bug
/// @param paused if transfers should be paused or not | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
6786,
6896
]
} | 27,821 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | mint | function mint(
address to,
address tokenIn,
uint256 maxAmount,
uint256 amountIn,
bytes32[] calldata proof
) external returns (uint256 amountOut) {
return _purchase(msg.sender, to, tokenIn, maxAmount, amountIn, proof);
}
| /// @notice mint pCNV by providing merkle proof and depositing DAI/FRAX
/// @param to whitelisted address pCNV will be minted to
/// @param tokenIn address of tokenIn user wishes to deposit (DAI/FRAX)
/// @param maxAmount max amount of DAI/FRAX sender can deposit for pCNV, to verif... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
7679,
7967
]
} | 27,822 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | mintWithPermit | function mintWithPermit(
address to,
address tokenIn,
uint256 maxAmount,
uint256 amountIn,
bytes32[] calldata proof,
uint256 permitDeadline,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint256 amountOut) {
// Make sure payment tokenIn is DAI
require(tokenIn ... | /// @notice mint pCNV by providing merkle proof and depositing DAI; uses EIP-2612 permit to save a transaction
/// @param to whitelisted address pCNV will be minted to
/// @param tokenIn address of tokenIn user wishes to deposit (DAI)
/// @param maxAmount max amount of DAI sender c... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
8811,
9521
]
} | 27,823 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | transfer | function transfer(
address to,
uint256 amount
) public virtual override returns (bool) {
require(!transfersPaused,"PAUSED");
// default ERC20 transfer
return super.transfer(to, amount);
}
| /// @notice transfer "amount" of tokens from msg.sender to "to"
/// @dev calls "_beforeTransfer" to update vesting storage for "from" and "to"
/// @param to address tokens are being sent to
/// @param amount number of tokens being transfered | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
9813,
10060
]
} | 27,824 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | transferFrom | function transferFrom(
address from,
address to,
uint256 amount
) public virtual override returns (bool) {
require(!transfersPaused,"PAUSED");
// default ERC20 transfer
return super.transferFrom(from, to, amount);
}
| /// @notice transfer "amount" of tokens from "from" to "to"
/// @dev calls "_beforeTransfer" to update vesting storage for "from" and "to"
/// @param from address tokens are being transfered from
/// @param to address tokens are being sent to
/// @param amount number of tokens being trans... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
10414,
10698
]
} | 27,825 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | _purchase | function _purchase(
address sender,
address to,
address tokenIn,
uint256 maxAmount,
uint256 amountIn,
bytes32[] calldata proof
) internal returns(uint256 amountOut) {
// Make sure payment tokenIn is either DAI or FRAX
require(tokenIn == address(DAI) || tokenIn == address(FRAX), ... | /// @notice Deposits FRAX/DAI for pCNV if merkle proof exists in specified round
/// @param sender address sending transaction
/// @param to whitelisted address purchased pCNV will be sent to
/// @param tokenIn address of tokenIn user wishes to deposit
/// @param maxAmount ... | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
11513,
13113
]
} | 27,826 |
bbtCNV | bbtCNV.sol | 0x0000000012a0592c154d552c410030e724b2ea00 | Solidity | bbtCNV | contract bbtCNV is ERC20("Concave Presale Token (BBT)", "bbtCNV", 18) {
/* ---------------------------------------------------------------------- */
/* DEPENDENCIES */
/* ---------------------------------------------------------------------- */
... | /// @notice Concave Presale Token
/// @author 0xBarista & Dionysus (ConcaveFi) | NatSpecSingleLine | rescue | function rescue(address token) external onlyConcave {
if (token == address(0)) payable(treasury).transfer( address(this).balance );
else ERC20(token).transfer(treasury, ERC20(token).balanceOf(address(this)));
}
| /// @notice Rescues accidentally sent tokens and ETH
/// @param token address of token to rescue, if address(0) rescue ETH | NatSpecSingleLine | v0.8.7+commit.e28d00a7 | None | ipfs://6dcdb126719391a14240e2923bde42df1d48e65eb8f3e10507f95d12755dc64c | {
"func_code_index": [
13262,
13500
]
} | 27,827 |
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | 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-solidity/pull/522
if (a == 0) {
return 0;
... | /**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
104,
542
]
} | 27,828 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Integer division of two unsigned integers truncating the quotient, reverts on division by zero.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
670,
978
]
} | 27,829 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;
return c;
}
| /**
* @dev Subtracts two unsigned integers, reverts on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
1109,
1264
]
} | 27,830 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
| /**
* @dev Adds two unsigned integers, reverts on overflow.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
1345,
1500
]
} | 27,831 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
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.
... | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| /**
* @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo),
* reverts when dividing by zero.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
1653,
1782
]
} | 27,832 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | Roles | library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
require(account != address(0));
require(!has(role, account));
role.beare... | add | function add(Role storage role, address account) internal {
require(account != address(0));
require(!has(role, account));
role.bearer[account] = true;
}
| /**
* @dev give an account access to this role
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
155,
346
]
} | 27,833 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | Roles | library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
require(account != address(0));
require(!has(role, account));
role.beare... | remove | function remove(Role storage role, address account) internal {
require(account != address(0));
require(has(role, account));
role.bearer[account] = false;
}
| /**
* @dev remove an account's access to this role
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
420,
614
]
} | 27,834 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | Roles | library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
require(account != address(0));
require(!has(role, account));
role.beare... | has | function has(Role storage role, address account) internal view returns (bool) {
require(account != address(0));
return role.bearer[account];
}
| /**
* @dev check if an account has this role
* @return bool
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
703,
873
]
} | 27,835 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | Pausable | contract Pausable is PauserRole {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
constructor () internal {
_paused = false;
}
/**
* @return true if the contract is paused, false otherwise.
*/
function paused() public vi... | paused | function paused() public view returns (bool) {
return _paused;
}
| /**
* @return true if the contract is paused, false otherwise.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
289,
372
]
} | 27,836 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | Pausable | contract Pausable is PauserRole {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
constructor () internal {
_paused = false;
}
/**
* @return true if the contract is paused, false otherwise.
*/
function paused() public vi... | pause | function pause() public onlyPauser whenNotPaused {
_paused = true;
emit Paused(msg.sender);
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
825,
946
]
} | 27,837 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | Pausable | contract Pausable is PauserRole {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
constructor () internal {
_paused = false;
}
/**
* @return true if the contract is paused, false otherwise.
*/
function paused() public vi... | unpause | function unpause() public onlyPauser whenPaused {
_paused = false;
emit Unpaused(msg.sender);
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
1036,
1159
]
} | 27,838 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | totalSupply | function totalSupply() public view returns (uint256) {
return _totalSupply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
297,
393
]
} | 27,839 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | balanceOf | function balanceOf(address owner) public view returns (uint256) {
return _balances[owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param owner The address to query the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
604,
715
]
} | 27,840 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | allowance | function allowance(address owner, address spender) public view returns (uint256) {
return _allowed[owner][spender];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param owner address The address which owns the funds.
* @param spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
1049,
1185
]
} | 27,841 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | transfer | function transfer(address to, uint256 value) public returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
| /**
* @dev Transfer token for a specified address
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
1351,
1496
]
} | 27,842 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | approve | function approve(address spender, uint256 value) public returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
2138,
2387
]
} | 27,843 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | transferFrom | function transferFrom(address from, address to, uint256 value) public returns (bool) {
_allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
_transfer(from, to, value);
emit Approval(from, msg.sender, _allowed[from][msg.sender]);
return true;
}
| /**
* @dev Transfer tokens from one address to another.
* Note that while this function emits an Approval event, this is not required as per the specification,
* and other compliant implementations may not emit the event.
* @param from address The address which you want to send tokens from
* @param to address... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
2855,
3159
]
} | 27,844 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue);
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits an Approva... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
3669,
3997
]
} | 27,845 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = _allowed[msg.sender][spender].sub(subtractedValue);
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
return true;
}
| /**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* Emits an Approva... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
4512,
4850
]
} | 27,846 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | _transfer | function _transfer(address from, address to, uint256 value) internal {
require(to != address(0));
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| /**
* @dev Transfer token for a specified addresses
* @param from The address to transfer from.
* @param to The address to transfer to.
* @param value The amount to be transferred.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
5067,
5334
]
} | 27,847 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | _mint | function _mint(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.add(value);
_balances[account] = _balances[account].add(value);
emit Transfer(address(0), account, value);
}
| /**
* @dev Internal function that mints an amount of the token and assigns it to
* an account. This encapsulates the modification of balances such that the
* proper events are emitted.
* @param account The account that will receive the created tokens.
* @param value The amount that will be created.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
5681,
5955
]
} | 27,848 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | _burn | function _burn(address account, uint256 value) internal {
require(account != address(0));
_totalSupply = _totalSupply.sub(value);
_balances[account] = _balances[account].sub(value);
emit Transfer(account, address(0), value);
}
| /**
* @dev Internal function that burns an amount of the token of a given
* account.
* @param account The account whose tokens will be burnt.
* @param value The amount that will be burnt.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
6184,
6458
]
} | 27,849 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowed;
uint256 private _totalSupply;
/**
* @dev Total number of tokens in existence
*/
function totalSuppl... | _burnFrom | function _burnFrom(address account, uint256 value) internal {
_allowed[account][msg.sender] = _allowed[account][msg.sender].sub(value);
_burn(account, value);
emit Approval(account, msg.sender, _allowed[account][msg.sender]);
}
| /**
* @dev Internal function that burns an amount of the token of a given
* account, deducting from the sender's allowance for said account. Uses the
* internal burn function.
* Emits an Approval event (reflecting the reduced allowance).
* @param account The account whose tokens will be burnt.
* @param valu... | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
6852,
7116
]
} | 27,850 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @return the name of the token.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
356,
444
]
} | 27,851 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @return the symbol of the token.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
506,
598
]
} | 27,852 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | ERC20Detailed | contract ERC20Detailed is IERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol, uint8 decimals) public {
_name = name;
_symbol = symbol;
_decimals = decimals;
}
/**
* @retu... | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @return the number of decimals of the token.
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
672,
760
]
} | 27,853 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | HCT | contract HCT is ERC20Detailed, ERC20Pausable {
struct LockInfo {
uint256 _releaseTime;
uint256 _amount;
}
address public implementation;
mapping (address => LockInfo[]) public timelockList;
mapping (address => bool) public frozenAccount;
event Freeze(addr... | upgradeTo | function upgradeTo(address _newImplementation) public onlyOwner {
require(implementation != _newImplementation);
_setImplementation(_newImplementation);
}
| /**
* @dev Upgrades the implementation address
* @param _newImplementation address of the new implementation
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
3071,
3253
]
} | 27,854 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | HCT | contract HCT is ERC20Detailed, ERC20Pausable {
struct LockInfo {
uint256 _releaseTime;
uint256 _amount;
}
address public implementation;
mapping (address => LockInfo[]) public timelockList;
mapping (address => bool) public frozenAccount;
event Freeze(addr... | _setImplementation | function _setImplementation(address _newImp) internal {
implementation = _newImp;
}
| /**
* @dev Sets the address of the current implementation
* @param _newImp address of the new implementation
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
4694,
4796
]
} | 27,855 | ||
HCT | HCT.sol | 0x822cb327bb4d93692adce6de1d29eef9085ffe5b | Solidity | HCT | contract HCT is ERC20Detailed, ERC20Pausable {
struct LockInfo {
uint256 _releaseTime;
uint256 _amount;
}
address public implementation;
mapping (address => LockInfo[]) public timelockList;
mapping (address => bool) public frozenAccount;
event Freeze(addr... | function () payable external {
address impl = implementation;
require(impl != address(0));
assembly {
let ptr := mload(0x40)
calldatacopy(ptr, 0, calldatasize)
let result := delegatecall(gas, impl, ptr, calldatasize, 0, 0)
let size := returndatasize
returndata... | /**
* @dev Fallback function allowing to perform a delegatecall
* to the given implementation. This function will return
* whatever the implementation call returns
*/ | NatSpecMultiLine | v0.5.17+commit.d19bba13 | None | bzzr://c11295298791aae876050a5ce0f6da245794e9e0f6c8ff4e91355aeb8e33331f | {
"func_code_index": [
5001,
5520
]
} | 27,856 | |||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | reserveNft | function reserveNft(uint256 reserve) public onlyOwner {
uint supply = totalSupply();
uint counter;
for (counter = 0; counter < reserve; counter++) {
uint reserved_id = supply + counter;
_safeMint(msg.sender, reserved_id);
// string memory tokenURI = string(abi.encodePacked(toke... | // Keeping some NFTs aside | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
905,
1301
]
} | 27,857 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | setReveealTimestamp | function setReveealTimestamp(uint256 newTimestamp) public onlyOwner {
REVEAL_TIMESTAMP = newTimestamp;
}
| // Set a new REVEAL_TIMESTAMP | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
1339,
1462
]
} | 27,858 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | setProvenance | function setProvenance(string memory provenance) public onlyOwner {
GKC_PROVENANCE = provenance;
}
| // Set provenance once it's calculated | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
1509,
1626
]
} | 27,859 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | setBaseURI | function setBaseURI(string memory baseURI) public onlyOwner {
_setBaseURI(baseURI);
}
| // Set the base URI | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
1654,
1758
]
} | 27,860 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | flipSaleState | function flipSaleState() public onlyOwner {
isSaleActive = !isSaleActive;
}
| // Pause sale if active, make active if paused | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
1813,
1907
]
} | 27,861 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | mint | function mint(uint256 amount) public payable {
require(isSaleActive, "Sale must be active to mint NFT");
require(amount <= MAX_NFT, "Amount must be less than MAX_NFT");
require(totalSupply().add(amount) <= MAX_NFT, "Total supply + amount must be less than MAX_NFT");
require(nftPrice.mul(amount) == m... | // The main minting function | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
1944,
3023
]
} | 27,862 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | setStartingIndex | function setStartingIndex() public {
require(startingIndex == 0, "Starting Index is already set");
require(startingIndexBlock != 0, "Starting index block must be set");
startingIndex = uint(blockhash(startingIndexBlock)) % MAX_NFT;
// Just a sanity case in the worst case if this function... | // Set the starting index for the collection | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
3076,
3760
]
} | 27,863 | ||
GambaKittiesClub | GambaKittiesClub.sol | 0x9aae182e9aa6594d05a30395ff49455e5fad929b | Solidity | GambaKittiesClub | contract GambaKittiesClub is ERC721, Ownable {
using SafeMath for uint256;
string public GKC_PROVENANCE = "";
uint256 public startingIndexBlock;
uint256 public startingIndex;
uint256 public constant nftPrice = (0.02) * (10**18); // 0.02 Ether
uint public constant maxNftPurchase... | emergencySetStartingIndex | function emergencySetStartingIndex() public onlyOwner{
require(startingIndex == 0, "Starting index is already set");
startingIndexBlock = block.number;
}
| // Set the starting index block for the collection, essentially unblocking setting starting index | LineComment | v0.6.6+commit.6c089d02 | MIT | ipfs://c0726b23b2094971c7f8200ce7f654a52539b014fa012ccdad52fec45488f7f2 | {
"func_code_index": [
3866,
4049
]
} | 27,864 | ||
Bidding | Bidding.sol | 0x9de9563e27c6aafcf907bacee733f83d50168959 | 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.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://faa64b5cc79c635a7463ad6c7a10e35175ab7bc4bea33f2b4ff07fa312497094 | {
"func_code_index": [
261,
321
]
} | 27,865 | |
Bidding | Bidding.sol | 0x9de9563e27c6aafcf907bacee733f83d50168959 | 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.
*/
function Ownable() public {
owner = msg.sender;
}... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
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.21+commit.dfe3193c | bzzr://faa64b5cc79c635a7463ad6c7a10e35175ab7bc4bea33f2b4ff07fa312497094 | {
"func_code_index": [
640,
821
]
} | 27,866 | |
Bidding | Bidding.sol | 0x9de9563e27c6aafcf907bacee733f83d50168959 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
emit Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://faa64b5cc79c635a7463ad6c7a10e35175ab7bc4bea33f2b4ff07fa312497094 | {
"func_code_index": [
513,
609
]
} | 27,867 | |
Bidding | Bidding.sol | 0x9de9563e27c6aafcf907bacee733f83d50168959 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
emit Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.21+commit.dfe3193c | bzzr://faa64b5cc79c635a7463ad6c7a10e35175ab7bc4bea33f2b4ff07fa312497094 | {
"func_code_index": [
693,
791
]
} | 27,868 | |
Bidding | Bidding.sol | 0x9de9563e27c6aafcf907bacee733f83d50168959 | Solidity | Bidding | contract Bidding is Pausable
{
struct Auction
{
uint128 highestBid;
address highestBidder;
uint40 timeEnd;
uint40 lastBidTime;
uint40 timeStart;
}
address public operatorAddress;
Auction[] public auctions;
// Allowed withdrawals of previo... | /// @title BlockchainCuties bidding auction
/// @author https://BlockChainArchitect.io | NatSpecSingleLine | withdraw | function withdraw() public {
uint amount = pendingReturns[msg.sender];
require (amount > 0);
// It is important to set this to zero because the recipient
// can call this function again as part of the receiving call
// before `send` returns.
totalReturns -= amount;
pendingReturns[... | /// Withdraw a bid that was overbid. | NatSpecSingleLine | v0.4.21+commit.dfe3193c | bzzr://faa64b5cc79c635a7463ad6c7a10e35175ab7bc4bea33f2b4ff07fa312497094 | {
"func_code_index": [
1516,
1982
]
} | 27,869 | |
VestingWallet | /contracts/DHold.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | DHold | contract DHold is ERC20, Ownable {
using EnumerableSet for EnumerableSet.AddressSet;
modifier lockSwap {
_inSwap = true;
_;
_inSwap = false;
}
modifier liquidityAdd {
_inLiquidityAdd = true;
_;
_inLiquidityAdd = false;
}
// Constants
uint25... | _reflect | function _reflect(address account, uint256 amount) internal {
require(account != address(0), "reflect from the zero address");
// from(pair) , to(this) , 100DHOld
_rawTransfer(account, address(this), amount);
totalReflected += amount;
emit Transfer(account, address(this), amount);
}
| // pair , 100 | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
10396,
10739
]
} | 27,870 | ||||
VestingWallet | /contracts/DHold.sol | 0x2446bf47798538a1606e7808106e4c3765494590 | Solidity | DHold | contract DHold is ERC20, Ownable {
using EnumerableSet for EnumerableSet.AddressSet;
modifier lockSwap {
_inSwap = true;
_;
_inSwap = false;
}
modifier liquidityAdd {
_inLiquidityAdd = true;
_;
_inLiquidityAdd = false;
}
// Constants
uint25... | _rawTransfer | function _rawTransfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "transfer from the zero address");
require(recipient != address(0), "transfer to the zero address");
uint256 senderBalance = balanceOf(sender);
require(senderBalance >= amount, "transfer am... | // modified from OpenZeppelin ERC20 | LineComment | v0.8.0+commit.c7dfd78e | {
"func_code_index": [
11905,
12441
]
} | 27,871 | ||||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSMath | contract DSMath {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x);
}
function sub(uint x, uint y) internal pure returns (uint z) {
require((z = x - y) <= x);
}
function mul(uint x, uint y) internal pure returns (uint z) {
requir... | rpow | function rpow(uint x, uint n) internal pure returns (uint z) {
z = n % 2 != 0 ? x : RAY;
for (n /= 2; n != 0; n /= 2) {
x = rmul(x, x);
if (n % 2 != 0) {
z = rmul(z, x);
}
}
}
| // This famous algorithm is called "exponentiation by squaring"
// and calculates x^n with x as fixed-point and n as regular unsigned.
//
// It's O(log n), instead of O(n) for naive repeated multiplication.
//
// These facts are why it works:
//
// If n is even, then x^n = (x^2)^(n/2).
// If n is odd, then x^n = x *... | LineComment | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
1905,
2177
]
} | 27,872 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | totalSupply | function totalSupply() public view returns (uint) {
return _supply;
}
| /**
* @dev Total number of tokens in existence
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
417,
505
]
} | 27,873 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | balanceOf | function balanceOf(address src) public view returns (uint) {
return _balances[src];
}
| /**
* @dev Gets the balance of the specified address.
* @param src The address to query the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
705,
809
]
} | 27,874 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | allowance | function allowance(address src, address guy) public view returns (uint) {
return _approvals[src][guy];
}
| /**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param src address The address which owns the funds.
* @param guy address The address which will spend the funds.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
1035,
1158
]
} | 27,875 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | transfer | function transfer(address dst, uint wad) public returns (bool) {
return transferFrom(msg.sender, dst, wad);
}
| /**
* @dev Transfer token for a specified address
* @param dst The address to transfer to.
* @param wad The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
1319,
1447
]
} | 27,876 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | transferFrom | function transferFrom(address src, address dst, uint wad)
public
returns (bool)
{
if (src != msg.sender) {
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
}
_balances[src] = sub(_balances[src], wad);
_balances[dst] = add(_balances[dst], wad);
emit Tr... | /**
* @dev Transfer tokens from one address to another
* @param src address The address which you want to send tokens from
* @param dst address The address which you want to transfer to
* @param wad uint256 the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
1723,
2137
]
} | 27,877 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | approve | function approve(address guy, uint wad) public returns (bool) {
_approvals[msg.sender][guy] = wad;
emit Approval(msg.sender, guy, wad);
return true;
}
| /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
2758,
2949
]
} | 27,878 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | increaseAllowance | function increaseAllowance(
address src,
uint256 wad
)
public
returns (bool)
{
require(src != address(0));
_approvals[src][msg.sender] = add(_approvals[src][msg.sender], wad);
emit Approval(msg.sender, src, _approvals[msg.sender][src]);
return true;
}
| /**
* @dev Increase the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param src The a... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
3396,
3701
]
} | 27,879 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | DSTokenBase | contract DSTokenBase is ERC20, DSMath {
uint256 _supply;
mapping (address => uint256) _balances;
mapping (address => mapping (address => uint256)) _approvals;
constructor(uint supply) public {
_balances[msg.sender] = supply... | decreaseAllowance | function decreaseAllowance(
address src,
uint256 wad
)
public
returns (bool)
{
require(src != address(0));
_approvals[src][msg.sender] = sub(_approvals[src][msg.sender], wad);
emit Approval(msg.sender, src, _approvals[msg.sender][src]);
return true;
}
| /**
* @dev Decrese the amount of tokens that an owner allowed to a spender.
* approve should be called when allowed_[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param src The ad... | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
4147,
4450
]
} | 27,880 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | TrueCoin | contract TrueCoin is DSTokenBase , DSStop {
string public symbol="TRC";
string public name="True Coin";
uint256 public decimals = 18; // Standard Token Precision
uint256 public initialSupply=1000000000000000000000000000;
address public burnAdmin;
constructor() public
DSTokenBa... | isAdmin | function isAdmin() public view returns(bool) {
return msg.sender == burnAdmin;
| /**
* @return true if `msg.sender` is the owner of the contract.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
691,
780
]
} | 27,881 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | TrueCoin | contract TrueCoin is DSTokenBase , DSStop {
string public symbol="TRC";
string public name="True Coin";
uint256 public decimals = 18; // Standard Token Precision
uint256 public initialSupply=1000000000000000000000000000;
address public burnAdmin;
constructor() public
DSTokenBa... | renounceOwnership | function renounceOwnership() public onlyAdmin {
burnAdmin = address(0);
}
| /**
* @dev Allows the current owner to relinquish control of the contract.
* @notice Renouncing to ownership will leave the contract without an owner.
* It will not be possible to call the functions with the `onlyOwner`
* modifier anymore.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
1047,
1131
]
} | 27,882 | |||
TrueCoin | TrueCoin.sol | 0x0c3ae89af1fd1d855379c99a270de5675d009c4e | Solidity | TrueCoin | contract TrueCoin is DSTokenBase , DSStop {
string public symbol="TRC";
string public name="True Coin";
uint256 public decimals = 18; // Standard Token Precision
uint256 public initialSupply=1000000000000000000000000000;
address public burnAdmin;
constructor() public
DSTokenBa... | burnfromAdmin | function burnfromAdmin(address guy, uint wad) public onlyAdmin {
require(guy != address(0));
_balances[guy] = sub(_balances[guy], wad);
_supply = sub(_supply, wad);
emit Burn(guy, wad);
emit Transfer(guy, address(0), wad);
}
| /**
* @dev Burns a specific amount of tokens from the target address
* @param guy address The address which you want to send tokens from
* @param wad uint256 The amount of token to be burned
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://d653052739d611eb67bb04e634b138a3338b1588ae2543842eac3703114e5313 | {
"func_code_index": [
2085,
2370
]
} | 27,883 | |||
AgroNest | AgroNest.sol | 0x65171746deb1d6eee256455f77c350eceda34ae2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title AgroNest
*/ | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
| /**
* @dev Multiplies two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://467e0afa42f1fa577a2096d8442c6270849abcd4dcf4560a4c68835d421d5b38 | {
"func_code_index": [
95,
302
]
} | 27,884 | |
AgroNest | AgroNest.sol | 0x65171746deb1d6eee256455f77c350eceda34ae2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title AgroNest
*/ | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
// uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return a / b;
}
| /**
* @dev Integer division of two numbers, truncating the quotient.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://467e0afa42f1fa577a2096d8442c6270849abcd4dcf4560a4c68835d421d5b38 | {
"func_code_index": [
392,
692
]
} | 27,885 | |
AgroNest | AgroNest.sol | 0x65171746deb1d6eee256455f77c350eceda34ae2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title AgroNest
*/ | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
| /**
* @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://467e0afa42f1fa577a2096d8442c6270849abcd4dcf4560a4c68835d421d5b38 | {
"func_code_index": [
812,
940
]
} | 27,886 | |
AgroNest | AgroNest.sol | 0x65171746deb1d6eee256455f77c350eceda34ae2 | Solidity | SafeMath | library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* ... | /**
* @title AgroNest
*/ | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
c = a + b;
assert(c >= a);
return c;
}
| /**
* @dev Adds two numbers, throws on overflow.
*/ | NatSpecMultiLine | v0.4.25+commit.59dbf8f1 | bzzr://467e0afa42f1fa577a2096d8442c6270849abcd4dcf4560a4c68835d421d5b38 | {
"func_code_index": [
1010,
1156
]
} | 27,887 | |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | 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.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
94,
154
]
} | 27,888 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | 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.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
237,
310
]
} | 27,889 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | 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.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
534,
616
]
} | 27,890 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | 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.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
895,
983
]
} | 27,891 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | 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.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
1647,
1726
]
} | 27,892 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | 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.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
2039,
2175
]
} | 27,893 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | name | function name() external view returns (string memory);
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
100,
159
]
} | 27,894 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the symbol of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
226,
287
]
} | 27,895 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | Solidity | IERC20Metadata | interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns t... | /**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/ | NatSpecMultiLine | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the decimals places of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
363,
418
]
} | 27,896 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | name | function name() public view virtual override returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
776,
881
]
} | 27,897 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | symbol | function symbol() public view virtual override returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
995,
1104
]
} | 27,898 |
BurnableToken | BurnableToken.sol | 0xa1306635b47c5f6745f1147697d771049bec1e0b | Solidity | ERC20 | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our... | NatSpecMultiLine | decimals | function decimals() public view virtual override returns (uint8) {
return 18;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is... | NatSpecMultiLine | v0.8.9+commit.e5eed63a | MIT | ipfs://4cfbb67ef01efbee07c637a96a84f9ec8a71b6764fa9272a65bd7cefc0494801 | {
"func_code_index": [
1738,
1836
]
} | 27,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.