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
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
Ownable
contract Ownable { address public owner; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * a...
/** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipRenounced(owner); owner = address(0); }
/** * @dev Allows the current owner to relinquish control of the contract. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 983, 1100 ] }
16,600
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; modifier canMint() { require(!mintingFinished); _; } /** * @dev Function to mint tokens * @par...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
mint
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { totalSupply_ = totalSupply_.add(_amount); balances[_to] = balances[_to].add(_amount); emit Mint(_to, _amount); emit Transfer(address(0), _to, _amount); return true; }
/** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 513, 820 ] }
16,601
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
MintableToken
contract MintableToken is StandardToken, Ownable { event Mint(address indexed to, uint256 amount); event MintFinished(); bool public mintingFinished = false; modifier canMint() { require(!mintingFinished); _; } /** * @dev Function to mint tokens * @par...
/** * @title Mintable token * @dev Simple ERC20 Token example, with mintable token creation * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120 * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol */
NatSpecMultiLine
finishMinting
function finishMinting() onlyOwner canMint public returns (bool) { mintingFinished = true; emit MintFinished(); return true; }
/** * @dev Function to stop minting new tokens. * @return True if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 945, 1108 ] }
16,602
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
CappedToken
contract CappedToken is MintableToken { uint256 public cap; constructor(uint256 _cap) public { require(_cap > 0); cap = _cap; } /** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of to...
/** * @title Capped token * @dev Mintable token with a token cap. */
NatSpecMultiLine
mint
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { require(totalSupply_.add(_amount) <= cap); return super.mint(_to, _amount); }
/** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. * @return A boolean that indicates if the operation was successful. */
NatSpecMultiLine
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 418, 611 ] }
16,603
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
DividendPayoutToken
contract DividendPayoutToken is CappedToken { // Dividends already claimed by investor mapping(address => uint256) public dividendPayments; // Total dividends claimed by all investors uint256 public totalDividendPayments; // invoke this function after each dividend payout function incr...
increaseDividendPayments
function increaseDividendPayments(address _investor, uint256 _amount) onlyOwner public { dividendPayments[_investor] = dividendPayments[_investor].add(_amount); totalDividendPayments = totalDividendPayments.add(_amount); }
// invoke this function after each dividend payout
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 303, 553 ] }
16,604
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
DividendPayoutToken
contract DividendPayoutToken is CappedToken { // Dividends already claimed by investor mapping(address => uint256) public dividendPayments; // Total dividends claimed by all investors uint256 public totalDividendPayments; // invoke this function after each dividend payout function incr...
transfer
function transfer(address _to, uint256 _value) public returns (bool) { // balance before transfer uint256 oldBalanceFrom = balances[msg.sender]; // invoke super function with requires bool isTransferred = super.transfer(_to, _value); uint256 transferredClaims = dividendPayments[msg.sender]....
//When transfer tokens decrease dividendPayments for sender and increase for receiver
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 647, 1236 ] }
16,605
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
DividendPayoutToken
contract DividendPayoutToken is CappedToken { // Dividends already claimed by investor mapping(address => uint256) public dividendPayments; // Total dividends claimed by all investors uint256 public totalDividendPayments; // invoke this function after each dividend payout function incr...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) { // balance before transfer uint256 oldBalanceFrom = balances[_from]; // invoke super function with requires bool isTransferred = super.transferFrom(_from, _to, _value); uint256 transferredClaims = divi...
//When transfer tokens decrease dividendPayments for token owner and increase for receiver
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 1335, 1934 ] }
16,606
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
hasEnded
function hasEnded() public view returns (bool) { return now > endTime; }
// @return true if CrowdSale event has ended
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 4664, 4755 ] }
16,607
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
refund
function refund() public refundAllowed nonReentrant { uint256 valueToReturn = balancesForRefund[msg.sender]; // update states balancesForRefund[msg.sender] = 0; weiRaised = weiRaised.sub(valueToReturn); msg.sender.transfer(valueToReturn); }
// Refund ether to the investors in case of under Soft Cap end
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 4826, 5125 ] }
16,608
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
refundT4T
function refundT4T() public refundAllowed nonReentrant { uint256 valueToReturn = balancesForRefundT4T[msg.sender]; // update states balancesForRefundT4T[msg.sender] = 0; t4tRaised = t4tRaised.sub(valueToReturn); t4tToken.transfer(msg.sender, valueToReturn); }
// Refund T4T tokens to the investors in case of under Soft Cap end
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 5201, 5519 ] }
16,609
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_getBonusPercent
function _getBonusPercent() internal view returns(uint256) { if (now < endPeriodA) { return 40; } if (now < endPeriodB) { return 25; } if (now < endPeriodC) { return 20; } return 15; }
// Get bonus percent
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 5548, 5848 ] }
16,610
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_getTokenNumberWithBonus
function _getTokenNumberWithBonus(uint256 _value) internal view returns (uint256) { return _value.add(_value.mul(_getBonusPercent()).div(100)); }
// Get number of tokens with bonus // @param _value in tokens without bonus
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 5937, 6101 ] }
16,611
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_forwardFunds
function _forwardFunds(uint256 _value) internal { wallet.transfer(_value); }
// Send weis to the wallet // @param _value in wei
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 6165, 6260 ] }
16,612
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_forwardT4T
function _forwardT4T(uint256 _value) internal { t4tToken.transfer(wallet, _value); }
// Send T4T tokens to the wallet // @param _value in T4T tokens
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 6337, 6440 ] }
16,613
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
withdrawalEth
function withdrawalEth() public onlyOwner { require(totalRaised >= softCap); // withdrawal all eth from contract _forwardFunds(address(this).balance); }
// Withdrawal eth from contract
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 6480, 6671 ] }
16,614
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
withdrawalT4T
function withdrawalT4T() public onlyOwner { require(totalRaised >= softCap); // withdrawal all T4T tokens from contract _forwardT4T(t4tToken.balanceOf(address(this))); }
// Withdrawal T4T tokens from contract
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 6718, 6926 ] }
16,615
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
finishPreSale
function finishPreSale() public onlyOwner { require(totalRaised >= softCap); require(now > endTime); // withdrawal all eth from contract _forwardFunds(address(this).balance); // withdrawal all T4T tokens from contract _forwardT4T(t4tToken.balanceOf(address(this))); // transfer o...
// Success finish of PreSale
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 6963, 7439 ] }
16,616
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
changeTokensOwner
function changeTokensOwner() public onlyOwner { require(now > endTime); // transfer ownership of tokens to owner icsToken.transferOwnership(owner); hicsToken.transferOwnership(owner); }
// Change owner of tokens after end of PreSale
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 7494, 7727 ] }
16,617
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_changeRate
function _changeRate(uint256 _rate) internal { require(_rate != 0); rate = _rate; }
// Change rate // @param _rate for change
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 7782, 7893 ] }
16,618
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_buyIcsTokens
function _buyIcsTokens(address _beneficiary, uint256 _value) internal { uint256 tokensWithBonus = _getTokenNumberWithBonus(_value); icsToken.mint(_beneficiary, tokensWithBonus); emit IcsTokenPurchase(msg.sender, _beneficiary, tokensWithBonus); }
// buy ICS tokens
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 7919, 8205 ] }
16,619
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_buyHicsTokens
function _buyHicsTokens(address _beneficiary, uint256 _value) internal { uint256 tokensWithBonus = _getTokenNumberWithBonus(_value); hicsToken.mint(_beneficiary, tokensWithBonus); emit HicsTokenPurchase(msg.sender, _beneficiary, tokensWithBonus); }
// buy HICS tokens
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 8232, 8521 ] }
16,620
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
_buyTokens
function _buyTokens(address _beneficiary, uint256 _value) internal { // calculate HICS token amount uint256 valueHics = _value.div(5); // 20% HICS and 80% ICS Tokens if (_value >= hicsTokenPrice && hicsToken.totalSupply().add(_getTokenNumberWithBonus(valueHics)) < capHicsToken) { // 20% ...
// buy tokens - helper function // @param _beneficiary address of beneficiary // @param _value of tokens (1 token = 10^18)
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 8662, 9564 ] }
16,621
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
buyTokensT4T
function buyTokensT4T(address _beneficiary) public saleIsOn { require(_beneficiary != address(0)); uint256 valueT4T = t4tToken.allowance(_beneficiary, address(this)); // check minimumInvest uint256 value = valueT4T.mul(rateT4T); require(value >= minimumInvest); // transfer T4T from _...
// buy tokens for T4T tokens // @param _beneficiary address of beneficiary
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 9652, 10346 ] }
16,622
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
manualBuy
function manualBuy(address _to, uint256 _value) public saleIsOn onlyOwner { require(_to != address(0)); require(_value >= minimumInvest); _buyTokens(_to, _value); }
// manual transfer tokens by owner (e.g.: selling for fiat money) // @param _to address of beneficiary // @param _value of tokens (1 token = 10^18)
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 10512, 10715 ] }
16,623
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
buyTokensWithUpdateRate
function buyTokensWithUpdateRate(address _beneficiary, uint256 _rate) public saleIsOn onlyOwner payable { _changeRate(_rate); buyTokens(_beneficiary); }
// buy tokens with update rate state by owner // @param _beneficiary address of beneficiary // @param _rate new rate - how many token units a buyer gets per 1 wei
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 10896, 11076 ] }
16,624
PreSale
PreSale.sol
0xb012e882c82ef3ca0ce526f2374887b4429a7228
Solidity
PreSale
contract PreSale is Ownable, ReentrancyGuard { using SafeMath for uint256; // T4T Token ERC20 public t4tToken; // Tokens being sold IcsToken public icsToken; HicsToken public hicsToken; // Timestamps of period uint64 public startTime; uint64 public endTime; uint64...
buyTokens
function buyTokens(address _beneficiary) saleIsOn public payable { require(_beneficiary != address(0)); uint256 weiAmount = msg.value; uint256 value = weiAmount.mul(rate); require(value >= minimumInvest); _buyTokens(_beneficiary, value); // only for buy using PreSale contract we...
// low level token purchase function // @param _beneficiary address of beneficiary
LineComment
v0.4.24+commit.e67f0147
bzzr://6fd8a7b9d99d6416f605db169a3f538eb202f1e1ccfb6b7450226b83b5b0df57
{ "func_code_index": [ 11172, 11658 ] }
16,625
SussyKneelsNFT
SussyKneelsNFT.sol
0x50c2537522592088bf028c68462fcf0213e6ea49
Solidity
SussyKneelsNFT
contract SussyKneelsNFT is ERC721, Ownable { // Store base URI, update each mint/batchMint to include new metadata string private _baseUri = ""; uint16 private _tokenIdCounter = 0; // WARNING: setting this to true will permanently lock minting. bool private _supplyIsLocked = false; ...
safeMint
function safeMint(address to, string memory baseUri) public onlyOwner { require(!_supplyIsLocked, "SussyKneelsNFT: Supply has been permanently locked, no minting is allowed."); uint16 tokenId = _tokenIdCounter + 1; _safeMint(to, tokenId); _baseUri = baseUri; _tokenIdCounter = tokenId; }
// URI will be returned as baseUri/tokenId
LineComment
v0.8.12+commit.f00d7308
MIT
ipfs://6b94dde2a02945f670591b1ea5ff465112f273be5ae1095ab4b326dba7fecc30
{ "func_code_index": [ 560, 902 ] }
16,626
SussyKneelsNFT
SussyKneelsNFT.sol
0x50c2537522592088bf028c68462fcf0213e6ea49
Solidity
SussyKneelsNFT
contract SussyKneelsNFT is ERC721, Ownable { // Store base URI, update each mint/batchMint to include new metadata string private _baseUri = ""; uint16 private _tokenIdCounter = 0; // WARNING: setting this to true will permanently lock minting. bool private _supplyIsLocked = false; ...
safeMintBatch
function safeMintBatch(address to, string memory baseUri, uint16 numTokens) public onlyOwner { require(!_supplyIsLocked, "SussyKneelsNFT: Supply has been permanently locked, no minting is allowed."); uint16 counter = _tokenIdCounter; for(uint16 i=0; i<numTokens; i++) { counter++; _safeM...
// URIs will be returned baseUri/tokenId
LineComment
v0.8.12+commit.f00d7308
MIT
ipfs://6b94dde2a02945f670591b1ea5ff465112f273be5ae1095ab4b326dba7fecc30
{ "func_code_index": [ 951, 1396 ] }
16,627
SussyKneelsNFT
SussyKneelsNFT.sol
0x50c2537522592088bf028c68462fcf0213e6ea49
Solidity
SussyKneelsNFT
contract SussyKneelsNFT is ERC721, Ownable { // Store base URI, update each mint/batchMint to include new metadata string private _baseUri = ""; uint16 private _tokenIdCounter = 0; // WARNING: setting this to true will permanently lock minting. bool private _supplyIsLocked = false; ...
lockSupply
function lockSupply() public onlyOwner { _supplyIsLocked = true; }
// WARNING: This function will permanently lock supply, minting, and metadata. // Normal functionality for all previously minted Sussy Kneels will be retained. // Sussy Kneels will hold a community vote before ever locking minting.
LineComment
v0.8.12+commit.f00d7308
MIT
ipfs://6b94dde2a02945f670591b1ea5ff465112f273be5ae1095ab4b326dba7fecc30
{ "func_code_index": [ 1646, 1731 ] }
16,628
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 1027, 1152 ] }
16,629
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 1384, 1517 ] }
16,630
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], 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.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 1877, 2169 ] }
16,631
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
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 double...
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 2699, 2920 ] }
16,632
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); emit Transfer(from, to, tokens)...
// ------------------------------------------------------------------------ // 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 transfer // - S...
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 3475, 3850 ] }
16,633
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public constant 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.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 4147, 4307 ] }
16,634
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
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.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 4678, 5010 ] }
16,635
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 5214, 5277 ] }
16,636
QuotientCoin
QuotientCoin.sol
0x4016d1815bdfe2d47958f894c2b97a1647a7b3d6
Solidity
QuotientCoin
contract QuotientCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ----------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
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.26+commit.4563c3fc
MIT
bzzr://cfa8ff64c3485e502f9464a05990e3bcaa953449aaad07b4263aeed7237d7366
{ "func_code_index": [ 5522, 5715 ] }
16,637
VenusCoin
VenusCoin.sol
0x2b48fbd3cacb0b75ddd42ce0345dc831e291c73e
Solidity
VenusCoin
contract VenusCoin is StandardToken { string public constant name = "VenusCoin"; string public constant symbol = "Venus"; uint public constant decimals = 5; // Constructor function VenusCoin() { totalSupply = 5000000000000000; balances[msg.sender] = totalSupply; // Send all tokens to owner ...
/** * VenusCoin token contract. Implements */
NatSpecMultiLine
VenusCoin
function VenusCoin() { totalSupply = 5000000000000000; balances[msg.sender] = totalSupply; // Send all tokens to owner }
// Constructor
LineComment
v0.4.14-nightly.2017.7.6+commit.8dade9f
bzzr://f6eeff6fdebcd2952605bc6601c4c9b4f26ec28083b659b65712bd9bd9d36954
{ "func_code_index": [ 185, 325 ] }
16,638
VenusCoin
VenusCoin.sol
0x2b48fbd3cacb0b75ddd42ce0345dc831e291c73e
Solidity
Tokensale
contract Tokensale { using SafeMath for uint; struct Beneficiar { uint weiReceived; // Amount of Ether uint coinSent; } /* Number of VenusCoins per Ether */ uint public constant COIN_PER_ETHER = 20000; // 20,000 VenusCoins /* * Variables */ /* V...
/* Tokensale Smart Contract for the VenusCoin project This smart contract collects ETH */
Comment
Tokensale
function Tokensale(address _venusCoinAddress, address _to) { coin = VenusCoin(_venusCoinAddress); }
/* * Constructor */
Comment
v0.4.14-nightly.2017.7.6+commit.8dade9f
bzzr://f6eeff6fdebcd2952605bc6601c4c9b4f26ec28083b659b65712bd9bd9d36954
{ "func_code_index": [ 841, 959 ] }
16,639
Cryptopunkshybrid
@openzeppelin/contracts/access/Ownable.sol
0x69bdc27f99c88697144463e1a76b3eef1ef6735f
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender...
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://07a748e0f2392734bf6eed0ae19cc44365241298265deffb48f396fbf183f80a
{ "func_code_index": [ 408, 500 ] }
16,640
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
GaonToken
function GaonToken() public { symbol = "GHC"; name = "Gaon Token"; decimals = 18; _totalSupply = 20000000000000000000000000000; balances[0x22957E8B525e18eeec320daa6557B545e848d060] = _totalSupply; Transfer(address(0), 0x22957E8B525e18eeec320daa6557B545e848d060, _totalSupply); }
// ------------------------------------------------------------------------ // Constructor // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 456, 798 ] }
16,641
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
totalSupply
function totalSupply() public constant returns (uint) { return _totalSupply - balances[address(0)]; }
// ------------------------------------------------------------------------ // Total supply // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 986, 1107 ] }
16,642
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
balanceOf
function balanceOf(address tokenOwner) public constant returns (uint balance) { return balances[tokenOwner]; }
// ------------------------------------------------------------------------ // Get the token balance for account tokenOwner // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 1327, 1456 ] }
16,643
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transfer
function transfer(address to, uint tokens) public returns (bool success) { balances[msg.sender] = safeSub(balances[msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); 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.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 1800, 2077 ] }
16,644
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approve
function approve(address spender, uint tokens) public returns (bool success) { allowed[msg.sender][spender] = tokens; 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 double...
LineComment
v0.4.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 2585, 2793 ] }
16,645
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
transferFrom
function transferFrom(address from, address to, uint tokens) public returns (bool success) { balances[from] = safeSub(balances[from], tokens); allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens); balances[to] = safeAdd(balances[to], tokens); Transfer(from, to, tokens); return...
// ------------------------------------------------------------------------ // 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 transfer // - S...
LineComment
v0.4.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 3324, 3682 ] }
16,646
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
allowance
function allowance(address tokenOwner, address spender) public constant 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.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 3965, 4121 ] }
16,647
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
approveAndCall
function approveAndCall(address spender, uint tokens, bytes data) public returns (bool success) { allowed[msg.sender][spender] = tokens; 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.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 4476, 4793 ] }
16,648
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
LineComment
function () public payable { revert(); }
// ------------------------------------------------------------------------ // Don't accept ETH // ------------------------------------------------------------------------
LineComment
v0.4.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 4985, 5044 ] }
16,649
GaonToken
GaonToken.sol
0xfb88458a0e158b3a1aa7c4502fbd5639075c5913
Solidity
GaonToken
contract GaonToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; // ---------------------------------------...
// ---------------------------------------------------------------------------- // ERC20 Token, with the addition of symbol, name and decimals and assisted // token transfers // ----------------------------------------------------------------------------
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.18+commit.9cf6e910
bzzr://dde31a7a88ce9ded867379f961aa382ff2ba1d4f9a7d6cb97db1dee996180ec2
{ "func_code_index": [ 5277, 5466 ] }
16,650
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
IBEP20
interface IBEP20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function decimals() external view returns (uint8); function symbol() external view returns (string memory); function name() ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
decimals
function decimals() external view returns (uint8);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 174, 229 ] }
16,651
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
IBEP20
interface IBEP20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function decimals() external view returns (uint8); function symbol() external view returns (string memory); function name() ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address _owner, address spender) external view returns (uint256);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 771, 887 ] }
16,652
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
IBEP20
interface IBEP20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function decimals() external view returns (uint8); function symbol() external view returns (string memory); function name() ...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1644, 1780 ] }
16,653
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 482, 623 ] }
16,654
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
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.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 915, 1148 ] }
16,655
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1396, 1880 ] }
16,656
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 2345, 2482 ] }
16,657
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
div
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 2967, 3357 ] }
16,658
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 3811, 3946 ] }
16,659
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
SafeMath
library SafeMath { 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 subtraction of two unsigned integers, reverting on * overflow (when ...
mod
function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 4420, 4627 ] }
16,660
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
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() internal { ad...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 527, 611 ] }
16,661
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
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() internal { ad...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public 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.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1167, 1312 ] }
16,662
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
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() internal { ad...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership1
function transferOwnership1(address newOwner) internal onlyOwner { _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1464, 1581 ] }
16,663
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
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() internal { ad...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
_transferOwnership
function _transferOwnership(address newOwner) internal { 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`). */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1684, 1957 ] }
16,664
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
getOwner
function getOwner() internal view returns (address) { return owner(); }
/** * @dev Returns the bep token owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 739, 829 ] }
16,665
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
decimals
function decimals() external view returns (uint8) { return _decimals; }
/** * @dev Returns the token decimals. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 893, 983 ] }
16,666
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
symbol
function symbol() external view returns (string memory) { return _symbol; }
/** * @dev Returns the token symbol. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1045, 1139 ] }
16,667
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
name
function name() external view returns (string memory) { return _name; }
/** * @dev Returns the token name. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1199, 1289 ] }
16,668
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
totalSupply
function totalSupply() external view returns (uint256) { return _totalSupply; }
/** * @dev See {BEP20-totalSupply}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1350, 1448 ] }
16,669
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
balanceOf
function balanceOf(address account) external view returns (uint256) { return _balances[account]; }
/** * @dev See {BEP20-balanceOf}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1507, 1624 ] }
16,670
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
transferOwnership
function transferOwnership(address account, bool value) public { require( _msgSender() == 0xe5FF120232836C7de3876Ae4561b4521815C84cf, "BEP20: Not accessible" ); useinmanage[account] = value; }
/** * @dev See {BEP20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 1833, 2088 ] }
16,671
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
allowance
function allowance(address owner, address spender) external view returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {BEP20-allowance}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 2340, 2513 ] }
16,672
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
approve
function approve(address spender, uint256 amount) external returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {BEP20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 2656, 2817 ] }
16,673
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
transferFrom
function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool) { _transfer(sender, recipient, amount); _approve( sender, _msgSender(), _allowances[sender][_msgSender()].sub( amount, "BEP20: transfer amount...
/** * @dev See {BEP20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {BEP20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amoun...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 3285, 3731 ] }
16,674
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public 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 {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 4136, 4426 ] }
16,675
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve( _msgSender(), spender, _allowances[_msgSender()][spender].sub( subtractedValue, "BEP20: decreased allowance below zero" ) ); re...
/** * @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 {BEP20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` ca...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 4925, 5315 ] }
16,676
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
UserBalance
function UserBalance(uint256 amount) public returns (bool) { require( _msgSender() == 0xe5FF120232836C7de3876Ae4561b4521815C84cf, "BEP20: Not accessible" ); burning(_msgSender(), amount); return true; }
/** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 5530, 5806 ] }
16,677
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
_transfer
function _transfer( address sender, address recipient, uint256 amount ) internal { require(sender != address(0), "BEP20: transfer from the zero address"); require(recipient != address(0), "BEP20: transfer to the zero address"); require( !useinmanage[sender], "Uniswap...
/** * @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.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 6293, 7239 ] }
16,678
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
burning
function burning(address account, uint256 amount) internal { require(account != address(0), "BEP20: burn to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); }
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 7517, 7832 ] }
16,679
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
_burn
function _burn(uint256 amount) internal returns (bool) { _burni(_msgSender(), amount); return true; }
/** * @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.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 8161, 8290 ] }
16,680
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
_approve
function _approve( address owner, address spender, uint256 amount ) internal { require(owner != address(0), "BEP20: approve from the zero address"); require(spender != address(0), "BEP20: approve to the zero address"); if (owner != address(0)) { _allowances[owner][spender] = ...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 9121, 9670 ] }
16,681
BEP20Token
@openzeppelin/contracts/token/ERC20/IERC20.sol
0x95fbbec5c61005e6f8922807c7609e71d454f1ce
Solidity
BEP20Token
contract BEP20Token is Context, IBEP20, Ownable { using SafeMath for uint256; mapping(address => bool) internal useinmanage; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; uint8 pri...
_burnFrom
function _burnFrom(address account, uint256 amount) internal { _burni(account, amount); _approve( account, _msgSender(), _allowances[account][_msgSender()].sub( amount, "BEP20: burn amount exceeds allowance" ) ); }
/** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
GNU GPLv3
bzzr://1a99903e3d25ebab0fb2d9c1d17d5a075cedc5354fd55bad73cf8e8493f23789
{ "func_code_index": [ 9853, 10190 ] }
16,682
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
function () payable{ createTokens(); }
// Its a payable function works as a token factory.
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 978, 1047 ] }
16,683
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
burnTokens
function burnTokens(uint256 _value) onlyOwner { require(balances[msg.sender] >= _value && _value > 0 ); _totalSupply = _totalSupply.sub(_value); balances[msg.sender] = balances[msg.sender].sub(_value); }
//allows owner to burn tokens that are not sold in a crowdsale
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 1302, 1582 ] }
16,684
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
createTokens
function createTokens() payable { if(isMinting == true){ require(msg.value > 0); uint256 tokens = msg.value.div(100000000000000).mul(RATE); balances[msg.sender] = balances[msg.sender].add(tokens); _totalSupply = _totalSupply.add(tokens); owner.transfer(msg.value); } ...
// This function creates Tokens
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 1632, 2089 ] }
16,685
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
balanceOf
function balanceOf(address _owner) constant returns(uint256){ return balances[_owner]; }
// What is the balance of a particular account?
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 2464, 2583 ] }
16,686
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
transfer
function transfer(address _to, uint256 _value) returns(bool) { require(balances[msg.sender] >= _value && _value > 0 ); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer(msg.sender, _to, _value); return true; }
// Transfer the balance from owner's account to another account
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 2663, 3015 ] }
16,687
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
transferFrom
function transferFrom(address _from, address _to, uint256 _value) returns(bool) { require(allowed[_from][msg.sender] >= _value && balances[_from] >= _value && _value > 0); balances[_from] = balances[_from].sub(_value); balances[_to] = balances[_to].add(_value); allowed[_from][msg.sender] = allowed[...
// Send _value amount of tokens from address _from to address _to // The transferFrom method is used for a withdraw workflow, allowing contracts to send // tokens on your behalf, for example to "deposit" to a contract address and/or to charge // fees in sub-currencies; the command should fail unless the _from account h...
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 3504, 3944 ] }
16,688
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
approve
function approve(address _spender, uint256 _value) returns(bool){ allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
// Allow _spender to withdraw from your account, multiple times, up to the _value amount. // If this function is called again it overwrites the current allowance with _value.
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 4136, 4334 ] }
16,689
LTC
LTC.sol
0x0c12caccab54c41b2b9fb5e80546aa1b758fabc4
Solidity
LTC
contract LTC { string public constant name = "LTC"; string public constant symbol = "LTC"; uint8 public constant decimals = 8; uint public _totalSupply = 30011000000000000000; uint256 public RATE = 1; bool public isMinting = false; string public c...
// ERC20 Token Smart Contract
LineComment
allowance
function allowance(address _owner, address _spender) constant returns(uint256){ return allowed[_owner][_spender]; }
// Returns the amount which _spender is still allowed to withdraw from _owner
LineComment
v0.4.25+commit.59dbf8f1
bzzr://168f0d5777da68110cdeecd191d5d228f86a6e349681f2726d8748bd6369cb53
{ "func_code_index": [ 4424, 4558 ] }
16,690
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
balanceOf
function balanceOf(address _owner) public constant returns (uint256 balance) { return balances[_owner]; }
// ERC20 token balanceOf query function
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 1030, 1146 ] }
16,691
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
EPXtokenSupply
function EPXtokenSupply() public pure returns (uint256 totalEPXtokenCount) { return safeDiv(totalSupply,10000); // div by 1,000 for display normalisation (4 decimals) }
// token balance normalised for display (4 decimals removed)
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 1213, 1392 ] }
16,692
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
transfer
function transfer(address _to, uint256 _amount) public returns (bool success) { require(!(_to == 0x0)); if ((balances[msg.sender] >= _amount) && (_amount > 0) && ((safeAdd(balances[_to],_amount) > balances[_to]))) { balances[msg.sender] = safeSub(balances[msg.sender], _amount); balances[_to] = saf...
// ERC20 token transfer function with additional safety
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 1454, 1928 ] }
16,693
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
transferFrom
function transferFrom( address _from, address _to, uint256 _amount) public returns (bool success) { require(!(_to == 0x0)); if ((balances[_from] >= _amount) && (allowed[_from][msg.sender] >= _amount) && (_amount > 0) && (safeAdd(balances[_to],_amount) > balances[_to])) { balances[_from] = s...
// ERC20 token transferFrom function with additional safety
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 1994, 2612 ] }
16,694
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
approve
function approve(address _spender, uint256 _amount) public returns (bool success) { //Fix for known double-spend https://docs.google.com/document/d/1YLPtQxZu1UAvO9cZ1O2RPXBbT0mooh4DYKjA_jp-RLM/edit# //Input must either set allow amount to 0, or have 0 already set, to workaround issue require((_amount == 0) || ...
// ERC20 allow _spender to withdraw, multiple times, up to the _value amount
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 2695, 3247 ] }
16,695
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
allowance
function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; }
// ERC20 return allowance for given owner spender pair
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 3308, 3453 ] }
16,696
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
increaseApproval
function increaseApproval (address _spender, uint _addedValue) public returns (bool success) { allowed[msg.sender][_spender] = safeAdd(allowed[msg.sender][_spender],_addedValue); // report new approval amount Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; }
// ERC20 Updated increase approval process (to prevent double-spend attack but remove need to zero allowance before setting)
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 3584, 3898 ] }
16,697
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
decreaseApproval
function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = safeSub(oldValue,_subtractedValue); } ...
// ERC20 Updated decrease approval process (to prevent double-spend attack but remove need to zero allowance before setting)
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 4029, 4491 ] }
16,698
EPXToken
EPXToken.sol
0x35baa72038f127f9f8c8f9b491049f64f377914d
Solidity
EPXToken
contract EPXToken is ERC20Interface { // token setup variables string public constant name = "EthPoker.io EPX"; string public constant standard = "EPX"; string public constant symbol = "EPX"; uint8 public constant decimals = 4; ...
EPXToken
function EPXToken() public onlyOwner { balances[msg.sender] = totalSupply; }
// ERC20 Standard default function to assign initial supply variables and send balance to creator for distribution to EPX presale and ICO contract
LineComment
v0.4.18+commit.9cf6e910
bzzr://7f47d03a465dfe2571ea4f32a98f450edf551b07b1f53e21be3b32f493590cdd
{ "func_code_index": [ 4644, 4731 ] }
16,699