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/44787/0xb93f207230A44C212faCA713Dd76dC03410e7fd8/sources/contracts/community/CommunityAdminImplementation.sol | * @dev Transfers cUSDs from the treasury to a community @param community_ address of the community @param amount_ amount of the transaction/ | function transferToCommunity(ICommunity community_, uint256 amount_) internal nonReentrant {
treasury.transfer(cUSD, address(community_), amount_);
community_.addTreasuryFunds(amount_);
emit CommunityFunded(address(community_), amount_);
}
| 13,243,087 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
276,
3378,
22831,
628,
326,
9787,
345,
22498,
358,
279,
19833,
632,
891,
19833,
67,
1758,
434,
326,
19833,
632,
891,
3844,
67,
3844,
434,
326,
2492,
19,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
774,
12136,
13352,
12,
45,
12136,
13352,
19833,
67,
16,
2254,
5034,
3844,
67,
13,
2713,
1661,
426,
8230,
970,
288,
203,
3639,
9787,
345,
22498,
18,
13866,
12,
71,
3378,
40,
16,
1758,
12,
20859,
67,
3631,
3844,
6... |
pragma solidity ^0.6;
import "../../lib/SafeMath.sol";
import {Classifier64} from "./classification/Classifier.sol";
import {DataHandler64} from "./data/DataHandler.sol";
import {IncentiveMechanism64} from "./incentive/IncentiveMechanism.sol";
/**
* The main interface to sharing updatable models on the blockchain.
... | * Update the model. @param data A single sample of training data for the model. @param classification The label for `data`./ how much need to be deposited added time (current time) directly update the model Safe subtraction because cost <= msg.value. give back to the data provider | function addData(int64[] memory data, uint64 classification)
public
payable
{
uint256 cost = incentiveMechanism.handleAddData(
msg.value,
data,
classification
);
uint256 time = dataHandler.handleAddData(
msg.sender,
... | 909,525 | [
1,
4625,
348,
7953,
560,
30,
380,
2315,
326,
938,
18,
632,
891,
501,
432,
2202,
3296,
434,
8277,
501,
364,
326,
938,
18,
632,
891,
13804,
1021,
1433,
364,
1375,
892,
8338,
19,
3661,
9816,
1608,
358,
506,
443,
1724,
329,
3096,
813,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
21958,
12,
474,
1105,
8526,
3778,
501,
16,
2254,
1105,
13804,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
565,
288,
203,
3639,
2254,
5034,
6991,
273,
316,
2998,
688,
31546,
18,
4110,
986,
751,
12,
203,
5411,
1234,
... |
pragma solidity ^0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
... | @dev A mapping from masterpiece ids to the address that owns them. | mapping (uint256 => address) public masterpieceToOwner;
| 13,019,462 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
432,
2874,
628,
4171,
30100,
3258,
358,
326,
1758,
716,
29065,
2182,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
5034,
516,
1758,
13,
1071,
4171,
30100,
774,
5541,
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,
-... |
pragma solidity 0.4.26;
contract Moloch {
using SafeMath for uint256;
/***************
GLOBAL CONSTANTS
***************/
uint256 public periodDuration; // default = 17280 = 4.8 hours in seconds (5 periods per day)
uint256 public votingPeriodLength; // default = 35 periods (7 days)
uint25... | * @dev Multiplies two unsigned integers, 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;
}
| 1,196,417 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
5991,
5259,
2795,
9088,
12321,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
69,
422,
374,
13,
288,
203,
5411,
327,
374,
31,
203,
3639,
289,
203,
203,
540,
2254,
5034,
276,
... |
./full_match/1/0x4b3f7F7816701d1fD665f0AD6dD046Af9Cab3999/sources/ERC20Leven.sol | flag for airdrop wallets
| mapping (address => bool) private airdropWallet; | 2,944,286 | [
1,
4625,
348,
7953,
560,
30,
225,
2982,
364,
279,
6909,
1764,
17662,
2413,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2874,
261,
2867,
516,
1426,
13,
3238,
279,
6909,
1764,
16936,
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... |
./full_match/44787/0xECEDF02F8760E8b32B12F98e66506d807B404f78/sources/contracts/StarFarm.sol | MasterChef is the master of Star. He can make Star and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once STAR is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's ... | contract MasterChef is Initializable, OwnableUpgradeable {
using SafeMathUpgradeable for uint256;
using SafeERC20Upgradeable for IERC20Upgradeable;
struct UserInfo {
uint256 lastDeposit;
uint256 nftAmount;
uint256 nftRewardDebt;
uint256 nftLastDeposit;
}
struct Poo... | 13,277,369 | [
1,
4625,
348,
7953,
560,
30,
225,
13453,
39,
580,
74,
353,
326,
4171,
434,
934,
297,
18,
8264,
848,
1221,
934,
297,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429,
471,
326,
3410,
341,
491,
87,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13453,
39,
580,
74,
353,
10188,
6934,
16,
14223,
6914,
10784,
429,
288,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
10784,
429,
364,
467,
654,
39,
3462,
10784,
429,
... |
pragma solidity ^0.6.4;
pragma experimental ABIEncoderV2;
import "@connext/contracts/src.sol/shared/libs/LibChannelCrypto.sol";
import "@connext/contracts/src.sol/shared/libs/LibCommitment.sol";
import "../staking/Staking.sol";
import "./MultisigData.sol";
/**
* This file is excluded from ethlint/solium because of... | @notice Execute a CALL on behalf of the multisignature wallet @return success A boolean indicating if the transaction was successful or not | function executeCall(
address to,
uint256 value,
bytes memory data
) internal returns (bool success) {
assembly {
success := call(not(0), to, value, add(data, 0x20), mload(data), 0, 0)
}
}
| 2,530,114 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7903,
279,
22753,
603,
12433,
6186,
434,
326,
22945,
724,
1231,
9230,
632,
2463,
2216,
432,
1250,
11193,
309,
326,
2492,
1703,
6873,
578,
486,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1836,
1477,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
19931,
288,
203,
5411,
2216,
519,
745,
12,
902,
12,... |
pragma solidity ^0.4.24;
// File: contracts/token/IETokenProxy.sol
/**
* MIT License
*
* Copyright (c) 2019 eToroX Labs
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software w... | * @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 private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
}
constructor() internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
function owner() public view returns(address) {
return _o... | 14,076,603 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
3238,
389,
8443,
31,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
565,
1758,
8808,
2416,
5541,
16,
203,
565,
1758,
8808,
394,
5541,
203,
225,
11272,
203,
203,
97,
203,
203,
... |
// 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 deficit, take from Strategy
| } else if (totalAvailable > credit) { | 6,186,376 | [
1,
4625,
348,
7953,
560,
30,
225,
12896,
1652,
335,
305,
16,
4862,
628,
19736,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
289,
469,
309,
261,
4963,
5268,
405,
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,
-1... |
./full_match/80001/0x5828C287320288e130740ed538f3852fAD13995D/sources/contracts/market/template/MarketTieredLeverage.sol | This function can be called if no orders need to be executed in the epoch. This will only be called if upkeep has missed, its a more effcient function to catch up missed epochs. TODO remove testing invariant to ensure total amount before == total amount after. | function _rebalanceMarketPools(
int256 previousExecutionPrice,
IOracleManagerFixedEpoch.MissedEpochExecutionInfo memory epochToExecute
) internal {
uint256[2] memory totalEffectiveLiquidityPoolType = calculateEffectiveLiquidity();
int256 effectiveValueChange = getEffectiveValueChange(
totalEff... | 846,124 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
445,
848,
506,
2566,
309,
1158,
11077,
1608,
358,
506,
7120,
316,
326,
7632,
18,
1220,
903,
1338,
506,
2566,
309,
731,
10102,
711,
25143,
16,
2097,
279,
1898,
16419,
71,
1979,
445,
358,
1044,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
225,
445,
389,
266,
12296,
3882,
278,
16639,
12,
203,
565,
509,
5034,
2416,
3210,
5147,
16,
203,
565,
1665,
16873,
1318,
7505,
14638,
18,
11729,
730,
14638,
3210,
966,
3778,
7632,
774,
5289,
203,
225,
262,
2713,
288,
203,
565,
22... |
//Address: 0x2e8f82c00670915b300fc355f55529d3655eef6b
//Contract name: Tracker
//Balance: 0 Ether
//Verification Date: 5/2/2017
//Transacion Count: 2
// CODE STARTS HERE
contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != owne... | client got charged for 1 period, so add that to their time paid
| Clients[client].time += Period; | 12,554,432 | [
1,
4625,
348,
7953,
560,
30,
225,
1004,
2363,
1149,
2423,
364,
404,
3879,
16,
1427,
527,
716,
358,
3675,
813,
30591,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
30655,
63,
2625,
8009,
957,
1011,
12698,
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,
... |
./full_match/1/0xe1CaA1216B2D9Fd88EC700C66D8Bff36bAB4eb6F/sources/contracts/core/defi/butter/ButterBatchProcessing.sol | Save the minted amount Butter as claimable token for the batch | batch.claimableTokenBalance = butterAmount;
| 4,922,755 | [
1,
4625,
348,
7953,
560,
30,
7074,
326,
312,
474,
329,
3844,
12484,
387,
487,
7516,
429,
1147,
364,
326,
2581,
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,
2581,
18,
14784,
429,
1345,
13937,
273,
1496,
387,
6275,
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,
-... |
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
pragma solidity ^0.8.0;
/**
* @title ... | * @dev Sets the mint price/ | function setPresalePrice(uint256 price) external onlyOwner {
require(price > 0, "Invalid price.");
presaleSharkPrice = price;
}
| 12,199,677 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
312,
474,
6205,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
445,
444,
12236,
5349,
5147,
12,
11890,
5034,
6205,
13,
3903,
1338,
5541,
288,
203,
540,
2583,
12,
8694,
405,
374,
16,
315,
1941,
6205,
1199,
1769,
203,
540,
4075,
5349,
1555,
1313,
5147,
273,
6205,
31,
203,
377,
289,
203,
... |
pragma solidity >=0.4.24;
import "../list/UintList.sol";
// 定义一个调用AddressList的合约
contract MockUintList {
using UintList for UintList.uintMap;
UintList.uintMap uints;
function insert(uint256 _uint) public returns (bool) {
return uints.insert(_uint);
}
function remove(uint256 _uint) public returns (boo... | 定义一个调用AddressList的合约 | contract MockUintList {
using UintList for UintList.uintMap;
UintList.uintMap uints;
function insert(uint256 _uint) public returns (bool) {
return uints.insert(_uint);
}
function remove(uint256 _uint) public returns (bool) {
return uints.remove(_uint);
}
function get(uint256 _idx) public view ... | 7,311,942 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
166,
111,
253,
165,
122,
236,
165,
121,
227,
165,
121,
108,
169,
113,
230,
168,
247,
106,
1887,
682,
168,
253,
231,
166,
243,
235,
168,
123,
104,
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,
1,
1,
0,
0,
0,
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,
7867,
5487,
682,
288,
203,
225,
1450,
7320,
682,
364,
7320,
682,
18,
11890,
863,
31,
203,
203,
225,
7320,
682,
18,
11890,
863,
2254,
87,
31,
203,
203,
225,
445,
2243,
12,
11890,
5034,
389,
11890,
13,
1071,
1135,
261,
643... |
./full_match/1/0x1f3Af095CDa17d63cad238358837321e95FC5915/sources/contracts/SVGGenerator.sol | current pixel color.
| uint256 current = (pixels[y * CANVAS_SIZE/2 + x/2] >> (4*(x%2))) & 15; | 17,137,149 | [
1,
4625,
348,
7953,
560,
30,
225,
783,
4957,
2036,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7734,
2254,
5034,
783,
273,
261,
21084,
63,
93,
380,
22709,
58,
3033,
67,
4574,
19,
22,
397,
619,
19,
22,
65,
1671,
261,
24,
21556,
92,
9,
22,
20349,
473,
4711,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import { StockHolderOnChainProxy } from "./StockHolderOnChainProxy.sol";
import { StringUtils } from "./StringUtils.sol";
contract StockRightApplyOnChainProxy /*is BaseStockRightApplyOnChain*/ {
address creator;
/**
存储合约版本
... | */* 逻辑合约地址(占位用)/* 市监局信息的管理合约地址/* 管理股东的合约地址/* 是否初始化/ | constructor() public{
creator = msg.sender;
}
| 1,018,449 | [
1,
4625,
348,
7953,
560,
30,
1195,
14,
225,
170,
227,
124,
169,
127,
244,
166,
243,
235,
168,
123,
104,
166,
255,
113,
166,
256,
227,
12,
166,
240,
259,
165,
126,
240,
168,
247,
106,
13176,
14,
225,
166,
121,
229,
168,
254,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
1435,
1071,
95,
203,
3639,
11784,
273,
1234,
18,
15330,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File: contracts/interface/ICoFiXV2Factory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.12;
interface ICoFiXV2Factory {
// All pairs: {ETH <-> ERC20 Token}
event PairCreated(address indexed token, address pair, uint256);
event NewGovernance(address _new);
event NewController... | setters for protocol governance */ | function setGovernance(address _new) external onlyGovernance {
governance = _new;
emit NewGovernance(_new);
receive() external payable {}
}
| 1,314,559 | [
1,
4625,
348,
7953,
560,
30,
225,
25627,
364,
1771,
314,
1643,
82,
1359,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
26770,
1643,
82,
1359,
12,
2867,
389,
2704,
13,
3903,
1338,
43,
1643,
82,
1359,
288,
203,
3639,
314,
1643,
82,
1359,
273,
389,
2704,
31,
203,
3639,
3626,
1166,
43,
1643,
82,
1359,
24899,
2704,
1769,
203,
565,
6798,
14... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
//
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▓▒░░░░░░▒▓▓▓▓▒▒▒▒░░░░░░░░... | @dev This function calls mineTo, but with rewardTo set as zero-address | function mine() public {
mineTo(address(0));
}
| 10,010,674 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1220,
445,
4097,
312,
558,
774,
16,
1496,
598,
19890,
774,
444,
487,
3634,
17,
2867,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
558,
1435,
1071,
288,
203,
565,
312,
558,
774,
12,
2867,
12,
20,
10019,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0x88aec82f14002a56014819f4e23a22eB32F528b1/sources/contracts/staking/Staking.sol | * @notice Allocate available tokens to a subgraph deployment from and indexer's stake. The caller must be the indexer or the indexer's operator. @param _indexer Indexer address to allocate funds from. @param _subgraphDeploymentID ID of the SubgraphDeployment where tokens will be allocated @param _tokens Amount of token... | function allocateFrom(
address _indexer,
bytes32 _subgraphDeploymentID,
uint256 _tokens,
address _allocationID,
bytes32 _metadata,
bytes calldata _proof
) external override notPaused {
_allocate(_indexer, _subgraphDeploymentID, _tokens, _allocationID, _met... | 3,838,755 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
22222,
2319,
2430,
358,
279,
21469,
6314,
628,
471,
12635,
1807,
384,
911,
18,
1021,
4894,
1297,
506,
326,
12635,
578,
326,
12635,
1807,
3726,
18,
632,
891,
389,
24541,
3340,
264,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10101,
1265,
12,
203,
3639,
1758,
389,
24541,
16,
203,
3639,
1731,
1578,
389,
1717,
4660,
6733,
734,
16,
203,
3639,
2254,
5034,
389,
7860,
16,
203,
3639,
1758,
389,
29299,
734,
16,
203,
3639,
1731,
1578,
389,
4165,
16,
... |
./full_match/5/0xB059401C4cD2a5083E8468C406396C24C2604050/sources/project_/contracts/StakingEME.sol | Withdraw randomly deposite Ethereum | function withdrawETH(address _to, uint256 _amount) external payable onlyOperator {
require(payable(_to).send(_amount));
}
| 7,060,228 | [
1,
4625,
348,
7953,
560,
30,
3423,
9446,
20153,
443,
4974,
512,
18664,
379,
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,
915,
598,
9446,
1584,
44,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
3903,
8843,
429,
1338,
5592,
288,
203,
3639,
2583,
12,
10239,
429,
24899,
869,
2934,
4661,
24899,
8949,
10019,
203,
97,
203,
203,
2,
-100,
-100,
-100,
... |
... | inject NONSTANDARD NAMING
| function ETHPRICEINDAIWAD237() public view returns (uint) { | 6,348,716 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
512,
2455,
7698,
1441,
2356,
18194,
59,
1880,
4366,
27,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x346c782258932b2f1cBfB9101239e75bfc1B190C/sources/contracts/Crowdfund.sol | TODO Write a constructor for a specific token that the contract should receive constructor(address _token) { token = IERC20(_token); } | contract Crowdfund {
uint public count;
mapping(uint => Campaign) public allCampaigns;
mapping(uint => mapping(address => uint)) public donations;
mapping(uint => Campaign) public completedCampaigns;
struct Campaign {
uint id;
address owner;
string title;
string d... | 5,549,838 | [
1,
4625,
348,
7953,
560,
30,
2660,
2598,
279,
3885,
364,
279,
2923,
1147,
716,
326,
6835,
1410,
6798,
3885,
12,
2867,
389,
2316,
13,
288,
377,
1147,
273,
467,
654,
39,
3462,
24899,
2316,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
492,
2180,
1074,
288,
203,
565,
2254,
1071,
1056,
31,
203,
565,
2874,
12,
11890,
516,
17820,
13,
1071,
777,
13432,
87,
31,
203,
565,
2874,
12,
11890,
516,
2874,
12,
2867,
516,
2254,
3719,
1071,
2727,
1012,
31,
203,
... |
./full_match/137/0x602f47c53fbd3D6F6783F26E01623cCfd53268D0/sources/main-contract/main-contract/XUSDPrime.sol | Remove multiple BMP Violators | function removeMultipleBMPViolators(address[] memory accounts) external nonReentrant onlyOwner {
for(uint i = 0; i < accounts.length; i++) {
BMPViolatorsLib.remove(bmpViolators, accounts[i]);
}
}
| 4,787,734 | [
1,
4625,
348,
7953,
560,
30,
225,
3581,
3229,
605,
4566,
776,
6242,
3062,
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,
1206,
8438,
38,
4566,
28658,
3062,
12,
2867,
8526,
3778,
9484,
13,
3903,
1661,
426,
8230,
970,
1338,
5541,
288,
203,
3639,
364,
12,
11890,
277,
273,
374,
31,
277,
411,
9484,
18,
2469,
31,
277,
27245,
288,
203,
3639,
6... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20BurnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20PausableUpgradeable.sol";
import "... | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
whenNotPaused
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
k... | 14,416,862 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
24117,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
632,
891,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
632,
891,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
./partial_match/1/0xDD3A8f6793AFBFA8d7C8e2B19106175DcCabEc41/sources/ELCK.sol | * @dev Calculate bonus Suns for a new stake, if any @param newStakedSuns Number of Suns to stake @param newStakedDays Number of days to stake// Must be more than 1 day for Longer-Pays-Better */ | function _stakeStartBonusSuns(uint256 newStakedSuns, uint256 newStakedDays)
private
pure
returns (uint256 bonusSuns)
{
LONGER PAYS BETTER:
If longer than 1 day stake is committed to, each extra day
gives bonus shares of approximately 0.0548%, which is... | 4,031,299 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9029,
324,
22889,
348,
27595,
364,
279,
394,
384,
911,
16,
309,
1281,
632,
891,
394,
510,
9477,
55,
27595,
3588,
434,
348,
27595,
358,
384,
911,
632,
891,
394,
510,
9477,
9384,
3588,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
334,
911,
1685,
38,
22889,
55,
27595,
12,
11890,
5034,
394,
510,
9477,
55,
27595,
16,
2254,
5034,
394,
510,
9477,
9384,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
324,
22889,
55,
2759... |
// File: @aragon/os/contracts/lib/token/ERC20.sol
// See https://github.com/OpenZeppelin/openzeppelin-solidity/blob/a9f910d34f0ab33a1ae5e714f69f9596a02b4d91/contracts/token/ERC20/ERC20.sol
pragma solidity ^0.4.24;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC2... | File: @aragon/os/contracts/lib/standards/ERC165.sol SPDX-License-Identifier: MIT/ Includes supportsInterface method: | contract ERC165 {
bytes4 internal constant ERC165_INTERFACE_ID = bytes4(0x01ffc9a7);
function newAction(uint256 _disputableActionId, bytes _context, address _submitter) external returns (uint256);
function closeAction(uint256 _actionId) external;
function challengeAction(uint256 _actionId, uint256 _s... | 15,422,506 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
632,
297,
346,
265,
19,
538,
19,
16351,
87,
19,
2941,
19,
10005,
87,
19,
654,
39,
28275,
18,
18281,
11405,
28826,
17,
13211,
17,
3004,
30,
565,
490,
1285,
19,
657,
8993,
6146,
1358,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
28275,
288,
203,
565,
1731,
24,
2713,
5381,
4232,
39,
28275,
67,
18865,
67,
734,
273,
1731,
24,
12,
20,
92,
1611,
1403,
71,
29,
69,
27,
1769,
203,
203,
565,
445,
394,
1803,
12,
11890,
5034,
389,
2251,
458,
42... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../SwapUtils.sol";
/**
* @title PermissionlessSwapUtils library
* @notice A library to be used within Swap.sol. Contains functions responsi... | * @notice Withdraw all admin fees to two addresses evenly @param self Swap struct to withdraw fees from @param creator Address to send hald of the fees to. For the creator of the community pool. @param protocol Address to send the half of the fees to. For the protocol fee collection./ | ) internal {
IERC20[] memory pooledTokens = self.pooledTokens;
for (uint256 i = 0; i < pooledTokens.length; i++) {
IERC20 token = pooledTokens[i];
uint256 balance = token.balanceOf(address(this)).sub(
self.balances[i]
) / 2;
if (balance... | 15,849,134 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
777,
3981,
1656,
281,
358,
2795,
6138,
5456,
715,
632,
891,
365,
12738,
1958,
358,
598,
9446,
1656,
281,
628,
632,
891,
11784,
5267,
358,
1366,
19514,
72,
434,
326,
1656,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
467,
654,
39,
3462,
8526,
3778,
25007,
5157,
273,
365,
18,
1631,
20212,
5157,
31,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
25007,
5157,
18,
2469,
31,
277,
27245,
288,
203,
5... |
./full_match/1/0xEB26262c814c132ab3716BF1a43B94F563a0CC9d/sources/contracts/FlowtyInkArt.sol | Just in case anyone sends us any random ERC20 | function withdrawErc20(address erc20Contract, uint256 _amount) public onlyOwner {
uint256 erc20Balance = IERC20(erc20Contract).balanceOf(address(this));
require(erc20Balance >= _amount, "Insufficient funds: not enough ERC20");
IERC20(erc20Contract).transfer(msg.sender, _amount);
}
| 16,521,320 | [
1,
4625,
348,
7953,
560,
30,
225,
12526,
316,
648,
1281,
476,
9573,
584,
1281,
2744,
4232,
39,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
41,
1310,
3462,
12,
2867,
6445,
71,
3462,
8924,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
565,
2254,
5034,
6445,
71,
3462,
13937,
273,
467,
654,
39,
3462,
12,
12610,
3462,
8924,
2934,
12296,
... |
./partial_match/1/0x41353Ef12FCD2BeE88dBCe07e710FEF6D37Fa282/sources/TwapManager.sol | * @title Represents a resource that requires initialization./ | contract CustomInitializable {
bool private _wasInitialized;
modifier ifInitialized () {
require(_wasInitialized, "Not initialized yet");
_;
}
modifier ifNotInitialized () {
require(!_wasInitialized, "Already initialized");
_;
}
function _initializationComplete... | 4,005,548 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
868,
6706,
87,
279,
1058,
716,
4991,
10313,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6082,
4435,
6934,
288,
203,
565,
1426,
3238,
389,
17416,
11459,
31,
203,
203,
565,
9606,
309,
11459,
1832,
288,
203,
3639,
2583,
24899,
17416,
11459,
16,
315,
1248,
6454,
4671,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
... |
pragma solidity ^0.4.14;
/**
* @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;
/**
* @dev The Ownable constructor sets the origin... | @dev Assigns a new address to act as the CEO. Only available to the current CEO. @param _newCEO The address of the new CEO | function setCEO(address _newCEO) external onlyCEO {
require(_newCEO != address(0));
ceoAddress = _newCEO;
}
| 418,691 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
12093,
87,
279,
394,
1758,
358,
1328,
487,
326,
29538,
51,
18,
5098,
2319,
358,
326,
783,
29538,
51,
18,
632,
891,
389,
2704,
1441,
51,
1021,
1758,
434,
326,
394,
29538,
51,
2,
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,
565,
445,
444,
1441,
51,
12,
2867,
389,
2704,
1441,
51,
13,
3903,
1338,
1441,
51,
288,
203,
3639,
2583,
24899,
2704,
1441,
51,
480,
1758,
12,
20,
10019,
203,
203,
3639,
276,
4361,
1887,
273,
389,
2704,
1441,
51,
31,
203,
565,
... |
pragma solidity 0.4.19;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
... | send ether to the fund collection wallet override to create custom fund forwarding mechanisms | function forwardFunds(uint256 weiAmount) internal {
wallet.transfer(weiAmount);
}
| 14,724,431 | [
1,
4625,
348,
7953,
560,
30,
225,
1366,
225,
2437,
358,
326,
284,
1074,
1849,
9230,
3849,
358,
752,
1679,
284,
1074,
20635,
1791,
28757,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5104,
42,
19156,
12,
11890,
5034,
732,
77,
6275,
13,
2713,
288,
203,
3639,
9230,
18,
13866,
12,
1814,
77,
6275,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x19400486b83677E758fC13cb0844EB97f8D841F8/sources/BinaryCat.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
pragma solidity 0.8.17;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 4,029,374 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
4033,
31,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565... |
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
... | * @dev Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint. @return A boolean that indicates if the operation was successful./ | function mint(address _to, uint256 _amount) onlyOwner canMint public returns (bool) {
if (totalSupply.add(_amount) > 1000000000000000000000000000) {
return false;
}
totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount);
Transfer(address... | 1,205,046 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
312,
474,
2430,
632,
891,
389,
869,
1021,
1758,
716,
903,
6798,
326,
312,
474,
329,
2430,
18,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
312,
474,
18,
632,
2463,
432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1338,
5541,
848,
49,
474,
1071,
1135,
261,
6430,
13,
288,
203,
565,
309,
261,
4963,
3088,
1283,
18,
1289,
24899,
8949,
13,
405,
2130,
12648,
12648,
2787,
11... |
/**
*Submitted for verification at Etherscan.io on 2021-12-16
*/
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence s... | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract EVERYTHING is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address payable private dev1Wallet;
address payabl... | 6,768,493 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
512,
17529,
2455,
1360,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
825... |
./full_match/44787/0x339e30481b3e3c8a78e7877a3d6Ff06B375e9376/sources/src/Crowdsale/Crowdsale.sol | * @dev Sends buying tokens to wallet./ | function _forwardFunds(uint256 weiCost) internal {
quote.safeTransferFrom(_msgSender(), wallet, weiCost);
}
| 13,246,430 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2479,
87,
30143,
310,
2430,
358,
9230,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11565,
42,
19156,
12,
11890,
5034,
732,
77,
8018,
13,
2713,
288,
203,
3639,
3862,
18,
4626,
5912,
1265,
24899,
3576,
12021,
9334,
9230,
16,
732,
77,
8018,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x2b62b816e89Ab6105f16B80CFd269017b79C45E5/sources/contracts/FlickENS.sol | * @dev used by the deployment scripts to check if an address is already a signer to avoid setting it again/ | function isSigner(address signer) public view returns (bool) {
return signers.contains(signer);
}
| 17,029,682 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1399,
635,
326,
6314,
8873,
358,
866,
309,
392,
1758,
353,
1818,
279,
10363,
358,
4543,
3637,
518,
3382,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
15647,
12,
2867,
10363,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
565,
327,
1573,
414,
18,
12298,
12,
2977,
264,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.4;
import "./interfaces/IFulfillInterpreter.sol";
import "./interfaces/ITransactionManager.sol";
import "./interpreters/FulfillInterpreter.sol";
import "./ProposedOwnable.sol";
import "./lib/LibAsset.sol";
import "@openzeppelin/contracts/utils/Address.sol";
im... | * @notice This function creates a crosschain transaction. When called on the sending chain, the user is expected to lock up funds. When called on the receiving chain, the router deducts the transfer amount from the available liquidity. The majority of the information about a given transf... | function prepare(
InvariantTransactionData calldata invariantData,
uint256 amount,
uint256 expiry,
bytes calldata encryptedCallData,
bytes calldata encodedBid,
bytes calldata bidSignature
) external payable override nonReentrant returns (TransactionData memory) {
require(invariantData.us... | 12,596,544 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
445,
3414,
279,
6828,
5639,
2492,
18,
5203,
2566,
603,
540,
326,
5431,
2687,
16,
326,
729,
353,
2665,
358,
2176,
731,
284,
19156,
18,
5203,
540,
2566,
603,
326,
15847,
2687,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
2911,
12,
203,
565,
657,
8688,
3342,
751,
745,
892,
22514,
751,
16,
203,
565,
2254,
5034,
3844,
16,
203,
565,
2254,
5034,
10839,
16,
203,
565,
1731,
745,
892,
6901,
1477,
751,
16,
203,
565,
1731,
745,
892,
3749,
17763... |
pragma solidity 0.4.19;
/// @title ERC223 interface
interface ERC223 {
function totalSupply() public view returns (uint);
function name() public view returns (string);
function symbol() public view returns (string);
function decimals() public view returns (uint8);
function balanceOf(add... | @title ERC223 interface | interface ERC223 {
function totalSupply() public view returns (uint);
function name() public view returns (string);
function symbol() public view returns (string);
function decimals() public view returns (uint8);
function balanceOf(address _owner) public view returns (uint);
function transfer(a... | 901,612 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4232,
39,
3787,
23,
1560,
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,
5831,
4232,
39,
3787,
23,
288,
203,
203,
565,
445,
2078,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
1769,
203,
565,
445,
508,
1435,
1071,
1476,
1135,
261,
1080,
1769,
203,
565,
445,
3273,
1435,
1071,
1476,
1135,
261,
1080,
1... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
contract Ownership {
address owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner, "Must be the owner of the smart contract");
_;
}
}
contract Vault {
... | inherit other smart contracts | contract Secret is Ownership {
address secretVault;
constructor(string memory _secret) public {
Vault _secretVault = new Vault(_secret);
secretVault = address(_secretVault);
super;
}
function getSecret() public view onlyOwner returns(string memory) {
Vault _secr... | 5,400,721 | [
1,
4625,
348,
7953,
560,
30,
225,
6811,
1308,
13706,
20092,
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,
16351,
7875,
353,
14223,
9646,
5310,
288,
203,
565,
1758,
4001,
12003,
31,
203,
377,
203,
565,
3885,
12,
1080,
3778,
389,
5875,
13,
1071,
288,
203,
3639,
17329,
389,
5875,
12003,
273,
394,
17329,
24899,
5875,
1769,
203,
3639,
4001,... |
./full_match/3/0xdC60c3B63B018e759964A221C06Bc45b3594Fab5/sources/browser/DcashStaking.sol | * @dev Internal function to calculate reward/ | function _calculateStakeReward(uint _stakeAmount) internal view returns(uint) {
if (_isGainedMonth() == false) return 0;
return _stakeAmount.div(totalStakedAmount).mul(totalMonthlyGain);
}
| 8,237,207 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
4604,
19890,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11162,
510,
911,
17631,
1060,
12,
11890,
389,
334,
911,
6275,
13,
2713,
1476,
1135,
12,
11890,
13,
288,
203,
3639,
309,
261,
67,
291,
43,
8707,
5445,
1435,
422,
629,
13,
327,
374,
31,
203,
203,
3639,
327,
389,
... |
./full_match/5/0xe8A1a3F7EF6B0b03774FA389108dA3D563B17915/sources/contracts/governance/Controller.sol | * @dev Contract constructor./ | constructor() {
Governed._initialize(msg.sender);
_setPaused(true);
}
| 1,919,105 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
3885,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
611,
1643,
11748,
6315,
11160,
12,
3576,
18,
15330,
1769,
203,
203,
3639,
389,
542,
28590,
12,
3767,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >=0.4.24 < 0.6.4;
// Import the library 'Roles'
import "./Roles.sol";
// Define a contract 'RetailerRole' to manage this role - add, remove, check
contract RetailerRole {
using Roles for Roles.Role;
// Define 2 events, one for Adding, and other for Removing
event RetailerAdded(address i... | Define an internal function '_removeRetailer' to remove this role, called by 'removeRetailer' | function _removeRetailer(address account) internal {
Retailers.remove(account);
emit RetailerRemoved(account, Retailers.name[account]);
}
| 12,902,354 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
392,
2713,
445,
2070,
4479,
54,
1641,
264,
11,
358,
1206,
333,
2478,
16,
2566,
635,
296,
4479,
54,
1641,
264,
11,
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,
225,
445,
389,
4479,
54,
1641,
264,
12,
2867,
2236,
13,
2713,
288,
203,
565,
534,
1641,
414,
18,
4479,
12,
4631,
1769,
203,
565,
3626,
534,
1641,
264,
10026,
12,
4631,
16,
534,
1641,
414,
18,
529,
63,
4631,
19226,
203,
225,
2... |
// This file is part of the Blockchain Data Trading Simulator
// https://gitlab.com/MatthiasLohr/bdtsim
//
// Copyright 2020 Matthias Lohr <mail@mlohr.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtai... | function to verify Merkle Tree proofs | function vrfy(uint _index, bytes32 _value, bytes32[depth] memory _proof) public view returns (bool) {
for (uint i = 0; i < depth; i++) {
if ((_index & 1 << i) >>i == 1)
_value = keccak256(abi.encodePacked(_proof[depth - i - 1], _value));
else
_value = ... | 950,310 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
358,
3929,
31827,
4902,
14601,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
20466,
93,
12,
11890,
389,
1615,
16,
1731,
1578,
389,
1132,
16,
1731,
1578,
63,
5979,
65,
3778,
389,
24207,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
3598,
31,
... |
./full_match/1/0x591C4ABF20f61A8b0Ee06A5a2d2D2337241FE970/sources/contracts/SafEth/SafEth.sol | * @notice - Allows owner to rebalance between 2 derivatives, selling 1 for the other @param _sellDerivativeIndex - index of the derivative to sell @param _buyDerivativeIndex - index of the derivative to buy @param _sellAmount - amount of the derivative to sell/ | function derivativeRebalance(
uint256 _sellDerivativeIndex,
uint256 _buyDerivativeIndex,
uint256 _sellAmount
) external onlyOwner {
if (_sellDerivativeIndex >= derivativeCount) revert IndexOutOfBounds();
if (_buyDerivativeIndex >= derivativeCount) revert IndexOutOfBounds(... | 3,148,238 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
300,
25619,
3410,
358,
283,
12296,
3086,
576,
9630,
8785,
16,
357,
2456,
404,
364,
326,
1308,
632,
891,
389,
87,
1165,
26239,
1535,
1016,
300,
770,
434,
326,
16417,
358,
357,
80,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16417,
426,
12296,
12,
203,
3639,
2254,
5034,
389,
87,
1165,
26239,
1535,
1016,
16,
203,
3639,
2254,
5034,
389,
70,
9835,
26239,
1535,
1016,
16,
203,
3639,
2254,
5034,
389,
87,
1165,
6275,
203,
565,
262,
3903,
1338,
554... |
/**
*Submitted for verification at Etherscan.io on 2020-07-13
*/
pragma solidity 0.5.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uin... | / Mint handle function Contadmin() public view returns (address) {return admin;} | function totalSupply() public view returns (uint256) {return _totalSupply;}
| 6,376,957 | [
1,
4625,
348,
7953,
560,
30,
342,
490,
474,
1640,
377,
445,
1816,
3666,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
2463,
3981,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
2463,
389,
4963,
3088,
1283,
31,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/EnumerableSet.sol";*/
import "@openzeppelin/contract... | * @dev Getter for {Burn_Authorities} @return Return all address allowed to burn tokens/ | function Get_Burn_Authorities() external view returns(bytes32[] memory){
return Burn_Authorities._inner._values;
}
| 943,472 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
387,
364,
288,
38,
321,
67,
3594,
1961,
97,
632,
2463,
2000,
777,
1758,
2935,
358,
18305,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
968,
67,
38,
321,
67,
3594,
1961,
1435,
3903,
1476,
1135,
12,
3890,
1578,
8526,
3778,
15329,
203,
3639,
327,
605,
321,
67,
3594,
1961,
6315,
7872,
6315,
2372,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-10... |
pragma solidity 0.4.25;
import "./SafeMath.sol";
import "./ISettings.sol";
import "./IToken.sol";
import "./IOracle.sol";
import "./ITBoxManager.sol";
/// @title Gate
contract Gate {
using SafeMath for uint256;
/// @notice The address of the admin account.
address public admin;
// Fee percentage fo... | @dev Cancels an Order. | function cancel(uint256 _id) external {
require(orders[_id].owner == msg.sender, "Order isn't yours");
uint256 tmv = orders[_id].amount;
delete orders[_id];
IToken(settings.tmvAddress()).transfer(msg.sender, tmv);
emit OrderCancelled(_id, msg.sender, tmv);
}
| 7,308,768 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
10347,
87,
392,
4347,
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,... | [
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,
3755,
12,
11890,
5034,
389,
350,
13,
3903,
288,
203,
3639,
2583,
12,
9972,
63,
67,
350,
8009,
8443,
422,
1234,
18,
15330,
16,
315,
2448,
5177,
1404,
3433,
87,
8863,
203,
203,
3639,
2254,
5034,
6118,
90,
273,
11077,
63... |
./partial_match/1/0xCc982d33525EBFB14B9c504428d02082043817D7/sources/contracts/ERC1155Bridges/L1ERC1155Bridge.sol | /** * @inheritdoc iL1ERC1155Bridge */ | function depositBatch(
address _l1Contract,
uint256[] memory _tokenIds,
uint256[] memory _amounts,
bytes memory _data,
uint32 _l2Gas
)
external
virtual
override
nonReentrant()
whenNotPaused()
{
_initiateDepositBatch(_l1C... | 9,296,490 | [
1,
4625,
348,
7953,
560,
30,
225,
1783,
225,
380,
632,
10093,
277,
48,
21,
654,
39,
2499,
2539,
13691,
225,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
4497,
12,
203,
3639,
1758,
389,
80,
21,
8924,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
2316,
2673,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
8949,
87,
16,
203,
3639,
1731,
3778,
389,
892,
16,
203,
3639... |
// -----------------------------------------------------------------------------
// File RUS_NOUNS_PARADIGMAS.SOL
//
// (c) Koziev Elijah
// SOLARIX Intellectronix Project http://www.solarix.ru
//
// Лексикон - определения таблиц формообразования (парадигм) для существительных.
//
// Русские существительные http://www... | КАМЕШКУ КАМЕШКАМ
| ПАДЕЖ:ДАТ ЧИСЛО { "%c1%+У" "%c1%+АМ" } | 5,383,101 | [
1,
4625,
348,
7953,
560,
30,
282,
225,
145,
253,
145,
243,
145,
255,
145,
248,
145,
106,
145,
253,
145,
101,
225,
225,
145,
253,
145,
243,
145,
255,
145,
248,
145,
106,
145,
253,
145,
243,
145,
255,
203,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
225,
145,
258,
145,
243,
145,
247,
145,
248,
145,
249,
30,
145,
247,
145,
243,
145,
100,
377,
225,
145,
105,
145,
251,
145,
99,
145,
254,
145,
257,
288,
2213,
71,
21,
9,
15,
145,
101,
6,
225,
2213,
71,
21,
9,
15,
1... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children ... | *~~~> For tracking contract addresses | contract MarketRoleProvider is AccessControl, ReentrancyGuard {
address public marketplaceAdd;
address public daoAdd;
address public nftAdd;
address public marketMintAdd;
address public offersAdd;
address public tradesAdd;
address public bidsAdd;
address public rewardsAdd;
address public roleAdd;
a... | 1,324,451 | [
1,
4625,
348,
7953,
560,
30,
380,
7650,
98,
34,
2457,
11093,
6835,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6622,
278,
2996,
2249,
353,
24349,
16,
868,
8230,
12514,
16709,
288,
203,
203,
225,
1758,
1071,
29917,
986,
31,
203,
225,
1758,
1071,
15229,
986,
31,
203,
225,
1758,
1071,
290,
1222,
986,
31,
203,
225,
1758,
1071,
13667,
4... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import "./interfaces/IBorrowerOps.sol";
import "./interfaces/IVaultManager.sol";
import "./interfaces/IOSDToken.sol";
import "./interfaces/ICollSurplusPool.sol";
import "./interfaces/ISortedVaults.sol";
import "./Dependencies/OrumBase.sol";
import "./Dependenci... | --- Dependency setters --- This makes impossible to open a vault with zero withdrawn OSD checkContract(_orumFeeDistributionAddress); | function setAddresses(
address _vaultManagerAddress,
address _activePoolAddress,
address _defaultPoolAddress,
address _stabilityPoolAddress,
address _gasPoolAddress,
address _collSurplusPoolAddress,
address _priceFeedAddress,
address _sortedVaultsAddre... | 5,400,183 | [
1,
4625,
348,
7953,
560,
30,
225,
9948,
11993,
25627,
9948,
1220,
7297,
23343,
358,
1696,
279,
9229,
598,
3634,
598,
9446,
82,
5932,
40,
866,
8924,
24899,
16105,
14667,
9003,
1887,
1769,
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,
565,
445,
444,
7148,
12,
203,
3639,
1758,
389,
26983,
1318,
1887,
16,
203,
3639,
1758,
389,
3535,
2864,
1887,
16,
203,
3639,
1758,
389,
1886,
2864,
1887,
16,
203,
3639,
1758,
389,
334,
2967,
2864,
1887,
16,
203,
3639,
1758,
389,
... |
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
/* pragma solidity ^0.8.0; */
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direc... | generate the uniswap pair path of token -> weth make the swap | function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(tokenAddress);
path[1] = uniswapV2Router.WETH();
IERC20(tokenAddress).approve(address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSu... | 13,425,634 | [
1,
4625,
348,
7953,
560,
30,
225,
2103,
326,
640,
291,
91,
438,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
5157,
1290,
41,
451,
12,
11890,
5034,
1147,
6275,
13,
3238,
288,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2316,
1887,
1769,
203,
3639,
589,... |
pragma solidity ^0.4.24;
contract fortunes {
string public standard = 'Fortunes';
string public name;
string public symbol;
uint8 public decimals;
address owner;
uint public max_fortunes;
uint public unopened_bid;
bytes32[] public ur_luck; //... | bid auction return the previous bid | function fortune_bid(uint _idx) public payable idx_inrange(_idx) {
require(fortune_arr[_idx].forsale, "fortune not for sale");
require(now < fortune_arr[_idx].auction_end, "auction ended");
require(msg.value > fortune_arr[_idx].current_bid,
"new bid has to be higher than current... | 15,788,425 | [
1,
4625,
348,
7953,
560,
30,
225,
9949,
279,
4062,
327,
326,
2416,
9949,
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,
364,
88,
7556,
67,
19773,
12,
11890,
389,
3465,
13,
1071,
8843,
429,
2067,
67,
267,
3676,
24899,
3465,
13,
288,
203,
3639,
2583,
12,
18850,
7556,
67,
5399,
63,
67,
3465,
8009,
74,
1383,
5349,
16,
315,
18850,
7556,
486... |
./full_match/43114/0xDdFF64Bf539A8cCADfa8dCc219FB4a205d83a4B0/sources/TAPE.sol | * @dev called by the owner to unpause, returns to normal state/ | function unpause() public onlyOwner whenPaused {
paused = false;
emit Pause(paused);
}
| 4,517,477 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2566,
635,
326,
3410,
358,
640,
19476,
16,
1135,
358,
2212,
919,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
640,
19476,
1435,
1071,
1338,
5541,
1347,
28590,
288,
203,
3639,
17781,
273,
629,
31,
203,
3639,
3626,
31357,
12,
8774,
3668,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x3e4E8ECB65cB5bA5E791BB955F8Bbc5c9Ad421c7/sources/contracts/SPT.sol | * @dev lifetime Accumulated SPT tokens for a node./ node is still registered then current time, else unreg time cap at node emission end time node registered after node emission end | function totalAccumulatedNode(uint256 nodeId) public view override returns (uint256) {
require(ISpirits(_spiritsAddress).nodeExists(nodeId), "Node with specified id does not exist");
uint256 regTime = ISpirits(_spiritsAddress).nodeRegTime(nodeId);
uint256 unregTime = ISpirits(_spiritsAddress... | 8,489,903 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12486,
15980,
5283,
690,
348,
1856,
2430,
364,
279,
756,
18,
19,
756,
353,
4859,
4104,
1508,
783,
813,
16,
469,
640,
1574,
813,
3523,
622,
756,
801,
19710,
679,
813,
756,
4104,
1839,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
8973,
5283,
690,
907,
12,
11890,
5034,
11507,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
45,
3389,
481,
1282,
24899,
1752,
481,
1282,
1887,
2934,
2159,
4002,
12,
2159,
548,
3631,
3... |
pragma solidity ^0.4.24;
contract Token{
// token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().
uint256 public totalSupply;
/// 获取账户_owner拥有token的数量
function balanceOf(address _owner) constant public returns (uint256 balance);
//从消息发送者账户中往_to账户转数量为_value的token
function transfer(address _to,... | token总量,默认会为public变量生成一个getter函数接口,名称为totalSupply().从消息发送者账户中往_to账户转数量为_value的token从账户_from中往账户_to转数量为_value的token,与approve方法配合使用消息发送账户设置账户_spender能从发送账户中转出数量为_value的token获取账户_spender可以从账户_owner中转出token的数量发生转账时必须要触发的事件当函数approve(address _spender, uint256 _value)成功执行时必须触发的事件 | contract Token{
uint256 public totalSupply;
function balanceOf(address _owner) constant public returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) public returns
(bool success... | 1,650,343 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
167,
227,
124,
170,
234,
242,
176,
125,
239,
170,
124,
251,
169,
111,
102,
165,
125,
253,
165,
121,
123,
482,
166,
242,
251,
170,
234,
242,
168,
247,
258,
167,
235,
243,
165,
121,
227,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3155,
95,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
203,
565,
445,
11013,
951,
12,
2867,
389,
8443,
13,
5381,
1071,
1135,
261,
11890,
5034,
11013,
1769,
203,
203,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
... |
./full_match/4/0x3741DbD741A8bc590D7Ddd80f6Bc83CD45375abA/sources/SSGTx.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ emit Transfer(account, address(0), amount); | function _burn(address account, uint256 amount) internal {
require(account != address(0), 'ERC20: burn from the zero address');
_balances[account] = _balances[account].sub(amount, 'ERC20: burn amount exceeds balance');
_totalSupply = _totalSupply.sub(amount);
}
| 743,686 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
296,
654,
39,
3462,
30,
18305,
628,
326,
3634,
1758,
8284,
203,
203,
3639,
389,
70,
26488,
63,
4... |
// SPDX-License-Identifier: DeFiat and Friends (Zeppelin, MIT...)
pragma solidity ^0.6.2;
import "./AnyStake_Constants.sol";
import "./AnyStake_Libraries.sol";
import "hardhat/console.sol";
//series of pool weighted by token price (using price oracles on chain)
contract AnyStake is AnyStakeBase, IAnyStake {
usin... | use of the ERC20 traditional transfer
| IERC20(_token).transfer(_recipient, _amount); | 12,956,945 | [
1,
4625,
348,
7953,
560,
30,
999,
434,
326,
4232,
39,
3462,
1284,
1460,
287,
7412,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3639,
467,
654,
39,
3462,
24899,
2316,
2934,
13866,
24899,
20367,
16,
389,
8949,
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,
... |
// File: contracts\lib\TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.6;
// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
function safeApprove(address token, address to, uint value) intern... | helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false | library TransferHelper {
function safeApprove(address token, address to, uint value) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
}... | 52,600 | [
1,
4625,
348,
7953,
560,
30,
225,
4222,
2590,
364,
16592,
310,
598,
4232,
39,
3462,
2430,
471,
5431,
512,
2455,
716,
741,
486,
11071,
715,
327,
638,
19,
5743,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
12279,
2276,
288,
203,
203,
203,
565,
445,
4183,
12053,
537,
12,
2867,
1147,
16,
1758,
358,
16,
2254,
460,
13,
2713,
288,
203,
3639,
261,
6430,
2216,
16,
1731,
3778,
501,
13,
273,
1147,
18,
1991,
12,
21457,
18,
3015,
119... |
// File: contracts/interfaces/IMarketHandler.sol
pragma solidity 0.6.12;
/**
* @title BiFi's market handler interface
* @author BiFi(seinmyung25, Miller-kk, tlatkdgus1, dongchangYoo)
*/
interface IMarketHandler {
function setCircuitBreaker(bool _emergency) external returns (bool);
function setCircuitBreakWithOwn... | * @dev Get the maximum amount that user can borrow @param requestedAmount The amount of token to borrow @param userLiquidityAmount The amount of liquidity that users can borrow @return the maximum amount that user can borrow/ Prevent Action: over "Token Liquidity" amount*/ select minimum of handlerLiqudity and user liq... | function _getUserActionMaxBorrowAmount(uint256 requestedAmount, uint256 userLiquidityAmount) internal view returns (uint256)
{
uint256 handlerLiquidityAmount = _getTokenLiquidityLimitAmount();
uint256 minAmount = requestedAmount;
if (minAmount > handlerLiquidityAmount)
{
minAmount = handlerLiquidityAmoun... | 1,420,259 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
4207,
3844,
716,
729,
848,
29759,
632,
891,
3764,
6275,
1021,
3844,
434,
1147,
358,
29759,
632,
891,
729,
48,
18988,
24237,
6275,
1021,
3844,
434,
4501,
372,
24237,
716,
3677,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
389,
588,
1299,
1803,
2747,
38,
15318,
6275,
12,
11890,
5034,
3764,
6275,
16,
2254,
5034,
729,
48,
18988,
24237,
6275,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
203,
202,
95,
203,
202,
202,
11890,
5034,
1838,
48,
1898... |
pragma solidity ^0.5.0;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/Prestamo.sol";
contract TestPrestamo {
// The address of the prestamo contract to be tested
Prestamo prestamo = Prestamo(DeployedAddresses.Prestamo());
// The id of the pet that will be used... | Assert.equal(cuota, cuotaEsperada, "La cuota esperada."); | function testUserSetOferta() public {
prestamo.setOferta(monto, plazo, interes);
uint cuota = prestamo.obtenerCuota();
emit logData(cuota);
}
| 2,560,254 | [
1,
4625,
348,
7953,
560,
30,
3639,
5452,
18,
9729,
12,
6319,
25441,
16,
15985,
25441,
6705,
457,
16524,
16,
315,
30745,
15985,
25441,
5001,
457,
16524,
1199,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
1299,
694,
51,
586,
2351,
1435,
1071,
288,
203,
3639,
675,
334,
301,
83,
18,
542,
51,
586,
2351,
12,
2586,
869,
16,
886,
1561,
83,
16,
1554,
281,
1769,
203,
3639,
2254,
15985,
25441,
273,
675,
334,
301,
83,
18... |
// SPDX-License-Identifier: UNLICENSED // THIS IS FOR THE WHALES SHAMOON TO THE MOON - SAFU DEV
pragma solidity ^0.8.7;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
... | Marketing Wallet Address
| address payable private MWAddress; | 14,610,145 | [
1,
4625,
348,
7953,
560,
30,
6622,
21747,
20126,
5267,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1758,
8843,
429,
3238,
16948,
1887,
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,
... |
./partial_match/1/0xeB40E25AF8F5F22Bb201f53971480beA0094Cd65/sources/src/v0.8/functions/dev/1_0_0/FunctionsBilling.sol | @notice Initiate the billing process for an Functions request @dev Only callable by the Functions Router @param request - Chainlink Functions request data, see FunctionsResponse.RequestMeta for the structure @return commitment - The parameters of the request that must be held consistent at response time Nodes should s... | function _startBilling(
FunctionsResponse.RequestMeta memory request
) internal returns (FunctionsResponse.Commitment memory commitment) {
Config memory config = s_config;
if (request.dataVersion > config.maxSupportedRequestDataVersion) {
revert UnsupportedRequestDataVersion();
}
uint72 ... | 4,322,604 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
26615,
326,
10709,
1207,
364,
392,
15486,
590,
632,
5206,
5098,
4140,
635,
326,
15486,
9703,
632,
891,
590,
300,
7824,
1232,
15486,
590,
501,
16,
2621,
15486,
1064,
18,
691,
2781,
364,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
1937,
13105,
12,
203,
565,
15486,
1064,
18,
691,
2781,
3778,
590,
203,
225,
262,
2713,
1135,
261,
7503,
1064,
18,
5580,
475,
3778,
23274,
13,
288,
203,
565,
1903,
3778,
642,
273,
272,
67,
1425,
31,
203,
203,
565,... |
//Address: 0xc4785a90e3d8d3191625ccf82623cb4daf5d6b0d
//Contract name: NETRico
//Balance: 0 Ether
//Verification Date: 4/4/2018
//Transacion Count: 4
// CODE STARTS HERE
pragma solidity ^0.4.20;
/**
* @title ICO SALE CONTRACT
* @dev ERC-20 Token Standard Compliant
*/
/**
* @title SafeMath by OpenZeppelin
* @dev Mat... | Minimum 100 base tokens
| require(tokenBought >= 100 * 10 ** 18); | 1,060,554 | [
1,
4625,
348,
7953,
560,
30,
23456,
2130,
1026,
2430,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
12,
2316,
13809,
9540,
1545,
2130,
380,
1728,
2826,
6549,
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,... |
./full_match/11155111/0xCF4eddFEA1A91C87cA82F34113c5C609E579ecbD/sources/project_/contracts/onefile_exhcange.sol | * Match taker order to a list of maker orders. Common addresses are passed in separately as an OrderAddressSet to reduce call size data and save gas. @param takerOrderParam A OrderParam object representing the order from the taker. @param makerOrderParams An array of OrderParam objects representing orders from a list o... | function matchOrders(
OrderParam memory takerOrderParam,
OrderParam[] memory makerOrderParams,
uint256[] memory baseTokenFilledAmounts,
OrderAddressSet memory orderAddressSet
) public {
require(canMatchOrdersFrom(orderAddressSet.relayer), INVALID_SENDER);
require(... | 3,787,527 | [
1,
4625,
348,
7953,
560,
30,
380,
4639,
268,
6388,
1353,
358,
279,
666,
434,
312,
6388,
11077,
18,
5658,
6138,
854,
2275,
316,
18190,
487,
392,
4347,
1887,
694,
358,
5459,
745,
963,
501,
471,
1923,
16189,
18,
632,
891,
268,
6388,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
845,
16528,
12,
203,
3639,
4347,
786,
3778,
268,
6388,
2448,
786,
16,
203,
3639,
4347,
786,
8526,
3778,
312,
6388,
2448,
1370,
16,
203,
3639,
2254,
5034,
8526,
3778,
1026,
1345,
29754,
6275,
87,
16,
203,
3639,
4347,
188... |
./full_match/1/0x96AdA1cd013b5A28548A5F8B8698f029A8DA30a2/sources/ShibWalletStaking.sol | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.stakedAmount;
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
return;... | 8,367,968 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-06
*/
pragma solidity 0.6.12;
/**
helper methods for interacting with ERC20 tokens that do not consistently return true/false
with the addition of a transfer function to send eth or an erc20 token
*/
library TransferHelper {
function safeApprove... | Can be called at any stage before or during the presale to cancel it before it ends. If the pair already exists on plasmaswap and it contains the presale token as liquidity the final stage of the presale 'addLiquidity()' will fail. This function allows anyone to end the presale prematurely to release funds in such a c... | function forceFailIfPairExists () external {
require(!STATUS.LP_GENERATION_COMPLETE && !STATUS.FORCE_FAILED);
if (SPACEPORT_LOCK_FORWARDER.plasmaswapPairIsInitialised(address(SPACEPORT_INFO.S_TOKEN), address(SPACEPORT_INFO.B_TOKEN))) {
STATUS.FORCE_FAILED = true;
emit spacepo... | 14,023,366 | [
1,
4625,
348,
7953,
560,
30,
225,
4480,
506,
2566,
622,
1281,
6009,
1865,
578,
4982,
326,
4075,
5349,
358,
3755,
518,
1865,
518,
3930,
18,
971,
326,
3082,
1818,
1704,
603,
886,
345,
15260,
91,
438,
471,
518,
1914,
326,
4075,
5349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2944,
3754,
2047,
4154,
4002,
1832,
3903,
288,
203,
3639,
2583,
12,
5,
8608,
18,
14461,
67,
13990,
2689,
67,
15795,
597,
401,
8608,
18,
27817,
67,
11965,
1769,
203,
3639,
309,
261,
6616,
6354,
67,
6589,
67,
7473,
16777,... |
/**
*Submitted for verification at Etherscan.io on 2020-10-28
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
// Subject to the MIT license.
/**
* Rekeep3r.network
* A standard implementation of kp3rv1 protocol
* Mint function capped
* Kept most of the original functionality
*/
library SafeMath {... | * @notice withdraw funds after unbonding has finished @param bonding the asset to withdraw from the bonding pool/ | function withdraw(address bonding) external nonReentrant {
require(unbondings[msg.sender][bonding] != 0 && unbondings[msg.sender][bonding] < now, "withdraw: unbonding");
require(!disputes[msg.sender], "withdraw: disputes");
if (bonding == address(this)) {
_transferTokens(address... | 256,325 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
598,
9446,
284,
19156,
1839,
640,
26425,
310,
711,
6708,
632,
891,
8427,
310,
326,
3310,
358,
598,
9446,
628,
326,
8427,
310,
2845,
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,
565,
445,
598,
9446,
12,
2867,
8427,
310,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
318,
26425,
899,
63,
3576,
18,
15330,
6362,
26425,
310,
65,
480,
374,
597,
640,
26425,
899,
63,
3576,
18,
15330,
6362,
26425,
3... |
/**
*Submitted for verification at Etherscan.io on 2020-02-20
*/
/**
*Submitted for verification at Etherscan.io on 2020-02-17
*/
pragma solidity ^0.5.2;
/**
* Copyright (c) 2018-present, Leap DAO (leapdao.org)
*
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE... | inject HASH WITH MUL VAR LEN ARG
| bytes32 txHash = keccak256(abi.encodePacked(_proof, _prevProof)); | 5,413,616 | [
1,
4625,
348,
7953,
560,
30,
4590,
20857,
13601,
490,
1506,
8350,
511,
1157,
13984,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1377,
1731,
1578,
2229,
2310,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
24899,
24207,
16,
389,
10001,
20439,
10019,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0x058F89DDac44c9fdAc20b3Cbe6D6541D07D37584/sources/vSURF.sol | * @dev Wrap SURF into vSURF @param _weiAmount Amount of SURF tokens (in wei) to wrap into vSURF/ | function wrap(uint256 _weiAmount)
external {
_wrapFor(_weiAmount, _msgSender(), false);
}
| 16,213,867 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
348,
1099,
42,
1368,
331,
26397,
42,
632,
891,
389,
1814,
77,
6275,
16811,
434,
348,
1099,
42,
2430,
261,
267,
732,
77,
13,
358,
2193,
1368,
331,
26397,
42,
19,
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,
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,
2193,
12,
11890,
5034,
389,
1814,
77,
6275,
13,
203,
565,
3903,
288,
203,
3639,
389,
4113,
1290,
24899,
1814,
77,
6275,
16,
389,
3576,
12021,
9334,
629,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.17;
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol
// Adapted to use pragma ^0.5.17 and satisfy our linter rules
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
string private constan... | No need for SafeMath: for addition note that `PCT_BASE` is lower than (2^256 - 2^16) | function pctIncrease(uint256 self, uint16 _pct) internal pure returns (uint256) {
return self.mul(PCT_BASE + uint256(_pct)) / PCT_BASE;
}
| 91,512 | [
1,
4625,
348,
7953,
560,
30,
225,
2631,
1608,
364,
14060,
10477,
30,
364,
2719,
4721,
716,
1375,
52,
1268,
67,
8369,
68,
353,
2612,
2353,
261,
22,
66,
5034,
300,
576,
66,
2313,
13,
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,
1,
0,
0,
0,
0,
0,
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,
19857,
382,
11908,
12,
11890,
5034,
365,
16,
2254,
2313,
389,
23989,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
365,
18,
16411,
12,
52,
1268,
67,
8369,
397,
2254,
5034,
24899,
23989,
3719,
342,
45... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../../abstract/MasterAware.sol";
import "../../interfaces/IClaims.sol";
import "../../interfaces/IClaimsData.sol";
import "../../interfaces/IClaimsReward.sol";
import "../../interfaces/IMemberR... | * @dev to update the owner parameters @param code is the associated code @param val is value to be set/ | function updateOwnerParameters(bytes8 code, address payable val) public onlyAuthorizedToGovern {
IQuotationData qd;
if (code == "MSWALLET") {
ITokenData td;
td = ITokenData(getLatestAddress("TD"));
td.changeWalletAddress(val);
IMemberRoles mr = IMemberRoles(getLatestAddress("MR"));
... | 1,749,085 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
358,
1089,
326,
3410,
1472,
632,
891,
981,
353,
326,
3627,
981,
632,
891,
1244,
353,
460,
358,
506,
444,
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,
225,
445,
1089,
5541,
2402,
12,
3890,
28,
981,
16,
1758,
8843,
429,
1244,
13,
1071,
1338,
15341,
774,
43,
1643,
82,
288,
203,
565,
467,
7678,
367,
751,
1043,
72,
31,
203,
565,
309,
261,
710,
422,
315,
3537,
59,
1013,
15146,
7... |
/**
*Submitted for verification at Etherscan.io on 2021-03-30
*/
// Copyright (C) 2020 Centrifuge
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or... | factory contracts lender state variables contract addresses token names restricted token member list | contract LenderDeployer is FixedPoint {
address public root;
address public currency;
TrancheFabLike public trancheFab;
ReserveFabLike public reserveFab;
AssessorFabLike public assessorFab;
CoordinatorFabLike public coordinatorFab;
OperatorFabLike publ... | 10,801,122 | [
1,
4625,
348,
7953,
560,
30,
225,
3272,
20092,
328,
2345,
919,
3152,
6835,
6138,
1147,
1257,
15693,
1147,
3140,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
511,
2345,
10015,
264,
353,
15038,
2148,
288,
203,
565,
1758,
1071,
1365,
31,
203,
565,
1758,
1071,
5462,
31,
203,
203,
565,
840,
304,
18706,
42,
378,
8804,
1850,
1071,
13637,
18706,
42,
378,
31,
203,
565,
1124,
6527,
42,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Cryptoverse.sol";
/**
* @title Cryptoverse Planet System
* @dev The cryptoverse astronaut system manages all astronauts (i.e. players). This contract can
* throw the following error codes:
*
* - E-A1: You do not have enough tokens to l... | * @dev Sets the level up cost factor. This is used to provide a function which levels up the player using a certain amount of tokens./ | function setLevelUpFactor(uint _levelUpFactor) external onlyOwner {
levelUpFactor = _levelUpFactor;
}
| 939,648 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
1801,
731,
6991,
5578,
18,
1220,
353,
1399,
358,
5615,
279,
445,
1377,
1492,
7575,
731,
326,
7291,
1450,
279,
8626,
3844,
434,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14355,
1211,
6837,
12,
11890,
389,
2815,
1211,
6837,
13,
3903,
1338,
5541,
288,
203,
3639,
1801,
1211,
6837,
273,
389,
2815,
1211,
6837,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
/// @title Smart Contract for used auto purchasing
/// @author Jason Cunningham
/// @notice This smart contract allows someone to reserve a test drive for a used automobile
/// @dev Smart contract inherits... | @notice Event emitted when a buyer reserves a test drive. @param carId Car ETH Identification Number @param buyer buyer address | event TestDriveReservation(uint256 indexed carId, address indexed buyer);
| 1,082,289 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2587,
17826,
1347,
279,
27037,
400,
264,
3324,
279,
1842,
14316,
18,
632,
891,
5926,
548,
225,
23672,
512,
2455,
13128,
1480,
3588,
632,
891,
27037,
27037,
1758,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
7766,
24681,
18074,
12,
11890,
5034,
8808,
5926,
548,
16,
1758,
8808,
27037,
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,
... |
./partial_match/1/0x3DA161b14872cF8caA243C6C410285b34F1003D1/sources/BABYTOKEN.sol | use by default 300,000 gas to process auto-claiming dividends exclude from receiving dividends exclude from paying fees or having max transaction amount | ) payable ERC20(name_, symbol_) {
rewardToken = addrs[0];
_marketingWalletAddress = addrs[2];
receiveAddress = _msgSender();
buyTokenRewardsFee = buyFeeSetting_[0];
buyLiquidityFee = buyFeeSetting_[1];
buyMarketingFee = buyFeeSetting_[2];
buyDeadFee = buyFeeS... | 2,717,347 | [
1,
4625,
348,
7953,
560,
30,
225,
999,
635,
805,
11631,
16,
3784,
16189,
358,
1207,
3656,
17,
14784,
310,
3739,
350,
5839,
4433,
628,
15847,
3739,
350,
5839,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
8843,
429,
4232,
39,
3462,
12,
529,
67,
16,
3273,
67,
13,
225,
288,
203,
3639,
19890,
1345,
273,
11755,
63,
20,
15533,
203,
3639,
389,
3355,
21747,
16936,
1887,
273,
11755,
63,
22,
15533,
203,
3639,
6798,
1887,
273,
3... |
pragma solidity ^0.4.16;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract DatGirl {
// Public variables of the token
string public name = "DatGirl";
string public symbol = "DATGIRL";
uint8 public decimals = 18;
... | @notice Buy tokens from contract by sending ether | function () payable internal {
uint amount = msg.value * buyPrice;
uint amountRaised;
amountRaised += msg.value;
require(balanceOf[creator] >= amount);
require(msg.value < 10**1... | 2,402,156 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
605,
9835,
2430,
628,
6835,
635,
5431,
225,
2437,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
8843,
429,
2713,
288,
203,
3639,
2254,
3844,
273,
1234,
18,
1132,
380,
30143,
5147,
31,
5397,
203,
3639,
2254,
3844,
12649,
5918,
31,
4766,
1377,
203,
3639,
3844,
12649,
5918,
1011,
1234,
18,
1132,
31,
18701,
203,
... |
./partial_match/56/0x38837Bf142CA7D66deD9Ee056De95501917CDE3D/sources/MdgRewardPool.sol | Withdraw without caring about rewards. EMERGENCY ONLY. | function emergencyWithdraw(uint256 _pid) external checkHalving {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 _amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
user.mdoDebt = 0;
user.bcashDebt =... | 11,087,405 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
801,
24530,
1190,
9446,
12,
11890,
5034,
389,
6610,
13,
3903,
866,
44,
287,
6282,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
... |
pragma solidity ^0.4.16;
/**
* V 0.4.21
* GoogleToken extended ERC20 token contract created on the October 14th, 2017 by GoogleToken Development team in the US
*
* For terms and conditions visit https://google.com
*/
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _t... | Public variables of the token This generates a public event on the blockchain that will notify clients | contract GOOGLE {
string public name = "Google Token";
string public symbol = "GGL";
uint256 public totalSupply;
uint256 public googleSupply = 99999999986;
uint256 public buyPrice = 100000000;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) pu... | 14,985,863 | [
1,
4625,
348,
7953,
560,
30,
225,
7224,
3152,
434,
326,
1147,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
12389,
13369,
900,
288,
203,
565,
533,
1071,
508,
273,
315,
9639,
3155,
14432,
203,
565,
533,
1071,
3273,
273,
315,
43,
11261,
14432,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
565,
2254,
5034,
1071,
5200,
3088,
... |
./full_match/288/0xD05b8fD53614e1569cAC01c6D8d41416d0a7257E/sources/contracts/DAO/governance/GovernorBravoInterfaces.sol | * @title Storage for Governor Bravo Delegate @notice For future upgrades, do not change GovernorBravoDelegateStorageV1. Create a new contract which implements GovernorBravoDelegateStorageV1 and following the naming convention GovernorBravoDelegateStorageVX./ | contract GovernorBravoDelegateStorageV1 is GovernorBravoDelegatorStorage {
uint public votingDelay;
uint public votingPeriod;
uint public proposalThreshold;
uint public initialProposalId;
uint public proposalCount;
TimelockInterface public timelock;
BobaInterface public boba;
map... | 7,103,754 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
5235,
364,
611,
1643,
29561,
605,
354,
12307,
27687,
632,
20392,
2457,
3563,
28844,
16,
741,
486,
2549,
611,
1643,
29561,
38,
354,
12307,
9586,
3245,
58,
21,
18,
1788,
279,
394,
6835,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
611,
1643,
29561,
38,
354,
12307,
9586,
3245,
58,
21,
353,
611,
1643,
29561,
38,
354,
12307,
15608,
639,
3245,
288,
203,
203,
565,
2254,
1071,
331,
17128,
6763,
31,
203,
203,
565,
2254,
1071,
331,
17128,
5027,
31,
203,
203... |
pragma solidity 0.4.24;
pragma experimental "v0.5.0";
/*
Copyright 2018 dYdX Trading Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENS... | no need to ask for permission | function closeLoanOnBehalfOfRecurse(
address contractAddr,
address closer,
address payoutRecipient,
bytes32 positionId,
uint256 closeAmount
)
private
returns (uint256)
{
if (closer == contractAddr) {
return closeAmount;
}
... | 1,593,969 | [
1,
4625,
348,
7953,
560,
30,
225,
1158,
1608,
358,
6827,
364,
4132,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
1504,
304,
1398,
1919,
20222,
951,
426,
17682,
12,
203,
3639,
1758,
6835,
3178,
16,
203,
3639,
1758,
13306,
16,
203,
3639,
1758,
293,
2012,
18241,
16,
203,
3639,
1731,
1578,
1754,
548,
16,
203,
3639,
2254,
5034,
1... |
./partial_match/3/0xE452Db0Ce76054692fd6dDfa29aaF329B55341c0/sources/TEDswapPool1.sol | Subtract `reserves` which is reserved for admin. | function swapExactAmountOut(
address tokenIn,
uint maxAmountIn,
address tokenOut,
uint tokenAmountOut,
uint maxPrice
)
external
_logs_
_lock_
returns (uint tokenAmountIn, uint spotPriceAfter)
{
require(_records[tokenIn].bound, "... | 5,085,602 | [
1,
4625,
348,
7953,
560,
30,
225,
2592,
1575,
1375,
455,
264,
3324,
68,
1492,
353,
8735,
364,
3981,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
14332,
6275,
1182,
12,
203,
3639,
1758,
1147,
382,
16,
203,
3639,
2254,
943,
6275,
382,
16,
203,
3639,
1758,
1147,
1182,
16,
203,
3639,
2254,
1147,
6275,
1182,
16,
203,
3639,
2254,
943,
5147,
203,
565,
262,
203,
... |
./full_match/1/0xf917147d8ED7b57C107D36576f4cCDe410ae29B6/sources/contracts/DToken.sol | * @dev Burns stable debt tokens of an account @param account The account getting his debt burned @param amount The amount being burned/ | function _burn(address account, uint256 amount) internal {
uint256 oldAccountBalance = _balances[account];
_balances[account] = oldAccountBalance - amount;
}
| 9,716,182 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
321,
87,
14114,
18202,
88,
2430,
434,
392,
2236,
632,
891,
2236,
1021,
2236,
8742,
18423,
18202,
88,
18305,
329,
632,
891,
3844,
1021,
3844,
3832,
18305,
329,
19,
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,
0,
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,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
565,
2254,
5034,
1592,
3032,
13937,
273,
389,
70,
26488,
63,
4631,
15533,
203,
565,
389,
70,
26488,
63,
4631,
65,
273,
1592,
3032,
13937,
300,
38... |
pragma solidity 0.5.9; // optimization enabled, runs: 10000, evm: constantinople
/**
* @title HomeWork Interface (version 1) - EIP165 ID 0xe5399799
* @author 0age
* @notice Homework is a utility to find, share, and reuse "home" addresses for
* contracts. Anyone can work to find a new home address by searching for... | Set the current token ID. Perform the token transfer. | function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata tokenIds
)
external
for (uint256 i = 0; i < tokenIds.length; i++) {
tokenId = tokenIds[i];
safeTransferFrom(from, to, tokenId);
}
| 15,817,884 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
783,
1147,
1599,
18,
11217,
326,
1147,
7412,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4183,
4497,
5912,
1265,
12,
203,
565,
1758,
628,
16,
203,
565,
1758,
358,
16,
203,
565,
2254,
5034,
8526,
745,
892,
1147,
2673,
203,
225,
262,
203,
565,
3903,
203,
565,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
... |
pragma solidity 0.4.24;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of... | Get Radar, Scanner, Droid, Fuel, Generator by ID | function getTypicalItemById(string _itemType, uint256 _itemId) public onlyLogicContract view returns(
uint256,
string,
uint256,
uint256,
uint256
) {
return (
_itemId,
stringStorage[_b1(_itemType, _itemId, "name")],
uintStorage[_... | 1,669,065 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
16378,
297,
16,
19074,
16,
463,
5560,
16,
478,
20317,
16,
10159,
635,
1599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3181,
879,
1706,
1180,
5132,
12,
1080,
389,
1726,
559,
16,
2254,
5034,
389,
1726,
548,
13,
1071,
1338,
20556,
8924,
1476,
1135,
12,
203,
3639,
2254,
5034,
16,
203,
3639,
533,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-10
*/
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarv... | returns value of total | function curveTokenToWant(uint256 tokens) public view returns (uint256) {
if(tokens == 0){
return 0;
}
uint256 virtualOut = virtualPriceToWant().mul(tokens).div(1e18);
return virtualOut;
}
| 10,659,228 | [
1,
4625,
348,
7953,
560,
30,
225,
1135,
460,
434,
2078,
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,
8882,
1345,
774,
59,
970,
12,
11890,
5034,
2430,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
12,
7860,
422,
374,
15329,
203,
5411,
327,
374,
31,
203,
3639,
289,
203,
377,
203,
3639,
2254,
5034,
50... |
/**
*Submitted for verification at Etherscan.io on 2021-11-03
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are... | * @dev mints new tokens. - `amount` specifies amount of tokens to be minted (in 1e-18)./ | function mint(uint256 amount) public {
require(_msgSender() == _owner);
_mint(_msgSender(), amount);
}
| 7,954,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
312,
28142,
394,
2430,
18,
300,
1375,
8949,
68,
11470,
3844,
434,
2430,
358,
506,
312,
474,
329,
261,
267,
404,
73,
17,
2643,
2934,
19,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
3844,
13,
1071,
288,
203,
1377,
2583,
24899,
3576,
12021,
1435,
422,
389,
8443,
1769,
203,
1377,
389,
81,
474,
24899,
3576,
12021,
9334,
3844,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-10... |
./full_match/43114/0x7D168034C6073247bCdC4Ff9f7FC13b4eD6f76e8/sources/MasterChef.sol | View function to see pending Seeds on frontend. | function pendingSeed(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSeedPerShare = pool.accSeedPerShare;
if (block.timestamp > pool.lastRewardSecond && pool.lpSupply != 0... | 4,568,723 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
3265,
9765,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4634,
12702,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
167... |
./full_match/1/0x32f9E3dAeC33Faf3a54DCF263190095A8eBfFfC2/sources/MAGIKARP.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint2... | 3,024,421 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
//Address: 0xBEB9eF514a379B997e0798FDcC901Ee474B6D9A1
//Contract name: MelonToken
//Balance: 0 Ether
//Verification Date: 2/13/2017
//Transacion Count: 23749
// CODE STARTS HERE
pragma solidity ^0.4.8;
/// @title Assertive contract
/// @author Melonport AG <team@melonport.com>
/// @notice Asserts function
contract ... | 10% of all created melon token allocated to melonport company
| uint public constant MELONPORT_COMPANY_STAKE = 1000; | 1,765,406 | [
1,
4625,
348,
7953,
560,
30,
225,
1728,
9,
434,
777,
2522,
312,
292,
265,
1147,
11977,
358,
312,
292,
265,
655,
9395,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
5381,
490,
2247,
673,
6354,
67,
10057,
15409,
67,
882,
37,
6859,
273,
4336,
31,
225,
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.2;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256... | * @title SafeMath @dev Math operations with safety checks that revert on error/ | library SafeMath32 {
function mul(uint32 a, uint32 b) internal pure returns (uint32) {
if (a == 0) {
return 0;
}
uint32 c = a * b;
require(c / a == b);
return c;
}
function mul(uint32 a, uint32 b) internal pure returns (uint32) {
if (a == 0) {... | 882,415 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14060,
10477,
632,
5206,
2361,
5295,
598,
24179,
4271,
716,
15226,
603,
555,
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,
... | [
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,
12083,
14060,
10477,
1578,
288,
203,
203,
203,
565,
445,
14064,
12,
11890,
1578,
279,
16,
2254,
1578,
324,
13,
2713,
16618,
1135,
261,
11890,
1578,
13,
288,
203,
3639,
309,
261,
69,
422,
374,
13,
288,
203,
5411,
327,
374,
31,
2... |
// to test issue with nodes breaking with large clients over WS
// fixed in web3 with fragmentationThreshold: 8192
pragma solidity ^0.4.17;
contract BigFreakingContract {
event Transfer(address indexed from, address indexed to, uint value);
event Approval( address indexed owner, address indexed spender, uint valu... | TODO: should increase instead | function approve_6(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,453,719 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1410,
10929,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
67,
26,
12,
2867,
17571,
264,
16,
2254,
460,
13,
1071,
1135,
261,
6430,
1529,
13,
288,
203,
565,
389,
12908,
4524,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
460,
31,
203,
565,
3626,
1716,
685,
11... |
pragma solidity >=0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIAB... | private function so can be called from constructor | function _registerAirline(address _address, string _airlineName, address _registeredAirline, bool _isRegistered, bool _isFunded)
private {
airlines[_address].otherAirlineVotes[_registeredAirline] = true;
airlines[_address].airlineName = _airlineName;
airlines[_address].isRegistered = _... | 6,419,512 | [
1,
4625,
348,
7953,
560,
30,
3238,
445,
1427,
848,
506,
2566,
628,
3885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4861,
29752,
1369,
12,
2867,
389,
2867,
16,
533,
389,
1826,
1369,
461,
16,
1758,
389,
14327,
29752,
1369,
16,
1426,
389,
291,
10868,
16,
1426,
389,
291,
42,
12254,
13,
21281,
565,
3238,
288,
203,
3639,
23350,
3548,... |
./partial_match/1/0x0E719EB911f369BAbc54f1eB425003bE59C81f24/sources/HarryPotterObamaSonic10InuBOT.sol | 10% of the total supply
| uint256 marketingAmount = (initialSupply * 10) / 100; | 9,393,180 | [
1,
4625,
348,
7953,
560,
30,
225,
1728,
9,
434,
326,
2078,
14467,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13667,
310,
6275,
273,
261,
6769,
3088,
1283,
380,
1728,
13,
342,
2130,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/... | recalculate time until starving | function buyAccesory(uint256 nftId, uint256 itemId)
public
onlyOwner
isAllowed(nftId)
{
require(!petDead[nftId], "ded pet");
uint256 amount = itemPrice[itemId];
require(amount > 0, "item does not exist");
timeUntilStarving[nftId] = block.timestamp + item... | 13,586,001 | [
1,
4625,
348,
7953,
560,
30,
225,
26657,
813,
3180,
10443,
6282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
9988,
764,
630,
12,
11890,
5034,
290,
1222,
548,
16,
2254,
5034,
18424,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
3639,
21956,
12,
82,
1222,
548,
13,
203,
565,
288,
203,
3639,
2583,
12,
5,
6951,
11852,
6... |
./partial_match/4/0x2d2F65e372d4808e020e2e3E7c0c6A7DfBd28f51/sources/FarmProRata.sol | delays between attempted burns or token disbursement | uint public constant burnOrDisburseTokensPeriod = 15 minutes;
| 8,526,724 | [
1,
4625,
348,
7953,
560,
30,
225,
4624,
87,
3086,
18121,
18305,
87,
578,
1147,
1015,
70,
295,
307,
475,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
5381,
18305,
1162,
1669,
70,
295,
307,
5157,
5027,
273,
4711,
6824,
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,
-1... |
// File: contracts/interfaces/IDelegable.sol
pragma solidity ^0.6.10;
interface IDelegable {
function ADDDELEGATE653(address) external; //inject NONSTANDARD NAMING
function ADDDELEGATEBYSIGNATURE882(address, address, uint, uint8, bytes32, byt... | inject NONSTANDARD NAMING
| function DEBT715() external view returns(uint256); | 12,707,115 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2030,
38,
56,
27,
3600,
1435,
3903,
1476,
1135,
12,
11890,
5034,
1769,
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... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import { Messenger_Initializer } from "./CommonTest.t.sol";
import { Lib_CrossDomainUtils } from "../libraries/Lib_CrossDomainUtils.sol";
import { AddressAliasHelper } from "../libraries/AddressAliasHelper.sol";
import { L2ToL1MessagePasser } from "../L2/L2ToL1Me... | the nonce increments for each message sent | function test_L2MessengerTwiceSendMessage() external {
uint256 nonce = L2Messenger.messageNonce();
L2Messenger.sendMessage(recipient, hex"aa", uint32(500_000));
L2Messenger.sendMessage(recipient, hex"aa", uint32(500_000));
assertEq(
nonce + 2,
L2Messenger.mess... | 12,754,376 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
7448,
17071,
364,
1517,
883,
3271,
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,
1842,
67,
48,
22,
29329,
23539,
1812,
3826,
1079,
1435,
3903,
288,
203,
3639,
2254,
5034,
7448,
273,
511,
22,
29329,
18,
2150,
13611,
5621,
203,
3639,
511,
22,
29329,
18,
4661,
1079,
12,
20367,
16,
3827,
6,
7598,
3113,
... |
./full_match/1/0x0fAA31a28BAF1CA1d0be764f3aD41CB6FB7a3651/sources/browser/CoolMaker.sol | At least we try to make front-running harder to do. | function convert(address token0, address token1) public {
require(msg.sender == tx.origin, "do not convert from contract");
IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(token0, token1));
pair.transfer(address(pair), pair.balanceOf(address(this)));
pair.burn(address(this));
... | 16,424,130 | [
1,
4625,
348,
7953,
560,
30,
225,
2380,
4520,
732,
775,
358,
1221,
6641,
17,
8704,
17895,
765,
358,
741,
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,
... | [
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,
1765,
12,
2867,
1147,
20,
16,
1758,
1147,
21,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
2229,
18,
10012,
16,
315,
2896,
486,
1765,
628,
6835,
8863,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
4154,
30... |
/*
|| THE LEXDAO REGISTRY (TLDR) || version 0.3
DEAR MSG.SENDER(S):
/ TLDR is a project in beta.
// Please audit and use at your own risk.
/// Entry into TLDR shall not create an attorney/client relationship.
//// Likewise, TLDR should not be construed as legal advice or replacement for professional counsel.
///// S... | executes ERC-20 transfer of lexFee to (0x) lexAddress identified in lexID
| drTokenERC20.transfer(lS.lexAddress, lexFee); | 983,285 | [
1,
4625,
348,
7953,
560,
30,
225,
11997,
4232,
39,
17,
3462,
7412,
434,
5275,
14667,
358,
261,
20,
92,
13,
5275,
1887,
9283,
316,
5275,
734,
203,
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,
377,
202,
3069,
1345,
654,
39,
3462,
18,
13866,
12,
80,
55,
18,
4149,
1887,
16,
5275,
14667,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |