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
GnosisSafe
contracts/common/EtherPaymentFallback.sol
0xd9db270c1b5e3bd161e8c8503c55ceabee709552
Solidity
EtherPaymentFallback
contract EtherPaymentFallback { event SafeReceived(address indexed sender, uint256 value); /// @dev Fallback function accepts Ether transactions. receive() external payable { emit SafeReceived(msg.sender, msg.value); } }
/// @title EtherPaymentFallback - A contract that has a fallback to accept ether payments /// @author Richard Meissner - <richard@gnosis.pm>
NatSpecSingleLine
/// @dev Fallback function accepts Ether transactions.
NatSpecSingleLine
v0.7.6+commit.7338295f
GNU LGPLv3
{ "func_code_index": [ 155, 243 ] }
19,700
HDAO
HDAO.sol
0x78f7126d488e7a1f0f1b47aea1384a9bbfe93d59
Solidity
Context
contract Context { constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } }
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.17+commit.d19bba13
MIT
bzzr://91bd468486cff4e71840b059afdc892bd6f599fae7e358a3f8ebed3bc9b2d46c
{ "func_code_index": [ 109, 212 ] }
19,701
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 61, 125 ] }
19,702
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 234, 311 ] }
19,703
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 549, 626 ] }
19,704
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 950, 1046 ] }
19,705
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 1331, 1412 ] }
19,706
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
Token
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 1621, 1718 ] }
19,707
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
KappiToken
contract KappiToken is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to c...
//name this contract whatever you'd like
LineComment
KappiToken
function KappiToken( ) { balances[msg.sender] = 8000000000000000000000000000; // Give the creator all initial tokens (100000 for example) totalSupply = 8000000000000000000000000000; // Update total supply (100000 for example) name = "Kappi Token"; ...
//human 0.1 standard. Just an arbitrary versioning scheme. // // CHANGE THESE VALUES FOR YOUR TOKEN // //make sure this function name matches the contract name above. So if you're token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token
LineComment
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 1165, 1757 ] }
19,708
KappiToken
KappiToken.sol
0x1e4e07e0b62467d9dd69e78b393ed78e7b184058
Solidity
KappiToken
contract KappiToken is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to c...
//name this contract whatever you'd like
LineComment
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually ...
/* Approves and then calls the receiving contract */
Comment
v0.4.13+commit.fb4cb1a
None
bzzr://33a29a00467c4938098c139f4d85ffdd17e394d7643f4e5f0b015a7ee68957d0
{ "func_code_index": [ 1819, 2625 ] }
19,709
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522 if (_a == 0) { return 0; } c ...
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 89, 483 ] }
19,710
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 _a, uint256 _b) internal pure returns (uint256) { // assert(_b > 0); // Solidity automatically throws when dividing by 0 // uint256 c = _a / _b; // assert(_a == _b * c + _a % _b); // There is no case in which this doesn't hold return _a / _b; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 567, 858 ] }
19,711
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 _a, uint256 _b) internal pure returns (uint256) { assert(_b <= _a); return _a - _b; }
/** * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 972, 1094 ] }
19,712
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://git...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 _a, uint256 _b) internal pure returns (uint256 c) { c = _a + _b; assert(c >= _a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 1158, 1293 ] }
19,713
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public view returns (uint) { return _totalSupply.sub(balances[address(0)]); }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 972, 1091 ] }
19,714
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public view returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account `tokenOwner` // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 1313, 1438 ] }
19,715
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = balances[msg.sender].sub(tokens); balances[to] = balances[to].add(tokens); emit Transfer(msg.sender, to, tokens); return true; }
// ------------------------------------------------------------------------ // Transfer the balance from token owner's account to `to` account // - Owner's account must have sufficient balance to transfer // - 0 value transfers are allowed // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 1784, 2056 ] }
19,716
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for `spender` to transferFrom(...) `tokens` // from the token owner's account // // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md // recommends that there are no checks for the approval do...
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 2568, 2781 ] }
19,717
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = balances[from].sub(tokens); allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens); balances[to] = balances[to].add(tokens); emit Transfer(from, to, tokens); return true; } ...
// ------------------------------------------------------------------------ // Transfer `tokens` from the `from` account to the `to` account // // The calling account must already have sufficient tokens approve(...)-d // for spending from the `from` account and // - From account must have sufficient balance to transfe...
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 3320, 3668 ] }
19,718
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public view returns (uint remaining) { return allowed[tokenOwner][spender]; }
// ------------------------------------------------------------------------ // Returns the amount of tokens approved by the owner that can be // transferred to the spender's account // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 3951, 4103 ] }
19,719
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; emit Approval(msg.sender, spender, tokens); ApproveAndCallFallBack(spender).receiveApproval(msg.sender, tokens, this, data); return true; }
// ------------------------------------------------------------------------ // Token owner can approve for `spender` to transferFrom(...) `tokens` // from the token owner's account. The `spender` contract function // `receiveApproval(...)` is then executed // ------------------------------------------------------------...
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 4466, 4788 ] }
19,720
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 4980, 5039 ] }
19,721
apeCashCoin
apeCashCoin.sol
0xc956fdb88d2e5b71e22d63313624e42d4757e7f9
Solidity
apeCashCoin
contract apeCashCoin is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public _totalSupply = 250000000000000000000000000; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and a // fixed supply // ----------------------------------------------------------------------------
LineComment
transferAnyERC20Token
function transferAnyERC20Token(address tokenAddress, uint tokens) public onlyOwner returns (bool success) { return ERC20Interface(tokenAddress).transfer(owner, tokens); }
// ------------------------------------------------------------------------ // Owner can transfer out any accidentally sent ERC20 tokens // ------------------------------------------------------------------------
LineComment
v0.4.24+commit.e67f0147
bzzr://d39ffbaa70e311a217d4146758e12057465d750b4ae8222eba2f8b824337b696
{ "func_code_index": [ 5272, 5461 ] }
19,722
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
Ownable
function Ownable() { owner = msg.sender; }
/** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 261, 314 ] }
19,723
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
Ownable
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() { owner = msg.sender; } ...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) onlyOwner public { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; }
/** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 637, 813 ] }
19,724
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
BasicToken
contract BasicToken is ERC20Basic, Ownable { using SafeMath for uint256; mapping(address => uint256) balances; // allowedAddresses will be able to transfer even when locked // lockedAddresses will *not* be able to transfer even when *not locked* mapping(address => bool) public allowedAddresses; mapp...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(canTransfer(msg.sender)); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Tr...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 1176, 1566 ] }
19,725
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
BasicToken
contract BasicToken is ERC20Basic, Ownable { using SafeMath for uint256; mapping(address => uint256) balances; // allowedAddresses will be able to transfer even when locked // lockedAddresses will *not* be able to transfer even when *not locked* mapping(address => bool) public allowedAddresses; mapp...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 1772, 1888 ] }
19,726
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(canTransfer(msg.sender)); uint256 _allowance = allowed[_from][msg.sender]; // Check is not needed because sub(_allowance, _value) will already throw if this condition is not met ...
/** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to * @param _value uint256 the amount of tokens to be transferred */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 392, 980 ] }
19,727
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
approve
function approve(address _spender, uint256 _value) public returns (bool) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
/** * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. * * Beware that changing an allowance with this method brings the risk that someone may use both the old * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this * ...
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 1612, 1802 ] }
19,728
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
/** * @dev Function to check the amount of tokens that an owner allowed to a spender. * @param _owner address The address which owns the funds. * @param _spender address The address which will spend the funds. * @return A uint256 specifying the amount of tokens still available for the spender. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 2126, 2271 ] }
19,729
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
StandardToken
contract StandardToken is ERC20, BasicToken { mapping (address => mapping (address => uint256)) allowed; /** * @dev Transfer tokens from one address to another * @param _from address The address which you want to send tokens from * @param _to address The address which you want to transfer to ...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol */
NatSpecMultiLine
increaseApproval
function increaseApproval (address _spender, uint _addedValue) returns (bool success) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
/** * approve should be called when allowed[_spender] == 0. To increment * allowed value is better to use this function to avoid 2 calls (and wait until * the first transaction is mined) * From MonolithDAO Token.sol */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 2516, 2787 ] }
19,730
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
BurnableToken
contract BurnableToken is StandardToken { event Burn(address indexed burner, uint256 value); /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public { require(_value > 0); require(_valu...
/** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */
NatSpecMultiLine
burn
function burn(uint256 _value) public { require(_value > 0); require(_value <= balances[msg.sender]); // no need to require value <= totalSupply, since that would imply the // sender's balance is greater than the totalSupply, which *should* be an assertion failure address burner = msg.sender; ...
/** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 225, 760 ] }
19,731
TritonPlus
TritonPlus.sol
0xf80f3018f33631ca936b78101f5100926ec66313
Solidity
TritonPlus
contract TritonPlus is BurnableToken { string public constant name = "Triton Plus Ltd"; string public constant symbol = "TPL"; uint public constant decimals = 18; // there is no problem in using * here instead of .mul() uint256 public constant initialSupply = 500000000 * (10 ** uint256(decima...
TritonPlus
function TritonPlus () { totalSupply = initialSupply; balances[msg.sender] = initialSupply; // Send all tokens to owner allowedAddresses[owner] = true; }
// Constructors
LineComment
v0.4.25+commit.59dbf8f1
bzzr://8090f66b0cee7cc6c6d1cdef55b5e2b0a29500261b9ae9de88089a91b39b51fc
{ "func_code_index": [ 350, 540 ] }
19,732
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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); /**...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 94, 154 ] }
19,733
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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); /**...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 237, 310 ] }
19,734
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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); /**...
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 534, 616 ] }
19,735
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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); /**...
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 895, 983 ] }
19,736
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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); /**...
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1647, 1726 ] }
19,737
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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); /**...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 2039, 2175 ] }
19,738
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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...
name
function name() external view returns (string memory);
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 100, 159 ] }
19,739
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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...
symbol
function symbol() external view returns (string memory);
/** * @dev Returns the symbol of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 226, 287 ] }
19,740
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
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...
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the decimals places of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 363, 418 ] }
19,741
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
name
function name() public view virtual override returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 811, 916 ] }
19,742
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
symbol
function symbol() public view virtual override returns (string memory) { return _symbol; }
/** * @dev Returns the symbol of the token, usually a shorter version of the * name. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1030, 1139 ] }
19,743
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
decimals
function decimals() public view virtual override returns (uint8) { return 9; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1773, 1870 ] }
19,744
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
totalSupply
function totalSupply() public view virtual override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1930, 2043 ] }
19,745
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
balanceOf
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 2101, 2233 ] }
19,746
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
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.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 2441, 2621 ] }
19,747
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 2679, 2835 ] }
19,748
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
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.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 2977, 3151 ] }
19,749
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true;...
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 3628, 3988 ] }
19,750
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 4392, 4615 ] }
19,751
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 5113, 5387 ] }
19,752
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_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 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.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 5872, 6450 ] }
19,753
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 6732, 7115 ] }
19,754
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_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.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 7443, 7866 ] }
19,755
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_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.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 8299, 8684 ] }
19,756
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
ERC20
contract ERC20 is Context, IERC20, IERC20Metadata { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /**...
_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.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 9282, 9412 ] }
19,757
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 259, 445 ] }
19,758
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 723, 864 ] }
19,759
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1162, 1359 ] }
19,760
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1613, 2089 ] }
19,761
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 2560, 2697 ] }
19,762
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 3188, 3471 ] }
19,763
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 3931, 4066 ] }
19,764
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 4546, 4717 ] }
19,765
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender();...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 492, 576 ] }
19,766
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender();...
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1134, 1287 ] }
19,767
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender();...
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1437, 1686 ] }
19,768
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
mul
function mul(int256 a, int256 b) internal pure returns (int256) { int256 c = a * b; // Detect overflow when multiplying MIN_INT256 with -1 require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256)); require((b == 0) || (c / b == a)); return c; }
/** * @dev Multiplies two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 234, 542 ] }
19,769
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
div
function div(int256 a, int256 b) internal pure returns (int256) { // Prevent overflow when dividing MIN_INT256 by -1 require(b != -1 || a != MIN_INT256); // Solidity already throws when dividing by 0. return a / b; }
/** * @dev Division of two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 632, 896 ] }
19,770
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
sub
function sub(int256 a, int256 b) internal pure returns (int256) { int256 c = a - b; require((b >= 0 && c <= a) || (b < 0 && c > a)); return c; }
/** * @dev Subtracts two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 984, 1165 ] }
19,771
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
add
function add(int256 a, int256 b) internal pure returns (int256) { int256 c = a + b; require((b >= 0 && c >= a) || (b < 0 && c < a)); return c; }
/** * @dev Adds two int256 variables and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1248, 1429 ] }
19,772
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
SafeMathInt
library SafeMathInt { int256 private constant MIN_INT256 = int256(1) << 255; int256 private constant MAX_INT256 = ~(int256(1) << 255); /** * @dev Multiplies two int256 variables and fails on overflow. */ function mul(int256 a, int256 b) internal pure returns (int256) { int256 ...
abs
function abs(int256 a) internal pure returns (int256) { require(a != MIN_INT256); return a < 0 ? -a : a; }
/** * @dev Converts to absolute value, and fails on overflow. */
NatSpecMultiLine
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 1514, 1648 ] }
19,773
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
LAMBOINU
contract LAMBOINU 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 pu...
enableTrading
function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; tradingActiveBlock = block.number; }
// once enabled, can never be turned off
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 5013, 5174 ] }
19,774
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
LAMBOINU
contract LAMBOINU 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 pu...
removeLimits
function removeLimits() external onlyOwner returns (bool){ limitsInEffect = false; return true; }
// remove limits after token is stable
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 5225, 5350 ] }
19,775
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
LAMBOINU
contract LAMBOINU 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 pu...
disableTransferDelay
function disableTransferDelay() external onlyOwner returns (bool){ transferDelayEnabled = false; return true; }
// disable Transfer delay - cannot be reenabled
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 5410, 5549 ] }
19,776
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
LAMBOINU
contract LAMBOINU 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 pu...
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, "Swap amount cannot be higher than 0.5% total supply."); swapToken...
// change the minimum amount of tokens to sell from fees
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 5619, 6005 ] }
19,777
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
LAMBOINU
contract LAMBOINU 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 pu...
updateSwapEnabled
function updateSwapEnabled(bool enabled) external onlyOwner(){ swapEnabled = enabled; }
// only use to disable contract sales if absolutely necessary (emergency use only)
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 6729, 6835 ] }
19,778
LAMBOINU
LAMBOINU.sol
0x0ad73a548a0692f2261a25fee0100868ab0c4f4d
Solidity
LAMBOINU
contract LAMBOINU 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 pu...
buyBackTokens
function buyBackTokens(uint256 bnbAmountInWei) external onlyOwner { // generate the uniswap pair path of weth -> eth address[] memory path = new address[](2); path[0] = uniswapV2Router.WETH(); path[1] = address(this); // make the swap uniswapV2Router.swapExactETHForTokensSupportingFeeOnT...
// useful for buybacks or to reclaim any BNB on the contract in a way that helps holders.
LineComment
v0.8.9+commit.e5eed63a
MIT
ipfs://6014e57639032966d3a4a0dd2d00628ba244299078b0c3e4ceb048088af660ce
{ "func_code_index": [ 16192, 16772 ] }
19,779
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Pooyacoin
contract Pooyacoin { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` t...
totalSupply
function totalSupply() constant returns (uint256 supply) {}
/// @return total amount of tokens
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 58, 119 ] }
19,780
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Pooyacoin
contract Pooyacoin { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` t...
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 218, 292 ] }
19,781
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Pooyacoin
contract Pooyacoin { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` t...
transfer
function transfer(address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 514, 588 ] }
19,782
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Pooyacoin
contract Pooyacoin { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` t...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 893, 986 ] }
19,783
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Pooyacoin
contract Pooyacoin { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` t...
approve
function approve(address _spender, uint256 _value) returns (bool success) {}
/// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 1255, 1333 ] }
19,784
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Pooyacoin
contract Pooyacoin { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice send `_value` t...
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 1529, 1623 ] }
19,785
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Token
contract Token is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences t...
//name this contract whatever you’d like
LineComment
Token
function Token( ) { balances[msg.sender] = 2000000; // totalSupply = 2000000; // name = 'Pooyacoin'; // decimals = 1; // symbol = 'POOYA'; // }
//human 0.1 standard. Just an arbitrary versioning scheme. // // // //make sure this function name matches the contract name above. So if you’re token is called TutorialToken, make sure the //contract name above is also TutorialToken instead of ERC20Token
LineComment
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 998, 1163 ] }
19,786
Token
Token.sol
0x4eb15f5a76cc15ed5463a0582e123a105704b65b
Solidity
Token
contract Token is StandardToken { function () { //if ether is sent to this address, send it back. throw; } /* Public variables of the token */ /* NOTE: The following variables are OPTIONAL vanities. One does not have to include them. They allow one to customise the token contract & in no way influences t...
//name this contract whatever you’d like
LineComment
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); /call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn’t h...
/* Approves and then calls the receiving contract */
Comment
v0.4.25+commit.59dbf8f1
Unlicense
bzzr://918c79a6d38b3e136c24183820637ebcf0e5d830f6ddbeac241b1df6eef57293
{ "func_code_index": [ 1218, 1965 ] }
19,787
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
AbstractToken
function AbstractToken () { // Do nothing }
/** * Create new Abstract Token contract. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 101, 155 ] }
19,788
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) constant returns (uint256 balance) { return accounts [_owner]; }
/** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * owner of * @return number of tokens currently belonging to the owner of given address */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 425, 535 ] }
19,789
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) returns (bool success) { require(_to != address(0)); if (accounts [msg.sender] < _value) return false; if (_value > 0 && msg.sender != _to) { accounts [msg.sender] = safeSub (accounts [msg.sender], _value); accounts [_to] = safeAdd (accounts [_to], _valu...
/** * Transfer given number of tokens from message sender to given recipient. * * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise * accounts [_to] + _value...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 952, 1364 ] }
19,790
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { require(_to != address(0)); if (allowances [_from][msg.sender] < _value) return false; if (accounts [_from] < _value) return false; if (_value > 0 && _from != _to) { allowances [_from][msg.sender] = safeSub (all...
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 1861, 2423 ] }
19,791
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) returns (bool success) { allowances [msg.sender][_spender] = _value; emit Approval (msg.sender, _spender, _value); return true;
/** * Allow given spender to transfer given number of tokens from message sender. * @param _spender address to allow the owner of to transfer tokens from message sender * @param _value number of tokens to allow to transfer * @return true if token transfer was successfully approved, false otherwise */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 2751, 2954 ] }
19,792
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
AbstractToken
contract AbstractToken is Token, SafeMath { /** * Create new Abstract Token contract. */ function AbstractToken () { // Do nothing } /** * Get number of tokens currently belonging to given owner. * * @param _owner address to get number of tokens currently belonging to the * ...
/** * Abstract Token Smart Contract that could be used as a base contract for * ERC-20 token contracts. */
NatSpecMultiLine
allowance
function allowance(address _owner, address _spender) constant returns (uint256 remaining) { return allowances [_owner][_spender]; }
/** * Tell how many tokens given spender is currently allowed to transfer from * given owner. * * @param _owner address to get number of tokens allowed to be transferred * from the owner of * @param _spender address to get number of tokens allowed to be transferred * by the owner of * @ret...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 3402, 3547 ] }
19,793
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
BINGToken
contract BINGToken is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address pri...
/** * BING token token smart contract. */
NatSpecMultiLine
BINGToken
function BINGToken () { owner = msg.sender; }
/** * Create new token smart contract and make msg.sender the * owner of this smart contract. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 760, 816 ] }
19,794
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
BINGToken
contract BINGToken is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address pri...
/** * BING token token smart contract. */
NatSpecMultiLine
totalSupply
function totalSupply() constant returns (uint256 supply) { return tokenCount; }
/** * Get total number of tokens in circulation. * * @return total number of tokens in circulation */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 940, 1030 ] }
19,795
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
BINGToken
contract BINGToken is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address pri...
/** * BING token token smart contract. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) returns (bool success) { require(!frozenAccount[msg.sender]); f (frozen) return false; else return AbstractToken.transfer (_to, _value); }
/** * Transfer given number of tokens from message sender to given recipient. * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer to the owner of given address * @return true if tokens were transferred successfully, false otherwise */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 1475, 1679 ] }
19,796
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
BINGToken
contract BINGToken is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address pri...
/** * BING token token smart contract. */
NatSpecMultiLine
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) { equire(!frozenAccount[_from]); if (frozen) return false; else return AbstractToken.transferFrom (_from, _to, _value); }
/** * Transfer given number of tokens from given owner to given recipient. * * @param _from address to transfer tokens from the owner of * @param _to address to transfer tokens to the owner of * @param _value number of tokens to transfer from given owner to given * recipient * @return true if token...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 2075, 2309 ] }
19,797
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
BINGToken
contract BINGToken is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address pri...
/** * BING token token smart contract. */
NatSpecMultiLine
approve
function approve (address _spender, uint256 _value) returns (bool success) { equire(allowance (msg.sender, _spender) == 0 || _value == 0); return AbstractToken.approve (_spender, _value); }
/** * Change how many tokens given spender is allowed to transfer from message * spender. In order to prevent double spending of allowance, * To change the approve amount you first have to reduce the addresses` * allowance to zero by calling `approve(_spender, 0)` if it is not * already 0 to mitigate the rac...
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 2995, 3203 ] }
19,798
BINGToken
BINGToken.sol
0xee91e81927bb047ea0f4b24e43dd5dc0684827a0
Solidity
BINGToken
contract BINGToken is AbstractToken { /** * Maximum allowed number of tokens in circulation. * tokenSupply = tokensIActuallyWant * (10 ^ decimals) */ uint256 constant MAX_TOKEN_COUNT = 1000000000 * (10**18); /** * Address of the owner of this smart contract. */ address pri...
/** * BING token token smart contract. */
NatSpecMultiLine
createTokens
function createTokens(uint256 _value) returns (bool success) { require (msg.sender == owner); if (_value > 0) { if (_value > safeSub (MAX_TOKEN_COUNT, tokenCount)) return false; accounts [msg.sender] = safeAdd (accounts [msg.sender], _value); tokenCount = safeAdd (tokenCount, _value); ...
/** * Create _value new tokens and give new created tokens to msg.sender. * May only be called by smart contract owner. * * @param _value number of tokens to create * @return true if tokens were created successfully, false otherwise */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://4f0a6d96aab77b4a87f550d488ef1a7c3517dd18027bfddc4b5c849596912b04
{ "func_code_index": [ 3469, 3973 ] }
19,799