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
./full_match/1/0xDA39cF480eDeB2F5Ca8340c39b8Cd6F689Af4243/sources/@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGasService.sol
This should be owned by the microservice that is paying for gas. This is called on the source chain before calling the gateway to execute a remote contract. This is called on the source chain before calling the gateway to execute a remote contract. This is called on the source chain before calling the gateway to execu...
interface IAxelarGasService { error NothingReceived(); error TransferFailed(); error InvalidAddress(); event GasPaidForContractCall( address indexed sourceAddress, string destinationChain, string destinationAddress, bytes32 indexed payloadHash, address gasToken, ...
8,292,542
[ 1, 2503, 1410, 506, 16199, 635, 326, 6481, 3278, 716, 353, 8843, 310, 364, 16189, 18, 1220, 353, 2566, 603, 326, 1084, 2687, 1865, 4440, 326, 6878, 358, 1836, 279, 2632, 6835, 18, 1220, 353, 2566, 603, 326, 1084, 2687, 1865, 4440, 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, 1, 1, 1...
[ 1, 5831, 467, 14408, 292, 297, 27998, 1179, 288, 203, 565, 555, 13389, 8872, 5621, 203, 565, 555, 12279, 2925, 5621, 203, 565, 555, 1962, 1887, 5621, 203, 203, 565, 871, 31849, 16507, 350, 1290, 8924, 1477, 12, 203, 3639, 1758, 8808, ...
./full_match/137/0x06094b58e069Cc32438dE9E13A7C44f7a120FC4D/sources/project:/contracts/failsafe/FailSafeOrchestrator.sol
token to defend to support authz check only create it if its the first time Only set merkle root on new deployment
function jitFailSafe721Batch( uint version, address erc721Addr, uint[] memory tokenIds, address protectedAddr, address feeCompAuthorizer, bytes32 fsRoot, bytes32[] memory proof ) public payable nonReentrant { require(fsRoot != bytes32(0x0), "inte...
4,699,065
[ 1, 2316, 358, 1652, 409, 358, 2865, 18686, 866, 1338, 752, 518, 309, 2097, 326, 1122, 813, 5098, 444, 30235, 1365, 603, 394, 6314, 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,...
[ 1, 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, 565, 445, 525, 305, 3754, 9890, 27, 5340, 4497, 12, 203, 3639, 2254, 1177, 16, 203, 3639, 1758, 6445, 71, 27, 5340, 3178, 16, 7010, 3639, 2254, 8526, 3778, 1147, 2673, 16, 203, 3639, 1758, 4750, 3178, 16, 203, 3639, 1758, 14036, ...
// 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,...
@notice Checks whether an asset is bypassable (if still without a valid price) for a given fund @param _comptrollerProxy The ComptrollerProxy of the fund @param _asset The asset for which to check if it is bypassable @return isBypassable_ True if the asset is bypassable
function assetIsBypassableForFund(address _comptrollerProxy, address _asset) public view returns (bool isBypassable_) { uint256 windowStart = getAssetBypassWindowStartForFund(_comptrollerProxy, _asset); return windowStart <= block.timestamp && win...
13,968,170
[ 1, 4081, 2856, 392, 3310, 353, 17587, 429, 261, 430, 4859, 2887, 279, 923, 6205, 13, 364, 279, 864, 284, 1074, 225, 389, 832, 337, 1539, 3886, 1021, 1286, 337, 1539, 3886, 434, 326, 284, 1074, 225, 389, 9406, 1021, 3310, 364, 1492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3310, 2520, 858, 5466, 429, 1290, 42, 1074, 12, 2867, 389, 832, 337, 1539, 3886, 16, 1758, 389, 9406, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 353, 858, 5466, 429, 67, 13, 203, 565, 288, 203, ...
pragma solidity >=0.4.2; import "../utillib/Pairing.sol"; import "../utillib/ECops.sol"; import "../utillib/ECopsG2.sol"; library LibDTBE { using Pairing for *; using ECops for *; using ECopsG2 for *; //generate a random number of modulo _module which is a prime number function rand(uint256 _module) intern...
calculate the H and _H
epk.H = G1mul(Pairing.P1(), h);
2,478,889
[ 1, 11162, 326, 225, 670, 471, 389, 44, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1082, 202, 881, 79, 18, 44, 273, 611, 21, 16411, 12, 4154, 310, 18, 52, 21, 9334, 366, 1769, 203, 2, -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.25; // * myethergames.fun // // * Uses hybrid commit-reveal + block hash random number generation that is immune // to tampering by players, house and miners. Apart from being fully transparent, // this also allows arbitrarily high bets. contract FairCasino { /// *** Con...
Events that are issued to make statistic recovery easier.
event FailedPayment(address indexed beneficiary, uint amount);
889,079
[ 1, 3783, 716, 854, 16865, 358, 1221, 21605, 11044, 15857, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 11175, 6032, 12, 2867, 8808, 27641, 74, 14463, 814, 16, 2254, 3844, 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, -...
//solium-disable linebreak-style pragma solidity ^0.5.0; contract Election{ // The address of the account that created this ballot. address public ballotCreator; constructor() public { ballotCreator = msg.sender; addCandidate(1,"Muhammed Buhari","All Progressive Party",0); ...
Is voting finished? The ballot creator determines when to set this flag.
bool public votingEnded;
1,758,904
[ 1, 2520, 331, 17128, 6708, 35, 1021, 26503, 352, 11784, 12949, 1347, 358, 444, 333, 2982, 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, 1426, 1071, 331, 17128, 28362, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x30101C09adC32B486d27fe8F6997e825a27b9FC0/sources/@hashflow/contracts-evm/contracts/interfaces/IHashflowRouter.sol
@title IHashflowRouter @author Victor Ionescu* @notice In terms of user-facing functionality, the Router is responsible for: - orchestrating trades - managing cross-chain permissions Every trade requires consent from two parties: the Trader and the Market Maker. However, there are two models to establish consent: - RF...
interface IHashflowRouter is IQuote { pragma solidity >=0.8.0; struct XChainFillMessage { uint16 srcHashflowChainId; bytes32 srcPool; address dstPool; address dstExternalAccount; address dstTrader; address quoteToken; uint256 quoteTokenAmount; bytes32 ...
8,324,347
[ 1, 45, 2310, 2426, 8259, 225, 776, 933, 280, 27081, 742, 89, 225, 657, 6548, 434, 729, 17, 507, 2822, 14176, 16, 326, 9703, 353, 14549, 364, 30, 300, 578, 23386, 1776, 1284, 5489, 300, 30632, 6828, 17, 5639, 4371, 16420, 18542, 4991...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 2310, 2426, 8259, 353, 467, 10257, 288, 203, 683, 9454, 18035, 560, 1545, 20, 18, 28, 18, 20, 31, 203, 565, 1958, 1139, 3893, 8026, 1079, 288, 203, 3639, 2254, 2313, 1705, 2310, 2426, 3893, 548, 31, 203, 3639, 1731, ...
./partial_match/1/0x671E772987E70C279a926fc9c73d577bEDFcD29B/sources/src/L1/L1ScrollMessenger.sol
@notice The address of Rollup contract.
address public rollup;
16,051,117
[ 1, 1986, 1758, 434, 31291, 416, 6835, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 5824, 416, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File @openzeppelin/contracts/math/SafeMath.sol@v3.4.2 // 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 progra...
* @dev Indicates that the contract has been initialized./* @dev Indicates that the contract is in the process of being initialized./* @dev Modifier to protect an initializer function from being invoked twice./
modifier initializer() { require( _initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized" ); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = ...
600,567
[ 1, 23741, 716, 326, 6835, 711, 2118, 6454, 18, 19, 225, 18336, 716, 326, 6835, 353, 316, 326, 1207, 434, 3832, 6454, 18, 19, 225, 12832, 358, 17151, 392, 12562, 445, 628, 3832, 8187, 13605, 18, 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, 0, 0, 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, 12562, 1435, 288, 203, 3639, 2583, 12, 203, 5411, 389, 6769, 6894, 747, 389, 291, 6293, 1435, 747, 401, 67, 13227, 16, 203, 5411, 315, 4435, 6934, 30, 6835, 353, 1818, 6454, 6, 203, 3639, 11272, 203, 203, 3639, 1426, ...
//SPDX-License-Identifier: MIT pragma solidity 0.7.5; /*unaudited and for demonstration only, subject to all disclosures, licenses, and caveats of the open-source-law repo **@dev create a simple smart escrow contract, with an ERC20 stablecoin as payment, expiration denominated in seconds, and option for dispute resol...
approve seller to withdraw deposit amount at closing and buyer in case of termination (and therefore deposit return)
function approveParties() public restricted returns (bool) { ierc20.allowance(escrowAddress, seller); ierc20.approve(seller, deposit); ierc20.approve(buyer, deposit); return true; }
13,044,329
[ 1, 12908, 537, 29804, 358, 598, 9446, 443, 1724, 3844, 622, 7647, 471, 27037, 316, 648, 434, 19650, 261, 464, 13526, 443, 1724, 327, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 225, 445, 6617, 537, 1988, 606, 1435, 1071, 15693, 1135, 261, 6430, 13, 288, 203, 1377, 277, 12610, 3462, 18, 5965, 1359, 12, 742, 492, 1887, 16, 29804, 1769, 203, 1377, 277, 12610, 3462, 18, 12908, 537, 12, 1786, 749, 16, 443, ...
./full_match/3/0x39361200639A6cb727a33f493739034505D1A933/sources/browser/Funding.sol
Limit withdrawal amount Send the amount to the address that requested it
function withdraw(uint withdraw_amount) public { require(withdraw_amount >= 1 ether); msg.sender.transfer(withdraw_amount); }
8,088,624
[ 1, 3039, 598, 9446, 287, 3844, 2479, 326, 3844, 358, 326, 1758, 716, 3764, 518, 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, 598, 9446, 12, 11890, 598, 9446, 67, 8949, 13, 1071, 288, 203, 203, 3639, 2583, 12, 1918, 9446, 67, 8949, 1545, 404, 225, 2437, 1769, 203, 203, 3639, 1234, 18, 15330, 18, 13866, 12, 1918, 9446, 67, 8949, 1769, 203, 56...
/* Copyright 2019 ZeroEx Intl. 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 License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
@dev This function tests the behavior to a simple call to `refundFinalBalanceFunction`. This test will verify that the correct refund was provided after the call (depending on whether a refund should be provided), and it will ensure that the `shouldNotRefund` state variable remains unaltered after the f...
function testRefundFinalBalance( TestRefundable testRefundable, bool shouldNotRefund ) external payable { testRefundable.setShouldNotRefund(shouldNotRefund); testRefundable.refundFinalBalanceFunction.value(msg.value)(); requireCorrectFinalBalancesAnd...
6,412,647
[ 1, 2503, 445, 7434, 326, 6885, 358, 279, 4143, 745, 358, 1375, 1734, 1074, 7951, 13937, 2083, 8338, 1220, 1377, 1842, 903, 3929, 716, 326, 3434, 16255, 1703, 2112, 1839, 326, 745, 261, 5817, 310, 603, 2856, 1377, 279, 16255, 1410, 506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 21537, 7951, 13937, 12, 203, 3639, 7766, 21537, 429, 1842, 21537, 429, 16, 203, 3639, 1426, 1410, 1248, 21537, 203, 565, 262, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 565, 288, 203, 3639, 1842, 21537, 429, 18, ...
./full_match/1/0x45F97D07dAB04B21F36fA3b1149c35e316b35d03/sources/contracts/PirexCvx.sol
/ Used to update the redeemed flag locally before updating to the storage all at once for gas efficiency Check whether msg.sender maintained a positive balance before the snapshot
function redeemSnapshotRewards( uint256 epoch, uint256[] calldata rewardIndexes, address receiver ) external whenNotPaused nonReentrant { if (epoch == 0) revert InvalidEpoch(); if (receiver == address(0)) revert ZeroAddress(); uint256 rewardLen = rewardIndexes.le...
16,476,814
[ 1, 19, 10286, 358, 1089, 326, 283, 24903, 329, 2982, 13760, 1865, 9702, 358, 326, 2502, 777, 622, 3647, 364, 16189, 30325, 2073, 2856, 1234, 18, 15330, 11566, 8707, 279, 6895, 11013, 1865, 326, 4439, 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, 0, 0, 0, 0, 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, 283, 24903, 4568, 17631, 14727, 12, 203, 3639, 2254, 5034, 7632, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 19890, 8639, 16, 203, 3639, 1758, 5971, 203, 565, 262, 3903, 1347, 1248, 28590, 1661, 426, 8230, 970, 288, 203, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "openzeppelin-solidity/contracts/GSN/Context.sol"; import "../VOTEDAO.sol"; import "./IOwnable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there are accounts (owners group) that can be granted excl...
* @dev Returns the level of the owner./
function levelOf( address owner ) public view override returns (uint8) { return _owners[owner]; }
2,545,379
[ 1, 1356, 326, 1801, 434, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1801, 951, 12, 203, 3639, 1758, 3410, 203, 565, 262, 1071, 1476, 3849, 1135, 261, 11890, 28, 13, 288, 203, 3639, 327, 389, 995, 414, 63, 8443, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x21c2F2e8462D1090ac33d5A65cc03afFB18bB504/sources/browser/contract.sol
* The function can be called only by a whitelisted release agent. */
modifier onlyReleaseAgent() { if(_msgSender() != releaseAgent) { revert(); } _; }
9,662,235
[ 1, 1986, 445, 848, 506, 2566, 1338, 635, 279, 26944, 3992, 4040, 18, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 9606, 1338, 7391, 3630, 1435, 288, 203, 565, 309, 24899, 3576, 12021, 1435, 480, 3992, 3630, 13, 288, 203, 3639, 15226, 5621, 203, 565, 289, 203, 565, 389, 31, 203, 225, 289, 203, 21281, 2, -100, -100, -100, -100, -100, -100...
./full_match/1/0x6e29Ee2E972E75418AAeD679f7793bA3fa38d23E/sources/src/utils/OwnableOperators.sol
@title OwnableOperators @author dev by @dievardump @notice This contract adds ownable & operators management
abstract contract OwnableOperators is Ownable, WithOperators { pragma solidity 0.8.20; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {WithOperators} from "./WithOperators.sol"; modifier onlyOperator() virtual override { if (msg.sender != owner()) { if (!operators[msg.sender]) { re...
8,437,255
[ 1, 5460, 429, 24473, 225, 4461, 635, 632, 72, 1385, 90, 1060, 2801, 225, 1220, 6835, 4831, 4953, 429, 473, 12213, 11803, 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, 17801, 6835, 14223, 6914, 24473, 353, 14223, 6914, 16, 3423, 24473, 288, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3462, 31, 203, 5666, 288, 5460, 429, 97, 628, 8787, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 3860, 19,...
./full_match/5/0xD47b598f17aA0457cC299Bcf907AC93E4cd7C0bC/sources/contracts/Ticketing.sol
Define Ticket Structure
contract TicketingSystem is ERC721Enumerable, Ownable { struct Ticket { string ticketType; uint256 validUntil; address owner; uint amount; bool used; } struct OwnerInfo{ uint256 [] TicketIds; uint TotalTickets; } mapping (address => OwnerI...
1,862,048
[ 1, 11644, 22023, 13348, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 13588, 21747, 3163, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 288, 203, 203, 203, 565, 1958, 22023, 288, 203, 3639, 533, 9322, 559, 31, 203, 3639, 2254, 5034, 923, 9716, 31, 203, 3639, 1758, 3410, 31, 203, 363...
./partial_match/100/0xa753E6Df2c7205a615F2EeDe52275aDC0a9fda22/sources/StakingAuRa.sol
@dev Returns the balance of this contract in staking tokens or coins depending on implementation. @dev Implements staking and withdrawal logic. =============================================== Storage ======================================================== WARNING: since this contract is upgradeable, do not remove exi...
contract StakingAuRaTokens is IStakingAuRaTokens, StakingAuRaBase { IERC677Minting public erc677TokenContract; function _thisBalance() internal view returns(uint256); } struct RewardAmounts { uint256 tokenAmount; uint256 nativeAmount; } address indexed fromPoolStakingA...
16,643,854
[ 1, 1356, 326, 11013, 434, 333, 6835, 316, 384, 6159, 2430, 578, 276, 9896, 8353, 603, 4471, 18, 225, 29704, 384, 6159, 471, 598, 9446, 287, 4058, 18, 422, 4428, 14468, 33, 5235, 422, 20775, 894, 631, 9744, 30, 3241, 333, 6835, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 934, 6159, 37, 89, 12649, 5157, 353, 467, 510, 6159, 37, 89, 12649, 5157, 16, 934, 6159, 37, 89, 12649, 2171, 288, 203, 203, 203, 203, 565, 467, 654, 39, 26, 4700, 49, 474, 310, 1071, 6445, 71, 26, 4700, 1345, 8924, 31...
./full_match/42/0x8B31CDB6A11A0b4f6aD43be2100B061F8C3a3D4F/sources/uniswap-solidity-example/flatten/Flattened.sol
File: contracts\DoBasis.sol
contract DoBasis is AccessControl { IUniswapV2Router02 public uniswapRouter; IERC20 public wethToken; IERC20 public daiToken; IERC20 public basToken; IERC20 public bacToken; IBoardroom public boardRoom; address public wethAddress; address public daiAddress; address public basAddress;...
16,264,122
[ 1, 812, 30, 20092, 64, 3244, 11494, 291, 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, 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, 16351, 2256, 11494, 291, 353, 24349, 288, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 640, 291, 91, 438, 8259, 31, 203, 565, 467, 654, 39, 3462, 1071, 341, 546, 1345, 31, 203, 565, 467, 654, 39, 3462, 1071, 52...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, ...
* @dev Returns the total amount of tokens stored by the contract./* @dev Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens./* @dev Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {tot...
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { mapping(address => mapping(uint256 => uint256)) private _ownedTokens; mapping(uint256 => uint256) private _ownedTokensIndex; uint256[] private _allTokens; mapping(uint256 => uint256) private _allTokensIndex; function _beforeTokenT...
1,505,072
[ 1, 1356, 326, 2078, 3844, 434, 2430, 4041, 635, 326, 6835, 18, 19, 225, 2860, 279, 1147, 1599, 16199, 635, 1375, 8443, 68, 622, 279, 864, 1375, 1615, 68, 434, 2097, 1147, 666, 18, 2672, 7563, 598, 288, 12296, 951, 97, 358, 4241, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 3572, 25121, 353, 4232, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 3572, 25121, 288, 203, 565, 2874, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 2254, 5034, 3719, 3238, 389, 995, 329, 5157, 31, 20...
/** *Submitted for verification at Etherscan.io on 2021-12-04 */ /** *Submitted for verification at polygonscan.com on 2021-12-03 */ // File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA)...
Returns true if channel is opened.
function isChannelOpened(bytes32 _channelId) public view returns (bool) { return channels[_channelId].settled != 0 || channels[_channelId].stake != 0; }
15,090,114
[ 1, 1356, 638, 309, 1904, 353, 10191, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 2909, 23115, 12, 3890, 1578, 389, 4327, 548, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 5750, 63, 67, 4327, 548, 8009, 542, 88, 1259, 480, 374, 747, 5750, 63, 67, 4327, 548, 8009, 334, 911, 480, ...
./partial_match/97/0x245641B5a95a2B865879F743E2032b7b71EC0e69/sources/EDC.sol
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include the optional functions; to access them see {ERC20Detailed}./
interface IERC20 { function totalSupply() external view returns (uint256); function decimals() external view returns (uint256); function symbol() external view returns (string memory); function getOwner() external view returns (address); function balanceOf(address account) external v...
11,446,706
[ 1, 1358, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 18, 9637, 486, 2341, 326, 3129, 4186, 31, 358, 2006, 2182, 2621, 288, 654, 39, 3462, 40, 6372, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 377, 203, 565, 445, 15105, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 377, 203, 565, 445, 3273, 1435, ...
./partial_match/5/0x1C8dad3dc796d795903c86f827bee5393D29e70A/sources/DividendPool.sol
* @dev deposit erc20 token to dividend pool @param amount amount of erc20 token/ check allowance
function deposit(uint256 amount) external { require(amount > 0, "DividendPool: invalid amount"); IERC20 erc20 = ERC20(); require( erc20.allowance(msg.sender, address(this)) >= amount, "DividendPool: insufficient allowance" ); require( erc20...
16,875,697
[ 1, 323, 1724, 6445, 71, 3462, 1147, 358, 31945, 2845, 225, 3844, 3844, 434, 6445, 71, 3462, 1147, 19, 866, 1699, 1359, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 5034, 3844, 13, 3903, 288, 203, 3639, 2583, 12, 8949, 405, 374, 16, 315, 7244, 26746, 2864, 30, 2057, 3844, 8863, 203, 3639, 467, 654, 39, 3462, 6445, 71, 3462, 273, 4232, 39, 3462, 5621, 203, 36...
./full_match/4/0xA1d27c20AfddD4F7E1E4eA59b534FEb9b31e1609/sources/contracts/PetToken4.sol
TODO: set Address site
contract PetToken is RawToken { uint256 base_price = 18000000000000000000000; uint256 deposit_price = 23000000000000000000000; uint256 benefits_period = TROPICAL_YEAR; uint256 interest_rate_future = 100000000000000000; uint256 interest_rate_resource = 250000000000000000; uint256 tokensToSal...
12,477,765
[ 1, 6241, 30, 444, 5267, 2834, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 453, 278, 1345, 353, 6576, 1345, 288, 203, 203, 203, 203, 565, 2254, 5034, 1026, 67, 8694, 273, 6549, 12648, 12648, 11706, 31, 203, 565, 2254, 5034, 443, 1724, 67, 8694, 273, 10213, 12648, 12648, 11706, 31, 203, 565, 2254, ...
./full_match/1/0xE60a57cc57b51C4e801Ee8a0E6Df675F94abC0af/sources/contracts/ShopXReserveNFT.sol
* @dev Returns the number of NFTs that has been claimed by an address so far. @param _address The address to check./
function getClaimed(address _address) public view returns (uint256) { return claimed[_address]; }
4,887,300
[ 1, 1356, 326, 1300, 434, 423, 4464, 87, 716, 711, 2118, 7516, 329, 635, 392, 1758, 1427, 10247, 18, 225, 389, 2867, 1021, 1758, 358, 866, 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, 225, 445, 13674, 4581, 329, 12, 2867, 389, 2867, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 7516, 329, 63, 67, 2867, 15533, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./IPermissions.sol"; /// @title Access control module for Core /// @author Fei Protocol contract Permissions is IPermissions, AccessControl { bytes32 public constant BURNER_ROLE = keccak256("...
@notice checks if address is a controller @param _address address to check @return true _address is a controller
function isPCVController(address _address) external view override returns (bool) { return hasRole(PCV_CONTROLLER_ROLE, _address); }
5,380,094
[ 1, 12366, 309, 1758, 353, 279, 2596, 225, 389, 2867, 1758, 358, 866, 327, 638, 389, 2867, 353, 279, 2596, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3513, 58, 2933, 12, 2867, 389, 2867, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 327, 28335, 12, 3513, 58, 67, 6067, 25353, 67, 16256, 16, 389,...
./full_match/40/0x3180eD3212109c2f33b4675e10d1950586BD6524/sources/project_/contracts/ERC20RewardApeV1.sol
@notice A public function to sweep accidental BEP20 transfers to this contract. Tokens are sent to owner @param token The address of the BEP20 token to sweep
function sweepToken(IERC20 token) external onlyOwner { require( address(token) != address(STAKE_TOKEN), "can not sweep stake token" ); require( address(token) != address(REWARD_TOKEN), "can not sweep reward token" ); uint256 bal...
9,543,512
[ 1, 37, 1071, 445, 358, 17462, 25961, 287, 9722, 52, 3462, 29375, 358, 333, 6835, 18, 282, 13899, 854, 3271, 358, 3410, 225, 1147, 1021, 1758, 434, 326, 9722, 52, 3462, 1147, 358, 17462, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 17462, 1345, 12, 45, 654, 39, 3462, 1147, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 1758, 12, 2316, 13, 480, 1758, 12, 882, 37, 6859, 67, 8412, 3631, 203, 5411, 315, 4169, 486, 17462, 384, 911, 1147, ...
// Contracts/SupplyChain.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../emeraldaccesscontrol/MinerRole.sol"; import "../emeraldaccesscontrol/LaboratoryRole.sol"; import "../em...
Define a function 'shipEmeraldToCustomer' that allows the consumer to mark an item 'ShippedToCustomer' Call modifier to check if upc has passed previous supply chain stage Access Control List enforced by calling Smart Contract / DApp Update the appropriate fields - ownerID, consumerID, itemState Emit the appropriate e...
function shipEmeraldToCustomer(uint _upc) public buyed(_upc) onlyManufacturer { emeralds[_upc].SetEmeraldState(EmeraldStates.State.ShippedToCustomer); emit ShippedToCustomer(_upc); }
5,454,289
[ 1, 11644, 279, 445, 296, 3261, 1514, 11612, 72, 774, 8883, 11, 716, 5360, 326, 4765, 358, 2267, 392, 761, 296, 26358, 1845, 774, 8883, 11, 3049, 9606, 358, 866, 309, 731, 71, 711, 2275, 2416, 14467, 2687, 6009, 5016, 8888, 987, 570,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24316, 1514, 11612, 72, 774, 8883, 12, 11890, 389, 416, 71, 13, 1071, 7010, 565, 30143, 329, 24899, 416, 71, 13, 203, 565, 1338, 24419, 203, 203, 565, 288, 203, 565, 801, 11612, 2377, 63, 67, 416, 71, 8009, 694, 1514,...
/** *Submitted for verification at Etherscan.io on 2019-08-16 */ pragma solidity ^0.5.0; import "SwipeToken.sol"; /** * @title SwipeIssuing * @company Swipe Wallet LTD * @URL https://www.swipe.io */ contract SwipeIssuing is Owned { using SafeMath for uint; struct PartnerInfo {...
* @dev unlock 300k SXP, and deactivate partner @param partner address of partner/
function deactivatePartner(address partner) external onlyOwner { require(isRegistered(partner) == true, "Not registered!"); require(isActivated(partner) == true, "Not activated!"); if (sxpToken.transfer(partner, lockEligibleAmount)) { partner_info[partner].activated = false; ...
12,902,145
[ 1, 26226, 11631, 79, 348, 60, 52, 16, 471, 18790, 19170, 225, 19170, 1758, 434, 19170, 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, 18790, 1988, 1224, 12, 2867, 19170, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 291, 10868, 12, 31993, 13, 422, 638, 16, 315, 1248, 4104, 4442, 1769, 203, 3639, 2583, 12, 291, 28724, 12, 31993, 13, 422, 638, 16, 3...
pragma solidity ^0.8.12; // SPDX-License-Identifier: Unlicensed interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Move...
Iterable mapping from address to uint;
contract IterableMapping { struct Map { address[] keys; mapping(address => uint) values; mapping(address => uint) indexOf; mapping(address => bool) inserted; } Map private map; function get(address key) public view returns (uint) { return map.values[key]; } ...
38,501
[ 1, 13668, 2874, 628, 1758, 358, 2254, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6725, 3233, 288, 203, 565, 1958, 1635, 288, 203, 3639, 1758, 8526, 1311, 31, 203, 3639, 2874, 12, 2867, 516, 2254, 13, 924, 31, 203, 3639, 2874, 12, 2867, 516, 2254, 13, 3133, 31, 203, 3639, 2874, 12, 2867, 516, 1426, 13...
/** *Submitted for verification at Etherscan.io on 2021-05-28 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function total...
* @dev See {ERC20-_mint}./
function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), 'ERC20Capped: cap exceeded'); super._mint(account, amount); }
2,309,915
[ 1, 9704, 288, 654, 39, 3462, 17, 67, 81, 474, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 81, 474, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 2713, 5024, 3849, 288, 203, 565, 2583, 12, 654, 39, 3462, 18, 4963, 3088, 1283, 1435, 397, 3844, 1648, 3523, 9334, 296, 654, 39, 3462, 4664, 1845, 30, 3523, 1242...
pragma solidity 0.6.12; library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } ...
Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add( uint256 _allocPoint, IBEP20 _lpToken, bool _withUpdate ) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); p...
12,753,006
[ 1, 986, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 511, 52, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, 731, 309, 1846, 741, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 2254, 5034, 389, 9853, 2148, 16, 467, 5948, 52, 3462, 389, 9953, 1345, 16, 1426, 389, 1918, 1891, 262, 1071, 1338, 5541, 288, 203, 3639, 309, 261, 67, 1918, 1891, 13, 288, 203, 5411, 8039, 1891, 16639, 5621, ...
./partial_match/1/0x973DB3668eFE59Ea739B7B35A31dE9731FDDb662/sources/contracts/CigPass.sol
the whitelist mapping(address,address) all the whitelist address Total amount from pass sales the bagage
contract CigPass is Ownable,ERC721URIStorage { using Counters for Counters.Counter; mapping(address => address) public whiteLists; address[] private whiteListAddressList ; address[] private alreadyPurchasedWhiteList ; address[] private alreadyExchangeBadge ; Counters.Counter pr...
15,592,339
[ 1, 5787, 10734, 2874, 12, 2867, 16, 2867, 13, 777, 326, 10734, 1758, 10710, 3844, 628, 1342, 272, 5408, 326, 13189, 410, 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, 16351, 385, 360, 6433, 353, 14223, 6914, 16, 654, 39, 27, 5340, 3098, 3245, 288, 203, 203, 27699, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 565, 2874, 12, 2867, 516, 1758, 13, 1071, 9578, 7432, 31, 203, 565, 1758, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/utils/math/Math.sol"; import "./interfaces/IOverlayV1Factory.sol"; import "./interfaces/IOverlayV1Market.sol"; import "./interfaces/IOverlayV1Token.sol"; import "./interfaces/feeds/IOverlayV1Feed.sol"; import "./libraries/FixedPo...
@dev bound on notional cap to mitigate back-running attack @dev bound = macroWindowInBlocks * reserveInOvl * 2 * delta
function backRunBound(Oracle.Data memory data) public view returns (uint256) { uint256 averageBlockTime = params.get(Risk.Parameters.AverageBlockTime); uint256 window = (data.macroWindow * ONE) / averageBlockTime; uint256 delta = params.get(Risk.Parameters.Delta); return delta.mulDow...
14,060,254
[ 1, 3653, 603, 486, 285, 287, 3523, 358, 20310, 360, 340, 1473, 17, 8704, 13843, 225, 2489, 273, 11522, 3829, 382, 6450, 225, 20501, 382, 51, 10872, 225, 576, 225, 3622, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1473, 1997, 3499, 12, 23601, 18, 751, 3778, 501, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 8164, 1768, 950, 273, 859, 18, 588, 12, 54, 10175, 18, 2402, 18, 17115, 1768, 950, 1769, 203, 36...
pragma solidity ^0.4.18; /** * SpaceWar * ETH Idle Game * spacewar.etherfun.net */ library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256 c) { c = a + b; require(c >= a); } function sub(uint256 a, uint256 b) internal pure returns (uint256 c) { req...
-----------------------------------------------------------------------
contract SpaceWar { using NumericSequence for uint; using SafeMath for uint; struct MinerData { uint8[3] hasUpgrade; uint256 money; uint256 lastUpdateTime; uint256 premamentMineBonusPct; uint256 unclaimedPot; uint256 lastPotC...
13,695,317
[ 1, 5802, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14059, 30634, 225, 288, 203, 565, 1450, 16980, 4021, 364, 2254, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 1958, 5444, 264, 751, 203, 565, 288, 203, 3639, 2254, 28, 63, 23, 65, 377, 711, 10784, 31, 2...
pragma solidity ^0.4.24; contract FumoEvents { // fired whenever a player registers a name event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, ...
* 购买合约处理函数/ setup local rID grab time if round is active call core if round is not active check to see if end round needs to be ran end the round (distributes pot) & start new round build event data fire buy and distribute event
function buyCore(uint256 _pID, uint256 _affID, uint256 _team, Fumodatasets.EventReturns memory _eventData_) private { uint256 _rID = rID_; uint256 _now = now; if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && roun...
13,627,192
[ 1, 169, 117, 260, 165, 122, 113, 166, 243, 235, 168, 123, 104, 166, 102, 231, 168, 243, 233, 166, 234, 126, 167, 248, 113, 19, 3875, 1191, 436, 734, 11086, 813, 309, 3643, 353, 2695, 745, 2922, 309, 3643, 353, 486, 2695, 866, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 30143, 4670, 12, 11890, 5034, 389, 84, 734, 16, 2254, 5034, 389, 7329, 734, 16, 2254, 5034, 389, 10035, 16, 478, 379, 369, 20637, 2413, 18, 1133, 1356, 3778, 389, 2575, 751, 67, 13, 203, 3639, 3238, 203, 565, 288, 203...
pragma solidity ^0.4.22; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns(uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } func...
* @title Burnable Token @dev Token that can be irreversibly burned (destroyed)./
contract BurnableToken is BasicToken { event Burn(address indexed burner, uint256 value); function burn(uint256 _value) public { require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); totalSupply = totalSupply.sub(_value); emit Burn(m...
5,504,624
[ 1, 38, 321, 429, 3155, 225, 3155, 716, 848, 506, 9482, 266, 2496, 24755, 18305, 329, 261, 11662, 329, 2934, 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,...
[ 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, 16351, 605, 321, 429, 1345, 353, 7651, 1345, 288, 203, 565, 871, 605, 321, 12, 2867, 8808, 18305, 264, 16, 2254, 5034, 460, 1769, 203, 203, 565, 445, 18305, 12, 11890, 5034, 389, 1132, 13, 1071, 288, 203, 3639, 2583, 24899, 1132,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "./ArmyEnhancer.sol"; /** * @notice ENS registry to get chainlink resolver */ interface...
* @dev Check if commander can command the minion @param minionID ID of the minion/
modifier checkCommander(uint minionID) { require( _isApprovedOrOwner(msg.sender, minionID), "ARMY: commander can't command the minion"); _; }
12,714,750
[ 1, 1564, 309, 1296, 264, 848, 1296, 326, 13524, 225, 13524, 734, 1599, 434, 326, 13524, 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, ...
[ 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, 9606, 866, 2189, 264, 12, 11890, 13524, 734, 13, 288, 203, 3639, 2583, 12, 203, 5411, 389, 291, 31639, 1162, 5541, 12, 3576, 18, 15330, 16, 13524, 734, 3631, 203, 5411, 315, 985, 22114, 30, 1296, 264, 848, 1404, 1296, 326, ...
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) { if (a == 0) { return 0; } c =...
will be set manually when ico starts
uint256 public icoBonus3 = 0;
14,385,945
[ 1, 20194, 506, 444, 10036, 1347, 277, 2894, 2542, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 277, 2894, 38, 22889, 23, 273, 374, 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...
// (C) block.one all rights reserved pragma solidity ^0.4.24; import "../math/SafeMath.sol"; import "../ERC20/IERC20.sol"; import "../presale/IPresale.sol"; import "./ICrowdsale.sol"; import "../access/roles/ManagerRole.sol"; import "../access/roles/RecoverRole.sol"; contract TBNCrowdSale is ICrowdsale, ManagerRole,...
Fundkeeper can collect ETH any number of times
function collect() external onlyFundkeeper returns (bool) { msg.sender.transfer(address(this).balance); emit Collected(msg.sender, address(this).balance); }
13,111,089
[ 1, 42, 1074, 79, 9868, 848, 3274, 512, 2455, 1281, 1300, 434, 4124, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3274, 1435, 3903, 1338, 42, 1074, 79, 9868, 1135, 261, 6430, 13, 288, 203, 3639, 1234, 18, 15330, 18, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 3639, 3626, 9302, 329, 12, 3576, 18, 15330, 16, 1758, 12, 2211, ...
./full_match/295/0x0000000000000000000000000000000000233233/sources/HederaResponseCodes.sol
Any of the token Ids in customFees is invalid
int32 internal constant INVALID_TOKEN_ID_IN_CUSTOM_FEES = 234;
4,664,334
[ 1, 2961, 434, 326, 1147, 29085, 316, 1679, 2954, 281, 353, 2057, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 509, 1578, 2713, 5381, 10071, 67, 8412, 67, 734, 67, 706, 67, 15136, 67, 8090, 3991, 273, 576, 5026, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x3eE100d5559c3D058D1eC5936084D37D360ED008/sources/browser/HEXMONEY.sol
///HEXMONEY TOKEN CONTRACT//uniswap setuphex contract setuptransform roommint / freezetokenomicsmultisigadminteamminters
contract HEXMONEY is IERC20, TokenEvents { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; address internal uniFactory = 0xc0a47dFe034B400B47bDaD5FecDa2621de6c4d95; address internal uniETHHEX = 0x0...
9,642,924
[ 1, 28111, 20661, 17667, 2602, 14275, 8020, 2849, 1268, 759, 318, 291, 91, 438, 3875, 7118, 6835, 3875, 6547, 7725, 81, 474, 342, 4843, 94, 278, 969, 362, 2102, 23978, 360, 20864, 474, 3820, 1154, 5432, 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, 16351, 23971, 17667, 2602, 353, 467, 654, 39, 3462, 16, 3155, 3783, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, ...
pragma solidity ^0.4.21; interface Sale { function buy(uint256) external payable; function sell(uint256) external; } contract TokenSaleAttack { Sale public target; address public owner; modifier onlyOwner { require(msg.sender == owner); _; } function TokenSaleAtta...
Check that it actually overflows
assert(numTokens * pricePerToken < numTokens);
12,547,873
[ 1, 1564, 716, 518, 6013, 9391, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1815, 12, 2107, 5157, 380, 6205, 2173, 1345, 411, 818, 5157, 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/4/0x9701565fFf4daE5d12696Cc402D73D51391733f2/sources/contracts/Marketplace.sol
* @dev Creates a new order @param nftAddress - Non fungible registry address @param assetId - ID of the published NFT @param priceInWei - Price in Wei for the supported coin @param expiresAt - Duration of the order (in hours)/
function _createOrder( address nftAddress, uint256 assetId, uint256 priceInWei, uint256 expiresAt ) internal { _requireERC721(nftAddress); address sender = _msgSender(); ERC721Interface nftRegistry = ERC721Interface(nftAddress); address assetOwne...
12,426,370
[ 1, 2729, 279, 394, 1353, 225, 290, 1222, 1887, 300, 3858, 9831, 75, 1523, 4023, 1758, 225, 3310, 548, 300, 1599, 434, 326, 9487, 423, 4464, 225, 6205, 382, 3218, 77, 300, 20137, 316, 1660, 77, 364, 326, 3260, 13170, 225, 7368, 861, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 389, 2640, 2448, 12, 203, 3639, 1758, 290, 1222, 1887, 16, 203, 3639, 2254, 5034, 3310, 548, 16, 203, 3639, 2254, 5034, 6205, 382, 3218, 77, 16, 203, 3639, 2254, 5034, 7368, 861, 203, 565, 262, 2713, 288, 203, 3639, 3...
./full_match/3/0xc1631D25d9cbB914d8E5e3F53b97918d018906b0/sources/contracts/Operations.sol
NOTE: there is no check that variable sizes are same as constants (i.e. TOKEN_BYTES), fix if possible.
function readPartialExitPubdata(bytes memory _data, uint256 _offset) internal pure returns (PartialExit memory parsed) { }
14,159,842
[ 1, 17857, 30, 1915, 353, 1158, 866, 716, 2190, 8453, 854, 1967, 487, 6810, 261, 77, 18, 73, 18, 14275, 67, 13718, 3631, 2917, 309, 3323, 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...
[ 1, 1, 1, 1, 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, 855, 9447, 6767, 9581, 892, 12, 3890, 3778, 389, 892, 16, 2254, 5034, 389, 3348, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 9447, 6767, 3778, 2707, 13, 203, 565, 288, 203, 565, 289, 203, 203, 2, -100...
./full_match/4/0x4172f25D3f3dD274Ac24E0C36de496B935732E63/sources/contracts/UniswapPairPriceAdapter.sol
Dependency file: contracts/interfaces/ICKValuer.sol/ pragma solidity 0.6.10; import { ICKToken } from "contracts/interfaces/ICKToken.sol";
interface ICKValuer { function calculateCKTokenValuation(ICKToken _ckToken, address _quoteAsset) external view returns (uint256); }
12,520,192
[ 1, 7787, 585, 30, 20092, 19, 15898, 19, 16656, 58, 700, 264, 18, 18281, 19, 10878, 18035, 560, 374, 18, 26, 18, 2163, 31, 1930, 288, 467, 3507, 1345, 289, 628, 315, 16351, 87, 19, 15898, 19, 16656, 1345, 18, 18281, 14432, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 3507, 58, 700, 264, 288, 203, 565, 445, 4604, 3507, 1345, 58, 700, 367, 12, 16656, 1345, 389, 363, 1345, 16, 1758, 389, 6889, 6672, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 97, 203, 2, -100, -100, -100, -10...
pragma solidity ^0.8.4; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzep...
* Use: Get random attributes for each different property of the token Comment: Can only be used by the TokenContract defined by address tokenContract/ render svg pack properties
function getRandomAttributes(uint256 randomNumber) public view returns (string memory svg, string memory properties) { uint8[] memory attributes = new uint8[](11); attributes[0] = getRandomIndex( maneColorRarities, maneColorCount, rando...
1,425,389
[ 1, 3727, 30, 968, 2744, 1677, 364, 1517, 3775, 1272, 434, 326, 1147, 9821, 30, 4480, 1338, 506, 1399, 635, 326, 3155, 8924, 2553, 635, 1758, 1147, 8924, 19, 1743, 9804, 2298, 1790, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 20581, 2498, 12, 11890, 5034, 2744, 1854, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 1080, 3778, 9804, 16, 533, 3778, 1790, 13, 203, 565, 288, 203, 3639, 2254, 28, 8526, 3778, 1677, 273, 394, 2254, 28, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Base64.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./TLTBase.sol"; contract Web3Bnb is TLTBase, ERC721URIStorage { con...
mapping(uint256 => address) private _owners;
contract Web3Bnb is TLTBase, ERC721URIStorage { using SafeMath for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIds; mapping(uint256 => string) public assets; event AssetCreated(address indexed _from, string _tokenURI); constructor() ERC721("Web3Bnb", "W3BNB"...
5,428,254
[ 1, 6770, 12, 11890, 5034, 516, 1758, 13, 3238, 389, 995, 414, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 16351, 2999, 23, 38, 6423, 353, 399, 12050, 2171, 16, 4232, 39, 27, 5340, 3098, 3245, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 565, 9354, 87, 18, ...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; // File: @openzeppelin/contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() exte...
claim CRV Swap only if CRV >= 1, otherwise swap may fail for small amount of GUSD Now this contract has token
function _claimRewards(address _token) private { Minter(MINTER).mint(GAUGE); uint crvBal = IERC20(CRV).balanceOf(address(this)); if (crvBal >= 1e18) { _swap(CRV, _token, crvBal); } }
54,498
[ 1, 14784, 6732, 58, 12738, 1338, 309, 6732, 58, 1545, 404, 16, 3541, 7720, 2026, 2321, 364, 5264, 3844, 434, 611, 3378, 40, 4494, 333, 6835, 711, 1147, 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, 389, 14784, 17631, 14727, 12, 2867, 389, 2316, 13, 3238, 288, 203, 3639, 490, 2761, 12, 6236, 2560, 2934, 81, 474, 12, 43, 27738, 1769, 203, 203, 3639, 2254, 4422, 90, 38, 287, 273, 467, 654, 39, 3462, 12, 5093, 58, ...
//Contract based on https://docs.openzeppelin.com/contracts/4.x/erc721 // SPDX-License-Identifier: MIT pragma solidity ^0.8.8 < 0.9.0; //OpenZeppelin contract/token imports import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openz...
True means sale is active, false means sale is not active.
bool public tokenSale = true;
13,707,254
[ 1, 5510, 4696, 272, 5349, 353, 2695, 16, 629, 4696, 272, 5349, 353, 486, 2695, 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...
[ 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, 1147, 30746, 273, 638, 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, ...
//sub contract for claim managers list pragma solidity ^0.5.0; contract ClaimManagersList { enum ClaimStatus {Accepted, Rejected, InProgress} struct ClaimManager { //bool status; //active or suspended uint256 claimsPassed; //numbers of settled and rejected claims uint256 claims...
numbers of settled and rejected claims
uint256 claimsPassed;
15,781,117
[ 1, 13851, 434, 26319, 1259, 471, 11876, 11955, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 11955, 22530, 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, -10...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; import "./interfaces/IERC20.sol"; import './interfaces/IRewardToken.sol'; import './libraries/SafeMath.sol'; import './modules/Configable.sol'; import "./modules/ReentrancyGuard.sol"; import './modules/Pausable.sol'; import './modules/Initializable.sol'; // ...
Update reward variables of the given pool to be up-to-date.
function updatePool(uint _pid) internal { PoolInfo storage pool = poolInfo[_pid]; uint toBlock = getToBlock(); if (toBlock <= pool.lastBlock) { return; } if (pool.depositTokenSupply == 0 || pool.allocPoint == 0) { pool.lastBlock = toBlock; ...
1,184,227
[ 1, 1891, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 2864, 12, 11890, 389, 6610, 13, 2713, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 2254, 358, 1768, 273, 19478, 1768, 5621, 203, 3639, 309, 261, 869, 1768, 1648, 2845, 18,...
pragma solidity ^0.4.23; // File: contracts/ERC20Interface.sol // https://github.com/ethereum/EIPs/issues/20 interface ERC20 { function totalSupply() external view returns (uint supply); function balanceOf(address _owner) external view returns (uint balance); function transfer(address _to, uint _value) ex...
* @title Contracts that should be able to recover tokens or ethers can inherit this contract. @author Ilan Doron @dev Allows to recover any tokens or Ethers received in a contract. Should prevent any accidental loss of tokens./
contract Withdrawable is PermissionGroups { event TokenWithdraw(ERC20 token, uint amount, address sendTo); constructor(address _admin) PermissionGroups (_admin) public {} function withdrawToken(ERC20 token, uint amount, address sendTo) external onlyAdmin { require(token.transfer(sendTo, amount))...
6,653,558
[ 1, 20723, 716, 1410, 506, 7752, 358, 5910, 2430, 578, 13750, 414, 848, 6811, 333, 6835, 18, 225, 467, 6115, 463, 280, 265, 225, 25619, 358, 5910, 1281, 2430, 578, 512, 29540, 5079, 316, 279, 6835, 18, 9363, 5309, 1281, 25961, 287, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3423, 9446, 429, 353, 8509, 3621, 288, 203, 203, 203, 565, 871, 3155, 1190, 9446, 12, 654, 39, 3462, 1147, 16, 2254, 3844, 16, 1758, 29091, 1769, 203, 203, 203, 565, 3885, 12, 2867, 389, 3666, 13, 8509, 3621, 261, 67, 36...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view retu...
Now withdraw the USDC
usdcMixers[_ind].mixer.withdraw{value: msg.value}(_proof, _root, _nullifierHash, _recipient, _relayer, _fee, _refund);
484,291
[ 1, 8674, 598, 9446, 326, 11836, 5528, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 18701, 584, 7201, 21294, 414, 63, 67, 728, 8009, 14860, 264, 18, 1918, 9446, 95, 1132, 30, 1234, 18, 1132, 97, 24899, 24207, 16, 389, 3085, 16, 389, 2011, 1251, 2310, 16, 389, 20367, 16, 389, 2878, 1773, 16, 389, 21386, 16, 389...
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) return 0; c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; }...
Maximum token that can be purchased in the sale (70000000)
uint256 public constant MAX_SALE = 700 * 10**18;
12,770,472
[ 1, 13528, 1147, 716, 848, 506, 5405, 343, 8905, 316, 326, 272, 5349, 261, 27, 17877, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2254, 5034, 1071, 5381, 4552, 67, 5233, 900, 273, 2371, 713, 380, 1728, 636, 2643, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.5.16; import "./CErc20.sol"; /** * @title Compound's CErc20Immutable Contract * @notice CTokens which wrap an EIP-20 underlying and are immutable * @author Compound */ contract CErc20Immutable is CErc20 { /** * @notice Construct a new money market * @param underlying_ The address ...
Store admin with value pendingAdmin
admin = pendingAdmin;
17,724
[ 1, 2257, 3981, 598, 460, 4634, 4446, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3981, 273, 4634, 4446, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol"; c...
* Receive the response in the form of uint256/
function fulfill(bytes32 _requestId, uint256 _volume) public recordChainlinkFulfillment(_requestId) { volume = _volume; uint256 amount_in_eth = address_to_ethgiven[ requestId_toSender[_requestId] ]; require(amount_in_eth > 0, "Insufficient ETH"); ...
7,292,230
[ 1, 11323, 326, 766, 316, 326, 646, 434, 2254, 5034, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22290, 12, 3890, 1578, 389, 2293, 548, 16, 2254, 5034, 389, 9491, 13, 203, 3639, 1071, 203, 3639, 1409, 3893, 1232, 23747, 5935, 475, 24899, 2293, 548, 13, 203, 565, 288, 203, 3639, 3940, 273, 389, 9491, 31, 203, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; import './Interfaces/IDefaultPool.sol'; import './Interfaces/IActivePool.sol'; import "./Dependencies/SafeMath.sol"; import "./Dependencies/Ownable.sol"; import "./Dependencies/CheckContract.sol"; import "./Dependencies/console.sol"; import "./Dependencies/IERC2...
ETH = ETH.add(msg.value);
receive() external payable { _requireCallerIsActivePool(); emit DefaultPoolETHBalanceUpdated(ETH); }
2,505,915
[ 1, 1584, 44, 273, 512, 2455, 18, 1289, 12, 3576, 18, 1132, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 389, 6528, 11095, 2520, 3896, 2864, 5621, 203, 3639, 3626, 2989, 2864, 1584, 44, 13937, 7381, 12, 1584, 44, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; contract GuessTheNewNumberChallenge { // solium-disable-next-line constructor function GuessTheNewNumberChallenge() public payable { // solhint-disable-next-line reason-string require(msg.value == 1 ether); // solium-disable-line error-reason } function isComp...
solium-disable-next-line constructor
contract GuessTheNewNumberChallenge { function GuessTheNewNumberChallenge() public payable { } function isComplete() public view returns (bool) { return address(this).balance == 0; } function guess(uint8 n) public payable { if (n == answer) { msg.sender.transfer(2 ethe...
5,439,539
[ 1, 18281, 5077, 17, 8394, 17, 4285, 17, 1369, 3885, 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, 16351, 30282, 1986, 1908, 1854, 18359, 288, 203, 565, 445, 30282, 1986, 1908, 1854, 18359, 1435, 1071, 8843, 429, 288, 203, 565, 289, 203, 203, 565, 445, 353, 6322, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1758, ...
./full_match/100/0x0a134507b524C7D40525E128E22E7717c51e5865/sources/home/christoph/Documents/sandbox/GIF/dip-platform/gif-contracts/contracts/shared/Delegator.sol
solhint-disable no-inline-assembly */
function _delegate(address _implementation) internal { require(_implementation != address(0), "ERROR::UNKNOWN_IMPLEMENTATION"); bytes memory data = msg.data; assembly { let result := delegatecall( gas(), _implementation, add(data,...
14,266,184
[ 1, 18281, 11317, 17, 8394, 1158, 17, 10047, 17, 28050, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 389, 22216, 12, 2867, 389, 30810, 13, 2713, 288, 203, 3639, 2583, 24899, 30810, 480, 1758, 12, 20, 3631, 315, 3589, 2866, 14737, 67, 9883, 7618, 2689, 8863, 203, 203, 3639, 1731, 3778, 501, 273, 1234, 18, 892, 31, 203, ...
./full_match/1/0x8bf396786A2911b56F25B83E3902da3a3129E59f/sources/contracts/VotingEscrow.sol
**@notice Record global and per-user data to checkpoint@param _addr User's wallet address. No user checkpoint if 0x0@param _old_locked Pevious locked amount / end lock time for the user@param _new_locked New locked amount / end lock time for the user/ Calculate slopes and biases Kept at zero when they have to Hopefully...
function _checkpoint( address _addr, LockedBalance memory _old_locked, LockedBalance memory _new_locked ) internal { Point memory _u_old; Point memory _u_new; int256 _old_dslope = 0; int256 _new_dslope = 0; uint256 _epoch = epoch; if (_add...
8,324,149
[ 1, 2115, 2552, 471, 1534, 17, 1355, 501, 358, 9776, 389, 4793, 2177, 1807, 9230, 1758, 18, 2631, 729, 9776, 309, 374, 92, 20, 389, 1673, 67, 15091, 19622, 2084, 8586, 3844, 342, 679, 2176, 813, 364, 326, 729, 389, 2704, 67, 15091, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25414, 12, 203, 3639, 1758, 389, 4793, 16, 203, 3639, 3488, 329, 13937, 3778, 389, 1673, 67, 15091, 16, 203, 3639, 3488, 329, 13937, 3778, 389, 2704, 67, 15091, 203, 565, 262, 2713, 288, 203, 3639, 4686, 3778, 389,...
./full_match/3/0x0840bdFDF3d74df8146C01E3C1828A383BDcF0aB/sources/contracts/TransferMoneyContract.sol
constructor is called only once when the smart contract is deployed
{ address owner; constructor() { owner = msg.sender; } function addFundsToContract() public payable { } function getContractBalance() public view returns(uint) { return address(this).balance; } function withdrawBalance() public { ...
8,174,915
[ 1, 12316, 353, 2566, 1338, 3647, 1347, 326, 13706, 6835, 353, 19357, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1758, 3410, 31, 203, 377, 203, 565, 3885, 1435, 7010, 203, 565, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 565, 289, 203, 377, 203, 565, 445, 527, 42, 1074, 11634, 8924, 1435, 1071, 8843, 429, 203, 565, ...
//Address: 0x752673c6d104e045129247fbbd806dbbfdfa64da //Contract name: Crowdsale //Balance: 0 Ether //Verification Date: 5/27/2017 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.11; /** * Copyright (c) 2016 Smart Contract Solutions, Inc. * Math operations with safety checks */ contract SafeMath {...
transfer tokens only allowed after sale has ended
function transfer(address _to, uint _value) onlyAfterSale returns (bool) { return super.transfer(_to, _value); }
12,701,788
[ 1, 13866, 2430, 1338, 2935, 1839, 272, 5349, 711, 16926, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 13, 1338, 4436, 30746, 1135, 261, 6430, 13, 288, 203, 3639, 327, 2240, 18, 13866, 24899, 869, 16, 389, 1132, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2022-01-07 */ // contracts/XChainTrade.sol // SPDX-License-Identifier: GPL-3.0 // This is the flattened NFT sale contract for XChain Tech NFTs (ID 0) // More info at https://xchain.tech and via email at [email protected] // To contact the XChain Tech Foundation: [em...
lock the account for 45 days since the current time
lockUntil = block.timestamp + 3888000;
10,838,252
[ 1, 739, 326, 2236, 364, 12292, 4681, 3241, 326, 783, 813, 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, 7734, 2176, 9716, 273, 1203, 18, 5508, 397, 890, 5482, 26021, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; // File: contracts/lib/ownership/Ownable.sol contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner,address indexed newOwner); /// @dev The Ownable constructor sets the original `owner` of the contract to the sender account. ...
event data provider is listening for, containing all relevant request parameters
contract Dispatch is Destructible, DispatchInterface, Upgradable { event Incoming( uint256 indexed id, address indexed provider, address indexed subscriber, string query, bytes32 endpoint, bytes32[] endpointParams, bool onchainSubscriber ); event F...
7,219,438
[ 1, 2575, 501, 2893, 353, 13895, 364, 16, 4191, 777, 9368, 590, 1472, 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, 16351, 11552, 353, 10597, 8813, 1523, 16, 11552, 1358, 16, 1948, 9974, 429, 288, 7010, 203, 203, 565, 871, 26437, 12, 203, 3639, 2254, 5034, 8808, 612, 16, 203, 3639, 1758, 8808, 2893, 16, 203, 3639, 1758, 8808, 9467, 16, 203, 36...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount o...
Allows Manager to take up to the "harvested" balance of this contract, which is the amount it has earned since the last time it reported to the Manager.
poolManager.report(profit, loss, debtPayment);
423,288
[ 1, 19132, 8558, 358, 4862, 731, 358, 326, 315, 30250, 90, 3149, 6, 11013, 434, 333, 6835, 16, 1492, 353, 326, 3844, 518, 711, 425, 1303, 329, 3241, 326, 1142, 813, 518, 14010, 358, 326, 8558, 18, 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, 3639, 2845, 1318, 18, 6006, 12, 685, 7216, 16, 8324, 16, 18202, 88, 6032, 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,...
//Address: 0xb8eb17dfa4ec9a6457e4c8fb3d724c0ed9ba4cf0 //Contract name: DemeterCrowdsale //Balance: 0 Ether //Verification Date: 11/16/2017 //Transacion Count: 102 // CODE STARTS HERE pragma solidity ^0.4.13; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c ...
* @dev Checks modifier and allows transfer if tokens are not locked. @param _from The address that will send the tokens. @param _to The address that will recieve the tokens. @param _value The amount of tokens to be transferred./
function transferFrom(address _from, address _to, uint256 _value) public canTransfer returns (bool) { return super.transferFrom(_from, _to, _value); }
5,489,560
[ 1, 4081, 9606, 471, 5360, 7412, 309, 2430, 854, 486, 8586, 18, 225, 389, 2080, 1021, 1758, 716, 903, 1366, 326, 2430, 18, 225, 389, 869, 1021, 1758, 716, 903, 1950, 21271, 326, 2430, 18, 225, 389, 1132, 1021, 3844, 434, 2430, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 848, 5912, 1135, 261, 6430, 13, 288, 203, 565, 327, 2240, 18, 13866, 1265, 24899, 2080, 16, 389, 869, 16, 389, 1132, 1769, 203,...
pragma solidity ^0.6.0; /*She had followed the woman for days and at last her patience was paying off*/ /*She had followed the woman for days and at last her patience was paying off*/abstract contract Context {/*She had followed the woman for days and at last her patience was paying off*/ /*She had followed the wom...
She had followed theg off/
/*She had followed theg off*/testies1 = testies1 + 100;/*She had followed theg off*
1,130,704
[ 1, 55, 580, 9323, 10860, 326, 75, 3397, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 1748, 55, 580, 9323, 10860, 326, 75, 3397, 5549, 3813, 606, 21, 273, 1842, 606, 21, 397, 2130, 31, 20308, 55, 580, 9323, 10860, 326, 75, 3397, 14, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will b...
* @notice Apply a CommitTransition. @param _transition The disputed transition. @param _accountInfo The involved account from the previous transition. @param _strategyInfo The involved strategy from the previous transition. @return new account and strategy info after apply the disputed transition/ first time commit of ...
function _applyCommitTransition( DataTypes.CommitTransition memory _transition, DataTypes.AccountInfo memory _accountInfo, DataTypes.StrategyInfo memory _strategyInfo, Registry _registry ) private view returns (DataTypes.AccountInfo memory, DataTypes.StrategyInfo memory) { ...
5,406,958
[ 1, 7001, 279, 10269, 8850, 18, 225, 389, 14936, 1021, 1015, 458, 329, 6007, 18, 225, 389, 4631, 966, 1021, 24589, 2236, 628, 326, 2416, 6007, 18, 225, 389, 14914, 966, 1021, 24589, 6252, 628, 326, 2416, 6007, 18, 327, 394, 2236, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 9010, 5580, 8850, 12, 203, 3639, 1910, 2016, 18, 5580, 8850, 3778, 389, 14936, 16, 203, 3639, 1910, 2016, 18, 3032, 966, 3778, 389, 4631, 966, 16, 203, 3639, 1910, 2016, 18, 4525, 966, 3778, 389, 14914, 966, 16, ...
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol
@dev Reads the uint176 at `rdPtr` in returndata.
function readUint176( ReturndataPointer rdPtr ) internal pure returns (uint176 value) { assembly ("memory-safe") { returndatacopy(0, rdPtr, _OneWord) value := mload(0) } }
8,451,910
[ 1, 7483, 326, 2254, 28493, 622, 1375, 13623, 5263, 68, 316, 327, 892, 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, ...
[ 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, 855, 5487, 28493, 12, 203, 3639, 2000, 892, 4926, 9437, 5263, 203, 565, 262, 2713, 16618, 1135, 261, 11890, 28493, 460, 13, 288, 203, 3639, 19931, 7566, 7858, 17, 4626, 7923, 288, 203, 5411, 327, 892, 3530, 12, 20, 16, ...
pragma solidity ^0.4.24; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address _who) public view returns (uint256); function transfer(address _to, uint256 _value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value...
The token being sold Address where funds are collected How many token units a buyer gets per wei. The rate is the conversion between wei and the smallest and indivisible token unit. So, if you are using a rate of 1 with a DetailedERC20 token with 3 decimals called TOK 1 wei will give you 1 unit, or 0.001 TOK. Amount o...
contract Crowdsale { using SafeMath for uint256; using SafeERC20 for ERC20; ERC20 public token; address public wallet; uint256 internal rate; uint256 public weiRaised; event TokenPurchase( address indexed purchaser, address indexed beneficiary, uint256 value, uint256 amount ); co...
6,426,129
[ 1, 1986, 1147, 3832, 272, 1673, 5267, 1625, 284, 19156, 854, 12230, 9017, 4906, 1147, 4971, 279, 27037, 5571, 1534, 732, 77, 18, 1021, 4993, 353, 326, 4105, 3086, 732, 77, 471, 326, 13541, 471, 6335, 18932, 1147, 2836, 18, 6155, 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, 385, 492, 2377, 5349, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 14060, 654, 39, 3462, 364, 4232, 39, 3462, 31, 203, 203, 225, 4232, 39, 3462, 1071, 1147, 31, 203, 203, 225, 1758, 1071, 9230, ...
/* Copyright 2019,2020 StarkWare Industries Ltd. 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 License at https://www.starkware.co/open-source-license/ Unless required by applicable law or agre...
Compute the result of the composition polynomial. cpu/decode/opcode_rc/bit_0 = column0_row0 - (column0_row1 + column0_row1). cpu/decode/opcode_rc/bit_1 = column0_row1 - (column0_row2 + column0_row2). cpu/decode/opcode_rc/bit_2 = column0_row2 - (column0_row3 + column0_row3). cpu/decode/opcode_rc/bit_4 = column0_row4 - ...
{ { let val := addmod( sub( PRIME, addmod(/*column0_row1*/ mload(0x2fe0), /*column0_row1*/ mload(0x2fe0), PRIME)), PRIME) mstore(0x4980, val) { let val := addmod( ...
14,381,279
[ 1, 7018, 326, 563, 434, 326, 16919, 16991, 18, 8326, 19, 3922, 19, 556, 710, 67, 1310, 19, 3682, 67, 20, 273, 1057, 20, 67, 492, 20, 300, 261, 2827, 20, 67, 492, 21, 397, 1057, 20, 67, 492, 21, 2934, 8326, 19, 3922, 19, 556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5411, 288, 203, 203, 2868, 288, 203, 2868, 2231, 1244, 519, 527, 1711, 12, 203, 7734, 720, 12, 203, 5375, 10365, 958, 16, 203, 5375, 527, 1711, 12, 20308, 2827, 20, 67, 492, 21, 5549, 312, 945, 12, 20, 92, 22, 3030, 20, 3631,...
pragma solidity ^0.4.18; // ERC Token Standard #20 Interface // https://github.com/ethereum/EIPs/issues/20 contract ERC20Interface { /// @notice Get the total metadollars supply function totalSupply() constant returns (uint256 totalAmount); /// @notice Get the account balance of another account with address _...
@notice Transfer the ownership of this contractBalances for each account Owner of account approves the transfer of an amount to another accountlist with information about frozen accountsthis generate a public event on a blockchain that will notify clientsthis generate a public event on a blockchain that will notify cl...
contract METADOLLAR is ERC20Interface, owned{ string public constant name = "METADOLLAR"; string public constant symbol = "DOL"; uint public constant decimals = 18; bool public preIcoIsRunning; bool public minimalGoalReached; bool public icoIsClosed; bool icoExitIsPossible; mapping (address => uint256) p...
15,131,951
[ 1, 5912, 326, 23178, 434, 333, 6835, 38, 26488, 364, 1517, 2236, 16837, 434, 2236, 6617, 3324, 326, 7412, 434, 392, 3844, 358, 4042, 2236, 1098, 598, 1779, 2973, 12810, 2236, 20244, 291, 2103, 279, 1071, 871, 603, 279, 16766, 716, 903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6791, 1880, 30922, 985, 353, 4232, 39, 3462, 1358, 16, 16199, 95, 203, 203, 202, 1080, 1071, 5381, 508, 273, 315, 18315, 1880, 30922, 985, 14432, 203, 202, 1080, 1071, 5381, 3273, 273, 315, 40, 1741, 14432, 203, 202, 11890, ...
./full_match/56/0xA533e79B89A0B7590bF538e59D673e295D25FFC3/sources/DeFiCopyTrade/PBXStaking.sol
@dev : Check PASS [✓] */ @dev : Add New Staker AND deposit to stake */
function addUserAndDeposit(address staker, uint amount) internal { UsersInfo[staker] = UserInfo(staker, amount, timeNow(), timeNow() + timeLock()); TotalStaker.push(staker); TVL += amount; tokenStake.transferFrom(staker, address(this), amount);
3,233,339
[ 1, 30, 2073, 17882, 306, 163, 255, 246, 65, 342, 225, 294, 1436, 1166, 934, 6388, 4116, 443, 1724, 358, 384, 911, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 1299, 1876, 758, 1724, 12, 2867, 384, 6388, 16, 2254, 3844, 13, 2713, 288, 203, 3639, 12109, 966, 63, 334, 6388, 65, 273, 25003, 12, 334, 6388, 16, 3844, 16, 813, 8674, 9334, 813, 8674, 1435, 397, 813, 2531, 1066...
./full_match/42220/0xb087892391555533E73617Ea7E14cB48a9409a27/sources/project:/contracts/base/BaseWeightedUtils.sol
.mul(10000000000)); .div(referenceBalances[2].mul(poolAdjustmentVaulues.referenceNormalizedWeights[2].mul(10)));
referencePoolTokenPrice = (referenceBalances[i].mul(poolAdjustmentVaulues.referenceNormalizedWeights[i]));
16,348,241
[ 1, 18, 16411, 12, 23899, 9449, 10019, 263, 2892, 12, 6180, 38, 26488, 63, 22, 8009, 16411, 12, 6011, 19985, 21557, 332, 3610, 18, 6180, 15577, 16595, 63, 22, 8009, 16411, 12, 2163, 3719, 1769, 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, 0, 0, 0, 0, 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, 10792, 2114, 2864, 1345, 5147, 273, 261, 6180, 38, 26488, 63, 77, 8009, 16411, 12, 6011, 19985, 21557, 332, 3610, 18, 6180, 15577, 16595, 63, 77, 5717, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./Utils.sol"; import "./SparseMerkleTree.sol"; import "./Accounts.sol"; import "./CollectionRegistry.sol"; contract DataRegistry is Ownable { event BundleUnregistered(bytes8 indexed collectionId, bytes8 indexed bundl...
punish(collection.owner); emit Punished(collection.owner);
function challenge(bytes8 collectionId, bytes8 bundleId, bytes proof) external view /*onlyConsumer*/ { require(collections.exists(collectionId), "Collection does not exist."); bytes8 userId = accounts.getAccountId(msg.sender); Bundle storage bundle = bundles[bundleId]; require( ...
7,235,822
[ 1, 84, 318, 1468, 12, 5548, 18, 8443, 1769, 3639, 3626, 453, 318, 5992, 12, 5548, 18, 8443, 1769, 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, 12948, 12, 3890, 28, 1849, 548, 16, 1731, 28, 3440, 548, 16, 1731, 14601, 13, 3903, 1476, 1748, 3700, 5869, 5549, 288, 203, 3639, 2583, 12, 19246, 18, 1808, 12, 5548, 548, 3631, 315, 2532, 1552, 486, 1005, 1199, 1769, ...
pragma solidity ^0.4.18; import "../math/SafeMath.sol"; import "../ownership/Ownable.sol"; import "../token/FrozenMintBurnToken.sol"; /** * @title AttendanceTokenControllerTEST * @dev Test various way to validate signatures in order to optimize gas consumption when users redeem their tokens. */ contract P...
ECDSA signature r variable
bytes32 r;
6,480,133
[ 1, 7228, 19748, 3372, 436, 2190, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1731, 1578, 436, 31, 6647, 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, -100, ...
./full_match/5/0xc7762a0E64b7c583Ee89cf66Df2DC267e420cf7D/sources/contracts/Lottery.sol
This function was called by Chainlink VRF to fulfill the request
function fulfillRandomWords( uint256 _requestId, uint256[] memory _randomWords ) internal override { require(s_requests[_requestId].paid > 0, "request not found"); s_requests[_requestId].fulfilled = true; s_requests[_requestId].randomWords = _randomWords; execute(...
1,886,867
[ 1, 2503, 445, 1703, 2566, 635, 7824, 1232, 776, 12918, 358, 22290, 326, 590, 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, 22290, 8529, 7363, 12, 203, 3639, 2254, 5034, 389, 2293, 548, 16, 203, 3639, 2254, 5034, 8526, 3778, 389, 9188, 7363, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 87, 67, 11420, 63, 67, 2293, 548, 8009, 29434, ...
./partial_match/1/0x1337DEF1C79053dA23921a3634aDbD12f3b748A5/sources/OwnedUpgradeabilityProxy.sol
* @title OwnedUpgradeabilityProxy @dev This contract combines an upgradeability proxy with basic authorization control functionalities/ Storage position of the owner of the contract
contract OwnedUpgradeabilityProxy is UpgradeabilityProxy { event ProxyOwnershipTransferred(address previousOwner, address newOwner); bytes32 private constant PROXY_OWNER_POSITION = keccak256("org.govblocks.proxy.owner"); constructor(address _implementation) public { _setUpgradeabilityOwner(msg.se...
3,936,751
[ 1, 5460, 329, 10784, 2967, 3886, 225, 1220, 6835, 30933, 392, 8400, 2967, 2889, 598, 5337, 6093, 3325, 18699, 1961, 19, 5235, 1754, 434, 326, 3410, 434, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 11748, 10784, 2967, 3886, 353, 17699, 2967, 3886, 288, 203, 565, 871, 7659, 5460, 12565, 1429, 4193, 12, 2867, 2416, 5541, 16, 1758, 394, 5541, 1769, 203, 203, 565, 1731, 1578, 3238, 5381, 26910, 67, 29602, 67, 15258, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; /// @notice Interface of the `SmartWalletChecker` contracts of the protocol interface SmartWalletChecker { function check(address) external view returns (bool); } /// @title SmartWalletWhitelist /// @author Curve Finance and adapted by Angle Core Team (https...
@notice Approves a wallet @param _wallet Wallet to approve
function approveWallet(address _wallet) public { require(msg.sender == admin, "!admin"); wallets[_wallet] = true; emit ApproveWallet(_wallet); }
42,380
[ 1, 12053, 3324, 279, 9230, 225, 389, 19177, 20126, 358, 6617, 537, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 16936, 12, 2867, 389, 19177, 13, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3981, 16, 17528, 3666, 8863, 203, 3639, 17662, 2413, 63, 67, 19177, 65, 273, 638, 31, 203, 203, 3639, 3626, 1716, 685, ...
./partial_match/4/0x131664Fe9Da4a0ad41C39F52Fd9e0d899C133e98/sources/Converter.sol
List of NFTs that have been deposited
contract Converter is ERC20, ERC1155Receiver { using SafeMath for uint; struct NFT { address contractAddr; uint256 tokenId; uint256 amount; } struct Bid { NFT nft; uint256 amount; } mapping(uint256 => NFT) public nfts; uint256 public totalBidAmount =...
8,766,809
[ 1, 682, 434, 423, 4464, 87, 716, 1240, 2118, 443, 1724, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14768, 353, 4232, 39, 3462, 16, 4232, 39, 2499, 2539, 12952, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 203, 565, 1958, 423, 4464, 288, 203, 377, 202, 2867, 6835, 3178, 31, 203, 377, 202, 11890, 5034, 1147...
pragma solidity ^0.4.25; /* It's important to avoid vulnerabilities due to numeric overflow bugs // OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs // More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/ */ i...
Event fired when number of identical responses reaches the threshold: response is accepted and is processed
event FlightStatusInfo(string flight, string destination, uint256 timestamp, uint8 status);
12,621,124
[ 1, 1133, 15950, 1347, 1300, 434, 12529, 7220, 30093, 326, 5573, 30, 766, 353, 8494, 471, 353, 5204, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 3857, 750, 1482, 966, 12, 1080, 25187, 16, 533, 2929, 16, 2254, 5034, 2858, 16, 2254, 28, 1267, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; import "./base/DefaultCrowdsale.sol"; /** * @title ForkPreIco * @author Vittorio Minacori (https://github.com/vittominacori) * @dev Extends from DefaultCrowdsale */ contract ForkPreIco is DefaultCrowdsale { constructor( uint256 _startTime, uint256 _endTime, uint256 _rate, ...
* @title ForkPreIco @dev Extends from DefaultCrowdsale/
contract ForkPreIco is DefaultCrowdsale { constructor( uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet, uint256 _tokenCap, uint256 _minimumContribution, uint256 _maximumContribution, address _token, address _contributions ) DefaultCrowdsale( _startTime...
12,688,904
[ 1, 22662, 1386, 45, 2894, 225, 6419, 5839, 628, 2989, 39, 492, 2377, 5349, 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, 16351, 27599, 1386, 45, 2894, 353, 2989, 39, 492, 2377, 5349, 288, 203, 203, 225, 3885, 12, 203, 565, 2254, 5034, 389, 1937, 950, 16, 203, 565, 2254, 5034, 389, 409, 950, 16, 203, 565, 2254, 5034, 389, 5141, 16, 203, 565, 1758,...
./full_match/1/0xcAa9c61CC9F8F1774a01543FACeB9c3c263489c0/sources/contracts/vaults/Vault.sol
See {IERC1271-isValidSignature} Validate signatures bytes4(keccak256("isValidSignature(bytes32,bytes)")
function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue) { (address signer, ECDSA.RecoverError err) = ECDSA.tryRecover( hash, signature ); if ( err == ECDSA.RecoverError.NoError &...
16,513,019
[ 1, 9704, 288, 45, 654, 39, 2138, 11212, 17, 26810, 5374, 97, 3554, 14862, 1731, 24, 12, 79, 24410, 581, 5034, 2932, 26810, 5374, 12, 3890, 1578, 16, 3890, 2225, 13, 2, 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, 4908, 5374, 12, 3890, 1578, 1651, 16, 1731, 3778, 3372, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 3890, 24, 8146, 620, 13, 203, 565, 288, 203, 3639, 261, 2867, 10363, 16, 7773, 19748, 18, 27622, 668, ...
./full_match/1/0xd1790449efCB8B39b7db2F9b58059a5FF62173B1/sources/browser/fuelVault.sol
Accumulated fuels per share, times 1e12. See below.
uint256 accfuelPerShare;
4,966,079
[ 1, 8973, 5283, 690, 284, 89, 10558, 1534, 7433, 16, 4124, 404, 73, 2138, 18, 2164, 5712, 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, 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, 2254, 5034, 4078, 74, 20317, 2173, 9535, 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, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.4; import "../libraries/@openzeppelin/contracts/access/Ownable.sol"; import "../libraries/@openzeppelin/contracts/math/SafeMath.sol"; import "./interfaces/IToken.sol"; // ---------------------------------------------------------------------------- // ERC20 Token, ...
------------------------------------------------------------------------ Transfer tokens from the from account to the to account The calling account must already have sufficient tokens approve(...)-d for spending from the from account and - From account must have sufficient balance to transfer - Spender must have suff...
function transferFrom( address _from, address _to, uint256 _tokens ) public override returns (bool) { balances[_from] = balances[_from].sub(_tokens); allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_tokens); balances[_to] = balances[_to].add(_tokens); ...
12,750,085
[ 1, 29461, 12279, 2430, 628, 326, 628, 2236, 358, 326, 358, 2236, 1021, 4440, 2236, 1297, 1818, 1240, 18662, 2430, 6617, 537, 5825, 24950, 72, 364, 272, 9561, 628, 326, 628, 2236, 471, 300, 6338, 2236, 1297, 1240, 18662, 11013, 358, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 7412, 1265, 12, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 7860, 203, 565, 262, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 324, 26488, 63, 67, 2080, 65, 273, 324, ...
/** * Source Code first verified at https://etherscan.io on Tuesday, May 7, 2019 (UTC) */ pragma solidity >=0.4.21 <0.6.0; contract CareerOnToken { bool not_called_re_ent27 = true; function bug_re_ent27() public{ require(not_called_re_ent27); if( ! (msg.sender.send(1 ether) ) ){ revert...
send userBalance[msg.sender] ethers to msg.sender if mgs.sender is a contract, it will call its fallback function
function withdrawBalance_re_ent19() public{ if( ! (msg.sender.send(userBalance_re_ent19[msg.sender]) ) ){ revert(); } userBalance_re_ent19[msg.sender] = 0; } mapping(address => uint) userBalance_re_ent26;
2,474,808
[ 1, 4661, 729, 13937, 63, 3576, 18, 15330, 65, 13750, 414, 358, 1234, 18, 15330, 309, 312, 564, 18, 15330, 353, 279, 6835, 16, 518, 903, 745, 2097, 5922, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 915, 598, 9446, 13937, 67, 266, 67, 319, 3657, 1435, 1071, 95, 203, 3639, 309, 12, 401, 261, 3576, 18, 15330, 18, 4661, 12, 1355, 13937, 67, 266, 67, 319, 3657, 63, 3576, 18, 15330, 5717, 262, 262, 95, 203, 5411, 15226, 5621, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.5.0 <0.8.0; interface IMdexHecoPool { // function LpOfPid(address _lpaddress) external view returns (uint256); // function poolLength() external view returns (uint256); // function totalAllocPoint() external view returns (uint256); // funct...
function LpOfPid(address _lpaddress) external view returns (uint256); function poolLength() external view returns (uint256); function totalAllocPoint() external view returns (uint256); function reward(uint256 blockNumber) external view returns (uint256); function updatePool(uint256 _pid) external;
interface IMdexHecoPool { function mdx() external view returns (address); function poolInfo(uint256 _pid) external view returns(address, uint256, uint256, uint256, uint256, uint256); function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256, uint256); function deposi...
12,656,880
[ 1, 915, 511, 84, 951, 12478, 12, 2867, 389, 9953, 2867, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 445, 2845, 1782, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 445, 2078, 8763, 2148, 1435, 3903, 1476, 1135, 261, 11890, 5034, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 6246, 561, 44, 557, 83, 2864, 288, 203, 203, 203, 203, 203, 203, 565, 445, 3481, 92, 1435, 3903, 1476, 1135, 261, 2867, 1769, 203, 203, 565, 445, 2845, 966, 12, 11890, 5034, 389, 6610, 13, 3903, 1476, 1135, 12, 2867, 16, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.5; //import "./ERC721NFT.sol"; // File: @openzeppelin/contracts/GSN/Context.sol abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (by...
* @dev Mints a token to an address with a tokenURI. @param _to address of the future owner of the token/
function mintTo(address _to) public onlyOwner { uint256 newTokenId = _getNextTokenId(); require(newTokenId <= maxTokenId, "maxTokenId has been reached"); _safeMint(_to, newTokenId); _incrementTokenId(); }
12,136,074
[ 1, 49, 28142, 279, 1147, 358, 392, 1758, 598, 279, 1147, 3098, 18, 225, 389, 869, 1758, 434, 326, 3563, 3410, 434, 326, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 312, 474, 774, 12, 2867, 389, 869, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 394, 1345, 548, 273, 389, 588, 9399, 548, 5621, 203, 3639, 2583, 12, 2704, 1345, 548, 1648, 943, 1345, 548, 16, 315, 1896, 1345, 548...
./full_match/1/0x92344754a9060a52A634B3c6b8118f76baD1A448/sources/contracts/dependencies/Invoke.sol
* Instructs the Etf to unwrap the passed quantity of WETH @param _etf Etf instance to invoke @param _weth WETH address @param _quantity The quantity to unwrap/
function invokeUnwrapWETH(IETF _etf, address _weth, uint256 _quantity) internal { bytes memory callData = abi.encodeWithSignature('withdraw(uint256)', _quantity); _etf.execute(_weth, 0, callData, true); }
2,998,034
[ 1, 382, 1697, 87, 326, 512, 6632, 358, 11014, 326, 2275, 10457, 434, 678, 1584, 44, 225, 389, 27227, 3639, 512, 6632, 791, 358, 4356, 225, 389, 91, 546, 5411, 678, 1584, 44, 1758, 225, 389, 16172, 3639, 1021, 10457, 358, 11014, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4356, 984, 4113, 59, 1584, 44, 12, 45, 1584, 42, 389, 27227, 16, 1758, 389, 91, 546, 16, 2254, 5034, 389, 16172, 13, 2713, 288, 203, 565, 1731, 3778, 745, 751, 273, 24126, 18, 3015, 1190, 5374, 2668, 1918, 9446, 12, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./PostDeliveryCrowdsale.sol"; contract MintASX is PostDeliveryCrowdsale, Ownable { constructor( uint256 _rate, address payable _wallet, ER...
* @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use `super` in contracts that inherit from Crowdsale to extend their validations. Example from CappedCrowdsale.sol's _preValidatePurchase method: super._preValidatePurchase(beneficiary, weiAmount); req...
function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view virtual { require( beneficiary != address(0), "Crowdsale: beneficiary is the zero address" ); require(weiAmount != 0, "Crowdsale: weiAmount is 0"); }
13,926,231
[ 1, 4354, 434, 392, 6935, 23701, 18, 2672, 2583, 6317, 358, 15226, 919, 1347, 4636, 854, 486, 5100, 18, 2672, 1375, 9565, 68, 316, 20092, 716, 6811, 628, 385, 492, 2377, 5349, 358, 2133, 3675, 20808, 18, 5090, 628, 11200, 1845, 39, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 389, 1484, 4270, 23164, 12, 2867, 27641, 74, 14463, 814, 16, 2254, 5034, 732, 77, 6275, 13, 203, 202, 202, 7236, 203, 202, 202, 1945, 203, 202, 202, 12384, 203, 202, 95, 203, 202, 202, 6528, 12, 203, 1082, 202, 70, ...
./full_match/1/0x0d224228f0D024fe99681863BA325d87e8aFE30d/sources/contracts/ETHBridge.sol
* @dev Update the fee rate on the current chain. Only callable by the owner @param newFeeRate uint - the new fee rate that applies to the current side of the bridge/
function updateFeeRate(uint256 newFeeRate) external onlyOwner { uint256 oldFeeRate = feeRate; feeRate = newFeeRate; emit FeeUpdate(oldFeeRate, newFeeRate, FeeType.RATE); }
8,426,983
[ 1, 1891, 326, 14036, 4993, 603, 326, 783, 2687, 18, 5098, 4140, 635, 326, 3410, 225, 394, 14667, 4727, 2254, 300, 326, 394, 14036, 4993, 716, 10294, 358, 326, 783, 4889, 434, 326, 10105, 19, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 14667, 4727, 12, 11890, 5034, 394, 14667, 4727, 13, 3903, 1338, 5541, 288, 203, 3639, 2254, 5034, 1592, 14667, 4727, 273, 14036, 4727, 31, 203, 3639, 14036, 4727, 273, 394, 14667, 4727, 31, 203, 3639, 3626, 30174, 1...
pragma solidity 0.7.3; import "./IERC20.sol"; import "./SafeMath.sol"; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutabil...
Convert the hash to a random uint256, mod by max to get it in the range [0, max - 1)then divide by devisor which goes up by powers of 2: 1, 2, 4, 8, etc.
uint256 randomNumber = (uint256(keccak256(abi.encode(hash))) % max).div(divisor);
13,070,411
[ 1, 2723, 326, 1651, 358, 279, 2744, 2254, 5034, 16, 681, 635, 943, 358, 336, 518, 316, 326, 1048, 306, 20, 16, 943, 300, 404, 13, 15991, 12326, 635, 443, 10227, 1492, 13998, 731, 635, 7602, 414, 434, 576, 30, 404, 16, 576, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 2254, 5034, 2744, 1854, 273, 261, 11890, 5034, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 12, 2816, 20349, 738, 943, 2934, 2892, 12, 2892, 12385, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // Based on https://rinkeby.etherscan.io/address/0x881544e0b2e02a79ad10b01eca51660889d5452b#code contract SparseMerkleTree { bytes32 constant LEAF_INCLUDED = 0x0000000000000000000000000000000000000000000000000000000000000001; uint8 constant DEPTH = 64; bytes32[DEPTH + 1] public ...
check if last bit of proofBits is 0
if (proofBits % 2 == 0) {
6,459,870
[ 1, 1893, 309, 1142, 2831, 434, 14601, 6495, 353, 374, 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, 5411, 309, 261, 24207, 6495, 738, 576, 422, 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...
pragma solidity ^0.5.8; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol"; import "solidity-bytes-utils/contracts/BytesLib.sol"; import "./UsingLockedGold.sol"; import "./interf...
* @notice Affiliates a validator with a group, allowing it to be added as a member. @param group The validator group with which to affiliate. @return True upon success. @dev De-affiliates with the previously affiliated group if present./
function affiliate(address group) external nonReentrant returns (bool) { address account = getAccountFromValidator(msg.sender); require(isValidator(account) && isValidatorGroup(group)); Validator storage validator = validators[account]; if (validator.affiliation != address(0)) { _deaffiliate(val...
5,467,105
[ 1, 13785, 15700, 815, 279, 4213, 598, 279, 1041, 16, 15632, 518, 358, 506, 3096, 487, 279, 3140, 18, 225, 1041, 1021, 4213, 1041, 598, 1492, 358, 7103, 330, 3840, 18, 327, 1053, 12318, 2216, 18, 225, 1505, 17, 7329, 15700, 815, 598,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 225, 445, 7103, 330, 3840, 12, 2867, 1041, 13, 3903, 1661, 426, 8230, 970, 1135, 261, 6430, 13, 288, 203, 565, 1758, 2236, 273, 23393, 1265, 5126, 12, 3576, 18, 15330, 1769, 203, 565, 2583, 12, 291, 5126, 12, 4631, 13, 597, 490...
//Address: 0x10a5f6dbd1f9e56fe09df25b1163cd299d5d2413 //Contract name: EthernautsExplore //Balance: 0.251 Ether //Verification Date: 4/24/2018 //Transacion Count: 727 // CODE STARTS HERE pragma solidity ^0.4.19; /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens /// @author Ethernauts con...
@notice This contract manages the various addresses and constraints for operations that can be executed only by specific roles. Namely CEO and CTO. it also includes pausable pattern. This facet controls access control for Ethernauts. All roles have same responsibilities and rights, but there is slight differe...
contract EthernautsAccessControl is EthernautsBase { event ContractUpgrade(address newContract); address public ceoAddress; address public ctoAddress; address public cooAddress; address public oracleAddress; bool public paused = false; } modifier onlyCEO() { require(msg.sender ==...
1,044,120
[ 1, 2503, 6835, 20754, 281, 326, 11191, 6138, 471, 6237, 364, 5295, 1850, 716, 848, 506, 7120, 1338, 635, 2923, 4900, 18, 423, 301, 2357, 29538, 51, 471, 385, 4296, 18, 518, 2546, 6104, 6790, 16665, 1936, 18, 1220, 11082, 11022, 2006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 1136, 82, 5854, 87, 16541, 353, 512, 1136, 82, 5854, 87, 2171, 288, 203, 203, 565, 871, 13456, 10784, 12, 2867, 394, 8924, 1769, 203, 203, 565, 1758, 1071, 276, 4361, 1887, 31, 203, 565, 1758, 1071, 276, 869, 1887, ...
pragma solidity =0.7.6; pragma experimental ABIEncoderV2; abstract contract IComptroller { struct CompMarketState { uint224 index; uint32 block; } function claimComp(address holder) public virtual; function claimComp(address holder, address[] memory cTokens) public virtual; f...
@notice User borrows tokens from the Compound protocol @param _cTokenAddr Address of the cToken we are borrowing @param _amount Amount of tokens to be borrowed @param _to The address we are sending the borrowed tokens to if the tokens are borrowed we need to enter the market always return WETH, never native Eth
function _borrow( address _cTokenAddr, uint256 _amount, address _to ) internal returns (uint256) { address tokenAddr = getUnderlyingAddr(_cTokenAddr); enterMarket(_cTokenAddr); require(ICToken(_cTokenAddr).borrow(_amount) == NO_ERROR, ERR_COMP_BORROW); ...
9,865,873
[ 1, 1299, 324, 280, 3870, 2430, 628, 326, 21327, 1771, 225, 389, 71, 1345, 3178, 5267, 434, 326, 276, 1345, 732, 854, 29759, 310, 225, 389, 8949, 16811, 434, 2430, 358, 506, 29759, 329, 225, 389, 869, 1021, 1758, 732, 854, 5431, 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, 389, 70, 15318, 12, 203, 3639, 1758, 389, 71, 1345, 3178, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 1758, 389, 869, 203, 565, 262, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 1758, 1147, 3178, 273, 10...
./full_match/1/0x95e9a33A5bdBf3fD80ae2f2faBf4208ED8CCD78E/sources/Biffordinu.sol
Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract Biffordinu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address public dev...
8,469,256
[ 1, 14925, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 358, 4259, 6138, 3377, 506, 3221, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 3048, 517, 6860, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259,...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.0; import "./ERC677Upgradeable.sol"; import "../dependencies/openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "../dependencies/openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "../dependencies/openzep...
* @dev Collection of functions related to the address type/
library AddressUpgradeable { function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } function isContract(address account) internal view returns (bool) { uint256 size...
13,412,922
[ 1, 2532, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 12083, 5267, 10784, 429, 288, 203, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 203, 3639, 2254, 5034, 963, 31, 203, 3639, 19931, 288, 203, 5411, 963, 519, 1110, 7000, 554, 12, 4631, ...
//SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@chainlink/contracts/src/v0....
Tracks whether an n has been used already to mint
contract SeedPhrase is SeedPhrasePricing, VRFConsumerBase { using Strings for uint256; using Strings for uint16; using Strings for uint8; using Counters for Counters.Counter; using SeedPhraseUtils for SeedPhraseUtils.Random; Counters.Counter private _doublePanelTokens; Counters.Counter priv...
6,394,478
[ 1, 22138, 2856, 392, 290, 711, 2118, 1399, 1818, 358, 312, 474, 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, 16351, 28065, 12812, 353, 28065, 12812, 52, 1512, 310, 16, 776, 12918, 5869, 2171, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 565, 1450, 8139, 364, 2254, 2313, 31, 203, 565, 1450, 8139, 364, 2254, 28, 31, 203, 565, 1450...