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
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
_stakeRemove
function _stakeRemove(StakeStore[] storage stakeListRef, uint256 stakeIndex) internal { uint256 lastIndex = stakeListRef.length - 1; /* Skip the copy if element to be removed is already the last element */ if (stakeIndex != lastIndex) { /* Copy last element to the requested element's...
/** * @dev Efficiently delete from an unordered array by moving the last element * to the "hole" and reducing the array length. Can change the order of the list * and invalidate previously held indexes. * @notice stakeListRef length and stakeIndex are already ensured valid in stakeEnd() * @param stakeLis...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 14966, 15629 ] }
4,607
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
GlobalsAndUtility
contract GlobalsAndUtility is ERC20 { /* XfLobbyEnter */ event XfLobbyEnter( uint256 timestamp, uint256 enterDay, uint256 indexed entryIndex, uint256 indexed rawAmount ); /* XfLobbyExit */ event XfLobbyExit( uint256 timestamp, ...
_estimatePayoutRewardsDay
function _estimatePayoutRewardsDay(GlobalsCache memory g, uint256 stakeSharesParam, uint256 day) internal view returns (uint256 payout) { /* Prevent updating state for this estimation */ GlobalsCache memory gTmp; _globalsCacheSnapshot(g, gTmp); DailyRoundState memory rs; ...
/** * @dev Estimate the stake payout for an incomplete day * @param g Cache of stored globals * @param stakeSharesParam Param from stake to calculate bonuses for * @param day Day to calculate bonuses for * @return Payout in Suns */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 15910, 16627 ] }
4,608
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
stakeStart
function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { GlobalsCache memory g; GlobalsCache memory gSnapshot; _globalsLoad(g, gSnapshot); /* Enforce the minimum stake time */ require(newStakedDays >= MIN_STAKE_DAYS, "CSNE: newStakedDays lower than minimum"); ...
/** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 220, 864 ] }
4,609
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
stakeGoodAccounting
function stakeGoodAccounting(address stakerAddr, uint256 stakeIndex, uint40 stakeIdParam) external { GlobalsCache memory g; GlobalsCache memory gSnapshot; _globalsLoad(g, gSnapshot); /* require() is more informative than the default assert() */ require(stakeLists[stakerAddr].length...
/** * @dev PUBLIC FACING: Unlocks a completed stake, distributing the proceeds of any penalty * immediately. The staker must still call stakeEnd() to retrieve their stake return (if any). * @param stakerAddr Address of staker * @param stakeIndex Index of stake within stake list * @param stakeIdParam The ...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1232, 3030 ] }
4,610
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
stakeEnd
function stakeEnd(uint256 stakeIndex, uint40 stakeIdParam) external { GlobalsCache memory g; GlobalsCache memory gSnapshot; _globalsLoad(g, gSnapshot); StakeStore[] storage stakeListRef = stakeLists[msg.sender]; /* require() is more informative than the default assert() */ re...
/** * @dev PUBLIC FACING: Closes a stake. The order of the stake list can change so * a stake id is used to reject stale indexes. * @param stakeIndex Index of stake within stake list * @param stakeIdParam The stake's id */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 3295, 6104 ] }
4,611
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
stakeCount
function stakeCount(address stakerAddr) external view returns (uint256) { return stakeLists[stakerAddr].length; }
/** * @dev PUBLIC FACING: Return the current stake count for a staker address * @param stakerAddr Address of staker */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 6251, 6422 ] }
4,612
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
_stakeStart
function _stakeStart( GlobalsCache memory g, uint256 newStakedSuns, uint256 newStakedDays ) internal { /* Enforce the maximum stake time */ require(newStakedDays <= MAX_STAKE_DAYS, "CSNE: newStakedDays higher than maximum"); uint256 bonusSuns = _stakeStartBonusSuns(newStake...
/** * @dev Open a stake. * @param g Cache of stored globals * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 6621, 8397 ] }
4,613
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
_calcPayoutRewards
function _calcPayoutRewards( GlobalsCache memory g, uint256 stakeSharesParam, uint256 beginDay, uint256 endDay ) private view returns (uint256 payout) { uint256 counter; for (uint256 day = beginDay; day < endDay; day++) { uint256 dayPayout; d...
/** * @dev Calculates total stake payout including rewards for a multi-day range * @param g Cache of stored globals * @param stakeSharesParam Param from stake to calculate bonuses for * @param beginDay First day to calculate bonuses for * @param endDay Last day (non-inclusive) of range to calculate bonus...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 8793, 9714 ] }
4,614
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
_calcPayoutDividendsReward
function _calcPayoutDividendsReward( GlobalsCache memory g, uint256 stakeSharesParam, uint256 beginDay, uint256 endDay ) private view returns (uint256 payout) { for (uint256 day = beginDay; day < endDay; day++) { uint256 dayPayout; /* user's share ...
/** * @dev Calculates user dividends * @param g Cache of stored globals * @param stakeSharesParam Param from stake to calculate bonuses for * @param beginDay First day to calculate bonuses for * @param endDay Last day (non-inclusive) of range to calculate bonuses for * @return Payout in Suns */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 10066, 10693 ] }
4,615
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
StakeableToken
contract StakeableToken is GlobalsAndUtility { /** * @dev PUBLIC FACING: Open a stake. * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */ function stakeStart(uint256 newStakedSuns, uint256 newStakedDays) external { ...
_stakeStartBonusSuns
function _stakeStartBonusSuns(uint256 newStakedSuns, uint256 newStakedDays) private pure returns (uint256 bonusSuns) { uint256 cappedExtraDays = 0; /* Must be more than 1 day for Longer-Pays-Better */ if (newStakedDays > 1) { cappedExtraDays = newStakedDays <= LP...
/** * @dev Calculate bonus Suns for a new stake, if any * @param newStakedSuns Number of Suns to stake * @param newStakedDays Number of days to stake */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 10881, 11593 ] }
4,616
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TransformableToken
contract TransformableToken is StakeableToken { /** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */ function xfLobbyEnter(address referrerAddr) external payable...
xfLobbyEnter
function xfLobbyEnter(address referrerAddr) external payable { uire(_currentDay() > 0, "CSNE: Auction has not begun yet"); uint256 enterDay = _currentDay(); uint256 rawAmount = msg.value; require(rawAmount != 0, "CSNE: Amount required"); XfLobbyQueueStore storage qRef = xfLobbyMe...
/** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 236, 960 ] }
4,617
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TransformableToken
contract TransformableToken is StakeableToken { /** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */ function xfLobbyEnter(address referrerAddr) external payable...
xfLobbyExit
function xfLobbyExit(uint256 enterDay, uint256 count) external { require(enterDay < _currentDay(), "CSNE: Round is not complete"); XfLobbyQueueStore storage qRef = xfLobbyMembers[enterDay][msg.sender]; uint256 headIndex = qRef.headIndex; uint256 endIndex; if (count != 0) { ...
/** * @dev PUBLIC FACING: Leave the transform lobby after the round is complete * @param enterDay Day number when the member entered * @param count Number of queued-enters to exit (optional; 0 for all) */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 1200, 3160 ] }
4,618
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TransformableToken
contract TransformableToken is StakeableToken { /** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */ function xfLobbyEnter(address referrerAddr) external payable...
xfLobbyRange
function xfLobbyRange(uint256 beginDay, uint256 endDay) external view returns (uint256[] memory list) { require( beginDay < endDay && endDay <= _currentDay(), "CSNE: invalid range" ); list = new uint256[](endDay - beginDay); uint256 src = beginDay; u...
/** * @dev PUBLIC FACING: External helper to return multiple values of xfLobby[] with * a single call * @param beginDay First day of data range * @param endDay Last day (non-inclusive) of data range * @return Fixed array of values */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 3443, 3961 ] }
4,619
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TransformableToken
contract TransformableToken is StakeableToken { /** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */ function xfLobbyEnter(address referrerAddr) external payable...
xfFlush
function xfFlush() external { GlobalsCache memory g; GlobalsCache memory gSnapshot; _globalsLoad(g, gSnapshot); require(address(this).balance != 0, "CSNE: No value"); require(LAST_FLUSHED_DAY < _currentDay(), "CSNE: Invalid day"); _dailyDataUpdateAuto(g); FLU...
/** * @dev PUBLIC FACING: Release 5% share from daily dividends for Website Maintenance and to add liquidity for Tokens in JustSwap Listing to support community */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 4146, 4655 ] }
4,620
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TransformableToken
contract TransformableToken is StakeableToken { /** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */ function xfLobbyEnter(address referrerAddr) external payable...
xfLobbyEntry
function xfLobbyEntry(address memberAddr, uint256 enterDay, uint256 entryIndex) external view returns (uint256 rawAmount, address referrerAddr) { XfLobbyEntryStore storage entry = xfLobbyMembers[enterDay][memberAddr].entries[entryIndex]; require(entry.rawAmount != 0, "CSNE: Param invalid...
/** * @dev PUBLIC FACING: Return a current lobby member queue entry. * Only needed due to limitations of the standard ABI encoder. * @param entryIndex Entries to index * @param enterDay Day number when the member entered * @param memberAddr TRX address of the lobby member * @return 1: Raw amount that ...
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 5088, 5505 ] }
4,621
CSNE
CSNE.sol
0x7245b0fe11c4ae2978c8a8d29f3b74477ce6f789
Solidity
TransformableToken
contract TransformableToken is StakeableToken { /** * @dev PUBLIC FACING: Enter the auction lobby for the current round * @param referrerAddr TRX address of referring user (optional; 0x0 for no referrer) */ function xfLobbyEnter(address referrerAddr) external payable...
xfLobbyPendingDays
function xfLobbyPendingDays(address memberAddr) external view returns (uint256[XF_LOBBY_DAY_WORDS] memory words) { uint256 day = _currentDay() + 1; while (day-- != 0) { if (xfLobbyMembers[day][memberAddr].tailIndex > xfLobbyMembers[day][memberAddr].headIndex) { wo...
/** * @dev PUBLIC FACING: Return the lobby days that a user is in with a single call * @param memberAddr TRX address of the user * @return Bit vector of lobby day numbers */
NatSpecMultiLine
v0.5.10+commit.5a6ea5b1
None
bzzr://15b15fb6928768143d29c849842195f59d6c58b81754cc547f6ae35aeec04bef
{ "func_code_index": [ 5714, 6166 ] }
4,622
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
formatDecimals
function formatDecimals(uint256 _value) internal returns (uint256 ) { return _value * 10 ** decimals; }
// 转换
LineComment
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 1143, 1265 ] }
4,623
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
GENEToken
function GENEToken( address _ethFundDeposit, uint256 _currentSupply) { ethFundDeposit = _ethFundDeposit; isFunding = false; //通过控制预CrowdS ale状态 fundingStartBlock = 0; fundingStopBlock = 0; currentSupply = formatDecimals(_currentSupply); totalSuppl...
// constructor
LineComment
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 1289, 1781 ] }
4,624
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
setTokenExchangeRate
function setTokenExchangeRate(uint256 _tokenExchangeRate) isOwner external { if (_tokenExchangeRate == 0) throw; if (_tokenExchangeRate == tokenExchangeRate) throw; tokenExchangeRate = _tokenExchangeRate; }
/// 设置token汇率
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 1879, 2125 ] }
4,625
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
increaseSupply
function increaseSupply (uint256 _value) isOwner external { uint256 value = formatDecimals(_value); if (value + currentSupply > totalSupply) throw; currentSupply = safeAdd(currentSupply, value); IncreaseSupply(value); }
/// @dev 超发token处理
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 2153, 2418 ] }
4,626
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
decreaseSupply
function decreaseSupply (uint256 _value) isOwner external { uint256 value = formatDecimals(_value); if (value + tokenRaised > currentSupply) throw; currentSupply = safeSubtract(currentSupply, value); DecreaseSupply(value); }
/// @dev 被盗token处理
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 2446, 2719 ] }
4,627
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
startFunding
function startFunding (uint256 _fundingStartBlock, uint256 _fundingStopBlock) isOwner external { if (isFunding) throw; if (_fundingStartBlock >= _fundingStopBlock) throw; if (block.number >= _fundingStartBlock) throw; fundingStartBlock = _fundingStartBlock; fundingStopBlock = _fundingStopBlo...
/// 启动区块检测 异常的处理
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 2746, 3128 ] }
4,628
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
stopFunding
function stopFunding() isOwner external { if (!isFunding) throw; isFunding = false; }
/// 关闭区块异常处理
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 3151, 3264 ] }
4,629
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
setMigrateContract
function setMigrateContract(address _newContractAddr) isOwner external { if (_newContractAddr == newContractAddr) throw; newContractAddr = _newContractAddr; }
/// 开发了一个新的合同来接收token(或者更新token)
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 3306, 3492 ] }
4,630
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
changeOwner
function changeOwner(address _newFundDeposit) isOwner() external { if (_newFundDeposit == address(0x0)) throw; ethFundDeposit = _newFundDeposit; }
/// 设置新的所有者地址
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 3515, 3689 ] }
4,631
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
migrate
function migrate() external { if(isFunding) throw; if(newContractAddr == address(0x0)) throw; uint256 tokens = balances[msg.sender]; if (tokens == 0) throw; balances[msg.sender] = 0; tokenMigrated = safeAdd(tokenMigrated, tokens); IMigrationContract newContract = IMigrationCo...
///转移token到新的合约
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 3714, 4225 ] }
4,632
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
transferETH
function transferETH() isOwner external { if (this.balance == 0) throw; if (!ethFundDeposit.send(this.balance)) throw; }
/// 转账ETH 到GENE团队
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 4252, 4400 ] }
4,633
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
allocateToken
function allocateToken (address _addr, uint256 _eth) isOwner external { if (_eth == 0) throw; if (_addr == address(0x0)) throw; uint256 tokens = safeMult(formatDecimals(_eth), tokenExchangeRate); if (tokens + tokenRaised > currentSupply) throw; tokenRaised = safeAdd(tokenRaised, tokens); ...
/// 将GENE token分配到预处理地址。
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 4435, 4878 ] }
4,634
GENEToken
GENEToken.sol
0xbb7c85dee0074a00bd0c13c85abe2ecbc7779914
Solidity
GENEToken
contract GENEToken is StandardToken, SafeMath { // metadata string public constant name = "GENE"; string public constant symbol = "GE"; uint256 public constant decimals = 18; string public version = "1.0"; // contracts address public ethFundDeposit; // ETH存放地址 a...
function () payable { if (!isFunding) throw; if (msg.value == 0) throw; if (block.number < fundingStartBlock) throw; if (block.number > fundingStopBlock) throw; uint256 tokens = safeMult(msg.value, tokenExchangeRate); if (tokens + tokenRaised > currentSupply) throw; tokenRais...
/// 购买token
NatSpecSingleLine
v0.4.21+commit.dfe3193c
None
bzzr://4a571c11eb8bd6ba87335de5fc47943ed94ef9e2a4fa15d54f86ee351bd31848
{ "func_code_index": [ 4899, 5386 ] }
4,635
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
function() noReentrancy payable{ require(msg.value != 0); // Throw if value is 0 require(crowdsaleState != state.crowdsaleEnded);// Check if crowdsale has ended bool stateChanged = checkCrowdsaleState(); // Check blocks and calibrate crowdsale state if (crowdsaleState == stat...
// // Unnamed function that runs when eth is sent to the contract //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 1503, 2794 ] }
4,636
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
checkCrowdsaleState
function checkCrowdsaleState() internal returns (bool){ if (ethRaised == maxCap && crowdsaleState != state.crowdsaleEnded){ // Check if max cap is reached crowdsaleState = state.crowdsaleEnded; MaxCapReached(block.number); ...
// // Check crowdsale state and calibrate it //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 2854, 5337 ] }
4,637
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
refundTransaction
function refundTransaction(bool _stateChanged) internal{ if (_stateChanged){ msg.sender.transfer(msg.value); }else{ revert(); } }
// // Decide if throw or only return ether //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 5395, 5559 ] }
4,638
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
calculateMaxContribution
function calculateMaxContribution(address _contributor) constant returns (uint maxContribution){ uint maxContrib; if (crowdsaleState == state.priorityPass){ // Check if we are in priority pass maxContrib = contributorList[_contributor].priorityPassAllowance - contributorList[_contributor].contributionAmou...
// // Calculate how much user can contribute //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 5619, 6251 ] }
4,639
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
processTransaction
function processTransaction(address _contributor, uint _amount) internal{ uint maxContribution = calculateMaxContribution(_contributor); // Calculate max users contribution uint contributionAmount = _amount; uint returnAmount = 0; if (maxContribution < _amount){ ...
// // Issue tokens and return if there is overflow //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 6317, 8316 ] }
4,640
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
editContributors
function editContributors(address[] _contributorAddresses, uint[] _contributorPPAllowances) onlyOwner{ require(_contributorAddresses.length == _contributorPPAllowances.length); // Check if input data is correct for(uint cnt = 0; cnt < _contributorAddresses.length; cnt++){ if (contributorList[_contributorAd...
// // Push contributor data to the contract before the crowdsale so that they are eligible for priorit pass //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 8439, 9234 ] }
4,641
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
salvageTokensFromContract
function salvageTokensFromContract(address _tokenAddress, address _to, uint _amount) onlyOwner{ IERC20Token(_tokenAddress).transfer(_to, _amount); }
// // Method is needed for recovering tokens accedentaly sent to token address //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 9328, 9487 ] }
4,642
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
withdrawEth
function withdrawEth() onlyOwner{ require(this.balance != 0); require(ethRaised >= minCap); pendingEthWithdrawal = this.balance; }
// // withdrawEth when minimum cap is reached //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 9548, 9701 ] }
4,643
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
claimEthIfFailed
function claimEthIfFailed(){ require(block.number > crowdsaleEndedBlock && ethRaised < minCap); // Check if crowdsale has failed require(contributorList[msg.sender].contributionAmount > 0); // Check if contributor has contributed to crowdsaleEndedBlock require(!hasClaimedEthWhenFail[msg.sender]); ...
// // Users can claim their contribution if min cap is not raised //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 10015, 10863 ] }
4,644
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
batchReturnEthIfFailed
function batchReturnEthIfFailed(uint _numberOfReturns) onlyOwner{ require(block.number > crowdsaleEndedBlock && ethRaised < minCap); // Check if crowdsale has failed address currentParticipantAddress; uint contribution; for (uint cnt = 0; cnt < _numberOfReturns; cnt++){ currentParticipan...
// // Owner can batch return contributors contributions(eth) //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 10939, 12245 ] }
4,645
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
withdrawRemainingBalanceForManualRecovery
function withdrawRemainingBalanceForManualRecovery() onlyOwner{ require(this.balance != 0); // Check if there are any eth to claim require(block.number > crowdsaleEndedBlock); // Check if crowdsale is over require(contributorIndexes[nextContributorToClaim] == 0x...
// // If there were any issue/attach with refund owner can withraw eth at the end for manual recovery //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 12362, 12830 ] }
4,646
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
setMultisigAddress
function setMultisigAddress(address _newAddress) onlyOwner{ multisigAddress = _newAddress; }
// // Owner can set multisig address for crowdsale //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 12896, 12999 ] }
4,647
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
setToken
function setToken(address _newAddress) onlyOwner{ token = IToken(_newAddress); }
// // Owner can set token address where mints will happen //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 13072, 13163 ] }
4,648
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
claimCoreTeamsTokens
function claimCoreTeamsTokens(address _to) onlyOwner{ require(crowdsaleState == state.crowdsaleEnded); // Check if crowdsale has ended require(!ownerHasClaimedTokens); // Check if owner has allready claimed tokens uint devReward = maxTokenSupply - token.totalSupply()...
// // Owner can claim teams tokens when crowdsale has successfully ended //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 13251, 13924 ] }
4,649
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
claimCofounditTokens
function claimCofounditTokens(){ require(msg.sender == cofounditAddress); // Check if sender is cofoundit require(crowdsaleState == state.crowdsaleEnded); // Check if crowdsale has ended require(!cofounditHasClaimedTokens); // Check if cofoundit has allready claimed tokens tok...
// // Cofoundit can claim their tokens //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 13978, 14502 ] }
4,650
DPPCrowdsale
DPPCrowdsale.sol
0x6f0d792b540afa2c8772b9ba4805e7436ad8413e
Solidity
Crowdsale
contract Crowdsale is ReentrnacyHandlingContract, Owned{ struct ContributorData{ uint priorityPassAllowance; bool isActive; uint contributionAmount; uint tokensIssued; } mapping(address => ContributorData) public contributorList; uint nextContributorIndex; mapping(uint => address)...
setCrowdsaleBlocks
function setCrowdsaleBlocks(uint _presaleStartBlock, uint _presaleUnlimitedStartBlock, uint _crowdsaleStartBlock, uint _crowdsaleEndedBlock) onlyOwner{ require(crowdsaleState == state.pendingStart); // Check if crowdsale has started require(_presaleStartBlock != 0); // C...
// // Before crowdsale starts owner can calibrate blocks of crowdsale stages //
LineComment
v0.4.16+commit.d7661dd9
bzzr://ff2415ea20052542e44eecc0b9e20c01f2afed4b77fb89f3252b0fa9c88ab9ec
{ "func_code_index": [ 14687, 15881 ] }
4,651
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
Context
contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (addres...
_msgSender
function _msgSender() internal view returns (address payable) { return msg.sender; }
// solhint-disable-previous-line no-empty-blocks
LineComment
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 265, 368 ] }
4,652
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
owner
function owner() public view returns (address) { return _owner; }
/** * @dev Returns the address of the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 497, 581 ] }
4,653
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
isOwner
function isOwner() public view returns (bool) { return _msgSender() == _owner; }
/** * @dev Returns true if the caller is the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 863, 962 ] }
4,654
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
renounceOwnership
function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
/** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 1308, 1453 ] }
4,655
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
transferOwnership
function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 1603, 1717 ] }
4,656
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
Ownable
contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSend...
_transferOwnership
function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; }
/** * @dev Transfers ownership of the contract to a new account (`newOwner`). */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 1818, 2052 ] }
4,657
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 251, 437 ] }
4,658
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
sub
function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); }
/** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 707, 848 ] }
4,659
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
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. * * _Available since v2.4.0._ */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 1180, 1377 ] }
4,660
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
mul
function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; ...
/** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 1623, 2099 ] }
4,661
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
div
function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); }
/** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to reve...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 2562, 2699 ] }
4,662
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
div
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; ...
/** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an in...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 3224, 3574 ] }
4,663
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
mod
function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consumi...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 4026, 4161 ] }
4,664
MythicalDice
MythicalDice.sol
0xb68a6191ccbc0e4bf74af1635aa7b2ab7c09f0df
Solidity
SafeMath
library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256...
mod
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; }
/** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcod...
NatSpecMultiLine
v0.5.16+commit.9c3226ce
None
bzzr://e650842e5c31d62e03cf0e61f20d86de70486b27cce654e1d44687a78bcd3a23
{ "func_code_index": [ 4675, 4846 ] }
4,665
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
balanceOf
function balanceOf(address account) external view returns (uint256);
/** * @dev Returns the amount of tokens owned by `account`. */
NatSpecMultiLine
v0.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 165, 238 ] }
4,666
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 462, 544 ] }
4,667
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 823, 911 ] }
4,668
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1575, 1654 ] }
4,669
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
IERC20
interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipi...
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1967, 2069 ] }
4,670
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 259, 445 ] }
4,671
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 723, 864 ] }
4,672
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1162, 1359 ] }
4,673
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1613, 2089 ] }
4,674
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 2560, 2697 ] }
4,675
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 3188, 3471 ] }
4,676
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 3931, 4066 ] }
4,677
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 4546, 4717 ] }
4,678
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codeha...
/** * @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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 606, 1230 ] }
4,679
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 2160, 2562 ] }
4,680
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 3318, 3496 ] }
4,681
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 3721, 3922 ] }
4,682
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 4292, 4523 ] }
4,683
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
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"); return _functionCallWithValue(target, data, value, errorMessage); }
/** * @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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 4774, 5095 ] }
4,684
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 566, 650 ] }
4,685
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1209, 1362 ] }
4,686
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1512, 1761 ] }
4,687
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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
lock
function lock(uint256 time) public virtual onlyOwner { _previousOwner = _owner; _owner = address(0); _lockTime = now + time; emit OwnershipTransferred(_owner, address(0)); }
//Locks the contract for owner for the amount of time provided
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 1929, 2148 ] }
4,688
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Ownable
contract Ownable is Context { address private _owner; address private _previousOwner; uint256 private _lockTime; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */...
/** * @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
unlock
function unlock() public virtual { require(_previousOwner == msg.sender, "You don't have permission to unlock"); require(now > _lockTime , "Contract is locked until 7 days"); emit OwnershipTransferred(_owner, _previousOwner); _owner = _previousOwner; }
//Unlocks the contract for owner when _lockTime is exceeds
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 2219, 2517 ] }
4,689
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Fubuki
contract Fubuki is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bo...
/* To be modified before deploying this contract for a project: - Uniswap Router address if not on ETH - Dev address */
Comment
//to recieve ETH from uniswapV2Router when swapping
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 9469, 9503 ] }
4,690
Fubuki
Fubuki.sol
0xf70d834287bbd0324ebb6a5fd20334a16d695256
Solidity
Fubuki
contract Fubuki is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => bo...
/* To be modified before deploying this contract for a project: - Uniswap Router address if not on ETH - Dev address */
Comment
_tokenTransfer
function _tokenTransfer(address sender, address recipient, uint256 amount,bool takeFee) private { if(!takeFee) removeAllFee(); if (_isExcluded[sender] && !_isExcluded[recipient]) { _transferFromExcluded(sender, recipient, amount); } else if (!_isExcluded[sender] && _isExcluded...
//this method is responsible for taking all fee, if takeFee is true
LineComment
v0.6.12+commit.27d51765
MIT
ipfs://dfd7e7ed6489eac8e7c41b6125b0a39d58298c2b36bd66f46857a91853b0164c
{ "func_code_index": [ 15556, 16395 ] }
4,691
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 259, 445 ] }
4,692
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 723, 864 ] }
4,693
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 1162, 1359 ] }
4,694
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 1613, 2089 ] }
4,695
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 2560, 2697 ] }
4,696
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 3188, 3471 ] }
4,697
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 3931, 4066 ] }
4,698
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 4546, 4717 ] }
4,699
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 94, 154 ] }
4,700
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 237, 310 ] }
4,701
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 534, 616 ] }
4,702
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 895, 983 ] }
4,703
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 1647, 1726 ] }
4,704
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 2039, 2141 ] }
4,705
Authmen
Authmen.sol
0x89aeca7d3cc04f50e9d2bb635ad84fe8f7e77a9d
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.6.12+commit.27d51765
MIT
ipfs://e8b107b27904a2c18838844d3321f3b8812c285a7dde18e816b29dd5fec9faf7
{ "func_code_index": [ 874, 962 ] }
4,706