file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/cont...
* @notice Refund all token including profit based on daoToken hold by sender @notice Only available after contract in vesting state Requirements: - Only Vault can call this function - This contract is in vesting state/
function refund(uint256 _amount) external onlyVault { require(isVesting, "Not in vesting state"); token.safeTransfer(tx.origin, _amount); pool = pool.sub(_amount); }
1,447,346
[ 1, 21537, 777, 1147, 6508, 450, 7216, 2511, 603, 15229, 1345, 6887, 635, 5793, 225, 5098, 2319, 1839, 6835, 316, 331, 10100, 919, 29076, 30, 300, 5098, 17329, 848, 745, 333, 445, 300, 1220, 6835, 353, 316, 331, 10100, 919, 19, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16255, 12, 11890, 5034, 389, 8949, 13, 3903, 1338, 12003, 288, 203, 3639, 2583, 12, 291, 58, 10100, 16, 315, 1248, 316, 331, 10100, 919, 8863, 203, 203, 3639, 1147, 18, 4626, 5912, 12, 978, 18, 10012, 16, 389, 8949, 1...
./full_match/1/0xD736d2C76fBa2BA5A217Fd4eDFa1b231deEeB29d/sources/contracts/GBM/GBM.sol
owner = msg.sender;
{ owner = address(0x2a2C412c440Dfb0E7cae46EFF581e3E26aFd1Cd0); }
17,112,941
[ 1, 8443, 273, 1234, 18, 15330, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 3410, 273, 1758, 12, 20, 92, 22, 69, 22, 39, 24, 2138, 71, 6334, 20, 40, 19192, 20, 41, 27, 5353, 73, 8749, 31299, 8204, 21, 73, 23, 41, 5558, 69, 27263, 21, 19728, 20, 1769, 203, 565, 289, 203, 203, ...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asser...
Update the global var settings
totalHostContentEarning = totalHostContentEarning.add(_totalEarning);
10,007,531
[ 1, 1891, 326, 2552, 569, 1947, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1082, 202, 4963, 2594, 1350, 41, 9542, 273, 2078, 2594, 1350, 41, 9542, 18, 1289, 24899, 4963, 41, 9542, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x88e13724446B37dDaBef9Da746035d1e680C1206/sources/contracts/Proxy.sol
* @dev This abstract contract provides getters and event emitting update functions for _Available since v4.1._ @custom:oz-upgrades-unsafe-allow delegatecall/ This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
abstract contract ERC1967Upgrade { bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; event Upgraded(address indexed implementatio...
4,860,943
[ 1, 2503, 8770, 6835, 8121, 23849, 471, 871, 3626, 1787, 1089, 4186, 364, 389, 5268, 3241, 331, 24, 18, 21, 6315, 632, 3662, 30, 11142, 17, 416, 13088, 17, 318, 4626, 17, 5965, 7152, 1991, 19, 1220, 353, 326, 417, 24410, 581, 17, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 17801, 6835, 4232, 39, 3657, 9599, 10784, 288, 203, 565, 1731, 1578, 3238, 5381, 389, 14555, 8720, 67, 55, 1502, 56, 273, 374, 92, 7616, 2163, 8313, 507, 2313, 31835, 1578, 4848, 329, 20, 73, 27, 29488, 74, 27, 952, 26, 2414, 2...
./full_match/1/0x4A20F53E612E6Ab515A46EcA9dd36a290a2287F7/sources/contracts/protocol/core/callable/structs/CallableCreditLine.sol
Returns the total interest accrued
function previewTotalInterestAccrued( CallableCreditLine storage cl ) internal view returns (uint256) { return cl.totalInterestAccruedAt(block.timestamp); }
9,813,940
[ 1, 1356, 326, 2078, 16513, 4078, 86, 5957, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 10143, 5269, 29281, 8973, 86, 5957, 12, 203, 565, 10464, 16520, 1670, 2502, 927, 203, 225, 262, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 927, 18, 4963, 29281, 8973, 86, 5957, 861, 12, 2629, 18, 5508, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns...
* @dev modifier which check the status of user and continue only if msg.sender is administrator/
modifier onlyOwner() { require(ownerList[msg.sender] > 0, "onlyOwner exception"); _; }
14,713,219
[ 1, 20597, 1492, 866, 326, 1267, 434, 729, 471, 1324, 1338, 309, 1234, 18, 15330, 353, 22330, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5541, 1435, 288, 203, 3639, 2583, 12, 8443, 682, 63, 3576, 18, 15330, 65, 405, 374, 16, 315, 3700, 5541, 1520, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.7.4;pragma experimental ABIEncoderV2; import "./ForwardingResolver.sol"; import "./profiles/StealthKeyResolver.sol"; contract ForwardingStealthKeyResolver is ForwardingResolver, StealthKeyResolver { constructor(ENS _ens, PublicResolver _fallbackResolver) ForwardingResolver(_ens, _fallbackResol...
* Sets the ABI associated with an ENS node. Nodes may have one ABI of each content type. To remove an ABI, set it to the empty string. @param node The node to update. @param contentType The content type of the ABI @param data The ABI data./ Content types must be powers of 2
function setABI(bytes32 node, uint256 contentType, bytes calldata data) virtual external authorised(node) { require(((contentType - 1) & contentType) == 0); abis[node][contentType] = data; emit ABIChanged(node, contentType); }
388,390
[ 1, 2785, 326, 10336, 45, 3627, 598, 392, 512, 3156, 756, 18, 14037, 2026, 1240, 1245, 10336, 45, 434, 1517, 913, 618, 18, 2974, 1206, 392, 10336, 45, 16, 444, 518, 358, 326, 1008, 533, 18, 225, 756, 1021, 756, 358, 1089, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 2090, 45, 12, 3890, 1578, 756, 16, 2254, 5034, 5064, 16, 1731, 745, 892, 501, 13, 5024, 3903, 2869, 5918, 12, 2159, 13, 288, 203, 3639, 2583, 12443, 12, 22194, 300, 404, 13, 473, 5064, 13, 422, 374, 1769, 203, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
притаиться в темноте
rus_verbs:притаиться{},
5,481,321
[ 1, 145, 128, 146, 227, 145, 121, 146, 229, 145, 113, 145, 121, 146, 229, 146, 239, 146, 228, 146, 242, 225, 145, 115, 225, 146, 229, 145, 118, 145, 125, 145, 126, 145, 127, 146, 229, 145, 118, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 128, 146, 227, 145, 121, 146, 229, 145, 113, 145, 121, 146, 229, 146, 239, 146, 228, 146, 242, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/5/0xB9524129FE5D43aC921f1174233D27d1eb1563e8/sources/RainbowTokenBatchSender.sol
@dev Sends occasional airdrop tokens to the owner
function collect(IERC20Transfer token, uint amount) external { require(_isEntered == false, "already entered"); _isEntered = true; token.transfer(_owner, amount); _isEntered = false; }
16,865,787
[ 1, 10501, 9145, 345, 285, 287, 279, 6909, 1764, 2430, 358, 326, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3274, 12, 45, 654, 39, 3462, 5912, 1147, 16, 2254, 3844, 13, 3903, 288, 203, 3639, 2583, 24899, 291, 10237, 329, 422, 629, 16, 315, 17583, 16219, 8863, 203, 3639, 389, 291, 10237, 329, 273, 638, 31, 203, 3639, 1147, 1...
pragma solidity 0.4.26; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two n...
Charge taker fee to seller. */
chargeProtocolFee(sell.maker, buy.feeRecipient, buy.takerRelayerFee);
251,963
[ 1, 17649, 268, 6388, 14036, 358, 29804, 18, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 13765, 5752, 14667, 12, 87, 1165, 18, 29261, 16, 30143, 18, 21386, 18241, 16, 30143, 18, 88, 6388, 1971, 1773, 14667, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** * Copyright 2017-2022, OokiDao. All Rights Reserved. * Licensed under the Apache License, Version 2.0. */ pragma solidity 0.5.17; pragma experimental ABIEncoderV2; import "State.sol"; import "LoanMaintenanceEvents.sol"; import "PausableGuardian.sol"; import "InterestHandler.sol"; import "InterestOracle.sol"; i...
interest rate defined by the creator of this order
uint256 interestRate;
213,851
[ 1, 2761, 395, 4993, 2553, 635, 326, 11784, 434, 333, 1353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 16513, 4727, 31, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.24; import "zos-lib/contracts/Initializable.sol"; // Generates an 8-bit winning bitstring // TODO: READ THIS: https://medium.com/coinmonks/lottery-as-a-smart-contract-the-execution-904a26201338 contract LotteryGame is Initializable { uint256 public numRounds; // Number of rounds uint256 ...
Make this private for production!
byte public winner;
14,044,487
[ 1, 6464, 333, 3238, 364, 12449, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1160, 1071, 5657, 1224, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; /* * ##### ## ##### ## ### ## ### ### * ###### /### ###### / #### / /#### #### / ### ### * /# / / ### /# / / ####/ / ### /####/ ## ## * ...
only owner address can transfer PHX */
function ownerTransferPHX(address sendTo, uint amount) public onlyOwner { contractBalance = safeSub(contractBalance, amount); setMaxProfit(); require(!PHXTKN.transfer(sendTo, amount)); emit LogOwnerTransfer(sendTo, amount);
5,812,949
[ 1, 3700, 3410, 1758, 848, 7412, 15490, 60, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3410, 5912, 8939, 60, 12, 2867, 29091, 16, 2254, 3844, 13, 1071, 7010, 202, 202, 3700, 5541, 203, 565, 288, 540, 203, 3639, 6835, 13937, 273, 4183, 1676, 12, 16351, 13937, 16, 3844, 1769, 1082, 203, 3639, 10851, 626, 72...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; /** * @title Proxy for ERC20 tokens. */ contract ERC20Proxy is TransparentUpgradeableProxy { constructor(address _logic, address _admin, bytes memory _data) TransparentUpgra...
* @title Proxy for ERC20 tokens./
contract ERC20Proxy is TransparentUpgradeableProxy { pragma solidity 0.8.0; constructor(address _logic, address _admin, bytes memory _data) TransparentUpgradeableProxy(_logic, _admin, _data) payable {} }
1,238,339
[ 1, 3886, 364, 4232, 39, 3462, 2430, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 3886, 353, 2604, 2938, 10784, 429, 3886, 288, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 20, 31, 203, 565, 3885, 12, 2867, 389, 28339, 16, 1758, 389, 3666, 16, 1731, 3778, 389, 892, 13, 2604, 2938, 1078...
./full_match/11155111/0x945217B1bA47Ad0834e838ae173FB8B4B9135314/sources/src/NFTDriver.sol
@notice Returns the NFTDriver storage. @return storageRef The storage. slither-disable-next-line assembly
function _nftDriverStorage() internal view returns (NFTDriverStorage storage storageRef) { bytes32 slot = _nftDriverStorageSlot; assembly { storageRef.slot := slot } }
3,820,079
[ 1, 1356, 326, 423, 4464, 4668, 2502, 18, 327, 2502, 1957, 1021, 2502, 18, 2020, 2927, 17, 8394, 17, 4285, 17, 1369, 19931, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 82, 1222, 4668, 3245, 1435, 2713, 1476, 1135, 261, 50, 4464, 4668, 3245, 2502, 2502, 1957, 13, 288, 203, 3639, 1731, 1578, 4694, 273, 389, 82, 1222, 4668, 3245, 8764, 31, 203, 3639, 19931, 288, 203, 5411, 2502, 195...
pragma solidity 0.4.24; import "./RoleCreator.sol"; import "../common/Check.sol"; import "../../interaction/interface/IRoleAuth.sol"; import "../../interaction/interface/IRoleManagement.sol"; /// @title Role management contract /// @author ["Cryptape Technologies <contact@cryptape.com>"] /// @notice The address: 0xff...
@notice Delete the role @param _role The address of role @return true if successed, otherwise false Cancel the role of the account's which has the role
function deleteRole(address _role) external hasPermission(builtInPermissions[6]) returns (bool) { require(roleAuth.clearAuthOfRole(_role), "clearAuthOfRole failed."); Role roleContract = Role(_role); roleContract.deleteRole(); return true; }
14,073,447
[ 1, 2613, 326, 2478, 225, 389, 4615, 1021, 1758, 434, 2478, 327, 638, 309, 8667, 3692, 16, 3541, 629, 10347, 326, 2478, 434, 326, 2236, 1807, 1492, 711, 326, 2478, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1430, 2996, 12, 2867, 389, 4615, 13, 203, 3639, 3903, 203, 3639, 26097, 12, 12406, 382, 6521, 63, 26, 5717, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 4615, 1730, 18, 8507, 1730, 951, 2996, 24...
pragma solidity ^0.4.24; import './Hub.sol'; import {ERC725} from './ERC725.sol'; import {HoldingStorage} from './HoldingStorage.sol'; import {ProfileStorage} from './ProfileStorage.sol'; import {LitigationStorage} from './LitigationStorage.sol'; import {Profile} from './Profile.sol'; import {CreditorHandler} from './...
Multiply the tokenAmountPerHolder by the time the the holder held the data
amountToTransfer = amountToTransfer.mul((block.timestamp).sub(holdingStorage.getHolderPaymentTimestamp(bytes32(offerId), identity)));
958,780
[ 1, 26040, 326, 1147, 6275, 2173, 6064, 635, 326, 813, 326, 326, 10438, 15770, 326, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3844, 774, 5912, 273, 3844, 774, 5912, 18, 16411, 12443, 2629, 18, 5508, 2934, 1717, 12, 21056, 310, 3245, 18, 588, 6064, 6032, 4921, 12, 3890, 1578, 12, 23322, 548, 3631, 4215, 3719, 1769, 203, 2, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; /** * @dev Implementation of the {IERC20} interface. */ contract ERC20 is IERC20 { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _tot...
* @dev Creates `value` tokens and assigns them to `to` address, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements: - `to` cannot be the zero address./
function _mint(address to, uint256 value) internal virtual { require(to != address(0), "ERC20: mint to the zero address"); _totalSupply += value; _balances[to] += value; emit Transfer(address(0), to, value); }
921,562
[ 1, 2729, 1375, 1132, 68, 2430, 471, 22698, 2182, 358, 1375, 869, 68, 1758, 16, 21006, 326, 2078, 14467, 18, 7377, 1282, 279, 288, 5912, 97, 871, 598, 1375, 2080, 68, 444, 358, 326, 3634, 1758, 18, 29076, 30, 300, 1375, 869, 68, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 81, 474, 12, 2867, 358, 16, 2254, 5034, 460, 13, 2713, 5024, 288, 203, 3639, 2583, 12, 869, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 312, 474, 358, 326, 3634, 1758, 8863, 203, 203, 3639, 389, 4963, 3088...
./partial_match/1/0x5fcfA648ADBa75627092533f4b9545F99435f1A6/sources/DocumentStore.sol
A mapping of the document hash to the block number that was issued A mapping of the hash of the claim being revoked to the revocation block number
{ name = _name; }
2,697,853
[ 1, 37, 2874, 434, 326, 1668, 1651, 358, 326, 1203, 1300, 716, 1703, 16865, 432, 2874, 434, 326, 1651, 434, 326, 7516, 3832, 22919, 358, 326, 24158, 1203, 1300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 288, 203, 565, 508, 273, 389, 529, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.6.12; // SPDX-License-Identifier: MIT /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount o...
SPDX-License-Identifier: MIT governance flags
contract BvaultsHarvestInfo is IHarvestInfo { address public operator; bool public initialized = false; event Initialized(address indexed executor, uint256 at); function initialize() public notInitialized { uniRouterAddress = address(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F); init...
14,112,330
[ 1, 3118, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 314, 1643, 82, 1359, 2943, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 26983, 87, 44, 297, 26923, 966, 353, 467, 44, 297, 26923, 966, 288, 203, 565, 1758, 1071, 3726, 31, 203, 203, 565, 1426, 1071, 6454, 273, 629, 31, 203, 203, 203, 203, 565, 871, 10188, 1235, 12, 2867, 8808, 6601, 16,...
./full_match/80001/0xDD7E62725f586166995d048e797E6D05413B2D70/sources/contracts/protocol/markets/basic/library/MarketLib.sol
@dev Add new prediction @param market Market storage @param predictionsA Storage of predictionsA @param predictionsB Storage of predictionsB @param amount Amount of ForeToken @param side Predicition side (true - positive result, false - negative result) @param receiver Prediction creator
function _predict( Market storage market, mapping(address => uint256) storage predictionsA, mapping(address => uint256) storage predictionsB, uint256 amount, bool side, address receiver ) internal { if (amount == 0) { revert ("AmountCantBeZero"...
837,635
[ 1, 986, 394, 8239, 225, 13667, 6622, 278, 2502, 225, 13067, 37, 5235, 434, 13067, 37, 225, 13067, 38, 5235, 434, 13067, 38, 225, 3844, 16811, 434, 17605, 1345, 225, 4889, 19166, 335, 608, 4889, 261, 3767, 300, 6895, 563, 16, 629, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 14491, 12, 203, 3639, 6622, 278, 2502, 13667, 16, 203, 3639, 2874, 12, 2867, 516, 2254, 5034, 13, 2502, 13067, 37, 16, 203, 3639, 2874, 12, 2867, 516, 2254, 5034, 13, 2502, 13067, 38, 16, 203, 3639, 2254, 5034, 3...
./partial_match/4/0x3c33b02E0F55C0E26eb403A70c5670A53cbf4810/sources/CliqStaking.sol
this function is better to be called publicly, because we can make it external and thus cheaper for each period of days defined in the package, compound the interest
function checkStakeReward(address _address, uint256 stakeIndex) external view returns (uint256) { require( stakes[_address][stakeIndex]._amount > 0, "The stake you are searching for is not defined" ); uint256 currentTime = block.timestamp; ...
8,672,747
[ 1, 2211, 445, 353, 7844, 358, 506, 2566, 1071, 715, 16, 2724, 732, 848, 1221, 518, 3903, 471, 12493, 19315, 7294, 364, 1517, 3879, 434, 4681, 2553, 316, 326, 2181, 16, 11360, 326, 16513, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 866, 510, 911, 17631, 1060, 12, 2867, 389, 2867, 16, 2254, 5034, 384, 911, 1016, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 384, 3223, 6...
./full_match/4/0x805f20F38Aba8D3Ee15B50d634913d06Bf88BE5e/sources/contracts/1_Client.sol
* @title Storage @dev Store & retrieve value in a variable/
contract Client { address payable owner; ERC20Upgradeable erc20; function transfer( address payable _protocol, uint256 _amount) external payable { erc20 = ERC20Upgradeable(0xcc54b12a18f2C575CA97991046090f43C3070aA0); erc20.approve(_protocol, _amount); ...
12,307,804
[ 1, 3245, 225, 4994, 473, 4614, 460, 316, 279, 2190, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2445, 288, 203, 377, 203, 565, 1758, 8843, 429, 3410, 31, 203, 565, 4232, 39, 3462, 10784, 429, 6445, 71, 3462, 31, 203, 203, 565, 445, 7412, 12, 225, 1758, 8843, 429, 389, 8373, 16, 7010, 203, 13491, 2254, 5034, 389, 89...
/** * Decides EvalTestA(EvalTestA,a,b). */ function decideEvalTestA(bytes[] memory _inputs, bytes[] memory _witness) public view returns (bool) { // And logical connective bytes[] memory childInputs0 = new bytes[](1); childInputs0[0] = _inputs[0]; require( ...
* Decides EvalTestA(EvalTestA,a,b)./ And logical connective
function decideEvalTestA(bytes[] memory _inputs, bytes[] memory _witness) public view returns (bool) { bytes[] memory childInputs0 = new bytes[](1); childInputs0[0] = _inputs[0]; require( AtomicPredicate(Foo).decide(childInputs0), "Foo must be true" ); ...
12,915,086
[ 1, 1799, 4369, 13163, 4709, 37, 12, 13904, 4709, 37, 16, 69, 16, 70, 2934, 19, 7835, 6374, 3077, 688, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16288, 13904, 4709, 37, 12, 3890, 8526, 3778, 389, 10029, 16, 1731, 8526, 3778, 389, 91, 9746, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 203, 3639, 1731, 8526, 3778, 1151, 10059, 20, 273, 394, 1731, 8526, 12, 21, ...
//SPDX-License-Identifier: Unlicense pragma solidity 0.6.11; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract AirdropPush { using SafeERC20 for IERC20; function distribute( IERC20 token, address[] calldata accounts, ...
userAddress -> withdrawalInfouserAddress -> -> scheduleIndex -> staking detailuserAddress -> scheduleIdx[]Schedule id/index counterscheduleIndex/id -> schedulescheduleIndex/id[]Can deposit into a non-public schedule
contract Staking is IStaking, Initializable, Ownable, Pausable { using SafeMath for uint256; using SafeERC20 for IERC20; using EnumerableSet for EnumerableSet.UintSet; IERC20 public tokeToken; IManager public manager; address public treasury; uint256 public withheldLiquidity; mapping(...
6,377,817
[ 1, 1355, 1887, 317, 598, 9446, 287, 966, 1355, 1887, 317, 317, 4788, 1016, 317, 384, 6159, 7664, 1355, 1887, 317, 4788, 4223, 8526, 6061, 612, 19, 1615, 3895, 10676, 1016, 19, 350, 317, 26720, 2847, 1016, 19, 350, 8526, 2568, 443, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 934, 6159, 353, 467, 510, 6159, 16, 10188, 6934, 16, 14223, 6914, 16, 21800, 16665, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450,...
pragma solidity ^0.5.15; pragma experimental ABIEncoderV2; import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; import "solidity-bytes-utils/contracts/BytesLib.sol"; import { IERC20 } from "./interfaces/IERC20.sol"; import { ITokenRegistry } from "./interfaces/ITokenRegistry.sol"; import { IFraudProof...
External contracts this variable will be greater than 0 if there is rollback in progress will be reset to 0 once rollback is completed
contract RollupSetup { using SafeMath for uint256; using BytesLib for bytes; using ECVerify for bytes32; DepositManager public depositManager; IncrementalTree public accountsTree; Logger public logger; ITokenRegistry public tokenRegistry; Registry public nameRegistry; Types.Batch[]...
6,438,041
[ 1, 6841, 20092, 333, 2190, 903, 506, 6802, 2353, 374, 309, 1915, 353, 8006, 316, 4007, 903, 506, 2715, 358, 374, 3647, 8006, 353, 5951, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 31291, 416, 7365, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5985, 5664, 364, 1731, 31, 203, 565, 1450, 7773, 8097, 364, 1731, 1578, 31, 203, 203, 203, 565, 4019, 538, 305, 1318, 1071, 443, 172...
./partial_match/1/0x4f8845b15AdD2566c2f3975eF57C66f418A48928/sources/HarryPotterFoundObamaInu.sol
* @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./
function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); }
2,599,852
[ 1, 1682, 6606, 326, 6835, 2887, 3410, 18, 2597, 903, 486, 506, 3323, 358, 745, 296, 3700, 5541, 11, 4186, 16828, 18, 4480, 1338, 506, 2566, 635, 326, 783, 3410, 18, 5219, 30, 25921, 465, 2822, 23178, 903, 8851, 326, 6835, 2887, 392,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 1377, 445, 1654, 8386, 5460, 12565, 1435, 1071, 5024, 1338, 5541, 288, 203, 1850, 3626, 14223, 9646, 5310, 1429, 4193, 24899, 8443, 16, 1758, 12, 20, 10019, 203, 1850, 389, 8443, 273, 1758, 12, 20, 1769, 203, 1377, 289, 203, 21281,...
// File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * man...
* @param amount cap @param root merkle root @param proof merkle proof/
function buyTokensWithProof( uint256 amount, bytes32 root, bytes calldata proof ) external payable { addLeaf(root, msg.sender, amount, proof); buyTokens(msg.sender); }
11,904,155
[ 1, 8949, 3523, 225, 1365, 30235, 1365, 225, 14601, 30235, 14601, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 30143, 5157, 1190, 20439, 12, 203, 565, 2254, 5034, 3844, 16, 203, 565, 1731, 1578, 1365, 16, 203, 565, 1731, 745, 892, 14601, 203, 225, 262, 3903, 8843, 429, 288, 203, 565, 527, 9858, 12, 3085, 16, 1234, 18, 15330, 1...
// SPDX-License-Identifier: BlueOak-1.0.0 pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/s...
This token allows the configuration of a rich system of "siphons" to administer the copy pattern of some holder addresses, before the token goes into its WORKING phase./
contract RSR is Pausable, Ownable, Enchantable, ERC20Permit { using EnumerableSet for EnumerableSet.AddressSet; ERC20Pausable public immutable oldRSR; uint64 public constant WEIGHT_ONE = 1e18; uint256 private immutable fixedSupply; The contract is initially deployed into SETUP. During the SETUP ...
14,029,106
[ 1, 2503, 1147, 5360, 326, 1664, 434, 279, 23657, 2619, 434, 315, 87, 16045, 7008, 6, 358, 3981, 1249, 326, 1610, 1936, 434, 2690, 10438, 6138, 16, 1865, 326, 1147, 13998, 1368, 2097, 17062, 1360, 6855, 18, 19, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 534, 10090, 353, 21800, 16665, 16, 14223, 6914, 16, 1374, 11106, 429, 16, 4232, 39, 3462, 9123, 305, 288, 203, 565, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 1887, 694, 31, 203, 203, 565, 4232, 39, 3462, 16507, 16...
./full_match/4/0xbC2FAB471aa23f452CF5AaaA0639cD11F6C38f85/sources/contracts/CryptoBleatingSheeps_v2.1.sol
public check etherscan
function mint(uint256 _mintAmount) public payable {
761,479
[ 1, 482, 866, 13750, 414, 4169, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 312, 474, 12, 11890, 5034, 389, 81, 474, 6275, 13, 1071, 8843, 429, 288, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2020-04-21 */ pragma solidity 0.6.2; // Copied from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/GSN/GSNRecipient.sol // But kept minimalist. contract MsgSender { address public relayHub; /** * @dev Replacement for msg...
* Sets up the community oracle service for CyberDice. @param _minimumOracles Minimum number of votes required for a beacon proposal. @param _relayHub RelayHub for replay protection/
constructor(uint _minimumOracles, address _relayHub) public { admin = msg.sender; minimumOracles = _minimumOracles; relayHub = _relayHub; }
13,084,439
[ 1, 2785, 731, 326, 19833, 20865, 1156, 364, 22337, 744, 40, 1812, 18, 225, 389, 15903, 51, 354, 9558, 23456, 1300, 434, 19588, 1931, 364, 279, 29203, 14708, 18, 225, 389, 2878, 528, 8182, 4275, 528, 8182, 364, 16033, 17862, 19, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 12, 11890, 389, 15903, 51, 354, 9558, 16, 1758, 389, 2878, 528, 8182, 13, 1071, 288, 203, 565, 3981, 273, 1234, 18, 15330, 31, 203, 565, 5224, 51, 354, 9558, 273, 389, 15903, 51, 354, 9558, 31, 203, 565, 18874, 8182,...
./full_match/4/0x53F9d97EaA8dA97d85266fcd6d3b9013DcF57cD6/sources/contracts-v2/contracts/v2/ArtToken.sol
* Creates a NFT @param _metaDataURI for the new token @param _metaData metadata JSONified string @param _marketplace address @param _encodedCallData of the create call in dst marketplace/ Create the new asset and allow marketplace to manage it Use this to override the msg.sender here. execute create order in destinatio...
function createPub( string calldata _metaDataURI, string calldata _metaData, address _marketplace, bytes calldata _encodedCallData ) external { this.approve( _marketplace, _create(address(this), _metaDataURI, _metaData) ); ...
12,290,711
[ 1, 2729, 279, 423, 4464, 225, 389, 3901, 751, 3098, 364, 326, 394, 1147, 225, 389, 3901, 751, 1982, 1796, 939, 533, 225, 389, 3355, 24577, 1758, 225, 389, 10787, 1477, 751, 434, 326, 752, 745, 316, 3046, 29917, 19, 1788, 326, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 9581, 12, 203, 3639, 533, 745, 892, 389, 3901, 751, 3098, 16, 203, 3639, 533, 745, 892, 389, 3901, 751, 16, 203, 3639, 1758, 389, 3355, 24577, 16, 203, 3639, 1731, 745, 892, 389, 10787, 1477, 751, 203, 565, 262, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/util...
* @notice Sets the claim fee percentage. Maximum of 5%. @param rewardPoolFee_ percentage using decimal base of 1000 ie: 10% = 100/
function setRewardPoolFee(uint256 rewardPoolFee_) external onlyRewardUpdater { require(rewardPoolFee_ <= 50, "invalid fee value"); rewardPoolFee = rewardPoolFee_; }
6,411,311
[ 1, 2785, 326, 7516, 14036, 11622, 18, 18848, 434, 1381, 9, 18, 225, 19890, 2864, 14667, 67, 11622, 1450, 6970, 1026, 434, 4336, 9228, 30, 1728, 9, 273, 2130, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 17631, 1060, 2864, 14667, 12, 11890, 5034, 19890, 2864, 14667, 67, 13, 3903, 1338, 17631, 1060, 15305, 288, 203, 3639, 2583, 12, 266, 2913, 2864, 14667, 67, 1648, 6437, 16, 315, 5387, 14036, 460, 8863, 203, 3639, 198...
./full_match/80001/0xA583684bc0dC23D209D237Ef5785f9d4732972fd/sources/contracts/VTVLVesting.sol
This effectively reduces the liability by amountRemaining, so we can reduce the liability numTokensReservedForVesting by that much
_claim.isActive = false;
5,637,628
[ 1, 2503, 23500, 30568, 326, 4501, 2967, 635, 3844, 11429, 16, 1427, 732, 848, 5459, 326, 4501, 2967, 818, 5157, 10435, 1290, 58, 10100, 635, 716, 9816, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 14784, 18, 291, 3896, 273, 629, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/97/0x6226d8C86Ac16B17eED6d7E655D2f665DB2cCC8A/sources/project_/contracts/Crowdsale.sol
for(uint i = 0; i < stableCoins.length; i++) { StableCoinLP memory lp = stableCoinsLPs[stableCoins[i]]; (uint112 reserve0, uint112 reserve1,) = lp.pair.getReserves(); uint256 _price; if(reserve0 == 0 || reserve1 == 0) { _price = 0; } else { ...
function getETHPrice() public pure returns (uint256 price) { price = 1657268369896177043863; }
5,019,769
[ 1, 1884, 12, 11890, 277, 273, 374, 31, 277, 411, 14114, 39, 9896, 18, 2469, 31, 277, 27245, 288, 5411, 934, 429, 27055, 14461, 3778, 12423, 273, 14114, 39, 9896, 14461, 87, 63, 15021, 39, 9896, 63, 77, 13563, 31, 5411, 261, 11890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 336, 1584, 2500, 3057, 1435, 1071, 16618, 1135, 261, 11890, 5034, 6205, 13, 288, 203, 3639, 6205, 273, 2872, 10321, 5558, 28, 5718, 29, 6675, 26, 29882, 3028, 7414, 4449, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100...
pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // ...
4% for each team member
uint256 tokensForEachMember = soldTokens.div(20);
1,008,564
[ 1, 24, 9, 364, 1517, 5927, 3140, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 2430, 1290, 3442, 4419, 273, 272, 1673, 5157, 18, 2892, 12, 3462, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.6 <0.9.0; import "./Utils.sol"; import "./GrokCore.sol"; /** * Grok的控制合约 */ contract GrokCtrl is Base { // Grok核心合约地址 address private _GrokCoreAddress; // Grok控制合约的构建函数 constructor(address GrokCoreAddress) isContract(GrokCoreAddress) { _...
基本合约的构造函数在合约构造时,为所有者设置默认管理员角色,只有默认管理员可以动态授予和撤销角色
constructor() { _setupRole(DEFAULT_ADMIN_ROLE, owner()); }
569,647
[ 1, 166, 258, 123, 167, 255, 110, 166, 243, 235, 168, 123, 104, 168, 253, 231, 167, 257, 231, 170, 227, 259, 166, 234, 126, 167, 248, 113, 166, 255, 106, 166, 243, 235, 168, 123, 104, 167, 257, 231, 170, 227, 259, 167, 250, 119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 1435, 288, 203, 3639, 389, 8401, 2996, 12, 5280, 67, 15468, 67, 16256, 16, 3410, 10663, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; pragma solidity 0.8.10; /** * @title App through which a layer of anonymity is added to peer-to-peer transactions * @author Sami Gabor * @notice study project which may have...
* @notice Deposits funds into the contract and assignes them to the sender and the receiver @notice By sending funds to your own address, it increases the transaction anonymity. The funds are kept within the contract and available for claim @notice DO NOT KEEP LARGE AMOUNTS INTO THE CONTRACT, withdraw them every once i...
function depositEth(address _to, uint256 _toMyselfAmount) public payable whenNotPaused { require( msg.value > _toMyselfAmount, "The total amount must be greather than the amount deposited back to sender" ); uint256 _toAmount = msg.value - _...
1,048,241
[ 1, 758, 917, 1282, 284, 19156, 1368, 326, 6835, 471, 2683, 281, 2182, 358, 326, 5793, 471, 326, 5971, 225, 2525, 5431, 284, 19156, 358, 3433, 4953, 1758, 16, 518, 7033, 3304, 326, 2492, 392, 6435, 560, 18, 1021, 284, 19156, 854, 165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 443, 1724, 41, 451, 12, 2867, 389, 869, 16, 2254, 5034, 389, 869, 12062, 2890, 6275, 13, 203, 3639, 1071, 203, 3639, 8843, 429, 203, 3639, 1347, 1248, 28590, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 11...
/** *Submitted for verification at Etherscan.io on 2019-12-06 */ pragma solidity ^0.5.0; contract CrowdsaleToken { /* Public variables of the token */ string public constant name = 'Rocketclock'; string public constant symbol = 'RCLK'; //uint256 public constant decimals = 6; address payable owner...
return contract ether balance;
function getEtherBalance() public view returns(uint256) { return address(this).balance; }
12,669,688
[ 1, 2463, 6835, 225, 2437, 11013, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4774, 1136, 13937, 1435, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 1377, 327, 1758, 12, 2211, 2934, 12296, 31, 203, 282, 202, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.19; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } ...
* @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./
contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function Ownable() public { owner = 0x3A9158Cf4b90D502D1A197699aa6B14edbcE9Ce5; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwner...
10,771,721
[ 1, 5460, 429, 225, 1021, 14223, 6914, 6835, 711, 392, 3410, 1758, 16, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 6914, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 203, 225, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 203, 225, 445, 14223, 6914, 1435, 1071, 288, ...
./full_match/1/0x463402E43aFdb7F81596f7F49Fbc91f4f584e69A/sources/NotAnotherAnimeToken.sol
Liquidity Address (switches to dead address once launch happens)
liquidityAddress = payable(0x749407851B6b2fFDdC46176Af48687D5690F2a52);
3,114,097
[ 1, 48, 18988, 24237, 5267, 261, 9610, 281, 358, 8363, 1758, 3647, 8037, 10555, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4501, 372, 24237, 1887, 273, 8843, 429, 12, 20, 92, 5608, 29, 7132, 27, 7140, 21, 38, 26, 70, 22, 74, 16894, 72, 39, 8749, 28493, 12664, 24, 5292, 11035, 40, 4313, 9349, 42, 22, 69, 9401, 1769, 225, 2, -100, -100, -100,...
//Address: 0x6816184f231aa6af7f959d99ec0ace5731ab33f0 //Contract name: RocketStorage //Balance: 0 Ether //Verification Date: 6/14/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.19; // File: contracts/storage/RocketStorage.sol /// @title The primary persistent storage for Rocket Pool /// @autho...
*** Storage Types *******/** Modifiers ************/ @dev Only allow access from the latest version of a contract in the Rocket Pool network after deployment The owner and other contracts are only allowed to set the storage upon deployment to register the initial contracts/settings, afterwards their direct access is di...
modifier onlyLatestRocketNetworkContract() { if (boolStorage[keccak256("contract.storage.initialised")] == true) { require(addressStorage[keccak256("contract.address", msg.sender)] != 0x0); } _; }
12,732,851
[ 1, 3245, 7658, 342, 3431, 3383, 342, 225, 5098, 1699, 2006, 628, 326, 4891, 1177, 434, 279, 6835, 316, 326, 534, 1861, 8828, 2483, 1839, 6314, 1021, 3410, 471, 1308, 20092, 854, 1338, 2935, 358, 444, 326, 2502, 12318, 6314, 358, 1744,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 9606, 1338, 18650, 54, 1861, 3906, 8924, 1435, 288, 203, 3639, 309, 261, 6430, 3245, 63, 79, 24410, 581, 5034, 2932, 16351, 18, 5697, 18, 6769, 5918, 7923, 65, 422, 638, 13, 288, 203, 5411, 2583, 12, 2867, 3245, 63, 79, 24...
./full_match/4/0x05F5230b57E7D1d96B7ECC3975e447955a690b85/sources/BondingCurveFactory_flat.sol
* @param _tokens: The number of tokens to buy. @notice This function will check if the buy will push the token over its threshold, thus moving the token to uniswap. If the buy will push the supply in excess of the threshold, only the tokens needed to reach the threshold will be bought. @dev ...
function buy(uint256 _tokens) external freeMarket() { _transitionCheck(true, _tokens); if(transitionConditionsMet) { if( this.totalSupply() + _tokens >= tokenThreshold ) { _tokens = tokenThreshold - this.totalSupply(); _execut...
651,418
[ 1, 67, 7860, 30, 1021, 1300, 434, 2430, 358, 30143, 18, 225, 1220, 445, 903, 866, 309, 326, 30143, 903, 1817, 326, 1147, 1879, 2097, 540, 5573, 16, 12493, 12499, 326, 1147, 358, 640, 291, 91, 438, 18, 971, 326, 30143, 903, 540, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 30143, 12, 11890, 5034, 389, 7860, 13, 3903, 4843, 3882, 278, 1435, 288, 203, 3639, 389, 14936, 1564, 12, 3767, 16, 389, 7860, 1769, 7010, 3639, 309, 12, 14936, 8545, 12244, 13, 288, 203, 5411, 309, 12, 203, 7734, 333, ...
./full_match/11297108099/0x27D952098f68084527B601881fA6e1D740999B04/sources/contracts/ThePlatformSale.sol
Track prices and limits for sales*/
struct SaleConfig { uint256 price; uint256 limit; uint256 limitPerPurchase; address paymentRecipient; uint256 saleStart; ERC20 paymentToken; } ThePlatform public publication; mapping(uint256 => SaleConfig) public saleConfigs; /*Token IDs to sale configur...
3,224,230
[ 1, 4402, 19827, 471, 8181, 364, 272, 5408, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 348, 5349, 809, 288, 203, 3639, 2254, 5034, 6205, 31, 203, 3639, 2254, 5034, 1800, 31, 203, 3639, 2254, 5034, 1800, 2173, 23164, 31, 203, 3639, 1758, 5184, 18241, 31, 203, 3639, 2254, 5034, 272, 5349, 1685, 31, 203, 36...
pragma solidity ^0.6.12; /** * @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 ...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract Zeppelindao is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; mapping (...
14,375,672
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 2285, 881, 84, 292, 728, 6033, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 38...
./full_match/43114/0x88619079e3B475bb9309E09C9C80CA342DfC0559/sources/github/DreesusChrist/olympus-contracts/contracts/BondDepository.sol
* @notice determine maximum bond size @return uint/
function maxPayout() public view returns ( uint ) { return IERC20( RUG ).totalSupply().mul( terms.maxPayout ).div( 100000 ); }
4,522,384
[ 1, 24661, 4207, 8427, 963, 225, 327, 2254, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 943, 52, 2012, 1435, 1071, 1476, 1135, 261, 2254, 262, 288, 203, 3639, 327, 467, 654, 39, 3462, 12, 534, 57, 43, 262, 18, 4963, 3088, 1283, 7675, 16411, 12, 6548, 18, 1896, 52, 2012, 262, 18, 2892, 12, 25259, 11272, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "./ILayerZeroReceiver.sol"; import "./ILayerZeroEndpoint.sol"; import "./LayerZeroStorage.s...
@notice Set app contract address @param app The app type @param contractAddress The app contract address
function setApp(APP app, address contractAddress) external onlyGovernor { apps[app] = contractAddress; emit UpdateAPP(app, contractAddress); }
12,573,805
[ 1, 694, 595, 6835, 1758, 225, 595, 1021, 595, 618, 225, 6835, 1887, 1021, 595, 6835, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 3371, 12, 7215, 595, 16, 1758, 6835, 1887, 13, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 8279, 63, 2910, 65, 273, 6835, 1887, 31, 203, 3639, 3626, 2315, 7215, 12, 2910, 16, 6835, 1887, 1769, 203, 565, 289, 203...
pragma solidity ^0.4.18; /// @title SafeMath contract - math operations with safety checks contract SafeMath { function safeMul(uint a, uint b) internal pure returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint a, uint b) internal pure returns ...
@dev Fix for the ERC20 short address attack http://vessenes.com/the-erc20-short-address-attack-explained/ @param size payload size
modifier onlyPayloadSize(uint size) { require(msg.data.length >= size + 4); _; }
941,368
[ 1, 8585, 364, 326, 4232, 39, 3462, 3025, 1758, 13843, 1062, 2207, 90, 403, 275, 281, 18, 832, 19, 5787, 17, 12610, 3462, 17, 6620, 17, 2867, 17, 4558, 484, 17, 338, 7446, 329, 19, 225, 963, 2385, 963, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 1338, 6110, 1225, 12, 11890, 963, 13, 288, 203, 565, 2583, 12, 3576, 18, 892, 18, 2469, 1545, 963, 397, 1059, 1769, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0x0004C6404f9E4D3e799De533dE985ca427934028/sources/HodlrKeysContract.sol
* @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut...
abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
3,976,527
[ 1, 17727, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, 486, 506, 15539, 316, 4123, 279, 2657, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 21281, 203, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 565, 445, 389, 3576, 751, 1435, 2713, 1476,...
// SPDX-License-Identifier: MIT // pragma solidity >=0.4.21 <0.7.0; pragma solidity ^0.6.0; contract RockPaperScissors { address owner; uint dummy = 0; enum Move { none, rock, paper, scissors } Move constant defaultChoice = Move.none; uint256 timeStarted; address[] playerAddresses; mapping(address => Mov...
0 for player0 won, 1 for player 1 won, 2 for tie, 3 for unresolved
function settleWinner() external returns (uint) { require(gameOver != true, "game alrady over"); Move playerOneMove = eachPlayersMove[playerAddresses[0]]; Move playerTwoMove = eachPlayersMove[playerAddresses[1]]; require(playerOneMove != Move.none,"Player 0 hasnt played"); require(playerTwoMove !...
1,770,666
[ 1, 20, 364, 7291, 20, 8462, 16, 404, 364, 7291, 404, 8462, 16, 576, 364, 25318, 16, 890, 364, 20573, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 5929, 59, 7872, 1435, 3903, 1135, 261, 11890, 13, 288, 203, 565, 2583, 12, 13957, 4851, 480, 638, 16, 315, 13957, 524, 6012, 93, 1879, 8863, 203, 565, 9933, 7291, 3335, 7607, 273, 1517, 1749, 3907, 7607, 63, 14872,...
/** *Submitted for verification at Etherscan.io on 2022-02-04 */ // SPDX-License-Identifier: MIT // # MysteriousWorld // Read more at https://www.themysterious.world/utility pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * ...
tracks the amount of free mints claimed from superlative & creatureworld holders
uint256 public freeInhabitantsClaimed;
15,317,105
[ 1, 21499, 326, 3844, 434, 4843, 312, 28142, 7516, 329, 628, 2240, 80, 1535, 473, 1519, 1231, 18179, 366, 4665, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 4843, 382, 76, 30258, 4388, 9762, 329, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/token/ERC721/ERC721Token.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; /** * @title ImageToken (ERC721) */ contract ImageToken is ERC721Token, Pausable { /** @dev ...
* @dev mapping from tokenId to ITData */
mapping(uint256 => ITData) public tokenIdToITData;
13,099,074
[ 1, 6770, 628, 1147, 548, 358, 24142, 751, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 24142, 751, 13, 1071, 1147, 28803, 1285, 751, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.8; import 'zeppelin/ownership/Ownable.sol'; import 'zeppelin/token/ERC20.sol'; // This contract is a simple fund that is owned by another address. // Any ERC20 tokens that are owned by this contract can be withdrawn to the owner. // The original owner can sell it to another owner by accept...
Grab the old owner address to know where to send the payment
address previousOwner = owner;
12,538,222
[ 1, 14571, 70, 326, 1592, 3410, 1758, 358, 5055, 1625, 358, 1366, 326, 5184, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 1758, 2416, 5541, 273, 3410, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/4/0xc1b59cc9253ee4Bf30e12c6d06A101401c5470d8/sources/ExchangeV1.sol
Sig calldata buyerFeeSig,validateOrderSig(order, sig);validateBuyerFeeSig(order, buyerFee, buyerFeeSig);
function exchange4( Order calldata order, Sig calldata sig, uint buyerFee, uint amount, address buyer ) payable external { uint paying = order.buying.mul(amount).div(order.selling); verifyOpenAndModifyOrderState(order.key, order.selling, amount); r...
8,560,901
[ 1, 8267, 745, 892, 27037, 14667, 8267, 16, 5662, 2448, 8267, 12, 1019, 16, 3553, 1769, 5662, 38, 16213, 14667, 8267, 12, 1019, 16, 27037, 14667, 16, 27037, 14667, 8267, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7829, 24, 12, 203, 3639, 4347, 745, 892, 1353, 16, 203, 3639, 21911, 745, 892, 3553, 16, 203, 3639, 2254, 27037, 14667, 16, 203, 3639, 2254, 3844, 16, 203, 3639, 1758, 27037, 203, 565, 262, 8843, 429, 3903, 288, 203, ...
./full_match/1/0x4637EAef1d9488955cBf08376bb3BE0F2371A58F/sources/BancorArbitrage/contracts/token/TokenLibrary.sol
* @dev compares between a token and another raw ERC20 token/
function isEqual(Token token, IERC20 erc20Token) internal pure returns (bool) { return toIERC20(token) == erc20Token; }
16,488,632
[ 1, 2919, 4807, 3086, 279, 1147, 471, 4042, 1831, 4232, 39, 3462, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 445, 21614, 12, 1345, 1147, 16, 467, 654, 39, 3462, 6445, 71, 3462, 1345, 13, 2713, 16618, 1135, 261, 6430, 13, 288, 203, 327, 358, 45, 654, 39, 3462, 12, 2316, 13, 422, 6445, 71, 3462, 1345, 31, 203, 289, 203, 203, 2, -100, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "../../../interfaces/IEscrowTicketer.sol"; import "../../../interfaces/ISeenHausNFT.sol"; import "../../../interfaces/ISaleRunner.sol"; import "../MarketHandlerBase.sol...
* @notice Claim a pending payout on an ongoing sale without closing/cancelling Funds are disbursed as normal. See: {MarketHandlerBase.disburseFunds} Reverts if: - Sale doesn't exist or hasn't started - There is no pending payout - Called by any address other than seller - The sale is sold out (in which case closeSale s...
function claimPendingPayout(uint256 _consignmentId) external override { MarketHandlerLib.MarketHandlerStorage storage mhs = MarketHandlerLib.marketHandlerStorage(); Consignment memory consignment = getMarketController().getConsignment(_consignmentId); require((consignment.pendi...
14,395,895
[ 1, 9762, 279, 4634, 293, 2012, 603, 392, 30542, 272, 5349, 2887, 7647, 19, 4169, 3855, 310, 478, 19156, 854, 1015, 70, 295, 730, 487, 2212, 18, 2164, 30, 288, 3882, 278, 1503, 2171, 18, 2251, 70, 295, 307, 42, 19156, 97, 868, 3153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7516, 8579, 52, 2012, 12, 11890, 5034, 389, 591, 2977, 475, 548, 13, 203, 565, 3903, 203, 565, 3849, 203, 565, 288, 203, 3639, 6622, 278, 1503, 5664, 18, 3882, 278, 1503, 3245, 2502, 312, 4487, 273, 6622, 278, 1503, 5...
/** * This contract acts as a controller for front-end * requests. The DB file is separate incase, solidity adds * functionality to return structs. In that case, only * this contract needs to be redeployed and data migration * will not be needed as the data is stored in DB.sol * contract. */ pragma solidity ^0.4...
@description gets the user project with the given index for the given user @param address _user address of the user who's projects are to be searched @param uint _index index of the project to be searched @return (string, string, string, string, bool) name, short description, description and url of the project with gi...
function getUserProject(address _user, uint _index) public view returns(string, string, string, string, bool) { User.UserProject[] memory projects = dbGetter.findUserProject(_user); return (projects[_index].name, projects[_index].shortDescription, projects[_index].description, projects[_index].url, p...
15,863,053
[ 1, 36, 3384, 5571, 326, 729, 1984, 598, 326, 864, 770, 364, 326, 864, 729, 225, 1758, 389, 1355, 1758, 434, 326, 729, 10354, 1807, 10137, 854, 358, 506, 19242, 225, 2254, 389, 1615, 770, 434, 326, 1984, 358, 506, 19242, 327, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 4735, 4109, 12, 2867, 389, 1355, 16, 2254, 389, 1615, 13, 203, 202, 482, 203, 202, 1945, 203, 202, 6154, 12, 1080, 16, 533, 16, 533, 16, 533, 16, 1426, 13, 288, 203, 1082, 202, 1299, 18, 1299, 4109, 8526, 3778, 1013...
pragma solidity ^0.4.24; // File: zeppelin-solidity/contracts/ECRecovery.sol /** * @title Eliptic curve signature operations * @dev Based on https://gist.github.com/axic/5b33912c6f61ae6fd96d6c4a47afde6d * TODO Remove this library once solidity supports passing a signature to ecrecover. * See https://github.com/et...
* @dev Increase the amount of rooms offered, only called by owner @param roomType The room type to be added @param amount The amount of rooms to be increased/
function addRooms(string roomType, uint256 amount) onlyOwner public { rooms[roomType].totalRooms = rooms[roomType].totalRooms.add(amount); emit RoomsAdded(roomType, amount); }
413,705
[ 1, 382, 11908, 326, 3844, 434, 26450, 10067, 329, 16, 1338, 2566, 635, 3410, 225, 7725, 559, 1021, 7725, 618, 358, 506, 3096, 225, 3844, 1021, 3844, 434, 26450, 358, 506, 31383, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 13646, 87, 12, 1080, 7725, 559, 16, 2254, 5034, 3844, 13, 1338, 5541, 1071, 288, 203, 565, 26450, 63, 13924, 559, 8009, 4963, 13646, 87, 273, 26450, 63, 13924, 559, 8009, 4963, 13646, 87, 18, 1289, 12, 8949, 1769, ...
/** *Submitted for verification at Etherscan.io on 2022-04-22 */ /** _____ _ _ ___ ___ ___ ___ __ __ ___ _ _ ___ |_ _|| || || __| | \ |_ _|/ \| \/ | / _ \ | \| || \ | | | __ || _| | |) | | | | - || |\/| || (_) || . || |) | |_| |_||_||___| |___/ |_...
*****************/ exclude from paying fees or having max transaction amount
constructor() ERC20("The Diamond Casino Heist", unicode"CASINO") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; ...
1,971,792
[ 1, 19, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 1986, 12508, 301, 1434, 23561, 15020, 8264, 376, 3113, 5252, 6, 20221, 706, 51, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273,...
./full_match/3/0x8C2307E4E8FdcbD736DF934c50e19d9a0149F7A0/sources/MoiNFT.sol
Number used for guessable pseudo-random generated number.
uint private nonce = 0;
14,252,775
[ 1, 1854, 1399, 364, 7274, 429, 12454, 17, 9188, 4374, 1300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 3238, 7448, 273, 374, 31, 2868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import {PercentageMath} from '../protocol/libraries/math/PercentageMath.sol'; import {SafeMath} from '../dependencies/openzeppelin/contracts/SafeMath.sol'; import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20....
* @dev Set the _pause state of a reserve - Only callable by the LendingPoolConfigurator contract @param val `true` to pause the reserve, `false` to un-pause it/
function setPause(bool val) external override onlyLendingPoolConfigurator { _paused = val; if (_paused) { emit Paused(); emit Unpaused(); } }
68,756
[ 1, 694, 326, 389, 19476, 919, 434, 279, 20501, 300, 5098, 4140, 635, 326, 511, 2846, 2864, 17182, 6835, 225, 1244, 1375, 3767, 68, 358, 11722, 326, 20501, 16, 1375, 5743, 68, 358, 640, 17, 19476, 518, 19, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 17004, 1579, 12, 6430, 1244, 13, 3903, 3849, 1338, 48, 2846, 2864, 17182, 288, 203, 565, 389, 8774, 3668, 273, 1244, 31, 203, 565, 309, 261, 67, 8774, 3668, 13, 288, 203, 1377, 3626, 21800, 3668, 5621, 203, 1377, 3626, ...
./full_match/137/0xAD4C5669fb72090B0145f43769E17B2e00200161/sources/polygon.sol
Returns an URI for a given token ID
function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; }
4,763,115
[ 1, 1356, 392, 3699, 364, 279, 864, 1147, 1599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 1969, 3098, 1435, 2713, 1476, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 565, 327, 1026, 1345, 3098, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; import "./Address.sol"; import "./IACOPool2.sol"; /** * @title ACOPoolFactory * @dev The contract is the implementation for the ACOProxy. */ contract ACOPoolFactory2 { /** * @dev Struct to store the ACO pool basic data. */ struct ACOP...
* @dev Function to initialize the contract. It should be called through the `data` argument when creating the proxy. It must be called only once. The first `require` is to guarantee that behavior. @param _factoryAdmin Address of the factory admin. @param _acoPoolImplementation Address of the ACO pool implementation. @p...
function init( address _factoryAdmin, address _acoPoolImplementation, address _acoFactory, address _assetConverterHelper, address _chiToken, uint256 _acoPoolFee, address _acoPoolFeeDestination, uint256 _acoPoolWithdrawOpenPositionPenalty, uint256 _acoPo...
128,856
[ 1, 2083, 358, 4046, 326, 6835, 18, 2597, 1410, 506, 2566, 3059, 326, 1375, 892, 68, 1237, 1347, 4979, 326, 2889, 18, 2597, 1297, 506, 2566, 1338, 3647, 18, 1021, 1122, 1375, 6528, 68, 353, 358, 18779, 716, 6885, 18, 225, 389, 6848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1208, 12, 203, 3639, 1758, 389, 6848, 4446, 16, 7010, 3639, 1758, 389, 24363, 2864, 13621, 16, 7010, 3639, 1758, 389, 24363, 1733, 16, 7010, 3639, 1758, 389, 9406, 5072, 2276, 16, 203, 3639, 1758, 389, 24010, 1345, 16, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0 <0.7.0; pragma experimental ABIEncoderV2; import "../Common/Context.sol"; import "../ERC20/IERC20.sol"; import "../ERC20/ERC20Custom.sol"; import "../ERC20/ERC20.sol"; import "../Math/SafeMath.sol"; import "../FXS/FXS.sol"; import "./Pools/FraxPool.sol"; import "....
Adds collateral addresses supported, such as tether and busd, must be ERC20
function addPool(address pool_address) public onlyByOwnerOrGovernance { frax_pools[pool_address] = true; frax_pools_array.push(pool_address); }
15,836,521
[ 1, 3655, 4508, 2045, 287, 6138, 3260, 16, 4123, 487, 268, 2437, 471, 5766, 72, 16, 1297, 506, 4232, 39, 3462, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 2864, 12, 2867, 2845, 67, 2867, 13, 1071, 1338, 858, 5541, 1162, 43, 1643, 82, 1359, 288, 203, 3639, 284, 354, 92, 67, 27663, 63, 6011, 67, 2867, 65, 273, 638, 31, 7010, 3639, 284, 354, 92, 67, 27663, 67, 1126,...
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol pragma solidity ^0.4.25; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balance...
* The `restrictedStockOf` function show current restricted stock owned by (_owner)/
function restrictedStockOf(address _owner) public view returns (uint256) { return restrictedStock[_owner]; }
13,062,519
[ 1, 1986, 1375, 29306, 17821, 951, 68, 445, 2405, 783, 15693, 12480, 16199, 635, 261, 67, 8443, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 445, 15693, 17821, 951, 12, 2867, 389, 8443, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 377, 288, 203, 3639, 327, 15693, 17821, 63, 67, 8443, 15533, 203, 377, 289, 203, 203, 2, -100, ...
/* Copyright (c) 2016 Edilson Osorio Junior - OriginalMy.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
Rearranja o array, eliminando os itens zerados, a custo de gas
o.pokemons=cleanArray(pokeList);
1,022,828
[ 1, 426, 297, 2450, 12333, 320, 526, 16, 19229, 267, 28630, 1140, 518, 773, 24910, 18739, 16, 279, 276, 641, 83, 443, 16189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 320, 18, 84, 601, 4758, 87, 33, 6200, 1076, 12, 84, 3056, 682, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; import "./RegistryENS.sol"; import "./RegistryGuardian.sol"; import "./RegistrySharedAccount.sol"; /** * Abstract Registry */ contract AbstractRegistry is AbstractRegistryENS, AbstractRegistryGuardian, AbstractRegistrySharedAccount { }
* Abstract Registry/
contract AbstractRegistry is AbstractRegistryENS, AbstractRegistryGuardian, AbstractRegistrySharedAccount { }
1,065,374
[ 1, 7469, 5438, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4115, 4243, 353, 4115, 4243, 21951, 16, 4115, 4243, 16709, 2779, 16, 4115, 4243, 7887, 3032, 288, 203, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2022-02-01 */ // File: @openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only ...
keep 8000 in contract for each _trade call
uint256 remainingFee = _amount - _feeAmount - 5000;
10,880,033
[ 1, 10102, 1725, 3784, 316, 6835, 364, 1517, 389, 20077, 745, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 4463, 14667, 273, 389, 8949, 300, 389, 21386, 6275, 300, 20190, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "hardhat/console.sol"; // NFT contract to inherit from. import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; // Helper functions OpenZeppelin provides. import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/...
Initialize the boss Loop through all characters, and save their values in contract
) ERC721 ("Sorcerers", "SORC") { bigBoss = BigBoss({ name : bossName, imageURI : bossImageURI, hp : bossHp, maxHp : bossHp, attackDamage : bossAttackDamage }); console.log("Done initializing boss %s w/ HP %s, img %s", bigBoss.name, ...
14,122,149
[ 1, 7520, 326, 324, 8464, 9720, 3059, 777, 3949, 16, 471, 1923, 3675, 924, 316, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 4232, 39, 27, 5340, 7566, 55, 280, 2750, 414, 3113, 315, 55, 916, 39, 7923, 288, 203, 3639, 5446, 38, 8464, 273, 4454, 38, 8464, 12590, 203, 5411, 508, 294, 324, 8464, 461, 16, 203, 5411, 1316, 3098, 294, 324, 8464, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount o...
solhint-disable no-empty-blocks @title Deposit ETH in Compound and earn interest.
contract CompoundLeverageStrategyETH is CompoundLeverageStrategy { constructor( address _pool, address _swapManager, address _comptroller, address _rewardDistributor, address _rewardToken, address _aaveAddressesProvider, address _receiptToken, string m...
1,539,138
[ 1, 18281, 11317, 17, 8394, 1158, 17, 5531, 17, 7996, 225, 4019, 538, 305, 512, 2455, 316, 21327, 471, 425, 1303, 16513, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 21327, 1682, 5682, 4525, 1584, 44, 353, 21327, 1682, 5682, 4525, 288, 203, 565, 3885, 12, 203, 3639, 1758, 389, 6011, 16, 203, 3639, 1758, 389, 22270, 1318, 16, 203, 3639, 1758, 389, 832, 337, 1539, 16, 203, 3639, 1758, 38...
/** *Submitted for verification at Etherscan.io on 2022-03-02 */ pragma solidity 0.8.11; // SPDX-License-Identifier: Unlicensed // https://tamanator.com/ interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned b...
split the contract balance into halves capture the contract's current ETH balance. this is so that we can capture exactly the amount of ETH that the swap creates, and not make the liquidity event include any ETH that has been manually sent to the contract swap tokens for ETH how much ETH did we just swap into? Burn Po...
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { uint256 burnPortion = contractTokenBalance.mul(_burnFee).div(100); uint256 totalLiqFee = _marketingFee + _developerFee; contractTokenBalance = contractTokenBalance.sub(burnPortion); uint256 initialBalance = ...
2,117,853
[ 1, 4939, 326, 6835, 11013, 1368, 19514, 3324, 7477, 326, 6835, 1807, 783, 512, 2455, 11013, 18, 333, 353, 1427, 716, 732, 848, 7477, 8950, 326, 3844, 434, 512, 2455, 716, 326, 7720, 3414, 16, 471, 486, 1221, 326, 4501, 372, 24237, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7720, 1876, 48, 18988, 1164, 12, 11890, 5034, 6835, 1345, 13937, 13, 3238, 2176, 1986, 12521, 288, 203, 3639, 2254, 5034, 18305, 2617, 285, 273, 6835, 1345, 13937, 18, 16411, 24899, 70, 321, 14667, 2934, 2892, 12, 6625, 1...
/* ⚠⚠⚠ WARNING WARNING WARNING ⚠⚠⚠ This is a TARGET contract - DO NOT CONNECT TO IT DIRECTLY IN YOUR CONTRACTS or DAPPS! This contract has an associated PROXY that MUST be used for all integrations - this TARGET will be REPLACED in an upcoming Peri Finance release! The proxy for this contract can be found here: htt...
record minting event before mutation to token supply Set minted PERI balance to RewardEscrow's balance Minus the minterReward and set balance of minter to add reward Get the remainder Set the token balance to the RewardsDistribution contract Kick off the distribution of rewards Assign the minters reward.
function inflationalMint(uint _networkDebtShare) external issuanceActive returns (bool) { require(msg.sender == inflationMinter, "Not allowed to mint"); require(SafeDecimalMath.unit() >= _networkDebtShare, "Invalid network debt share"); require(address(rewardsDistribution()) != address(0), "...
1,629,482
[ 1, 3366, 312, 474, 310, 871, 1865, 11934, 358, 1147, 14467, 1000, 312, 474, 329, 10950, 45, 11013, 358, 534, 359, 1060, 6412, 492, 1807, 11013, 5444, 407, 326, 1131, 387, 17631, 1060, 471, 444, 11013, 434, 1131, 387, 358, 527, 19890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 13947, 8371, 49, 474, 12, 11890, 389, 5185, 758, 23602, 9535, 13, 3903, 3385, 89, 1359, 3896, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 13947, 367, 49, 2761, 16, 315, 1248, 2935, 358, 312, 4...
pragma solidity ^0.4.21; contract Zamok { // MEMBERS uint256 public zamokCount; // CONSTRUCTOR function Zamok() public { zamokCount = 0; } // FUNCTIONS function generateZamokId() internal returns (bytes32 zamokId) { return keccak256(block.blockhash(block.num...
MEMBERS CONSTRUCTOR
contract Front is ERC20Interface, DeloCanBeReplaced { string public name; string public symbol; uint8 public decimals; function Front( string _name, string _symbol, uint8 _decimals, address _custodian ) DeloCanBeReplaced(_custodian) public { ...
12,909,732
[ 1, 19630, 55, 3492, 13915, 916, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 16465, 353, 4232, 39, 3462, 1358, 16, 6603, 83, 2568, 1919, 5729, 72, 288, 203, 203, 565, 533, 1071, 508, 31, 203, 203, 565, 533, 1071, 3273, 31, 203, 203, 565, 2254, 28, 1071, 15105, 31, 203, 203, 565, 445, 16465, 12, ...
/** *Submitted for verification at Etherscan.io on 2022-04-08 */ //SPDX-License-Identifier: MIT /* ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒░░░░░░ ░ ░ ░ ░░░░...
accept eth for autoswap
receive() external payable { }
14,967,813
[ 1, 9436, 13750, 364, 13133, 91, 438, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 6798, 1435, 3903, 8843, 429, 288, 203, 282, 202, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT // File: contracts/Base64.sol pragma solidity ^0.8.0; /** * @author Artur Chmarusso (https://gist.github.com/Chmarusso + https://twitter.com/ArtiChmaro) */ library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+...
* @notice Only works when contract is not paused. Quantity must be 1, 3, 5, or 10. Check current price first. @param quantity Number of tokens to mint. Must be 1, 3, 5, or 10./ Initial price is 0 and increases by 0.01 ETH every 100 tokens until reaching 0.08 ETH. The price will remain at 0.08 ETH for nearly the remaind...
function remixMint(uint256 quantity) external payable whenNotPaused { require(tx.origin == msg.sender, "Minting from another contract is not supported."); if (currentPrice == 0) { require(balanceOf(msg.sender) + quantity <= MAX_FREE_PER_WALLET, "The max a single wallet can mint when p...
14,606,711
[ 1, 3386, 6330, 1347, 6835, 353, 486, 17781, 18, 18189, 1297, 506, 404, 16, 890, 16, 1381, 16, 578, 1728, 18, 2073, 783, 6205, 1122, 18, 225, 10457, 3588, 434, 2430, 358, 312, 474, 18, 6753, 506, 404, 16, 890, 16, 1381, 16, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 849, 697, 49, 474, 12, 11890, 5034, 10457, 13, 3903, 8843, 429, 1347, 1248, 28590, 288, 203, 203, 203, 3639, 2583, 12, 978, 18, 10012, 422, 1234, 18, 15330, 16, 315, 49, 474, 310, 628, 4042, 6835, 353, 486, 3260, 1199...
//SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import 'base64-sol/base64.sol'; import './HexStrings.sol'; import './ToC...
RELEASE THE ROBOTO ANTENNAS!
constructor() ERC721("Roboto Antennas", "ROBOTOANT") { }
7,308,319
[ 1, 30762, 12786, 534, 5704, 27019, 27274, 1157, 50, 3033, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1435, 4232, 39, 27, 5340, 2932, 14444, 6302, 18830, 25713, 345, 3113, 315, 1457, 38, 27019, 6856, 7923, 288, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/43113/0x09b49ccC09a930216fE280E192E64FC145842ECC/sources/contracts/MasterChef.sol
Withdraw LP tokens from MasterChef.
function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.ac...
7,150,191
[ 1, 1190, 9446, 511, 52, 2430, 628, 13453, 39, 580, 74, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 6610, 6362, 3576, ...
./partial_match/97/0x13Bfa75fd0d35540b56919b17AbB1FfF7B114567/sources/HAZAL.sol
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "HAZ::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0...
11,442,704
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 19191, ...
./full_match/4/0x0Cd4aB3C76E1F452d951118c8a3861Ca533cef09/sources/Cryptogotchi.sol
add one to generation
device.generation = device.generation.add(1);
816,973
[ 1, 1289, 1245, 358, 9377, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 13491, 2346, 18, 25514, 273, 2346, 18, 25514, 18, 1289, 12, 21, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x1234567a022acaa848E7D6bC351d075dBfa76Dd4/sources/VokenTB.sol
* @dev Creates `amount` VOKEN and assigns them to `account`, increasing the total supply. Emits a {Mint} event. Emits a {Transfer} event with `from` set to the zero address./
function _mint( address account, uint256 amount ) private { uint256 total = _totalSupply.add(amount); require(total <= _cap, "Mint: total supply cap exceeded"); require(account != address(0), "Mint: to the zero address"); _totalSupply = total; ...
4,189,200
[ 1, 2729, 1375, 8949, 68, 776, 6239, 471, 22698, 2182, 358, 1375, 4631, 9191, 21006, 326, 2078, 14467, 18, 7377, 1282, 279, 288, 49, 474, 97, 871, 18, 7377, 1282, 279, 288, 5912, 97, 871, 598, 1375, 2080, 68, 444, 358, 326, 3634, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 81, 474, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 203, 3639, 3238, 203, 565, 288, 203, 3639, 2254, 5034, 2078, 273, 389, 4963, 3088, 1283, 18, 1289, 12, 8949, 1769, 203, 203, 363...
// SPDX-License-Identifier: MIT pragma solidity 0.8.2; pragma abicoder v2; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessCont...
* @dev Ultimate view for inspecting a token @param tokenId the unique ID of a RiverMenNFT token @return [[locationId, fusionCount, signature, creationTime, parts], ownerAddress, tokenURI, dealId] @notice dealId = 0 means the item is not listed in exchange/
function allInfo(uint256 tokenId) public view returns ( Product memory, address, string memory ) { require(_exists(tokenId), "Token not exists"); return (_tokenDetailsMapping[tokenId], ownerOf(tokenId), tokenURI(tokenId)); }...
11,639,373
[ 1, 57, 5618, 4988, 1476, 364, 5334, 310, 279, 1147, 225, 1147, 548, 326, 3089, 1599, 434, 279, 534, 1667, 49, 275, 50, 4464, 1147, 327, 12167, 3562, 548, 16, 25944, 1380, 16, 3372, 16, 6710, 950, 16, 2140, 6487, 3410, 1887, 16, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 777, 966, 12, 11890, 5034, 1147, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 8094, 3778, 16, 203, 5411, 1758, 16, 203, 5411, 533, 3778, 203, 3639, 262, 203, 565, 288, 203, 3639, 2583, 2...
pragma solidity 0.6.6; pragma experimental ABIEncoderV2; /** * SafeMath from OpenZeppelin - commit https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5dfe7215a9156465d550030eadc08770503b2b2f * * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operation...
* @dev Add new asset to Portfolio @param _assetTicker - Ticker @param _assetInfo - Info @param _assetPercentageParticipation - % of portfolio taken by the asset @return success/
function addNewAsset( string memory _assetTicker, string memory _assetInfo, uint8 _assetPercentageParticipation ) public onlyAdmin returns (bool success) { uint256 totalPercentageAssets = 0; for (uint256 i = 0; i < assets.length; i++) { require( ...
23,648
[ 1, 986, 394, 3310, 358, 6008, 10270, 225, 389, 9406, 18008, 300, 399, 5448, 225, 389, 9406, 966, 300, 3807, 225, 389, 9406, 16397, 1988, 24629, 367, 300, 738, 434, 19933, 9830, 635, 326, 3310, 327, 2216, 19, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 20973, 6672, 12, 203, 3639, 533, 3778, 389, 9406, 18008, 16, 203, 3639, 533, 3778, 389, 9406, 966, 16, 203, 3639, 2254, 28, 389, 9406, 16397, 1988, 24629, 367, 203, 565, 262, 1071, 1338, 4446, 1135, 261, 6430, 2216, 13,...
./full_match/1/0x4e5Bb5FfB7985B9D79fAb4283D2e6927Ca0EcaB3/sources/ArbitrageBot.sol
Withdraw contract's ETH balance
function withdrawETHBalance(address payable recipient) external isOwner{ recipient.transfer(address(this).balance); }
8,373,736
[ 1, 1190, 9446, 6835, 1807, 512, 2455, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1584, 44, 13937, 12, 2867, 8843, 429, 225, 8027, 13, 3903, 353, 5541, 95, 203, 3639, 8027, 18, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 565, 289, 1377, 203, 27699, 2, -100, -100, -100, -100, -100, ...
./full_match/1/0x710882750DDe5DBc64e5a7df23a8cF068dF74910/sources/Synth.sol
* @notice ERC223 transferFrom function/ Reduce the allowance by the amount we're transferring. The safeSub call will handle an insufficient allowance.
function transferFrom(address from, address to, uint value, bytes data) public optionalProxy returns (bool) { _notFeeAddress(from); tokenState.setAllowance(from, messageSender, tokenState.allowance(from, messageSender).sub(value)); return super._internalTransfer(...
9,797,909
[ 1, 654, 39, 3787, 23, 7412, 1265, 445, 19, 24614, 326, 1699, 1359, 635, 326, 3844, 732, 4565, 906, 74, 20245, 18, 1021, 4183, 1676, 745, 903, 1640, 392, 2763, 11339, 1699, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 628, 16, 1758, 358, 16, 2254, 460, 16, 1731, 501, 13, 203, 3639, 1071, 203, 3639, 3129, 3886, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 389, 902, 14667, 1887, 12, 2080, 1769, 203,...
pragma solidity ^0.4.24; // File: contracts\zeppelin\ownership\Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; ...
2% from totalSupply BOUNTY
uint256 public constant BOUNTY_TOKENS = 2;
919,031
[ 1, 22, 9, 628, 2078, 3088, 1283, 9784, 5321, 61, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 9784, 5321, 61, 67, 8412, 55, 282, 273, 576, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at BscScan.com on 2021-09-02 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; pragma experimental ABIEncoderV2; library Strings { function toString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; ...
Allocation for first/sencond/third reward The TOKEN to buy lottery The Lottery NFT for tickets adminAddress maxNumber minPrice, if decimal is not 18, please reset it ================================= issueId => winningNumbers[numbers] issueId => [tokenId] issueId => [totalAmount, firstMatchAmount, secondMatchingAmount...
contract Lottery is LotteryOwnable, Initializable { using SafeMath for uint256; using SafeMath for uint8; using SafeERC20 for IERC20; uint8 constant keyLengthForEachBuy = 11; uint8[3] public allocation; IERC20 public dooda; LotteryNFT public lotteryNFT; address public adminAddress; ...
13,124,681
[ 1, 17353, 364, 1122, 19, 87, 275, 10013, 19, 451, 6909, 19890, 1021, 14275, 358, 30143, 17417, 387, 93, 1021, 511, 352, 387, 93, 423, 4464, 364, 24475, 3981, 1887, 943, 1854, 1131, 5147, 16, 309, 6970, 353, 486, 6549, 16, 9582, 2715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 511, 352, 387, 93, 353, 511, 352, 387, 93, 5460, 429, 16, 10188, 6934, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 28, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 4...
./partial_match/4/0x4e7d503cbcD94519F62730061F4Cd5F7bC23813e/sources/Controller.sol
* @notice Recalculate and update PIE speeds for all PIE markets/
function refreshPieSpeedsInternal() internal { address[] memory allMarkets_ = allMarkets; for (uint i = 0; i < allMarkets_.length; i++) { address pToken = allMarkets_[i]; updatePieSupplyIndex(pToken); updatePieBorrowIndex(pToken, borrowIndex); } ...
8,620,163
[ 1, 426, 11162, 471, 1089, 7024, 41, 8632, 87, 364, 777, 7024, 41, 2267, 2413, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4460, 52, 1385, 16562, 87, 3061, 1435, 2713, 288, 203, 3639, 1758, 8526, 3778, 777, 3882, 2413, 67, 273, 777, 3882, 2413, 31, 203, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 777, 3882, 2413, 27799, 2469, ...
// This file was originally take from from Maker: DS Proxy Factory and modified. The original source code can be found // here: https://etherscan.io/address/0xa26e15c895efc0616177b7c1e7270a4c7d51c997#code // Changes are limited to updating the Solidity version and some stylistic modifications. /** *Submitted for veri...
use the proxy to execute calldata _data on contract _code deploy contract & store its address in cache
function execute(bytes memory _code, bytes memory _data) public payable returns (address target, bytes32 response) { target = cache.read(_code); if (target == address(0x0)) { target = cache.write(_code); } response = execute(target, _data); }
93,515
[ 1, 1202, 326, 2889, 358, 1836, 745, 892, 389, 892, 603, 6835, 389, 710, 7286, 6835, 473, 1707, 2097, 1758, 316, 1247, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 12, 3890, 3778, 389, 710, 16, 1731, 3778, 389, 892, 13, 1071, 8843, 429, 1135, 261, 2867, 1018, 16, 1731, 1578, 766, 13, 288, 203, 3639, 1018, 273, 1247, 18, 896, 24899, 710, 1769, 203, 3639, 309, 261, 3299, 422...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; /// @title PackedUint16Array /// @author alsco77 library PackedUint16Array { using PackedUint16Array for PackedUint16Array.PackedArray; struct PackedArray { uint256[] array; uint256 length; } // Verifies that the higher leve...
@title PackedUint16Array @author alsco77
library PackedUint16Array { using PackedUint16Array for PackedUint16Array.PackedArray; struct PackedArray { uint256[] array; uint256 length; } function initStruct(uint256[] memory _arr, uint256 _len) internal pure returns (PackedArray memory) { uint...
5,439,581
[ 1, 4420, 329, 5487, 2313, 1076, 225, 524, 1017, 83, 4700, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 7930, 329, 5487, 2313, 1076, 288, 203, 565, 1450, 7930, 329, 5487, 2313, 1076, 364, 7930, 329, 5487, 2313, 1076, 18, 4420, 329, 1076, 31, 203, 203, 203, 565, 1958, 7930, 329, 1076, 288, 203, 3639, 2254, 5034, 8526, 526, 31...
/** *Submitted for verification at Etherscan.io on 2021-05-06 */ pragma solidity 0.6.6; // ---------------------------------------------------------------------------- // 'CU Next Tuesday' token contract // // Deployed to : 0x82c4707DA8D867D6eEb2A4042FF9C21dDD41ec34 // Symbol : CUNTS // Name : CUNTToken ...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract CUNTToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "CUNTS"; ...
2,073,005
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 385, 5321, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.0; /** * @title interface of ERC 20 token * */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, ...
* @dev Update ERC1404 smart contract/
function updateRestrictedTransfer(address _restrictedTransfer) public onlyOwner{ restrictedTransfer = IERC1404(_restrictedTransfer); emit UpdatedRestrictedTransfer(_restrictedTransfer); }
10,438,506
[ 1, 1891, 4232, 39, 3461, 3028, 13706, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 18784, 5912, 12, 2867, 389, 29306, 5912, 13, 1071, 1338, 5541, 95, 203, 3639, 15693, 5912, 273, 467, 654, 39, 3461, 3028, 24899, 29306, 5912, 1769, 203, 3639, 3626, 19301, 18784, 5912, 24899, 29306, 5912, 1769, 203, ...
// File: github.com/provable-things/ethereum-api/blob/master/provableAPI_0.6.sol // <provableAPI> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016-2019 Oraclize LTD Copyright (c) 2019-2020 Provable Things Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
Once a query is executed, associate its ID with the bet's ID to handle updating the bet's state in __callback
mapping(bytes32 => string) public queryBets;
5,741,840
[ 1, 12212, 279, 843, 353, 7120, 16, 13251, 2097, 1599, 598, 326, 2701, 1807, 1599, 358, 1640, 9702, 326, 2701, 1807, 919, 316, 1001, 3394, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 3890, 1578, 516, 533, 13, 1071, 843, 38, 2413, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x8fa702D65542596aC1AD3C5454C622C13e53085E/sources/Moona_Lisa_Print_Original.sol
* @dev Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the caller. Emits an {ApprovalForAll} event./
function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); }
2,771,305
[ 1, 12053, 537, 578, 1206, 1375, 9497, 68, 487, 392, 3726, 364, 326, 4894, 18, 7692, 3062, 848, 745, 288, 13866, 1265, 97, 578, 288, 4626, 5912, 1265, 97, 364, 1281, 1147, 16199, 635, 326, 4894, 18, 29076, 30, 300, 1021, 1375, 9497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 565, 445, 444, 23461, 1290, 1595, 12, 2867, 3726, 16, 1426, 20412, 13, 203, 3639, 1071, 203, 3639, 5024, 203, 3639, 3849, 203, 565, 288, 203, 3639, 389, 9497, 12053, 4524, 63, 67, 3576, 12021, 654, 39, 27, 5340, 37, 1435, 6362, ...
./full_match/1/0x7af62458e41E2F490D2Df54A8FeDc56fFedB8c17/sources/lib/solady/src/utils/SafeTransferLib.sol
@dev Sends all of ERC20 `token` from the current contract to `to`. Reverts upon failure. @solidity memory-safe-assembly Store the function selector of `TransferFailed()`. Revert with (offset, size). Store the function selector of `TransferFailed()`. Revert with (offset, size).
function safeTransferAll(address token, address to) internal returns (uint256 amount) { assembly { if iszero( staticcall(gas(), token, 0x1c, 0x24, 0x3a, 0x20) ) ) { mstore(0x00, 0x90b8ec18) revert(0x1c, 0x04) ...
3,203,089
[ 1, 10501, 777, 434, 4232, 39, 3462, 1375, 2316, 68, 628, 326, 783, 6835, 358, 1375, 869, 8338, 868, 31537, 12318, 5166, 18, 632, 30205, 560, 3778, 17, 4626, 17, 28050, 4994, 326, 445, 3451, 434, 1375, 5912, 2925, 1435, 8338, 868, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4183, 5912, 1595, 12, 2867, 1147, 16, 1758, 358, 13, 2713, 1135, 261, 11890, 5034, 3844, 13, 288, 203, 3639, 19931, 288, 203, 5411, 309, 353, 7124, 12, 203, 10792, 760, 1991, 12, 31604, 9334, 1147, 16, 374, 92, 21, 71...
pragma solidity 0.4.24; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public...
override buytokens so all minting comes from Golix
function buyTokens(address beneficiary) public payable { revert(); }
2,535,150
[ 1, 10601, 30143, 7860, 1427, 777, 312, 474, 310, 14535, 628, 611, 355, 697, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 5157, 12, 2867, 27641, 74, 14463, 814, 13, 1071, 8843, 429, 288, 203, 3639, 15226, 5621, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.24; // File: node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * See https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function ...
=============================================================================================================== Modifiers ===============================================================================================================
modifier isExecutor() { require(executors[msg.sender]); _; }
1,796,326
[ 1, 9917, 4428, 14468, 12275, 4766, 1377, 3431, 3383, 422, 9917, 4428, 14468, 33, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 353, 6325, 1435, 288, 203, 3639, 2583, 12, 4177, 13595, 63, 3576, 18, 15330, 19226, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // OpenZeppelin Contracts v4.3.2 (token/ERC20/ERC20.sol) import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppel...
reflection ratio starts at 1.0
_rTotal = 1e18;
12,677,799
[ 1, 26606, 7169, 2542, 622, 404, 18, 20, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 86, 5269, 273, 404, 73, 2643, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
/** * SPDX-License-Identifier: UNLICENSED */ pragma solidity =0.6.10; pragma experimental ABIEncoderV2; // File: contracts/packages/oz/SafeMath.sol /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily res...
structs to avoid stack too deep error struct to store shortAmount, shortStrike and shortUnderlyingPrice scaled to 1e27
struct ShortScaledDetails { FPI.FixedPointInt shortAmount; FPI.FixedPointInt shortStrike; FPI.FixedPointInt shortUnderlyingPrice; }
1,551,717
[ 1, 1697, 87, 358, 4543, 2110, 4885, 4608, 555, 1958, 358, 1707, 3025, 6275, 16, 3025, 1585, 2547, 471, 3025, 14655, 6291, 5147, 12304, 358, 404, 73, 5324, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 7925, 55, 12825, 3790, 288, 203, 3639, 478, 1102, 18, 7505, 2148, 1702, 3025, 6275, 31, 203, 3639, 478, 1102, 18, 7505, 2148, 1702, 3025, 1585, 2547, 31, 203, 3639, 478, 1102, 18, 7505, 2148, 1702, 3025, 14655, 6291, 5...
./partial_match/56/0xbdCa4f7841490Fae02eEFD10EE8B81819f057917/sources/DogSwap.sol
any tokens sent here ?modifiers
contract DogSwap is ERC20Detailed { using SafeMath for uint256; uint256 public totalBurn = 0; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowed; mapping (address => bool) public addadmin; string constant tokenName = "DogSwap"; strin...
11,314,135
[ 1, 2273, 2430, 3271, 2674, 692, 15432, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 463, 717, 12521, 353, 4232, 39, 3462, 40, 6372, 288, 203, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 225, 2254, 5034, 1071, 2078, 38, 321, 273, 374, 31, 203, 21281, 225, 2874, 261, 2867, 516, 2254, ...
/** *Submitted for verification at Etherscan.io on 2021-08-29 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.7; library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. ...
set the base uri to be the api endpoint that returns the json of token metadata. baseURI/tokenID -> {image: 'ipfs/someHash'} initialise the contract metadata here also.
constructor(string memory _newBaseURI, string memory _contractURI) ERC721('Fractal Factory SierpinskiNFT', 'SPK') { setBaseURI(_newBaseURI); setContractURI(_contractURI); }
7,933,847
[ 1, 542, 326, 1026, 2003, 358, 506, 326, 1536, 2494, 716, 1135, 326, 1163, 434, 1147, 1982, 18, 1026, 3098, 19, 2316, 734, 317, 288, 2730, 30, 296, 625, 2556, 19, 19068, 2310, 11, 97, 21301, 326, 6835, 1982, 2674, 2546, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1080, 3778, 389, 2704, 2171, 3098, 16, 533, 3778, 389, 16351, 3098, 13, 4232, 39, 27, 5340, 2668, 42, 14266, 287, 7822, 348, 2453, 84, 2679, 15299, 50, 4464, 2187, 296, 3118, 47, 6134, 288, 203, 3639, 26435, 3098, ...