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
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 1942, 2047 ] }
7,800
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 2105, 2229 ] }
7,801
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 2437, 2617 ] }
7,802
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 2675, 2831 ] }
7,803
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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 spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 2973, 3147 ] }
7,804
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 3624, 3950 ] }
7,805
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 4354, 4577 ] }
7,806
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 5075, 5349 ] }
7,807
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sen...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 5834, 6378 ] }
7,808
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 6655, 7038 ] }
7,809
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 7366, 7789 ] }
7,810
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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 internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 8222, 8573 ] }
7,811
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 8900, 8995 ] }
7,812
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 9593, 9690 ] }
7,813
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Dest...
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 196, 292 ] }
7,814
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
ERC20Burnable
abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Dest...
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 606, 906 ] }
7,815
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
Pausable
abstract 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 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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 531, 614 ] }
7,816
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
Pausable
abstract 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 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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 1321, 1444 ] }
7,817
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
Pausable
abstract 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 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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 1580, 1705 ] }
7,818
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 200, 443 ] }
7,819
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 497, 581 ] }
7,820
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 1139, 1292 ] }
7,821
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 1442, 1691 ] }
7,822
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
CsfERC20
contract CsfERC20 is Context, AccessControl, Ownable, ERC20Burnable, ERC20Pausable { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROL...
/** * @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
transferOwnership
function transferOwnership(address newOwner) public override onlyOwner { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); grantRole(DEFAULT_ADMIN_ROLE, newOwner); grantRole(MINTER_ROLE, newOwner); grantRole(PAUSER_ROLE, newOwner); revokeRole(MINTER_ROLE, _msgSender()); revokeRole(PAUSER_ROLE,...
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. * force setup DEFAULT_ADMIN_ROLE to owner, in case him has renounced DEFAULT_ADMIN_ROLE * beacuse he need to have almost DEFAULT_ADMIN_ROLE role to grant all role to the newOwner * Revoke a...
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 1366, 1836 ] }
7,823
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
CsfERC20
contract CsfERC20 is Context, AccessControl, Ownable, ERC20Burnable, ERC20Pausable { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROL...
/** * @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
renounceOwnership
function renounceOwnership() public pure override { revert("CsfERC20: renounceOwnership function was disabled; please use transferOwnership"); }
/** * @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.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 2182, 2345 ] }
7,824
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
CsfERC20
contract CsfERC20 is Context, AccessControl, Ownable, ERC20Burnable, ERC20Pausable { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROL...
/** * @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 onlyMinter { _mint(to, amount); }
/** * @dev Creates `amount` new tokens for `to`. * * See {ERC20-_mint}. * * Requirements: * * - the caller must have the `MINTER_ROLE`. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 2768, 2877 ] }
7,825
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
CsfERC20
contract CsfERC20 is Context, AccessControl, Ownable, ERC20Burnable, ERC20Pausable { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROL...
/** * @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 onlyPauser { _pause();
/** * @dev Pauses all token transfers. * * See {ERC20Pausable} and {Pausable-_pause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 3314, 3390 ] }
7,826
xTSM
xTSM.sol
0xf330c5d3ff3806298da095d8c8067c74b2994dbf
Solidity
CsfERC20
contract CsfERC20 is Context, AccessControl, Ownable, ERC20Burnable, ERC20Pausable { using SafeMath for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); /** * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROL...
/** * @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 onlyPauser { _unpause(); }
/** * @dev Unpauses all token transfers. * * See {ERC20Pausable} and {Pausable-_unpause}. * * Requirements: * * - the caller must have the `PAUSER_ROLE`. */
NatSpecMultiLine
v0.7.5+commit.eb77ed08
MIT
ipfs://1f4c05d0344ba392163709f98a7a8ae3f25800bd65a348778ed89d9471f61d86
{ "func_code_index": [ 3603, 3682 ] }
7,827
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view r...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 104, 168 ] }
7,828
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view r...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 261, 338 ] }
7,829
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view r...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 584, 670 ] }
7,830
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view r...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 971, 1063 ] }
7,831
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view r...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 1770, 1853 ] }
7,832
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view r...
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 2194, 2300 ] }
7,833
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 290, 496 ] }
7,834
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 805, 958 ] }
7,835
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 1287, 1504 ] }
7,836
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 1789, 2309 ] }
7,837
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 2817, 2966 ] }
7,838
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 3494, 3801 ] }
7,839
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 4298, 4445 ] }
7,840
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 4962, 5149 ] }
7,841
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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. * * Amon...
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 658, 1322 ] }
7,842
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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. * * Amon...
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 2301, 2727 ] }
7,843
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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. * * Amon...
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 3538, 3726 ] }
7,844
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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. * * Amon...
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 3970, 4183 ] }
7,845
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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. * * Amon...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 4587, 4830 ] }
7,846
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
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. * * Amon...
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 5100, 5437 ] }
7,847
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the ...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 622, 718 ] }
7,848
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the ...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 1324, 1493 ] }
7,849
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the ...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 1656, 1925 ] }
7,850
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the ...
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = now + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 2109, 2352 ] }
7,851
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the ...
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(now > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 2431, 2753 ] }
7,852
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
GainXi
contract GainXi 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; ...
// Contract implementation
LineComment
manualSwap
function manualSwap() external onlyOwner() { uint256 contractBalance = balanceOf(address(this)); swapTokensForEth(contractBalance); }
// We are exposing these functions to be able to manual swap and send // in case the token is highly valued and 5M becomes too much
LineComment
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 12324, 12501 ] }
7,853
GainXi
GainXi.sol
0x644653368c9732b27d2f0290ded71e1784575fe4
Solidity
GainXi
contract GainXi 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; ...
// Contract implementation
LineComment
//to recieve ETH from uniswapV2Router when swaping
LineComment
v0.6.12+commit.27d51765
None
ipfs://623cb35c431101b5fad01b785f47b35482b11bc7b65de4ee9075e5e6f5ca04df
{ "func_code_index": [ 16872, 16910 ] }
7,854
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setRewardsAmount
function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint(getRewardsAmountKey(_property), _value); }
// RewardsAmount
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 202, 422 ] }
7,855
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setCumulativePrice
function setCumulativePrice(address _property, uint256 _value) external { // The previously used function // This function is only used in testing addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint(getCumulativePriceKey(_property), _value); }
// CumulativePrice
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 780, 1083 ] }
7,856
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setWithdrawalLimitTotal
function setWithdrawalLimitTotal( address _property, address _user, uint256 _value ) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint( getWithdrawalLimitTotalKey(_property, _user), _value ); }
// WithdrawalLimitTotal
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 1454, 1736 ] }
7,857
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setWithdrawalLimitBalance
function setWithdrawalLimitBalance( address _property, address _user, uint256 _value ) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint( getWithdrawalLimitBalanceKey(_property, _user), _value ); }
// WithdrawalLimitBalance
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 2203, 2489 ] }
7,858
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setLastWithdrawalPrice
function setLastWithdrawalPrice( address _property, address _user, uint256 _value ) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint( getLastWithdrawalPriceKey(_property, _user), _value ); }
//LastWithdrawalPrice
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 2960, 3240 ] }
7,859
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setPendingWithdrawal
function setPendingWithdrawal( address _property, address _user, uint256 _value ) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint( getPendingWithdrawalKey(_property, _user), _value ); }
//PendingWithdrawal
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 3697, 3973 ] }
7,860
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setLastCumulativeGlobalHoldersPrice
function setLastCumulativeGlobalHoldersPrice( address _property, address _user, uint256 _value ) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint( getLastCumulativeGlobalHoldersPriceKey(_property, _user), _value ); }
//LastCumulativeGlobalHoldersPrice
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 4415, 4721 ] }
7,861
WithdrawMigration
contracts/src/withdraw/WithdrawStorage.sol
0xfe11597d2b26f1aa63fb8ac33ee86915cb466e5d
Solidity
WithdrawStorage
contract WithdrawStorage is UsingStorage, UsingConfig, UsingValidator { // solium-disable-next-line no-empty-blocks constructor(address _config) public UsingConfig(_config) {} // RewardsAmount function setRewardsAmount(address _property, uint256 _value) external { addressValidator().validateAddress(msg.sen...
setLastCumulativeHoldersReward
function setLastCumulativeHoldersReward( address _property, address _user, uint256 _value ) external { addressValidator().validateAddress(msg.sender, config().withdraw()); eternalStorage().setUint( getLastCumulativeHoldersRewardKey(_property, _user), _value ); }
//LastCumulativeHoldersReward
LineComment
v0.5.17+commit.d19bba13
MPL-2.0
bzzr://667b5de3a803aaac8684108683c8810e13256a965db08b51f2f62d7cb8b8b153
{ "func_code_index": [ 5263, 5559 ] }
7,862
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 606, 1230 ] }
7,863
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 2160, 2562 ] }
7,864
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 3318, 3496 ] }
7,865
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 3721, 3922 ] }
7,866
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 4292, 4523 ] }
7,867
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 4774, 5095 ] }
7,868
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 94, 154 ] }
7,869
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 237, 310 ] }
7,870
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 534, 616 ] }
7,871
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 895, 983 ] }
7,872
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 1647, 1726 ] }
7,873
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 2039, 2141 ] }
7,874
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 259, 445 ] }
7,875
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 723, 864 ] }
7,876
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 1162, 1359 ] }
7,877
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 1613, 2089 ] }
7,878
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 2560, 2697 ] }
7,879
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 3188, 3471 ] }
7,880
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 3931, 4066 ] }
7,881
SBRT
SBRT.sol
0x606ce698aea1dca5a2627a4583da13a340667f09
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://facae0a1a729043456bb22a044ec06e35f23a190b43928bd9b0930bb26b90793
{ "func_code_index": [ 4546, 4717 ] }
7,882
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (addres...
/* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending ...
Comment
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 265, 368 ] }
7,883
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 94, 154 ] }
7,884
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 237, 310 ] }
7,885
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 534, 616 ] }
7,886
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 895, 983 ] }
7,887
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1647, 1726 ] }
7,888
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 2039, 2141 ] }
7,889
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 251, 437 ] }
7,890
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 707, 848 ] }
7,891
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1180, 1377 ] }
7,892
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 1623, 2099 ] }
7,893
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 2562, 2699 ] }
7,894
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; ...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 3224, 3574 ] }
7,895
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 4026, 4161 ] }
7,896
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 4675, 4846 ] }
7,897
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @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 {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 299, 395 ] }
7,898
AONESWAP
AONESWAP.sol
0xb6c8bddca1d8f8b6424bb591352c75ded95f9da3
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSup...
/** * @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 {ERC20Mintable}. * * TIP: For a detailed writeup see our guide *...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
None
bzzr://b14f0ba1815f37027ea99d404eed4a77246dd23b56f0574f051475608e6223a7
{ "func_code_index": [ 453, 568 ] }
7,899