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
./partial_match/8453/0x6dd99ee8D74A9173B404251B88cD81C09a68D6C5/sources/SJM.sol
* @dev Sets the value of the `decimals`. This value is immutable, it can only be set once during construction./
constructor () ERC20('Saxon James Musk', 'SJM') { _mint(_msgSender(), _totalSupply); }
16,748,521
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 460, 434, 326, 1375, 31734, 8338, 1220, 460, 353, 11732, 16, 518, 848, 1338, 506, 444, 3647, 4982, 16171, 18, 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, 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...
[ 1, 565, 3885, 1832, 4232, 39, 3462, 2668, 55, 651, 265, 804, 753, 490, 407, 79, 2187, 296, 55, 46, 49, 6134, 288, 203, 3639, 389, 81, 474, 24899, 3576, 12021, 9334, 389, 4963, 3088, 1283, 1769, 203, 565, 289, 203, 203, 2, -100, ...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.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 shou...
RETURNS THE AMOUNT OF TOKES THAT HAVE BEEN MINTED ALREADY
function returnSupply() external view returns (uint256) { return totalSupply(); }
256,093
[ 1, 4625, 348, 7953, 560, 30, 10366, 1099, 3156, 12786, 432, 5980, 5321, 15932, 399, 3141, 3991, 7662, 789, 21926, 3412, 9722, 1157, 6989, 6404, 7981, 20305, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 327, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2078, 3088, 1283, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0xd6c833B81a8F62fd694b516bb989474534853AEC/sources/PopChef.sol
Token transfer function.
function tokenTransfer(address _to, IERC20 _token, uint256 _amount) public onlyOwner { uint256 tokenBal = _token.balanceOf(address(this)); if (_amount > tokenBal) { _token.transfer(_to, tokenBal); _token.transfer(_to, _amount); } }
5,083,933
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 7412, 445, 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, 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, 445, 1147, 5912, 12, 2867, 389, 869, 16, 467, 654, 39, 3462, 389, 2316, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 1147, 38, 287, 273, 389, 2316, 18, 12296, 951, 12, 2867, 12, 2211, 10019,...
pragma solidity ^0.4.23; /** * @title SafeMath * @dev https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } ...
выпуск токенов в период основной распродажи
function mainSale(address _investor, uint256 _value) internal { token.mintFromICO(_investor, tokens); token.mintFromICO(founders, tokensFounders); token.mintFromICO(bounty, tokensBoynty); token.mintFromICO(reserve, tokenReserve); weisRaised = weisRaised.add(msg.value); ...
1,791,378
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 145, 115, 146, 238, 145, 128, 146, 230, 146, 228, 145, 123, 225, 146, 229, 145, 127, 145, 123, 145, 118, 145, 126, 145, 127, 145, 115, 225, 145, 115, 225, 145, 128, 145, 118, 146, 227, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2774, 30746, 12, 2867, 389, 5768, 395, 280, 16, 2254, 5034, 389, 1132, 13, 2713, 288, 203, 203, 3639, 1147, 18, 81, 474, 1265, 2871, 51, 24899, 5768, 395, 280, 16, 2430, 1769, 203, 203, 3639, 1147, 18, 81, 474, 1265, ...
./partial_match/1313161554/0xa200B567579a577F582d292f7A1b5C4ecce195F8/sources/Comptroller.sol
* @dev Returns the name of the token./* @dev Returns the symbol of the token./* @dev Returns the decimals places of the token./
interface PULPInterface is IERC20Metadata { function globalLock(uint256 _week) external view returns (uint256); function userLock(address _user, uint256 _week) external view returns (bool, uint224); function PLY() external view returns (address); function lockPly(address recipient, uint256 amount) external; ...
16,936,325
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 508, 434, 326, 1147, 18, 20308, 632, 5206, 2860, 326, 3273, 434, 326, 1147, 18, 20308, 632, 5206, 2860, 326, 15105, 12576, 434, 326, 1147, 18, 19, 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, 0, 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, 5831, 453, 1506, 52, 1358, 353, 467, 654, 39, 3462, 2277, 288, 203, 225, 445, 2552, 2531, 12, 11890, 5034, 389, 10741, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 225, 445, 729, 2531, 12, 2867, 389, 1355, 16, 2254, ...
./partial_match/1/0xfb31118C7C0EC5D032d77B04E47FE4b405e68C67/sources/PixelAtelier.sol
* including the Metadata extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at `_startTokenId()` (defaults to 0, e.g. 0, 1, 2, 3..). Assumes that an owner cannot have more than 264 - 1 (max value of uint64) of supply. Assumes that the maximum token id cannot ...
contract ERC721A is IERC721A { uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; uint256 private constant BITPOS_NUMBER_MINTED = 64; uint256 private constant BITPOS_NUMBER_BURNED = 128; uint256 private constant BITPOS_AUX = 192; uint256 private constant BITMASK_AUX_COMPLEMENT ...
2,584,326
[ 1, 4625, 348, 7953, 560, 30, 380, 6508, 326, 6912, 2710, 18, 27376, 358, 10979, 364, 2612, 16189, 4982, 2581, 312, 28142, 18, 25374, 2734, 87, 854, 695, 6979, 6261, 312, 474, 329, 5023, 622, 1375, 67, 1937, 1345, 548, 20338, 261, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 27, 5340, 37, 353, 467, 654, 39, 27, 5340, 37, 288, 203, 565, 2254, 5034, 3238, 5381, 20469, 11704, 67, 15140, 67, 4883, 67, 19083, 273, 261, 21, 2296, 5178, 13, 300, 404, 31, 203, 203, 565, 2254, 5034, 3238, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721EnumerableLemon.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import ...
* @notice public mint function/
function mint(uint256 numberOfTokens) external payable nonReentrant{ require(mintIsActive, "Mint is not active"); require(numberOfTokens <= MAX_TOKENS_PURCHASE, "You went over max tokens per transaction"); require(numTokensMinted + numberOfTokens <= maxTokens, "Not enough tokens left to mint...
624,649
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 20392, 1071, 312, 474, 445, 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, ...
[ 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, 565, 445, 312, 474, 12, 11890, 5034, 7922, 5157, 13, 3903, 8843, 429, 1661, 426, 8230, 970, 95, 203, 3639, 2583, 12, 81, 474, 2520, 3896, 16, 315, 49, 474, 353, 486, 2695, 8863, 203, 3639, 2583, 12, 2696, 951, 5157, 1648, 4552,...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.6.0; contract ControllerConstants { // Minimum number of tokens in an index. uint256 public constant MIN_INDEX_SIZE = 2; // Maximum number of tokens in an index. uint256 public constant MAX_INDEX_SIZE = 10; // Minimum balance for a token (only applied...
========== External Interfaces ========== */
import "@indexed-finance/proxies/contracts/interfaces/IDelegateCallProxyManager.sol";
10,232,361
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 11352, 27152, 422, 1432, 1195, 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, 5666, 8787, 19626, 17, 926, 1359, 19, 20314, 606, 19, 16351, 87, 19, 15898, 19, 734, 292, 4784, 1477, 3886, 1318, 18, 18281, 14432, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x8Fbc2bD0F023c282EB6913444f26Ec8EC73DE967/sources/src/Pool.sol
BALANCES MANAGEMENT AND ADMINISTRATIVE FUNCTIONS/ Calculates cumulative ratio as of current timestamp. Can be consumed for TWAR observations. @dev See UniV2 implmentation: https://tinyurl.com/UniV2currentCumulativePrice @return currentCumulativeRatio_ is the cumulative ratio up to the current timestamp as ray. @retur...
Note: The sync() function has been discontinued and removed. _____________________________________ |o o o o o o o o o o o o o o o o o| |o o o o o o o o o o o o o o o o o| ||_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|| || | | | | |...
4,162,670
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 1013, 4722, 55, 20972, 2833, 3212, 4116, 25969, 18643, 12992, 13690, 55, 19, 26128, 15582, 7169, 487, 434, 783, 2858, 18, 225, 4480, 506, 12393, 364, 399, 16777, 16477, 18, 632, 5206, 2164, 1351,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 4202, 3609, 30, 1021, 3792, 1435, 445, 711, 2118, 1015, 1213, 267, 5957, 471, 3723, 18, 203, 5375, 389, 21157, 21157, 7198, 203, 10402, 571, 83, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 96...
./full_match/421613/0x602108F51134Bd25C9b1A386ED336DF7B23001ac/sources/contracts/Banana.sol
@notice The EIP-712 typehash for the contract's domain prevents premature rebasing, requires initialization exclude base token address from fees (avoid recursion lock)
constructor() ERC20PresetMinterRebaser("Banana", "BANANA") { bananaScalingFactor = BASE; _mint(owner(), _fragmentToBanana(INIT_SUPPLY)); lastBlock = uint256(int256(-1)); vaults[address(this)] = true; }
11,576,106
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 512, 2579, 17, 27, 2138, 618, 2816, 364, 326, 6835, 1807, 2461, 17793, 23020, 1231, 283, 9157, 310, 16, 4991, 10313, 4433, 1026, 1147, 1758, 628, 1656, 281, 261, 842, 839, 13917, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 18385, 49, 2761, 426, 9157, 264, 2932, 38, 304, 13848, 3113, 315, 38, 1258, 1258, 37, 7923, 288, 203, 3639, 25732, 13848, 8471, 6837, 273, 10250, 31, 203, 203, 3639, 389, 81, 474, 12, 8443, 9334, ...
./partial_match/1/0xf23309964b58778d4EC6c29357fe65964724d788/sources/REFLECT.sol
PancakeSwap: 0x10ED43C718714eb63d5aA57B78B54704E256024E Uniswap V2: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
contract REFLECT is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public treasuryWallet = payable(0x7eAC92FeE690a8BC6a68F65Bbc1C329084C49346); address public constant deadAddress = 0x000000000000000000000000000000000000dEaD; mapping(address => uint...
2,877,353
[ 1, 4625, 348, 7953, 560, 30, 225, 12913, 23780, 12521, 30, 374, 92, 2163, 2056, 8942, 39, 27, 2643, 27, 3461, 24008, 4449, 72, 25, 69, 37, 10321, 38, 8285, 38, 6564, 27, 3028, 41, 5034, 3103, 24, 41, 1351, 291, 91, 438, 776, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20557, 3918, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 5267, 364, 1758, 31, 203, 203, 225, 1758, 8843, 429, 1071, 9787, 345, 22498, 16936, 2...
// Dependency file: @chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bug...
============ Structs ============ */
struct PoolConfig { uint256 numOfWinners; uint256 participantLimit; uint256 enterAmount; uint256 feePercentage; uint256 randomSeed; uint256 startedAt; } event FeeRecipientSet(address indexed _feeRecipient); event MaxParticipationCompleted(address indexed...
225,622
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 631, 7362, 87, 422, 1432, 631, 1195, 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, 1958, 8828, 809, 288, 203, 3639, 2254, 5034, 23153, 18049, 9646, 31, 203, 3639, 2254, 5034, 14188, 3039, 31, 203, 3639, 2254, 5034, 6103, 6275, 31, 203, 3639, 2254, 5034, 14036, 16397, 31, 203, 3639, 2254, 5034, 2744, 12702, 3...
./partial_match/1/0x75ef172Ab4c0DDe0751D695216619Cc028cdbd2F/sources/LinearTrueDistributor.sol
calculate distribution amount
uint256 amount = totalAmount.sub(distributed);
2,747,998
[ 1, 4625, 348, 7953, 560, 30, 225, 4604, 7006, 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, 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, 3639, 2254, 5034, 3844, 273, 2078, 6275, 18, 1717, 12, 2251, 11050, 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, ...
./full_match/97/0x73497CE0BFaD0A3c43C493D0aFcA5F48B78E9218/sources/project_/contracts/MoedaSocial.sol
Habilitar somente em ambiente de teste
function setMintAmount(uint256 newAmount) public restricted { _mintAmount = newAmount; }
3,265,008
[ 1, 4625, 348, 7953, 560, 30, 670, 22681, 305, 297, 4737, 319, 73, 801, 13232, 1979, 73, 443, 1842, 73, 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, 15430, 474, 6275, 12, 11890, 5034, 394, 6275, 13, 1071, 15693, 288, 203, 3639, 389, 81, 474, 6275, 273, 394, 6275, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.13; /** * 10X contract * Copyright 2017, TheWolf * * An infinite crowdfunding lottery token * Using a permanent delivery of tokens as a reward to the lost bids. * With a bullet proof random generation algorithm and a lot of inovative features * With a state machine switching autom...
if we are not in auto pilot, pause the game and let the owner decide.
if (!isAutopilot) {
12,609,317
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 732, 854, 486, 316, 3656, 293, 22797, 16, 11722, 326, 7920, 471, 2231, 326, 3410, 16288, 18, 203, 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, 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...
[ 1, 5411, 309, 16051, 291, 7150, 30789, 13, 288, 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, ...
pragma solidity ^0.7.0; // 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); function balanceOf(address account) ...
transfer total supply to ownerfire an event on transfer of tokens
constructor () { _name = 'fynx token'; _symbol = 'FYNX'; _decimals = 18; _owner = 0xF0d558920Cd4db271044D0A66a713Ec371e0dc67; _totalSupply = 10000000000 * (10**_decimals); _balances[_owner] =_totalSupply; emit Transfer(ad...
248,945
[ 1, 4625, 348, 7953, 560, 30, 7412, 2078, 14467, 358, 3410, 12179, 392, 871, 603, 7412, 434, 2430, 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, 3885, 1832, 225, 288, 203, 3639, 389, 529, 273, 296, 74, 878, 92, 1147, 13506, 203, 3639, 389, 7175, 273, 296, 42, 61, 17106, 13506, 203, 3639, 389, 31734, 273, 6549, 31, 203, 3639, 389, 8443, 273, 374, 16275, 20, 72, 2539...
pragma solidity ^0.4.23; /** * @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 optimiza...
Divide the signature in r, s and v variables
(v, r, s) = splitSignature(sig);
938,799
[ 1, 4625, 348, 7953, 560, 30, 225, 21411, 831, 326, 3372, 316, 436, 16, 272, 471, 331, 3152, 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, ...
[ 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, 3639, 261, 90, 16, 436, 16, 272, 13, 273, 1416, 5374, 12, 7340, 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, -...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "./AelinERC20.sol"; import "./AelinDeal.sol"; import "./MinimalProxyFactory.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract AelinPool is AelinERC20, MinimalProxyFactory { using SafeERC20 for IERC20; ...
* @dev view to see how much of the deal a purchaser can accept./* The if statement is checking to see if the holder has not funded the deal or if the period is outside of a redemption window so nothing is available. It then checks if you are in the pro rata period and open period eligibility/
function maxDealAccept(address purchaser) external view returns (uint256) { if ( holderFundingExpiry == 0 || aelinDeal.proRataRedemptionStart() == 0 || (block.timestamp >= aelinDeal.proRataRedemptionExpiry() && aelinDeal.openRedemptionStart() == 0) || ...
12,811,963
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1476, 358, 2621, 3661, 9816, 434, 326, 10490, 279, 5405, 343, 14558, 848, 2791, 18, 20308, 1021, 309, 3021, 353, 6728, 358, 2621, 309, 326, 10438, 711, 486, 9831, 785, 326, 10490, 578, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 943, 758, 287, 5933, 12, 2867, 5405, 343, 14558, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 203, 5411, 10438, 42, 14351, 14633, 422, 374, 747, 203, 5411, 279, 292, 267, 758, 287, 18, 685, 54...
pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../HandlerBase.sol"; import "./libraries/SushiSwapLibrary.sol"; import "../uniswapv2/IUniswapV2Router02.sol"; contract HSushiSwap is HandlerBase { using SafeERC20 for IE...
Get uniswapV2 router if amount == uint256(-1) return balance of Proxy Approve token
function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] calldata path ) external payable returns (uint256 amount) { if (path.length < 2) _revertMsg("swapTokensForExactTokens", "invalid path"); address tokenIn = path[0]; add...
12,599,097
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 640, 291, 91, 438, 58, 22, 4633, 309, 3844, 422, 2254, 5034, 19236, 21, 13, 327, 11013, 434, 7659, 1716, 685, 537, 1147, 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, 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, 7720, 5157, 1290, 14332, 5157, 12, 203, 3639, 2254, 5034, 3844, 1182, 16, 203, 3639, 2254, 5034, 3844, 382, 2747, 16, 203, 3639, 1758, 8526, 745, 892, 589, 203, 565, 262, 3903, 8843, 429, 1135, 261, 11890, 5034, 3844, 1...
./full_match/42161/0x5B495F170BfCba51Db96Ff16Ba8BC4686CFA92b4/sources/contracts/incentivizer/types/ProductManager.sol
* @notice Syncs an account for this product with the latest data @dev Assumes that sync() has already been called as part of the transaction flow @param self The Program manager to operate on @param product This Product @param account The account to sync @param currentOracleVersion The preloaded current oracle version/...
function syncAccount( ProductManager storage self, IProduct product, address account, IOracleProvider.OracleVersion memory currentOracleVersion ) internal { uint256 fromProgramId = self.nextProgramFor[account]; uint256 toProgramId = self.programInfos.length; ...
16,304,382
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 9721, 87, 392, 2236, 364, 333, 3017, 598, 326, 4891, 501, 632, 5206, 25374, 716, 3792, 1435, 711, 1818, 2118, 2566, 487, 1087, 434, 326, 2492, 4693, 632, 891, 365, 1021, 13586, 3301, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3792, 3032, 12, 203, 3639, 8094, 1318, 2502, 365, 16, 203, 3639, 467, 4133, 3017, 16, 203, 3639, 1758, 2236, 16, 203, 3639, 1665, 16873, 2249, 18, 23601, 1444, 3778, 783, 23601, 1444, 203, 565, 262, 2713, 288, 203, 203,...
./partial_match/1/0xB2C104140962c9d35d66513774DB636c30A9B526/sources/ERC20Template.sol
* @dev Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint. @return A boolean that indicates if the operation was successful./
function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) { require(totalSupply().add(_amount) <= cap); return super.mint(_to, _amount); }
3,708,961
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 358, 312, 474, 2430, 632, 891, 389, 869, 1021, 1758, 716, 903, 6798, 326, 312, 474, 329, 2430, 18, 632, 891, 389, 8949, 1021, 3844, 434, 2430, 358, 312, 474, 18, 632, 2463, 432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 225, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1338, 5541, 848, 49, 474, 1071, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 4963, 3088, 1283, 7675, 1289, 24899, 8949, 13, 1648, 3523, 1769, 203, 203, 565...
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.6.12; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import "./uniswapv2/interfaces/IU...
@notice Total claimable profit in snapshot. @return Total claimable profit in mUSD.
function claimableProfitAt(uint256 _snapshotId) public view returns (uint256) { return totalProfitAt(_snapshotId).div(2); }
1,609,339
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 10710, 7516, 429, 450, 7216, 316, 4439, 18, 632, 2463, 10710, 7516, 429, 450, 7216, 316, 312, 3378, 40, 18, 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, 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, 565, 445, 7516, 429, 626, 7216, 861, 12, 11890, 5034, 389, 11171, 548, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2078, 626, 7216, 861, 24899, 11171, 548, 2934, 2892, 12, 22, 1769, 203, 565, 289, 203, 203, ...
pragma solidity =0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; /** @title Chequebook contract without waivers @author The Swarm Authors @notice ...
@return the part of the balance available for a specific beneficiary
function liquidBalanceFor(address beneficiary) public view returns(uint) { return liquidBalance().add(hardDeposits[beneficiary].amount); }
12,957,702
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2463, 326, 1087, 434, 326, 11013, 2319, 364, 279, 2923, 27641, 74, 14463, 814, 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, 225, 445, 4501, 26595, 13937, 1290, 12, 2867, 27641, 74, 14463, 814, 13, 1071, 1476, 1135, 12, 11890, 13, 288, 203, 565, 327, 4501, 26595, 13937, 7675, 1289, 12, 20379, 758, 917, 1282, 63, 70, 4009, 74, 14463, 814, 8009, 8949, 17...
./full_match/80001/0x93606Db8e1340eBa115633Cc8a031D379D7638C6/sources/contracts/dev/vendor/openzeppelin-solidity/v.4.8.0/contracts/utils/SafeCast.sol
* @dev Returns the downcasted int64 from int256, reverting on overflow (when the input is less than smallest int64 or greater than largest int64). Counterpart to Solidity's `int64` operator. Requirements: - input must fit into 64 bits _Available since v3.1._/
function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); require(downcasted == value, "SafeCast: value doesn't fit in 64 bits"); }
5,640,094
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2588, 4155, 329, 509, 1105, 628, 509, 5034, 16, 15226, 310, 603, 9391, 261, 13723, 326, 810, 353, 5242, 2353, 13541, 509, 1105, 578, 6802, 2353, 12756, 509, 1105, 2934, 9354, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 20771, 1105, 12, 474, 5034, 460, 13, 2713, 16618, 1135, 261, 474, 1105, 2588, 4155, 329, 13, 288, 203, 565, 2588, 4155, 329, 273, 509, 1105, 12, 1132, 1769, 203, 565, 2583, 12, 2378, 4155, 329, 422, 460, 16, 315, 9890...
pragma solidity ^0.5.0; // https://github.com/OpenZeppelin/openzeppelin-solidity/blob/v2.3.0/contracts/utils/Address.sol /** * @dev Collection of functions related to the address type, */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and the...
* @dev Internal function to transfer ownership of a given token ID to another address. As opposed to transferFrom, this imposes no restrictions on msg.sender. @param from current owner of the token @param to address to receive the ownership of the given token ID @param tokenId uint256 ID of the token to be transferred/
function _transferFrom(address from, address to, uint256 tokenId) internal { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _clearApproval(tokenId); _ownedTokensCount[from].decrement...
171,075
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 445, 358, 7412, 23178, 434, 279, 864, 1147, 1599, 358, 4042, 1758, 18, 2970, 1061, 7423, 358, 7412, 1265, 16, 333, 709, 10522, 1158, 17499, 603, 1234, 18, 15330, 18, 632, 891, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 13866, 1265, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 1147, 548, 13, 2713, 288, 203, 3639, 2583, 12, 8443, 951, 12, 2316, 548, 13, 422, 628, 16, 315, 654, 39, 27, 5340, 30, 7412, 434, 1147, 716, 353, 486, ...
./partial_match/4/0x7d9b35947Df9f27800487828058936a800e8fAeB/sources/OptionFactory.sol
* Convenience method to calculate amount returned from a sell trade Sell fee is 0, but still return it in case it's set in the future/
function calcSellAmountAndFee( bool isLongToken, uint256 strikeIndex, uint256 optionsIn ) external view returns (uint256 cost, uint256) { (uint256[] memory longSupplies, uint256[] memory shortSupplies) = getTotalSupplies(); uint256[] memory supplies = isLongToken ? longSu...
8,646,372
[ 1, 4625, 348, 7953, 560, 30, 380, 735, 9080, 707, 358, 4604, 3844, 2106, 628, 279, 357, 80, 18542, 348, 1165, 14036, 353, 374, 16, 1496, 4859, 327, 518, 316, 648, 518, 1807, 444, 316, 326, 3563, 19, 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, 0, 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, 7029, 55, 1165, 6275, 1876, 14667, 12, 203, 3639, 1426, 353, 3708, 1345, 16, 203, 3639, 2254, 5034, 609, 2547, 1016, 16, 203, 3639, 2254, 5034, 702, 382, 203, 565, 262, 3903, 1476, 1135, 261, 11890, 5034, 6991, 16, 2254...
./full_match/4/0xFCB8004d1f3f2FF3968ED8651F982e5849dE7Cb1/sources/PixelSheepArt.sol
Minting and Minting incentive.
abstract contract EarlyMintIncentive is Ownable, ERC721A { uint256 public PRICE = NFTPrice; uint256 public EARLY_MINT_PRICE = InitialIncentivePrice; uint256 public earlyMintTokenIdCap = InitialIncentiveCap; bool public usingEarlyMintIncentive = true; function _beforeTokenTransfers( address from, addr...
751,288
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 474, 310, 471, 490, 474, 310, 316, 2998, 688, 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...
[ 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, 17801, 6835, 512, 20279, 49, 474, 382, 2998, 688, 353, 14223, 6914, 16, 4232, 39, 27, 5340, 37, 288, 203, 225, 2254, 5034, 1071, 10365, 1441, 273, 423, 4464, 5147, 31, 203, 225, 2254, 5034, 1071, 512, 985, 7076, 67, 49, 3217, 6...
// SPDX-License-Identifier: Apache-2.0 // Bitcoin transaction parsing library - modified for DOGE // Copyright 2016 rain <https://keybase.io/rain> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the L...
returns true if the bytes located in txBytes by pos and script_len represent a P2SH script
function isP2SH(bytes memory txBytes, uint pos, uint script_len) private pure returns (bool) { }
12,605,677
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 638, 309, 326, 1731, 13801, 316, 2229, 2160, 635, 949, 471, 2728, 67, 1897, 2406, 279, 453, 22, 2664, 2728, 2, 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, 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, 445, 29962, 22, 2664, 12, 3890, 3778, 2229, 2160, 16, 2254, 949, 16, 2254, 2728, 67, 1897, 13, 3238, 16618, 1135, 261, 6430, 13, 288, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// Author: M Ben Hajla // Only for educational purposes pragma solidity ^0.4.0; contract ErrorHandlingContract { /*In the following function, you can see how require can be used to easily check conditions on inputs and how and assert can be used for internal error checking Source: solidity docu. */ funct...
Only allow even numbers
require(msg.value % 2 == 0);
13,073,345
[ 1, 4625, 348, 7953, 560, 30, 225, 5098, 1699, 5456, 5600, 7010, 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, 202, 202, 6528, 12, 3576, 18, 1132, 738, 576, 422, 374, 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, -100, -100, -100,...
./full_match/1/0xd8e3C85DeB0F46423418B22813b9c751CCcEa1DD/sources/browser/Dima/DimaFarm.sol
Remove amount from rewards
amount = sub(amount, reward);
3,119,748
[ 1, 4625, 348, 7953, 560, 30, 225, 3581, 3844, 628, 283, 6397, 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, 3639, 3844, 273, 720, 12, 8949, 16, 19890, 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, -100, -100, -100, -100, ...
pragma solidity >=0.6.0; pragma experimental ABIEncoderV2; pragma ignoreIntOverflow; pragma AbiHeader expire; pragma AbiHeader pubkey; pragma AbiHeader time; interface IAccept { function acceptTransfer(bytes payload) external payable; } /// @title Multisignature wallet /// @author Tonlabs (https://tonlabs.io) con...
@dev Contract constructor. @param owners Array of custodian keys. @param reqConfirms Default number of confirmations required for executing transaction.
constructor(uint256[] owners, uint8 reqConfirms) public { require(msg.pubkey() == tvm.pubkey(), 100); require(owners.length > 0 && owners.length <= MAX_CUSTODIAN_COUNT, 117); tvm.accept(); _initialize(owners, reqConfirms); }
6,437,900
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 13456, 3885, 18, 632, 891, 25937, 1510, 434, 276, 641, 369, 2779, 1311, 18, 632, 891, 1111, 3976, 481, 959, 2989, 1300, 434, 6932, 1012, 1931, 364, 11274, 2492, 18, 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, 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, 565, 3885, 12, 11890, 5034, 8526, 25937, 16, 2254, 28, 1111, 3976, 481, 959, 13, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 23428, 1435, 422, 268, 3489, 18, 23428, 9334, 2130, 1769, 203, 3639, 2583, 12, 995, 414, 18, 2469, 405, ...
pragma solidity 0.5.17; // optimization runs: 200, evm version: istanbul // WARNING - `executeActionWithAtomicBatchCalls` has a `bytes[]` argument that // requires ABIEncoderV2. Exercise caution when calling that specific function. pragma experimental A...
inject NONSTANDARD NAMING
function MIGRATECDAITODDAI660() external {
5,492,133
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 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, 225, 445, 490, 3047, 24062, 39, 9793, 1285, 1212, 9793, 45, 26, 4848, 1435, 3903, 288, 202, 2, -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/8453/0x99767FAe81A14C614ed0a564AeEa15A762508BAC/sources/BasedSwap.sol
File contracts/BasedSwap.sol
contract BasedSwap is Ownable, ERC20 { bool public limited; uint256 public maxHoldingAmount; uint256 public minHoldingAmount; address public uniswapV2Pair; mapping(address => bool) public blacklists; function _beforeTokenTransfer( address from, address to, uint256 amoun...
16,802,626
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 20092, 19, 9802, 12521, 18, 18281, 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, 16351, 25935, 12521, 353, 14223, 6914, 16, 4232, 39, 3462, 288, 203, 565, 1426, 1071, 13594, 31, 203, 565, 2254, 5034, 1071, 943, 20586, 310, 6275, 31, 203, 565, 2254, 5034, 1071, 1131, 20586, 310, 6275, 31, 203, 565, 1758, 1071, ...
./full_match/4/0x9c8396e5214a1773fa5Fe83ef7169B2867E453ee/sources/browser/Staking.sol
getIncome();getReward();
function exit() external { withdraw(balances[msg.sender]); }
13,370,480
[ 1, 4625, 348, 7953, 560, 30, 7854, 5624, 5621, 588, 17631, 1060, 5621, 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, 2427, 1435, 3903, 288, 203, 3639, 598, 9446, 12, 70, 26488, 63, 3576, 18, 15330, 19226, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// Verified using https://dapp.tools // hevm: flattened sources of src/GebProxySaviourActions.sol pragma solidity =0.6.7 >=0.6.7; ////// lib/geb-proxy-registry/lib/ds-proxy/lib/ds-auth/src/auth.sol // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public ...
@notice Repays debt @param manager address @param coinJoin address @param safe uint @param wad uint - amount of debt to be repayed Joins COIN amount into the safeEngine Paybacks debt to the SAFE Joins COIN amount into the safeEngine Paybacks debt to the SAFE
function _repayDebt( address manager, address coinJoin, uint safe, uint wad, bool transferFromCaller ) internal { address safeEngine = ManagerLike(manager).safeEngine(); address safeHandler = ManagerLike(manager).safes(safe); bytes32 collateralType...
13,562,849
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 868, 84, 8271, 18202, 88, 632, 891, 3301, 1758, 632, 891, 13170, 4572, 1758, 632, 891, 4183, 2254, 632, 891, 341, 361, 2254, 300, 3844, 434, 18202, 88, 358, 506, 2071, 528, 329, 4214, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 266, 10239, 758, 23602, 12, 203, 3639, 1758, 3301, 16, 203, 3639, 1758, 13170, 4572, 16, 203, 3639, 2254, 4183, 16, 203, 3639, 2254, 341, 361, 16, 203, 3639, 1426, 7412, 1265, 11095, 203, 565, 262, 2713, 288, 203, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.6.10; import {WhitelistInterface} from "../interfaces/WhitelistInterface.sol"; import {AddressBookInterface} from "../interfaces/AddressBookInterface.sol"; import {OracleInterface} from "../interfaces/OracleInterface.sol"; import {OtokenInterface} from "../inte...
* @notice allows the owner to whitelist a product @dev product is the hash of underlying asset, strike asset, collateral asset, and isPut can only be called from the owner address @param _underlying asset that the option references @param _strike asset that the strike price is denominated in @param _collateral asset th...
function ownerWhitelistProduct( address _underlying, address _strike, address _collateral, bool _isPut ) external override onlyOwner { require(whitelistedCollateral[_collateral], "Whitelist: Collateral is not whitelisted"); bytes32 productHash = keccak256(abi.enc...
11,886,516
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 5360, 326, 3410, 358, 10734, 279, 3017, 632, 5206, 3017, 353, 326, 1651, 434, 6808, 3310, 16, 609, 2547, 3310, 16, 4508, 2045, 287, 3310, 16, 471, 353, 6426, 848, 1338, 506, 2566, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3410, 18927, 4133, 12, 203, 3639, 1758, 389, 9341, 6291, 16, 203, 3639, 1758, 389, 701, 2547, 16, 203, 3639, 1758, 389, 12910, 2045, 287, 16, 203, 3639, 1426, 389, 291, 6426, 203, 565, 262, 3903, 3849, 1338, 5541, 288, ...
./full_match/1/0xe66BC0F7eF54952c86059b789C812683Bd5B727e/sources/DLVRHC.sol
set as marketing wallet
marketingWallet = address(0x9860ed36B8604c18164C47AbF59C6c479d0dfA74);
9,662,348
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 13667, 310, 9230, 203, 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, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 10689, 4848, 329, 5718, 38, 5292, 3028, 71, 2643, 23147, 39, 9462, 5895, 42, 6162, 39, 26, 71, 24, 7235, 72, 20, 2180, 37, 5608, 1769, 225, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/97/0x0eb2eBa66E6a325e15C1E42548D49bA50896f88A/sources/contracts/t-rex/roles/Roles.sol
* @dev Check if an account has this role. @return bool/
function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; }
5,018,998
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2073, 309, 392, 2236, 711, 333, 2478, 18, 632, 2463, 1426, 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...
[ 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, 225, 445, 711, 12, 2996, 2502, 2478, 16, 1758, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 4631, 480, 1758, 12, 20, 3631, 315, 6898, 30, 2236, 353, 326, 3634, 1758, 8863, 203, 565, 327, 2478, 18, 29400, ...
./full_match/80001/0x184dDC9fe4e6d5E7B0562FDdFC6feeC1Ce86E545/sources/contracts/Bear.sol
* @dev Pauses all token transfers. See {ERC721Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`./ This will make sure the address who call this function has pauser role which is only the contract owner
function pause() public virtual onlyOwner { require(hasRole(PAUSER_ROLE, _msgSender()), "Bear: must have pauser role to pause"); _pause(); }
5,686,166
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 453, 9608, 777, 1147, 29375, 18, 2164, 288, 654, 39, 27, 5340, 16507, 16665, 97, 471, 288, 16507, 16665, 17, 67, 19476, 5496, 29076, 30, 300, 326, 4894, 1297, 1240, 326, 1375, 4066, 4714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11722, 1435, 1071, 5024, 1338, 5541, 288, 203, 3639, 2583, 12, 5332, 2996, 12, 4066, 4714, 67, 16256, 16, 389, 3576, 12021, 1435, 3631, 315, 1919, 297, 30, 1297, 1240, 6790, 1355, 2478, 358, 11722, 8863, 203, 3639, 389, ...
./full_match/4/0xbF6ab8A173618b6CC1d0E60b202779E4CF966387/sources/baal.sol
@notice Modern and gas efficient ERC20 + EIP-2612 implementation with COMP-style governance, @author Adapted from RariCapital, https://github.com/Rari-Capital/solmate/blob/main/src/erc20/ERC20.sol, License-Identifier: AGPL-3.0-only.
contract KaliDAOtoken { EVENTS event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); event DelegateChanged(address indexed delegator, address indexed fromDelegate, address index...
12,419,919
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3431, 8865, 471, 16189, 14382, 4232, 39, 3462, 397, 512, 2579, 17, 5558, 2138, 4471, 598, 13846, 17, 4060, 314, 1643, 82, 1359, 16, 632, 4161, 22792, 329, 628, 534, 12954, 4664, 7053, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1475, 18083, 18485, 2316, 288, 203, 18701, 9964, 55, 203, 203, 565, 871, 12279, 12, 2867, 8808, 628, 16, 1758, 8808, 358, 16, 2254, 5034, 3844, 1769, 203, 203, 565, 871, 1716, 685, 1125, 12, 2867, 8808, 3410, 16, 1758, 880...
./full_match/8453/0x979791C607a388702690599120c46332f61f592C/sources/contracts/DLN/DlnDestination.sol
@dev Send multiple claim_unlock instructions to unlock several orders in [`Order::give::chain_id`]. @notice It is implied that all orders share the same giveChainId, giveTokenAddress and beneficiary, so that only one init_wallet_if_needed instruction is used @param _orders Array of orders to unlock @param _ben...
function sendBatchSolanaUnlock( DlnOrderLib.Order[] memory _orders, bytes32 _beneficiary, uint256 _executionFee, uint64 _initWalletIfNeededInstructionReward, uint64 _claimUnlockInstructionReward ) external payable nonReentrant whenNotPaused { if (_orders.length ==...
11,545,563
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2479, 3229, 7516, 67, 26226, 12509, 358, 7186, 11392, 11077, 316, 306, 68, 2448, 2866, 75, 688, 2866, 5639, 67, 350, 68, 8009, 632, 20392, 2597, 353, 23547, 716, 777, 11077, 7433, 326, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 4497, 20608, 13848, 7087, 12, 203, 3639, 463, 2370, 2448, 5664, 18, 2448, 8526, 3778, 389, 9972, 16, 203, 3639, 1731, 1578, 389, 70, 4009, 74, 14463, 814, 16, 203, 3639, 2254, 5034, 389, 16414, 14667, 16, 203, 363...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownable...
Function to get collected amount from dao/
function holderProfitsMultiple(uint256[] memory tokenIds) public { uint256 DAOreward=0; for(uint256 i = 0; i < tokenIds.length; i++){ require(tokenIds[i]<supply,"Token not in DAO rewards"); require( METAVOGUE.ownerOf(tokenIds[i]) == msg.sender, "Wrong owner" ); ...
1,402,964
[ 1, 4625, 348, 7953, 560, 30, 225, 4284, 358, 336, 12230, 3844, 628, 15229, 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,...
[ 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, 565, 445, 10438, 626, 18352, 8438, 12, 11890, 5034, 8526, 3778, 1147, 2673, 13, 203, 3639, 1071, 7010, 565, 288, 203, 3639, 2254, 5034, 463, 20463, 266, 2913, 33, 20, 31, 203, 3639, 364, 12, 11890, 5034, 277, 273, 374, 31, 277, ...
./full_match/56/0xB3437888A63924d67F6f7440c454e9fC72393B0c/sources/contracts/PriceGetterExtended.sol
* @dev Returns the price of a specified liquidity pool token. @param token The address of the liquidity pool token. @param _decimals UNUSED, kept for backwards compatibility. @return The price of the liquidity pool token./
function getLPPrice(address token, uint256 _decimals) external view returns (uint256) { return getLPPriceV2(token); }
3,248,223
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 6205, 434, 279, 1269, 4501, 372, 24237, 2845, 1147, 18, 632, 891, 1147, 1021, 1758, 434, 326, 4501, 372, 24237, 2845, 1147, 18, 632, 891, 389, 31734, 5019, 20093, 16, 16555, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 445, 9014, 52, 5147, 12, 2867, 1147, 16, 2254, 5034, 389, 31734, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 9014, 52, 5147, 58, 22, 12, 2316, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
pragma solidity ^0.4.23; // File: zeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 ||...
* updateIsVerified updates user's verified status @param _userAddress address of user's wallet @param _isVerified represents user's new verification status/
function updateIsVerified(address _userAddress, bool _isVerified) external onlyOwner { users[_userAddress].isVerified = _isVerified; emit UpdatedIsVerified(_userAddress, _isVerified); }
5,393,238
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 1089, 2520, 24369, 4533, 729, 1807, 13808, 1267, 225, 632, 891, 389, 1355, 1887, 1758, 434, 729, 1807, 9230, 225, 632, 891, 389, 291, 24369, 8686, 729, 1807, 394, 11805, 1267, 19, 2, 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, 1, 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, 2520, 24369, 12, 2867, 389, 1355, 1887, 16, 1426, 389, 291, 24369, 13, 203, 3639, 3903, 1338, 5541, 203, 565, 288, 203, 3639, 3677, 63, 67, 1355, 1887, 8009, 291, 24369, 273, 389, 291, 24369, 31, 203, 203, 3639, ...
./full_match/3/0xCF465E1d1764CB88da29475bD0F23FFDaBB6B568/sources/browser/SimpleAuction.sol
Parameters of the auction. Times are either absolute unix timestamps (seconds since 1970-01-01) or time periods in seconds. Current state of the auction. Allowed withdrawals of previous bids Set to true at the end, disallows any change. By default initialized to `false`. Events that will be emitted on changes. The fol...
contract SimpleAuction { address payable public beneficiary; uint public auctionEndTime; address public highestBidder; uint public highestBid; mapping(address => uint) pendingReturns; bool ended; event HighestBidIncreased(address bidder, uint amount); event AuctionEnded(address winne...
8,125,382
[ 1, 4625, 348, 7953, 560, 30, 225, 7012, 434, 326, 279, 4062, 18, 399, 4485, 854, 3344, 4967, 9753, 11267, 261, 7572, 3241, 5342, 7301, 17, 1611, 17, 1611, 13, 578, 813, 12777, 316, 3974, 18, 6562, 919, 434, 326, 279, 4062, 18, 167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 37, 4062, 288, 203, 565, 1758, 8843, 429, 1071, 27641, 74, 14463, 814, 31, 203, 565, 2254, 1071, 279, 4062, 25255, 31, 203, 203, 565, 1758, 1071, 9742, 17763, 765, 31, 203, 565, 2254, 1071, 9742, 17763, 31, 203, 203,...
./full_match/11155111/0x58205779CcfB9d72C51b911a5dB6E586f46cA4B5/sources/project:/contracts/member-collection-contract.sol
Verify if token has been redeemed before Check the redeemer is a PatronPass owner Check the basedTokenId is between the offset range Mint MemberToken respectly to PatronPass tokenId Set token as redeemed
function redeem(uint256 collectionId, uint256 tokenId) public nonReentrant { mintCount[collectionId] += 1; Collection memory c = collections[collectionId]; require(c.flag == true, "Collection does not exists"); require(c.status == 1, "Collection is disabled"); require(c.offs...
3,791,434
[ 1, 4625, 348, 7953, 560, 30, 225, 8553, 309, 1147, 711, 2118, 283, 24903, 329, 1865, 2073, 326, 283, 24903, 264, 353, 279, 29541, 1949, 6433, 3410, 2073, 326, 2511, 1345, 548, 353, 3086, 326, 1384, 1048, 490, 474, 8596, 1345, 8762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 283, 24903, 12, 11890, 5034, 1849, 548, 16, 2254, 5034, 1147, 548, 13, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 312, 474, 1380, 63, 5548, 548, 65, 1011, 404, 31, 203, 3639, 2200, 3778, 276, 273, 6980, 63, 5548, 548...
./full_match/5/0x74807E0EB3CEf9a9366419372E873286572112f1/sources/OpenNFTs/contracts/OpenNFTs/OpenMarketable.sol
@notice GET default royalty info @return receiver : default royalty receiver infos
function getDefaultRoyalty() public view override (IOpenMarketable) returns (ReceiverInfos memory receiver) { receiver = _defaultRoyalty; }
1,920,329
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4978, 805, 721, 93, 15006, 1123, 632, 2463, 5971, 294, 805, 721, 93, 15006, 5971, 10626, 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...
[ 1, 1, 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, 445, 4829, 54, 13372, 15006, 1435, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 3849, 261, 45, 3678, 3882, 278, 429, 13, 203, 3639, 1135, 261, 12952, 7655, 3778, 5971, 13, 203, 565, 288, 203, 3639, 5971, 273, 389, 1886, 54, ...
pragma solidity ^0.4.13; interface FundInterface { // EVENTS event PortfolioContent(address[] assets, uint[] holdings, uint[] prices); event RequestUpdated(uint id); event Redeemed(address indexed ofParticipant, uint atTimestamp, uint shareQuantity); event FeesConverted(uint atTimestamp, uint sha...
@notice Checks whether an address is whitelisted in the competition contract and competition is active @param x Address @return Whether the address is whitelisted
function isCompetitionAllowed( address x ) view returns (bool) { return CompetitionInterface(competitionAddress).isWhitelisted(x) && CompetitionInterface(competitionAddress).isCompetitionActive(); }
196,054
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 13074, 2856, 392, 1758, 353, 26944, 316, 326, 25163, 608, 6835, 471, 25163, 608, 353, 2695, 632, 891, 619, 5267, 632, 2463, 17403, 326, 1758, 353, 26944, 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, 0, 0, 0, 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, 353, 2945, 278, 608, 5042, 12, 203, 3639, 1758, 619, 203, 565, 262, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 327, 5427, 278, 608, 1358, 12, 31942, 608, 1887, 2934, 291, 18927, 329, 12...
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../ProtocolInterface.sol"; import "../../interfaces/CTokenInterface.sol"; import "../../compound/helpers/Exponential.sol"; import "../../interfaces/ERC20.sol"; import "../../constants/ConstantAddresses.sol"; import "../../DS/DSAuth.sol"; contract Comp...
get dai from user mainnet only mint cDai balance should be equal to cDai minted return cDai to user
function deposit(address _user, uint _amount) public override { require(msg.sender == _user); require(ERC20(DAI_ADDRESS).transferFrom(_user, address(this), _amount)); ERC20(DAI_ADDRESS).approve(NEW_CDAI_ADDRESS, uint(-1)); require(cDaiContract.mint(_amount) == 0, "Failed Mint"); ...
5,460,837
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 5248, 77, 628, 729, 2774, 2758, 1338, 312, 474, 276, 40, 10658, 11013, 1410, 506, 3959, 358, 276, 40, 10658, 312, 474, 329, 327, 276, 40, 10658, 358, 729, 2, 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, 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...
[ 1, 565, 445, 443, 1724, 12, 2867, 389, 1355, 16, 2254, 389, 8949, 13, 1071, 3849, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 389, 1355, 1769, 203, 3639, 2583, 12, 654, 39, 3462, 12, 9793, 45, 67, 15140, 2934, 13866, 1265, 248...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.6; /** * @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 i...
* @param who The address to query. @return The balance of the specified address./
function balanceOf(address who) public override view returns (uint256) { return _gonBalances[who].div(_gonsPerFragment); }
2,482,448
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 891, 10354, 1021, 1758, 358, 843, 18, 632, 2463, 1021, 11013, 434, 326, 1269, 1758, 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, ...
[ 1, 1, 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, 445, 11013, 951, 12, 2867, 10354, 13, 1071, 3849, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 75, 265, 38, 26488, 63, 3350, 83, 8009, 2892, 24899, 75, 7008, 2173, 7456, 1769, 203, 565, 289, 203, 203, 2, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/cont...
* @dev Updates the performance fee. Only governance can update the performance fee./
function setPerformanceFee(uint256 _performanceFee) public onlyGovernance { require(_performanceFee <= PERCENT_MAX, "overflow"); uint256 oldPerformanceFee = performanceFee; performanceFee = _performanceFee; emit PerformanceFeeUpdated(oldPerformanceFee, _performanceFee); }
435,248
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15419, 326, 9239, 14036, 18, 5098, 314, 1643, 82, 1359, 848, 1089, 326, 9239, 14036, 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...
[ 1, 1, 1, 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...
[ 1, 565, 445, 444, 25024, 14667, 12, 11890, 5034, 389, 16092, 1359, 14667, 13, 1071, 1338, 43, 1643, 82, 1359, 288, 203, 3639, 2583, 24899, 16092, 1359, 14667, 1648, 10950, 19666, 67, 6694, 16, 315, 11512, 8863, 203, 3639, 2254, 5034, ...
/////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2018 Crossbar.io Technologies GmbH and contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy ...
Container type for holding XBR Network membership information.
struct Member { string eula; string profile; MemberLevel level;
2,513,716
[ 1, 4625, 348, 7953, 560, 30, 225, 4039, 618, 364, 19918, 1139, 7192, 5128, 12459, 1779, 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, ...
[ 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, 1958, 8596, 288, 203, 3639, 533, 425, 5552, 31, 203, 203, 3639, 533, 3042, 31, 203, 203, 3639, 8596, 2355, 1801, 31, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @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,...
@dev Helper to get a pool asset at a given index
function __getPoolAsset( address _pool, uint256 _index, bool _useUnderlying ) internal view returns (address asset_) { if (_useUnderlying) { try ICurveLiquidityPool(_pool).underlying_coins(_index) returns ( address underlyingCoin ) { ...
10,238,021
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9705, 358, 336, 279, 2845, 3310, 622, 279, 864, 770, 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, 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...
[ 1, 565, 445, 1001, 588, 2864, 6672, 12, 203, 3639, 1758, 389, 6011, 16, 203, 3639, 2254, 5034, 389, 1615, 16, 203, 3639, 1426, 389, 1202, 14655, 6291, 203, 565, 262, 2713, 1476, 1135, 261, 2867, 3310, 67, 13, 288, 203, 3639, 309, ...
pragma solidity 0.6.12; import '@sphynxswap/sphynx-swap-lib/contracts/math/SafeMath.sol'; import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/IBEP20.sol'; import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/SafeBEP20.sol'; import '@sphynxswap/sphynx-swap-lib/contracts/access/Ownable.sol'; import './Sphynx...
Update dev address by the previous dev.
function dev(address _devaddr) public { require(msg.sender == devaddr, 'dev: wut?'); devaddr = _devaddr; emit SetDev(_devaddr); }
1,357,211
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 4461, 1758, 635, 326, 2416, 4461, 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, ...
[ 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, 202, 915, 4461, 12, 2867, 389, 5206, 4793, 13, 1071, 288, 203, 202, 202, 6528, 12, 3576, 18, 15330, 422, 4461, 4793, 16, 296, 5206, 30, 341, 322, 4899, 1769, 203, 202, 202, 5206, 4793, 273, 389, 5206, 4793, 31, 203, 202, 202, ...
./full_match/1/0xdbE5a8BBac5b3ba4e05BB9b9Ca51A6741bc81Bd1/sources/contracts/brokers/BrokersSignatureUtils.sol
@dev Constructor @dev Calculate and set type hashes for all the structs and nested structs types
constructor() EIP712("NF3 Broker Swaps", "0.1.0") { bytes memory assetDataTypeString = abi.encodePacked( "AssetData(", "address token,", "uint8 assetType,", "uint256 tokenId,", "uint256 amount", ")" ); bytes memory asse...
17,074,766
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 11417, 632, 5206, 9029, 471, 444, 618, 9869, 364, 777, 326, 8179, 471, 4764, 8179, 1953, 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,...
[ 1, 1, 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, 3885, 1435, 512, 2579, 27, 2138, 2932, 26473, 23, 20438, 5434, 6679, 3113, 315, 20, 18, 21, 18, 20, 7923, 288, 203, 3639, 1731, 3778, 3310, 6273, 780, 273, 24126, 18, 3015, 4420, 329, 12, 203, 5411, 315, 6672, 751, 2932, 1...
pragma solidity 0.5.17; interface IERC20FeeProxy { event TransferWithReferenceAndFee( address tokenAddress, address to, uint256 amount, bytes indexed paymentReference, uint256 feeAmount, address feeAddress ); function transferFromWithReferenceAndFee( address _tokenAddress,...
Allow the router to spend all this contract's spentToken
function swapTransferWithReference( address _to, bytes calldata _paymentReference, address _feeAddress, uint256 _deadline ) external { IERC20 spentToken = IERC20(_path[0]); IERC20 requestedToken = IERC20(_path[_path.length-1]); uint256 requestedTotalAmount = _am...
7,480,004
[ 1, 4625, 348, 7953, 560, 30, 225, 7852, 326, 4633, 358, 17571, 777, 333, 6835, 1807, 26515, 1345, 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, 225, 445, 7720, 5912, 1190, 2404, 12, 203, 203, 565, 1758, 389, 869, 16, 203, 203, 203, 203, 203, 565, 1731, 745, 892, 389, 9261, 2404, 16, 203, 203, 203, 565, 1758, 389, 21386, 1887, 16, 203, 203, 565, 2254, 5034, 389, 22097, ...
pragma solidity >=0.4.22 <0.7.0; /** ****************************************************************** * * ██████████████████ * ██ ██ * ██ ██████████████████ ██ * ██ ██████████████████████ ██ * ██ █████████████████...
@dev Send all ETH held by the contract to the contract owner.
function recoverETHFunds() public onlyOwner { owner.transfer(address(this).balance); }
1,730,310
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2479, 777, 512, 2455, 15770, 635, 326, 6835, 358, 326, 6835, 3410, 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...
[ 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, 5910, 1584, 44, 42, 19156, 1435, 1071, 1338, 5541, 288, 203, 3639, 3410, 18, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2020-11-12 */ // File: contracts\interface\IBoringDAO.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; interface IBoringDAO { // function openTunnel(bytes32 tunnelKey) external; function pledge(bytes32 tunnelKey, uint _amount) external; fu...
Equivalent to contains(set, value) injected CONTRACT AFFECTED BY MINERS
if (block.gaslimit != 0) {
7,276,038
[ 1, 4625, 348, 7953, 560, 30, 225, 31208, 358, 1914, 12, 542, 16, 460, 13, 202, 267, 6059, 8020, 2849, 1268, 432, 2246, 4239, 2056, 6953, 6989, 11367, 203, 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, 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, 3639, 309, 261, 2629, 18, 31604, 3595, 480, 374, 13, 288, 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, -10...
./full_match/5/0xF103e5BB5017667eC4317Af176981E535738E5A2/sources/winAuction.sol
Wins the auction for the specified amountwinner = msg.sender;seller.transfer(msg.value);emit Win(msg.sender, msg.value);
function win() onlyNotCanceled notBought external payable { nft.transferFrom(address(this), msg.sender, nftId); } modifier onlyNotCanceled
11,616,975
[ 1, 4625, 348, 7953, 560, 30, 225, 678, 2679, 326, 279, 4062, 364, 326, 1269, 3844, 91, 7872, 273, 1234, 18, 15330, 31, 1786, 749, 18, 13866, 12, 3576, 18, 1132, 1769, 18356, 21628, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 1769, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 5657, 1435, 1338, 1248, 23163, 486, 13809, 9540, 3903, 8843, 429, 288, 203, 3639, 290, 1222, 18, 13866, 1265, 12, 2867, 12, 2211, 3631, 1234, 18, 15330, 16, 290, 1222, 548, 1769, 203, 203, 565, 289, 203, 377, 203, 565, ...
pragma solidity 0.8.7; //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@// //@@@@@@@@& (@@@@@@@@@@@@@ /@@@@@@@@@// //@@@@@@ /@@@@@@@ /@@@@@@// //@@@@@ (@@@@@ (@@@@@// //@@@@@( @@@@@( &@@@@@// //@@@@@@@ &@@@@@@ @@@@@@@// //@@@@@@@@@@@@@@% ...
@notice Recover ERC20 tokens from this contract @dev Tokens are sent to the emergency return address @param _coin token address Only the owner address can ever receive the recovery withdrawal
function recoverERC20(address _coin) external onlyOwner { require(_coin != SPA, "Can't recover SPA tokens"); uint256 amount = IERC20(_coin).balanceOf(address(this)); IERC20(_coin).safeTransfer(EMERGENCY_RETURN, amount); emit RecoveredERC20(_coin, amount); }
12,161,614
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 868, 3165, 4232, 39, 3462, 2430, 628, 333, 6835, 632, 5206, 13899, 854, 3271, 358, 326, 801, 24530, 327, 1758, 632, 891, 389, 12645, 1147, 1758, 5098, 326, 3410, 1758, 848, 14103, 6798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 5910, 654, 39, 3462, 12, 2867, 389, 12645, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 12645, 480, 19901, 16, 315, 2568, 1404, 5910, 19901, 2430, 8863, 203, 3639, 2254, 5034, 3844, 273, 467, 654, 39, 3462, 24899, ...
// SPDX-License-Identifier: MIT pragma solidity >0.5.0 <0.8.0; pragma experimental ABIEncoderV2; /* Logging */ import { console } from "hardhat/console.sol"; /** * @title Helper_TestRunner */ contract Helper_TestRunner { struct TestStep { string functionName; bytes functionData; bool exp...
* @title Helper_TestRunner/
contract Helper_TestRunner { pragma solidity >0.5.0 <0.8.0; import { console } from "hardhat/console.sol"; struct TestStep { string functionName; bytes functionData; bool expectedReturnStatus; bytes expectedReturnData; bool onlyValidateFlag; } function runSingleTestS...
5,471,616
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 9705, 67, 4709, 9709, 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,...
[ 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, 16351, 9705, 67, 4709, 9709, 288, 203, 683, 9454, 18035, 560, 405, 20, 18, 25, 18, 20, 411, 20, 18, 28, 18, 20, 31, 203, 5666, 288, 2983, 289, 628, 315, 20379, 11304, 19, 8698, 18, 18281, 14432, 203, 565, 1958, 7766, 4160, 28...
pragma solidity ^0.4.24; contract CAE4Devents { // fired whenever a player registers a name event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, ...
* @dev logic runs whenever a reload order is executed. determines how to handle incoming eth depending on if we are in an active round or not/ setup local rID grab time if round is active get earnings from all vaults and return unused to gen vault because we use a custom safemath library. this will throw if player tr...
function reLoadCore(uint256 _pID, uint256 _affID, uint256 _team, uint256 _eth, CAE4Ddatasets.EventReturns memory _eventData_) private { uint256 _rID = rID_; uint256 _now = now; if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_...
12,043,171
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4058, 7597, 17334, 279, 7749, 1353, 353, 7120, 18, 225, 12949, 3661, 358, 1640, 6935, 13750, 8353, 603, 309, 732, 854, 316, 392, 2695, 3643, 578, 486, 19, 3875, 1191, 436, 734, 11086, 813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 2563, 4670, 12, 11890, 5034, 389, 84, 734, 16, 2254, 5034, 389, 7329, 734, 16, 2254, 5034, 389, 10035, 16, 2254, 5034, 389, 546, 16, 6425, 41, 24, 40, 21125, 18, 1133, 1356, 3778, 389, 2575, 751, 67, 13, 203, 3...
./full_match/4/0xBd338B3193d8eAc21a48a4eac2cB8c9aa69cB7d5/sources/Volumes/Work/Code/token-installation-timelock/contracts/Lock.sol
* @return the getPaymentSize of the tokens./
function getPaymentSize() public view returns (uint) { return paymentSize; }
648,015
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 326, 22104, 1225, 434, 326, 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, ...
[ 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, 22104, 1225, 1435, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 5184, 1225, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xeF76b289F5c925395379Ee950Ec1daF44f812af5/sources/COGG.sol
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x10ED43C718714eb63d5aA57B78B54704E256024E); MAIN BSCIUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0xD99D1c33F9fC3444f8101754aBC46c52416550D1); TEST BSC Create a uniswap pair for this new token set the rest of the contract variablesexclude owner and th...
constructor () ERC20Detailed("CocksGG", "COGG", 18) { _owner = msg.sender ; _totalSupply = 100000000 * (10**18); _balances[_owner] = _totalSupply; uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Ro...
4,350,601
[ 1, 4625, 348, 7953, 560, 30, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 12, 20, 92, 2163, 2056, 8942, 39, 27, 2643, 27, 3461, 24008, 4449,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1832, 4232, 39, 3462, 40, 6372, 2932, 39, 20641, 19491, 3113, 315, 3865, 19491, 3113, 6549, 13, 288, 203, 1377, 389, 8443, 273, 1234, 18, 15330, 274, 203, 565, 389, 4963, 3088, 1283, 273, 2130, 9449, 380, 261, 2163, 63...
pragma solidity 0.4.19; // The frontend for this smart contract is a dApp hosted at // https://hire.kohweijie.com /** * @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...
Whether the donate() function has been called
bool public donated = false;
10,624,753
[ 1, 4625, 348, 7953, 560, 30, 225, 17403, 326, 2727, 340, 1435, 445, 711, 2118, 2566, 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, 1426, 1071, 2727, 690, 273, 629, 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, -...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract AccessControl { address internal _admin; address internal _owner; modifier onlyAdmin() { require(msg.sender == _admin, "unauthorized"); _; } modifier onlyOwner() { require(msg.sender == _owner, "unauthoriz...
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - ...
function safeTransferFrom( address from, address to, uint256 tokenId ) external override { _ensureApprovedOrOwner(msg.sender, tokenId); _transfer(from, to, tokenId); if (_isContract(to)) { IERC721Receiver(to).onERC721Received(msg.sender, from, tokenId, ""); } }
13,125,626
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 348, 1727, 2357, 29375, 1375, 2316, 548, 68, 1147, 628, 1375, 2080, 68, 358, 1375, 869, 9191, 6728, 1122, 716, 6835, 12045, 854, 18999, 434, 326, 4232, 39, 27, 5340, 1771, 358, 5309, 2430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 4183, 5912, 1265, 12, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 1147, 548, 203, 225, 262, 3903, 3849, 288, 203, 565, 389, 15735, 31639, 1162, 5541, 12, 3576, 18, 15330, 16, 1147, 548, 176...
pragma solidity 0.5.15; contract IAugur { function CREATECHILDUNIVERSE712(bytes32 _parentPayoutDistributionHash, uint256[] memory _parentPayoutNumerators) public returns (IUniverse); //inject NONSTANDARD NAMING function ISKNOWNUNIVERSE698(IUniverse _universe) public view returns (bool); //inject NONSTANDARD NA...
inject NONSTANDARD NAMING
function GETTOKENIDS530(IMarket _market, uint256[] memory _outcomes) public pure returns (uint256[] memory _tokenIds);
2,553,973
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 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, 17788, 23187, 19516, 25, 5082, 12, 3445, 1313, 278, 389, 27151, 16, 2254, 5034, 8526, 3778, 389, 659, 10127, 13, 1071, 16618, 1135, 261, 11890, 5034, 8526, 3778, 389, 2316, 2673, 1769, 202, 2, -100, -100, -100, -100, -100...
/** *Submitted for verification at Etherscan.io on 2019-07-31 */ /* pragma solidity ^0.4.24; */ pragma solidity ^0.5.0; // File: contracts/math/SafeMath.sol // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math ope...
total supply plus platform fees
uint refundValue = assetToken.totalSupply().mul(uint(100).add(database.uintStorage(keccak256(abi.encodePacked("platform.fee"))))).div(100);
5,372,285
[ 1, 4625, 348, 7953, 560, 30, 2078, 14467, 8737, 4072, 1656, 281, 203, 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, 2254, 16255, 620, 273, 3310, 1345, 18, 4963, 3088, 1283, 7675, 16411, 12, 11890, 12, 6625, 2934, 1289, 12, 6231, 18, 11890, 3245, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 2932, 9898, 18, 21386, 6, 3719, 3719...
// SPDX-License-Identifier: MIT pragma solidity >= 0.4.4 < 0.7.0; pragma experimental ABIEncoderV2; // ----------------------------------- // ALUMNO | ID | NOTA // ----------------------------------- // Marcos | 77755N | 5 // Joan | 12345X | 9 // Maria | 02468T | 2 ...
Control of the functions that are executable by the teacher Requiers that the address entered by param be equal to the contract's owner
modifier OnlyTeacher(address _teacher) { require(teacher == _teacher, "Permission denied"); _; }
12,633,079
[ 1, 4625, 348, 7953, 560, 30, 225, 8888, 434, 326, 4186, 716, 854, 9070, 635, 326, 6489, 27779, 868, 372, 20778, 716, 326, 1758, 16219, 635, 579, 506, 3959, 358, 326, 6835, 1807, 3410, 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, 9606, 5098, 56, 13798, 264, 12, 2867, 389, 736, 27779, 13, 288, 203, 3639, 2583, 12, 736, 27779, 422, 389, 736, 27779, 16, 315, 5041, 15338, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100...
./full_match/4/0x8edd685CB964A78C1a82C3059F3FAce2BFaA5F3F/sources/contracts/JBTokenStore.sol
/ Get a reference to the project's ERC20 tokens. Tokens must have been issued. There must be enough unlocked unclaimed tokens to claim.
function claimFor( address _holder, uint256 _projectId, uint256 _amount ) external override { IJBToken _token = tokenOf[_projectId]; if (_token == IJBToken(address(0))) { revert TOKEN_NOT_FOUND(); } if (_unclaimedBalance < _amount) { revert INSUFFICIENT_UNCLAIMED_TOKENS();...
12,506,123
[ 1, 4625, 348, 7953, 560, 30, 342, 968, 279, 2114, 358, 326, 1984, 1807, 4232, 39, 3462, 2430, 18, 13899, 1297, 1240, 2118, 16865, 18, 6149, 1297, 506, 7304, 25966, 6301, 80, 4581, 329, 2430, 358, 7516, 18, 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, 7516, 1290, 12, 203, 565, 1758, 389, 4505, 16, 203, 565, 2254, 5034, 389, 4406, 548, 16, 203, 565, 2254, 5034, 389, 8949, 203, 225, 262, 3903, 3849, 288, 203, 565, 467, 8877, 1345, 389, 2316, 273, 1147, 951, 63, 67, ...
pragma solidity ^0.4.17; //pragma experimental ABIEncoderV2; contract Patent { uint SUCCESS = 0; uint FILE_HASH_EXIST = 2; uint FILE_HASH_NOT_FOUND=3; uint FILE_NOT_BELONGS_TO_USER =4; struct Customer { address owner; // string custname; // string addr; string title; string descr...
Method to get Customer details belongs to input ffile Hash*/Do not allow multiple ownership of same file
function getOwnerByFileHash (bytes32 _patentId) public view returns (uint,string,address,string,string,string ) { if (custList[_patentId].setFlag == 0) { address va; return (FILE_HASH_NOT_FOUND,"fle not found",va,"","",""); } custList[_patentId].patentDate,custList[_patentId].expiryDate...
1,058,038
[ 1, 4625, 348, 7953, 560, 30, 225, 2985, 358, 336, 13702, 3189, 11081, 358, 810, 284, 768, 2474, 5549, 3244, 486, 1699, 3229, 23178, 434, 1967, 585, 2, 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, 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, 225, 445, 13782, 858, 812, 2310, 261, 3890, 1578, 389, 16330, 319, 548, 13, 225, 1071, 1476, 1135, 261, 11890, 16, 1080, 16, 2867, 16, 1080, 16, 1080, 16, 1080, 262, 203, 225, 288, 203, 565, 309, 261, 71, 641, 682, 63, 67, 16...
./full_match/80001/0x699CfA5248A6Ff6Ae93DB652C0dF3C38Cf0b3aBD/sources/project_/contracts/fNFT.sol
Set Valuation Data against provided tokenId.
function setValuationData(uint256 _tokenId, string memory _valuationsData) public onlyOwner { Valuations memory valuations; valuations.valuationsData = _valuationsData; tokenIdToValuationsData[_tokenId] = valuations; }
5,558,921
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 776, 700, 367, 1910, 5314, 2112, 1147, 548, 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, ...
[ 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, 58, 700, 367, 751, 12, 11890, 5034, 389, 2316, 548, 16, 533, 3778, 389, 4531, 1012, 751, 13, 203, 3639, 1071, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 776, 700, 1012, 3778, 21748, 1012, 31, 203, 3639, 217...
pragma solidity 0.5.8; /** * @title Interface for managing polymath feature switches */ interface IFeatureRegistry { event ChangeFeatureStatus(string _nameKey, bool _newStatus); /** * @notice change a feature status * @dev feature status is set to false by default * @param _nameKey is the ke...
* @title Interface for managing polymath feature switches/
interface IFeatureRegistry { event ChangeFeatureStatus(string _nameKey, bool _newStatus); function setFeatureStatus(string calldata _nameKey, bool _newStatus) external; function getFeatureStatus(string calldata _nameKey) external view returns(bool hasFeature); }
12,957,374
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6682, 364, 30632, 2952, 2942, 421, 2572, 28216, 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, 5831, 467, 4595, 4243, 288, 203, 203, 565, 871, 7576, 4595, 1482, 12, 1080, 389, 529, 653, 16, 1426, 389, 2704, 1482, 1769, 203, 203, 565, 445, 28669, 1482, 12, 1080, 745, 892, 389, 529, 653, 16, 1426, 389, 2704, 1482, 13, 3903...
pragma solidity ^0.4.24; // pragma experimental ABIEncoderV2; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { int256 constant private INT256_MIN = -2**255; /** * @dev Multiplies two unsigned integers, reverts on overflow. */ ...
Im Raum [4, 18] Letzte Char != ' '
function validUsername(string _username) public pure returns(bool) { bytes memory b = bytes(_username); if ((b.length < 4) || (b.length > 18)) return false; for(uint i; i<b.length; i++){ bytes1 char = b[i]; if( !(ch...
15,859,208
[ 1, 4625, 348, 7953, 560, 30, 225, 2221, 9040, 379, 306, 24, 16, 6549, 65, 10559, 94, 736, 3703, 480, 296, 296, 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, 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, 923, 8575, 12, 1080, 389, 5053, 13, 203, 3639, 1071, 203, 3639, 16618, 203, 3639, 1135, 12, 6430, 13, 203, 565, 288, 203, 3639, 1731, 3778, 324, 273, 1731, 24899, 5053, 1769, 203, 3639, 309, 14015, 70, 18, 2469, 411, ...
./full_match/41/0x5e2da34B068b46E3488D20DF696302B13dbe4342/sources/contracts/DividendsV2.sol
* Deallocates "userAddress" user's "amount" of ICE allocation from this dividends contract Can only be called by iceToken contract, which is trusted to verify amounts "data" is only here for compatibility reasons (IIceTokenUsage)/
function deallocate(address userAddress, uint256 amount, bytes calldata /*data*/) external override nonReentrant iceTokenOnly { uint256 newUserAllocation = usersAllocation[userAddress].sub(amount); uint256 newTotalAllocation = totalAllocation.sub(amount); _updateUser(userAddress, newUserAllocation, newTot...
16,376,385
[ 1, 4625, 348, 7953, 560, 30, 380, 1505, 9853, 815, 315, 1355, 1887, 6, 729, 1807, 315, 8949, 6, 434, 467, 1441, 13481, 628, 333, 3739, 350, 5839, 6835, 4480, 1338, 506, 2566, 635, 277, 311, 1345, 6835, 16, 1492, 353, 13179, 358, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 443, 16247, 12, 2867, 729, 1887, 16, 2254, 5034, 3844, 16, 1731, 745, 892, 1748, 892, 5549, 13, 3903, 3849, 1661, 426, 8230, 970, 277, 311, 1345, 3386, 288, 203, 565, 2254, 5034, 394, 1299, 17353, 273, 3677, 17353, 63, ...
./full_match/10200/0xc5Be8Bf53755a41C2385e7Aa86f6a9E28746f466/sources/project_/contracts/SBCToken.sol
* @dev Implements the ERC677 transferAndCall standard. Executes a regular transfer, but calls the receiver's function to handle them in the same transaction. @param _to tokens receiver. @param _amount amount of sent tokens. @param _data extra data to pass to the callback function./
function transferAndCall( address _to, uint256 _amount, bytes calldata _data ) external override { address sender = _msgSender(); _transfer(sender, _to, _amount); require(IERC677Receiver(_to).onTokenTransfer(sender, _amount, _data), "SBCToken: ERC677 callback fail...
3,784,746
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29704, 326, 4232, 39, 26, 4700, 7412, 1876, 1477, 4529, 18, 3889, 993, 279, 6736, 7412, 16, 1496, 4097, 326, 5971, 1807, 445, 358, 1640, 2182, 316, 326, 1967, 2492, 18, 632, 891, 389, 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, 7412, 1876, 1477, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 1731, 745, 892, 389, 892, 203, 565, 262, 3903, 3849, 288, 203, 3639, 1758, 5793, 273, 389, 3576, 12021, 5621, 203, ...
./partial_match/3/0x254ef7a1f7bfE2c5485CA23d69349Ac291EAC792/sources/orfeed.sol
Oracle Feed Contract Functions with this modifier can only be executed by the owner DAO
contract orfeed { address owner; mapping(string => address) freeRateTokenSymbols; address ethTokenAddress; address tokenPriceOracleAddress; address tokenPriceOracleAddress2; IKyberNetworkProxy ki; Kyber kyber; Uniswap uniswap; ERC20 ethToken; address ethAddress; ...
16,628,527
[ 1, 4625, 348, 7953, 560, 30, 225, 28544, 14013, 13456, 15486, 598, 333, 9606, 848, 1338, 506, 7120, 635, 326, 3410, 463, 20463, 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,...
[ 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, 578, 7848, 288, 203, 203, 565, 1758, 3410, 31, 203, 565, 2874, 12, 1080, 516, 1758, 13, 4843, 4727, 1345, 14821, 31, 203, 203, 21281, 565, 1758, 13750, 1345, 1887, 31, 203, 203, 565, 1758, 1147, 5147, 23601, 1887, 31, 203,...
//pragma solidity ^0.3.6; contract Token { function balanceOf(address user) constant returns (uint256 balance); function transfer(address receiver, uint amount) returns(bool); } // A Sub crowdfunding contract. Its only purpose is to redirect ether it receives to the // main crowdfunding contract. This mecanism is u...
How much milli Nxc are sent by ether
uint public startingEtherValue;
7,313,830
[ 1, 4625, 348, 7953, 560, 30, 225, 9017, 9816, 312, 16607, 423, 6511, 854, 3271, 635, 225, 2437, 203, 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, 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...
[ 1, 202, 11890, 225, 202, 482, 5023, 41, 1136, 620, 31, 6862, 1082, 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, -1...
pragma solidity 0.5.11; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol"; /** * @title Testnet Dai * @dev ERC20 minting logic * Sourced from OpenZeppelin and thoroughly butchered to remove security guards. * Anybody can mint - STRICTLY FOR TEST...
* @title Testnet Dai @dev ERC20 minting logic Sourced from OpenZeppelin and thoroughly butchered to remove security guards. Anybody can mint - STRICTLY FOR TEST PURPOSES/
contract TestnetDAI is ERC20, ERC20Detailed { constructor() public ERC20Detailed("TestnetDAI", "DAI", 18) {} function mint(address to, uint256 value) public returns (bool) { _mint(to, value); return true; } }
12,979,066
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 7766, 2758, 463, 10658, 632, 5206, 4232, 39, 3462, 312, 474, 310, 4058, 4998, 72, 628, 3502, 62, 881, 84, 292, 267, 471, 286, 280, 4966, 715, 1496, 19322, 329, 358, 1206, 4373, 11026, 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, 0, 0, 0...
[ 1, 16351, 7766, 2758, 9793, 45, 353, 4232, 39, 3462, 16, 4232, 39, 3462, 40, 6372, 288, 203, 203, 203, 565, 3885, 1435, 1071, 4232, 39, 3462, 40, 6372, 2932, 4709, 2758, 9793, 45, 3113, 315, 9793, 45, 3113, 6549, 13, 2618, 203, 56...
./full_match/43113/0xF421114eeBF9AcDcC71CdA373a3d3309a76B079c/sources/contracts/nft.sol
* Initializes the contract setting. Status: token mint sales status. Prices: each token prices of each cell. Fee: for each market buy. Cluster: total cluster size in main container. Row: total row size in each cell. Cell: total column size in each row. Height: maximum token or estate height. Width: maximum token or est...
constructor(bool status, uint256[] memory prices, uint8 fee, uint8 cluster, uint8 row, uint8 cell, uint8 height, uint8 width) { _tokenStatus = status; _tokenPrices = prices; _marketFee = fee; _interfaceCluster = cluster; _interfaceRow = row; _interfaceCell = cell; _interfaceHeight = height; _interfa...
7,113,992
[ 1, 4625, 348, 7953, 560, 30, 380, 10188, 3128, 326, 6835, 3637, 18, 2685, 30, 1147, 312, 474, 272, 5408, 1267, 18, 2301, 1242, 30, 1517, 1147, 19827, 434, 1517, 2484, 18, 30174, 30, 364, 1517, 13667, 30143, 18, 5584, 30, 2078, 2855,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12316, 12, 6430, 1267, 16, 2254, 5034, 8526, 3778, 19827, 16, 2254, 28, 14036, 16, 2254, 28, 2855, 16, 2254, 28, 1027, 16, 2254, 28, 2484, 16, 2254, 28, 2072, 16, 2254, 28, 1835, 13, 288, 203, 202, 202, 67, 2316, 1482, 2...
./full_match/1/0x3c95775ba56bFcd337998CC84f0388251d6AEC7B/sources/lib/multicaller/src/LibMulticaller.sol
For better gas estimation.
) { revert(0, 0) }
2,925,142
[ 1, 4625, 348, 7953, 560, 30, 225, 2457, 7844, 16189, 29284, 18, 203, 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, 5411, 262, 288, 15226, 12, 20, 16, 374, 13, 289, 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, ...
./full_match/1/0x5C60dC4fE512e059C100df80720ace8fDB098Bd2/sources/contracts/rUSTPool.sol
* @notice Repay USDC from user Emits a `RepayUSDC` event. @param _amount the amount of USDC./ convert to rUSTP.
function repayUSDC(uint256 _amount) external whenNotPaused realizeInterest { require(_amount > 0, "Repay USDC should more then 0."); usdc.transferFrom(msg.sender, address(this), _amount); uint256 convertTorUSTP = _amount.mul(1e12); uint256 repayShares = getSharesByrUSTPAmount(convertTorUSTP); _repay(msg.se...
3,187,537
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 868, 10239, 11836, 5528, 628, 729, 7377, 1282, 279, 1375, 426, 10239, 3378, 5528, 68, 871, 18, 632, 891, 389, 8949, 326, 3844, 434, 11836, 5528, 18, 19, 1765, 358, 436, 5996, 52, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 202, 915, 2071, 528, 3378, 5528, 12, 11890, 5034, 389, 8949, 13, 3903, 1347, 1248, 28590, 2863, 554, 29281, 288, 203, 202, 202, 6528, 24899, 8949, 405, 374, 16, 315, 426, 10239, 11836, 5528, 1410, 1898, 1508, 374, 1199, 1769, 203, ...
/** *Submitted for verification at Etherscan.io on 2021-01-31 */ pragma solidity ^0.4.24; /** * @title IRegistry * @dev This contract represents the interface of a registry contract */ interface ITwoKeySingletonesRegistry { /** * @dev This event will be emitted every time a new proxy is created * @pa...
* @title Proxy/ Gives the possibility to delegate any call to a foreign implementation.
contract Proxy { function implementation() public view returns (address); } function () payable public { address _impl = implementation(); require(_impl != address(0)); assembly { let ptr := mload(0x40) calldatacopy(ptr, 0, calldatasize) let resu...
2,065,469
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 7659, 19, 611, 3606, 326, 25547, 358, 7152, 1281, 745, 358, 279, 5523, 4471, 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,...
[ 1, 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...
[ 1, 16351, 7659, 288, 203, 203, 203, 203, 203, 565, 445, 4471, 1435, 1071, 1476, 1135, 261, 2867, 1769, 203, 203, 97, 203, 565, 445, 1832, 8843, 429, 1071, 288, 203, 3639, 1758, 389, 11299, 273, 4471, 5621, 203, 3639, 2583, 24899, 11...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity 0.7.6; pragma abicoder v2; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import {IERC721Receive...
@title Powered @notice Helper for calling external PowerSwitch
contract Powered is IPowered { address private _powerSwitch; modifier onlyOnline() { require(isOnline(), "Powered: is not online"); _; } modifier onlyOffline() { require(isOffline(), "Powered: is not offline"); _; } modifier notShutdown() { require(!is...
166,052
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 23783, 329, 632, 20392, 9705, 364, 4440, 3903, 23783, 10200, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23783, 329, 353, 2971, 2085, 329, 288, 203, 203, 565, 1758, 3238, 389, 12238, 10200, 31, 203, 203, 203, 565, 9606, 1338, 16860, 1435, 288, 203, 3639, 2583, 12, 291, 16860, 9334, 315, 13788, 329, 30, 353, 486, 12365, 8863, ...
./partial_match/1/0xcd351d3626Dc244730796A3168D315168eBf08Be/sources/KeyManager.sol
* @notice Get the current community key @return The Key struct for the community key/
function _getCommunityKey() internal view returns (address) { return _commKey; }
9,408,018
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 225, 968, 326, 783, 19833, 498, 632, 2463, 225, 1021, 1929, 1958, 364, 326, 19833, 498, 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...
[ 1, 1, 1, 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...
[ 1, 565, 445, 389, 588, 12136, 13352, 653, 1435, 2713, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 5702, 653, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/4/0xD37B1579f0cB77a1C833962A8B64513acc1c0257/sources/contracts/PoolHedger.sol
@dev The ID of our short that is opened when we init the contract. @dev The ratio we wish to maintain on our short position. @dev The last time a short or long position was updated @dev How long before balance can be updated @dev Counter for reentrancy guard
constructor() Ownable() { shortBuffer = (2 * SafeDecimalMath.UNIT); interactionDelay = 3 hours; emit ShortBufferSet(shortBuffer); emit InteractionDelaySet(interactionDelay); }
654,365
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1021, 1599, 434, 3134, 3025, 716, 353, 10191, 1347, 732, 1208, 326, 6835, 18, 632, 5206, 1021, 7169, 732, 14302, 358, 17505, 603, 3134, 3025, 1754, 18, 632, 5206, 1021, 1142, 813, 279, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 3885, 1435, 14223, 6914, 1435, 288, 203, 565, 3025, 1892, 273, 261, 22, 380, 14060, 5749, 10477, 18, 15736, 1769, 203, 565, 13581, 6763, 273, 890, 7507, 31, 203, 565, 3626, 7925, 1892, 694, 12, 6620, 1892, 1769, 203, 565, 36...
./full_match/5/0xfD7f1AE1D178486E1bb88fD934baF424adffBe10/sources/contracts/erc721crosstower.sol
TransferProxy address
operator = _operator;
1,870,139
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 3886, 1758, 203, 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, 3639, 3726, 273, 389, 9497, 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, ...
./partial_match/4/0x7337175eCbC36db4838dFF57d3620814EAc96993/sources/CAFE.sol
@notice Calculate how many FAIR tokens you would buy with the given amount of currency if `buy` was called now. @param _currencyValue How much currency to spend in order to buy FAIR.
{ function _distributeInvestment( uint _value ) internal } function estimateBuyValue( uint _currencyValue ) public view returns(uint) if(_currencyValue < minInvestment){ return 0; } if(state == STATE_INIT){ uint currencyValue = _currencyValue; uint _totalSupply = tot...
8,501,589
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 9029, 3661, 4906, 15064, 7937, 2430, 1846, 4102, 30143, 598, 326, 864, 3844, 434, 5462, 309, 1375, 70, 9835, 68, 1703, 2566, 2037, 18, 632, 891, 389, 7095, 620, 9017, 9816, 5462, 358, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 288, 203, 225, 445, 389, 2251, 887, 3605, 395, 475, 12, 203, 565, 2254, 389, 1132, 203, 225, 262, 2713, 203, 225, 289, 203, 203, 225, 445, 11108, 38, 9835, 620, 12, 203, 565, 2254, 389, 7095, 620, 203, 225, 262, 1071, 14...
/** *Submitted for verification at Etherscan.io on 2022-02-12 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol pragma solidity ^0.8.0; interface IERC165 { function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/c...
Clear approvals from the previous owner
function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from,...
2,125,031
[ 1, 4625, 348, 7953, 560, 30, 225, 10121, 6617, 4524, 628, 326, 2416, 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, ...
[ 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, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 654, 39, 27, 5340, 18, 8443, 951, 12, 2316, 548, 13, 422, 62...
./full_match/1/0xf132f2c8F1EedE27070E0850775436A0E6e7268A/sources/src/Origamasks.sol
Wait List quota (if still available)
mapping(address => uint256) private waitListMints;
8,430,238
[ 1, 4625, 348, 7953, 560, 30, 225, 5838, 987, 13257, 261, 430, 4859, 2319, 13, 203, 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, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 2529, 682, 49, 28142, 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,...
pragma solidity 0.4.24; /* * @title: StackMapping * @dev: Stack implemented with a mapping. */ contract StackMapping { uint256 private top; mapping(uint256 => uint256) private stack; /* * @dev: Constructor, initializes top. */ constructor() public { top = 0; ...
@dev: Constructor, initializes top./
{ top = 0; }
5,470,035
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 30, 11417, 16, 11643, 1760, 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, ...
[ 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, 288, 203, 3639, 1760, 273, 374, 31, 203, 565, 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, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; interface IPool { function deposit() external payable; function withdraw() external; function flashLoan(uint256 amount) external; } contract SideEntranceAttack { using Address for address payabl...
Execute a flash loan for pool's entire balance. `flashLoan` will call back into this contract's `execute()` method which will increase this contract's balance in the pool via deposit(). Now withdraw the pool's balance that was set in `execute()` which called `Pool.deposit()`. Send funds to caller.
function drainFunds() external { uint256 poolBalance = address(pool).balance; pool.flashLoan(poolBalance); pool.withdraw(); payable(msg.sender).sendValue(poolBalance); }
6,379,814
[ 1, 4625, 348, 7953, 560, 30, 225, 7903, 279, 9563, 28183, 364, 2845, 1807, 7278, 11013, 18, 1375, 13440, 1504, 304, 68, 903, 745, 1473, 1368, 333, 6835, 1807, 1375, 8837, 20338, 707, 1492, 903, 10929, 333, 6835, 1807, 11013, 316, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15427, 42, 19156, 1435, 3903, 288, 203, 3639, 2254, 5034, 2845, 13937, 273, 1758, 12, 6011, 2934, 12296, 31, 203, 203, 3639, 2845, 18, 13440, 1504, 304, 12, 6011, 13937, 1769, 203, 203, 3639, 2845, 18, 1918, 9446, 5621, ...
pragma solidity ^0.5.0; contract Day1Registry { // define the struct Day1User struct Day1User { string name; string surname; address added_by; } // define the array of users Day1User[] public day1_users; function registerUser(string calldata _name, string calldata _surname)...
get an instance of a Day1User using the input variables and push into the array of day1_users, returns the id return the user id
function registerUser(string calldata _name, string calldata _surname) external returns(uint){ uint id = day1_users.push(Day1User(_name, _surname, msg.sender)) - 1; return id; }
12,833,731
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 392, 791, 434, 279, 13735, 21, 1299, 1450, 326, 810, 3152, 471, 1817, 1368, 326, 526, 434, 2548, 21, 67, 5577, 16, 1135, 326, 612, 327, 326, 729, 612, 2, 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, 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...
[ 1, 225, 445, 1744, 1299, 12, 1080, 745, 892, 389, 529, 16, 533, 745, 892, 389, 87, 12866, 13, 3903, 1135, 12, 11890, 15329, 203, 565, 2254, 612, 273, 2548, 21, 67, 5577, 18, 6206, 12, 4245, 21, 1299, 24899, 529, 16, 389, 87, 128...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; pragma abicoder v2; import "../../interfaces/IPendleCompoundForge.sol"; import "./../abstract/PendleMarketBase.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; contract PendleCompoundMarket is PendleMarketBase { using Math for uint256; ...
/ mint protocol fees before k is changed by a non-swap event (remove liquidity) Calc and withdraw xyt token.
function removeMarketLiquidityDual( address user, uint256 _inLp, uint256 _minOutXyt, uint256 _minOutToken ) external override returns (PendingTransfer[2] memory transfers) { checkAddRemoveSwapClaimAllowed(true); _mintProtocolFees(); uint256 totalLp = tot...
349,108
[ 1, 4625, 348, 7953, 560, 30, 342, 312, 474, 1771, 1656, 281, 1865, 417, 353, 3550, 635, 279, 1661, 17, 22270, 871, 261, 4479, 4501, 372, 24237, 13, 29128, 471, 598, 9446, 7668, 88, 1147, 18, 2, 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, 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...
[ 1, 565, 445, 1206, 3882, 278, 48, 18988, 24237, 40, 1462, 12, 203, 3639, 1758, 729, 16, 203, 3639, 2254, 5034, 389, 267, 48, 84, 16, 203, 3639, 2254, 5034, 389, 1154, 1182, 60, 93, 88, 16, 203, 3639, 2254, 5034, 389, 1154, 1182, ...
pragma solidity ^0.4.24; /* * 1st Crypto Trader (DTH) */ 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; } function div(uint256 a, uint256 b) internal pure returns (ui...
affiliate 15% developers 10%
balances[affiliateAddress] = getPercent(totalSupply,25);
2,233,564
[ 1, 4625, 348, 7953, 560, 30, 282, 7103, 330, 3840, 4711, 9, 21701, 1728, 9, 203, 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, 377, 324, 26488, 63, 7329, 330, 3840, 1887, 65, 273, 22612, 2998, 12, 4963, 3088, 1283, 16, 2947, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT /* solhint-disable var-name-mixedcase */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/ILight.sol"; /** * @t...
* @notice Marks a nonce as used for the given signer @param signer address Address of the signer for which to mark the nonce as used @param nonce uint256 Nonce to be marked as used @return bool True if the nonce was not marked as used already/ If it is already used, return false
function _markNonceAsUsed(address signer, uint256 nonce) internal returns (bool) { uint256 groupKey = nonce / 256; uint256 indexInGroup = nonce % 256; uint256 group = _nonceGroups[signer][groupKey]; if ((group >> indexInGroup) & 1 == 1) { return false; } _nonceGroups[signer][...
996,828
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 6622, 87, 279, 7448, 487, 1399, 364, 326, 864, 10363, 632, 891, 10363, 1758, 5267, 434, 326, 10363, 364, 1492, 358, 2267, 326, 7448, 487, 1399, 632, 891, 7448, 2254, 5034, 25261, 358, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 3355, 13611, 1463, 6668, 12, 2867, 10363, 16, 2254, 5034, 7448, 13, 203, 565, 2713, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 2254, 5034, 1041, 653, 273, 7448, 342, 8303, 31, 203, 565, 2254, 5034, 7...
pragma solidity ^0.4.18; 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); // Solidity ...
@dev Constructor @param _projectWallet Wallet of project @param _foundersWallet Wallet of founders
function Token(address _projectWallet, address _foundersWallet) public { projectWallet = _projectWallet; foundersWallet = _foundersWallet; }
452,251
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 11417, 632, 891, 389, 4406, 16936, 20126, 434, 1984, 632, 891, 389, 7015, 414, 16936, 20126, 434, 1392, 414, 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, 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, 445, 3155, 12, 2867, 389, 4406, 16936, 16, 1758, 389, 7015, 414, 16936, 13, 1071, 288, 203, 3639, 1984, 16936, 273, 389, 4406, 16936, 31, 203, 3639, 1392, 414, 16936, 273, 389, 7015, 414, 16936, 31, 203, 565, 289, 203, 203, ...
/** *Submitted for verification at Etherscan.io on 2022-02-12 */ pragma solidity ^0.4.20; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function sub(uint a, uint b) internal pure returns (uint c) { require(b <= a);...
@dev Withdraws Ether in contract (Owner only) @return Status of withdrawal
function withdraw() onlyOwner public returns (bool) { return owner().send(this.balance); }
7,908,061
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3423, 9446, 87, 512, 1136, 316, 6835, 261, 5541, 1338, 13, 632, 2463, 2685, 434, 598, 9446, 287, 2, 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, 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, 565, 445, 598, 9446, 1435, 1338, 5541, 7010, 565, 1071, 7010, 565, 1135, 261, 6430, 13, 288, 203, 3639, 327, 3410, 7675, 4661, 12, 2211, 18, 12296, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/42220/0x2c116311F91F5Da1f5E0563402ac1f0882587dEA/sources/src/grants/SpiralsRegistry.sol
* @notice Used in place of the constructor to allow the contract to be upgradable via proxy./
function initialize() external initializer { _transferOwnership(msg.sender); }
3,495,970
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10286, 316, 3166, 434, 326, 3885, 358, 1699, 326, 6835, 358, 506, 731, 9974, 429, 3970, 2889, 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,...
[ 1, 1, 1, 1, 1, 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, 445, 4046, 1435, 3903, 12562, 288, 203, 3639, 389, 13866, 5460, 12565, 12, 3576, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0x18598e5E600537dc21FA0A5a337b81a294F86633/sources/contracts/AdventurePermissions.sol
@notice Similar to {IERC721-isApprovedForAll}, but for special in-game adventures only
function areAdventuresApprovedForAll(address owner, address operator) public view returns (bool) { return _operatorAdventureApprovals[owner][operator]; }
834,570
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 22967, 358, 288, 45, 654, 39, 27, 5340, 17, 291, 31639, 1290, 1595, 5779, 1496, 364, 4582, 316, 17, 13957, 1261, 616, 1823, 1338, 2, 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, 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, 565, 445, 854, 1871, 616, 1823, 31639, 1290, 1595, 12, 2867, 3410, 16, 1758, 3726, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 9497, 1871, 616, 594, 12053, 4524, 63, 8443, 6362, 9497, 15533, 203, 565, 289, 377,...