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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GovernorAlpha | GovernorAlpha.sol | 0x62823702f035edd42d678563c2c6af5648908a48 | Solidity | GovernorAlpha | contract GovernorAlpha {
/// @notice The name of this contract
string public constant name = "TLTF Governor";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256) {
... | // COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistribu... | LineComment | quorumVotes | function quorumVotes() public view returns (uint256) {
return
SafeMath.div(SafeMath.mul(pheezez.votesAvailable(), qRatio), 100);
} // Ratio can be governed
| /// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://fd7e42471426944d01af48677c139498dd67ab05ae4e4b8c2e14d97057973a58 | {
"func_code_index": [
256,
443
]
} | 19,200 |
GovernorAlpha | GovernorAlpha.sol | 0x62823702f035edd42d678563c2c6af5648908a48 | Solidity | GovernorAlpha | contract GovernorAlpha {
/// @notice The name of this contract
string public constant name = "TLTF Governor";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256) {
... | // COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistribu... | LineComment | proposalThreshold | function proposalThreshold() public view returns (uint256) {
return
SafeMath.div(SafeMath.mul(pheezez.votesAvailable(), tRatio), 100);
} // Ratio can be governed
| /// @notice The number of votes required in order for a voter to become a proposer | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://fd7e42471426944d01af48677c139498dd67ab05ae4e4b8c2e14d97057973a58 | {
"func_code_index": [
534,
727
]
} | 19,201 |
GovernorAlpha | GovernorAlpha.sol | 0x62823702f035edd42d678563c2c6af5648908a48 | Solidity | GovernorAlpha | contract GovernorAlpha {
/// @notice The name of this contract
string public constant name = "TLTF Governor";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256) {
... | // COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistribu... | LineComment | proposalMaxOperations | function proposalMaxOperations() public pure returns (uint256) {
return 10;
} // 10 actions
| /// @notice The maximum number of actions that can be included in a proposal | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://fd7e42471426944d01af48677c139498dd67ab05ae4e4b8c2e14d97057973a58 | {
"func_code_index": [
812,
922
]
} | 19,202 |
GovernorAlpha | GovernorAlpha.sol | 0x62823702f035edd42d678563c2c6af5648908a48 | Solidity | GovernorAlpha | contract GovernorAlpha {
/// @notice The name of this contract
string public constant name = "TLTF Governor";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256) {
... | // COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistribu... | LineComment | votingDelay | function votingDelay() public pure returns (uint256) {
return 1;
} // 1 block
| /// @notice The delay before voting on a proposal may take place, once proposed | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://fd7e42471426944d01af48677c139498dd67ab05ae4e4b8c2e14d97057973a58 | {
"func_code_index": [
1010,
1106
]
} | 19,203 |
GovernorAlpha | GovernorAlpha.sol | 0x62823702f035edd42d678563c2c6af5648908a48 | Solidity | GovernorAlpha | contract GovernorAlpha {
/// @notice The name of this contract
string public constant name = "TLTF Governor";
/// @notice The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed
function quorumVotes() public view returns (uint256) {
... | // COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistribu... | LineComment | votingPeriod | function votingPeriod() public view returns (uint256) {
return vPeriod;
} // ~3 days in blocks (assuming 13s blocks) ***CHANGE WHEN NEEDED*****
| /// @notice The duration of voting on a proposal, in blocks | NatSpecSingleLine | v0.6.12+commit.27d51765 | MIT | ipfs://fd7e42471426944d01af48677c139498dd67ab05ae4e4b8c2e14d97057973a58 | {
"func_code_index": [
1174,
1336
]
} | 19,204 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the ... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | Ownable | function Ownable() public {
owner = msg.sender;
}
| /**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
180,
248
]
} | 19,205 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | Ownable | contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the ... | /**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/ | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
if (newOwner != address(0)) {
owner = newOwner;
}
}
| /**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
592,
748
]
} | 19,206 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | BasicToken | contract BasicToken is Ownable, ERC20Basic {
using SafeMath for uint;
mapping(address => uint) public balances;
// additional variables for use if transaction fees ever became necessary
uint public basisPointsRate = 0;
uint public maximumFee = 0;
/**
* @dev Fix for the ERC20 sho... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | transfer | function transfer(address _to, uint _value) public onlyPayloadSize(2 * 32) {
uint fee = (_value.mul(basisPointsRate)).div(10000);
if (fee > maximumFee) {
fee = maximumFee;
}
uint sendAmount = _value.sub(fee);
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] =... | /**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
626,
1204
]
} | 19,207 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | BasicToken | contract BasicToken is Ownable, ERC20Basic {
using SafeMath for uint;
mapping(address => uint) public balances;
// additional variables for use if transaction fees ever became necessary
uint public basisPointsRate = 0;
uint public maximumFee = 0;
/**
* @dev Fix for the ERC20 sho... | /**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/ | NatSpecMultiLine | balanceOf | function balanceOf(address _owner) public constant returns (uint balance) {
return balances[_owner];
}
| /**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint representing the amount owned by the passed address.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
1417,
1538
]
} | 19,208 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | StandardToken | contract StandardToken is BasicToken, ERC20 {
mapping (address => mapping (address => uint)) public allowed;
uint public constant MAX_UINT = 2**256 - 1;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @par... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based oncode by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | transferFrom | function transferFrom(address _from, address _to, uint _value) public onlyPayloadSize(3 * 32) {
var _allowance = allowed[_from][msg.sender];
// Check is not needed because sub(_allowance, _value) will already throw if this condition is not met
// if (_value > _allowance) throw;
uint fee = (_valu... | /**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint the amount of tokens to be transferred
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
451,
1357
]
} | 19,209 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | StandardToken | contract StandardToken is BasicToken, ERC20 {
mapping (address => mapping (address => uint)) public allowed;
uint public constant MAX_UINT = 2**256 - 1;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @par... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based oncode by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | approve | function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) {
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://git... | /**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
1599,
2177
]
} | 19,210 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | StandardToken | contract StandardToken is BasicToken, ERC20 {
mapping (address => mapping (address => uint)) public allowed;
uint public constant MAX_UINT = 2**256 - 1;
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @par... | /**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based oncode by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/ | NatSpecMultiLine | allowance | function allowance(address _owner, address _spender) public constant returns (uint remaining) {
return allowed[_owner][_spender];
}
| /**
* @dev Function to check the amount of tokens than an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint specifying the amount of tokens still available for the spender.
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
2505,
2655
]
} | 19,211 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | pause | function pause() onlyOwner whenNotPaused public {
paused = true;
Pause();
}
| /**
* @dev called by the owner to pause, triggers stopped state
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
513,
604
]
} | 19,212 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | Pausable | contract Pausable is Ownable {
event Pause();
event Unpause();
bool public paused = false;
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*/
modifier whenNotPaused() {
require(!paused);
_;
}
/**
* @dev Modifier to make a function ... | /**
* @title Pausable
* @dev Base contract which allows children to implement an emergency stop mechanism.
*/ | NatSpecMultiLine | unpause | function unpause() onlyOwner whenPaused public {
paused = false;
Unpause();
}
| /**
* @dev called by the owner to unpause, returns to normal state
*/ | NatSpecMultiLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
688,
781
]
} | 19,213 |
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | BlackList | contract BlackList is Ownable, BasicToken {
/////// Getters to allow the same blacklist to be used also by other contracts (including upgraded Tether) ///////
function getBlackListStatus(address _maker) external constant returns (bool) {
return isBlackListed[_maker];
}
function getOwner... | getBlackListStatus | function getBlackListStatus(address _maker) external constant returns (bool) {
return isBlackListed[_maker];
}
| /////// Getters to allow the same blacklist to be used also by other contracts (including upgraded Tether) /////// | NatSpecSingleLine | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
167,
296
]
} | 19,214 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | UpgradedStandardToken | contract UpgradedStandardToken is StandardToken{
// those methods are called by the legacy contract
// and they must ensure msg.sender to be the contract address
function transferByLegacy(address from, address to, uint value) public;
function transferFromByLegacy(address sender, address from, addres... | transferByLegacy | function transferByLegacy(address from, address to, uint value) public;
| // those methods are called by the legacy contract
// and they must ensure msg.sender to be the contract address | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
173,
249
]
} | 19,215 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | HYPEXToken | function HYPEXToken(uint _initialSupply, string _name, string _symbol, uint _decimals) public {
_totalSupply = _initialSupply;
name = _name;
symbol = _symbol;
decimals = _decimals;
balances[owner] = _initialSupply;
deprecated = false;
}
| // The contract can be initialized with a number of tokens
// All the tokens are deposited to the owner address
//
// @param _balance Initial supply of the contract
// @param _name Token Name
// @param _symbol Token symbol
// @param _decimals Token decimals | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
505,
805
]
} | 19,216 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | transfer | function transfer(address _to, uint _value) public whenNotPaused {
require(!isBlackListed[msg.sender]);
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).transferByLegacy(msg.sender, _to, _value);
} else {
return super.transfer(_to, _value);
}
}
| // Forward ERC20 methods to upgraded contract if this one is deprecated | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
885,
1216
]
} | 19,217 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | transferFrom | function transferFrom(address _from, address _to, uint _value) public whenNotPaused {
require(!isBlackListed[_from]);
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).transferFromByLegacy(msg.sender, _from, _to, _value);
} else {
return super.transferFrom(_from, _to, _val... | // Forward ERC20 methods to upgraded contract if this one is deprecated | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
1296,
1663
]
} | 19,218 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | balanceOf | function balanceOf(address who) public constant returns (uint) {
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).balanceOf(who);
} else {
return super.balanceOf(who);
}
}
| // Forward ERC20 methods to upgraded contract if this one is deprecated | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
1743,
1992
]
} | 19,219 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | approve | function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) {
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).approveByLegacy(msg.sender, _spender, _value);
} else {
return super.approve(_spender, _value);
}
}
| // Forward ERC20 methods to upgraded contract if this one is deprecated | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
2072,
2379
]
} | 19,220 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | allowance | function allowance(address _owner, address _spender) public constant returns (uint remaining) {
if (deprecated) {
return StandardToken(upgradedAddress).allowance(_owner, _spender);
} else {
return super.allowance(_owner, _spender);
}
}
| // Forward ERC20 methods to upgraded contract if this one is deprecated | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
2459,
2757
]
} | 19,221 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | deprecate | function deprecate(address _upgradedAddress) public onlyOwner {
deprecated = true;
upgradedAddress = _upgradedAddress;
Deprecate(_upgradedAddress);
}
| // deprecate current contract in favozhdlsur of a new one | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
2823,
3009
]
} | 19,222 | ||
HYPEXToken | HYPEXToken.sol | 0xa81db53a83b550da5ea52be0372894368ffb8139 | Solidity | HYPEXToken | contract HYPEXToken is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
// The contract can be initialized with a number of tokens
// All the tokens are deposited to the o... | totalSupply | function totalSupply() public constant returns (uint) {
if (deprecated) {
return StandardToken(upgradedAddress).totalSupply();
} else {
return _totalSupply;
}
}
| // deprecate current contract if favour of a new one | LineComment | v0.4.26+commit.4563c3fc | MIT | bzzr://4694293ea51515fabe0a5c45b57ec028f293a7f8276a88a6699043d787e2a67e | {
"func_code_index": [
3070,
3293
]
} | 19,223 | ||
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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 | DataGo | function DataGo() public {
symbol = "DGO";
name = "DataGo";
decimals = 18;
_totalSupply = 100000000000000000000000000;
balances[0x3dc7b4CdFd990df8B81A155e5dc66f6c7fE948A0] = _totalSupply;
Transfer(address(0), 0x3dc7b4CdFd990df8B81A155e5dc66f6c7fE948A0, _totalSupply);
}
| // ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------ | LineComment | v0.4.18+commit.9cf6e910 | bzzr://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
453,
786
]
} | 19,224 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
974,
1095
]
} | 19,225 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
1315,
1444
]
} | 19,226 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
1788,
2065
]
} | 19,227 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
2572,
2780
]
} | 19,228 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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
// - Sp... | LineComment | v0.4.18+commit.9cf6e910 | bzzr://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
3310,
3668
]
} | 19,229 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
3951,
4107
]
} | 19,230 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
4462,
4779
]
} | 19,231 | |
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
4971,
5030
]
} | 19,232 | ||
DataGo | DataGo.sol | 0x8a011b5dfbee4a35d414c748aaf634e7429c4cf2 | Solidity | DataGo | contract DataGo 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://1d4fcea4ef53d6d36289a127ec890cddf94ab950c129838bc1939587d7d1e884 | {
"func_code_index": [
5263,
5452
]
} | 19,233 | |
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | name | function name() public view returns (string memory) {
return _name;
}
| /**
* @dev Returns the name of the token.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
823,
908
]
} | 19,234 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | symbol | function symbol() public view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
1017,
1106
]
} | 19,235 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | decimals | function decimals() public view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the v... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
1725,
1810
]
} | 19,236 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | totalSupply | function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {IERC20-totalSupply}.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
1866,
1968
]
} | 19,237 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | balanceOf | function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
| /**
* @dev See {IERC20-balanceOf}.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
2022,
2143
]
} | 19,238 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | transfer | function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(msg.sender, recipient, amount);
return true;
}
| /**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
2342,
2516
]
} | 19,239 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | allowance | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {IERC20-allowance}.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
2570,
2723
]
} | 19,240 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | approve | function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
| /**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
2857,
3025
]
} | 19,241 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | transferFrom | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(
sender,
msg.sender,
_allowances[sender][msg.sender].sub(amount, Errors.ERC20_TRANSFER_EXCEEDS_ALLOWANCE)
);
... | /**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
3488,
3878
]
} | 19,242 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | increaseAllowance | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue));
return true;
}
| /**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be t... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
4269,
4484
]
} | 19,243 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(
msg.sender,
spender,
_allowances[msg.sender][spender].sub(subtractedValue, Errors.ERC20_DECREASED_ALLOWANCE_BELOW_ZERO)
);
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be t... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
4967,
5283
]
} | 19,244 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _transfer | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
_require(sender != address(0), Errors.ERC20_TRANSFER_FROM_ZERO_ADDRESS);
_require(recipient != address(0), Errors.ERC20_TRANSFER_TO_ZERO_ADDRESS);
_beforeTokenTransfer(sender, recipient, amount);
_ba... | /**
* @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.
* - `recipie... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
5753,
6316
]
} | 19,245 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _mint | function _mint(address account, uint256 amount) internal virtual {
_beforeTokenTransfer(address(0), account, amount);
_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.7.1+commit.f4a555be | {
"func_code_index": [
6583,
6881
]
} | 19,246 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _burn | function _burn(address account, uint256 amount) internal virtual {
_require(account != address(0), Errors.ERC20_BURN_FROM_ZERO_ADDRESS);
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, Errors.ERC20_BURN_EXCEEDS_ALLOWANCE);
_totalSupply = _totalSup... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
7197,
7611
]
} | 19,247 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _approve | function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
| /**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
*... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
8030,
8247
]
} | 19,248 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _setupDecimals | function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
| /**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/ | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
8566,
8658
]
} | 19,249 | ||
LiquidityBootstrappingPool | @balancer-labs/v2-solidity-utils/contracts/openzeppelin/ERC20.sol | 0x6aa8a7b23f7b3875a966ddcc83d5b675cc9af54b | Solidity | ERC20 | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* ... | /**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
... | NatSpecMultiLine | _beforeTokenTransfer | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
| /**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to... | NatSpecMultiLine | v0.7.1+commit.f4a555be | {
"func_code_index": [
9241,
9366
]
} | 19,250 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | totalSupply | function totalSupply() external view returns (uint256);
| /**
* @dev Returns the amount of tokens in existence.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
88,
146
]
} | 19,251 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | decimals | function decimals() external view returns (uint8);
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
202,
255
]
} | 19,252 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | symbol | function symbol() external view returns (string memory);
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
309,
368
]
} | 19,253 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | name | function name() external view returns (string memory);
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
418,
475
]
} | 19,254 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | getOwner | function getOwner() external view returns (address);
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
532,
587
]
} | 19,255 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | balanceOf | function balanceOf(address account) external view returns (uint256);
| /**
* @dev Returns the amount of tokens owned by `account`.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
664,
735
]
} | 19,256 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | transfer | function transfer(address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
945,
1025
]
} | 19,257 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | allowance | function allowance(address _owner, address spender) external view returns (uint256);
| /**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1290,
1377
]
} | 19,258 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | approve | function approve(address spender, uint256 amount) external returns (bool);
| /**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
2013,
2090
]
} | 19,259 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | IBEP20 | interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
function ... | transferFrom | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
| /**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
2385,
2485
]
} | 19,260 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | add | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| /**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
233,
403
]
} | 19,261 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
655,
788
]
} | 19,262 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | sub | function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
| /**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1060,
1241
]
} | 19,263 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mul | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint25... | /**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1469,
1903
]
} | 19,264 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to reve... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
2344,
2473
]
} | 19,265 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | div | function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
| /**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an in... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
2934,
3260
]
} | 19,266 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consumi... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
3690,
3817
]
} | 19,267 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | SafeMath | library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c =... | /**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming la... | NatSpecMultiLine | mod | function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
| /**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcod... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
4267,
4426
]
} | 19,268 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSe... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | owner | function owner() public view returns (address) {
return _owner;
}
| /**
* @dev Returns the address of the current owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
456,
532
]
} | 19,269 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSe... | /**
* @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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1058,
1191
]
} | 19,270 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSe... | /**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
... | NatSpecMultiLine | transferOwnership | function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
| /**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1333,
1439
]
} | 19,271 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | Ownable | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () {
address msgSender = _msgSender();
_owner = msgSe... | /**
* @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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1534,
1752
]
} | 19,272 |
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | getOwner | function getOwner() external view returns (address) {
return owner();
}
| /**
* @dev Returns the bep token owner.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
609,
691
]
} | 19,273 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | decimals | function decimals() external view returns (uint8) {
return _decimals;
}
| /**
* @dev Returns the token decimals.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
747,
829
]
} | 19,274 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | symbol | function symbol() external view returns (string memory) {
return _symbol;
}
| /**
* @dev Returns the token symbol.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
883,
969
]
} | 19,275 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | name | function name() external view returns (string memory) {
return _name;
}
| /**
* @dev Returns the token name.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1019,
1101
]
} | 19,276 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | totalSupply | function totalSupply() external view returns (uint256) {
return _totalSupply;
}
| /**
* @dev See {BEP20-totalSupply}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1154,
1244
]
} | 19,277 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | balanceOf | function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
| /**
* @dev See {BEP20-balanceOf}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1295,
1404
]
} | 19,278 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | transfer | function transfer(address recipient, uint256 amount) external returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
| /**
* @dev See {BEP20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1595,
1748
]
} | 19,279 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | allowance | function allowance(address owner, address spender) external view returns (uint256) {
return _allowances[owner][spender];
}
| /**
* @dev See {BEP20-allowance}.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
1799,
1932
]
} | 19,280 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | 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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
2059,
2206
]
} | 19,281 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | 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 exceeds allowance"));
return true;
}
| /**
* @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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
2648,
2943
]
} | 19,282 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | 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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
3322,
3525
]
} | 19,283 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | decreaseAllowance | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "BEP20: decreased allowance below zero"));
return true;
}
| /**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {BEP20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` ca... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
3994,
4248
]
} | 19,284 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | mint | function mint(uint256 amount) public onlyOwner returns (bool) {
_mint(_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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
4445,
4568
]
} | 19,285 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | _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");
_balances[sender] = _balances[sender].sub(amount, "BEP20: transfer amount exceeds b... | /**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
*... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
5025,
5477
]
} | 19,286 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | _mint | function _mint(address account, uint256 amount) internal {
require(account != address(0), "BEP20: mint 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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
5735,
6028
]
} | 19,287 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | _burn | function _burn(address account, uint256 amount) internal {
require(account != address(0), "BEP20: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "BEP20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}... | /**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/ | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
6333,
6666
]
} | 19,288 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | _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");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
| /**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero... | NatSpecMultiLine | v0.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
7075,
7398
]
} | 19,289 | ||
NATO | NATO.sol | 0x344615dab0e9fdec76e3096397b1f59751003b0a | Solidity | NATO | contract NATO is Context, IBEP20, Ownable {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
uint8 private _decimals;
string private _symbol;
string private _name;
... | _burnFrom | function _burnFrom(address account, uint256 amount) internal {
_burn(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.8.12+commit.f00d7308 | MIT | ipfs://9f783628ec3ef97017924f7a93c6e18e31c616f087e9817555a91069116595b5 | {
"func_code_index": [
7567,
7792
]
} | 19,290 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | buy | function buy(address _referredBy, uint256 amount)
public
returns(uint256)
{
ERC20 Hex = ERC20(tokenAddress);
Hex.transferFrom(msg.sender,address(this),amount);
purchaseTokens(amount, _referredBy, false);
}
| /**
* Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
6360,
6625
]
} | 19,291 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | function()
external
payable
{
revert();
}
| /**
* refuse to receive any tokens directly sent
*
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
6705,
6788
]
} | 19,292 | |||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | reinvest | function reinvest()
onlyStronghands()
public
{
// fetch dividends
uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code
// pay out the dividends virtually
address _customerAddress = msg.sender;
payoutsTo_[_customerAddress] += (int256) (_dividends * magn... | /**
* Converts all of caller's dividends to tokens.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
7215,
7863
]
} | 19,293 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | exit | function exit()
public
{
// get token count for caller & sell them all
address _customerAddress = msg.sender;
uint256 _tokens = tokenBalanceLedger_[_customerAddress];
if(_tokens > 0) sell(_tokens);
withdraw();
}
| /**
* Alias of sell() and withdraw().
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
7924,
8206
]
} | 19,294 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | withdraw | function withdraw()
onlyStronghands()
public
{
// setup data
address _customerAddress = msg.sender;
uint256 _dividends = myDividends(false); // get ref. bonus later in the code
// update dividend tracker
payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude);
// ... | /**
* Withdraws all of the callers earnings.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
8274,
9015
]
} | 19,295 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | sell | function sell(uint256 _amountOfTokens)
onlyBagholders()
public
{
// setup data
address _customerAddress = msg.sender;
require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
uint256 _tokens = _amountOfTokens;
uint256 _ethereum = tokensToEthereum_(_tokens);
uint256 _di... | /**
* Liquifies tokens to ethereum.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
9074,
10351
]
} | 19,296 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | transfer | function transfer(address _toAddress, uint256 _amountOfTokens)
onlyBagholders()
public
returns(bool)
{
// setup
address _customerAddress = msg.sender;
// make sure we have the requested tokens
require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
// withdraw all... | /**
* Fuck the transfer fee
* Who needs it
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
10425,
11469
]
} | 19,297 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | totalEthereumBalance | function totalEthereumBalance()
public
view
returns(uint)
{
return address(this).balance;
}
| /**
* Method to view the current Ethereum stored in the contract
* Example: totalEthereumBalance()
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
11654,
11796
]
} | 19,298 | ||
Fomo | Fomo.sol | 0xc6abc3454dce0b9d88a471a27a769d96eb4506d1 | Solidity | Fomo | contract Fomo {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modifier onlyStronghand... | totalSupply | function totalSupply()
public
view
returns(uint256)
{
return tokenSupply_;
}
| /**
* Retrieve the total token supply.
*/ | NatSpecMultiLine | v0.5.15+commit.6a57276f | None | bzzr://934ce56dd4683ca7bb6a355312371f993d34c856fc4ce45d870829ddae0e5d1c | {
"func_code_index": [
11858,
11985
]
} | 19,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.