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/0x05099C7CAeD7A1aF46F946DC79b618285047D991/sources/contracts/Dopamine.sol | remove limits after token is stable | function removeLimits() external onlyOwner {
limitsActive = false;
}
| 9,737,928 | [
1,
4479,
8181,
1839,
1147,
353,
14114,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
12768,
1435,
3903,
1338,
5541,
288,
203,
3639,
8181,
3896,
273,
629,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Board.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
/// @dev for tests only
contract BoardGameStrategistTest {
/// @dev structure used to store pawn's attribute
struct PawnInfo {
... | @dev for tests only | contract BoardGameStrategistTest {
pragma solidity 0.8.10;
struct PawnInfo {
uint256 random;
uint8 position;
bool isOnBoard;
bool isPropertyBought;
bool isRentPaid;
bool isRoundCompleted;
bool isInJail;
bool isChanceCard;
bool isCommunityCard;
}
struct BoardInfo {
uint8 nbOfLands;
uint8 rarity... | 5,526,119 | [
1,
1884,
7434,
1338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
17980,
1060,
12496,
1585,
1287,
376,
4709,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
2163,
31,
203,
202,
1697,
453,
9533,
966,
288,
203,
202,
202,
11890,
5034,
2744,
31,
203,
202,
202,
11890,
28,
1754,
31,
203,
2... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
// Inheritance
import "./Owned.sol";
import "./MixinResolver.sol";
import "./MixinSystemSettings.sol";
import "./interfaces/ISynthetixBridgeToBase.sol";
// Internal references
import "./interfaces/ISynthetix.sol";
import "./interfaces/IRewardEscrowV2.sol";
im... | invoked by user on L2 instruct L2 Synthetix to burn this supply create message payload for L1 relay the message to Bridge on L1 via L2 Messenger | function initiateWithdrawal(uint amount) external {
require(synthetix().transferableSynthetix(msg.sender) >= amount, "Not enough transferable SNX");
synthetix().burnSecondary(msg.sender, amount);
ISynthetixBridgeToOptimism bridgeToOptimism;
bytes memory messageData = abi.encodeWith... | 12,621,241 | [
1,
5768,
14276,
635,
729,
603,
511,
22,
316,
1697,
511,
22,
16091,
451,
278,
697,
358,
18305,
333,
14467,
752,
883,
2385,
364,
511,
21,
18874,
326,
883,
358,
24219,
603,
511,
21,
3970,
511,
22,
490,
18912,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18711,
1190,
9446,
287,
12,
11890,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
11982,
451,
278,
697,
7675,
13866,
429,
10503,
451,
278,
697,
12,
3576,
18,
15330,
13,
1545,
3844,
16,
315,
1248,
7304,
7412,
429,
14204,
60,
... |
pragma solidity ^0.4.21;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(a <= c);
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(a >= b);
return a - b;
}
function mul(uint256 a, uint256 b) inter... | AuctusBountyDistribution SC
| assert(token.transfer(0x389E93aC36Dd8c8E04FB1952B37c4aa4b320b6FF, bounty, empty)); | 1,092,761 | [
1,
37,
853,
407,
38,
592,
93,
9003,
8795,
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,
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,
202,
202,
11231,
12,
2316,
18,
13866,
12,
20,
92,
23,
6675,
41,
11180,
69,
39,
5718,
40,
72,
28,
71,
28,
41,
3028,
22201,
3657,
9401,
38,
6418,
71,
24,
7598,
24,
70,
31273,
70,
26,
2246,
16,
324,
592,
93,
16,
1008,
10019,
... |
./full_match/3/0x11EFec7acaAC5D0CEcc9C16bf2508e37047E6d2F/sources/contracts/TestUniswapOptimal.sol | Ropsten address private constant USDC = 0x07865c6e87b9f70255377e024ace6630c1eaa37f address private constant DAI = 0xad6d458402f60fd3bd25163575031acdce07538d address private constant UNI = 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 import "@uniswap/lib/contracts/libraries/Babylonian.sol"; | contract TestUniswapOptimal {
using SafeMath for uint;
address private constant FACTORY = 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
address private constant ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
address private constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
address private cons... | 8,200,494 | [
1,
54,
556,
334,
275,
282,
1758,
3238,
5381,
11836,
5528,
273,
374,
92,
8642,
5292,
25,
71,
26,
73,
11035,
70,
29,
74,
27,
3103,
2539,
23,
4700,
73,
3103,
24,
623,
26,
4449,
20,
71,
21,
73,
7598,
6418,
74,
282,
1758,
3238,
538... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7766,
984,
291,
91,
438,
6179,
2840,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
225,
1758,
3238,
5381,
26724,
3964,
273,
374,
92,
25,
39,
8148,
70,
41,
73,
27,
1611,
10241,
28,
3461,
69,
22,
38,
26,
69... |
pragma solidity ^0.4.13;
contract SafeMath {
function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
uint256 z = x + y;
assert((z >= x) && (z >= y));
return z;
}
function safeSubtract(uint256 x, uint256 y) internal returns(uint256) {
assert(x >= y);
... | bonuses are not implied!
| return 6000; | 2,485,359 | [
1,
18688,
6117,
854,
486,
23547,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
1666,
3784,
31,
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,
-100,... |
pragma solidity ^0.6.0;
// SPDX-License-Identifier: UNLICENSED
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
asser... | prevent transfer to 0x0, use burn instead | function _transfer(address to, uint256 tokens) internal returns(bool){
require(address(to) != address(0));
require(balances[address(this)] >= tokens );
require(balances[to] + tokens >= balances[to]);
balances[address(this)] = balances[address(this)].sub(tokens);
... | 521,516 | [
1,
29150,
7412,
358,
374,
92,
20,
16,
999,
18305,
3560,
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,
389,
13866,
12,
2867,
358,
16,
2254,
5034,
2430,
13,
2713,
1135,
12,
6430,
15329,
203,
3639,
2583,
12,
2867,
12,
869,
13,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
12,
70,
26488,
63,
2867,
12,
2211,
25887,
1545,
2430... |
/**
*Submitted for verification at Etherscan.io on 2022-04-19
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal vi... | set as marketing wallet
| marketingWallet = 0x07091C5e63f04D38EcB821aecee578794Ca2FC5C; | 10,644,128 | [
1,
542,
487,
13667,
310,
9230,
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,
3639,
13667,
310,
16936,
273,
374,
92,
8642,
5908,
21,
39,
25,
73,
4449,
74,
3028,
40,
7414,
23057,
38,
28,
5340,
8906,
311,
73,
25,
8285,
7235,
24,
23508,
22,
4488,
25,
39,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0xd55660D297eFAE59522f3d4b0d621510d7A748A5/sources/contracts/LegacyERC20v1.sol | * @dev Returns the name of the token./ | function name() public view virtual override returns (string memory) {
return _name;
}
| 853,818 | [
1,
1356,
326,
508,
434,
326,
1147,
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,
508,
1435,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
389,
529,
31,
203,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.4.24;
/**
* @author James Spivey <spivey@zentostudios.com>
* @title Migration
* @dev
* This is the standard migration contract from Truffle.
*/
contract Migrations {
address public owner;
uint public last_completed_migration;
/** @dev Owner of this contract is who first calls it */
... | * @dev Ensures a reservation exists in map */ | modifier restricted() {
if (msg.sender == owner) _;
}
| 1,033,059 | [
1,
19869,
279,
18438,
1704,
316,
852,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
15693,
1435,
288,
203,
565,
309,
261,
3576,
18,
15330,
422,
3410,
13,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.5.11;
/** @title A contract for issuing, redeeming and transfering SilaUSD StableCoin
*
* @author www.silamoney.com
* Email: contact@silamoney.com
*
*/
/**Run
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath{
/**
* @dev Subtracts two n... | maps for betalisted and blacklisted addresses events for betalist and blacklist variable to check if betalist is required when calling several functions on smart contract constructor | contract Betalist is Authorizable {
mapping(address => bool) betalisted;
mapping(address => bool) blacklisted;
event BetalistedAddress (address indexed _betalisted);
event BlacklistedAddress (address indexed _blacklisted);
event RemovedAddressFromBlacklist(address indexed _toRemoveBlacklist);
... | 988,491 | [
1,
10711,
364,
2701,
287,
25444,
471,
25350,
6138,
2641,
364,
2701,
287,
376,
471,
11709,
2190,
358,
866,
309,
2701,
287,
376,
353,
1931,
1347,
4440,
11392,
4186,
603,
13706,
6835,
3885,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
6835,
605,
278,
287,
376,
353,
3123,
5331,
429,
288,
203,
203,
565,
2874,
12,
2867,
516,
1426,
13,
2701,
287,
25444,
31,
203,
565,
2874,
12,
2867,
516,
1426,
13,
25350,
31,
203,
203,
565,
871,
605,
278,
287,
25444,
1887,
261,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-31
*/
/**
*Submitted for verification at Etherscan.io on 2020-08-25
*/
pragma solidity >= 0.5.0 < 0.7.0;
/// @title IProxy - Helper interface to access masterCopy of the Proxy on-chain
/// @author Richard Meissner - <richard@gnosis.io>
interface IProxy {
... | @dev Allows to create new proxy contact and execute a message call to the new proxy within one transaction. @param _mastercopy Address of master copy. @param initializer Payload for message call sent to new proxy contract. @param saltNonce Nonce that will be used to generate the salt to calculate the address of the ne... | function createProxyWithNonce(address _mastercopy, bytes memory initializer, uint256 saltNonce)
public
returns (GnosisSafeProxy proxy)
{
proxy = deployProxyWithNonce(_mastercopy, initializer, saltNonce);
if (initializer.length > 0)
assembly {
}
emi... | 330,429 | [
1,
19132,
358,
752,
394,
2889,
5388,
471,
1836,
279,
883,
745,
358,
326,
394,
2889,
3470,
1245,
2492,
18,
225,
389,
7525,
3530,
5267,
434,
4171,
1610,
18,
225,
12562,
11320,
364,
883,
745,
3271,
358,
394,
2889,
6835,
18,
225,
4286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
752,
3886,
1190,
13611,
12,
2867,
389,
7525,
3530,
16,
1731,
3778,
12562,
16,
2254,
5034,
4286,
13611,
13,
203,
3639,
1071,
203,
3639,
1135,
261,
43,
18050,
291,
9890,
3886,
2889,
13,
203,
565,
288,
203,
3639,
2889,
273... |
pragma solidity ^0.4.20;
contract CDP {
/* DECLARING VARIABLES */
address public owner;
/* MAPPING */
/* EVENTS */
event logDeposit (uint id);
/* MODIFIERS */
// validate the CDP id exists
modifier CDPExists(uint _id) { require( oraclize() ) }
/* STRUCTS */
/* CON... | STRUCTS */ CONSTRUCTUR */ | cunstructor() public {
owner = msg.sender;
}
| 12,672,406 | [
1,
13915,
55,
342,
3492,
13915,
1099,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
276,
318,
2732,
1435,
1071,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-12-15
*/
pragma solidity ^0.5.0;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev Give an account access to this role.
*/
function add(Role... | * @dev Executed when a purchase has been validated and is ready to be executed. Doesn't necessarily emit/send tokens. @param beneficiary Address receiving the tokens @param tokenAmount Number of tokens to be purchased/ | function _processPurchase(address beneficiary, uint256 tokenAmount) internal {
_deliverTokens(beneficiary, tokenAmount);
}
| 10,977,051 | [
1,
23839,
1347,
279,
23701,
711,
2118,
10266,
471,
353,
5695,
358,
506,
7120,
18,
9637,
82,
1404,
23848,
3626,
19,
4661,
2430,
18,
225,
27641,
74,
14463,
814,
5267,
15847,
326,
2430,
225,
1147,
6275,
3588,
434,
2430,
358,
506,
5405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
202,
915,
389,
2567,
23164,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
5034,
1147,
6275,
13,
2713,
288,
203,
202,
202,
67,
26672,
5157,
12,
70,
4009,
74,
14463,
814,
16,
1147,
6275,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
/// @title KtonVoter
/// @dev Voting and support specific proposal validator by deposit KTON
/// Vote will be cancel after KTON get withdrawd
/// 1 KTON means one vote
contract KtonVoter {
address public KTON;
struct Vot... | TODO: update sortedIndex | function vote(address _candidate, uint _amount) public {
require(cadidateItems[_candidate].isRegistered);
require(ERC20(KTON).transferFrom(msg.sender, address(this), _amount));
voterItems[msg.sender].votes[_candidate] += _amount;
voterItems[msg.sender].balance += _amount;
c... | 912,350 | [
1,
6241,
30,
1089,
3115,
1016,
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,
445,
12501,
12,
2867,
389,
19188,
16,
2254,
389,
8949,
13,
1071,
288,
203,
3639,
2583,
12,
71,
361,
350,
340,
3126,
63,
67,
19188,
8009,
291,
10868,
1769,
203,
3639,
2583,
12,
654,
39,
3462,
12,
47,
56,
673,
2934,
13866,
... |
./full_match/11155111/0x5461D48556B94e7fdD8ED5A8f865Ba4F1A3b5454/sources/contracts/upgrades/GraphProxy.sol | * @notice Admin function for new implementation to accept its role as implementation./ | function acceptUpgrade() external override ifAdminOrPendingImpl {
_acceptUpgrade();
}
| 3,828,407 | [
1,
4446,
445,
364,
394,
4471,
358,
2791,
2097,
2478,
487,
4471,
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... | [
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,
2791,
10784,
1435,
3903,
3849,
309,
4446,
1162,
8579,
2828,
288,
203,
3639,
389,
9436,
10784,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IGovernance.sol";
import "./lib/AccessControlEnumerable.sol";
import "./lib/BytesLib.sol";
/**
* @title DistributorGovernance
* @dev Add or remove block producers from the network and set rewards collectors
*/
contract DistributorGovernan... | * @notice Remove batch of block producers from network @dev Only governance can call @param producers List of block producers/ | function removeBatch(address[] memory producers) external onlyGov {
for(uint i; i< producers.length; i++) {
require(blockProducer[producers[i]] == true, "not block producer");
blockProducer[producers[i]] = false;
emit BlockProducerRemoved(producers[i]);
}
}
| 15,842,689 | [
1,
3288,
2581,
434,
1203,
4810,
13062,
628,
2483,
225,
5098,
314,
1643,
82,
1359,
848,
745,
225,
4810,
13062,
987,
434,
1203,
4810,
13062,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
4497,
12,
2867,
8526,
3778,
4810,
13062,
13,
3903,
1338,
43,
1527,
288,
203,
3639,
364,
12,
11890,
277,
31,
277,
32,
4810,
13062,
18,
2469,
31,
277,
27245,
288,
203,
5411,
2583,
12,
2629,
12140,
63,
11776,
13062,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;
import {IDepositZap} from "../../interfaces/curve/IDepositZap.sol";
import {IERC20Detailed} from "../../interfaces/IERC20Detailed.sol";
import {ICurveDeposit_4token} from "../../interfaces/curve/ICurveDeposit_4token.sol";
import {ConvexFactoryMetaPoolStrat... | @return returns an APR estimation. @dev values returned by this method should be taken as an imprecise estimation. For client integration something more complex should be done to have a more precise estimate (eg. computing APR using historical APR data). Also it does not take into account compounding (A... | function getApr() external view override returns (uint256) {
return latestPriceIncrease * (BLOCKS_PER_YEAR / latestHarvestInterval) * 100;
}
| 532,862 | [
1,
2463,
1135,
392,
432,
8025,
29284,
18,
225,
924,
2106,
635,
333,
707,
1410,
506,
9830,
487,
392,
709,
4036,
784,
29284,
18,
1377,
2457,
1004,
12040,
5943,
1898,
7233,
1410,
506,
2731,
358,
1240,
279,
1898,
31293,
1377,
11108,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4506,
683,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
4891,
5147,
382,
11908,
380,
261,
11403,
55,
67,
3194,
67,
15137,
342,
4891,
44,
297,
26923,
4006,
13,
380,
2130,
31,
203,
565,
289,
... |
pragma solidity ^0.5.0;
contract CogScience_project {
int public max_score;
int public min_score;
uint public totalNum_transactions; // it's used as transaction's ID too.
uint public totalNum_proposals;
uint public lecture_tokens; // it keeps a fixed number of tokens.
uint public current_l... | recall only active offers should be desplayed on the UI.
| proposals[offer_ID_].active = false; | 12,760,862 | [
1,
266,
1991,
1338,
2695,
28641,
1410,
506,
2832,
1601,
329,
603,
326,
6484,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
450,
22536,
63,
23322,
67,
734,
67,
8009,
3535,
273,
629,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/84531/0x734E02893A75B1afD3984634888fdC8411ACd877/sources/contracts/3_Ballot.sol | @title Entry point for an AAVE v1 -> v2 position migration | contract AaveMigrationTaker is ProxyPermission {
uint16 public constant AAVE_REFERRAL_CODE = 64;
address public constant AAVE_V1_LENDING_POOL_ADDRESSES =
0x24a42fD28C976A61Df5D00D0599C34c4f90748c8;
address public constant AAVE_V1_SUBSCRIPTION_ADDR = 0xe08ff7A2BADb634F0b581E675E6B3e583De086FC;
a... | 11,500,350 | [
1,
1622,
1634,
364,
392,
432,
26714,
331,
21,
317,
331,
22,
1754,
6333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
836,
10224,
56,
6388,
353,
7659,
5041,
288,
203,
565,
2254,
2313,
1071,
5381,
432,
26714,
67,
30269,
54,
1013,
67,
5572,
273,
5178,
31,
203,
203,
565,
1758,
1071,
5381,
432,
26714,
67,
58,
21,
67,
900,
2908,
1360,
6... |
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./OnlyCore.sol";
import "./lib/dYdX/TokenProxy.sol";
import "./lib/dYdX/TokenInteract.sol";
contract Escrow is OnlyCore {
using SafeMath for uint256;
Toke... | * Escrows quantities specified by bid. Only callable by the fund contract. @param tokens Addresses of tokens @param from Bidder address to transfer from @param quantities Quantities for one creation unit @param totalUnits Total number of creation units/ | function escrowBid(
address[] memory tokens,
address from,
int256[] memory quantities,
uint256 totalUnits
)
public
onlyCore
{
for (uint256 i = 0; i < tokens.length; i++) {
if (quantities[i] > 0) {
uint256 amount = uint256(quantities[i]).mul(totalUnits);
tokenProxy... | 1,081,998 | [
1,
6412,
3870,
10251,
1961,
1269,
635,
9949,
18,
5098,
4140,
635,
326,
284,
1074,
6835,
18,
225,
2430,
23443,
434,
2430,
225,
628,
605,
350,
765,
1758,
358,
7412,
628,
225,
10251,
1961,
4783,
970,
1961,
364,
1245,
6710,
2836,
225,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2904,
492,
17763,
12,
203,
565,
1758,
8526,
3778,
2430,
16,
203,
565,
1758,
628,
16,
203,
565,
509,
5034,
8526,
3778,
10251,
1961,
16,
203,
565,
2254,
5034,
2078,
7537,
203,
225,
262,
203,
565,
1071,
203,
565,
1338,
4... |
pragma solidity ^ 0.4 .16;
/* 创建一个父类,账户管理员 */
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
/* 修改标志 */
modifier onlyOwner {
require(msg.sender == owner);
_;
}
/* 修改管理员账户, onlyOwner代表只能是用户管理员来修改 */
function transferOwnership(address newOwner) onlyOwner public {
o... | Check if the targeted balance is enough
| require(balanceOf[_from] >= _value); | 360,657 | [
1,
1564,
309,
326,
20715,
11013,
353,
7304,
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,
202,
202,
6528,
12,
12296,
951,
63,
67,
2080,
65,
1545,
389,
1132,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "./StrategySlot.sol";
import "../../../interfaces/bifi/IMarketManager.sol";
import "../../../interfaces/bifi/IFlashloanReceiver.sol";
import "../../../interfaces/bifi/IManagerFlashloan.sol";
import "../../../int... | * @dev Deposit action to BiFi @param reserve The address of token @param tokenHandlerAddr The address of BiFi's tokenHandler contract @param amount The amount of deposit/ | function _deposit(address reserve, address tokenHandlerAddr, uint256 amount) internal {
IProxy proxy = IProxy(tokenHandlerAddr);
if (reserve == ETH_ADDRESS) {
IERC20 token = IERC20(reserve);
token.safeApprove(tokenHandlerAddr, amount);
proxy.deposit(amount, false);
}
}
| 12,627,480 | [
1,
758,
1724,
1301,
358,
16682,
42,
77,
225,
20501,
1021,
1758,
434,
1147,
225,
1147,
1503,
3178,
1021,
1758,
434,
16682,
42,
77,
1807,
1147,
1503,
6835,
225,
3844,
1021,
3844,
434,
443,
1724,
19,
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,
0,
0,
0,
0,
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,
323,
1724,
12,
2867,
20501,
16,
1758,
1147,
1503,
3178,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
565,
467,
3886,
2889,
273,
467,
3886,
12,
2316,
1503,
3178,
1769,
203,
203,
565,
309,
261,
455,
6527,
422,
512,
24... |
./full_match/1/0xF456899bA5c2738778BC88e10d4ae379F439A0DA/sources/contracts/WAGMI/WagmiFlyer.sol | * @dev owner can convert flyer to main contract's NFT/ | function flyerConversion(address owner, uint256 tokenId) external {
require(_msgSender() == mainContractAddress, "Only main contract can do this.");
require(owner == ownerOf(tokenId), "Target must own token.");
_burn(tokenId);
emit Conversion(owner, tokenId);
}
| 16,545,477 | [
1,
8443,
848,
1765,
21434,
264,
358,
2774,
6835,
1807,
423,
4464,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21434,
264,
6814,
12,
2867,
3410,
16,
2254,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
2583,
24899,
3576,
12021,
1435,
422,
2774,
8924,
1887,
16,
315,
3386,
2774,
6835,
848,
741,
333,
1199,
1769,
203,
3639,
2583,
12,
84... |
pragma solidity 0.8.13;
import "./interfaces/IFactory.sol";
import "./interfaces/IBDeployer.sol";
import "./interfaces/IBorrowable.sol";
import "./interfaces/ICDeployer.sol";
import "./interfaces/ICollateral.sol";
import "./interfaces/IERC20.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/ISimpleU... | TODO: Inherit IFactory. | contract Factory {
address public admin;
address public pendingAdmin;
address public reservesAdmin;
address public reservesPendingAdmin;
address public reservesManager;
struct LendingPool {
bool initialized;
uint24 lendingPoolId;
address collateral;
address borrowable0;
address borrowable1;
}
funct... | 945,950 | [
1,
6241,
30,
25953,
467,
1733,
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,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7822,
288,
203,
202,
2867,
1071,
3981,
31,
203,
202,
2867,
1071,
4634,
4446,
31,
203,
202,
2867,
1071,
400,
264,
3324,
4446,
31,
203,
202,
2867,
1071,
400,
264,
3324,
8579,
4446,
31,
203,
202,
2867,
1071,
400,
264,
3324,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import {BFacetOwner} from "./base/BFacetOwner.sol";
import {LibConcurrentCanExec} from "../libraries/LibConcurrentCanExec.sol";
contract ConcurrentCanExecFacet is BFacetOwner {
function setSlotLength(uint256 _slotLength) external onlyOwner {
LibConcur... | Custom due to incorrect string casting (non UTF-8 formatted) | import {GelatoBytes} from "../../../../lib/GelatoBytes.sol";
| 51,212 | [
1,
3802,
6541,
358,
11332,
533,
27660,
261,
5836,
6380,
17,
28,
4955,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
288,
43,
292,
31093,
2160,
97,
628,
315,
16644,
16644,
2941,
19,
43,
292,
31093,
2160,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.5.4;
import './ZetherVerifier.sol';
import './BurnVerifier.sol';
import './CashToken.sol';
contract ZSC {
CashToken coin;
ZetherVerifier zetherverifier;
BurnVerifier burnverifier;
uint256 public epochLength; // now in milliseconds.
uint256 bTotal = 0; // could use erc20.balanceO... | can block.timestamp be "gamed"?
| uint256 e = block.timestamp / 1000000 / epochLength; | 5,473,614 | [
1,
4169,
1203,
18,
5508,
506,
315,
75,
2808,
6,
35,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
425,
273,
1203,
18,
5508,
342,
15088,
342,
7632,
1782,
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,
-1... |
./full_match/5/0xc3793ecC3A0aa3B5a0f7b23A375b0c92df72DA25/sources/src/utils/MetadataEncoder.sol | @title Librairy used to write and encode on-chain metadata | library MetadataEncoder {
using MetadataEncoder for string;
function encodeMetadata(
string memory name,
string memory description,
string memory image,
string memory externalUrl
import {Base64} from "openzeppelin-contracts/contracts/utils/Base64.sol";
import {MetadataPropertie... | 1,911,869 | [
1,
5664,
354,
6913,
1399,
358,
1045,
471,
2017,
603,
17,
5639,
1982,
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,
12083,
6912,
7204,
288,
203,
565,
1450,
6912,
7204,
364,
533,
31,
203,
203,
565,
445,
2017,
2277,
12,
203,
3639,
533,
3778,
508,
16,
203,
3639,
533,
3778,
2477,
16,
203,
3639,
533,
3778,
1316,
16,
203,
3639,
533,
3778,
3903,
14... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
// Data persistance
using SafeMath for uint256;
/********************************************************************************************/
/* ... | * @dev Add a contract to the authorization list/ | function authorizeCaller
(
address contractAddress
)
external
requireContractOwner
returns(bool success)
{
authorizedCaller[contr... | 6,467,262 | [
1,
986,
279,
6835,
358,
326,
6093,
666,
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,
12229,
11095,
203,
18701,
261,
27699,
27573,
1758,
6835,
1887,
203,
18701,
262,
203,
18701,
3903,
203,
18701,
2583,
8924,
5541,
203,
18701,
1135,
12,
6430,
2216,
13,
203,
565,
288,
203,
3639,
10799,
11095,
63,
16351,
1887,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/// @title Interface to interact with Bubbles contract.
interface IBubbles {
... | @notice Function to turn on positive sum staking | function setPositiveSum(bool _isPositiveSum, uint64 _stakeTarget)
external
onlyOwner
{
isPositiveSum = _isPositiveSum;
stakeTarget = _stakeTarget;
emit SetPositiveSum(isPositiveSum, stakeTarget);
}
| 1,545,611 | [
1,
2083,
358,
7005,
603,
6895,
2142,
384,
6159,
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,
445,
444,
14900,
3495,
12,
6430,
389,
291,
14900,
3495,
16,
2254,
1105,
389,
334,
911,
2326,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
225,
288,
203,
565,
353,
14900,
3495,
273,
389,
291,
14900,
3495,
31,
203,
565,
38... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
impo... | @notice get the next token id, won't change state | function getNextTokenId() public view override returns (uint256) {
return _tokenIdCounter.current();
}
| 1,574,249 | [
1,
588,
326,
1024,
1147,
612,
16,
8462,
1404,
2549,
919,
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,
22616,
548,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
2316,
548,
4789,
18,
2972,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/42/0x3cB6DF9845Af79Ab7c2af9530da0b046bacb6cF9/sources/ERC20TokenSwapper.sol | separately tracks corresponding swap states | mapping(address => mapping(uint256 => States)) swapStates;
| 8,874,105 | [
1,
16627,
5173,
13933,
4656,
7720,
5493,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
29577,
3719,
7720,
7629,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
/**
* Shout out to CryptoByte721
*/
/**
* @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, w... | * @dev Internal function to transfer ownership of a given token ID to another address. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. @param from current owner of the token @param to address to receive the ownership of the given token ID @param tokenId uint256 ID of the token to be transferre... | function _transferFrom(
address from,
address to,
uint256 tokenId
) internal {
require(
ownerOf(tokenId) == from,
"ERC721: transfer of token that is not own"
);
require(to != address(0), "ERC721: transfer to the zero address");
_cl... | 6,514,027 | [
1,
3061,
445,
358,
7412,
23178,
434,
279,
864,
1147,
1599,
358,
4042,
1758,
18,
2970,
1061,
7423,
358,
288,
13866,
1265,
5779,
333,
709,
10522,
1158,
17499,
603,
1234,
18,
15330,
18,
225,
628,
783,
3410,
434,
326,
1147,
225,
358,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
2713,
288,
203,
3639,
2583,
12,
203,
5411,
3410,
951,
12,
2316,
548,
13,
422,
628,
16,
203,
... |
// Sources flattened with hardhat v2.4.1 https://hardhat.org
// File contracts/interfaces/IQUAI_Vault.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
pragma experimental ABIEncoderV2;
interface IQUAI_Vault {
function token() external view returns(address);
function min() external view returns(uin... | multiply by 1e12 here to get to correct 1e18 scaling | return (wethOut * 2 * 1e12);
| 1,625,162 | [
1,
7027,
1283,
635,
404,
73,
2138,
2674,
358,
336,
358,
3434,
404,
73,
2643,
10612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
261,
91,
546,
1182,
380,
576,
380,
404,
73,
2138,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract AcceptingDonations {
/// save the address of the owner of the smart contract in the blockchain
address public owner;
constructor() payable {
owner = payable(msg.sender);
}
struct Funder {
address addr;
uint256 amount;
}
/// s... | accept funds at the address of the contract | receive() external payable saveInfomtionsAboutDonation{
}
| 12,946,890 | [
1,
9436,
284,
19156,
622,
326,
1758,
434,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
6798,
1435,
3903,
8843,
429,
1923,
13149,
362,
88,
1115,
24813,
22293,
367,
95,
203,
21281,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// pragma solidity ^0.4.25;
pragma solidity ^0.8.0;
// 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-insec... | Modify to call data contract's status | {
require(operational, "Contract is currently not operational");
}
| 989,261 | [
1,
11047,
358,
745,
501,
6835,
1807,
1267,
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,
288,
203,
3639,
2583,
12,
22716,
16,
315,
8924,
353,
4551,
486,
1674,
287,
8863,
21281,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/97/0xF438A8836c49931c873ec3f30aBE4e1e48B27317/sources/ValueLiquidPair.sol | using balances ensures pro-rata distribution
| amount1 = liquidity.mul(balance1) / _totalSupply; | 17,209,831 | [
1,
9940,
324,
26488,
11932,
450,
17,
86,
396,
7006,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3844,
21,
273,
4501,
372,
24237,
18,
16411,
12,
12296,
21,
13,
342,
389,
4963,
3088,
1283,
31,
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.5.0;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLE... | is this airline nominated or not
| bool isNominated; | 14,085,852 | [
1,
291,
333,
23350,
1369,
12457,
7458,
578,
486,
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,
3639,
1426,
8197,
362,
7458,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43113/0x82d4d5B0D89Ab194Dd1D8e7364130990463685D6/sources/PolyCrystal_MasterChef.sol | Deposit LP tokens to MasterHealer for CRYSTL allocation. | function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accCrystalPerShare).div(1e18).... | 13,162,763 | [
1,
758,
1724,
511,
52,
2430,
358,
13453,
5256,
6774,
364,
30565,
882,
48,
13481,
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,
... | [
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,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
1661,
426,
8230,
970,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
... |
pragma solidity ^0.4.22;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed p... | * @dev Change address ShipCoinCurrency contracts. @param _currencyContract address ShipCoinCurrency contracts/ | function setCurrencyContract(address _currencyContract) public onlyOwner {
require(_currencyContract != address(0));
address oldCurContract = currencyContract;
currencyContract = ICurrency(_currencyContract);
emit ChangeCurrencyContract(oldCurContract, currencyContract);
}
| 15,856,448 | [
1,
3043,
1758,
2638,
625,
27055,
7623,
20092,
18,
225,
389,
7095,
8924,
1758,
2638,
625,
27055,
7623,
20092,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
7623,
8924,
12,
2867,
389,
7095,
8924,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
24899,
7095,
8924,
480,
1758,
12,
20,
10019,
203,
565,
1758,
1592,
2408,
8924,
273,
5462,
8924,
31,
203,
565,
5462,
8924,
273,
467,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./spec_interfaces/ICommittee.sol";
import "./ManagedContract.sol";
import "./spec_interfaces/IStakingRewards.sol";
import "./spec_interfaces/IFeesAndBootstrapRewards.sol";
/// @title Committee contract... | Imports the committee members from a previous committee contract during migration @dev initialization function called only by the initializationManager @dev does not update the reward contract to avoid incorrect notifications @param previousCommitteeContract is the address of the previous committee contract | function importMembers(ICommittee previousCommitteeContract) external override onlyInitializationAdmin {
(address[] memory addrs, uint256[] memory weights, bool[] memory certification) = previousCommitteeContract.getCommittee();
for (uint i = 0; i < addrs.length; i++) {
_addMember(addrs[i], weights[i], certific... | 2,521,355 | [
1,
13347,
326,
3294,
22579,
4833,
628,
279,
2416,
3294,
22579,
6835,
4982,
6333,
225,
10313,
445,
2566,
1338,
635,
326,
10313,
1318,
225,
1552,
486,
1089,
326,
19890,
6835,
358,
4543,
11332,
9208,
225,
2416,
5580,
22579,
8924,
353,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
1930,
6918,
12,
45,
5580,
22579,
2416,
5580,
22579,
8924,
13,
3903,
3849,
1338,
17701,
4446,
288,
203,
202,
202,
12,
2867,
8526,
3778,
11755,
16,
2254,
5034,
8526,
3778,
5376,
16,
1426,
8526,
3778,
3320,
1480,
13,
273,
... |
./full_match/56/0xfC652Ea2E8A373C16f3d8c5BD25E9898b9699ECB/sources/contracts/IFAllocationMaster.sol | increase new track's checkpoint count by 1 | trackCheckpointCounts[trackId]++;
| 3,247,523 | [
1,
267,
11908,
394,
3298,
1807,
9776,
1056,
635,
404,
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,
7734,
3298,
14431,
9211,
63,
4101,
548,
3737,
15,
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,
-... |
/**
* This library file acts as model which provides
* attributes for the user and the functions to
* perform operations on the given data
*/
pragma solidity ^0.4.24;
pragma experimental ABIEncoderV2; // experimental
// @title User holds all structs
// for user details
library User {
// UserDetail holds ... | UserSocial holds all the urls for the social accounts of the user | struct UserSocial {
}
| 13,052,206 | [
1,
1299,
28795,
14798,
777,
326,
6903,
364,
326,
16702,
9484,
434,
326,
729,
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,
1958,
2177,
28795,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
// getRoundData and latestRoundData should both raise... | @dev The calling address must approve this contract to spend its ERC20 for this function to succeed. As the amount of input ERC20 is variable, the calling address will need to approve for a slightly higher or infinit amount, anticipating some variance. @param amountOut The desired amount of baseCurrency. @param amount... | function payFromERC20(uint256 amountOut, uint256 amountInMaximum, address erc20In, bytes memory path, address recipient) public returns (uint256 amountIn) {
ISwapRouter swapRouter = uniswapRouter;
IERC20(erc20In).transferFrom(msg.sender, address(this), amountInMaximum);
ISwapRouter.ExactOut... | 1,572,236 | [
1,
1986,
4440,
1758,
1297,
6617,
537,
333,
6835,
358,
17571,
2097,
4232,
39,
3462,
364,
333,
445,
358,
12897,
18,
2970,
326,
3844,
434,
810,
4232,
39,
3462,
353,
2190,
16,
326,
4440,
1758,
903,
1608,
358,
6617,
537,
364,
279,
21980,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8843,
1265,
654,
39,
3462,
12,
11890,
5034,
3844,
1182,
16,
2254,
5034,
3844,
382,
13528,
16,
1758,
6445,
71,
3462,
382,
16,
1731,
3778,
589,
16,
1758,
8027,
13,
1071,
1135,
261,
11890,
5034,
3844,
382,
13,
288,
203,
... |
pragma solidity ^0.4.24;
import "./interfaces/IHRSYToken.sol";
import "./interfaces/IRaceValidator.sol";
import "./WalletUser.sol";
import "../openzeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "../openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "../openzeppelin-solidity/contracts/ma... | December 1st 2018
| config["BPERIODEND"] = 1543618800; | 13,020,852 | [
1,
758,
311,
81,
744,
404,
334,
14863,
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,
3639,
642,
9614,
38,
28437,
4415,
11929,
273,
4711,
24,
5718,
2643,
17374,
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,
... |
pragma solidity ^0.5.0;
contract Election {
//model a candidate
struct Candidate{ //structure type
uint id; //unsigned int
string name;
uint voteCount;
}
//store candidate
mapping(uint => Candidate) public candidates; //hashmap (key value pair) //when candidate is added, we are changi... | require that they have not voted beforesimiar toif(condition) returnrequire a valid candidateif require is found false, then the gas used uptill this part will not be returned back. Ofcourse, no gas will be used for the code below because that code wont be executed.record that voter has votedwe can get metadata which ... | function vote(uint _candidateId) public{
candidates[_candidateId].voteCount ++;
}
| 2,508,962 | [
1,
6528,
716,
2898,
1240,
486,
331,
16474,
506,
617,
455,
381,
77,
297,
358,
430,
12,
4175,
13,
225,
327,
6528,
279,
923,
5500,
430,
2583,
353,
1392,
629,
16,
1508,
326,
16189,
1399,
582,
337,
737,
333,
1087,
903,
486,
506,
2106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12501,
12,
11890,
389,
19188,
548,
13,
1071,
95,
203,
202,
377,
203,
1082,
203,
203,
203,
203,
203,
202,
202,
21635,
63,
67,
19188,
548,
8009,
25911,
1380,
965,
31,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.18;
/**
Used for administrration of the VZT Token Contract
*/
contract Administration {
// keeps track of the contract owner
address public owner;
// keeps track of the contract administrator
address public administrator;
// keeps track of hte song token exchange
... | @dev checks to see if msg.sender is privileged | modifier onlyModerator() {
}
| 7,308,404 | [
1,
12366,
358,
2621,
309,
1234,
18,
15330,
353,
11334,
2423,
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,
9606,
1338,
1739,
7385,
1435,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0xA0F7f51836069dbF1f60eC06A49dda404F9De45c/sources/ERC721Upstream.sol | * @notice Put a token up for sale. @param tokenId The unique id of the NFT. @param price The Ether price being asked (1 is 1x10^18)./ | function offer(uint256 tokenId, uint256 price) public {
require(_msgSender() == ownerOf(tokenId), "You do not own this token");
if(price == 0)
orderBook[tokenId] = Order(address(0), price);
else
orderBook[tokenId] = Order(_msgSender(), price);
}
| 9,279,921 | [
1,
6426,
279,
1147,
731,
364,
272,
5349,
18,
225,
1147,
548,
1021,
3089,
612,
434,
326,
423,
4464,
18,
225,
6205,
1021,
512,
1136,
6205,
3832,
19279,
261,
21,
353,
404,
92,
2163,
66,
2643,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10067,
12,
11890,
5034,
1147,
548,
16,
2254,
5034,
6205,
13,
1071,
288,
203,
3639,
2583,
24899,
3576,
12021,
1435,
422,
3410,
951,
12,
2316,
548,
3631,
315,
6225,
741,
486,
4953,
333,
1147,
8863,
203,
203,
3639,
309,
12... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer f... | credit surplus, give to Strategy
| if (totalAvailable < credit) { | 6,186,375 | [
1,
20688,
5056,
10103,
16,
8492,
358,
19736,
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,
309,
261,
4963,
5268,
411,
12896,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.5.4 <0.6.0;
import './AOLibrary.sol';
import './TheAO.sol';
import './IAOSetting.sol';
import './INameFactory.sol';
import './IAOSettingAttribute.sol';
import './IAOSettingValue.sol';
import './INameTAOPosition.sol';
import './INameAccountRecovery.sol';
/**
* @title AOSettingUpdate
*
* This con... | * @dev Check whether or not setting is of type string/ Make sure the setting type is string | modifier isStringSetting(uint256 _settingId) {
(,,, uint8 STRING_SETTING_TYPE,) = _aoSetting.getSettingTypes();
require (_aoSetting.settingTypeLookup(_settingId) == STRING_SETTING_TYPE);
_;
}
| 13,033,992 | [
1,
1564,
2856,
578,
486,
3637,
353,
434,
618,
533,
19,
4344,
3071,
326,
3637,
618,
353,
533,
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,
202,
20597,
9962,
5568,
12,
11890,
5034,
389,
8920,
548,
13,
288,
203,
202,
202,
12,
16408,
16,
2254,
28,
9469,
67,
1090,
12239,
67,
2399,
16,
13,
273,
389,
6033,
5568,
18,
588,
5568,
2016,
5621,
203,
202,
202,
6528,
261,
67,
... |
./full_match/80001/0x8D2C372317524a8Af5313883434411fd3DAE55d9/sources/contracts/lib/FulfillmentApplier.sol | * @dev Internal pure function to aggregate a group of consideration items using supplied directives on which component items are candidates for aggregation, skipping items on orders that are not available. @param advancedOrders The orders to aggregate consideration item... | ) internal pure {
function _aggregateValidFulfillmentConsiderationItems(
AdvancedOrder[] memory advancedOrders,
FulfillmentComponent[] memory considerationComponents,
Execution memory execution
assembly {
function throwInvalidFulfillmentComponentData() {
... | 877,842 | [
1,
3061,
16618,
445,
358,
7047,
279,
1041,
434,
5260,
367,
1516,
1377,
1450,
4580,
13877,
603,
1492,
1794,
1516,
854,
7965,
1377,
364,
10163,
16,
14195,
1516,
603,
11077,
716,
854,
486,
2319,
18,
225,
16111,
16528,
1850,
1021,
11077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2713,
16618,
288,
203,
565,
445,
389,
18573,
1556,
23747,
5935,
475,
9054,
3585,
367,
3126,
12,
203,
3639,
27451,
2448,
8526,
3778,
16111,
16528,
16,
203,
3639,
478,
332,
5935,
475,
1841,
8526,
3778,
5260,
367,
7171,
16,
... |
pragma solidity ^ 0.4 .24;
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also test... | * @dev Multiplies two numbers, reverts on overflow./ Gas optimization: this is cheaper than requiring 'a' not being zero, but the benefit is lost if 'b' is also tested. See: https:github.com/OpenZeppelin/openzeppelin-solidity/pull/522 | function mul(uint256 a, uint256 b) internal pure returns(uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
| 12,638,065 | [
1,
5002,
5259,
2795,
5600,
16,
15226,
87,
603,
9391,
18,
19,
31849,
14850,
30,
333,
353,
19315,
7294,
2353,
29468,
296,
69,
11,
486,
3832,
3634,
16,
1496,
326,
27641,
7216,
353,
13557,
309,
296,
70,
11,
353,
2546,
18432,
18,
2164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
12,
11890,
5034,
13,
288,
203,
565,
309,
261,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,
203,
565,
289,
203,
203,
565,
2254,
5034,
276,
2... |
pragma solidity ^0.4.8;
// ----------------------------------------------------------------------------------------------
// Sample fixed supply token contract
// Enjoy. (c) BokkyPooBah 2017. The MIT Licence.
// ----------------------------------------------------------------------------------------------
// ERC Toke... | Allow _spender to withdraw from your account, multiple times, up to the _value amount. If this function is called again it overwrites the current allowance with _value. | function approve(address _spender, uint256 _amount) returns (bool success) {
allowed[msg.sender][_spender] = _amount;
Approval(msg.sender, _spender, _amount);
return true;
}
| 1,976,617 | [
1,
7009,
389,
87,
1302,
264,
358,
598,
9446,
628,
3433,
2236,
16,
3229,
4124,
16,
731,
358,
326,
389,
1132,
3844,
18,
971,
333,
445,
353,
2566,
3382,
518,
28151,
326,
783,
1699,
1359,
598,
389,
1132,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
8949,
13,
1135,
261,
6430,
2216,
13,
288,
203,
377,
2935,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
273,
389,
8949,
31,
203,
377,
1716,
685,
1125... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
/**
* @dev Interface of the BEP20.
*/
interface BEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], but performing a delegate call. _Available since v3.4._/ | function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(s... | 6,474,604 | [
1,
8650,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
1080,
17,
20294,
68,
915,
1477,
68,
6487,
1496,
14928,
279,
7152,
745,
18,
389,
5268,
3241,
331,
23,
18,
24,
6315,
19,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
445,
9586,
1477,
12,
2867,
1018,
16,
1731,
3778,
501,
16,
533,
3778,
9324,
13,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
2583,
12,
291,
8924,
12,
3299,
3631,
315,
1887,
30,
7152,
745,
358,
1661,
17,
16351,
8863... |
./partial_match/1/0xE5F1E30D95F49AD4fAc775B956956a06a9fFb427/sources/SAPPY2.sol | at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.when buywhen sell if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers bot/sniper penalty. reduce by 1 wei per max buy over wh... | function _transfer(address from, address to, uint256 amount) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "amount must be greater than 0");
if(!... | 4,415,658 | [
1,
270,
8037,
309,
326,
7412,
4624,
353,
3696,
16,
3387,
326,
1203,
11267,
364,
5405,
343,
345,
414,
353,
444,
1493,
4982,
8037,
18,
13723,
30143,
13723,
357,
80,
309,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
... |
./partial_match/3/0xc7920b800569AC8895e1a0bA3869B6ddF56717e3/sources/PoR.sol | If we're at the end, but still expect more | for (uint256 i = 0; i < _nOuts; i++) {
if (_offset >= _vout.length) {
return false;
}
uint256 _nextLen = determineOutputLength(_next);
if (_nextLen == ERR_BAD_ARG) {
return false;
}
_offset += _nextLen;
... | 5,220,583 | [
1,
2047,
732,
4565,
622,
326,
679,
16,
1496,
4859,
4489,
1898,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
82,
1182,
87,
31,
277,
27245,
288,
203,
5411,
309,
261,
67,
3348,
1545,
389,
90,
659,
18,
2469,
13,
288,
203,
7734,
327,
629,
31,
203,
5411,
289,
203,
203,
5411,
... |
./partial_match/4/0xC828Ad244D4Bb8464802718ffCD801E0D272b40B/sources/animalMain.sol | 和 ERC721 一樣,是否同意被轉走
| mapping (uint => address) animalApprovals; | 8,513,302 | [
1,
166,
245,
239,
4232,
39,
27,
5340,
225,
165,
121,
227,
167,
106,
101,
176,
125,
239,
167,
251,
112,
166,
243,
104,
166,
243,
239,
167,
231,
242,
169,
100,
109,
169,
126,
236,
169,
118,
113,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
261,
11890,
516,
1758,
13,
392,
2840,
12053,
4524,
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,
-... |
./full_match/3/0x3A9529a079aFf1F291aeB0641067DB20413c91f9/sources/browser/coinput.sol | Withdraw due ether earned. | function withdraw() public {
uint amount = pendingReturns[msg.sender];
if (amount > 0) {
pendingReturns[msg.sender] = 0;
msg.sender.transfer(amount);
}
}
| 8,228,519 | [
1,
1190,
9446,
6541,
225,
2437,
425,
1303,
329,
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,
... | [
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,
598,
9446,
1435,
1071,
288,
203,
3639,
2254,
3844,
273,
4634,
1356,
63,
3576,
18,
15330,
15533,
203,
3639,
309,
261,
8949,
405,
374,
13,
288,
203,
5411,
4634,
1356,
63,
3576,
18,
15330,
65,
273,
374,
31,
203,
5411,
12... |
./full_match/80001/0xc364C5aD78B40288d09c5b918141739183cF129c/sources/project:/contracts/DecentralizedLottery.sol | bool result = payable(address(this)).send(msg.value);require(result,"There are some thing wrongs on send ether"); | function buyTicket(uint256 amount) public payable checkMax(amount) checkEqualAmount(amount) notPause{
uint256 _participantCount=participantCount;
for(uint256 i= _participantCount; i< _participantCount+amount ; i++ ){
participants[i+1]=msg.sender;
dLot.transfer(msg.sender, 1 ... | 5,661,422 | [
1,
6430,
563,
273,
225,
8843,
429,
12,
2867,
12,
2211,
13,
2934,
4661,
12,
3576,
18,
1132,
1769,
6528,
12,
2088,
10837,
9828,
854,
2690,
7757,
341,
1949,
564,
603,
1366,
225,
2437,
8863,
2,
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,
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,
225,
445,
30143,
13614,
12,
11890,
5034,
3844,
13,
1071,
8843,
429,
866,
2747,
12,
8949,
13,
866,
5812,
6275,
12,
8949,
13,
486,
19205,
95,
203,
4202,
203,
203,
1377,
2254,
5034,
389,
2680,
14265,
1380,
33,
2680,
14265,
1380,
31,... |
pragma solidity ^0.4.24;
import "./AbstractBaseContract.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @title AbstractWTIndex
* @dev Interface of WTIndex contract, inherits from OpenZeppelin's Ownable and
* from WT's 'AbstractBaseContract'.
*/
contract AbstractWTIndex is Ownable, Abst... | * @title AbstractWTIndex @dev Interface of WTIndex contract, inherits from OpenZeppelin's Ownable and from WT's 'AbstractBaseContract'./ | contract AbstractWTIndex is Ownable, AbstractBaseContract {
address[] public hotels;
mapping(address => uint) public hotelsIndex;
mapping(address => address[]) public hotelsByManager;
mapping(address => uint) public hotelsByManagerIndex;
address public LifToken;
function registerHotel(string dataUri) exter... | 6,434,844 | [
1,
7469,
8588,
1016,
225,
6682,
434,
678,
56,
1016,
6835,
16,
24664,
628,
3502,
62,
881,
84,
292,
267,
1807,
14223,
6914,
471,
628,
678,
56,
1807,
296,
7469,
2171,
8924,
10332,
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,
16351,
4115,
8588,
1016,
353,
14223,
6914,
16,
4115,
2171,
8924,
288,
203,
225,
1758,
8526,
1071,
12811,
10558,
31,
203,
225,
2874,
12,
2867,
516,
2254,
13,
1071,
12811,
10558,
1016,
31,
203,
225,
2874,
12,
2867,
516,
1758,
63,
5... |
./full_match/4/0x4631ceDADbF39677f5573A8034Cffc44237916f5/sources/_openzeppelin/contracts/utils/Address.sol | * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], but performing a delegate call. _Available since v3.4._/ | function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessag... | 653,907 | [
1,
8650,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
1080,
17,
20294,
68,
915,
1477,
68,
6487,
1496,
14928,
279,
7152,
745,
18,
389,
5268,
3241,
331,
23,
18,
24,
6315,
19,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
445,
9586,
1477,
12,
203,
3639,
1758,
1018,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
533,
3778,
9324,
203,
565,
262,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
261,
6430,
2216,
16,
1731,
3778,
327,
892,
13... |
// SPDX-License-Identifier: AGPL
// File: contracts/interfaces/IITR.sol
pragma solidity ^0.8.0;
interface IITR {
function claim(address to) external;
}
// File: contracts/interfaces/ISRC20.sol
pragma solidity ^0.8.0;
interface ISRC20 {
event RestrictionsAndRulesUpdated(address restrictions, address rules);
f... | * @dev Add a value to a set. O(1). Returns true if the value was added to the set, that is if it was not already present./ | function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
| 6,152,350 | [
1,
986,
279,
460,
358,
279,
444,
18,
531,
12,
21,
2934,
2860,
638,
309,
326,
460,
1703,
3096,
358,
326,
444,
16,
716,
353,
309,
518,
1703,
486,
1818,
3430,
18,
19,
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,
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,
202,
915,
527,
12,
1887,
694,
2502,
444,
16,
1758,
460,
13,
2713,
1135,
261,
6430,
13,
288,
203,
202,
202,
2463,
389,
1289,
12,
542,
6315,
7872,
16,
1731,
1578,
12,
11890,
5034,
12,
11890,
16874,
12,
1132,
3719,
10019,
203,
202... |
// File: contracts/interfaces/marketHandlerDataStorageInterface.sol
pragma solidity 0.6.12;
interface marketHandlerDataStorageInterface {
function setCircuitBreaker(bool _emergency) external returns (bool);
function setNewCustomer(address payable userAddr) external returns (bool);
function getUserAccessed(addre... | Action: ExchangeRate Function */ | function getGlobalBorrowEXR() external view override returns (uint256)
{
return globalBorrowEXR;
}
| 1,669,427 | [
1,
1803,
30,
18903,
4727,
4284,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
20591,
38,
15318,
2294,
54,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
203,
202,
95,
203,
202,
202,
2463,
2552,
38,
15318,
2294,
54,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/************************
* Version 0.0 of Bee Arbitration
* WARNING: byte code is real close to ganache limit
* a few more lines and it won't port over but if you
* use remix you have some room to spare. There must be a
* optmizer for bytecode size somewhere
*
* Not created for production
* Not fully unit te... | * @dev selected miners from the mining pool to become Arbitors -functionhash- unknown yet @param currentJob The arbitration job we are selecting miners for @param arbId The arbitration job id that corrasponds to the arbitration job we passed in/for arbieters that haven't voted, make them not vote again for this job | {
uint256 [] memory voteIds = currentJob.arbiterVoteIds;
function selectArbitersFromMiners (ArbitrationJob storage currentJob, uint256 arbId)
internal
for (uint256 j = 0 ;j<voteIds.length; j++) {
ArbiterVote memory checkVote = arbVotes[voteIds[j]];
... | 1,841,599 | [
1,
8109,
1131,
414,
628,
326,
1131,
310,
2845,
358,
12561,
1201,
3682,
1383,
225,
300,
915,
2816,
17,
5917,
4671,
225,
783,
2278,
1021,
10056,
7034,
1719,
732,
854,
24674,
1131,
414,
364,
225,
419,
70,
548,
1021,
10056,
7034,
1719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
540,
203,
3639,
2254,
5034,
225,
5378,
3778,
12501,
2673,
273,
783,
2278,
18,
6779,
2165,
19338,
2673,
31,
203,
540,
203,
565,
445,
2027,
686,
3682,
414,
1265,
2930,
414,
261,
686,
3682,
7034,
2278,
2502,
783,
2278... |
// File: ReentrancyGuard.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol
// Subject to the MIT license.
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* ... | records all tokens the user has locked
| EnumerableSet.AddressSet lockedTokens; | 312,111 | [
1,
7094,
777,
2430,
326,
729,
711,
8586,
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,
6057,
25121,
694,
18,
1887,
694,
8586,
5157,
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,
-... |
pragma solidity ^0.5.16;
// Inheritance
import "./PerpsV2SettingsMixin.sol";
import "./interfaces/IPerpsV2Market.sol";
// Libraries
import "openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol";
import "./SignedSafeMath.sol";
import "./SignedSafeDecimalMath.sol";
import "./SafeDecimalMath.sol";
// Internal refere... | The value in a position's margin after a deposit or withdrawal, accounting for funding and profit. If the resulting margin would be negative or below the liquidation threshold, an appropriate error is returned. If the result is not an error, callers of this function that use it to update a position's margin must ensur... | function _recomputeMarginWithDelta(
Position memory position,
uint price,
int marginDelta
) internal view returns (uint margin, Status statusCode) {
int newMargin = _marginPlusProfitFunding(position, price).add(marginDelta);
if (newMargin < 0) {
return (0, Sta... | 12,935,987 | [
1,
1986,
460,
316,
279,
1754,
1807,
7333,
1839,
279,
443,
1724,
578,
598,
9446,
287,
16,
2236,
310,
364,
22058,
471,
450,
7216,
18,
971,
326,
8156,
7333,
4102,
506,
6092,
578,
5712,
326,
4501,
26595,
367,
5573,
16,
392,
5505,
555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
266,
9200,
9524,
1190,
9242,
12,
203,
3639,
11010,
3778,
1754,
16,
203,
3639,
2254,
6205,
16,
203,
3639,
509,
7333,
9242,
203,
565,
262,
2713,
1476,
1135,
261,
11890,
7333,
16,
2685,
6593,
13,
288,
203,
3639,
509,
... |
pragma solidity =0.5.16;
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/ownership/Ownable.sol';
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/token/ERC20/IERC20.sol';
import 'Uniswap/uniswap-v2-core@1.0.1/contracts/libraries/Math.sol';
import './uniswap/UniswapV2Library.sol';
import './uniswa... | @dev Recover BNB that were accidentally sent to this smart contract. @param to The address to send the BNB to. @param value The number of BNB to transfer to `to`. | function recoverBNB(address to, uint value) external onlyOwner {
TransferHelper.safeTransferBNB(to, value);
}
| 5,453,110 | [
1,
27622,
605,
20626,
716,
4591,
25961,
1230,
3271,
358,
333,
13706,
6835,
18,
225,
358,
1021,
1758,
358,
1366,
326,
605,
20626,
358,
18,
225,
460,
1021,
1300,
434,
605,
20626,
358,
7412,
358,
1375,
869,
8338,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
5910,
15388,
38,
12,
2867,
358,
16,
2254,
460,
13,
3903,
1338,
5541,
288,
203,
565,
12279,
2276,
18,
4626,
5912,
15388,
38,
12,
869,
16,
460,
1769,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.23;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 bala... | Set the symbol for display purposes (CHANGE THIS)
| symbol = "WMK"; | 6,873,454 | [
1,
694,
326,
3273,
364,
2562,
13694,
261,
14473,
20676,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
25173,
47,
14432,
4766,
2868,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when de... | BTAD tokens created per block. | uint256 public BTADPerBlock;
| 10,296,222 | [
1,
38,
56,
1880,
2430,
2522,
1534,
1203,
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,
... | [
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,
2254,
5034,
1071,
605,
56,
1880,
2173,
1768,
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,
-... |
pragma solidity 0.4.25;
// ----------------------------------------------------------------------------
// 'PAYTOKEN' contract with following features
// => In-built ICO functionality - Infinite duration
// => ERC20 Compliance
// => Higher control of ICO by admin/owner
// => selfdestruct functionali... | * Destroy tokens from other account Remove `_value` tokens from the system irreversibly on behalf of `_from`. @param _from the address of the sender @param _value the amount of money to burn/ | function burnFrom(address _from, uint256 _value) public returns (bool success) {
require(!safeguard);
emit Burn(_from, _value);
return true;
}
| 1,510,135 | [
1,
10740,
2430,
628,
1308,
2236,
3581,
1375,
67,
1132,
68,
2430,
628,
326,
2619,
9482,
266,
2496,
24755,
603,
12433,
6186,
434,
1375,
67,
2080,
8338,
225,
389,
2080,
326,
1758,
434,
326,
5793,
225,
389,
1132,
326,
3844,
434,
15601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
3639,
445,
18305,
1265,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
5411,
2583,
12,
5,
87,
1727,
1332,
89,
1060,
1769,
203,
6647,
202,
18356,
225,
605,
321,
24899,
2080,
16,
38... |
pragma solidity 0.4.25;
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol";
import "./IBBLRToken.sol";
/**
* @title Bubblr ERC721 token
* @dev
*/
contract MATToken is ERC721Full, ERC721Mintable {
using SafeMath for uin... | Boost an owned asset by offering BBLR stake */ | function boost(uint256 asset, uint256 stake) external {
}
| 12,906,300 | [
1,
26653,
392,
16199,
3310,
635,
10067,
310,
605,
14618,
54,
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,
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,
14994,
12,
11890,
5034,
3310,
16,
2254,
5034,
384,
911,
13,
3903,
288,
203,
540,
203,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0xBa375Ad13559AC07baDbf4353E9afD1FE8920b68/sources/contracts/multiTransfer.sol | SPDX-License-Identifier:MIT | pragma solidity >=0.8.2 <0.8.5;
| 17,160,477 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
6068,
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,
683,
9454,
18035,
560,
1545,
20,
18,
28,
18,
22,
411,
20,
18,
28,
18,
25,
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,
-10... |
./full_match/80001/0xEE51AC33a7258ce51E2ff4A3DcAbb629b1B6A858/sources/contracts/NFT.sol | function to show the imageURI | function getImageURI() public view returns (string memory) {
return imageUri;
}
| 5,555,643 | [
1,
915,
358,
2405,
326,
1316,
3098,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10567,
3098,
1435,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
1316,
3006,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xaBcf18BF1937e3d7Bac7Ac743b7829aD6aD6D2ca/sources/contracts/MintPass.sol | * @notice Calculates the royalty information for a given sale. @dev Implements the required royaltyInfo function for the ERC2981 standard. @param _salePrice The sale price of the token being sold. @return receiver The address of the royalty recipient. @return royaltyAmount The amount of royalty to be paid./ | function royaltyInfo(
uint256,
uint256 _salePrice
) external view returns (address receiver, uint256 royaltyAmount) {
return (project.royaltyAddress, (_salePrice * project.royalty) / 10000);
}
| 17,053,550 | [
1,
10587,
326,
721,
93,
15006,
1779,
364,
279,
864,
272,
5349,
18,
225,
29704,
326,
1931,
721,
93,
15006,
966,
445,
364,
326,
4232,
39,
5540,
11861,
4529,
18,
225,
389,
87,
5349,
5147,
1021,
272,
5349,
6205,
434,
326,
1147,
3832,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
721,
93,
15006,
966,
12,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
5034,
389,
87,
5349,
5147,
203,
565,
262,
3903,
1476,
1135,
261,
2867,
5971,
16,
2254,
5034,
721,
93,
15006,
6275,
13,
288,
203,
3639,
327,
261,
440... |
pragma solidity 0.4.25;
// File: contracts/sogur/interfaces/ISGATokenManager.sol
/**
* @title SGA Token Manager Interface.
*/
interface ISGATokenManager {
/**
* @dev Exchange ETH for SGA.
* @param _sender The address of the sender.
* @param _ethAmount The amount of ETH received.
* @return Th... | * @title Transfer Only SGA Token Manager./ | contract TransferOnlySGATokenManager is ISGATokenManager, ContractAddressLocatorHolder {
string public constant VERSION = "1.0.0";
using SafeMath for uint256;
event WithdrawCompleted(address indexed _sender, uint256 _balance, uint256 _amount);
constructor(IContractAddressLocator _contractAddre... | 10,632,970 | [
1,
5912,
5098,
348,
25043,
3155,
8558,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
12279,
3386,
30820,
789,
969,
1318,
353,
4437,
43,
789,
969,
1318,
16,
13456,
1887,
5786,
6064,
288,
203,
565,
533,
1071,
5381,
8456,
273,
315,
21,
18,
20,
18,
20,
14432,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
... |
pragma solidity ^0.4.18;
contract Posse {
/// struct para representar o objeto do contrato de posse
struct Objeto {
uint id;
string nome;
string descricao;
}
/// instância do objeto do contrato de posse
/// ex: casa, carro, terreno, bicicleta, barco, ...
Objeto public objeto;
/// dono do... | Evento lançado toda vez que a posse for vendida para novo dono | event Comprada(address novo, uint objetoId, string objeto, uint valor);
| 12,789,138 | [
1,
1133,
83,
328,
304,
132,
105,
6821,
358,
2414,
331,
6664,
6597,
279,
949,
307,
364,
331,
409,
350,
69,
12602,
1158,
12307,
2727,
83,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
871,
5427,
354,
2414,
12,
2867,
1158,
12307,
16,
2254,
1081,
11453,
548,
16,
533,
1081,
11453,
16,
2254,
23325,
1769,
203,
2,
-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.0;
pragma experimental ABIEncoderV2;
import "./interfaces/IMasterChef.sol";
import "./interfaces/IVault.sol";
import "./interfaces/ILockManager.sol";
import "./lib/SafeMath.sol";
import "./lib/SafeERC20.sol";
import "./lib/ReentrancyGuard.sol";
/**
* @title Reward... | @notice Info of each pool. | struct PoolInfo {
}
| 1,768,148 | [
1,
966,
434,
1517,
2845,
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,
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,
1958,
8828,
966,
288,
203,
565,
289,
203,
203,
203,
203,
203,
203,
203,
203,
377,
203,
203,
377,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/ac... | View function to see rewardPer YFBTC block on frontend. | function rewardPerBlock(uint256 _pid) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
require (address(pool.lpToken) != address(0), "MC: _pid is incorrect");
uint256 accYfbtcPerShare = pool.accYfbtcPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address... | 5,438,545 | [
1,
1767,
445,
358,
2621,
19890,
2173,
1624,
22201,
15988,
1203,
225,
603,
15442,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19890,
2173,
1768,
12,
11890,
5034,
389,
6610,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
2583,
261,
2867,
12,
6011,
18,
9953,
1345... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppel... | * @dev Allow the deployer to set the {safeAddress} by the {_safeAddress}. @param _safeAddress The new safe address/ | function setSafeAddress(address _safeAddress) external virtual onlyOwner {
safeAddress = _safeAddress;
}
| 15,811,856 | [
1,
7009,
326,
7286,
264,
358,
444,
326,
288,
4626,
1887,
97,
635,
326,
288,
67,
4626,
1887,
5496,
225,
389,
4626,
1887,
1021,
394,
4183,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
9890,
1887,
12,
2867,
389,
4626,
1887,
13,
3903,
5024,
1338,
5541,
288,
203,
3639,
4183,
1887,
273,
389,
4626,
1887,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
import "./IERC20.sol";
import "../math/SafeMath.sol";
/**
* @title Standard ERC20 token.
* @dev Implementation of the basic standard token.
*/
contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) internal _balances;
mapping (address => mapping ... | * @dev Decreases the amount of tokens that an owner allowed to a spender. @param spender The address which will spend the funds. @param subtractedValue The amount of tokens to decrease the allowance by./ | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = (_allowed[msg.sender][spender].sub(subtractedValue));
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
ret... | 7,229,012 | [
1,
23326,
3304,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
225,
17571,
264,
1021,
1758,
1492,
903,
17571,
326,
284,
19156,
18,
225,
10418,
329,
620,
1021,
3844,
434,
2430,
358,
20467,
326,
1699,
1359,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
87,
1302,
264,
480,
1758,
12,
20,
10019,
203,
203,
3639,
389,
8151,
63,
3576,
18,
1533... |
pragma solidity ^0.5.9;
import "./DelightArmyManagerInterface.sol";
import "./DelightManager.sol";
import "./DelightBuildingManager.sol";
import "./DelightItemManager.sol";
import "./DelightKnightItemInterface.sol";
import "./Util/SafeMath.sol";
contract DelightArmyManager is DelightArmyManagerInterface, DelightManag... | 단일 부대의 위치를 이전합니다. If the number of units exceeds the maximum number when just moving, 그대로 이동했을 때 존재할 수 있는 최대 유닛의 숫자를 넘는 경우 이동할 유닛은 1개 이상이어야합니다. Creates a new army if it's empty. 비어있는 곳이면 새 부대를 생성합니다. Merges with an existing army if it isn't empty. 비어있지 않으면 병합합니다. 기사는 병합할 수 없습니다. 기존 부대원이 남아있지 않으면 제거합니다. 모든 유닛 이동 move i... | function moveArmyOne(uint totalUnitCount, uint armyId, uint unitCount, uint toCol, uint toRow) onlyDelight public {
Army storage army = armies[armyId];
uint[] storage armyIds = positionToArmyIds[army.col][army.row];
uint[] storage targetArmyIds = positionToArmyIds[toCol][toRow];
targetArmyIds.lengt... | 2,526,320 | [
1,
172,
238,
106,
173,
256,
125,
225,
172,
119,
227,
172,
239,
227,
173,
256,
251,
225,
173,
255,
231,
173,
122,
251,
172,
103,
125,
225,
173,
256,
117,
173,
259,
231,
174,
248,
107,
172,
238,
235,
172,
238,
102,
18,
971,
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,
202,
915,
3635,
686,
4811,
3335,
12,
11890,
2078,
2802,
1380,
16,
2254,
419,
4811,
548,
16,
2254,
2836,
1380,
16,
2254,
358,
914,
16,
2254,
358,
1999,
13,
1338,
2837,
750,
1071,
288,
203,
1082,
203,
202,
202,
686,
4811,
2502,
4... |
pragma solidity ^0.4.24;
import "./ERC20Basic.sol";
import "./SafeMath.sol";
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) internal balances;
uint256 internal totalSupply_;... | bytes32 hash = keccak256(abi.encodePacked(_token, _to, _value, _fee, _nonce));Add prefix to hash | {
bytes32 hash = keccak256(bytes4(0x48664c16), _token, _to, _value, _fee, _nonce);
return hash;
}
| 6,486,943 | [
1,
3890,
1578,
1651,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
24899,
2316,
16,
389,
869,
16,
389,
1132,
16,
389,
21386,
16,
389,
12824,
10019,
986,
1633,
358,
1651,
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,
288,
203,
3639,
1731,
1578,
1651,
273,
417,
24410,
581,
5034,
12,
3890,
24,
12,
20,
92,
24,
5292,
1105,
71,
2313,
3631,
389,
2316,
16,
389,
869,
16,
389,
1132,
16,
389,
21386,
16,
389,
12824,
1769,
203,
3639,
327,
1651,
... |
/**
*Submitted for verification at Etherscan.io on 2019-12-21
*/
pragma solidity ^0.5.7;
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
interface ERC20Token {
/**
* @notice send `_value` token to `_to` from `msg.sender`
* @param _to The address o... | injected CONTRACT AFFECTED BY MINERS
| if (block.timestamp == 0) return; | 6,474,455 | [
1,
267,
6059,
8020,
2849,
1268,
432,
2246,
4239,
2056,
6953,
6989,
11367,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
2629,
18,
5508,
422,
374,
13,
327,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^ 0.4.24;
// ----------------------------------------------------------------------------
// 安全的加减乘除
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns(uint c) {
c = a + b;
require(c >= a);
... | 16代以内有效用户设置,可以改成N代*/ | function mint(uint _tokens) public {
require(actived == true&&!frozenAccount[msg.sender]);
address user = msg.sender;
require(_tokens>=plans[1].account && balances[user]>=_tokens);
require(!frozenAccount[user]);
address top = fromaddr[user];
address _user = user;
for(uint n=1;n<=16;n++)... | 7,320,222 | [
1,
2313,
165,
124,
101,
165,
124,
103,
166,
233,
232,
167,
255,
236,
167,
248,
235,
168,
247,
106,
167,
235,
120,
169,
111,
127,
168,
126,
111,
176,
125,
239,
166,
242,
112,
165,
124,
103,
167,
247,
122,
167,
235,
243,
50,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
445,
312,
474,
12,
11890,
389,
7860,
13,
1071,
288,
203,
202,
3196,
202,
6528,
12,
621,
2950,
422,
638,
10,
10,
5,
28138,
3032,
63,
3576,
18,
15330,
19226,
203,
202,
3196,
202,
2867,
729,
273,
1234,
18,
15330,
31,
203,
2... |
pragma solidity ^0.4.24;
contract ERC20Basic {
uint256 public totalSupply;
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);
}
contract ERC20 is ERC20Basic... | 计算可提现额度=已经释放额度-已经提现额度 | uint256 canWithdrawAmount=releaseAmount.sub(teamKeepingSupply);
| 13,952,506 | [
1,
169,
111,
99,
168,
111,
250,
166,
242,
112,
167,
242,
243,
168,
241,
113,
170,
100,
256,
166,
123,
104,
33,
166,
120,
115,
168,
124,
242,
170,
234,
237,
167,
247,
127,
170,
100,
256,
166,
123,
104,
17,
166,
120,
115,
168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
202,
202,
11890,
5034,
848,
1190,
9446,
6275,
33,
9340,
6275,
18,
1717,
12,
10035,
11523,
310,
3088,
1283,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x2A168c00310451E7024E1149A433c796c72d515D/sources/CheatmoonToken.sol | Withdraw specified amount of staked tokens | function withdraw(uint256 _amount) external nonReentrant {
require(
stakers[msg.sender].deposited >= _amount,
"Can't withdraw more than you have"
);
uint256 _rewards = calculateRewards(msg.sender);
stakers[msg.sender].deposited -= _amount;
stakers[msg.... | 9,188,007 | [
1,
1190,
9446,
1269,
3844,
434,
384,
9477,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
12,
11890,
5034,
389,
8949,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
203,
5411,
384,
581,
414,
63,
3576,
18,
15330,
8009,
323,
1724,
329,
1545,
389,
8949,
16,
203,
5411,
315,
2568,
1404,
59... |
pragma solidity 0.6.8;
library BlockVerifier {
function extractStateRootAndTimestamp(bytes memory rlpBytes, bytes32 blockHash) internal view returns (bytes32 stateRoot, uint256 blockTimestamp, uint256 blockNumber) {
assembly {
function revertWithReason(message, length) {
mstore(0, 0x08c379a000000000000000000... | exchange = the ExchangeV2Pair. check denomination token (USE create2 check?!) check gas cost | function getPrice(IUniswapV2Pair uniswapV2Pair, address denominationToken, uint256 blockNum, ProofData memory proofData) public view returns (uint256 price, uint256 blockNumber) {
bool denominationTokenIs0 = true;
if (uniswapV2Pair.token0() == denominationToken) {
denominationTokenIs0 = true;
denominationTok... | 13,871,042 | [
1,
16641,
273,
326,
18903,
58,
22,
4154,
18,
866,
10716,
1735,
1147,
261,
8001,
752,
22,
866,
35,
24949,
866,
16189,
6991,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
25930,
12,
45,
984,
291,
91,
438,
58,
22,
4154,
640,
291,
91,
438,
58,
22,
4154,
16,
1758,
10716,
1735,
1345,
16,
2254,
5034,
1203,
2578,
16,
1186,
792,
751,
3778,
14601,
751,
13,
1071,
1476,
1135,
261,
11890,
5034,
... |
./partial_match/1313161554/0xc36810Ad3980c08a40FDde4C47e9f7913bc1f7e4/sources/Erc20Token.sol | * Atomically increases the allowance granted to `spender` by the sender(caller). Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address./ | function increaseApproval(address _spender, uint _addedValue) validAddress(_spender, "_spender is not valid address") public returns (bool) {
allowances[msg.sender][_spender] = allowances[msg.sender][_spender].add(_addedValue);
emit Approval(msg.sender, _spender, allowances[msg.sender][_spender]);
... | 16,941,737 | [
1,
3641,
6478,
7033,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
5793,
12,
16140,
2934,
7377,
1282,
392,
288,
23461,
97,
871,
11193,
326,
3526,
1699,
1359,
18,
29076,
30,
300,
1375,
87,
1302,
264,
68,
2780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10929,
23461,
12,
2867,
389,
87,
1302,
264,
16,
2254,
389,
9665,
620,
13,
923,
1887,
24899,
87,
1302,
264,
16,
4192,
87,
1302,
264,
353,
486,
923,
1758,
7923,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
1699,
6872,
63,... |
./full_match/4/0xED3Af2bc053C9A3232d752dD3D51ee6aEbFDf625/sources/contracts/Slimeys.sol | 2000 - 2999 : 0.03 ETH
| return 0.03 ether; | 699,716 | [
1,
17172,
300,
576,
11984,
225,
294,
225,
374,
18,
4630,
565,
512,
2455,
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,
5411,
327,
374,
18,
4630,
225,
2437,
31,
9079,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ER... | True if premium fee is enabled
| mapping(address => bool) public customDeploymentFeeEnabled; | 1,513,989 | [
1,
5510,
309,
23020,
5077,
14036,
353,
3696,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
1679,
6733,
14667,
1526,
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,
-1... |
pragma solidity ^0.8.0;
contract EthPool {
address owner;
modifier onlyowner { require(msg.sender == owner, "INVALID USER"); _; }
uint totalDeposit = 0;
struct DepositorInfo {
uint amount;
bool isExist;
}
mapping(address => DepositorInfo) depositors;
mapping(a... | distribute rewards to depositors | function giveReward() public payable onlyowner returns(bool) {
uint rewardedAmount = msg.value;
require(rewardedAmount > 0, 'REWARD AMOUNT SHOULD BE GREATER THAN 0');
require(allDepositors.length > 0, 'NO DEPOSITOR TO DISTRIBUTE REWARD');
for(uint i = 0; i < allDepositors.length; i+... | 12,726,757 | [
1,
2251,
887,
283,
6397,
358,
443,
1724,
1383,
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,
8492,
17631,
1060,
1435,
1071,
8843,
429,
1338,
8443,
1135,
12,
6430,
13,
288,
203,
3639,
2254,
283,
11804,
6275,
273,
1234,
18,
1132,
31,
203,
3639,
2583,
12,
266,
11804,
6275,
405,
374,
16,
296,
862,
21343,
432,
5980,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | Огонь возжёгся в храме
| rus_verbs:возжечься{}, | 5,482,234 | [
1,
145,
257,
145,
116,
145,
127,
145,
126,
146,
239,
225,
145,
115,
145,
127,
145,
120,
145,
119,
146,
244,
145,
116,
146,
228,
146,
242,
225,
145,
115,
225,
146,
232,
146,
227,
145,
113,
145,
125,
145,
118,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
436,
407,
67,
502,
2038,
30,
145,
115,
145,
127,
145,
120,
145,
119,
145,
118,
146,
234,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xBcc008d20736433605c6b61f185d3B605440Eb5f/sources/pool.sol | * @notice deposit of Tether USDTS, user needs to approve() to this contract address first, and call with the given amount./ | function depositUSDT(uint256 amountUSDT) external whenPoolerNotPaused {
require(amountUSDT > 0, "0 value");
USDTContract.safeTransferFrom(msg.sender, address(this), amountUSDT);
poolerTokenContract.mint(msg.sender, amountUSDT);
collateral += amountUSDT;
}
| 5,123,088 | [
1,
323,
1724,
434,
399,
2437,
587,
9903,
8047,
16,
729,
4260,
358,
6617,
537,
1435,
358,
333,
6835,
1758,
1122,
16,
471,
745,
598,
326,
864,
3844,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
3378,
9081,
12,
11890,
5034,
3844,
3378,
9081,
13,
3903,
1347,
2864,
264,
1248,
28590,
288,
203,
3639,
2583,
12,
8949,
3378,
9081,
405,
374,
16,
315,
20,
460,
8863,
203,
3639,
11836,
9081,
8924,
18,
4626,
591... |
/**
*Submitted for verification at Etherscan.io on 2019-08-09
*/
pragma solidity ^0.5.8;
/**
* @title ERC20 compatible token interface
*
* - Implements ERC 20 Token standard
* - Implements short address attack fix
*
* #created 29/09/2017
* #author Frank Bonnet
*/
contract IToken {
/**
* Get the t... | * Returns true if `_owner` has a balance allocated @param _owner The account that the balance is allocated for @return True if there is a balance that belongs to `_owner`/ | function hasBalance(address _owner) public view returns (bool) {
return allocatedIndex.length > 0 && _owner == allocatedIndex[allocated[_owner].index];
}
| 997,028 | [
1,
1356,
638,
309,
1375,
67,
8443,
68,
711,
279,
11013,
11977,
225,
389,
8443,
1021,
2236,
716,
326,
11013,
353,
11977,
364,
327,
1053,
309,
1915,
353,
279,
11013,
716,
11081,
358,
1375,
67,
8443,
68,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
711,
13937,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
11977,
1016,
18,
2469,
405,
374,
597,
389,
8443,
422,
11977,
1016,
63,
28172,
63,
67,
8443,
8009,
1615,
15533,
203,
565,
289,
... |
pragma solidity 0.5.1;
import "./erc721.sol";
import "./erc721-token-receiver.sol";
import "../math/safe-math.sol";
import "../utils/supports-interface.sol";
import "../utils/address-utils.sol";
/**
* @dev Implementation of ERC-721 non-fungible token standard.
*/
contract NFToken is
ERC721,
SupportsInterface
{
... | * @dev Returns the number of NFTs owned by `_owner`. NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address. @param _owner Address for whom to query the balance. @return Balance of _owner./ | function balanceOf(
address _owner
)
external
view
returns (uint256)
{
require(_owner != address(0));
return _getOwnerNFTCount(_owner);
}
| 6,402,888 | [
1,
1356,
326,
1300,
434,
423,
4464,
87,
16199,
635,
1375,
67,
8443,
8338,
423,
4464,
87,
6958,
358,
326,
3634,
1758,
854,
7399,
2057,
16,
471,
333,
445,
1216,
364,
6218,
2973,
326,
3634,
1758,
18,
225,
389,
8443,
5267,
364,
600,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
11013,
951,
12,
203,
565,
1758,
389,
8443,
203,
225,
262,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
11890,
5034,
13,
203,
225,
288,
203,
565,
2583,
24899,
8443,
480,
1758,
12,
20,
10019,
203,
565,
327,
389,... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
import "../core/State.sol";
import "../events/ProtocolSettingsEvents.sol";
import "../openzeppelin/SafeERC20.sol";
import "../mixins/ProtocolTo... | * @notice Get the basis point of trading rebate rewards. @return The basis point value./ | function getTradingRebateRewardsBasisPoint() external view returns (uint256) {
return tradingRebateRewardsBasisPoint;
}
| 1,801,182 | [
1,
967,
326,
10853,
1634,
434,
1284,
7459,
283,
70,
340,
283,
6397,
18,
327,
1021,
10853,
1634,
460,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
1609,
7459,
426,
70,
340,
17631,
14727,
11494,
291,
2148,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1284,
7459,
426,
70,
340,
17631,
14727,
11494,
291,
2148,
31,
203,
565,
289,
203,
203,
2,... |
// This Token Contract implements the standard token functionality (https://github.com/ethereum/EIPs/issues/20)
// You can find more complex example in https://github.com/ConsenSys/Tokens
pragma solidity ^0.4.8;
import "./BaseToken.sol";
import "./SafeMath.sol";
contract MisoToken is BaseToken {
using SafeMath f... | Add to feeding history | function feed() public {
require(balances[msg.sender] >= tokensPerFeed);
feedingHistory[msg.sender].push(block.number - 1);
balances[msg.sender] -= tokensPerFeed;
balances[this] += tokensPerFeed;
emit feedEvent(msg.sender);
}
| 954,141 | [
1,
986,
358,
4746,
310,
4927,
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,
445,
4746,
1435,
1071,
288,
203,
3639,
2583,
12,
70,
26488,
63,
3576,
18,
15330,
65,
1545,
2430,
2173,
8141,
1769,
203,
203,
3639,
4746,
310,
5623,
63,
3576,
18,
15330,
8009,
6206,
12,
2629,
18,
2696,
300,
404,
1769,
203,
... |
./full_match/5/0x38DB1BF0Fe525564B73fB0b157d969D496B7165d/sources/DividendToken.sol | * @notice Distributes dividends to token holders. @dev It reverts if the total supply is 0. It emits the `FundsDistributed` event if the amount to distribute is greater than 0. About undistributed dividends: In each distribution, there is a small amount which does not get distributed, which is `(amount POINTS_MULT... | function _distributeDividends(uint256 amount) internal {
uint256 shares = getTotalShares();
require(shares > 0, "SHARES");
if (amount > 0) {
pointsPerShare = pointsPerShare.add(
amount.mul(POINTS_MULTIPLIER) / shares
);
emit DividendsDistributed(msg.sender, amount);
}
}
| 1,937,506 | [
1,
1669,
1141,
3739,
350,
5839,
358,
1147,
366,
4665,
18,
225,
2597,
15226,
87,
309,
326,
2078,
14467,
353,
374,
18,
2597,
24169,
326,
1375,
42,
19156,
1669,
11050,
68,
871,
309,
326,
3844,
358,
25722,
353,
6802,
2353,
374,
18,
9771... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
2251,
887,
7244,
350,
5839,
12,
11890,
5034,
3844,
13,
2713,
288,
203,
565,
2254,
5034,
24123,
273,
12831,
24051,
5621,
203,
565,
2583,
12,
30720,
405,
374,
16,
315,
8325,
7031,
8863,
203,
203,
565,
309,
261,
8949,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IVORConsumerBase {
function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external;
}
interface BlockHashStoreInterface {
function getBlockhash(uint256 number) external view returns (bytes32);
}
/**
* @dev Interface of the ERC20... | ((qy-py)/(qx-px))^2
| (sx, dx) = projectiveMul(lx, lz, lx, lz); | 14,443,703 | [
1,
12443,
85,
93,
17,
2074,
13176,
12,
85,
92,
17,
4430,
3719,
66,
22,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
261,
30319,
16,
6633,
13,
273,
1984,
688,
27860,
12,
80,
92,
16,
328,
94,
16,
15855,
16,
328,
94,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/5/0x6F33c38298a1D50fdae35af410Bba2D6eF1CFead/sources/lib/revenue-distribution-token/contracts/interfaces/IERC4626.sol | @title A standard for tokenized Vaults with a single underlying ERC-20 token. | interface IERC4626 is IERC20 {
event Deposit(address indexed caller_, address indexed owner_, uint256 assets_, uint256 shares_);
event Withdraw(address indexed caller_, address indexed receiver_, address indexed owner_, uint256 assets_, uint256 shares_);
function asset() external view returns (address ... | 7,053,934 | [
1,
37,
4529,
364,
26073,
17329,
87,
598,
279,
2202,
6808,
4232,
39,
17,
3462,
1147,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
8749,
5558,
353,
467,
654,
39,
3462,
288,
203,
203,
203,
565,
871,
4019,
538,
305,
12,
2867,
8808,
4894,
67,
16,
1758,
8808,
3410,
67,
16,
2254,
5034,
7176,
67,
16,
2254,
5034,
24123,
67,
1769,
203,
203,
5... |