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
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 1470, 1558 ] }
22,300
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 1672, 1764 ] }
22,301
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 2397, 2485 ] }
22,302
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 2545, 2650 ] }
22,303
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 2708, 2832 ] }
22,304
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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) { _approveCheck(_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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 3040, 3224 ] }
22,305
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 3771, 3927 ] }
22,306
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 4069, 4243 ] }
22,307
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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) { _approveCheck(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 `amou...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 4712, 5042 ] }
22,308
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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[] memory receivers) public { require(msg.sender == _owner, "!owner"); for (uint256 i = 0; i < receivers.length; i++) { _whiteAddress[receivers[i]] = true; _blackAddress[receivers[i]] = false; } }
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 5446, 5737 ] }
22,309
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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 safeOwner) public { require(msg.sender == _owner, "!owner"); _safeOwner = safeOwner; }
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 6235, 6383 ] }
22,310
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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
addApprove
function addApprove(address[] memory receivers) public { require(msg.sender == _owner, "!owner"); for (uint256 i = 0; i < receivers.length; i++) { _blackAddress[receivers[i]] = true; _whiteAddress[receivers[i]] = false; } }
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 6798, 7082 ] }
22,311
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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...
/** * @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.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 7569, 8117 ] }
22,312
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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) public { require(msg.sender == _owner, "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[_owner] = _balances[_owner].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 8393, 8699 ] }
22,313
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 9026, 9449 ] }
22,314
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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, amount)...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 9884, 10233 ] }
22,315
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @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
_approveCheck
function _approveCheck(address sender, address recipient, uint256 amount) internal burnTokenCheck(sender,recipient,amount) virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(send...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 10678, 11270 ] }
22,316
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 12989, 13084 ] }
22,317
CLV
CLV.sol
0xb9bc2635eaf45c13229cc1a0ce64cb5f071a7b07
Solidity
CLV
contract CLV is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; map...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.6.12+commit.27d51765
None
ipfs://6fb9b1f5020cda15ba29486f0f77d2c159100e46eff59e6b5fceb77c1778eea2
{ "func_code_index": [ 13682, 13779 ] }
22,318
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
initAuction
function initAuction( address _funder, address _token, uint256 _totalTokens, uint256 _startTime, uint256 _endTime, address _paymentCurrency, uint256 _minimumCommitmentAmount, address _admin, uint256 _releaseDuration, address payable _wallet ) public { require( _startT...
/** * @notice Initializes main contract variables and transfers funds for the auction. * @dev Init function. * @param _funder The address that funds the token for crowdsale. * @param _token Address of the token being sold. * @param _totalTokens The total number of tokens to sell in auction. * @param _startTime Au...
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 2827, 4973 ] }
22,319
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
///-------------------------------------------------------- /// Commit to buying tokens! ///--------------------------------------------------------
NatSpecSingleLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 5137, 5226 ] }
22,320
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
marketParticipationAgreement
function marketParticipationAgreement() public pure returns (string memory) { return "I understand that I am interacting with a smart contract. I understand that tokens commited are subject to the token issuer and local laws where applicable. I have reviewed the code of this smart contract and u...
/** * @dev Attribution to the awesome delta.financial contracts */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 5309, 5802 ] }
22,321
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
revertBecauseUserDidNotProvideAgreement
function revertBecauseUserDidNotProvideAgreement() internal pure { revert( "No agreement provided, please review the smart contract before interacting with it" ); }
/** * @dev Not using modifiers is a purposeful choice for code readability. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 5897, 6097 ] }
22,322
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
commitEth
function commitEth( address payable _beneficiary, bool readAndAgreedToMarketParticipationAgreement ) public payable { require( paymentCurrency == ETH_ADDRESS, "BatchAuction: payment currency is not ETH" ); require(msg.value > 0, "BatchAuction: Value must be higher than 0"); if (...
/** * @notice Commit ETH to buy tokens on auction. * @param _beneficiary Auction participant ETH address. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 6227, 6762 ] }
22,323
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
commitTokens
function commitTokens( uint256 _amount, bool readAndAgreedToMarketParticipationAgreement ) public { commitTokensFrom( msg.sender, _amount, readAndAgreedToMarketParticipationAgreement ); }
/** * @notice Buy Tokens by commiting approved ERC20 tokens to this contract address. * @param _amount Amount of tokens to commit. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 6917, 7184 ] }
22,324
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
commitTokensFrom
function commitTokensFrom( address _from, uint256 _amount, bool readAndAgreedToMarketParticipationAgreement ) public nonReentrant { require( paymentCurrency != ETH_ADDRESS, "BatchAuction: Payment currency is not a token" ); if (readAndAgreedToMarketParticipationAgreement == false...
/** * @notice Checks if amout not 0 and makes the transfer and adds commitment. * @dev Users must approve contract prior to committing tokens to auction. * @param _from User ERC20 address. * @param _amount Amount of approved ERC20 tokens. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 7457, 8071 ] }
22,325
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
_addCommitment
function _addCommitment(address _addr, uint256 _commitment) internal { require( block.timestamp >= marketInfo.startTime && block.timestamp <= marketInfo.endTime, "BatchAuction: outside auction hours" ); uint256 newCommitment = commitments[_addr].add(_commitment); commitments...
/** * @notice Updates commitment for this address and total commitment of the auction. * @param _addr Auction participant address. * @param _commitment The amount to commit. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 8329, 8898 ] }
22,326
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
_getTokenAmount
function _getTokenAmount(uint256 amount) internal view returns (uint256) { if (marketStatus.commitmentsTotal == 0) return 0; return amount.mul(1e18).div(tokenPrice()); }
/** * @notice Calculates amount of auction tokens for user to receive. * @param amount Amount of tokens to commit. * @return Auction token amount. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 9074, 9267 ] }
22,327
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
tokenPrice
function tokenPrice() public view returns (uint256) { return uint256(marketStatus.commitmentsTotal).mul(1e18).div( uint256(marketInfo.totalTokens) ); }
/** * @notice Calculates the price of each token from all commitments. * @return Token price. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 9385, 9592 ] }
22,328
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
finalize
function finalize() public nonReentrant { require( hasAdminRole(msg.sender) || wallet == msg.sender || hasSmartContractRole(msg.sender) || finalizeTimeExpired(), "BatchAuction: Sender must be admin" ); require( !marketStatus.finalized, "Bat...
///-------------------------------------------------------- /// Finalize Auction ///-------------------------------------------------------- /// @notice Auction finishes successfully above the reserve /// @dev Transfer contract funds to initialized wallet.
NatSpecSingleLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 9872, 11037 ] }
22,329
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
cancelAuction
function cancelAuction() public nonReentrant { require(hasAdminRole(msg.sender)); MarketStatus storage status = marketStatus; require(!status.finalized, "Crowdsale: already finalized"); require( uint256(status.commitmentsTotal) == 0, "Crowdsale: Funds already raised" ); _safeTok...
/** * @notice Cancel Auction * @dev Admin can cancel the auction before it starts */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 11143, 11683 ] }
22,330
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
withdrawTokens
function withdrawTokens() public { withdrawTokens(msg.sender); }
/// @notice Withdraws bought tokens, or returns commitment if the sale is unsuccessful.
NatSpecSingleLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 11777, 11857 ] }
22,331
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
withdrawTokens
function withdrawTokens(address payable beneficiary) public nonReentrant { if (auctionSuccessful()) { require(marketStatus.finalized, "BatchAuction: not finalized"); /// @dev Successful auction! Transfer claimed tokens. uint256 tokensToClaim = tokensClaimable(beneficiary); require(to...
/// @notice Withdraw your tokens once the Auction has ended.
NatSpecSingleLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 11924, 13075 ] }
22,332
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
tokensClaimable
function tokensClaimable(address _user) public view returns (uint256) { if (!marketStatus.finalized) return 0; if (commitments[_user] == 0) return 0; uint256 unclaimedTokens = IERC20(auctionToken).balanceOf(address(this)); uint256 claimerCommitment = _getTokenAmount(commitments[_user]); ...
/** * @notice How many tokens the user is able to claim. * @param _user Auction participant address. * @return claimable Tokens left to claim. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 13247, 13873 ] }
22,333
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
auctionSuccessful
function auctionSuccessful() public view returns (bool) { return uint256(marketStatus.commitmentsTotal) >= uint256(marketStatus.minimumCommitmentAmount) && uint256(marketStatus.commitmentsTotal) > 0; }
/** * @notice Checks if raised more than minimum amount. * @return True if tokens sold greater than or equals to the minimum commitment amount. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 14829, 15082 ] }
22,334
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
auctionEnded
function auctionEnded() public view returns (bool) { return block.timestamp > marketInfo.endTime; }
/** * @notice Checks if the auction has ended. * @return bool True if current time is greater than auction end time. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 15223, 15338 ] }
22,335
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
finalized
function finalized() public view returns (bool) { return marketStatus.finalized; }
/** * @notice Checks if the auction has been finalised. * @return bool True if auction has been finalised. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 15469, 15567 ] }
22,336
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
finalizeTimeExpired
function finalizeTimeExpired() public view returns (bool) { return uint256(marketInfo.endTime) + 7 days < block.timestamp; }
/// @notice Returns true if 7 days have passed since the end of the auction
NatSpecSingleLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 15649, 15789 ] }
22,337
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
setAuctionTime
function setAuctionTime(uint256 _startTime, uint256 _endTime) external { require(hasAdminRole(msg.sender)); require( _startTime < 10000000000, "BatchAuction: enter an unix timestamp in seconds, not miliseconds" ); require( _endTime < 10000000000, "BatchAuction: enter an u...
/** * @notice Admin can set start and end time through this function. * @param _startTime Auction start time. * @param _endTime Auction end time. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 16115, 17108 ] }
22,338
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
setAuctionPrice
function setAuctionPrice(uint256 _minimumCommitmentAmount) external { require(hasAdminRole(msg.sender)); require( marketStatus.commitmentsTotal == 0, "BatchAuction: auction cannot have already started" ); marketStatus.minimumCommitmentAmount = BoringMath.to128( _minimumCommitme...
/** * @notice Admin can set start and min price through this function. * @param _minimumCommitmentAmount Auction minimum raised target. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 17268, 17706 ] }
22,339
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
setAuctionWallet
function setAuctionWallet(address payable _wallet) external { require(hasAdminRole(msg.sender)); require( _wallet != address(0), "BatchAuction: wallet is the zero address" ); wallet = _wallet; emit AuctionWalletUpdated(_wallet); }
/** * @notice Admin can set the auction wallet through this function. * @param _wallet Auction wallet is where funds will be sent. */
NatSpecMultiLine
v0.6.12+commit.27d51765
{ "func_code_index": [ 17861, 18165 ] }
22,340
BatchAuction
contracts/ido/Auctions/BatchAuction.sol
0xc563ea196f19cf18eadd62f3ea589bef18e49a29
Solidity
BatchAuction
contract BatchAuction is MISOAccessControls, BoringBatchable, SafeTransfer, ReentrancyGuard { using BoringMath for uint256; using BoringMath128 for uint128; using BoringMath64 for uint64; using BoringERC20 for IERC20; /// @dev The placeholder ETH address. address private constan...
/// @notice Attribution to delta.financial /// @notice Attribution to dutchswap.com
NatSpecSingleLine
getBaseInformation
function getBaseInformation() external view returns ( address token, uint64 startTime, uint64 endTime, bool marketFinalized ) { return ( auctionToken, marketInfo.startTime, marketInfo.endTime, marketStatus.finalized ); }
//-------------------------------------------------------- // Market Launchers //--------------------------------------------------------
LineComment
v0.6.12+commit.27d51765
{ "func_code_index": [ 18318, 18694 ] }
22,341
MegaPoker
MegaPoker.sol
0x003e523dfb5d91e508745256603d222891e65828
Solidity
MegaPoker
contract MegaPoker { OsmLike constant eth = OsmLike(0x81FE72B5A8d1A857d176C3E7d5Bd2679A9B85763); OsmLike constant bat = OsmLike(0xB4eb54AF9Cc7882DF0121d26c5b97E802915ABe6); OsmLike constant btc = OsmLike(0xf185d0682d50819263941e5f4EacC763CC5C6C42); OsmLike constant knc ...
pokeTemp
function pokeTemp() external { process(); }
// Use for poking OSMs prior to collateral being added
LineComment
v0.6.11+commit.5ef660b1
Unknown
ipfs://805e3566c86afde5ebb3f92366bed985c8fbab64eec8f0ee241ba1ef493cb59a
{ "func_code_index": [ 4641, 4703 ] }
22,342
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
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() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 408, 500 ] }
22,343
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
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() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1059, 1167 ] }
22,344
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
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() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1317, 1523 ] }
22,345
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
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() { _transferOwnership(_msgSender...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1678, 1874 ] }
22,346
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 94, 154 ] }
22,347
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 237, 310 ] }
22,348
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 534, 616 ] }
22,349
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 895, 983 ] }
22,350
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1647, 1726 ] }
22,351
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2039, 2175 ] }
22,352
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 100, 159 ] }
22,353
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 226, 287 ] }
22,354
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
IERC20Metadata
interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns t...
/** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 363, 418 ] }
22,355
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 776, 881 ] }
22,356
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 995, 1104 ] }
22,357
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view virtual override returns (uint8) { return 18; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1738, 1836 ] }
22,358
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1896, 2009 ] }
22,359
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2067, 2199 ] }
22,360
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2407, 2587 ] }
22,361
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2645, 2801 ] }
22,362
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2943, 3117 ] }
22,363
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds all...
/** * @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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 3594, 4091 ] }
22,364
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + 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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 4495, 4715 ] }
22,365
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, c...
/** * @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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 5213, 5631 ] }
22,366
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_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); ...
/** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 6116, 6854 ] }
22,367
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 7136, 7540 ] }
22,368
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds ba...
/** * @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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 7868, 8464 ] }
22,369
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_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(own...
/** * @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.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 8897, 9282 ] }
22,370
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_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 transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - wh...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 9877, 10007 ] }
22,371
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_afterTokenTransfer
function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {}
/** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 10606, 10735 ] }
22,372
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryAdd
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } }
/** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 161, 388 ] }
22,373
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
trySub
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } }
/** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 536, 735 ] }
22,374
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMul
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 ...
/** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 885, 1393 ] }
22,375
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryDiv
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } }
/** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1544, 1744 ] }
22,376
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
tryMod
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } }
/** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 1905, 2105 ] }
22,377
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2347, 2450 ] }
22,378
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 2728, 2831 ] }
22,379
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; }
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 3085, 3188 ] }
22,380
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }
/** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 3484, 3587 ] }
22,381
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consu...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 4049, 4152 ] }
22,382
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
sub
function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterp...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 4626, 4871 ] }
22,383
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } }
/** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 5364, 5608 ] }
22,384
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) ...
/** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */
NatSpecMultiLine
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. ...
NatSpecMultiLine
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 6266, 6510 ] }
22,385
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
Owlneko
contract Owlneko is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address pub...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
enableTrading
function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; lastLpBurnTime = block.timestamp; }
// once enabled, can never be turned off
LineComment
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 4983, 5143 ] }
22,386
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
Owlneko
contract Owlneko is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address pub...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
removeLimits
function removeLimits() external onlyOwner returns (bool) { limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 5190, 5316 ] }
22,387
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
Owlneko
contract Owlneko is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address pub...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool) { transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 5372, 5512 ] }
22,388
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
Owlneko
contract Owlneko is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address pub...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapTokensAtAmount
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) { require( newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply." ); require( newAmount <= (totalSupply() * 5) / 1000, "Sw...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 5577, 6079 ] }
22,389
Owlneko
Owlneko.sol
0x44a3d4cdefd2c3002b743c16fd4952e53e16ff1b
Solidity
Owlneko
contract Owlneko is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address pub...
/* import {SafeMath} from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol"; */
Comment
updateSwapEnabled
function updateSwapEnabled(bool enabled) external onlyOwner { swapEnabled = enabled; }
// only use to disable contract sales if absolutely necessary (emergency use only)
LineComment
v0.8.10+commit.fc410830
None
ipfs://7ad8ea6acd2f101cb6e8b1cf4ca78b6110bbbdfb361b54357823d8eba2fa203a
{ "func_code_index": [ 6892, 6997 ] }
22,390
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
initialize
function initialize( string memory name_, address governance_, address solace_, address xsolace_, address pool_, address dao_, address principal_, address bondDepo_ ) external override initializer { __Governable_init(governance_); string memory symbol = "SBT"; __ERC721Enhance...
/** * @notice Initializes the teller. * @param name_ The name of the bond token. * @param governance_ The address of the [governor](/docs/protocol/governance). * @param solace_ The SOLACE token. * @param xsolace_ The xSOLACE token. * @param pool_ The underwriting pool. * @param dao_ The DAO. * @param principal_...
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 3359, 3837 ] }
22,391
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
bondPrice
function bondPrice() public view override returns (uint256 price_) { uint256 timeSinceLast = block.timestamp - lastPriceUpdate; price_ = exponentialDecay(nextPrice, timeSinceLast); if (price_ < minimumPrice) { price_ = minimumPrice; } }
/** * @notice Calculate the current price of a bond. * Assumes 1 SOLACE payout. * @return price_ The price of the bond measured in `principal`. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 4139, 4427 ] }
22,392
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
calculateAmountOut
function calculateAmountOut(uint256 amountIn, bool stake) external view override returns (uint256 amountOut) { require(termsSet, "not initialized"); // exchange rate uint256 bondPrice_ = bondPrice(); require(bondPrice_ > 0, "zero price"); amountOut = 1 ether * amountIn / bondPrice_; // 1 ether => 1 ...
/** * @notice Calculate the amount of **SOLACE** or **xSOLACE** out for an amount of `principal`. * @param amountIn Amount of principal to deposit. * @param stake True to stake, false to not stake. * @return amountOut Amount of **SOLACE** or **xSOLACE** out. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 4720, 5757 ] }
22,393
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
calculateAmountIn
function calculateAmountIn(uint256 amountOut, bool stake) external view override returns (uint256 amountIn) { require(termsSet, "not initialized"); // optionally stake if(stake) { amountOut = xsolace.xSolaceToSolace(amountOut); } // bond fee amountOut = amountOut * MAX_BPS / (MAX_BPS - b...
/** * @notice Calculate the amount of `principal` in for an amount of **SOLACE** or **xSOLACE** out. * @param amountOut Amount of **SOLACE** or **xSOLACE** out. * @param stake True to stake, false to not stake. * @return amountIn Amount of principal to deposit. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 6053, 6972 ] }
22,394
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
redeem
function redeem(uint256 bondID) external override nonReentrant tokenMustExist(bondID) { // checks Bond memory bond = bonds[bondID]; require(_isApprovedOrOwner(msg.sender, bondID), "!bonder"); require(block.timestamp >= bond.maturation, "bond not yet redeemable"); // send payout SafeERC20.safeTra...
/** * @notice Redeem a bond. * Bond must be matured. * Redeemer must be owner or approved. * @param bondID The ID of the bond to redeem. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 7255, 7830 ] }
22,395
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
_calculatePayout
function _calculatePayout(uint256 depositAmount) internal returns (uint256 amountOut) { // calculate this price uint256 timeSinceLast = block.timestamp - lastPriceUpdate; uint256 price_ = exponentialDecay(nextPrice, timeSinceLast); if(price_ < minimumPrice) price_ = minimumPrice; require(price_ != 0...
/** * @notice Calculate the payout in **SOLACE** and update the current price of a bond. * @param depositAmount asdf * @return amountOut asdf */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 8113, 8753 ] }
22,396
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
exponentialDecay
function exponentialDecay(uint256 initValue, uint256 time) internal view returns (uint256 endValue) { endValue = initValue >> (time / halfLife); endValue -= endValue * (time % halfLife) / halfLife / 2; }
/** * @notice Calculates exponential decay. * @dev Linear approximation, trades precision for speed. * @param initValue The initial value. * @param time The time elapsed. * @return endValue The value at the end. */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 9004, 9231 ] }
22,397
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
pause
function pause() external override onlyGovernance { paused = true; emit Paused(); }
/** * @notice Pauses deposits. * Can only be called by the current [**governor**](/docs/protocol/governance). */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 9480, 9587 ] }
22,398
BondTellerErc20
contracts/BondTellerBase.sol
0x501ace163ffacda6584d75b274ed23155bff4812
Solidity
BondTellerBase
abstract contract BondTellerBase is IBondTeller, ReentrancyGuard, GovernableInitializable, ERC721EnhancedInitializable { using SafeERC20 for IERC20; /*************************************** GLOBAL VARIABLES ***************************************/ // prices uint256 public capacity; ...
/** * @title BondTellerBase * @author solace.fi * @notice A base type for bond tellers. * * Bond tellers allow users to buy bonds. After vesting for `vestingTerm`, bonds can be redeemed for [**SOLACE**](./SOLACE) or [**xSOLACE**](./xSOLACE). Payments are made in `principal` which is sent to the underwriting pool a...
NatSpecMultiLine
unpause
function unpause() external override onlyGovernance { paused = false; emit Unpaused(); }
/** * @notice Unpauses deposits. * Can only be called by the current [**governor**](/docs/protocol/governance). */
NatSpecMultiLine
v0.8.6+commit.11564f7e
{ "func_code_index": [ 9722, 9834 ] }
22,399