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
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 6681, 7064 ] }
20,400
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 7391, 7814 ] }
20,401
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 8249, 8600 ] }
20,402
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 8927, 9022 ] }
20,403
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private ...
/** * @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
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 9620, 9717 ] }
20,404
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
burn
function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); }
/** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 161, 257 ] }
20,405
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`...
/** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */
NatSpecMultiLine
burnFrom
function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); }
/** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 571, 871 ] }
20,406
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
Pausable
contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev I...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
paused
function paused() public view returns (bool) { return _paused; }
/** * @dev Returns true if the contract is paused, and false otherwise. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 531, 614 ] }
20,407
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
Pausable
contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev I...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
_pause
function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); }
/** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 1321, 1444 ] }
20,408
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
Pausable
contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev I...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
_unpause
function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); }
/** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 1580, 1705 ] }
20,409
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20Pausable
abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._...
/** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); }
/** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 200, 443 ] }
20,410
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20PresetMinterPauser
contract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the...
/** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * differen...
NatSpecMultiLine
mint
function mint(address to, uint256 amount) public virtual { require(hasRole(MINTER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have minter role to mint"); _mint(to, amount); }
/** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 857, 1067 ] }
20,411
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20PresetMinterPauser
contract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the...
/** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * differen...
NatSpecMultiLine
pause
function pause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to pause"); _pause(); }
/** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 1276, 1453 ] }
20,412
GXC
GXC.sol
0x2e93fe8d550a7b7e7b2e561cd45cebccbaa79358
Solidity
ERC20PresetMinterPauser
contract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the...
/** * @dev {ERC20} token, including: * * - ability for holders to burn (destroy) their tokens * - a minter role that allows for token minting (creation) * - a pauser role that allows to stop all token transfers * * This contract uses {AccessControl} to lock permissioned functions using the * differen...
NatSpecMultiLine
unpause
function unpause() public virtual { require(hasRole(PAUSER_ROLE, _msgSender()), "ERC20PresetMinterPauser: must have pauser role to unpause"); _unpause(); }
/** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */
NatSpecMultiLine
v0.6.2+commit.bacdbe57
MIT
ipfs://d393da844c50d68abd35a268ce0235dd1f8aeebf68d479eb759fe5973443401a
{ "func_code_index": [ 1666, 1849 ] }
20,413
DoggyDAO
DoggyDAO.sol
0xec8e3ef7e3aea604009a345686cb82f77a0c7b24
Solidity
DoggyDAO
contract DoggyDAO is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool)...
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://7bfaa73d20f6b59bdc95576f038fc4d4bb1a558b317a327c986745e0caefd960
{ "func_code_index": [ 9900, 9934 ] }
20,414
DoggyDAO
DoggyDAO.sol
0xec8e3ef7e3aea604009a345686cb82f77a0c7b24
Solidity
DoggyDAO
contract DoggyDAO is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool)...
_tokenTransfer
function _tokenTransfer( address sender, address recipient, uint256 amount, bool takeFee ) private { if (!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _is...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.9+commit.e5eed63a
None
ipfs://7bfaa73d20f6b59bdc95576f038fc4d4bb1a558b317a327c986745e0caefd960
{ "func_code_index": [ 19742, 20585 ] }
20,415
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
addVaultHandler
function addVaultHandler(address _vaultHandler) external onlyOwner { vaultHandlers[_vaultHandler] = true; emit VaultHandlerAdded(msg.sender, _vaultHandler); }
/** * @notice Adds a new address as a vault * @param _vaultHandler address of a contract with permissions to mint and burn tokens * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 2400, 2570 ] }
20,416
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
removeVaultHandler
function removeVaultHandler(address _vaultHandler) external onlyOwner { vaultHandlers[_vaultHandler] = false; emit VaultHandlerRemoved(msg.sender, _vaultHandler); }
/** * @notice Removes an address as a vault * @param _vaultHandler address of the contract to be removed as vault * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 2733, 2909 ] }
20,417
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
mint
function mint(address _account, uint256 _amount) external onlyVault { _mint(_account, _amount); }
/** * @notice Mints TCAP Tokens * @param _account address of the receiver of tokens * @param _amount uint of tokens to mint * @dev Only vault can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 3085, 3190 ] }
20,418
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
burn
function burn(address _account, uint256 _amount) external onlyVault { _burn(_account, _amount); }
/** * @notice Burns TCAP Tokens * @param _account address of the account which is burning tokens. * @param _amount uint of tokens to burn * @dev Only vault can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 3380, 3485 ] }
20,419
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
setCap
function setCap(uint256 _cap) external onlyOwner { cap = _cap; emit NewCap(msg.sender, _cap); }
/** * @notice Sets maximum value the total supply of TCAP can have * @param _cap value * @dev When capEnabled is true, mint is not allowed to issue tokens that would increase the total supply above or equal the specified capacity. * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 3768, 3875 ] }
20,420
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
enableCap
function enableCap(bool _enable) external onlyOwner { capEnabled = _enable; emit NewCapEnabled(msg.sender, _enable); }
/** * @notice Enables or Disables the Total Supply Cap. * @param _enable value * @dev When capEnabled is true, minting will not be allowed above the max capacity. It can exist a supply above the cap, but it prevents minting above the cap. * @dev Only owner can call it */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 4166, 4296 ] }
20,421
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
supportsInterface
function supportsInterface(bytes4 _interfaceId) external pure override returns (bool) { return (_interfaceId == _INTERFACE_ID_TCAP || _interfaceId == _INTERFACE_ID_ERC165); }
/** * @notice ERC165 Standard for support of interfaces * @param _interfaceId bytes of interface * @return bool */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 4427, 4633 ] }
20,422
ERC20VaultHandler
contracts/TCAP.sol
0x56549e2fe1d9f0a9556f92494d04f263a5011a00
Solidity
TCAP
contract TCAP is ERC20, Ownable, IERC165 { /// @notice Open Zeppelin libraries using SafeMath for uint256; /// @notice if enabled TCAP can't be minted if the total supply is above or equal the cap value bool public capEnabled = false; /// @notice Maximum value the total supply of TCAP uint256 public cap; ...
/** * @title Total Market Cap Token * @author Cryptex.finance * @notice ERC20 token on the Ethereum Blockchain that provides total exposure to the cryptocurrency sector. */
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer( address _from, address _to, uint256 _amount ) internal virtual override { super._beforeTokenTransfer(_from, _to, _amount); require( _to != address(this), "TCAP::transfer: can't transfer to TCAP contract" ); if (_from == address(0) && capEnabled) { // When minti...
/** * @notice executes before each token transfer or mint * @param _from address * @param _to address * @param _amount value to transfer * @dev See {ERC20-_beforeTokenTransfer}. * @dev minted tokens must not cause the total supply to go over the cap. * @dev Reverts if the to address is equal to token address */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
{ "func_code_index": [ 4974, 5448 ] }
20,423
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
IERC20Upgradeable
interface IERC20Upgradeable { /** * @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.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 105, 165 ] }
20,424
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
IERC20Upgradeable
interface IERC20Upgradeable { /** * @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.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 248, 321 ] }
20,425
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
IERC20Upgradeable
interface IERC20Upgradeable { /** * @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.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 545, 627 ] }
20,426
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
IERC20Upgradeable
interface IERC20Upgradeable { /** * @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.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 906, 994 ] }
20,427
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
IERC20Upgradeable
interface IERC20Upgradeable { /** * @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.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 1660, 1739 ] }
20,428
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
IERC20Upgradeable
interface IERC20Upgradeable { /** * @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.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 2052, 2188 ] }
20,429
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
XoloMetaverse
contract XoloMetaverse is Context, IERC20Upgradeable { // Ownership moved to in-contract for customizability. address private _owner; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => bool) lpPairs; uint256 private timeSinceLa...
owner
function owner() public view returns (address) { return _owner; }
//=============================================================================================================== //=============================================================================================================== //==========================================================================================...
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 8574, 8658 ] }
20,430
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
XoloMetaverse
contract XoloMetaverse is Context, IERC20Upgradeable { // Ownership moved to in-contract for customizability. address private _owner; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => bool) lpPairs; uint256 private timeSinceLa...
totalSupply
function totalSupply() external view override returns (uint256) { return _tTotal; }
//=============================================================================================================== //=============================================================================================================== //==========================================================================================...
LineComment
v0.8.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 10023, 10111 ] }
20,431
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
XoloMetaverse
contract XoloMetaverse is Context, IERC20Upgradeable { // Ownership moved to in-contract for customizability. address private _owner; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => bool) lpPairs; uint256 private timeSinceLa...
recoverTokens
function recoverTokens(address tokenAddress, uint256 amountToRecover) external onlyOwner { IERC20Upgradeable token = IERC20Upgradeable(tokenAddress); uint256 balance = token.balanceOf(address(this)); require(balance >= amountToRecover, "Not Enough Tokens in contract to recover"); if(amountToRecove...
/** * @dev recovers any tokens stuck in Contract's balance * NOTE! if ownership is renounced then it will not work */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 29186, 29598 ] }
20,432
XoloMetaverse
XoloMetaverse.sol
0xc1122358ab7c92fc00e5ca01215bed394dae8fd7
Solidity
XoloMetaverse
contract XoloMetaverse is Context, IERC20Upgradeable { // Ownership moved to in-contract for customizability. address private _owner; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => bool) lpPairs; uint256 private timeSinceLa...
recoverETH
function recoverETH() external onlyOwner { address payable recipient = payable(msg.sender); if(address(this).balance > 0) recipient.transfer(address(this).balance); }
/** * @dev recovers any ETH stuck in Contract's balance * NOTE! if ownership is renounced then it will not work */
NatSpecMultiLine
v0.8.10+commit.fc410830
MIT
ipfs://95c130c38747e55f17fc4a6929096eed56b8ec78740df623bfcd7872388e0295
{ "func_code_index": [ 29745, 29952 ] }
20,433
SenbitTokenSBIT
SenbitTokenSBIT.sol
0xf29e2bcde0ed59252df2f4b4f3867599dd06b687
Solidity
SenbitTokenSBIT
contract SenbitTokenSBIT{ /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (a...
SenbitTokenSBIT
function SenbitTokenSBIT() public{ balanceOf[msg.sender] = 300000000 * (10**18); // Give the creator all initial tokens totalSupply = 300000000 * (10**18); // Update total supply name = "Senbit Token Exchange"; // Set the name for display purposes symbol = "SBIT"; ...
/* Initializes contract with initial supply tokens to the creator of the contract */
Comment
v0.4.25+commit.59dbf8f1
bzzr://3630ba4f1ba1920cf04e68a84612e513c474781d8765877c084fe692d97f75a1
{ "func_code_index": [ 818, 1313 ] }
20,434
SenbitTokenSBIT
SenbitTokenSBIT.sol
0xf29e2bcde0ed59252df2f4b4f3867599dd06b687
Solidity
SenbitTokenSBIT
contract SenbitTokenSBIT{ /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (a...
_transfer
function _transfer(address _from, address _to, uint _value) internal { require (_to != 0x0); // Prevent transfer to 0x0 address. Use burn() instead require (balanceOf[_from] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value > balan...
/* Internal transfer, only can be called by this contract */
Comment
v0.4.25+commit.59dbf8f1
bzzr://3630ba4f1ba1920cf04e68a84612e513c474781d8765877c084fe692d97f75a1
{ "func_code_index": [ 1382, 1983 ] }
20,435
SenbitTokenSBIT
SenbitTokenSBIT.sol
0xf29e2bcde0ed59252df2f4b4f3867599dd06b687
Solidity
SenbitTokenSBIT
contract SenbitTokenSBIT{ /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (a...
transfer
function transfer(address _to, uint256 _value) public{ _transfer(msg.sender, _to, _value); }
/// @notice Send `_value` tokens to `_to` from your account /// @param _to The address of the recipient /// @param _value the amount to send
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://3630ba4f1ba1920cf04e68a84612e513c474781d8765877c084fe692d97f75a1
{ "func_code_index": [ 2142, 2253 ] }
20,436
SenbitTokenSBIT
SenbitTokenSBIT.sol
0xf29e2bcde0ed59252df2f4b4f3867599dd06b687
Solidity
SenbitTokenSBIT
contract SenbitTokenSBIT{ /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (a...
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; }
/// @notice Send `_value` tokens to `_to` in behalf of `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value the amount to send
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://3630ba4f1ba1920cf04e68a84612e513c474781d8765877c084fe692d97f75a1
{ "func_code_index": [ 2463, 2766 ] }
20,437
SenbitTokenSBIT
SenbitTokenSBIT.sol
0xf29e2bcde0ed59252df2f4b4f3867599dd06b687
Solidity
SenbitTokenSBIT
contract SenbitTokenSBIT{ /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (a...
approve
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/// @notice Allows `_spender` to spend no more than `_value` tokens in your behalf /// @param _spender The address authorized to spend /// @param _value the max amount they can spend
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://3630ba4f1ba1920cf04e68a84612e513c474781d8765877c084fe692d97f75a1
{ "func_code_index": [ 2967, 3183 ] }
20,438
SenbitTokenSBIT
SenbitTokenSBIT.sol
0xf29e2bcde0ed59252df2f4b4f3867599dd06b687
Solidity
SenbitTokenSBIT
contract SenbitTokenSBIT{ /* Public variables of the token */ string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; mapping (address => mapping (a...
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 totalSup...
/// @notice Remove `_value` tokens from the system irreversibly /// @param _value the amount of money to burn
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
bzzr://3630ba4f1ba1920cf04e68a84612e513c474781d8765877c084fe692d97f75a1
{ "func_code_index": [ 3308, 3712 ] }
20,439
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
// ###### // ,,,((((((((((# // ,. (((((((((# // ,.... .((((((# // *.....#####......((# // *,,,....######......* // ##((((**,,,,,,,...##.....,** // #####(((...
LineComment
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 165, 238 ] }
20,440
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
// ###### // ,,,((((((((((# // ,. (((((((((# // ,.... .((((((# // *.....#####......((# // *,,,....######......* // ##((((**,,,,,,,...##.....,** // #####(((...
LineComment
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.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 462, 544 ] }
20,441
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
// ###### // ,,,((((((((((# // ,. (((((((((# // ,.... .((((((# // *.....#####......((# // *,,,....######......* // ##((((**,,,,,,,...##.....,** // #####(((...
LineComment
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.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 823, 911 ] }
20,442
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
// ###### // ,,,((((((((((# // ,. (((((((((# // ,.... .((((((# // *.....#####......((# // *,,,....######......* // ##((((**,,,,,,,...##.....,** // #####(((...
LineComment
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.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 1575, 1654 ] }
20,443
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
// ###### // ,,,((((((((((# // ,. (((((((((# // ,.... .((((((# // *.....#####......((# // *,,,....######......* // ##((((**,,,,,,,...##.....,** // #####(((...
LineComment
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.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 1967, 2069 ] }
20,444
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 259, 445 ] }
20,445
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 723, 864 ] }
20,446
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 1162, 1359 ] }
20,447
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 1613, 2089 ] }
20,448
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 2560, 2697 ] }
20,449
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 3188, 3471 ] }
20,450
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 3931, 4066 ] }
20,451
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 4546, 4717 ] }
20,452
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 606, 1230 ] }
20,453
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 2160, 2562 ] }
20,454
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 3318, 3496 ] }
20,455
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 3721, 3922 ] }
20,456
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 4292, 4523 ] }
20,457
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 4774, 5095 ] }
20,458
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 488, 572 ] }
20,459
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 1131, 1284 ] }
20,460
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); ...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 1434, 1683 ] }
20,461
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
ISS
contract ISS is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcludedFromFee; uint256 private _...
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount) private { if (_isExcludedFromFee[sender] || _isExcludedFromFee[recipient]) { removeAllFee(); } (uint256 tTransferAmount, uint256 tFee) = _getValues(amount); _balances[sender] = _balances[sender].sub(amount); _...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 5012, 5638 ] }
20,462
ISS
ISS.sol
0xcb6c2ff1e9e2f54afeefe4ebd5ef5e6b8a18c720
Solidity
ISS
contract ISS is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => bool) private _isExcludedFromFee; uint256 private _...
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.8.6+commit.11564f7e
Apache-2.0
ipfs://b8e3b8eab926c0e6e7d68989c7eb59b7a3535a68b4da3fd098f820b8bc49e372
{ "func_code_index": [ 5697, 5731 ] }
20,463
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
usr
function usr(uint256 _id) external view returns (address) { return awards[_id].usr; }
// Maximum per-second issuance token rate // Getters to access only to the value desired
LineComment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 1719, 1823 ] }
20,464
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
file
function file(bytes32 what, uint256 data) external auth lock { if (what == "cap") cap = data; // The maximum amount of tokens that can be streamed per-second per vest else revert("DssVest/file-unrecognized-param"); emit File(what, data); }
/* @dev (Required) Set the per-second token issuance rate. @param what The tag of the value to change (ex. bytes32("cap")) @param data The value to update (ex. cap of 1000 tokens/yr == 1000*WAD/365 days) */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 2992, 3285 ] }
20,465
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
create
function create(address _usr, uint256 _tot, uint256 _bgn, uint256 _tau, uint256 _eta, address _mgr) external auth lock returns (uint256 id) { require(_usr != address(0), "DssVest/invalid-user"); require(_tot > 0, "DssVest/no-vest-total-amount"); req...
/* @dev Govanance adds a vesting contract @param _usr The recipient of the reward @param _tot The total amount of the vest @param _bgn The starting timestamp of the vest @param _tau The duration of the vest (in seconds) @param _eta The cliff duration in seconds (i.e. 1 years) @param _mgr An optional manag...
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 4628, 5898 ] }
20,466
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
vest
function vest(uint256 _id) external { _vest(_id, type(uint256).max); }
/* @dev Anyone (or only owner of a vesting contract if restricted) calls this to claim all available rewards @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 6087, 6176 ] }
20,467
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
vest
function vest(uint256 _id, uint256 _maxAmt) external { _vest(_id, _maxAmt); }
/* @dev Anyone (or only owner of a vesting contract if restricted) calls this to claim rewards @param _id The id of the vesting contract @param _maxAmt The maximum amount to vest */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 6402, 6498 ] }
20,468
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
_vest
function _vest(uint256 _id, uint256 _maxAmt) internal lock { Award memory _award = awards[_id]; require(_award.usr != address(0), "DssVest/invalid-award"); require(_award.res == 0 || _award.usr == msg.sender, "DssVest/only-user-can-claim"); uint256 amt = unpaid(block.timestamp, _award.bgn, _award.cl...
/* @dev Anyone (or only owner of a vesting contract if restricted) calls this to claim rewards @param _id The id of the vesting contract @param _maxAmt The maximum amount to vest */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 6724, 7266 ] }
20,469
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
accrued
function accrued(uint256 _id) external view returns (uint256 amt) { Award memory _award = awards[_id]; require(_award.usr != address(0), "DssVest/invalid-award"); amt = accrued(block.timestamp, _award.bgn, _award.fin, _award.tot); }
/* @dev amount of tokens accrued, not accounting for tokens paid @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 7407, 7676 ] }
20,470
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
accrued
function accrued(uint256 _time, uint48 _bgn, uint48 _fin, uint128 _tot) internal pure returns (uint256 amt) { if (_time < _bgn) { amt = 0; } else if (_time >= _fin) { amt = _tot; } else { amt = mul(_tot, sub(_time, _bgn)) / sub(_fin, _bgn); // 0 <= amt < _award.tot } }
/* @dev amount of tokens accrued, not accounting for tokens paid @param _time the timestamp to perform the calculation @param _bgn the start time of the contract @param _end the end time of the contract @param _amt the total amount of the contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 7988, 8342 ] }
20,471
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
unpaid
function unpaid(uint256 _id) external view returns (uint256 amt) { Award memory _award = awards[_id]; require(_award.usr != address(0), "DssVest/invalid-award"); amt = unpaid(block.timestamp, _award.bgn, _award.clf, _award.fin, _award.tot, _award.rxd); }
/* @dev return the amount of vested, claimable GEM for a given ID @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 8484, 8775 ] }
20,472
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
unpaid
function unpaid(uint256 _time, uint48 _bgn, uint48 _clf, uint48 _fin, uint128 _tot, uint128 _rxd) internal pure returns (uint256 amt) { amt = _time < _clf ? 0 : sub(accrued(_time, _bgn, _fin, _tot), _rxd); }
/* @dev amount of tokens accrued, not accounting for tokens paid @param _time the timestamp to perform the calculation @param _bgn the start time of the contract @param _clf the timestamp of the cliff @param _end the end time of the contract @param _tot the total amount of the contract @param _rxd th...
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 9186, 9412 ] }
20,473
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
restrict
function restrict(uint256 _id) external lock { address usr_ = awards[_id].usr; require(usr_ != address(0), "DssVest/invalid-award"); require(wards[msg.sender] == 1 || usr_ == msg.sender, "DssVest/not-authorized"); awards[_id].res = 1; emit Restrict(_id); }
/* @dev Allows governance or the owner to restrict vesting to the owner only @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 9565, 9876 ] }
20,474
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
unrestrict
function unrestrict(uint256 _id) external lock { address usr_ = awards[_id].usr; require(usr_ != address(0), "DssVest/invalid-award"); require(wards[msg.sender] == 1 || usr_ == msg.sender, "DssVest/not-authorized"); awards[_id].res = 0; emit Unrestrict(_id); }
/* @dev Allows governance or the owner to enable permissionless vesting @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 10024, 10339 ] }
20,475
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
yank
function yank(uint256 _id) external { _yank(_id, block.timestamp); }
/* @dev Allows governance or the manager to remove a vesting contract immediately @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 10497, 10584 ] }
20,476
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
yank
function yank(uint256 _id, uint256 _end) external { _yank(_id, _end); }
/* @dev Allows governance or the manager to remove a vesting contract at a future time @param _id The id of the vesting contract @param _end A scheduled time to end the vest */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 10802, 10892 ] }
20,477
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
_yank
function _yank(uint256 _id, uint256 _end) internal lock { require(wards[msg.sender] == 1 || awards[_id].mgr == msg.sender, "DssVest/not-authorized"); Award memory _award = awards[_id]; require(_award.usr != address(0), "DssVest/invalid-award"); if (_end < block.timestamp) { _end = block.tim...
/* @dev Allows governance or the manager to end pre-maturely a vesting contract @param _id The id of the vesting contract @param _end A scheduled time to end the vest */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 11103, 12273 ] }
20,478
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
move
function move(uint256 _id, address _dst) external lock { require(awards[_id].usr == msg.sender, "DssVest/only-user-can-move"); require(_dst != address(0), "DssVest/zero-address-invalid"); awards[_id].usr = _dst; emit Move(_id, _dst); }
/* @dev Allows owner to move a contract to a different address @param _id The id of the vesting contract @param _dst The address to send ownership of the contract to */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 12483, 12764 ] }
20,479
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
valid
function valid(uint256 _id) external view returns (bool isValid) { isValid = awards[_id].rxd < awards[_id].tot; }
/* @dev Return true if a contract is valid @param _id The id of the vesting contract */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 12883, 13015 ] }
20,480
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVest
abstract contract DssVest { uint256 public constant TWENTY_YEARS = 20 * 365 days; uint256 internal locked; event Rely(address indexed usr); event Deny(address indexed usr); event Init(uint256 indexed id, address indexed usr); event Vest(uint256 indexed id, uint256 amt); event...
pay
function pay(address _guy, uint256 _amt) virtual internal;
/* @dev Override this to implement payment logic. @param _guy The payment target. @param _amt The payment amount. [units are implementation-specific] */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 13208, 13271 ] }
20,481
DssVestMintable
DssVestMintable.sol
0x0fc8d4f2151453ca0ca56f07359049c8f07997bd
Solidity
DssVestMintable
contract DssVestMintable is DssVest { MintLike public immutable gem; /* @dev This contract must be authorized to 'mint' on the token @param _gem The contract address of the mintable token */ constructor(address _gem) public DssVest() { require(_gem != address(0), "DssV...
pay
function pay(address _guy, uint256 _amt) override internal { gem.mint(_guy, _amt); }
/* @dev Override pay to handle mint logic @param _guy The recipient of the minted token @param _amt The amount of token units to send to the _guy */
Comment
v0.6.12+commit.27d51765
Unknown
ipfs://54d4742185b92a670d9813d5c44df6094b2628e988f3db3ed1a15adfe7f2d24a
{ "func_code_index": [ 576, 679 ] }
20,482
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
/* Team approves contract for the claim pool amount User approves contract for their token total user calls the claimTokens function on the contract */
Comment
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 163, 236 ] }
20,483
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
/* Team approves contract for the claim pool amount User approves contract for their token total user calls the claimTokens function on the contract */
Comment
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.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 460, 560 ] }
20,484
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
/* Team approves contract for the claim pool amount User approves contract for their token total user calls the claimTokens function on the contract */
Comment
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.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 839, 954 ] }
20,485
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
/* Team approves contract for the claim pool amount User approves contract for their token total user calls the claimTokens function on the contract */
Comment
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.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 1618, 1697 ] }
20,486
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipien...
/* Team approves contract for the claim pool amount User approves contract for their token total user calls the claimTokens function on the contract */
Comment
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.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 2010, 2146 ] }
20,487
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 606, 1252 ] }
20,488
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{value: amount}(""); re...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 2182, 2656 ] }
20,489
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 3412, 3615 ] }
20,490
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 3840, 4075 ] }
20,491
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 4445, 4806 ] }
20,492
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); return _functionCallWithValue(target...
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 5057, 5458 ] }
20,493
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 259, 445 ] }
20,494
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 723, 864 ] }
20,495
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 1162, 1393 ] }
20,496
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 1647, 2123 ] }
20,497
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 2594, 2731 ] }
20,498
InfinityClaim
InfinityClaim.sol
0x483dae820adfa46dd9fa96801d15ec1528d997ec
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://d899e18ee52102a5791c4659e77ac551a3a56250258fd577e71c395c53dae418
{ "func_code_index": [ 3222, 3539 ] }
20,499