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
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
findEpochId
function findEpochId(uint256 _time) external view returns (uint256 epoch) { uint256 max = epochs.length - 1; uint256 min = 0; //convert to start point _time = _time.div(rewardsDuration).mul(rewardsDuration); for (uint256 i = 0; i < 128; i++) { if (min >= max) break; uint256 mid = (min + max + 1) / ...
//find an epoch index based on timestamp
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 11777, 12368 ] }
2,207
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
lockedBalances
function lockedBalances(address _user) external view returns ( uint256 total, uint256 unlockable, uint256 locked, LockedBalance[] memory lockData ) { LockedBalance[] storage locks = userLocks[_user]; Balances storage userBalance = balances[_user]; uint256 nextUnlockIndex = userBalance.next...
// Information on a user's locked balances
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 12415, 13243 ] }
2,208
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
epochCount
function epochCount() external view returns (uint256) { return epochs.length; }
//number of epochs
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 13266, 13353 ] }
2,209
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
checkpointEpoch
function checkpointEpoch() external { _checkpointEpoch(); }
/* ========== MUTATIVE FUNCTIONS ========== */
Comment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 13405, 13472 ] }
2,210
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
_checkpointEpoch
function _checkpointEpoch() internal { uint256 currentEpoch = block.timestamp.div(rewardsDuration).mul(rewardsDuration); uint256 epochindex = epochs.length; //first epoch add in constructor, no need to check 0 length //check to add if (epochs[epochindex - 1].date < currentEpoch) { //fill any epoch gaps ...
//insert a new epoch if needed. fill in any gaps
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 13525, 14357 ] }
2,211
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
lock
function lock( address _account, uint256 _amount, uint256 _spendRatio ) external nonReentrant { //pull tokens stakingToken.safeTransferFrom(msg.sender, address(this), _amount); //lock _lock(_account, _amount, _spendRatio); }
// Locked tokens cannot be withdrawn for lockDuration and are eligible to receive stakingReward rewards
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 14465, 14724 ] }
2,212
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
_lock
function _lock( address _account, uint256 _amount, uint256 _spendRatio ) internal updateReward(_account) { require(_amount > 0, "Cannot stake 0"); require(_spendRatio <= maximumBoostPayment, "over max spend"); require(!isShutdown, "shutdown"); Balances storage bal = balances[_account]; //must try chec...
//lock tokens
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 14742, 16756 ] }
2,213
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
_processExpiredLocks
function _processExpiredLocks( address _account, bool _relock, uint256 _spendRatio, address _withdrawTo, address _rewardAddress, uint256 _checkDelay ) internal updateReward(_account) { LockedBalance[] storage locks = userLocks[_account]; Balances storage userBalance = balances[_account]; uint112 locke...
// Withdraw all currently locked tokens where the unlock time has passed
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 16833, 19820 ] }
2,214
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
processExpiredLocks
function processExpiredLocks( bool _relock, uint256 _spendRatio, address _withdrawTo ) external nonReentrant { _processExpiredLocks(msg.sender, _relock, _spendRatio, _withdrawTo, msg.sender, 0); }
// Withdraw/relock all currently locked tokens where the unlock time has passed
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 20405, 20623 ] }
2,215
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
processExpiredLocks
function processExpiredLocks(bool _relock) external nonReentrant { _processExpiredLocks(msg.sender, _relock, 0, msg.sender, msg.sender, 0); }
// Withdraw/relock all currently locked tokens where the unlock time has passed
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 20707, 20856 ] }
2,216
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
getReward
function getReward(address _account) public nonReentrant updateReward(_account) { for (uint256 i; i < rewardTokens.length; i++) { address _rewardsToken = rewardTokens[i]; uint256 reward = rewards[_account][_rewardsToken]; if (reward > 0) { rewards[_account][_rewardsToken] = 0; uint256 payout =...
// Claim all pending rewards
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 21137, 21765 ] }
2,217
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
_notifyReward
function _notifyReward(address _rewardsToken, uint256 _reward) internal { Reward storage rdata = rewardData[_rewardsToken]; if (block.timestamp >= rdata.periodFinish) { rdata.rewardRate = _reward.div(rewardsDuration).to208(); } else { uint256 remaining = uint256(rdata.periodFinish).sub(block.timestamp); ...
/* ========== RESTRICTED FUNCTIONS ========== */
Comment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 21819, 22417 ] }
2,218
PopLocker
contracts/core/dao/PopLocker.sol
0x429902c1f43b583e099a0aa5b5c8e0fd40c54435
Solidity
PopLocker
contract PopLocker is ReentrancyGuard, Ownable { using BoringMath for uint256; using BoringMath224 for uint224; using BoringMath112 for uint112; using BoringMath32 for uint32; using SafeERC20 for IERC20; /* ========== STATE VARIABLES ========== */ struct Reward { bool useBoost; uint40 periodFini...
// POP locked in this contract will be entitled to voting rights for popcorn.network // Based on CVX Locking contract for https://www.convexfinance.com/ // Based on EPS Staking contract for http://ellipsis.finance/ // Based on SNX MultiRewards by iamdefinitelyahuman - https://github.com/iamdefinitelyahuman/multi-reward...
LineComment
recoverERC20
function recoverERC20(address _tokenAddress, uint256 _tokenAmount) external onlyOwner { require(_tokenAddress != address(stakingToken), "Cannot withdraw staking token"); require(rewardData[_tokenAddress].lastUpdateTime == 0, "Cannot withdraw reward token"); IERC20(_tokenAddress).safeTransfer(owner(), _tokenAmount...
// Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
LineComment
v0.6.12+commit.27d51765
GNU GPLv3
{ "func_code_index": [ 23084, 23467 ] }
2,219
USRProxy
USRProxy.sol
0x2cd4e8d82f62a91b2299b083ba08532a6a96a13a
Solidity
USRProxy
contract USRProxy is AdminUpgradeabilityProxy { constructor(address _implementation) public AdminUpgradeabilityProxy(_implementation) {} // Allow anyone to view the implementation address function USRImplementation() external view returns (address) { return _implementati...
USRImplementation
function USRImplementation() external view returns (address) { return _implementation(); }
// Allow anyone to view the implementation address
LineComment
v0.5.12+commit.7709ece9
None
bzzr://9150c0111dbe858762bce487b3de4feac777a258966d7f1d795b8a905917ff4c
{ "func_code_index": [ 224, 333 ] }
2,220
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
function () external payable { buyTokens(_msgSender()); }
/** * @dev fallback function ***DO NOT OVERRIDE*** * Note that other contracts will transfer funds with a base gas stipend * of 2300, which is not enough to call buyTokens. Consider calling * buyTokens directly when purchasing tokens from a contract. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 2137, 2213 ] }
2,221
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
token
function token() public view returns (IERC20) { return _token; }
/** * @return the token being sold. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 2272, 2355 ] }
2,222
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
wallet
function wallet() public view returns (address payable) { return _wallet; }
/** * @return the address where funds are collected. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 2431, 2525 ] }
2,223
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
rate
function rate() public view returns (uint256) { return _rate; }
/** * @return the number of token units a buyer gets per wei. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 2610, 2692 ] }
2,224
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
weiRaised
function weiRaised() public view returns (uint256) { return _weiRaised; }
/** * @return the amount of wei raised. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 2755, 2847 ] }
2,225
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
buyTokens
function buyTokens(address beneficiary) public nonReentrant payable { uint256 weiAmount = msg.value; _preValidatePurchase(beneficiary, weiAmount); // calculate token amount to be created uint256 tokens = _getTokenAmount(weiAmount); // update state _weiRaised = _weiRaised.add(weiAmount)...
/** * @dev low level token purchase ***DO NOT OVERRIDE*** * This function has a non-reentrancy guard, so it shouldn't be called by * another `nonReentrant` function. * @param beneficiary Recipient of the token purchase */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 3107, 3740 ] }
2,226
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
_preValidatePurchase
function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view { require(beneficiary != address(0), "Crowdsale: beneficiary is the zero address"); require(weiAmount != 0, "Crowdsale: weiAmount is 0"); this; // silence state mutability warning without generating bytecode - see https:/...
/** * @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. * Use `super` in contracts that inherit from Crowdsale to extend their validations. * Example from CappedCrowdsale.sol's _preValidatePurchase method: * super._preValidatePurchase(beneficiary, w...
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 4288, 4673 ] }
2,227
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
_deliverTokens
function _deliverTokens(address beneficiary, uint256 tokenAmount) internal { _token.safeTransfer(beneficiary, tokenAmount); }
/** * @dev Source of tokens. Override this method to modify the way in which the crowdsale ultimately gets and sends * its tokens. * @param beneficiary Address performing the token purchase * @param tokenAmount Number of tokens to be emitted */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 5419, 5563 ] }
2,228
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
_processPurchase
function _processPurchase(address beneficiary, uint256 tokenAmount) internal { _deliverTokens(beneficiary, tokenAmount); }
/** * @dev Executed when a purchase has been validated and is ready to be executed. Doesn't necessarily emit/send * tokens. * @param beneficiary Address receiving the tokens * @param tokenAmount Number of tokens to be purchased */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 5832, 5973 ] }
2,229
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
_getTokenAmount
function _getTokenAmount(uint256 weiAmount) internal view returns (uint256) { return weiAmount.mul(_rate); }
/** * @dev Override to extend the way in which ether is converted to tokens. * @param weiAmount Value in wei to be converted into tokens * @return Number of tokens that can be purchased with the specified _weiAmount */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 6658, 6785 ] }
2,230
YFPIPresaleRoundTwo
@openzeppelin/contracts/utils/ReentrancyGuard.sol
0xfaa1e3390f452d98a8fc4dd92aaad55a5e831dd9
Solidity
Crowdsale
contract Crowdsale is Context, ReentrancyGuard, Owned { using SafeMath for uint256; using SafeERC20 for IERC20; // The token being sold IERC20 private _token; // Address where funds are collected address payable private _wallet; // How many token units a buyer gets per wei. ...
/** * @title Crowdsale * @dev Crowdsale is a base contract for managing a token crowdsale, * allowing investors to purchase tokens with ether. This contract implements * such functionality in its most fundamental form and can be extended to provide additional * functionality and/or custom behavior. * The ex...
NatSpecMultiLine
_forwardFunds
function _forwardFunds() internal { _wallet.transfer(msg.value); }
/** * @dev Determines how ETH is stored/forwarded on purchases. */
NatSpecMultiLine
v0.5.17+commit.d19bba13
MIT
bzzr://008b35a2ff710804b9dfcc06dff11aaa52f28fd3f624dbef8829f38aeaf90c26
{ "func_code_index": [ 6872, 6957 ] }
2,231
UnidoBurner
UnidoBurner.sol
0xe14f0298a42e1a266fec67c4b9dc4d75a02422e9
Solidity
UnidoBurner
contract UnidoBurner is UnidoDistribution { using SafeMath for uint256; // Storing the instance of UDO Token in udo variable. UnidoDistribution udo = UnidoDistribution(0xea3983Fc6D0fbbC41fb6F6091f68F3e08894dC06); // Events triggered during the execution of respective code blocks ...
addModerator
function addModerator(address _mod) public onlyOwner { moderator[_mod] = true; }
// Can be called only by the owner of the contract. Give access to certain people to call distribute() function.
LineComment
v0.7.0+commit.9e61f92b
MIT
ipfs://f346129fa95d0c46e011ecb72ebfcd13e87c5d651f7110069c27b31977d9095e
{ "func_code_index": [ 1118, 1217 ] }
2,232
UnidoBurner
UnidoBurner.sol
0xe14f0298a42e1a266fec67c4b9dc4d75a02422e9
Solidity
UnidoBurner
contract UnidoBurner is UnidoDistribution { using SafeMath for uint256; // Storing the instance of UDO Token in udo variable. UnidoDistribution udo = UnidoDistribution(0xea3983Fc6D0fbbC41fb6F6091f68F3e08894dC06); // Events triggered during the execution of respective code blocks ...
distribute
function distribute(uint256 tokens) public onlyModerator { require(tokens > 0, "Cannot distribute 0 Tokens!"); require(tokens <= 1000000 * 10**decimals, "Cannot distribute more than 1 million UDO Tokens at once!"); // Fetching the total supply. uint256 supply = udo.totalSupply(); ...
// Can be called only by the moderators. // Distribute any number of tokens from the contract address.
LineComment
v0.7.0+commit.9e61f92b
MIT
ipfs://f346129fa95d0c46e011ecb72ebfcd13e87c5d651f7110069c27b31977d9095e
{ "func_code_index": [ 1333, 3611 ] }
2,233
PuppyToken
BasicToken.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specifie...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
totalSupply
function totalSupply() public view returns (uint256) { return totalSupply_; }
/** * @dev total number of tokens in existence */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 189, 274 ] }
2,234
PuppyToken
BasicToken.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specifie...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
transfer
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); Transfer...
/** * @dev transfer token for a specified address * @param _to The address to transfer to. * @param _value The amount to be transferred. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 426, 807 ] }
2,235
PuppyToken
BasicToken.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
BasicToken
contract BasicToken is ERC20Basic { using SafeMath for uint256; mapping(address => uint256) balances; uint256 totalSupply_; /** * @dev total number of tokens in existence */ function totalSupply() public view returns (uint256) { return totalSupply_; } /** * @dev transfer token for a specifie...
/** * @title Basic token * @dev Basic version of StandardToken, with no allowances. */
NatSpecMultiLine
balanceOf
function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; }
/** * @dev Gets the balance of the specified address. * @param _owner The address to query the the balance of. * @return An uint256 representing the amount owned by the passed address. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 1007, 1116 ] }
2,236
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 497, 581 ] }
2,237
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1139, 1292 ] }
2,238
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSend...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
transferOwnership
function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1442, 1691 ] }
2,239
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
paused
function paused() public view returns (bool) { return _paused; }
/** * @dev Returns true if the contract is paused, and false otherwise. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 531, 614 ] }
2,240
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
_pause
function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); }
/** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1321, 1444 ] }
2,241
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Pausable
abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** ...
/** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your co...
NatSpecMultiLine
_unpause
function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); }
/** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1580, 1705 ] }
2,242
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
/** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 259, 445 ] }
2,243
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 723, 864 ] }
2,244
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; }
/** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1162, 1359 ] }
2,245
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1613, 2089 ] }
2,246
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 2560, 2697 ] }
2,247
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 3188, 3471 ] }
2,248
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 3931, 4066 ] }
2,249
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns ...
/** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming la...
NatSpecMultiLine
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 4546, 4717 ] }
2,250
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 94, 154 ] }
2,251
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 237, 310 ] }
2,252
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 534, 616 ] }
2,253
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
allowance
function allowance(address owner, address spender) external view returns (uint256);
/** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 895, 983 ] }
2,254
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) external returns (bool);
/** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate ...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1647, 1726 ] }
2,255
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /**...
/** * @dev Interface of the ERC20 standard as defined in the EIP. */
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 2039, 2141 ] }
2,256
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 867, 955 ] }
2,257
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
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.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1069, 1161 ] }
2,258
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decimals
function decimals() public view returns (uint8) { return _decimals; }
/** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1794, 1882 ] }
2,259
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1942, 2047 ] }
2,260
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 2105, 2229 ] }
2,261
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transfer
function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
/** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 2437, 2617 ] }
2,262
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
allowance
function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; }
/** * @dev See {IERC20-allowance}. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 2675, 2831 ] }
2,263
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
approve
function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; }
/** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 2973, 3147 ] }
2,264
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
transferFrom
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; }
/** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 3624, 3950 ] }
2,265
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
increaseAllowance
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; }
/** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 4354, 4577 ] }
2,266
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
decreaseAllowance
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; }
/** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` c...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 5075, 5349 ] }
2,267
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_transfer
function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sen...
/** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. *...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 5834, 6378 ] }
2,268
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_mint
function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfe...
/** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 6655, 7038 ] }
2,269
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_burn
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _to...
/** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 7366, 7789 ] }
2,270
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_approve
function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amoun...
/** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero a...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 8222, 8573 ] }
2,271
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_setupDecimals
function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; }
/** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 8900, 8995 ] }
2,272
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
/** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our...
NatSpecMultiLine
_beforeTokenTransfer
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
/** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * -...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 9593, 9690 ] }
2,273
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
isContract
function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly ...
/** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: ...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 606, 1033 ] }
2,274
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
sendValue
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address...
/** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `tr...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 1963, 2365 ] }
2,275
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); }
/** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw ...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 3121, 3299 ] }
2,276
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCall
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 3524, 3724 ] }
2,277
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ *...
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 4094, 4325 ] }
2,278
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionCallWithValue
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disa...
/** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 4576, 5111 ] }
2,279
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); }
/** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 5291, 5495 ] }
2,280
EVNToken
EVNToken.sol
0x8888888861ba162cb37b98792e9427fcd77f1c24
Solidity
Address
library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will ...
/** * @dev Collection of functions related to the address type */
NatSpecMultiLine
functionStaticCall
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.stat...
/** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */
NatSpecMultiLine
v0.7.6+commit.7338295f
MIT
ipfs://eea4c366a5d2b1a62c20f1b7d8b51ee6ca4765817e13539cbf7ff4256a988d4d
{ "func_code_index": [ 5682, 6109 ] }
2,281
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
lockTokens
function lockTokens(address _tokenAddress, uint256 _amount, uint256 _unlockTime) public returns (uint256 _id) { require(_amount > 0, 'token amount is Zero'); require(_unlockTime < 10000000000, 'Enter an unix timestamp in seconds, not miliseconds'); require(Token(_tokenAddress).approve(this, _amount), 'Ap...
/** *lock tokens */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 781, 1927 ] }
2,282
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
withdrawTokens
function withdrawTokens(uint256 _id) public { require(block.timestamp >= lockedToken[_id].unlockTime, 'Tokens are locked'); require(msg.sender == lockedToken[_id].withdrawalAddress, 'Can withdraw by withdrawal Address only'); require(!lockedToken[_id].withdrawn, 'Tokens already withdrawn'); require(...
/** *withdraw tokens */
NatSpecMultiLine
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 1974, 3488 ] }
2,283
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
getTotalTokenBalance
function getTotalTokenBalance(address _tokenAddress) view public returns (uint256) { return Token(_tokenAddress).balanceOf(this); }
/*get total token balance in contract*/
Comment
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 3537, 3691 ] }
2,284
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
getTokenBalanceByAddress
function getTokenBalanceByAddress(address _tokenAddress, address _walletAddress) view public returns (uint256) { return walletTokenBalance[_tokenAddress][_walletAddress]; }
/*get total token balance by address*/
Comment
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 3742, 3937 ] }
2,285
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
getAllDepositIds
function getAllDepositIds() view public returns (uint256[]) { return allDepositIds; }
/*get allDepositIds*/
Comment
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 3971, 4080 ] }
2,286
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
getDepositDetails
function getDepositDetails(uint256 _id) view public returns (address, address, uint256, uint256, bool) { return(lockedToken[_id].tokenAddress,lockedToken[_id].withdrawalAddress,lockedToken[_id].tokenAmount, lockedToken[_id].unlockTime,lockedToken[_id].withdrawn); }
/*get getDepositDetails*/
Comment
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 4118, 4416 ] }
2,287
lockRSG
lockRSG.sol
0x0b5b7aabd6a22a5bd1297ba74c0435ca34555674
Solidity
lockRSG
contract lockRSG is owned{ using SafeMath for uint256; /* * deposit vars */ struct Items { address tokenAddress; address withdrawalAddress; uint256 tokenAmount; uint256 unlockTime; bool withdrawn; } uint256 public depositId; ...
getDepositsByWithdrawalAddress
function getDepositsByWithdrawalAddress(address _withdrawalAddress) view public returns (uint256[]) { return depositsByWithdrawalAddress[_withdrawalAddress]; }
/*get DepositsByWithdrawalAddress*/
Comment
v0.4.25+commit.59dbf8f1
None
bzzr://9a00a94249611acee7460d358e9b805271d065b0e739d502b3faf10b51ef2983
{ "func_code_index": [ 4464, 4647 ] }
2,288
PlatToken
PlatToken.sol
0x609b942a62e72aa6147b053bbf0728e9f256b542
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); fun...
totalSupply
function totalSupply() external view returns (uint256);
/** * @dev Returns the amount of tokens in existence. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://5406d119dbdc8318fe2a54c9d65668410fc14d1f818c8fd4e277fdf42d924bb5
{ "func_code_index": [ 94, 154 ] }
2,289
PlatToken
PlatToken.sol
0x609b942a62e72aa6147b053bbf0728e9f256b542
Solidity
IERC20
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); fun...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://5406d119dbdc8318fe2a54c9d65668410fc14d1f818c8fd4e277fdf42d924bb5
{ "func_code_index": [ 237, 310 ] }
2,290
PlatToken
PlatToken.sol
0x609b942a62e72aa6147b053bbf0728e9f256b542
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
name
function name() public view returns (string memory) { return _name; }
/** * @dev Returns the name of the token. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://5406d119dbdc8318fe2a54c9d65668410fc14d1f818c8fd4e277fdf42d924bb5
{ "func_code_index": [ 545, 633 ] }
2,291
PlatToken
PlatToken.sol
0x609b942a62e72aa6147b053bbf0728e9f256b542
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
totalSupply
function totalSupply() public view override returns (uint256) { return _totalSupply; }
/** * @dev See {IERC20-totalSupply}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://5406d119dbdc8318fe2a54c9d65668410fc14d1f818c8fd4e277fdf42d924bb5
{ "func_code_index": [ 879, 984 ] }
2,292
PlatToken
PlatToken.sol
0x609b942a62e72aa6147b053bbf0728e9f256b542
Solidity
ERC20
contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _dec...
balanceOf
function balanceOf(address account) public view override returns (uint256) { return _balances[account]; }
/** * @dev See {IERC20-balanceOf}. */
NatSpecMultiLine
v0.6.6+commit.6c089d02
None
ipfs://5406d119dbdc8318fe2a54c9d65668410fc14d1f818c8fd4e277fdf42d924bb5
{ "func_code_index": [ 1042, 1166 ] }
2,293
PuppyToken
SafeMath.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; }
/** * @dev Multiplies two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 84, 259 ] }
2,294
PuppyToken
SafeMath.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; }
/** * @dev Integer division of two numbers, truncating the quotient. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 339, 606 ] }
2,295
PuppyToken
SafeMath.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; }
/** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 717, 829 ] }
2,296
PuppyToken
SafeMath.sol
0x7d952579e9936b1b31e6f5c177313fe0d1629635
Solidity
SafeMath
library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating ...
/** * @title SafeMath * @dev Math operations with safety checks that throw on error */
NatSpecMultiLine
add
function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; }
/** * @dev Adds two numbers, throws on overflow. */
NatSpecMultiLine
v0.4.18+commit.9cf6e910
bzzr://53966b522fee9bd9487e71f4de5b60d7c60f73981ab202213db2e5d782b98406
{ "func_code_index": [ 889, 1020 ] }
2,297
Starpunks
/home/projects/projects/nftsclub/contract/contracts/Starpunks.sol
0xa9f3065fea7d1ddc95df3dec97e5651c1745ac0d
Solidity
Starpunks
contract Starpunks is ERC721Enumerable, Ownable { uint public constant MAX_SUPPLY = 6038; string _baseTokenURI = "https://starpunk.nftsclub.io/"; bool public isActive = true; uint256 unitPrice = 60000000000000000; // 0.06 ether uint256 maxPerUser = 20; constructor() ERC721("Starpunks", "STP") { addre...
ownerWithdraw
function ownerWithdraw(uint256 amount, address _to, address _tokenAddr) public onlyOwner{ require(_to != address(0)); if(_tokenAddr == address(0)){ payable(_to).transfer(amount); }else{ StandardToken(_tokenAddr).transfer(_to, amount); } }
// allows the owner to withdraw BNB and other tokens
LineComment
v0.8.4+commit.c7e474f2
{ "func_code_index": [ 1605, 1877 ] }
2,298
ChrisBell
ChrisBell.sol
0xf071a4a5086a71af034ae895288da437e2722469
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
balanceOf
function balanceOf(address _owner) public view returns (uint256 balance);
/// @param _owner The address from which the balance will be retrieved /// @return The balance
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://16640e72790020e794e7ca23c1f63fdc0ec2ff68079b1598ec14333b7f5873b7
{ "func_code_index": [ 638, 716 ] }
2,299
ChrisBell
ChrisBell.sol
0xf071a4a5086a71af034ae895288da437e2722469
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
transfer
function transfer(address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://16640e72790020e794e7ca23c1f63fdc0ec2ff68079b1598ec14333b7f5873b7
{ "func_code_index": [ 953, 1035 ] }
2,300
ChrisBell
ChrisBell.sol
0xf071a4a5086a71af034ae895288da437e2722469
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
transferFrom
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
/// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://16640e72790020e794e7ca23c1f63fdc0ec2ff68079b1598ec14333b7f5873b7
{ "func_code_index": [ 1358, 1459 ] }
2,301
ChrisBell
ChrisBell.sol
0xf071a4a5086a71af034ae895288da437e2722469
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
approve
function approve(address _spender, uint256 _value) public returns (bool success);
/// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://16640e72790020e794e7ca23c1f63fdc0ec2ff68079b1598ec14333b7f5873b7
{ "func_code_index": [ 1749, 1835 ] }
2,302
ChrisBell
ChrisBell.sol
0xf071a4a5086a71af034ae895288da437e2722469
Solidity
EIP20Interface
contract EIP20Interface { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract sinc...
allowance
function allowance(address _owner, address _spender) public view returns (uint256 remaining);
/// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent
NatSpecSingleLine
v0.4.23+commit.124ca40d
bzzr://16640e72790020e794e7ca23c1f63fdc0ec2ff68079b1598ec14333b7f5873b7
{ "func_code_index": [ 2043, 2141 ] }
2,303
ChrisBell
ChrisBell.sol
0xf071a4a5086a71af034ae895288da437e2722469
Solidity
ChrisBell
contract ChrisBell is EIP20Interface { uint256 constant private MAX_UINT256 = 2**256 - 1; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) public allowed; /* NOTE: The following variables are OPTIONAL vanities. One does not have to include t...
ChrisBell
function ChrisBell( uint256 _initialAmount, string _tokenName, uint8 _decimalUnits, string _tokenSymbol ) public { balances[msg.sender] = _initialAmount; // Give the creator all initial tokens totalSupply = _initialAmount; // Update total supply n...
//An identifier: eg SBX
LineComment
v0.4.23+commit.124ca40d
bzzr://16640e72790020e794e7ca23c1f63fdc0ec2ff68079b1598ec14333b7f5873b7
{ "func_code_index": [ 726, 1384 ] }
2,304
FUNGI
openzeppelin-solidity\contracts\access\Ownable.sol
0xe918925a67b49897d0780b22b738610068a18bb4
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { addr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
owner
function owner() public view virtual returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://ba56817785df0acf93679ae6f6ce9a37dd503964e25888163ecfcef472d79be2
{ "func_code_index": [ 521, 613 ] }
2,305
FUNGI
openzeppelin-solidity\contracts\access\Ownable.sol
0xe918925a67b49897d0780b22b738610068a18bb4
Solidity
Ownable
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { addr...
/** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. ...
NatSpecMultiLine
renounceOwnership
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.8.7+commit.e28d00a7
MIT
ipfs://ba56817785df0acf93679ae6f6ce9a37dd503964e25888163ecfcef472d79be2
{ "func_code_index": [ 1172, 1325 ] }
2,306