file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: No License (None)
pragma solidity ^0.8.0;
// 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 {
// bytes4(keccak256(bytes('app... | user should approve tokens transfer before calling this function.if no licensee set it to address(0) | function swap(
)
external
payable
returns (bool)
{
_transferFee(tokenA, amountA, fee, msg.sender, licensee);
_swap(tokenA, tokenB, msg.sender, receiver, amountA, isInvestment, minimumAmountToClaim, limitPice);
return true;
}
| 477,524 | [
1,
1355,
1410,
6617,
537,
2430,
7412,
1865,
4440,
333,
445,
18,
430,
1158,
8630,
73,
444,
518,
358,
1758,
12,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
12,
203,
565,
262,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
389,
13866,
14667,
12,
2316,
37,
16,
3844,
37,
16,
14036,
16,
1234,
18,
15330,
16,
8630,
73,
... |
./full_match/42220/0x9BD3829315A2F076a7702885c3D0aE9184B76643/sources/contracts/interfaces/IVaultChefCore.sol | @notice A vault is a strategy users can stake underlying tokens in to receive a share of the vault value. | struct Vault {
IERC20 underlyingToken;
IStrategy strategy;
bool paused;
bool panicked;
uint256 panicTimestamp;
uint256 lastHarvestTimestamp;
uint256 performanceFeeBP;
| 16,326,176 | [
1,
37,
9229,
353,
279,
6252,
3677,
848,
384,
911,
6808,
2430,
316,
358,
6798,
279,
7433,
434,
326,
9229,
460,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
17329,
288,
203,
3639,
467,
654,
39,
3462,
6808,
1345,
31,
203,
3639,
467,
4525,
6252,
31,
203,
3639,
1426,
17781,
31,
203,
3639,
1426,
2800,
1200,
329,
31,
203,
3639,
2254,
5034,
3933,
4921,
31,
203,
3639,
2254,
5034,... |
./full_match/1/0x153D01e1e2d882EADfe884624623b3E7f88668AF/sources/browser/PickleJars/Strategy-Converter/UniUniConverter.sol | usdt is not a standard erc20, gay Converts Uni LP tokens to Uni LP tokens | contract UniUniConverter {
address constant univ2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
address constant weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
address constant usdt = 0xdAC17F958D2ee523a2206206994597C13D831ec7;
function convert(
address _refundExcess,
addres... | 3,863,148 | [
1,
407,
7510,
353,
486,
279,
4529,
6445,
71,
3462,
16,
314,
528,
20377,
1351,
77,
511,
52,
2430,
358,
1351,
77,
511,
52,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
77,
984,
77,
5072,
288,
203,
565,
1758,
5381,
28772,
22,
8259,
273,
374,
92,
27,
69,
26520,
72,
4313,
5082,
38,
24,
71,
42,
25,
5520,
27,
5520,
72,
42,
22,
39,
25,
72,
37,
7358,
24,
71,
26,
6162,
42,
3247,
54... |
./partial_match/1/0x00000000007767d79f9F4aA1Ff0d71b8E2E4a231/sources/contracts/Yolo.sol | * @param _erc20Oracle The new ERC-20 oracle address/ | function _updateERC20Oracle(address _erc20Oracle) private {
if (_erc20Oracle == address(0)) {
revert InvalidValue();
}
erc20Oracle = IPriceOracle(_erc20Oracle);
emit ERC20OracleUpdated(_erc20Oracle);
}
| 16,178,056 | [
1,
67,
12610,
3462,
23601,
1021,
394,
4232,
39,
17,
3462,
20865,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2725,
654,
39,
3462,
23601,
12,
2867,
389,
12610,
3462,
23601,
13,
3238,
288,
203,
3639,
309,
261,
67,
12610,
3462,
23601,
422,
1758,
12,
20,
3719,
288,
203,
5411,
15226,
1962,
620,
5621,
203,
3639,
289,
203,
3639,... |
./partial_match/1/0x2fCfd723CF11f2C78E3DC4427b9179c78592CB2e/sources/PAYDAY.sol | Anti-bot and anti-whale mappings and variables | contract PAYDAY is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingwallet;
address public devWall... | 3,968,581 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
25095,
10339,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,
203... |
// We will be using Solidity version 0.5.4
pragma solidity ^0.5.4;
pragma experimental ABIEncoderV2;
// Importing OpenZeppelin's SafeMath Implementation
import './SafeMath.sol';
contract CrowdFunding {
using SafeMath for uint256;
enum State {
Fundraising,
Fundraised,
Success,
... | projects[id].currentBalance = 0; projects[id].currentBalance = totalRaised; | function payOut(uint id, uint perc) internal inState(id, State.Fundraised) returns (bool){
uint256 totalRaised = (projects[id].currentBalance).mul(perc)/100;
if (projects[id].creator.send(totalRaised)) {
emit CreatorPaid(projects[id].creator);
projects[id].refp = projects[id... | 7,294,628 | [
1,
13582,
63,
350,
8009,
2972,
13937,
273,
374,
31,
10137,
63,
350,
8009,
2972,
13937,
273,
2078,
12649,
5918,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
8843,
1182,
12,
11890,
612,
16,
2254,
26514,
13,
2713,
316,
1119,
12,
350,
16,
3287,
18,
42,
1074,
354,
5918,
13,
1135,
261,
6430,
15329,
203,
3639,
2254,
5034,
2078,
12649,
5918,
273,
261,
13582,
63,
350,
8009,
2972,
... |
pragma solidity >= 0.5.0 < 0.6.0;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/Stores.sol";
contract Proxy {
// the proxied Stores contract
Stores public stores;
/// @notice Create a Proxy
/// @param _target the Stores to interact with
constructor(Stores _targ... | @notice Create a Proxy @param _target the Stores to interact with | constructor(Stores _target) public {
stores = _target;
}
| 6,442,770 | [
1,
1684,
279,
7659,
225,
389,
3299,
326,
20296,
455,
358,
16592,
598,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
3885,
12,
13125,
389,
3299,
13,
1071,
288,
203,
565,
9064,
273,
389,
3299,
31,
203,
225,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x4fD4499867144c1878A8882483896ED937C7fe10/sources/Stc.sol | Iterate through all stc pools and calculate all value of collateral in all pools globally Exclude null addresses | function globalCollateralValue() public view returns (uint256) {
uint256 total_collateral_value_d18 = 0;
for (uint i = 0; i < stc_pools_array.length; i++){
if (stc_pools_array[i] != address(0)){
total_collateral_value_d18 = total_collateral_value_d18.add(StcPool(stc_po... | 2,640,670 | [
1,
14916,
3059,
777,
384,
71,
16000,
471,
4604,
777,
460,
434,
4508,
2045,
287,
316,
777,
16000,
25654,
20760,
446,
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,
... | [
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,
2552,
13535,
2045,
287,
620,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2078,
67,
12910,
2045,
287,
67,
1132,
67,
72,
2643,
273,
374,
31,
7010,
203,
3639,
364,
261,
11890,
277,
273,
374,
... |
./full_match/42220/0x8B41a96dda19Ce082933a931eC414fFCd534B9C0/sources/contracts/Factory.sol | keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | contract BlackfarmingERC20 is IBlackfarmingERC20 {
using SafeMath for uint;
string public constant name = 'BlackfarmingSwap LPs';
string public constant symbol = 'BLACKFARMING-LP';
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapp... | 16,359,162 | [
1,
79,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
22467,
74,
4610,
310,
654,
39,
3462,
353,
467,
13155,
74,
4610,
310,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
5381,
508,
273,
296,
13155,
74,
4610,
310,
12521,
511,
18124,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUtil {
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) ... | claim all pending rewards | function getReward(address _account) external {
getReward(_account, false);
}
| 1,374,772 | [
1,
14784,
777,
4634,
283,
6397,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4170,
359,
1060,
12,
2867,
389,
4631,
13,
3903,
288,
203,
3639,
4170,
359,
1060,
24899,
4631,
16,
629,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
* @source: https://github.com/trailofbits/not-so-smart-contracts/blob/master/unprotected_function/Unprotected.sol
* @author: -
* @vulnerable_at_lines: 25
*/
pragma solidity ^0.4.15;
contract Unprotected{
address private owner;
modifier onlyowner {
require(msg.sender==owner);
_;
... | function Unprotected() public | {
owner = msg.sender;
}
| 15,834,055 | [
1,
915,
1351,
1117,
1435,
1071,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
288,
203,
540,
3410,
273,
1234,
18,
15330,
31,
203,
377,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previous... | * @dev Checks msg.sender can transfer a token, by being owner, approved, or operator @param _tokenId uint256 ID of the token to validate/ | modifier canTransfer(uint256 _tokenId) {
require(isApprovedOrOwner(msg.sender, _tokenId));
_;
}
constructor()
public
| 306,893 | [
1,
4081,
1234,
18,
15330,
848,
7412,
279,
1147,
16,
635,
3832,
3410,
16,
20412,
16,
578,
3726,
225,
389,
2316,
548,
2254,
5034,
1599,
434,
326,
1147,
358,
1954,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
848,
5912,
12,
11890,
5034,
389,
2316,
548,
13,
288,
203,
565,
2583,
12,
291,
31639,
1162,
5541,
12,
3576,
18,
15330,
16,
389,
2316,
548,
10019,
203,
565,
389,
31,
203,
225,
289,
203,
203,
225,
3885,
1435,
203,
565,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contra... | Player wins by forfeit | function checkBattleResults(
uint256 tokenId,
uint256 round,
int256 lastRoundPlayerHp,
int256 lastRoundMonsterHp,
Item memory playerBaseStats
)
public
view
onlyIfBattleFinished(tokenId)
returns (BattleRoundResult memory)
{
if (r... | 13,015,115 | [
1,
12148,
31307,
635,
364,
3030,
305,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
38,
4558,
298,
3447,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
3643,
16,
203,
3639,
509,
5034,
1142,
11066,
12148,
44,
84,
16,
203,
3639,
509,
5034,
1142,
11066,
11415,
8190,
44,
84,
16,
20... |
./full_match/42220/0x86178FF5C54d4156936cDDA87F9D0358D7e7c98e/sources/project_/contracts/KolorLandNFT.sol | / Transfer to the marketplace | function safeTransferToMarketplace(uint256 tokenId)
public
override
notBurned(tokenId)
onlyOwner
notPublishedNorRemoved(tokenId)
{
updateLandState(tokenId, State.Published);
safeTransferFrom(msg.sender, marketplace, tokenId);
}
| 16,337,572 | [
1,
19,
12279,
358,
326,
29917,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
5912,
774,
3882,
24577,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
486,
38,
321,
329,
12,
2316,
548,
13,
203,
3639,
1338,
5541,
203,
3639,
486,
16451,
50,
280,
10026,
12,
2316,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint25... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(!locks[_from] && !locks[_to]);
uint256 _allowance = all... | 14,117,484 | [
1,
8336,
4232,
39,
3462,
1147,
225,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8263,
1345,
353,
4232,
39,
3462,
16,
7651,
1345,
288,
203,
203,
225,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
5034,
3719,
2713,
2935,
31,
203,
203,
203,
225,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
// 权限控制合约
contract AccessControl {
// 合约中存储一个映射,需要对这个数据的访问权限进行控制
mapping(bytes32 => string) secretsMap;
// 管理员账户数组,可以添加管理员 读 和 写
address[] admins;
// 读白名单
address[] allowedReaders;
// 写白名单
address[] allowedWriters;
c... | 说实话,没看懂这个怎么操作的,我对签名内容和流程不熟悉,以后要加强
| address reader = ecrecover(hash, v, r, s); | 12,585,917 | [
1,
169,
112,
117,
166,
111,
257,
169,
112,
256,
176,
125,
239,
167,
115,
99,
168,
255,
238,
167,
234,
229,
169,
128,
252,
165,
121,
108,
167,
227,
241,
165,
122,
235,
167,
246,
240,
165,
126,
255,
168,
253,
231,
176,
125,
239,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
1758,
2949,
273,
425,
1793,
3165,
12,
2816,
16,
331,
16,
436,
16,
272,
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,
... |
./full_match/1/0x863557DA48F9F573Ca71Ef7cF122e1B9Bf62E60E/sources/browser/LivyatanAave3.sol | Final checks to make sure we can pay this back | require(address(this).balance == 0, "you still have eth)");
| 16,484,756 | [
1,
7951,
4271,
358,
1221,
3071,
732,
848,
8843,
333,
1473,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2867,
12,
2211,
2934,
12296,
422,
374,
16,
315,
19940,
4859,
1240,
13750,
2225,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0xadD25B46d3138F1cCe221888368deFDeFcAAF232/sources/contracts/Nft.sol | Transfer USDC tokens from user to contract Calculate the total USDC amount to charge Transfer USDC tokens from user to contract Store the request information | function requestToken(address _userAddress, uint256 _amount) public {
require(_amount > 0, "Amount must be greater than 0");
uint256 totalUsdcAmount = 1 * 10**6 * _amount;
USDCInterface usdcToken = USDCInterface(usdcTokenAddress);
require(usdcToken.transferFrom(_userAddress, address(this), totalU... | 9,476,474 | [
1,
5912,
11836,
5528,
2430,
628,
729,
358,
6835,
9029,
326,
2078,
11836,
5528,
3844,
358,
13765,
12279,
11836,
5528,
2430,
628,
729,
358,
6835,
4994,
326,
590,
1779,
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,
445,
590,
1345,
12,
2867,
389,
1355,
1887,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
565,
2583,
24899,
8949,
405,
374,
16,
315,
6275,
1297,
506,
6802,
2353,
374,
8863,
203,
377,
203,
565,
2254,
5034,
2078,
3477,
7201,
6275,
... |
./full_match/84531/0xA82d7ED01c31DD2A46681D18E3E213C9E9231605/sources/contracts/sale/v2/FlatPriceSale.sol | calculate a distance between the random value and the user's address using the XOR distance metric (c.f. Kademlia) | uint160 distance = uint160(buyer) ^ randomValue;
| 14,320,215 | [
1,
11162,
279,
3888,
3086,
326,
2744,
460,
471,
326,
729,
1807,
1758,
1450,
326,
28086,
3888,
3999,
261,
71,
18,
74,
18,
1475,
2486,
81,
549,
69,
13,
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,
202,
202,
11890,
16874,
3888,
273,
2254,
16874,
12,
70,
16213,
13,
3602,
2744,
620,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
contract TellorPlayground {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event TipAdded(address indexed _sender, bytes32 indexed _requestId, ui... | * @dev Internal function to create new tokens for the user/ | function _mint(address _account, uint256 _amount) internal virtual {
require(_account != address(0), "ERC20: mint to the zero address");
_totalSupply += _amount;
_balances[_account] += _amount;
emit Transfer(address(0), _account, _amount);
}
| 5,522,178 | [
1,
3061,
445,
358,
752,
394,
2430,
364,
326,
729,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
389,
4631,
16,
2254,
5034,
389,
8949,
13,
2713,
5024,
288,
203,
3639,
2583,
24899,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
3639,
389,
... |
pragma solidity ^0.4.18; // solhint-disable-line
contract ERC20Interface {
function transfer(address to, uint256 tokens) public returns (bool success);
}
contract Halo3D {
function transfer(address, uint256) public returns(bool);
function balanceOf() public view returns(uint256);
}
/**
* De... | * Deposit Halo3D tokens to buy eggs in farm @dev Standard ERC677 function that will handle incoming token transfers. @param _from Token sender address. @param _value Amount of tokens. @param _data Transaction metadata./ | function tokenFallback(address _from, uint256 _value, bytes _data)
external
onlyTokenContract
returns (bool) {
require(initialized);
require(!_isContract(_from));
uint256 halo3DBalance = tokenContract.balanceOf();
uint256 eggsBought=calculateEggBuy(_value, SafeMat... | 2,264,260 | [
1,
758,
1724,
670,
287,
83,
23,
40,
2430,
358,
30143,
9130,
564,
316,
284,
4610,
225,
8263,
4232,
39,
26,
4700,
445,
716,
903,
1640,
6935,
1147,
29375,
18,
225,
389,
2080,
225,
3155,
5793,
1758,
18,
225,
389,
1132,
16811,
434,
243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
12355,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
16,
1731,
389,
892,
13,
203,
1377,
3903,
203,
1377,
1338,
1345,
8924,
203,
1377,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
13227,
1769,
203,
3639,
2583,
... |
./full_match/1285/0x517f5D5f94d2F6FAa48AD889467cCF470064Ba43/sources/src/Interfaces/ITransactionManager.sol | For domain separation
| uint256 receivingChainId; | 834,010 | [
1,
1290,
2461,
5102,
367,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
15847,
3893,
548,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract BotSNIP {
using Address for address;
// address used for pay out
function init(bytes memory callData,... | address used for pay out | contract BotSNIP {
using Address for address;
pragma solidity 0.7.6;
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
function init(bytes memory callData, address payable target) payable external{
revert("Success");
}
(bool success,) = target.call{value:msg.value}(callData);
}
| 10,391,789 | [
1,
2867,
1399,
364,
8843,
596,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
15039,
13653,
2579,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
683,
9454,
18035,
560,
374,
18,
27,
18,
26,
31,
203,
5666,
288,
1887,
97,
628,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
5471,
19,
188... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../../ConverterVersion.sol";
import "../../interfaces/IConverter.sol";
import "../../interfaces/IConverterAnchor.sol";
impo... | special case for 0 amount | function fundCost(
uint256 supply,
uint256 balance,
uint256 amount
) private pure returns (uint256) {
require(supply > 0, "ERR_INVALID_SUPPLY");
require(balance > 0, "ERR_INVALID_RESERVE_BALANCE");
if (amount == 0) {
return 0;
}
retur... | 12,547,229 | [
1,
9371,
648,
364,
374,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
284,
1074,
8018,
12,
203,
3639,
2254,
5034,
14467,
16,
203,
3639,
2254,
5034,
11013,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
2859,
1283,
405,
37... |
./partial_match/1/0xCAe4210e6676727EA4e0fD9BA5dFb95831356a16/sources/RariMerkleRedeemer.sol | User provides the cTokens & the amounts they should get, and it is verified against the merkle root for that cToken (for each cToken provided) Should set the user's claim amount in the claims mapping for each cToken provided | function _multiClaim(
address[] calldata _cTokens,
uint256[] calldata _amounts,
bytes32[][] calldata _merkleProofs
) internal virtual {
require(_cTokens.length == _amounts.length, "Number of cTokens and amounts must match");
require(_cTokens.length == _merkleProofs.length... | 11,006,374 | [
1,
1299,
8121,
326,
276,
5157,
473,
326,
30980,
2898,
1410,
336,
16,
471,
518,
353,
13808,
5314,
326,
30235,
1365,
364,
716,
276,
1345,
261,
1884,
1517,
276,
1345,
2112,
13,
9363,
444,
326,
729,
1807,
7516,
3844,
316,
326,
11955,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
7027,
9762,
12,
203,
3639,
1758,
8526,
745,
892,
389,
71,
5157,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
8949,
87,
16,
203,
3639,
1731,
1578,
63,
6362,
65,
745,
892,
389,
6592,
15609,
20439,
87,
203,
565,
... |
./partial_match/1/0xf5FAB5DBD2f3bf675dE4cB76517d4767013cfB55/sources/LiquidityProtectionStore.sol | * @dev The Liquidity Protection Store contract serves as the storage of the liquidity protection mechanism. It holds the data and tokens and is non upgradable./ | contract LiquidityProtectionStore is ILiquidityProtectionStore, Owned, TokenHandler, Utils {
using SafeMath for uint256;
struct PoolIndex {
bool isValid;
uint256 value;
}
struct ProtectedLiquidity {
}
struct LockedBalance {
}
mapping(IConverterAnchor => PoolIndex) pr... | 2,633,363 | [
1,
1986,
511,
18988,
24237,
1186,
9694,
4994,
6835,
26255,
487,
326,
2502,
434,
326,
4501,
372,
24237,
17862,
12860,
18,
2597,
14798,
326,
501,
471,
2430,
471,
353,
1661,
731,
9974,
429,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
511,
18988,
24237,
16938,
2257,
353,
467,
48,
18988,
24237,
16938,
2257,
16,
14223,
11748,
16,
3155,
1503,
16,
6091,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
1958,
8828,
1016,
288,
203,
363... |
pragma solidity ^0.5.8;
import "./Owned.sol";
import "./BirthDate.sol";
contract MarketPlace is Owned {
//structure of farmer - buyer/seller
struct Farmer {
uint aadhaar; // aadhar id of the farmer
address farmer_address; // blockchain identif... | - get health confirmation from the veterinarians | function RequestHealthConfirmation(uint vid, address cattle, string memory health) public {
}
| 14,081,551 | [
1,
17,
336,
8437,
14296,
628,
326,
331,
847,
267,
12954,
634,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1567,
7802,
17597,
12,
11890,
18339,
16,
1758,
276,
4558,
298,
16,
533,
3778,
8437,
13,
1071,
288,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
//Address: 0xb533aae346245e2e05b23f420C140bCA2529b8a6
//Contract name: ZilleriumPresale
//Balance: 0 Ether
//Verification Date: 1/16/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.4;
contract SafeMath
{
function safeMul(uint a, uint b) internal returns (uint)
{
uint c = a ... | 2000000000000000 Wei = 1 token
| out = 2000000000000000; | 12,898,044 | [
1,
22,
12648,
17877,
1660,
77,
273,
404,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1850,
596,
273,
576,
12648,
17877,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xeCb83393F24375D8eC121A1C977f64b96c85A47C/sources/Goldereum.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Goldereum", "Goldereum") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeAddressFromMaxTransaction(address(_uniswapV2Router), true);
_interfaceUniswapV2Router = _uniswapV2Router;
... | 9,757,683 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
3462,
2932,
43,
1498,
73,
379,
3113,
315,
43,
1498,
73,
379,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
// Some parts: Apache-2.0
// ==== sha3_c.c BEGIN =====================================================================================================================
////////////////////////////////////////
// A) The following code was imported from "fips202.c... | //fprintf(stdout, "TRACE: keccak_inc_init()\n"); | function keccak_inc_init() public payable
{
uint32 i;
for (i = 0; i < 25; ++i)
{
shake256_context64[i] = 0;
}
shake256_context64[25] = 0;
}
| 1,775,327 | [
1,
759,
74,
1461,
12,
10283,
16,
315,
23827,
30,
417,
24410,
581,
67,
9523,
67,
2738,
1435,
64,
82,
8863,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
417,
24410,
581,
67,
9523,
67,
2738,
1435,
1071,
8843,
429,
203,
565,
288,
203,
3639,
2254,
1578,
225,
277,
31,
203,
203,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
6969,
31,
965,
77,
13,
203,
3639,
288,
203,
5411,... |
pragma solidity 0.5.10;
import 'ROOT/ICashFaucet.sol';
import 'ROOT/IAugur.sol';
import 'ROOT/ICash.sol';
import 'ROOT/libraries/ITyped.sol';
import 'ROOT/external/IDaiVat.sol';
import 'ROOT/external/IDaiJoin.sol';
import 'ROOT/matic/ExecutorAcl.sol';
/**
* @title Cash
* @dev Test contract for CASH (Dai)
*/
contra... | Having isExecuting acl here, causes an issue in deployment because FillOrder.initialize() calls Cash.approve() Besides, I don't see an attack vector by not having this ACL here. | function approve(address _spender, uint256 _amount) public /* isExecuting */ returns (bool) {
approveInternal(msg.sender, _spender, _amount);
return true;
}
| 15,830,701 | [
1,
29954,
353,
22134,
7895,
2674,
16,
14119,
392,
5672,
316,
6314,
2724,
14192,
2448,
18,
11160,
1435,
4097,
385,
961,
18,
12908,
537,
1435,
605,
281,
4369,
16,
467,
2727,
1404,
2621,
392,
13843,
3806,
635,
486,
7999,
333,
10098,
2674... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
8949,
13,
1071,
1748,
353,
22134,
1195,
1135,
261,
6430,
13,
288,
203,
3639,
6617,
537,
3061,
12,
3576,
18,
15330,
16,
389,
87,
1302,
264,
16,
389,
8949,
... |
./full_match/1/0x8d056E3B22c66d4dEDfD50B0F5cAE4661161FEE1/sources/RSSHIBA.sol | * @dev Sets the values for {name} and {symbol}. All three of these values are immutable: they can only be set once during construction./ | ) {
_name = name_;
_symbol = symbol_;
_bow = bow_;
_mint(msg.sender, 1000000000000 * 10**8);
_unshine[address(0)] = unshine_;
}
| 4,864,408 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
4826,
8925,
434,
4259,
924,
854,
11732,
30,
2898,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
288,
203,
3639,
389,
529,
273,
508,
67,
31,
203,
3639,
389,
7175,
273,
3273,
67,
31,
203,
3639,
389,
70,
543,
273,
324,
543,
67,
31,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
15088,
9449,
380,
1728,
636,
2... |
pragma solidity ^0.4.19;
/**
* This is the official Ethbet Token smart contract (EBET) - https://ethbet.io/
*/
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b... | * @dev deposit EBET tokens into the contract @param _amount Amount to deposit/ token.approve needs to be called beforehand transfer tokens from the user to the contract add the tokens to the user's balance | function deposit(uint _amount) public {
require(_amount > 0);
require(token.transferFrom(msg.sender, this, _amount));
balances[msg.sender] = balances[msg.sender].add(_amount);
Deposit(msg.sender, _amount, balances[msg.sender]);
}
| 10,106,769 | [
1,
323,
1724,
512,
38,
1584,
2430,
1368,
326,
6835,
225,
389,
8949,
16811,
358,
443,
1724,
19,
1147,
18,
12908,
537,
4260,
358,
506,
2566,
1865,
2349,
7412,
2430,
628,
326,
729,
358,
326,
6835,
527,
326,
2430,
358,
326,
729,
1807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
443,
1724,
12,
11890,
389,
8949,
13,
1071,
288,
203,
565,
2583,
24899,
8949,
405,
374,
1769,
203,
203,
565,
2583,
12,
2316,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
333,
16,
389,
8949,
10019,
203,
203,
565,
324,
2648... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.3;
import './interfaces/IERC20.sol';
import './interfaces/IMistXJar.sol';
import './interfaces/IUniswap.sol';
import './libraries/SafeERC20.sol';
/// @author Nathan Worsley (https://github.com/CodeForcer)
/// @title MistX Gasless Router
contract MistXRouter... | Refunded ETH needs to be swept from router to user address | function swapETHForExactTokens(
Swap calldata _swap,
IUniswapRouter _router,
uint256 _bribe
) external payable {
_swap.amount1,
_swap.path,
_swap.to,
_swap.deadline
);
require(success);
}
| 159,570 | [
1,
1957,
12254,
512,
2455,
4260,
358,
506,
1352,
73,
337,
628,
4633,
358,
729,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
7720,
1584,
44,
1290,
14332,
5157,
12,
203,
565,
12738,
745,
892,
389,
22270,
16,
203,
565,
467,
984,
291,
91,
438,
8259,
389,
10717,
16,
203,
565,
2254,
5034,
389,
70,
1902,
203,
225,
262,
3903,
8843,
429,
288,
203,
... |
./full_match/1/0xB48af19dda0a49Dd7EB79F75C7655c3740730A38/sources/contracts/hacker/WOY.sol | * @dev Sets the values for {name} and {symbol}. All three of these values are immutable: they can only be set once during construction./ | constructor(string memory name_, string memory symbol_, address woy_) {
require(woy_ != address(0));
_name = name_; _symbol = symbol_;
_woy = woy_; _mint(msg.sender,
55000000 ether);
}
| 8,388,726 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
4826,
8925,
434,
4259,
924,
854,
11732,
30,
2898,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
16,
1758,
341,
13372,
67,
13,
288,
203,
3639,
2583,
12,
6933,
93,
67,
480,
1758,
12,
20,
10019,
203,
3639,
389,
529,
273,
508,
67,
31,
389,
7175,
273,
3273,
67,
3... |
./full_match/5/0xFD52F9A9A5268c4617dFAa6B0C4feFACBF70a873/sources/contracts/core/vaults/RaffleVault.sol | ============================================================= Accounting Logic ============================================================= assets = liquidity, fee0, fee1 Same logic as parent, but don't calculate fees earned | function convertToAssets(uint256 shares) public view override returns (uint256[] memory assets) {
assets = new uint256[](3);
uint256 totalShares = totalSupply();
if (totalShares == 0) return assets;
uint256 proportionX96 = FullMath.mulDiv(shares, FixedPoint96.Q96, totalShares);
... | 1,884,812 | [
1,
20775,
14468,
33,
5375,
6590,
310,
10287,
422,
20775,
1432,
12275,
7176,
273,
4501,
372,
24237,
16,
14036,
20,
16,
14036,
21,
17795,
4058,
487,
982,
16,
1496,
2727,
1404,
4604,
1656,
281,
425,
1303,
329,
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,
445,
8137,
10726,
12,
11890,
5034,
24123,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
8526,
3778,
7176,
13,
288,
203,
3639,
7176,
273,
394,
2254,
5034,
8526,
12,
23,
1769,
203,
203,
3639,
2254,
5034,
2078,
24051,
273,
2078,
... |
/*
___ ___ ___ ___ ___ ___ ___
/\ \ /\ \ /\ \ /\ \ |\__\ /\ \ ___ /\ \
/::\ \ /::\ \ /::\ \ \:\ \ |:| | /::\ \ /\ \ /::... | ============ Internal Imports ============ | import {Party} from "./Party.sol";
| 888,235 | [
1,
14468,
3186,
2221,
4363,
422,
1432,
631,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
288,
17619,
97,
628,
25165,
17619,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x7F6163674b6FD9c3D7238F2C5F958AC5C9A40aF8/sources/contracts/exchange/ExchangeCore.sol | * @dev Cancel an order, preventing it from being matched. Must be called by the maker of the order @param order Order to cancel @param sig ECDSA signature/ | function cancelOrder(Order memory order, Sig memory sig)
internal
{
bytes32 hash = requireValidOrder(order, sig);
require(msg.sender == order.maker, "MAKE_NOT_VALID");
cancelledOrFinalized[hash] = true;
emit OrderCancelled(hash);
| 9,770,884 | [
1,
6691,
392,
1353,
16,
5309,
310,
518,
628,
3832,
4847,
18,
6753,
506,
2566,
635,
326,
312,
6388,
434,
326,
1353,
225,
1353,
4347,
358,
3755,
225,
3553,
7773,
19748,
3372,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3755,
2448,
12,
2448,
3778,
1353,
16,
21911,
3778,
3553,
13,
203,
565,
2713,
203,
565,
288,
203,
203,
3639,
1731,
1578,
1651,
273,
2583,
1556,
2448,
12,
1019,
16,
3553,
1769,
203,
203,
3639,
2583,
12,
3576,
18,
15330,
... |
// Sources flattened with hardhat v2.2.1 https://hardhat.org
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.0.0
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of token... | * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by... | library SafeCast {
function toUint128(uint256 value) internal pure returns (uint128) {
require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
return uint128(value);
}
function toUint64(uint256 value) internal pure returns (uint64) {
require(value < 2**64, "SafeCast: va... | 5,861,313 | [
1,
24114,
1879,
348,
7953,
560,
1807,
2254,
5619,
19,
474,
5619,
27660,
12213,
598,
3096,
9391,
4271,
18,
10077,
4155,
310,
628,
2254,
5034,
19,
474,
5034,
316,
348,
7953,
560,
1552,
486,
15226,
603,
9391,
18,
1220,
848,
17997,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
9735,
288,
203,
565,
445,
358,
5487,
10392,
12,
11890,
5034,
460,
13,
2713,
16618,
1135,
261,
11890,
10392,
13,
288,
203,
3639,
2583,
12,
1132,
411,
576,
636,
10392,
16,
315,
9890,
9735,
30,
460,
3302,
3730,
88,
484... |
/*
Copyright 2019 Novera Capital Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,... | @notice Connects a Fund to this price index - the fund starts tracking it. @notice Only callable by the contract owner. @dev Right now there's no way to disconnect a fund, this feature could be added in the future. @param fundAddress The address of the fund being created.what if new connected fund here has reached max... | function connectFund(address fundAddress) public onlyOwner {
require(fundAddress!=0);
require(!isConnectedFund[fundAddress]);
require(Fund(fundAddress).decimals()==decimals);
isConnectedFund[fundAddress]=true;
connectedFundAddresses.push(fundAddress);
funds... | 15,789,447 | [
1,
21500,
279,
478,
1074,
358,
333,
6205,
770,
300,
326,
284,
1074,
2542,
11093,
518,
18,
225,
5098,
4140,
635,
326,
6835,
3410,
18,
225,
13009,
2037,
1915,
1807,
1158,
4031,
358,
9479,
279,
284,
1074,
16,
333,
2572,
3377,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3077,
42,
1074,
12,
2867,
284,
1074,
1887,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
74,
1074,
1887,
5,
33,
20,
1769,
203,
3639,
2583,
12,
5,
291,
8932,
42,
1074,
63,
74,
1074,
1887,
19226,
203,
3639,
2583,
12... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Crypto Smart Beta token contract
//
// Deployed to : 0xF7f522563d76C20fD88BE26771c880bF57BF7902
// Symbol : BETA
// Name : Crypto Smart Beta
// Total supply: 100000000000
// Decimals : 18
// -----... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract BETA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function BETA() public {
symbol = "BETA";
... | 1,985,152 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
31370,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088,
... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view retu... | Changes a lot of trading parameters in one call | function startChangeTradingConditions(uint256 _pTradeTrigger, uint256 _pSellPercent, uint256 _minSplit, uint256 _maxStipend, uint256 _pMaxStipend) external onlyGovernance {
require(_pTradeTrigger <= 100000 && _pSellPercent <= 100000 && _pMaxStipend <= 100000,"Percent cannot be greater than 100%");
... | 14,403,190 | [
1,
7173,
279,
17417,
434,
1284,
7459,
1472,
316,
1245,
745,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
787,
3043,
1609,
7459,
8545,
12,
11890,
5034,
389,
84,
22583,
6518,
16,
2254,
5034,
389,
84,
55,
1165,
8410,
16,
225,
2254,
5034,
389,
1154,
5521,
16,
2254,
5034,
389,
1896,
510,
625,
409,
16,
2254,
5034,
389,
84,
274... |
/**
*Submitted for verification at Etherscan.io on 2022-04-17
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/*... | * @dev Safely mints `tokenId` in batch and transfers it to `to`. Requirements: - `to` must not be a zero address. - `amount` must not be zero/ | function _safeBatchMint(address to, uint256 amount)
internal
returns (uint256 startId)
{
require(
to != address(0),
"ERC721SmallFriend: mint to the zero address"
);
require(amount > 0, "ERC721SmallFriend: mint nothing");
startId = _tokenOwn... | 6,642,283 | [
1,
26946,
2357,
312,
28142,
1375,
2316,
548,
68,
316,
2581,
471,
29375,
518,
358,
1375,
869,
8338,
29076,
30,
300,
1375,
869,
68,
1297,
486,
506,
279,
3634,
1758,
18,
300,
1375,
8949,
68,
1297,
486,
506,
3634,
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,
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,
4626,
4497,
49,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
5034,
787,
548,
13,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
358,
480,
1758,
12,
20,
3631,
203,
... |
/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------
file: NominAirdropper.sol
version: 1.0
author: Kevin Brown
date: 2018-07-09
-----------------------------------------------------------------
MODU... | * @notice Compute the last period's fee entitlement for the message sender and then deposit it into their nomin account./ Do not deposit fees into frozen accounts. */ Check the period has rolled over first. */ Only allow accounts to withdraw fees once per period. */ | function withdrawFees()
external
optionalProxy
{
address sender = messageSender;
rolloverFeePeriodIfElapsed();
require(!nomin.frozen(sender));
updateIssuanceData(sender, nominsIssued[sender], nomin.totalSupply());
require(!hasWithdrawnFees[sender]);
... | 2,249,182 | [
1,
7018,
326,
1142,
3879,
10,
5520,
31,
87,
14036,
3281,
19025,
364,
326,
883,
5793,
471,
1508,
443,
1724,
518,
1368,
3675,
12457,
267,
2236,
18,
19,
2256,
486,
443,
1724,
1656,
281,
1368,
12810,
9484,
18,
342,
2073,
326,
3879,
711,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
598,
9446,
2954,
281,
1435,
203,
3639,
3903,
203,
3639,
3129,
3886,
203,
565,
288,
203,
3639,
1758,
5793,
273,
883,
12021,
31,
203,
3639,
10643,
21896,
14667,
5027,
2047,
28827,
5621,
203,
3639,
2583,
12,
5,
12306,
267,
... |
./partial_match/97/0x88422CC30E020074f36b933E0Cd4d3041D6B4Fa5/sources/project_/contracts/DecubateMasterChef.sol | * @dev safe TOKEN transfer function, require to have enough TOKEN to transfer/ | function safeTOKENTransfer(
address _token,
address _to,
uint256 _amount
) internal {
IERC20Upgradeable token = IERC20Upgradeable(_token);
uint256 bal = token.balanceOf(address(this));
require(bal >= _amount, "Not enough funds in treasury");
uint256 maxTx = maxTransferAmount[_token];
... | 11,353,322 | [
1,
4626,
14275,
7412,
445,
16,
2583,
358,
1240,
7304,
14275,
358,
7412,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4183,
8412,
5912,
12,
203,
565,
1758,
389,
2316,
16,
203,
565,
1758,
389,
869,
16,
203,
565,
2254,
5034,
389,
8949,
203,
225,
262,
2713,
288,
203,
565,
467,
654,
39,
3462,
10784,
429,
1147,
273,
467,
654,
39,
3462,
... |
/**
* @title Runtime library for ProtoBuf serialization and/or deserialization.
* All ProtoBuf generated code will use this library.
*/
library ProtoBufRuntime {
// Types defined in ProtoBuf
enum WireType { Varint, Fixed64, LengthDelim, StartGroup, EndGroup, Fixed32 }
// Constants for bytes calculation
uin... | * @dev Encode ProtoBuf bytes @param xs The bytes array to be encoded @param p The offset of bytes array `bs` @param bs The bytes array to encode @return The length of encoded bytes/ | function _encode_bytes(bytes memory xs, uint256 p, bytes memory bs)
internal
pure
returns (uint256)
{
uint256 xsLength = xs.length;
uint256 sz = _encode_varint(xsLength, p, bs);
uint256 count = 0;
assembly {
let bsptr := add(bs, add(p, sz))
let xsptr := add(xs, 32)
for ... | 6,351,996 | [
1,
5509,
7440,
5503,
1731,
225,
9280,
1021,
1731,
526,
358,
506,
3749,
225,
293,
1021,
1384,
434,
1731,
526,
1375,
2038,
68,
225,
7081,
1021,
1731,
526,
358,
2017,
327,
1021,
769,
434,
3749,
1731,
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,
225,
445,
389,
3015,
67,
3890,
12,
3890,
3778,
9280,
16,
2254,
5034,
293,
16,
1731,
3778,
7081,
13,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
261,
11890,
5034,
13,
203,
225,
288,
203,
565,
2254,
5034,
9280,
1782,
273,
92... |
pragma solidity ^0.4.18;
import 'zeppelin-solidity/contracts/math/SafeMath.sol';
import 'zeppelin-solidity/contracts/ownership/Ownable.sol';
/**
* Token
*
* @title A fixed supply ERC-20 token contract with crowdsale capability.
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
*/
contract Token is Ow... | * Transfer tokens from any wallet to the `_to` wallet. This only works if the `_from` wallet has already allocated tokens for the caller keyset using `approve`. From wallet must have sufficient balance to transfer. Caller must have sufficient allowance to transfer. @param _from Wallet address that tokens ar... | function transferFrom(address _from, address _to, uint _value)
public
returns (bool success)
{
balances[_from] = balances[_from].sub(_value);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(_... | 12,557,950 | [
1,
5912,
2430,
628,
1281,
9230,
358,
326,
1375,
67,
869,
68,
9230,
18,
1220,
1338,
6330,
309,
377,
326,
1375,
67,
2080,
68,
9230,
711,
1818,
11977,
2430,
364,
326,
4894,
498,
542,
377,
1450,
1375,
12908,
537,
8338,
6338,
9230,
1297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
203,
3639,
1071,
203,
3639,
1135,
261,
6430,
2216,
13,
203,
565,
288,
203,
3639,
324,
26488,
63,
67,
2080,
65,
273,
324,
26488,
63,
67,
2... |
./partial_match/4/0x4D45e26eDe66D2b5d388F5269670262A2F1c4541/sources/YFIMToken.sol | * @title YFIGToken @dev Contract to create the YFIMToken/ | contract YFIMToken is YearnFinanceMoneyToken {
string public constant name = "Yearn Finance Green";
string public constant symbol = "YFIG";
uint32 public constant decimals = 18;
} | 8,669,183 | [
1,
61,
5236,
1345,
225,
13456,
358,
752,
326,
1624,
1653,
49,
1345,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1624,
1653,
49,
1345,
353,
1624,
73,
1303,
6187,
1359,
23091,
1345,
288,
203,
565,
533,
1071,
5381,
508,
273,
315,
61,
73,
1303,
9458,
1359,
17766,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
61,
5236,
14432,
203,
56... |
./partial_match/56/0x9b274D0bc30d99dDd4Ab9943A488B3Ad0E81339d/sources/MasterChef.sol | Safe ftg transfer function, just in case if rounding error causes pool to not have enough PLTs. | function safeFtgTransfer(address _to, uint256 _amount) internal {
uint256 ftgBal = ftg.balanceOf(address(this));
if (_amount > ftgBal) {
ftg.transfer(_to, ftgBal);
ftg.transfer(_to, _amount);
}
}
| 11,298,897 | [
1,
9890,
11038,
75,
7412,
445,
16,
2537,
316,
648,
309,
13885,
555,
14119,
2845,
358,
486,
1240,
7304,
453,
12050,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
42,
88,
75,
5912,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2254,
5034,
11038,
75,
38,
287,
273,
11038,
75,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
67,
89... |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
... | * @title RefundVault @dev This contract is used for storing funds while a crowdsale is in progress. Supports refunding the money if crowdsale fails, and forwarding it if crowdsale is successful./ | contract Refundable is Crowdsale {
uint256 public available;
bool public refunding = false;
event RefundStatusUpdated();
event Deposited();
event Withdraw(uint256 _amount);
event Refunded(address indexed beneficiary, uint256 weiAmount);
function deposit() onlyOwner public payable {
available = a... | 1,044,683 | [
1,
21537,
12003,
225,
1220,
6835,
353,
1399,
364,
15729,
284,
19156,
1323,
279,
276,
492,
2377,
5349,
353,
316,
4007,
18,
25110,
1278,
14351,
326,
15601,
309,
276,
492,
2377,
5349,
6684,
16,
471,
20635,
518,
309,
276,
492,
2377,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3941,
1074,
429,
353,
385,
492,
2377,
5349,
288,
203,
203,
225,
2254,
5034,
1071,
2319,
31,
7010,
225,
1426,
1071,
1278,
14351,
273,
629,
31,
203,
203,
225,
871,
3941,
1074,
1482,
7381,
5621,
203,
225,
871,
4019,
538,
1626... |
./full_match/5/0x47a6E6772D176DB48001A966975775eea590c9CE/sources/contracts/NFTInfo.sol | Additional addresses to blacklist
| mapping(address => bool) internal blockedaddresses; | 1,853,676 | [
1,
10552,
6138,
358,
11709,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
1426,
13,
2713,
14547,
13277,
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,
-... |
./partial_match/62320/0x5F234B6b82F5fF67Eeb4aB5D676c50ac9A07D009/sources/contracts/common/linkedlists/SortedLinkedListWithMedian.sol | * @title Maintains a sorted list of unsigned ints keyed by bytes32./ | library SortedLinkedListWithMedian {
using SafeMath for uint256;
using SortedLinkedList for SortedLinkedList.List;
enum MedianAction {
None,
Lesser,
Greater
}
enum MedianRelation {
Undefined,
Lesser,
Greater,
Equal
}
struct List {
SortedLinkedList.List list;
bytes32 ... | 11,034,531 | [
1,
49,
1598,
4167,
279,
3115,
666,
434,
9088,
15542,
17408,
635,
1731,
1578,
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,
... | [
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,
12083,
13717,
13174,
682,
1190,
13265,
2779,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
1450,
13717,
13174,
682,
364,
13717,
13174,
682,
18,
682,
31,
203,
203,
225,
2792,
20158,
2779,
1803,
288,
203,
565,
599... |
// SPDX-License-Identifier: Unlicensed
/*
FIITLAB
Website: https://www.fiitlab.com
Telegram: https://t.me/fiitlab
*/
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view vi... | set as marketing wallet
| marketingWallet = address(0x2b7CAf2F89bA16d3DfB1cDF7592371F5f6cc0e44); | 13,944,871 | [
1,
542,
487,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
22,
70,
27,
3587,
74,
22,
42,
6675,
70,
37,
2313,
72,
23,
40,
74,
38,
21,
71,
4577,
5877,
29,
4366,
11212,
42,
25,
74,
26,
952,
20,
73,
6334,
1769,
225,
2,
-100,
-100,
-100,... |
pragma solidity ^0.4.13;
contract AbstractENS {
function owner(bytes32 node) constant returns(address);
function resolver(bytes32 node) constant returns(address);
function ttl(bytes32 node) constant returns(uint64);
function setOwner(bytes32 node, address owner);
function setSubnodeOwner(bytes32 no... | * @dev Submit a name 6 characters long or less. If it has been registered, the submitter will earn 50% of the deed value. We are purposefully handicapping the simplified registrar as a way to force it into being restructured in a few years. @param unhashedName An invalid name to search for in the registry./ Reward the ... | function invalidateName(string unhashedName) inState(sha3(unhashedName), Mode.Owned) {
if (strlen(unhashedName) > 6 ) throw;
bytes32 hash = sha3(unhashedName);
entry h = _entries[hash];
_tryEraseSingleNode(hash);
if(address(h.deed) != 0) {
h.value = max(h.value... | 11,898,241 | [
1,
11620,
279,
508,
1666,
3949,
1525,
578,
5242,
18,
971,
518,
711,
2118,
4104,
16,
326,
4879,
387,
903,
425,
1303,
6437,
9,
434,
326,
443,
329,
460,
18,
1660,
854,
13115,
4095,
948,
335,
438,
1382,
326,
20482,
17450,
297,
487,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
11587,
461,
12,
1080,
640,
2816,
329,
461,
13,
316,
1119,
12,
7819,
23,
12,
318,
2816,
329,
461,
3631,
8126,
18,
5460,
329,
13,
288,
203,
3639,
309,
261,
10835,
12,
318,
2816,
329,
461,
13,
405,
1666,
262,
604,
31,
... |
./partial_match/1/0x6C18cF7FbB321F41cbC163248a298c66A377eece/sources/contracts/dex/eth/EthDexAggregatorV1.sol | @notice Buy tokens @dev Buy exact amount of token with tax applied @param buyToken Address of token transfer from Dex pair @param sellToken Address of token transfer into Dex pair @param buyTax Tax applyed by buyToken while transfer from Dex pair @param sellTax Tax applyed by SellToken while transfer into Dex pair @pa... | function buy(address buyToken, address sellToken, uint24 buyTax, uint24 sellTax, uint buyAmount, uint maxSellAmount, bytes memory data) external override returns (uint sellAmount){
if (data.isUniV2Class()) {
sellAmount = uniV2Buy(dexInfo[data.toDex()], buyToken, sellToken, buyAmount, maxSellAmou... | 9,120,077 | [
1,
38,
9835,
2430,
225,
605,
9835,
5565,
3844,
434,
1147,
598,
5320,
6754,
225,
30143,
1345,
5267,
434,
1147,
7412,
628,
463,
338,
3082,
225,
357,
80,
1345,
5267,
434,
1147,
7412,
1368,
463,
338,
3082,
225,
30143,
7731,
18240,
2230,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
30143,
12,
2867,
30143,
1345,
16,
1758,
357,
80,
1345,
16,
2254,
3247,
30143,
7731,
16,
2254,
3247,
357,
80,
7731,
16,
2254,
30143,
6275,
16,
2254,
943,
55,
1165,
6275,
16,
1731,
3778,
501,
13,
3903,
3849,
1135,
261,
... |
./full_match/1/0x48ec814465f5a5b66DE20480358453fa57A18bc1/sources/fantasycity.sol | If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI. | return string(abi.encodePacked(base, tokenId.toString(),ending));
| 8,321,496 | [
1,
2047,
1915,
353,
279,
1026,
3098,
1496,
1158,
1147,
3098,
16,
11361,
326,
1147,
734,
358,
326,
1026,
3098,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
533,
12,
21457,
18,
3015,
4420,
329,
12,
1969,
16,
1147,
548,
18,
10492,
9334,
2846,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43113/0xCff1Ea16293C8F074A5d15A6c8171400925Dc714/sources/contracts/SavingGroups.sol | turn = turno actual de la rosca
| require(realTurn > senderTurn, "Espera a llegar a tu turno"); | 7,120,608 | [
1,
20922,
273,
7005,
83,
3214,
443,
7125,
721,
1017,
69,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7688,
15858,
405,
5793,
15858,
16,
315,
6705,
457,
69,
279,
328,
1935,
297,
279,
28325,
7005,
83,
8863,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0xECE138335ea60487564FaD52d3ccda40aABA22DC/sources/browser/soupchef.sol | Safe cake transfer function, just in case if rounding error causes pool to not have enough CAKEs. | function safeCakeTransfer(address _to, uint256 _amount) public onlyOwner {
uint256 SahiBal = Sahi.balanceOf(address(this));
if (_amount > SahiBal) {
Sahi.transfer(_to, SahiBal);
Sahi.transfer(_to, _amount);
}
}
| 14,132,416 | [
1,
9890,
276,
911,
7412,
445,
16,
2537,
316,
648,
309,
13885,
555,
14119,
2845,
358,
486,
1240,
7304,
6425,
47,
6705,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
31089,
5912,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
2254,
5034,
348,
9795,
17632,
287,
273,
348,
9795,
77,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
... |
// SPDX-License-Identifier: Apache-2.0
/*
Modifications Copyright 2022 Element.Market
Copyright 2020 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.or... | @dev Storage helpers for the `SimpleFunctionRegistry` feature. | library LibSimpleFunctionRegistryStorage {
struct Storage {
mapping(bytes4 => address[]) implHistory;
}
function getStorage() internal pure returns (Storage storage stor) {
uint256 storageSlot = LibStorage.STORAGE_ID_SIMPLE_FUNCTION_REGISTRY;
}
assembly { stor.slot := storage... | 13,725,216 | [
1,
3245,
9246,
364,
326,
1375,
5784,
2083,
4243,
68,
2572,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
10560,
5784,
2083,
4243,
3245,
288,
203,
203,
203,
203,
565,
1958,
5235,
288,
203,
3639,
2874,
12,
3890,
24,
516,
1758,
63,
5717,
9380,
5623,
31,
203,
565,
289,
203,
203,
565,
445,
13840,
1435,
2713,
16618,
1135,
261,
3245... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../LPToken.sol";
import "../interfaces/IRedemptionPriceGetter.sol";
import "../interfaces/ISwap.sol";
import "../MathUtils.sol";
import "../Sw... | * @notice Return the stored value of base Swap's virtual price. If value was updated past BASE_CACHE_EXPIRE_TIME, then read it directly from the base Swap contract. @param driftingMetaSwapStorage DriftingMetaSwap struct to read from @return base Swap's virtual price/ | function _getBaseVirtualPrice(DriftingMetaSwap storage driftingMetaSwapStorage)
internal
view
returns (uint256)
{
if (
block.timestamp >
driftingMetaSwapStorage.baseCacheLastUpdated + BASE_CACHE_EXPIRE_TIME
) {
return driftingMetaSwapSt... | 1,087,869 | [
1,
990,
326,
4041,
460,
434,
1026,
12738,
1807,
5024,
6205,
18,
971,
460,
1703,
3526,
8854,
10250,
67,
8495,
67,
18433,
862,
67,
4684,
16,
1508,
855,
518,
5122,
628,
326,
1026,
12738,
6835,
18,
225,
5081,
430,
1787,
2781,
12521,
324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
2171,
6466,
5147,
12,
8956,
430,
1787,
2781,
12521,
2502,
5081,
430,
1787,
2781,
12521,
3245,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
309,
261,
20... |
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol | @dev Reads the uint64 at `mPtr` in memory. | function readUint64(
MemoryPointer mPtr
) internal pure returns (uint64 value) {
assembly ("memory-safe") {
value := mload(mPtr)
}
}
| 8,452,081 | [
1,
7483,
326,
2254,
1105,
622,
1375,
81,
5263,
68,
316,
3778,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
855,
5487,
1105,
12,
203,
3639,
9251,
4926,
312,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
1105,
460,
13,
288,
203,
3639,
19931,
7566,
7858,
17,
4626,
7923,
288,
203,
5411,
460,
519,
312,
945,
12,
81,
5263,
... |
./partial_match/1/0xB10daee1FCF62243aE27776D7a92D39dC8740f95/sources/src/abstracts/SablierV2Base.sol | Effects: set the protocol revenues to zero. | protocolRevenues[asset] = 0;
| 9,308,438 | [
1,
29013,
30,
444,
326,
1771,
5588,
2104,
281,
358,
3634,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1771,
10070,
2104,
281,
63,
9406,
65,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// 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... | inject NONSTANDARD NAMING
| function GEM847(bytes32, address) external view returns (uint256); | 12,918,551 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
611,
3375,
5193,
27,
12,
3890,
1578,
16,
1758,
13,
3903,
1476,
1135,
261,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-16
*/
pragma solidity ^0.6.6;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an ov... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract SHIBACOIN is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping... | 7,768,848 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
6122,
13450,
2226,
6266,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
... |
pragma solidity >=0.5.4 <0.6.0;
import './SafeMath.sol';
import './AOLibrary.sol';
import './TheAO.sol';
/**
* @title Voice
*/
contract Voice is TheAO {
using SafeMath for uint256;
// Public variables of the contract
string public name;
string public symbol;
uint8 public decimals = 4;
uint256 constant publi... | Check if the targeted staked balance is enough
| require (taoStakedBalance[_nameId][_taoId] >= _value); | 1,013,952 | [
1,
1564,
309,
326,
20715,
384,
9477,
11013,
353,
7304,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
6528,
261,
2351,
83,
510,
9477,
13937,
63,
67,
529,
548,
6362,
67,
2351,
83,
548,
65,
1545,
389,
1132,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
interface IERC20 {
function TOTALSUPPLY831() external view returns (uint256); //i... | inject NONSTANDARD NAMING
| function LOGBYTES11706(bytes11 p0) internal view { | 14,087,621 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
2018,
13718,
2499,
7301,
26,
12,
3890,
2499,
293,
20,
13,
2713,
1476,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/56/0xcf5f8F32A6bC034FFA358714b113e8Fdf7Fbffa0/sources/project_/contracts/BaseConfig.sol | StakingPool = IStakingPool(_StakingPoolAddress); CAFBnbLpToken = IERC20Upgradeable(_CAFBnbLpTokenAddress); AveragePriceOracle = IAveragePriceOracle(_AveragePriceOracleAddress); | ) internal {
_grantRole(DEFAULT_ADMIN_ROLE, _Admin);
_grantRole(FUNDS_RECOVERY_ROLE,_Admin);
require(_Admin != address(0), "Admin address cannot be zero address");
require(_StakingContractAddress != address(0), "Staking contract address cannot be zero address");
require(_CAFTokenAddress != address(0... | 3,250,017 | [
1,
510,
6159,
2864,
273,
467,
510,
6159,
2864,
24899,
510,
6159,
2864,
1887,
1769,
6425,
22201,
6423,
48,
84,
1345,
273,
467,
654,
39,
3462,
10784,
429,
24899,
3587,
22201,
6423,
48,
84,
1345,
1887,
1769,
27275,
5147,
23601,
273,
467,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
2713,
288,
203,
3639,
389,
16243,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
4446,
1769,
203,
3639,
389,
16243,
2996,
12,
42,
2124,
3948,
67,
30724,
17529,
67,
16256,
16,
67,
4446,
1769,
203,
6528,
24899,
4446,
480,... |
./partial_match/42/0x3dA2ca46Af2Ab9Ae5265862fe37a71Cd9F630b70/sources/contracts/Comptroller.sol | * @notice Set COMP speed for a single contributor @param contributor The contributor whose COMP speed to update @param compSpeed New COMP speed for contributor/ note that COMP speed could be set to 0 to halt liquidity rewards for a contributor | function _setContributorCompSpeed(address contributor, uint compSpeed) public {
require(adminOrInitializing(), "only admin can set comp speed");
updateContributorRewards(contributor);
if (compSpeed == 0) {
delete lastContributorBlock[contributor];
}
lastContribut... | 3,465,949 | [
1,
694,
13846,
8632,
364,
279,
2202,
31123,
225,
31123,
1021,
31123,
8272,
13846,
8632,
358,
1089,
225,
1161,
16562,
1166,
13846,
8632,
364,
31123,
19,
4721,
716,
13846,
8632,
3377,
506,
444,
358,
374,
358,
18389,
4501,
372,
24237,
283,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
442,
19293,
2945,
16562,
12,
2867,
31123,
16,
2254,
1161,
16562,
13,
1071,
288,
203,
3639,
2583,
12,
3666,
1162,
29782,
9334,
315,
3700,
3981,
848,
444,
1161,
8632,
8863,
203,
203,
3639,
1089,
442,
19293,
17631,... |
./partial_match/1/0x3edf71a31b80Ff6a45Fdb0858eC54DE98dF047AA/sources/BAE.sol | * @title SafeMath @dev Unsigned math operations with safety checks that revert on error/ | library SafeMath {
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath#mul: OVERFLOW");
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
... | 15,516,150 | [
1,
9890,
10477,
225,
1351,
5679,
4233,
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,
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,
12083,
14060,
10477,
288,
203,
203,
97,
203,
203,
225,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,... |
./full_match/421613/0x712A3480705560bB3158c8933403B04564305158/sources/project_/contracts/tokens/Corn.sol | Return Collectible to the address that is calling this function. [RE-ENTRANCY WARNING] external call, must be at the end
| IERC721(farmlandCollectible).safeTransferFrom(address(this),_msgSender(),collectibleID); | 11,566,863 | [
1,
990,
9302,
1523,
358,
326,
1758,
716,
353,
4440,
333,
445,
18,
306,
862,
17,
2222,
54,
1258,
16068,
9744,
65,
3903,
745,
16,
1297,
506,
622,
326,
679,
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,
3639,
467,
654,
39,
27,
5340,
12,
31246,
781,
464,
10808,
1523,
2934,
4626,
5912,
1265,
12,
2867,
12,
2211,
3631,
67,
3576,
12021,
9334,
14676,
1523,
734,
1769,
29159,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
import "./utility/SafeMath.sol";
import "./utility/TokenHandler.sol";
import "./interfaces/IVault.sol";
import "./interfaces/IOwned.sol";
import "./interfaces/IStakingPoolFactory.sol";
import "./interfaces/IStakingPoolFactoryStorage.sol";
import "./interfaces/IUniswapFactory.sol";
import "./in... | * @notice Function that allows you to exchange synths you hold in one flavour for another. @param _sourceCurrencyKey The source currency you wish to exchange from @param _sourceAmount The amount if the source currency you wish to exchange @param _destinationCurrencyKey The destination currency you wish to obtain./ | function synthExchange(bytes32 _sourceCurrencyKey, uint _sourceAmount, bytes32 _destinationCurrencyKey)
public
onlyOwner
{
ISynthetix(oks).exchange(_sourceCurrencyKey, _sourceAmount, _destinationCurrencyKey);
}
| 904,658 | [
1,
2083,
716,
5360,
1846,
358,
7829,
6194,
451,
87,
1846,
6887,
316,
1245,
31227,
477,
364,
4042,
18,
225,
389,
3168,
7623,
653,
1021,
1084,
5462,
1846,
14302,
358,
7829,
628,
225,
389,
3168,
6275,
1021,
3844,
309,
326,
1084,
5462,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
6194,
451,
11688,
12,
3890,
1578,
389,
3168,
7623,
653,
16,
2254,
389,
3168,
6275,
16,
1731,
1578,
389,
10590,
7623,
653,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
4437,
878,
451,
278,
697,
... |
pragma solidity 0.4.18;
import "../FwPermissions.sol";
contract TestFWPermissions is FwPermissions {
//for testing functions with modifiers
uint public counter;
// functions to switch states for different modifiers
function TestFWPermissions(address _admin, address _backupAdmin, address _reserve, ad... | switch adminStaked to true | function adminStake() public {
adminStaked = true;
}
| 7,296,469 | [
1,
9610,
3981,
510,
9477,
358,
638,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3981,
510,
911,
1435,
1071,
288,
203,
1850,
3981,
510,
9477,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x8139A938dD63BD698e134D7D845629115e4f5cbF/sources/GASTK.sol | @notice Verifies the current state. @param saleState_ Sale state to verify. | modifier checkState(SaleStates saleState_) {
if (msg.sender != tx.origin) revert NonEOA();
if (saleState != saleState_) revert InvalidSaleState();
_;
}
| 4,243,756 | [
1,
19802,
326,
783,
919,
18,
225,
272,
5349,
1119,
67,
348,
5349,
919,
358,
3929,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
13632,
12,
30746,
7629,
272,
5349,
1119,
67,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
2229,
18,
10012,
13,
15226,
3858,
41,
28202,
5621,
203,
3639,
309,
261,
87,
5349,
1119,
480,
272,
5349,
1119,
67,
13,
1... |
./full_match/1/0xBc4a4E7EcE9429D982f9D5C83bcadBB9b2e9314D/sources/limit-break-contracts/contracts/adventures/AdventureWhitelist.sol | * @title AdventureWhitelist @author Limit Break, Inc. @notice Implements the basic security features of the {IAdventurous} token standard for ERC721-compliant tokens. This includes a whitelist for trusted Adventure contracts designed to interoperate with this token./ | abstract contract AdventureWhitelist is InitializableOwnable {
pragma solidity ^0.8.4;
struct AdventureDetails {
bool isWhitelisted;
uint128 arrayIndex;
}
event AdventureWhitelistUpdated(address indexed adventure, bool whitelisted);
address[] public whitelistedAdventureList;
... | 17,051,130 | [
1,
1871,
616,
594,
18927,
225,
7214,
17030,
16,
15090,
18,
225,
29704,
326,
5337,
4373,
4467,
434,
326,
288,
45,
1871,
616,
295,
1481,
97,
1147,
4529,
364,
4232,
39,
27,
5340,
17,
832,
18515,
2430,
18,
1220,
6104,
279,
10734,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
17801,
6835,
4052,
616,
594,
18927,
353,
10188,
6934,
5460,
429,
288,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
24,
31,
203,
565,
1958,
4052,
616,
594,
3790,
288,
203,
3639,
1426,
353,
18927,
329,
31,
203,
3639,
22... |
pragma solidity ^0.5.2;
import "./ERC20Capped.sol";
import "./ERC20Burnable.sol";
import "./ERC20Detailed.sol";
import "./ERC20Pausable.sol";
contract Eraswap is ERC20Detailed,ERC20Burnable,ERC20Capped,ERC20Pausable {
event NRTManagerAdded(address NRTManager);
constructor()
public
ERC20D... | variable to store last NRT released to the address;
| uint256 public kmPardsBal; | 12,590,515 | [
1,
6105,
358,
1707,
1142,
423,
12185,
15976,
358,
326,
1758,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
18952,
52,
14727,
38,
287,
31,
10792,
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,
... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
import "../core/State.sol";
import "../events/LoanClosingsEvents.sol";
import "../mixins/VaultController.sol";
import "../mixins/InterestUser.s... | * @notice Internal function for closing a position by swapping the collateral back to loan tokens, paying the lender and withdrawing the remainder. @param loanId The id of the loan. @param receiver The receiver of the remainder (unused collatral + profit). @param swapAmount Defines how much of the position should be cl... | function _closeWithSwap(
bytes32 loanId,
address receiver,
uint256 swapAmount,
bool returnTokenIsCollateral,
bytes memory loanDataBytes
)
internal
returns (
uint256 loanCloseAmount,
uint256 withdrawAmount,
address withdrawToken
)
{
require(swapAmount != 0, "swapAmount == 0");
(Loan stor... | 956,025 | [
1,
3061,
445,
364,
7647,
279,
1754,
635,
7720,
1382,
326,
4508,
2045,
287,
1473,
358,
28183,
2430,
16,
8843,
310,
326,
328,
2345,
471,
598,
9446,
310,
326,
10022,
18,
225,
28183,
548,
1021,
612,
434,
326,
28183,
18,
225,
5971,
1021,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4412,
1190,
12521,
12,
203,
202,
202,
3890,
1578,
28183,
548,
16,
203,
202,
202,
2867,
5971,
16,
203,
202,
202,
11890,
5034,
7720,
6275,
16,
203,
202,
202,
6430,
327,
1345,
2520,
13535,
2045,
287,
16,
203,
202,
2... |
//Socials
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import './interfaces/SafeBEP20.sol';
import './TestCoin.sol';
// MasterChef is the master of TestCoin. He can make TestCoin and he is a fair Atom.
//
// Note that it's ownable an... | Info of each user that stakes LP tokens. | mapping(uint256 => mapping(address => UserInfo)) public _userInfo;
| 14,102,619 | [
1,
966,
434,
1517,
729,
716,
384,
3223,
511,
52,
2430,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
2874,
12,
2867,
516,
25003,
3719,
1071,
389,
1355,
966,
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... |
/*
▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄
▐░░░░░░░░░░░▐░░░░░░░░░░░▐░▌ ▐░▌ ▐░▐░░░░░░░░░░░▐░░░░░░░░░░▌▐░░░░░░░░░░░▐░░░░░░░░░░░▐░░░░░░░░░░░▌
▐░█▀▀▀▀▀▀▀█░▐░█▀▀▀▀▀▀▀█░▐░▌ ▐░▌ ▐░▌▐░█▀▀▀▀▀▀▀█░▐░█▀▀▀▀▀▀▀█░▐░█▀▀▀▀▀▀▀█░▐░█▀▀▀▀▀▀▀▀▀▐░█▀▀▀▀▀▀▀▀▀
▐... | 0.05% of the total supply
| uint256 private numTokensSellToAddToLiquidity = 50000000 * 10**9; | 14,473,266 | [
1,
20,
18,
6260,
9,
434,
326,
2078,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
818,
5157,
55,
1165,
13786,
774,
48,
18988,
24237,
273,
1381,
17877,
380,
1728,
636,
29,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.6.1;
pragma experimental ABIEncoderV2;
import "../ZeroOne/UserGroups/lib/UserGroup.sol";
/**
* @title UserGroupMock
* @dev mock for testing UserGroup lib
*/
contract UserGroupMock {
using UserGroup for UserGroup.Group;
UserGroup.Group group;
constructor(UserGroup.Group memory _gr... | * @title UserGroupMock @dev mock for testing UserGroup lib/ | contract UserGroupMock {
using UserGroup for UserGroup.Group;
UserGroup.Group group;
constructor(UserGroup.Group memory _group) public {
require(_group.validate(), "Incorrect UserGroup");
group = _group;
}
function testGetAdmin()
public
view
returns(add... | 990,488 | [
1,
21255,
9865,
225,
5416,
364,
7769,
30928,
2561,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
30928,
9865,
288,
203,
565,
1450,
30928,
364,
30928,
18,
1114,
31,
203,
565,
30928,
18,
1114,
1041,
31,
203,
377,
203,
565,
3885,
12,
21255,
18,
1114,
3778,
389,
1655,
13,
1071,
288,
203,
3639,
2583,
24899,
1655,
18,
5662,... |
pragma solidity ^0.4.13;
library ECRecovery {
/**
* @dev Recover signer address from a message by using their signature
* @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address.
* @param sig bytes signature, the signature is generated using web3.... | Checks for underflow
| require(multisigs[msigId].deposit >= amount + fee); | 5,492,791 | [
1,
4081,
364,
3613,
2426,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
23978,
360,
87,
63,
959,
360,
548,
8009,
323,
1724,
1545,
3844,
397,
14036,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/43114/0x8561c759D5c3f0777cd27961e9901B637C703347/sources/FeeDynamic.sol | hold >=10 to 59 $SPN
| uint256 public constant FARM_DYNAMIC_BALANCE_TIER1 = 10 * 10 ** 18; | 4,519,232 | [
1,
21056,
1545,
2163,
358,
14995,
271,
3118,
50,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
5381,
478,
26120,
67,
40,
25145,
67,
38,
1013,
4722,
67,
23240,
654,
21,
273,
1728,
380,
1728,
2826,
6549,
31,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * @dev Add an airline to the registration queue Can only be called from FlightSuretyApp contract/ | function registerAirline(address airline) external requireIsOperational
{
require(airline != address(0), "'airline' must be a valid address.");
airlines[airline] = 1;
}
| 2,551,541 | [
1,
986,
392,
23350,
1369,
358,
326,
7914,
2389,
1377,
4480,
1338,
506,
2566,
628,
3857,
750,
55,
594,
4098,
3371,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1744,
29752,
1369,
12,
2867,
23350,
1369,
13,
3903,
2583,
2520,
2988,
287,
203,
565,
288,
203,
3639,
2583,
12,
1826,
1369,
480,
1758,
12,
20,
3631,
2491,
1826,
1369,
11,
1297,
506,
279,
923,
1758,
1199,
1769,
203,
203,
... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Bounty.sol - SKALE Manager
Copyright (C) 2020-Present SKALE Labs
@author Dmytro Stebaiev
SKALE Manager 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 Softw... | * @dev Allows Owner or SkaleManager to mint an amount of tokens and transfer minted tokens to a specified address. Returns whether the operation is successful. Requirements: - Mint must not exceed the total supply./onlyAuthorized | function mint(
address account,
uint256 amount,
bytes calldata userData,
bytes calldata operatorData
)
external
override
allow("SkaleManager")
returns (bool)
{
require(amount <= CAP.sub(totalSupply()), "Amount is too big");
_min... | 9,880,064 | [
1,
19132,
16837,
578,
10362,
5349,
1318,
358,
312,
474,
392,
3844,
434,
2430,
471,
7412,
312,
474,
329,
2430,
358,
279,
1269,
1758,
18,
2860,
2856,
326,
1674,
353,
6873,
18,
29076,
30,
300,
490,
474,
1297,
486,
9943,
326,
2078,
1446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1731,
745,
892,
13530,
16,
203,
3639,
1731,
745,
892,
3726,
751,
203,
565,
262,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1699,
2... |
./full_match/1/0x1111306F3d849B133f533D6E9F7341d40De0cB4b/sources/src/RPVault.sol | @notice sends stored fee to fee distributor | function sendFee() public exceptManagementPhase {
if (storedFee == 0) {
revert FeeIsZero();
}
uint256 amount = storedFee;
storedFee = 0;
asset.transfer(feeDistributor, amount);
emit StoredFeeSent(storedFee);
}
| 8,293,639 | [
1,
4661,
87,
4041,
14036,
358,
14036,
1015,
19293,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1366,
14667,
1435,
1071,
1335,
10998,
11406,
288,
203,
3639,
309,
261,
22601,
14667,
422,
374,
13,
288,
203,
5411,
15226,
30174,
2520,
7170,
5621,
203,
3639,
289,
203,
3639,
2254,
5034,
3844,
273,
4041,
14667,
31,
203,
36... |
./full_match/4/0x7704389C0a827758c8761EA6176d185109da3aC7/sources/Proto.sol | Dolphin UN Charity Safe
| charity.push(0xd946E333a944068990f49cBFf7f0258Fa05f7611); | 12,278,224 | [
1,
40,
355,
844,
267,
5019,
3703,
560,
14060,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1149,
560,
18,
6206,
12,
20,
7669,
29,
8749,
41,
3707,
23,
69,
29,
6334,
7677,
28,
2733,
20,
74,
7616,
71,
15259,
74,
27,
74,
20,
2947,
28,
29634,
6260,
74,
6669,
2499,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: BSD-2
pragma solidity ^0.6.0;
/*
* @title DFO Protocol - Community-Driven Governance.
* @dev This is the well-known Functionality provided by the DFO protocol, which is triggered when a Proposal
* is finalized (whether it is successful or not).
* In case the Proposal Survey is successf... | * @dev Trigger for the finalization of a proposal. @param proposal Address for the proposal @param result/ | function proposalEnd(address proposal, bool result) public {
if (!result) {
return;
}
IMVDProxy proxy = IMVDProxy(msg.sender);
if (
IMVDFunctionalitiesManager(proxy.getMVDFunctionalitiesManagerAddress())
.hasFunctionality("getSurveySingleReward... | 6,390,821 | [
1,
6518,
364,
326,
727,
1588,
434,
279,
14708,
18,
225,
14708,
5267,
364,
326,
14708,
225,
563,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14708,
1638,
12,
2867,
14708,
16,
1426,
563,
13,
1071,
288,
203,
3639,
309,
16051,
2088,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
3639,
6246,
21544,
3886,
2889,
273,
6246,
21544,
3886,
12,
3576,
18,
15330,
1769... |
pragma solidity ^0.5.12;
/*
* @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 GSN meta-transac... | @notice Restrict a function to the Slasher contract. | modifier onlySlasher() {
require(address(slasher) == msg.sender, "DarknodeRegistry: must be slasher");
_;
}
string memory _VERSION,
RenToken _renAddress,
DarknodeRegistryStore _storeAddress,
uint256 _minimumBond,
uint256 _minimumPodSize,
uint256 _... | 7,310,726 | [
1,
29371,
279,
445,
358,
326,
9708,
961,
264,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
11033,
264,
1435,
288,
203,
3639,
2583,
12,
2867,
12,
12877,
264,
13,
422,
1234,
18,
15330,
16,
315,
40,
1313,
2159,
4243,
30,
1297,
506,
9026,
264,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
3639,
533,... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | not yet updated by oracle
| flight.updatedTimestamp = 0; | 5,362,919 | [
1,
902,
4671,
3526,
635,
20865,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
25187,
18,
7007,
4921,
273,
374,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.6.6;
... | inject NONSTANDARD NAMING
| function ALLOWANCE990(address owner, address spender) external view returns (uint256); | 1,825,747 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18592,
4722,
2733,
20,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x0996A41Eb04e33BBd0048350e6c5e4103a4aec8d/sources/contracts/Company.sol | Update the Employee salary. | function updateEmployeeSalary(address _employeeAddress ,uint256 _newSalary) public onlyOwner {
_employees[_employeeAddress].salary = _newSalary;
_employees[_employeeAddress].balance = 0;
}
| 862,575 | [
1,
1891,
326,
512,
27520,
12814,
814,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
41,
27520,
55,
287,
814,
12,
2867,
389,
351,
2817,
1340,
1887,
269,
11890,
5034,
389,
2704,
55,
287,
814,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
351,
2817,
25521,
63,
67,
351,
2817,
1340,
1887,
8009,
21982,
... |
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed p... | * @title SetherBaseCrowdsale @dev SetherBaseCrowdsale is a base contract for managing a sether token crowdsale./ The token being sold start and end timestamps where investments are allowed (both inclusive) address where funds are collected how many finney per token amount of raised money in wei | contract SetherBaseCrowdsale {
using SafeMath for uint256;
SetherToken public token;
uint256 public startTime;
uint256 public endTime;
address public wallet;
uint256 public rate;
uint256 public weiRaised;
event SethTokenPurchase(address indexed purchaser, address indexed beneficiar... | 1,013,912 | [
1,
55,
2437,
2171,
39,
492,
2377,
5349,
225,
348,
2437,
2171,
39,
492,
2377,
5349,
353,
279,
1026,
6835,
364,
30632,
279,
444,
1614,
1147,
276,
492,
2377,
5349,
18,
19,
1021,
1147,
3832,
272,
1673,
787,
471,
679,
11267,
1625,
2198,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
2437,
2171,
39,
492,
2377,
5349,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
348,
2437,
1345,
1071,
1147,
31,
203,
203,
565,
2254,
5034,
1071,
8657,
31,
203,
565,
2254,
5034,
1071,
13859,
31... |
./partial_match/1/0x490Fa9Dc69D05e754EE8a9615cb7ad781A51cB36/sources/DeelanceMembershipcards.sol | Initialize the ERC20 token contract | contract DeelanceMembershipcards is ERC1155, Ownable, Pausable, ERC1155Supply {
IERC20 public erc20Token;
erc20Token = IERC20(_erc20TokenAddress);
}
| 15,579,242 | [
1,
7520,
326,
4232,
39,
3462,
1147,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1505,
292,
1359,
13447,
3327,
87,
353,
4232,
39,
2499,
2539,
16,
14223,
6914,
16,
21800,
16665,
16,
4232,
39,
2499,
2539,
3088,
1283,
288,
203,
565,
467,
654,
39,
3462,
1071,
6445,
71,
3462,
1345,
31,
203,
203,
3639,
6445,... |
/**
*Submitted for verification at Etherscan.io on 2022-03-04
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
*... | * @title Metaversus contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ uint256 public RESERVED_NFT = 6000; | contract Metaversus is ERC721, ERC721Enumerable, Ownable, RandomlyAssigned {
uint256 public MAX_NFT_SUPPLY = 8888;
uint256 public NFT_PRICE = 0.18 ether;
uint256 public NFT_PRICE_PRESALE = 0.09 ether;
uint256 public MAX_NFT_WALLET_PRESALE = 3;
uint256 public MAX_NFT_WALLET = 10;
bool pub... | 10,992,832 | [
1,
12244,
22994,
407,
6835,
225,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2254,
5034,
1071,
2438,
19501,
67,
50,
4464,
273,
1666,
3784,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
21604,
22994,
407,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
16,
8072,
715,
20363,
288,
203,
203,
565,
2254,
5034,
1071,
4552,
67,
50,
4464,
67,
13272,
23893,
273,
1725,
5482,
28,
31,
... |
./partial_match/1/0x6afE6C37bF75f80D512b9D89C19EC0B346b09a8d/sources/RariFundController.sol | * @dev Approves tokens to Aave without spending gas on every deposit. @param erc20Contract The ERC20 contract address of the token. @param amount Amount of the specified token to approve to Aave./ | function approve(address erc20Contract, uint256 amount) external {
IERC20 token = IERC20(erc20Contract);
uint256 allowance = token.allowance(address(this), LENDING_POOL_CORE_CONTRACT);
if (allowance == amount) return;
if (amount > 0 && allowance > 0) token.safeApprove(LENDING_POOL_CO... | 2,629,448 | [
1,
12053,
3324,
2430,
358,
432,
836,
2887,
272,
9561,
16189,
603,
3614,
443,
1724,
18,
225,
6445,
71,
3462,
8924,
1021,
4232,
39,
3462,
6835,
1758,
434,
326,
1147,
18,
225,
3844,
16811,
434,
326,
1269,
1147,
358,
6617,
537,
358,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
6445,
71,
3462,
8924,
16,
2254,
5034,
3844,
13,
3903,
288,
203,
3639,
467,
654,
39,
3462,
1147,
273,
467,
654,
39,
3462,
12,
12610,
3462,
8924,
1769,
203,
3639,
2254,
5034,
1699,
1359,
273,
1147,
... |
./full_match/4/0x52C5F0bf65782f1d71a6011C73B9E935d12DADcb/sources/browser/Master.sol | ---| Remove from Total Supply |-----
| _totalSupply = _totalSupply.sub(tokensToBurn); | 12,473,871 | [
1,
6062,
96,
3581,
628,
10710,
3425,
1283,
571,
13465,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
4963,
3088,
1283,
273,
389,
4963,
3088,
1283,
18,
1717,
12,
7860,
774,
38,
321,
1769,
13491,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x76946B84A2A5c5BF655D8eCc28A9eE7B85890CD8/sources/contracts/libraries/Errors.sol | Roles BankAccountsERC1155ERC5006GeneralFundings | library Errors {
string constant public NOT_ALLOWED = "000";
string constant public BALANCE_NOT_AVAILABLE = "100";
string constant public IS_NOT_ENABLED = "200";
string constant public IS_ZERO_ADDRESS = "201";
string constant public NOT_OWNER_OR_OPERATOR = "300";
string constant public UNKNO... | 5,701,091 | [
1,
6898,
25610,
13971,
654,
39,
2499,
2539,
654,
39,
12483,
26,
12580,
42,
1074,
899,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
9372,
288,
203,
203,
565,
533,
5381,
1071,
4269,
67,
16852,
273,
315,
3784,
14432,
203,
203,
565,
533,
5381,
1071,
605,
1013,
4722,
67,
4400,
67,
23222,
273,
315,
6625,
14432,
203,
203,
565,
533,
5381,
1071,
4437,
67,
4400... |
./full_match/137/0x63464916388dAB4f2e80551250335490C4518D37/sources/contracts/WhiteBlackList/WhiteBlackList/WhiteBlackList.sol | * @dev contract initializer @param _registry The address of Registry contract/ solhint-disable-next-line comprehensive-interface | function initialize(address _registry) external initializer {
__WhiteBlackListBase_init(_registry);
}
| 4,758,385 | [
1,
16351,
12562,
225,
389,
9893,
1021,
1758,
434,
5438,
6835,
19,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1161,
266,
76,
14315,
17,
5831,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
12,
2867,
389,
9893,
13,
3903,
12562,
288,
203,
3639,
1001,
13407,
13155,
682,
2171,
67,
2738,
24899,
9893,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.10;
/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/... | use the booster or token balance to calculate reward balance multiplier | uint256 supplierTokens = applyBoosting ? flywheelBooster.boostedBalanceOf(market, user) : market.balanceOf(user);
| 1,412,313 | [
1,
1202,
326,
14994,
264,
578,
1147,
11013,
358,
4604,
19890,
11013,
15027,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
17402,
5157,
273,
2230,
26653,
310,
692,
21434,
21344,
26653,
264,
18,
25018,
329,
13937,
951,
12,
27151,
16,
729,
13,
294,
13667,
18,
12296,
951,
12,
1355,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
import "./NectarToken.sol";
import "zeppelin-solidity/contracts/math/SafeMath.sol";
/*
Lib for preforming actions based on offer state
*/
library OfferLib {
using SafeMath for uint256;
// TODO: Think about removing useless state varibles and or replacing with merkle root
... | get the token instance used to allow funds to msig ensure the amount sent to join channel matches the signed state balance Require bonded is the sum of balances in state | function join(bytes _state) public view returns (bool) {
NectarToken _t = NectarToken(getTokenAddress(_state));
require(msg.sender == getPartyB(_state), 'Party B does not mactch signature recovery');
require(getTotal(_state) == _t.balanceOf(this), 'token total deposited does not ma... | 14,074,246 | [
1,
588,
326,
1147,
791,
1399,
358,
1699,
284,
19156,
358,
4086,
360,
3387,
326,
3844,
3271,
358,
1233,
1904,
1885,
326,
6726,
919,
11013,
12981,
324,
265,
785,
353,
326,
2142,
434,
324,
26488,
316,
919,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1233,
12,
3890,
389,
2019,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
423,
386,
297,
1345,
389,
88,
273,
423,
386,
297,
1345,
12,
588,
1345,
1887,
24899,
2019,
10019,
203,
540,
203,
3639,
2583,
12,
3576,
18,... |
./full_match/1/0x14bf096bdbD142902237b8B778A1251384A53402/sources/elonsvision.sol | Create a uniswap pair for this new token set the rest of the contract variablesexclude owner and this contract from fee | constructor (address payable teamWalletAddress, address payable marketingWalletAddress) {
_teamWalletAddress = teamWalletAddress;
_marketingWalletAddress = marketingWalletAddress;
_rOwned[_msgSender()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Rout... | 3,163,895 | [
1,
1684,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
444,
326,
3127,
434,
326,
6835,
3152,
10157,
3410,
471,
333,
6835,
628,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
261,
2867,
8843,
429,
5927,
16936,
1887,
16,
1758,
8843,
429,
13667,
310,
16936,
1887,
13,
288,
203,
540,
203,
3639,
389,
10035,
16936,
1887,
273,
5927,
16936,
1887,
31,
203,
3639,
389,
3355,
21747,
16936,
1887,
273,
136... |