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: GPL-3.0
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IToken is IERC20{
function decimals() external view returns (uint);
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as def... | * @notice Custom function for swapExactTokensForETH that wraps the output asset into a Hedge Contract (underlying asset + ATM put option) @param amountIn amount of the token being swapped @param amountOutMin minimum amount of the output asset to be received @param path ordered list of assets to be swap from, to @param ... | function swapExactTokensForETHAndWrap(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline, uint protectionPeriod,
bool mintToken, uint minUSDCPremium)
external
override
ensure(deadline)
returns(uint[] memory amounts, uint newTokenId)
{
... | 1,201,757 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
6082,
445,
364,
7720,
14332,
5157,
1290,
1584,
44,
716,
9059,
326,
876,
3310,
1368,
279,
670,
7126,
13456,
261,
9341,
6291,
3310,
397,
14464,
49,
1378,
1456,
13,
632,
891,
3844,
382,
384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7720,
14332,
5157,
1290,
1584,
44,
1876,
2964,
12,
11890,
3844,
382,
16,
2254,
3844,
1182,
2930,
16,
1758,
8526,
745,
892,
589,
16,
1758,
358,
16,
2254,
14096,
16,
2254,
17862,
5027,
16,
203,
3639,
1426,
312,
474,
1345,... |
./partial_match/3/0x9C7FcB7eD4363075675344641E7cb5CC50bF7BF4/sources/FruitFarm.sol | * @notice Returns the remaining number of tokens that `spender` will be allowed to spend on behalf of `owner` through {transferFrom}. This is zero by default. This value changes when {approve} or {transferFrom} are called./ | function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
| 5,185,007 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
4463,
1300,
434,
2430,
716,
1375,
87,
1302,
264,
68,
903,
506,
2935,
358,
17571,
603,
12433,
6186,
434,
1375,
8443,
68,
3059,
288,
13866,
1265,
5496,
1220,
353,
3634,
635,
805... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1699,
1359,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
1071,
1476,
5024,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
5965,
6872,
63,
8443,
6362,
87,
1302,
264,
15533,
203,
565,
289,
203,
377,
203,
2,
-100,
-1... |
pragma solidity ^0.4.24;
/*
ETHEREUM WORLD CUP : 14th June - 15th July 2018 [Russia]
- designed and implemented by Norsefire.
- thanks to Etherguy and oguzhanox for debugging and front-end respectively.
Rules are as follows:
* Entry to the game costs 0.2018 Ether. Use the register function when sending t... | France vs Australia
| worldCupGameID["FR-AU"] = 5; | 2,278,635 | [
1,
4625,
348,
7953,
560,
30,
225,
13363,
1359,
4202,
6195,
432,
27008,
287,
1155,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
9117,
39,
416,
12496,
734,
9614,
9981,
17,
14237,
11929,
273,
1381,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >=0.4.22 <0.9.0;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint... | Set the symbol for display purposes
| symbol = "MONKE"; | 14,557,503 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
3273,
364,
2562,
13694,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
17667,
6859,
14432,
27573,
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,
-... |
./full_match/1/0x31CdFE2b7a702BD81512B7756a3D6D94756CA19D/sources/contracts/core/Controller.sol | / Check input amount Check substrategy length Todo: withdraw as much as possible If there is no to withdraw, skip this SS. If the SS can withdraw requested amt, then withdraw all and finish Withdraw max withdrawble amt and Todo deduct by withdrawAmt or withdrawFromSS Pay Withdraw Fee to treasury and send rest to user T... | function withdraw(uint256 _amount, address _receiver)
external
override
onlyVault
returns (uint256 withdrawAmt, uint256 fee)
{
require(_amount > 0, "ZERO AMOUNT");
require(subStrategies.length > 0, "INVALID_POOL_LENGTH");
uint256 toWithdraw = _amount;
... | 4,868,631 | [
1,
4625,
348,
7953,
560,
30,
342,
2073,
810,
3844,
2073,
2373,
3131,
769,
399,
7370,
30,
598,
9446,
487,
9816,
487,
3323,
971,
1915,
353,
1158,
358,
598,
9446,
16,
2488,
333,
12867,
18,
971,
326,
12867,
848,
598,
9446,
3764,
25123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
598,
9446,
12,
11890,
5034,
389,
8949,
16,
1758,
389,
24454,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1338,
12003,
203,
3639,
1135,
261,
11890,
5034,
598,
9446,
31787,
16,
2254,
5034,
14036,
13,
203,
565,
288,
2... |
./partial_match/1/0xa439e55Cc98209d32c2071fE27E3aaE2930CeD93/sources/SHAREX.sol | 2% from total supply maxWallet
| maxWallet = 29555555555554 * 1e18; | 4,362,835 | [
1,
4625,
348,
7953,
560,
30,
225,
576,
9,
628,
2078,
14467,
943,
16936,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
943,
16936,
273,
12899,
27982,
27982,
2539,
6564,
380,
404,
73,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This p... | Specific code for a simple swap and a multihop (2 swaps in sequence) | function multihopBatchSwapExactOut(
Swap[][] memory swapSequences,
TokenInterface tokenIn,
TokenInterface tokenOut,
uint maxTotalAmountIn,
uint8 flag
)
public payable discountCHI(flag)
returns (uint totalAmountIn)
{
transferFromAll(tokenIn, maxTotalAmo... | 2,352,696 | [
1,
4625,
348,
7953,
560,
30,
225,
23043,
981,
364,
279,
4143,
7720,
471,
279,
3309,
18444,
261,
22,
1352,
6679,
316,
3102,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3309,
18444,
4497,
12521,
14332,
1182,
12,
203,
3639,
12738,
63,
6362,
65,
3778,
7720,
21710,
16,
203,
3639,
29938,
1147,
382,
16,
203,
3639,
29938,
1147,
1182,
16,
203,
3639,
2254,
943,
5269,
6275,
382,
16,
203,
3639,
... |
./full_match/5/0x23C38E3971A892e8c82cB2dc10C6bf84667d9eA5/sources/project_/src/contracts/BridgedMartiaToken.sol | ------------------------------------------------------------------------ Get the token balance for account `tokenOwner` ------------------------------------------------------------------------ | function balanceOf(address tokenOwner)
public
view
override
returns (uint256 balance)
{
return balances[tokenOwner];
}
| 1,887,019 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
968,
326,
1147,
11013,
364,
2236,
1375,
2316,
5541,
68,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
11013,
951,
12,
2867,
1147,
5541,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
11013,
13,
203,
565,
288,
203,
3639,
327,
324,
26488,
63,
2316,
5541,
15533,
203,
565,
289,
203... |
//Address: 0x94394EbE010332c5A40d946658779d26dA3aC92B
//Contract name: LooksCoinCrowdSale
//Balance: 0 Ether
//Verification Date: 1/15/2018
//Transacion Count: 5
// CODE STARTS HERE
pragma solidity ^0.4.19;
/*
* LooksCoin token sale contract
*
* Refer to https://lookrev.com/tokensale/ for more information.
*
* Dev... | * Transferring the contract ownership to the new owner. @param _newOwner new contractor owner/ | function transferOwnership(address _newOwner) onlyOwner {
if (_newOwner != 0x0) {
newOwner = _newOwner;
}
}
| 6,429,618 | [
1,
4625,
348,
7953,
560,
30,
380,
2604,
74,
20245,
326,
6835,
23178,
358,
326,
394,
3410,
18,
632,
891,
389,
2704,
5541,
394,
6835,
280,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5460,
12565,
12,
2867,
389,
2704,
5541,
13,
1338,
5541,
288,
203,
3639,
309,
261,
67,
2704,
5541,
480,
374,
92,
20,
13,
288,
203,
1850,
394,
5541,
273,
389,
2704,
5541,
31,
203,
3639,
289,
203,
565,
289,
203,
... |
./full_match/5/0x1A0d58a79fB4e74f6a7d45bFD91C0EF3DEEfcF86/sources/contracts/tenderswap/SwapUtils.sol | * @notice internal helper function to calculate fee per token multiplier used in swap fee calculations @param swapFee swap fee for the tokens/ | function _feePerToken(uint256 swapFee) internal pure returns (uint256) {
return swapFee / NUM_TOKENS;
}
uint256 public constant MAX_A = 10**6;
uint256 private constant MAX_A_CHANGE = 2;
uint256 private constant MIN_RAMP_TIME = 14 days;
| 1,887,427 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2713,
4222,
445,
358,
4604,
14036,
1534,
1147,
15027,
1399,
316,
7720,
14036,
20882,
632,
891,
7720,
14667,
7720,
14036,
364,
326,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
21386,
2173,
1345,
12,
11890,
5034,
7720,
14667,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
7720,
14667,
342,
9443,
67,
8412,
55,
31,
203,
565,
289,
203,
203,
565,
2254,
5034,
1071,
5381,
455... |
./full_match/56/0xa83B3E821F6CF63Cde35c9aC7012c00bF57a438D/sources/contracts/NewAlver.sol | Set the launchedAt to token launch | function launch() internal {
launchedAt = block.number;
}
| 3,245,869 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
28786,
861,
358,
1147,
8037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8037,
1435,
2713,
288,
203,
3639,
28786,
861,
273,
1203,
18,
2696,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.2;
//based on swc
//Unsafe array manipulation and arbitrary write storage locations
contract Wallet {
uint[] private bonusCodes;
address private owner;
constructor() public {
bonusCodes = new uint[](0);
owner = msg.sender;
}
fallback () external payable {
... | when bonusCodes.length can be underflow, the require-statement is always true.anyone can write data into this contract | function UpdateBonusCodeAt(uint idx, uint c) external {
require(idx < bonusCodes.length);
bonusCodes[idx] = c;
}
| 972,062 | [
1,
4625,
348,
7953,
560,
30,
1347,
324,
22889,
6295,
18,
2469,
848,
506,
3613,
2426,
16,
326,
2583,
17,
11516,
353,
3712,
638,
18,
2273,
476,
848,
1045,
501,
1368,
333,
6835,
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,
2315,
38,
22889,
1085,
861,
12,
11890,
2067,
16,
2254,
276,
13,
3903,
288,
203,
3639,
2583,
12,
3465,
411,
324,
22889,
6295,
18,
2469,
1769,
203,
3639,
324,
22889,
6295,
63,
3465,
65,
273,
276,
31,
203,
565,
289,
203,... |
./full_match/1/0xc07bBC8Ec176D3525569263253a24CfF7d6A31eb/sources/src/vaults/AffineVault.sol | @notice Emitted when a strategy is added by governance | event StrategyAdded(Strategy indexed strategy);
| 9,604,767 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
512,
7948,
1347,
279,
6252,
353,
3096,
635,
314,
1643,
82,
1359,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
19736,
8602,
12,
4525,
8808,
6252,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x88b4cb056467cdd50e1760d309b18139ce31b3c5
//Contract name: ReserveToken
//Balance: 0.1 Ether
//Verification Date: 4/22/2018
//Transacion Count: 7
// CODE STARTS HERE
// Welcome to Reserve Token.
//
pragma solidity ^0.4.0;
contract ReserveToken {
address public tank; //SBC - The tank of the contr... | SBC - The sender amount must be greater than this amount.
| uint256 public firstTTaxAmount = 10000; | 2,566,665 | [
1,
4625,
348,
7953,
560,
30,
348,
16283,
300,
1021,
5793,
3844,
1297,
506,
6802,
2353,
333,
3844,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
1122,
1470,
651,
6275,
273,
12619,
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,
... |
pragma solidity 0.7.4;
import "../utils/TieredOwnable.sol";
import "../interfaces/ISkyweaverAssets.sol";
import "@0xsequence/erc-1155/contracts/utils/SafeMath.sol";
import "@0xsequence/erc-1155/contracts/interfaces/IERC165.sol";
import "@0xsequence/erc-1155/contracts/interfaces/IERC1155.sol";
import "@0xsequence/erc-1... | * @notice Prevents receiving Ether or calls to unsuported methods/ | fallback () external {
revert("ConquestEntriesFactory#_: UNSUPPORTED_METHOD");
}
| 1,075,208 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
19412,
87,
15847,
512,
1136,
578,
4097,
358,
640,
2859,
24726,
2590,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
5922,
1832,
3903,
288,
203,
565,
15226,
2932,
442,
456,
5400,
1733,
7,
67,
30,
26049,
3079,
14289,
67,
5327,
8863,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/97/0x7C70707f523120E8e9CfBca572c23495Cb7A820B/sources/contracts/contracts_BSC/Swaps/Router.sol | given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset | function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
require(amountIn > 0, 'NimbusV2Library: INSUFFICIENT_INPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'NimbusV2Library: INSUFFICIENT_LIQUIDITY');
uint amountInWithFee = amou... | 3,284,732 | [
1,
4625,
348,
7953,
560,
30,
225,
864,
392,
810,
3844,
434,
392,
3310,
471,
3082,
400,
264,
3324,
16,
1135,
326,
4207,
876,
3844,
434,
326,
1308,
3310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24418,
1182,
12,
11890,
3844,
382,
16,
2254,
20501,
382,
16,
2254,
20501,
1182,
13,
2713,
16618,
1135,
261,
11890,
3844,
1182,
13,
288,
203,
3639,
2583,
12,
8949,
382,
405,
374,
16,
296,
50,
381,
9274,
58,
22,
9313,
3... |
./full_match/1/0xE56a239BcF946700C6063FDb8afa015C89e30266/sources/contracts/hoxacoin.sol | * @dev See {IERC20-totalSupply}./ | function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
| 3,165,520 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
3462,
17,
4963,
3088,
1283,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
2078,
3088,
1283,
1435,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
4963,
3088,
1283,
31,
203,
565,
289,
203,
27699,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.11;
import "@openzeppelin/contracts/math/SafeMath.sol";
/**
* @title Immutable Randomness Beacon
* @notice A commit/reveal based randomness beacon. Use for low-security randomness.
* @author Immutable
*/
contract Beacon {
using SafeMath for uint256;
// Emitted after a commitment is m... | * @title Immutable Randomness Beacon @notice A commit/reveal based randomness beacon. Use for low-security randomness. @author Immutable/ Emitted after a commitment is made Emitted after a block is 'recommitted' Emitted once a successful callback is made Maps an old commit block to a newer commit block if a recommit is... | contract Beacon {
using SafeMath for uint256;
event Commit(uint256 indexed commitBlock);
event Recommit(uint256 indexed original, uint256 indexed forwardTo);
event Callback(uint256 indexed commitBlock, bytes32 seed);
mapping(uint256 => uint256) public forwards;
mapping(uint256 => bytes32) pub... | 2,490,712 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7252,
8072,
4496,
4823,
16329,
632,
20392,
432,
3294,
19,
266,
24293,
2511,
2744,
4496,
29203,
18,
2672,
364,
4587,
17,
7462,
2744,
4496,
18,
632,
4161,
7252,
19,
512,
7948,
1839,
279,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4823,
16329,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
10269,
12,
11890,
5034,
8808,
3294,
1768,
1769,
203,
565,
871,
868,
7371,
12,
11890,
5034,
8808,
2282,
16,
2254,
5034,
8808,
5104,... |
/**
*Submitted for verification at Etherscan.io on 2021-02-03
*/
/*
* Origin Protocol
* https://originprotocol.com
*
* Released under the MIT license
* https://github.com/OriginProtocol/origin-dollar
*
* Copyright 2020 Origin Protocol, Inc
*
* Permission is hereby granted, free of charge, to any person obtai... | * @dev Deposit a amount of asset into the platform @param _asset Address for the asset @param _amount Units of asset to deposit/* @dev Withdraw an amount of asset from the platform. @param _recipient Address to which the asset should be sent @param _asset Address of the as... | contract CompoundStrategy is InitializableAbstractStrategy {
event SkippedWithdrawal(address asset, uint256 amount);
function _abstractSetPToken(address _asset, address _pToken) internal;
function safeApproveAllTokens() external;
function deposit(address _asset, uint256 _amount) external;
functi... | 10,491,969 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4019,
538,
305,
279,
3844,
434,
3310,
1368,
326,
4072,
632,
891,
389,
9406,
9079,
5267,
364,
326,
3310,
632,
891,
389,
8949,
2868,
27845,
434,
3310,
358,
443,
1724,
20308,
632,
5206,
3423... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21327,
4525,
353,
10188,
6934,
7469,
4525,
288,
203,
565,
871,
6611,
1845,
1190,
9446,
287,
12,
2867,
3310,
16,
2254,
5034,
3844,
1769,
203,
203,
565,
445,
389,
17801,
694,
52,
1345,
12,
2867,
389,
9406,
16,
1758,
389,
84,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount o... | @dev Check whether given token is reserved or not. Reserved tokens are not allowed to sweep. | function isReservedToken(address _token) public view virtual override returns (bool) {
return _isReservedToken(_token);
}
| 13,393,915 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2073,
2856,
864,
1147,
353,
8735,
578,
486,
18,
16237,
2430,
854,
486,
2935,
358,
17462,
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... | [
1,
1,
1,
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,
353,
10435,
1345,
12,
2867,
389,
2316,
13,
1071,
1476,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
291,
10435,
1345,
24899,
2316,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;
import {Errors} from "../helpers/Errors.sol";
import {DataTypes} from "../types/DataTypes.sol";
/**
* @title NftLogic library
* @author Bend
* @notice Implements the logic to update the nft state
*/
library NftLogic {
/**
* @dev Initializes a nft
... | 'The caller must be the emergency admin'
| string public constant LPC_CALLER_NOT_EMERGENCY_ADMIN = "702"; | 28,231 | [
1,
4625,
348,
7953,
560,
30,
225,
296,
1986,
4894,
1297,
506,
326,
801,
24530,
3981,
11,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
533,
1071,
5381,
511,
3513,
67,
13730,
654,
67,
4400,
67,
3375,
654,
16652,
16068,
67,
15468,
273,
315,
27,
3103,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/295/0x00000000000000000000000000000000002Cc9D1/sources/contracts/MultiRewards.sol | handle the transfer of reward tokens via `transferFrom` to reduce the number of transactions required and ensure correctness of the reward amount | function notifyRewardAmount(address _token, uint256 _reward) external onlyOwner updateReward(address(0)) {
_safeTransferFrom(_token, msg.sender, address(this), _reward);
if (block.timestamp >= rewardData[_token].periodFinish) {
rewardData[_token].rewardRate = _reward.div(rewardData[_tok... | 3,509,608 | [
1,
4625,
348,
7953,
560,
30,
225,
1640,
326,
7412,
434,
19890,
2430,
3970,
1375,
13866,
1265,
68,
358,
5459,
326,
1300,
434,
8938,
1931,
471,
3387,
3434,
4496,
434,
326,
19890,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5066,
17631,
1060,
6275,
12,
2867,
389,
2316,
16,
2254,
5034,
389,
266,
2913,
13,
3903,
1338,
5541,
1089,
17631,
1060,
12,
2867,
12,
20,
3719,
288,
203,
3639,
389,
4626,
5912,
1265,
24899,
2316,
16,
1234,
18,
15330,
16,... |
./full_match/1/0xE39dEC81B2186A1A2e36bFC260F3Df444b36948A/sources/contracts/DIVAOwnershipMain.sol | Transfer DIVA token to `msg.sender` | _DIVA_TOKEN.safeTransfer(msg.sender, _amount);
| 16,496,004 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
27355,
37,
1147,
358,
1375,
3576,
18,
15330,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
2565,
27722,
67,
8412,
18,
4626,
5912,
12,
3576,
18,
15330,
16,
389,
8949,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
//Developed By https://twitter.com/denialcd048
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@o... | * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf()./ | function _setOwnersExplicit(uint256 quantity) internal {
uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet;
require(quantity > 0, "quantity must be nonzero");
uint256 endIndex = oldNextOwnerToSet + quantity - 1;
if (endIndex > _collectionSize - 1) {
endIndex = _collect... | 12,780,819 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
24321,
715,
444,
1375,
995,
414,
68,
358,
29529,
14075,
316,
3563,
4097,
434,
3410,
951,
7675,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
5460,
414,
17186,
12,
11890,
5034,
10457,
13,
2713,
288,
203,
3639,
2254,
5034,
1592,
2134,
5541,
25208,
273,
1024,
5541,
774,
17186,
715,
694,
31,
203,
3639,
2583,
12,
16172,
405,
374,
16,
315,
16172,
1297,
5... |
pragma solidity ^0.4.21;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract XCDT {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public totalSupply;... | Set the name for display purposes
| name = "East Caribbean Dollar Tether"; | 10,342,691 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
508,
364,
2562,
13694,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
508,
273,
315,
41,
689,
23672,
495,
14496,
463,
25442,
399,
2437,
14432,
28524,
1850,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1313161554/0xa200B567579a577F582d292f7A1b5C4ecce195F8/sources/Comptroller.sol | * @notice Include / exclude an address from the whitelist. Only callable by admin/ | function setWhitelisted(address addr, bool whitelisted) external {
adminOrInitializing();
isWhitelisted[addr] = whitelisted;
emit WhitelistStatusChanged(addr, whitelisted);
}
| 16,936,530 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12672,
342,
4433,
392,
1758,
628,
326,
10734,
18,
5098,
4140,
635,
3981,
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,
444,
18927,
329,
12,
2867,
3091,
16,
1426,
26944,
13,
3903,
288,
203,
3639,
3981,
1162,
29782,
5621,
203,
3639,
353,
18927,
329,
63,
4793,
65,
273,
26944,
31,
203,
3639,
3626,
3497,
7523,
1482,
5033,
12,
4793,
16,
26944... |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title OxyFarmsNFT
* @dev The NFTrees token contract for the fir... | * @dev preMint is an external function that allows the minting process to happen during pre sale. @param _quantity number of NFTrees we want to mint./ | function preMint(uint _quantity) external payable {
require(hasPreSaleStarted, "OxyFarmsNFT::preMint: Presale hasn't started.");
require(!preSaleOver, "OxyFarmsNFT::preMint: Presale is over, no more allowances.");
require(_quantity > 0, "OxyFarmsNFT::preMint: Quantity cannot be zero.");
... | 254,234 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
675,
49,
474,
353,
392,
3903,
445,
716,
5360,
326,
312,
474,
310,
1207,
358,
5865,
4982,
675,
272,
5349,
18,
632,
891,
389,
16172,
1300,
434,
423,
4464,
5312,
732,
2545,
358,
312,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
49,
474,
12,
11890,
389,
16172,
13,
3903,
8843,
429,
225,
288,
203,
3639,
2583,
12,
5332,
1386,
30746,
9217,
16,
315,
51,
1698,
17393,
959,
50,
4464,
2866,
1484,
49,
474,
30,
18346,
5349,
13342,
1404,
5746,
1199,
... |
./full_match/1/0x4511075Bb18809a5433F5f98b08cBD892bAc9eDF/sources/contracts/interfaces/IPolemarch.sol | function setGovernor(GovernorTimelockControlUpgradeable governor) external; | interface IPolemarch {
event Supply(address indexed exchequer, address indexed user, uint256 amount);
event GrantSupply(address indexed exchequer, address indexed user, uint256 amount);
event Withdraw(address indexed exchequer, address indexed user, uint256 amount);
event CreateLineOfCredit(
uint128 indexed id,
... | 16,596,352 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
26770,
1643,
29561,
12,
43,
1643,
29561,
10178,
292,
975,
3367,
10784,
429,
314,
1643,
29561,
13,
3903,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
2971,
790,
81,
991,
288,
203,
202,
2575,
3425,
1283,
12,
2867,
8808,
431,
343,
14298,
264,
16,
1758,
8808,
729,
16,
2254,
5034,
3844,
1769,
203,
202,
2575,
19689,
3088,
1283,
12,
2867,
8808,
431,
343,
14298,
264,
16,
1758,
... |
./partial_match/1/0xEc30037C9A8A6A3f42734c30Dfa0a208aF71b40C/sources/KyberFeeHandler.sol | @dev set new kyberNetwork address by daoOperator @param _kyberNetwork new kyberNetwork contract | function setNetworkContract(address _kyberNetwork) external onlyDaoOperator {
require(_kyberNetwork != address(0), "kyberNetwork 0");
if (_kyberNetwork != kyberNetwork) {
kyberNetwork = _kyberNetwork;
emit KyberNetworkUpdated(kyberNetwork);
}
}
| 2,580,286 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
444,
394,
417,
93,
744,
3906,
1758,
635,
15229,
5592,
632,
891,
389,
18465,
744,
3906,
394,
417,
93,
744,
3906,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
3906,
8924,
12,
2867,
389,
18465,
744,
3906,
13,
3903,
1338,
11412,
5592,
288,
203,
3639,
2583,
24899,
18465,
744,
3906,
480,
1758,
12,
20,
3631,
315,
18465,
744,
3906,
374,
8863,
203,
3639,
309,
261,
67,
18465,
74... |
./partial_match/5/0x61A909fFEAD7d67F923e6F73b525Be3a26B4E3Df/sources/DeporDEAO.sol | add haspledgeUota if(userCurrentPledgeQuota[_sellerAddr].hasUsedQuota >= ) | function buyToken(address _sellerAddr, uint256 _needBuy) public {
uint256 senderAvailableUSDT = usdt.balanceOf(msg.sender);
uint256 needUSDT = _needBuy.mul(dpoPriceIn1000).div(1000);
require(senderAvailableUSDT >= needUSDT, "Not Enough USDT for buy DPO");
uint256 sellerId;
u... | 16,861,325 | [
1,
4625,
348,
7953,
560,
30,
527,
711,
84,
19998,
57,
25441,
309,
12,
1355,
3935,
52,
19998,
10334,
63,
67,
1786,
749,
3178,
8009,
5332,
6668,
10334,
1545,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1345,
12,
2867,
389,
1786,
749,
3178,
16,
2254,
5034,
389,
14891,
38,
9835,
13,
1071,
288,
203,
3639,
2254,
5034,
5793,
5268,
3378,
9081,
273,
584,
7510,
18,
12296,
951,
12,
3576,
18,
15330,
1769,
203,
3639,
2254... |
./full_match/40/0x3d64b4332E52317fD130b2873Cd2766704b33dd6/sources/contracts/MasterChefV2.sol | @notice Add a new pool. Can only be called by the owner. DO NOT add the same LP token more than once. Rewards will be messed up if you do. @param _allocPoint Number of allocation points for the new pool. @param _lpToken Address of the LP ERC-20 token. @param _isRegular Whether the pool is regular or special. LP farms ... | function add(
uint256 _allocPoint,
IERC20 _lpToken,
bool _isRegular,
bool _withUpdate
) external onlyOwner {
require(_lpToken.balanceOf(address(this)) >= 0, "0 balance");
require(_lpToken != POPS, "POPS token can't be added to farm pools");
if (_withUpdat... | 9,549,016 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1436,
279,
394,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
731,
309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
12,
203,
3639,
2254,
5034,
389,
9853,
2148,
16,
203,
3639,
467,
654,
39,
3462,
389,
9953,
1345,
16,
203,
3639,
1426,
389,
291,
17974,
16,
203,
3639,
1426,
389,
1918,
1891,
203,
565,
262,
3903,
1338,
5541,
288,
20... |
./full_match/42220/0x7cdC85bE7A6a71fe58943Af22b68c7136f6642DB/sources/contracts/MasterChef.sol | View function to see pending CORISs on frontend. | function pendingCorgiS(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accCorgiSPerShare = pool.accCorgiSPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
... | 16,332,139 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
28359,
5127,
87,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4634,
39,
3341,
77,
55,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.6;
//
... | given some amount of an asset and pair reserves, returns an equivalent amount of the other asset | require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
| 12,546,479 | [
1,
4625,
348,
7953,
560,
30,
225,
864,
2690,
3844,
434,
392,
3310,
471,
3082,
400,
264,
3324,
16,
1135,
392,
7680,
3844,
434,
326,
1308,
3310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
8949,
37,
405,
374,
16,
296,
984,
291,
91,
438,
58,
22,
9313,
30,
2120,
6639,
42,
1653,
7266,
2222,
67,
2192,
51,
5321,
8284,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//Address: 0x1de89382684ce5a99fc9d3d4b709706d6a013571
//Contract name: SolutionGame
//Balance: 0.542 Ether
//Verification Date: 6/15/2018
//Transacion Count: 89
// CODE STARTS HERE
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
... | * @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;
address public admin;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() public {
owner = msg.sender;
admin = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
... | 6,409,373 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
3981,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
565,
3885,
1435,
1071,
... |
pragma solidity 0.7.0;
// Definition of the interface of ExternalContract for easier integration into ExternalCallPattern
contract ExternalContract {
function externalFunction(string memory _text1, string memory _text2)
public pure returns (bool) {
return keccak256(bytes(_text1)) == keccak256(bytes(... | Check if a smart contract is available at the given address to avoid, for example, asset loss when sending asset Instantiate ExternalContract to make direct calls with revert(…) in case of failures in the function execution Check return value of c.externalFunction(…) | function doSomething(address _externalAddress, string memory _text1,
string memory _text2) public isContract(_externalAddress) {
require(isContract(_externalAddress), "No smart contract available at given address!");
ExternalContract c = ExternalContract(_externalAddress);
bool equal ... | 5,437,329 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
279,
13706,
6835,
353,
2319,
622,
326,
864,
1758,
358,
4543,
16,
364,
3454,
16,
3310,
8324,
1347,
5431,
3310,
26492,
11352,
8924,
358,
1221,
2657,
4097,
598,
15226,
12,
163,
227,
104,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
24332,
12,
2867,
389,
9375,
1887,
16,
533,
3778,
389,
955,
21,
16,
203,
1377,
533,
3778,
389,
955,
22,
13,
1071,
353,
8924,
24899,
9375,
1887,
13,
288,
203,
3639,
2583,
12,
291,
8924,
24899,
9375,
1887,
3631,
315... |
./full_match/1/0x493405E7668ad55ecf1632581a4902caD68D398A/sources/contracts/hacker/BIGTIME.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 bgtime_) {
_name = name_;
_symbol = symbol_;
_bgtime = bgtime_;
_mint(msg.sender, 200000000 * 10 ** 18);
}
| 9,766,005 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
16,
1758,
7611,
957,
67,
13,
288,
203,
3639,
389,
529,
273,
508,
67,
31,
7010,
3639,
389,
7175,
273,
3273,
67,
31,
7010,
3639,
389,
12370,
957,
273,
7611,
957,
67,
... |
pragma solidity ^0.4.22;
import "./IDaoBase.sol";
import "./DaoStorage.sol";
import "./DaoBaseLib.sol";
/**
* @title DaoBase
* @dev Main Thetta DAO Framework contract.
* Usage scenarios:
* 1) Preferred: become its client (derive your contract from DaoClient contract!)
* 2) Optional: derive a contract directly... | call observers.onUpgrade() for all observers
| emit DaoBaseUpgradeDaoContract(_new); | 12,852,772 | [
1,
4625,
348,
7953,
560,
30,
225,
745,
19813,
18,
265,
10784,
1435,
364,
777,
19813,
1082,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
18356,
463,
6033,
2171,
10784,
11412,
8924,
24899,
2704,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity ^0.7.0;
import {DAI} from "./DAI.sol";
/**
* Basic debt contract allows to borrow DAI for a fixed period of time using ETH as a collateral.
* Fee is constant and predefined. In case of the lack of payment - the whole collateral
* wil... | * Basic debt contract allows to borrow DAI for a fixed period of time using ETH as a collateral. Fee is constant and predefined. In case of the lack of payment - the whole collateral will be liquidated and transfered to the lender. DISCLAIMER: Not audited. Do not use with any real value/ The scructure defining the basi... | contract BasicLoan {
pragma experimental ABIEncoderV2;
import {DAI} from "./DAI.sol";
struct Terms {
uint256 loanDaiAmount;
uint256 feeDaiAmount;
uint256 ethCollateralAmount;
uint256 repayByTimestamp;
}
Terms public terms;
LoanState public state;
address payable pub... | 2,475,287 | [
1,
4625,
348,
7953,
560,
30,
380,
7651,
18202,
88,
6835,
5360,
358,
29759,
463,
18194,
364,
279,
5499,
3879,
434,
813,
1450,
512,
2455,
487,
279,
4508,
2045,
287,
18,
30174,
353,
5381,
471,
19555,
18,
657,
648,
434,
326,
30679,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7651,
1504,
304,
288,
203,
683,
9454,
23070,
10336,
45,
7204,
58,
22,
31,
203,
5666,
288,
9793,
45,
97,
628,
25165,
9793,
45,
18,
18281,
14432,
203,
565,
1958,
26563,
288,
203,
3639,
2254,
5034,
28183,
40,
10658,
6275,
31,... |
./partial_match/1/0xB985eA1be961f7c4A4C45504444C02c88c4fdEF9/sources/lib/hats-module/lib/solady/src/utils/Clone.sol | @dev Reads an immutable arg with type address. @solidity memory-safe-assembly | function _getArgAddress(uint256 argOffset) internal pure returns (address arg) {
uint256 offset = _getImmutableArgsOffset();
assembly {
arg := shr(96, calldataload(add(offset, argOffset)))
}
}
| 2,750,363 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
29185,
392,
11732,
1501,
598,
618,
1758,
18,
632,
30205,
560,
3778,
17,
4626,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
4117,
1887,
12,
11890,
5034,
1501,
2335,
13,
2713,
16618,
1135,
261,
2867,
1501,
13,
288,
203,
3639,
2254,
5034,
1384,
273,
389,
588,
16014,
2615,
2335,
5621,
203,
3639,
19931,
288,
203,
5411,
1501,
519,
699,
... |
./partial_match/1/0xc231EA5C3F934b3a9C502e50fDf66fAb5B179CD4/sources/Aptozeum.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ | function _burn(address account, uint256 amount) internal {
require(account != address(0), "APZ: burn from the zero address");
_balances[account] = _balances[account].sub(amount, "APZ: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
... | 2,603,774 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
565,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
2203,
62,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
203,
565,
389,
70,
26488,
63,
4631,
65... |
pragma solidity ^0.4.23;
import "openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol";
import "openzeppelin-solidity/contracts/crowdsale/validation/WhitelistedCrowdsale.sol";
import "openzeppelin-solidity/contracts/crowdsale/distribution/PostDeliveryCrowdsale.sol";
import "openzeppelin-solidity/co... | As goal needs to be met for a successful crowdsalethe value needs to less or equal than a cap which is limit for accepted funds | {
require(_cap <= _token.totalSupply());
require(_goal <= _cap);
}
| 910,268 | [
1,
4625,
348,
7953,
560,
30,
2970,
17683,
4260,
358,
506,
5100,
364,
279,
6873,
276,
492,
2377,
287,
546,
73,
460,
4260,
358,
5242,
578,
3959,
2353,
279,
3523,
1492,
353,
1800,
364,
8494,
284,
19156,
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,
288,
203,
565,
2583,
24899,
5909,
1648,
389,
2316,
18,
4963,
3088,
1283,
10663,
203,
565,
2583,
24899,
27354,
1648,
389,
5909,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x9642c7026822391100a4773d7aA597AE18ECE7dd/sources/Synthetix.sol | * @notice Retrieve the rates and isAnyStale for a list of currencies/ | function ratesAndStaleForCurrencies(bytes32[] currencyKeys)
public
view
returns (uint[], bool)
{
uint[] memory _localRates = new uint[](currencyKeys.length);
bool anyRateStale = false;
uint period = rateStalePeriod;
for (uint i = 0; i < currencyKeys.lengt... | 16,502,918 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10708,
326,
17544,
471,
3484,
19155,
364,
279,
666,
434,
19239,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17544,
1876,
19155,
1290,
2408,
14695,
12,
3890,
1578,
8526,
5462,
2396,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
63,
6487,
1426,
13,
203,
565,
288,
203,
3639,
2254,
8526,
3778,
389,
3729,
20836,... |
pragma solidity >=0.5.0;
//Adapters
import './interfaces/IBaseUbeswapAdapter.sol';
//Interfaces
import './interfaces/IERC20.sol';
import './interfaces/IPool.sol';
import './interfaces/ISettings.sol';
import './interfaces/IAddressResolver.sol';
import './interfaces/IFeePool.sol';
//Libraries
import './libraries/SafeM... | Multiply by ratio of withdrawal amount after fee to pool's USD balance
| uint amountToTransfer = positionBalance.mul(amount.sub(fee)).div(poolBalance); | 1,793,619 | [
1,
4625,
348,
7953,
560,
30,
5991,
1283,
635,
7169,
434,
598,
9446,
287,
3844,
1839,
14036,
358,
2845,
1807,
587,
9903,
11013,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2254,
3844,
774,
5912,
273,
1754,
13937,
18,
16411,
12,
8949,
18,
1717,
12,
21386,
13,
2934,
2892,
12,
6011,
13937,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.23;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transf... | * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to f... | function approve(address _spender, uint256 _value) public onlyOwner returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| 2,214,707 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
326,
2275,
1758,
358,
17571,
326,
1269,
3844,
434,
2430,
603,
12433,
6186,
434,
1234,
18,
15330,
18,
605,
359,
834,
716,
12770,
392,
1699,
1359,
598,
333,
707,
5186,
899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
3639,
2935,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
273,
389,
1132,
31,
203,
3639,
3... |
./full_match/432204/0xB45b00a5011c40D34fcaDB8D54104c1461d18937/sources/contracts/PortfolioBridge.sol | LZ generated nonce
| nonce = getOutboundNonce() + 1; | 16,381,711 | [
1,
4625,
348,
7953,
560,
30,
225,
511,
62,
4374,
7448,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
7448,
273,
336,
17873,
13611,
1435,
397,
404,
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,
... |
/*
Hashed time lock Contract ERC20 Token
*/
pragma solidity ^0.4.18;
//here we declare the function that we need for the token swap as an interface
contract ERC20 {
function balanceOf(address _who )public view returns (uint256 balance);
function transfer(address _to, uint256 _va... | here we make sure that only the owner can refund his tokenshere you claim the tokens | contract HTLC_ERC20_Token {
ERC20 Your_token= ERC20(0x22a39C2DD54b71aC884657bb3e37308ABe2D02E1); /* here we create an instance
of the token using its adress to be able
to interact wit... | 12,545,667 | [
1,
4625,
348,
7953,
560,
30,
2674,
732,
1221,
3071,
716,
1338,
326,
3410,
848,
16255,
18423,
1147,
674,
822,
1846,
7516,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27095,
67,
654,
39,
3462,
67,
1345,
288,
203,
6647,
203,
203,
225,
4232,
39,
3462,
20471,
67,
2316,
33,
4232,
39,
3462,
12,
20,
92,
3787,
69,
5520,
39,
22,
5698,
6564,
70,
11212,
69,
39,
28,
5193,
9222,
27,
9897,
23,
... |
./full_match/80001/0x265342E7ef3EE81f31B30e46fb0c7b504E4598d8/sources/contracts/Mining.sol | Store our two other contracts here (Edition Drop and Token) Constructor function to set the rewards token and the NFT collection addresses | contract Mining is ReentrancyGuard, ERC1155Holder {
DropERC1155 public immutable pickaxeNftCollection;
TokenERC20 public immutable rewardsToken;
constructor(
DropERC1155 pickaxeContractAddress,
TokenERC20 gemsContractAddress
pragma solidity ^0.8.11;
import "@thirdweb-dev/contracts/openzeppe... | 9,448,770 | [
1,
4625,
348,
7953,
560,
30,
225,
4994,
3134,
2795,
1308,
20092,
2674,
261,
41,
1460,
10895,
471,
3155,
13,
11417,
445,
358,
444,
326,
283,
6397,
1147,
471,
326,
423,
4464,
1849,
6138,
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,
5444,
310,
353,
868,
8230,
12514,
16709,
16,
4232,
39,
2499,
2539,
6064,
288,
203,
565,
10895,
654,
39,
2499,
2539,
1071,
11732,
6002,
651,
73,
50,
1222,
2532,
31,
203,
565,
3155,
654,
39,
3462,
1071,
11732,
283,
6397,
134... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @notice Checks whether the paymaster will pay for a given relayed tx @param _relayRequest The full relay request structure @return context_ The tx signer and the fn sig, encoded so that it can be passed to `postRelayCall` @return rejectOnRecipientRevert_ Always false | function preRelayedCall(
IGsnTypes.RelayRequest calldata _relayRequest,
bytes calldata,
bytes calldata,
uint256
)
external
override
relayHubOnly
returns (bytes memory context_, bool rejectOnRecipientRevert_)
{
address vaultProxy = getPa... | 355,537 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13074,
2856,
326,
8843,
7525,
903,
8843,
364,
279,
864,
18874,
329,
2229,
632,
891,
389,
2878,
528,
691,
1021,
1983,
18874,
590,
3695,
632,
2463,
819,
67,
1021,
2229,
10363,
471,
326,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
675,
27186,
329,
1477,
12,
203,
3639,
13102,
8134,
2016,
18,
27186,
691,
745,
892,
389,
2878,
528,
691,
16,
203,
3639,
1731,
745,
892,
16,
203,
3639,
1731,
745,
892,
16,
203,
3639,
2254,
5034,
203,
565,
262,
203,
3639... |
// SPDX-License-Identifier: --GRISE--
pragma solidity =0.7.6;
import './Interfaces.sol';
import './Randomness.sol';
contract LiquidityTransformer {
using SafeMathLT for uint256;
using SafeMathLT for uint128;
Randomness public randomness;
IGriseToken public GRISE_CONTRACT;
RefundSponsorI public ... | * @notice checks for callers claimable amount on specific day (with bonus) @return total amount claimable across specific investment day (with bonus)/ | function myClaimAmount(uint256 _investmentDay) external view returns (uint256) {
if (investorBalances[msg.sender][_investmentDay] > 0) {
return investorBalances[msg.sender][_investmentDay].mul(
_calculateDailyRatio(_investmentDay)).div(100E18);
return 0;
}... | 1,197,596 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4271,
364,
19932,
7516,
429,
3844,
603,
2923,
2548,
261,
1918,
324,
22889,
13,
632,
2463,
2078,
3844,
7516,
429,
10279,
2923,
2198,
395,
475,
2548,
261,
1918,
324,
22889,
13176,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3399,
9762,
6275,
12,
11890,
5034,
389,
5768,
395,
475,
4245,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
5768,
395,
280,
38,
26488,
63,
3576,
18,
15330,
6362,
67,
5768,
395,
475,
4245,
65,
4... |
pragma solidity ^0.4.13;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value... | Mint all tokens. Then disable minting forever. admin could drain tokens that were sent here by mistake | function CryptoGripInitiative(uint tokenTotalAmount, uint startTime, uint endTime, address admin) {
balances[msg.sender] = tokenTotalAmount;
totalSupply = tokenTotalAmount;
Transfer(address(0x0), msg.sender, tokenTotalAmount);
saleStartTime = startTime;
saleEndTime = endTime... | 12,633,511 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
474,
777,
2430,
18,
9697,
4056,
312,
474,
310,
21238,
18,
3981,
3377,
15427,
2430,
716,
4591,
3271,
2674,
635,
27228,
911,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15629,
43,
21335,
2570,
77,
1535,
12,
11890,
1147,
5269,
6275,
16,
2254,
8657,
16,
2254,
13859,
16,
1758,
3981,
13,
288,
203,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
1147,
5269,
6275,
31,
203,
3639,
2078,
3088,
... |
./full_match/1/0x3dCA17feE19A6A3eA43526dF848ed0565165AFa2/sources/contracts/single.sol | * the Metadata extension, but not including the Enumerable extension, which is available separately as {BEP721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals | contract BEP721 is Context, BEP165, IBEP721, IBEP721Metadata {
using Address for address;
using Strings for uint256;
string private _name;
string private _symbol;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => mapping(addre... | 3,096,637 | [
1,
4625,
348,
7953,
560,
30,
380,
326,
6912,
2710,
16,
1496,
486,
6508,
326,
6057,
25121,
2710,
16,
1492,
353,
2319,
18190,
487,
288,
5948,
52,
27,
5340,
3572,
25121,
5496,
19,
3155,
508,
3155,
3273,
9408,
628,
1147,
1599,
358,
3410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9722,
52,
27,
5340,
353,
1772,
16,
9722,
52,
28275,
16,
467,
5948,
52,
27,
5340,
16,
467,
5948,
52,
27,
5340,
2277,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
53... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
import "@uniswap/v3-periphery/contracts/libraries/Transfe... | / TokenSwaped event is emitted anytime there is a swap between GPO and USDC on the GoldPesa.com decentralized exchange powered by Uniswap FeeSplit stores the "recipient" wallet address and the respective percentage of the feeOnSwap which are to be sent to it. | contract GPO is ERC20PresetFixedSupply, Pausable, Ownable, AccessControl {
event TokensSwaped(
address indexed purchaser,
uint256 amountIn,
uint256 amountOut,
);
pragma solidity ^0.8.0;
____________________________
struct FeeSplit {
address recipient;
uint16 fee... | 989,539 | [
1,
4625,
348,
7953,
560,
30,
342,
3155,
6050,
5994,
871,
353,
17826,
1281,
957,
1915,
353,
279,
7720,
3086,
611,
2419,
471,
11836,
5528,
603,
326,
611,
1673,
52,
281,
69,
18,
832,
2109,
12839,
1235,
7829,
7212,
329,
635,
1351,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
611,
2419,
353,
4232,
39,
3462,
18385,
7505,
3088,
1283,
16,
21800,
16665,
16,
14223,
6914,
16,
24349,
288,
203,
377,
203,
565,
871,
13899,
6050,
5994,
12,
203,
3639,
1758,
8808,
5405,
343,
14558,
16,
203,
3639,
2254,
5034,
... |
./partial_match/56/0x19b8216023FCAed7512B92b280576574B40236CB/sources/StrategysoakLPV2.sol | * @dev Implementation of a strategy to get yields from farming LP Pools in PancakeSwap. PancakeSwap is an automated market maker (“AMM”) that allows two tokens to be exchanged on the Binance Smart Chain. It is fast, cheap, and allows anyone to participate. PancakeSwap is aiming to be the #1 liquidity provider on BSC. T... | contract StrategysoakLPV2 is Ownable, Pausable {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
mapping(address => bool) public odioList;
bool public degen;
IERC20 flp = IERC20(address(0x87ff96aba480f1813aF5c780387d8De7cf7D8261));
address public constan... | 11,236,302 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
279,
6252,
358,
336,
16932,
628,
284,
4610,
310,
511,
52,
453,
8192,
316,
12913,
23780,
12521,
18,
12913,
23780,
12521,
353,
392,
18472,
690,
13667,
312,
6388,
261,
163,
227,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3978,
1287,
1900,
83,
581,
14461,
58,
22,
353,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
14060,
10477,
364,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-02
*/
pragma solidity 0.8.11;
// SPDX-License-Identifier: Unlicensed
// https://tamanator.com/
interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned b... | * @dev Collection of functions related to the address type/ | library Address {
function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
return (codehash != accountHash && codehash != 0x0);
}
assembly { codehash := ext... | 2,117,810 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2200,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5313,
5267,
288,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
1731,
1578,
981,
2816,
31,
203,
3639,
1731,
1578,
2236,
2310,
273,
374,
6511,
25,
72,
3247,
26,
1611,
5292,
74... |
./partial_match/1/0xFf262396f2A35Cd7Aa24b7255E7d3f45f057Cdba/sources/contracts/pendle/contracts/interfaces/IPVeToken.sol | ============= USER INFO ============= ============= META DATA ============= | interface IPVeToken {
function balanceOf(address user) external view returns (uint128);
function positionData(address user) external view returns (uint128 amount, uint128 expiry);
function totalSupplyStored() external view returns (uint128);
function totalSupplyCurrent() external returns (uint128);... | 3,905,322 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
12275,
7443,
9286,
422,
1432,
12275,
422,
1432,
12275,
16970,
8730,
422,
1432,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
30618,
73,
1345,
288,
203,
203,
565,
445,
11013,
951,
12,
2867,
729,
13,
3903,
1476,
1135,
261,
11890,
10392,
1769,
203,
203,
565,
445,
1754,
751,
12,
2867,
729,
13,
3903,
1476,
1135,
261,
11890,
10392,
3844,
16,
2254,
1039... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
//import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol";
//import "./IERC20.sol";
//import "./ERC20Basic.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/E... | **** CONTRACT METHOD constructor | constructor (address _tokenAddress) ERC721("CrabInfo Management Token", "SCG721") {
winBattleCnt = 0;
loseBattleCnt = 0;
erc20TokenInfo = ERC20(_tokenAddress);
}
| 2,551,652 | [
1,
4625,
348,
7953,
560,
30,
225,
380,
14465,
8020,
2849,
1268,
10152,
3885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
261,
2867,
389,
2316,
1887,
13,
4232,
39,
27,
5340,
2932,
39,
20727,
966,
13303,
3155,
3113,
315,
2312,
43,
27,
5340,
7923,
288,
203,
3639,
5657,
38,
4558,
298,
11750,
273,
374,
31,
203,
3639,
29612,
38,
4558,
298,
1... |
/*
* Wrapper for Abstract Continuous Sale Smart Contract.
* Copyright © 2016–2017 by ABDK Consulting.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
*/
pragma solidity ^0.4.11;
import "./../../src/sol/AbstractContinuousSale.sol";
/**
* Wrapper for Abstract Continuous Sale smart contract..
*/
contra... | * Get pending refund value./ | function getPendingRefund () constant returns (uint result) {
return pendingRefund;
}
| 15,814,190 | [
1,
4625,
348,
7953,
560,
30,
380,
968,
4634,
16255,
460,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
1689,
2846,
21537,
1832,
5381,
1135,
261,
11890,
563,
13,
288,
203,
565,
327,
4634,
21537,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.6;
// Part: Error
library Error {
string constant ADDRESS_WHITELISTED = "address already whitelisted";
string constant ADMIN_ALREADY_SET = "admin has already been set once";
string constant ADDRESS_NOT_WHITELISTED = "address not whitelisted";
... | @notice Computes the natural logarithm of x, ln(x) by using `logBase2` and a precomputed value for ln(2)./ | function ln(uint256 x) internal pure returns (int256) {
unchecked {
if (x <= ONE / 2) {
return ln(x, 50);
}
return ln(x, 30);
}
}
| 6,933,448 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14169,
281,
326,
15145,
613,
31249,
434,
619,
16,
7211,
12,
92,
13,
635,
1450,
1375,
1330,
2171,
22,
68,
471,
279,
675,
20307,
460,
364,
7211,
12,
22,
2934,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7211,
12,
11890,
5034,
619,
13,
2713,
16618,
1135,
261,
474,
5034,
13,
288,
203,
3639,
22893,
288,
203,
5411,
309,
261,
92,
1648,
15623,
342,
576,
13,
288,
203,
7734,
327,
7211,
12,
92,
16,
6437,
1769,
203,
5411,
289,... |
./full_match/44787/0x567a5B666b2003C12995Df35Cee9277036aF95cc/sources/contracts/UbeswapOrderBook.sol | @title Public Ubeswap order book | contract UbeswapOrderBook is OrderBook, Ownable {
using SafeERC20 for IERC20;
using SafeMath for uint256;
uint256 public constant BPS = 1000;
uint256 public fee;
address public feeRecipient;
event FeeChanged(uint256 oldFee, uint256 newFee);
event FeeRecipientChanged(address oldFee, addre... | 13,245,440 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
7224,
587,
70,
281,
91,
438,
1353,
6978,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
587,
70,
281,
91,
438,
2448,
9084,
353,
4347,
9084,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1... |
//Address: 0x3aa927a97594c3ab7d7bf0d47c71c3877d1de4a1
//Contract name: MatchingMarket
//Balance: 0 Ether
//Verification Date: 9/13/2017
//Transacion Count: 17130
// CODE STARTS HERE
pragma solidity ^0.4.13;
contract ERC20 {
function totalSupply() constant returns (uint supply);
function balanceOf( address w... | after close, no new buys are allowed | modifier can_buy(uint id) {
require(isActive(id));
require(!isClosed());
_;
}
| 918,460 | [
1,
4625,
348,
7953,
560,
30,
225,
1839,
1746,
16,
1158,
394,
25666,
1900,
854,
2935,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
848,
67,
70,
9835,
12,
11890,
612,
13,
288,
203,
3639,
2583,
12,
291,
3896,
12,
350,
10019,
203,
3639,
2583,
12,
5,
291,
7395,
10663,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.6.12;
import "../OpenZeppelin/access/AccessControl.sol";
import "./ERC20/ERC20Burnable.sol";
import "./ERC20/ERC20Pausable.sol";
import "../interfaces/IMisoToken.sol";
// ---------------------------------------------------------------------
//
// From the MISO Token Factory
//
// Made for Sushi.com ... | * @dev Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they wil... | abstract contract Pausable is Context {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
constructor () internal {
_paused = false;
}
function paused() public view virtual returns (bool) {
return _paused;
}
modifier whenNotPaused(... | 1,329,182 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
1605,
1492,
5360,
2325,
358,
2348,
392,
801,
24530,
2132,
12860,
716,
848,
506,
10861,
635,
392,
10799,
2236,
18,
1220,
1605,
353,
1399,
3059,
16334,
18,
2597,
903,
1221,
2319,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
21800,
16665,
353,
1772,
288,
203,
565,
871,
21800,
3668,
12,
2867,
2236,
1769,
203,
203,
565,
871,
1351,
8774,
3668,
12,
2867,
2236,
1769,
203,
203,
565,
1426,
3238,
389,
8774,
3668,
31,
203,
203,
565,
3885,
1832,
2... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "./TradingAction.sol";
import "./ActionGuards.sol";
import "./nTokenMintAction.sol";
import "./nTokenRedeemAction.sol";
import "../SettleAssetsExternal.sol";
import "../FreeCollateralExternal.sol";
import "../../math/SafeInt256... | @notice Returns the linear interpolation between two market rates. The formula is slope = (longMarket.oracleRate - shortMarket.oracleRate) / (longMarket.maturity - shortMarket.maturity) interpolatedRate = slope * (assetMaturity - shortMarket.maturity) + shortMarket.oracleRate It's possible that the rates are inverted ... | function interpolateOracleRate(
uint256 shortMaturity,
uint256 longMaturity,
uint256 shortRate,
uint256 longRate,
uint256 assetMaturity
) internal pure returns (uint256) {
if (longRate >= shortRate) {
return
(longRate - shortRate)
... | 12,283 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
326,
9103,
12851,
3086,
2795,
13667,
17544,
18,
1021,
8013,
353,
17543,
273,
261,
5748,
3882,
278,
18,
280,
16066,
4727,
300,
3025,
3882,
278,
18,
280,
16066,
4727,
13,
342,
261,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13156,
23601,
4727,
12,
203,
3639,
2254,
5034,
3025,
15947,
2336,
16,
203,
3639,
2254,
5034,
1525,
15947,
2336,
16,
203,
3639,
2254,
5034,
3025,
4727,
16,
203,
3639,
2254,
5034,
1525,
4727,
16,
203,
3639,
2254,
5034,
3310... |
./full_match/80001/0x6EE00Ee32e9158B285dD6E5736cd8c438d7Ec2c2/sources/src/rewards/RewardsFactory.sol | mapping(uint => mapping(uint => address[])) public marketIndex_epoch_StakingRewards; Market Index, Epoch, Staking Rewards [0] = insrance, [1] = risk solhint-disable-next-line var-name-mixedcase | contract RewardsFactory {
address public admin;
address public govToken;
address public factory;
ERRORS
error MarketDoesNotExist(uint marketId);
error AddressNotAdmin();
error EpochDoesNotExist();
MAPPINGS
... | 5,613,241 | [
1,
4625,
348,
7953,
560,
30,
2874,
12,
11890,
516,
2874,
12,
11890,
516,
1758,
8526,
3719,
1071,
13667,
1016,
67,
12015,
67,
510,
6159,
17631,
14727,
31,
6622,
278,
3340,
16,
512,
6127,
16,
934,
6159,
534,
359,
14727,
306,
20,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
534,
359,
14727,
1733,
288,
203,
565,
1758,
1071,
3981,
31,
203,
565,
1758,
1071,
31841,
1345,
31,
203,
565,
1758,
1071,
3272,
31,
203,
203,
4766,
5475,
55,
203,
203,
565,
555,
6622,
278,
15264,
12,
11890,
13667,
548,
1769... |
pragma solidity ^0.4.13;
/**
* @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 pre... | * Обновляем статистику для первой или второй стадии/ Если это первая стадия Увеличиваем стату Если это вторая стадия Увеличиваем стату | function updateStat(State currentState, address receiver, uint tokenAmount, uint weiAmount) private{
weiRaised = weiRaised.add(weiAmount);
tokensSold = tokensSold.add(tokenAmount);
if (currentState == State.FirstStageFunding){
firstStageRaisedInWei = firstStageRaisedInWei.add(we... | 13,009,126 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
145,
257,
145,
114,
145,
126,
145,
127,
145,
115,
145,
124,
146,
242,
145,
118,
145,
125,
225,
146,
228,
146,
229,
145,
113,
146,
229,
145,
121,
146,
228,
146,
229,
145,
121,
145,
123,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1089,
5000,
12,
1119,
17773,
16,
1758,
5971,
16,
2254,
1147,
6275,
16,
2254,
732,
77,
6275,
13,
3238,
95,
203,
3639,
732,
77,
12649,
5918,
273,
732,
77,
12649,
5918,
18,
1289,
12,
1814,
77,
6275,
1769,
203,
3639,
2430... |
pragma solidity ^0.5.0;
import "./Ownable.sol";
contract TellorData {
/*TellorStorage*/ address public tellorStorageOwner;//TellorStorage Owner address
/*TellorStorage*/ address public tellorContract;//Tellor address
/*Variables Tellor*/
/*Tellor*/ bytes32 public currentChallenge; //current challeng... | time of last challenge solved
| /*Tellor*/ uint public timeOfLastProof = now - now % timeTarget; | 1,803,120 | [
1,
4625,
348,
7953,
560,
30,
225,
813,
434,
1142,
12948,
3704,
2155,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1748,
21009,
280,
5549,
2254,
1071,
813,
951,
3024,
20439,
273,
2037,
300,
2037,
225,
738,
813,
2326,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x9582940f86d1DA372f382De6Fa027D49fC5e0d28/sources/ABERoll.sol | Send the funds to gambler. | sendFunds(gambler, diceWin + jackpotWin == 0 ? 1 : diceWin + jackpotWin, diceWin);
| 2,630,580 | [
1,
4625,
348,
7953,
560,
30,
225,
2479,
326,
284,
19156,
358,
314,
2536,
749,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1366,
42,
19156,
12,
75,
2536,
749,
16,
302,
1812,
18049,
397,
525,
484,
13130,
18049,
422,
374,
692,
404,
294,
302,
1812,
18049,
397,
525,
484,
13130,
18049,
16,
302,
1812,
18049,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100... |
// "SPDX-License-Identifier: Apache-2.0"
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "../SharedTypes.sol";
import "./BaseRegistryStorage.sol";
import "./IBaseRegistry.sol";
import "./Ownership/OwnershipRegistry.sol";
import "./Terms/TermsRegis... | * @notice Approves the address of an actor contract e.g. for registering assets. @dev Can only be called by the owner of the contract. @param actor address of the actor/ | function approveActor(address actor) external onlyOwner {
approvedActors[actor] = true;
}
| 1,766,744 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1716,
685,
3324,
326,
1758,
434,
392,
8327,
6835,
425,
18,
75,
18,
364,
22845,
7176,
18,
632,
5206,
4480,
1338,
506,
2566,
635,
326,
3410,
434,
326,
6835,
18,
632,
891,
8327,
1758,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
17876,
12,
2867,
8327,
13,
3903,
1338,
5541,
288,
203,
3639,
20412,
2459,
1383,
63,
3362,
65,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
import './HuhulaToken.sol';
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/crowdsale/validation/TimedCrowdsale.sol";
import "openzeppelin-solidity/contracts/lifecycle/Pausable.... | * @dev Finalizes the crowdsale, mint and transfer all ramaining tokens to owner/ | function conclude() internal {
if (token.totalSupply() < HuhulaToken(token).cap()) {
uint tokens = HuhulaToken(token).cap().sub(token.totalSupply());
if ( ! HuhulaToken(token).mint(owner, tokens) ) {
revert();
}
}
HuhulaToken(token).finishMinting();
}
event BuyBackRat... | 7,277,478 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16269,
3128,
326,
276,
492,
2377,
5349,
16,
312,
474,
471,
7412,
777,
24975,
3280,
2430,
358,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
356,
1571,
1435,
2713,
288,
203,
203,
565,
309,
261,
2316,
18,
4963,
3088,
1283,
1435,
411,
670,
89,
76,
5552,
1345,
12,
2316,
2934,
5909,
10756,
288,
203,
1377,
2254,
2430,
273,
670,
89,
76,
5552,
1345,
12,
2316,
293... |
./full_match/1/0xBeBEAD08B7DD79bbBFedC8943eAF57536A8f29F1/sources/src/config/types.sol | * @dev struct representing the current balance for a given collateral @param collateralId asset id @param amount amount the asset/ | struct Balance {
uint8 collateralId;
uint80 amount;
}
| 3,013,358 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1958,
5123,
326,
783,
11013,
364,
279,
864,
4508,
2045,
287,
632,
891,
4508,
2045,
287,
548,
3310,
612,
632,
891,
3844,
3844,
326,
3310,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1697,
30918,
288,
203,
565,
2254,
28,
4508,
2045,
287,
548,
31,
203,
565,
2254,
3672,
3844,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../../common/implementation/FixedPoint.sol";
// Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below).
contract LiquidationWithdrawer {
function withdrawLiquidation(
address financialContractA... | Must be disputed or the liquidation has passed expiry. | function _withdrawable(uint256 liquidationId, address sponsor) internal view {
LiquidationData storage liquidation = _getLiquidationData(sponsor, liquidationId);
Status state = liquidation.state;
require(
(state > Status.NotDisputed) ||
((_getLiquidationExpiry(li... | 99,928 | [
1,
4625,
348,
7953,
560,
30,
225,
6753,
506,
1015,
458,
329,
578,
326,
4501,
26595,
367,
711,
2275,
10839,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1918,
9446,
429,
12,
11890,
5034,
4501,
26595,
367,
548,
16,
1758,
272,
500,
2467,
13,
2713,
1476,
288,
203,
3639,
511,
18988,
350,
367,
751,
2502,
4501,
26595,
367,
273,
389,
588,
48,
18988,
350,
367,
751,
12,
8... |
/**
Broge
██████╗ ██████╗ ██████╗ ██████╗ ███████╗
██╔══██╗██╔══██╗██╔═══██╗██╔════╝ ██╔════╝
██████╔╝██████╔╝██║ ██║██║ ███╗█████╗
██╔══██╗██╔══██╗██║ ██║██║ ██║██╔══╝
██████╔╝██║ ██║╚██████╔╝╚██████╔╝███████╗
... | Token InfoUsed for anti-bot autoblacklistDivider for the MaxBalance based on circulating Supply (2%)Divider for sellLimit based on circulating Supply (1%))Sellers get locked for MaxSellLockTime (put in seconds, works better especially if changing later) so they can't dump repeatedlyBuyers get locked for MaxBuyLockTime ... | {
using Address for address;
using EnumerableSet for EnumerableSet.AddressSet;
event antiBotBan(address indexed value);
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => uint256) private _sellLock;
... | 10,021,308 | [
1,
4625,
348,
7953,
560,
30,
3155,
3807,
6668,
364,
30959,
17,
4819,
2059,
947,
80,
484,
1098,
25558,
364,
326,
4238,
13937,
2511,
603,
5886,
1934,
1776,
3425,
1283,
261,
22,
9,
13,
25558,
364,
357,
80,
3039,
2511,
603,
5886,
1934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
377,
203,
565,
871,
30959,
6522,
38,
304,
12,
2867,
8808,
460,
1769,
203,
203,
565,
2874,
261,
2867,
516,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
//import "hardhat/console.sol";
//import "@openzeppelin/contracts/math/SafeMath.sol";
contract EPNS {
/// @notice EIP-20 token name for this token
string public constant name = "Ethereum Push Notification Service";
... | @notice An event thats emitted when an account changes its total token weight | event HolderWeightChanged(address indexed holder, uint256 amount, uint weight);
| 1,299,801 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1922,
871,
716,
87,
17826,
1347,
392,
2236,
3478,
2097,
2078,
1147,
3119,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
670,
1498,
6544,
5033,
12,
2867,
8808,
10438,
16,
2254,
5034,
3844,
16,
2254,
3119,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/5/0xBc1Ef981f595fCd6B44dBa30752BAdeE356D7DD3/sources/common/token/BaseToken.sol | * @dev See {IERC20-approve}. Requirements: - `spender` cannot be the zero address./ | function approve(address spender, uint256 amount) public override returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
| 11,589,060 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
3462,
17,
12908,
537,
5496,
29076,
30,
300,
1375,
87,
1302,
264,
68,
2780,
506,
326,
3634,
1758,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
3844,
13,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
565,
389,
12908,
537,
12,
3576,
18,
15330,
16,
17571,
264,
16,
3844,
1769,
203,
565,
327,
638,
31,
203,
225,
289,
... |
./partial_match/1/0x7fA46e7cF6ec3eAbc7e91dAf22992411d36Cb7F7/sources/Resolver.sol | mapping token ID to content id to content key to value mapping token ID to content id mapping token ID to all key key hash mapping token ID to hashed keys id mapping key hash to key string | contract Resolver {
event NewKey(uint256 indexed tokenId, string indexed key);
event ResetContentId(uint256 indexed tokenId, uint256 indexed contentId);
event ResetKeyId(uint256 indexed tokenId, uint256 indexed contentId);
event Set(uint256 indexed tokenId, string indexed keyIndex, string indexed valu... | 4,060,173 | [
1,
4625,
348,
7953,
560,
30,
225,
2874,
1147,
1599,
358,
913,
612,
358,
913,
498,
358,
460,
2874,
1147,
1599,
358,
913,
612,
2874,
1147,
1599,
358,
777,
498,
498,
1651,
2874,
1147,
1599,
358,
14242,
1311,
612,
2874,
498,
1651,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
17183,
225,
288,
203,
203,
565,
871,
1166,
653,
12,
11890,
5034,
8808,
1147,
548,
16,
533,
8808,
498,
1769,
203,
565,
871,
7151,
1350,
548,
12,
11890,
5034,
8808,
1147,
548,
16,
2254,
5034,
8808,
16095,
1769,
203,
565,
871... |
./partial_match/1/0x3AB90024Ea44db463ffCDB5187a3620b0eF4a033/sources/DPepe.sol | * @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 DPepe is Context, IERC20, IERC20Metadata, Ownable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
address private chflps;
uint256 private _totalSupply;
string private _name;
string private _symbol;
co... | 9,188,431 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
11227,
347,
353,
1772,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
16,
14223,
6914,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2874,... |
./full_match/1/0xD9F65f0d2135BeE238db9c49558632Eb6030CAa7/sources/contracts/operators/IOperator.sol | @notice Performs operations on behalf of parties. | interface IOperator {
function execute(
bytes memory operatorData,
bytes memory executionData,
address executor
) external payable;
pragma solidity 0.8.20;
}
| 2,943,797 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
27391,
5295,
603,
12433,
6186,
434,
1087,
606,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
1665,
457,
639,
288,
203,
565,
445,
1836,
12,
203,
3639,
1731,
3778,
3726,
751,
16,
203,
3639,
1731,
3778,
4588,
751,
16,
203,
3639,
1758,
6601,
203,
565,
262,
3903,
8843,
429,
31,
203,
683,
9454,
18035,
560,
374,
18,
28,... |
pragma solidity ^0.4.11;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal returns (uint) {
assert(b > 0);
uin... | We require that the owner should be multisig walletBecause owner can make important decisions like stopping prefundand setting TransformAgentHowever this contract can be created by any account. After creationit automatically transfers ownership to multisig wallet | function UbermenschPrefundToken(address multisig){
transferOwnership(multisig);
multisigWallet = multisig;
}
| 12,717,719 | [
1,
4625,
348,
7953,
560,
30,
1660,
2583,
716,
326,
3410,
1410,
506,
22945,
360,
9230,
38,
11884,
3410,
848,
1221,
10802,
2109,
12682,
3007,
17008,
11307,
1074,
464,
3637,
11514,
3630,
44,
543,
6084,
333,
6835,
848,
506,
2522,
635,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
587,
744,
81,
773,
343,
23218,
1074,
1345,
12,
2867,
22945,
360,
15329,
203,
3639,
7412,
5460,
12565,
12,
23978,
360,
1769,
203,
3639,
22945,
360,
16936,
273,
22945,
360,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100... |
./partial_match/80001/0x63C444D758B4FCD2FB5dAC99bd8Acc3574eDeab4/sources/project_/con2/Vaults/utils/FixedPointMathLib.sol | @notice Arithmetic library with operations for fixed-point numbers. @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/FixedPointMathLib.sol) @author Inspired by USM (https://github.com/usmfum/USM/blob/master/contracts/WadMath.sol) | library FixedPointMathLib {
SIMPLIFIED FIXED POINT OPERATIONS
uint256 internal constant MAX_UINT256 = 2**256 - 1;
pragma solidity 0.8.9;
function mulWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
}
function mulWadUp(uint256 x, uint256 y) internal pure returns (ui... | 8,795,743 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
27443,
5313,
598,
5295,
364,
5499,
17,
1153,
5600,
18,
632,
4161,
348,
355,
81,
340,
261,
4528,
2207,
6662,
18,
832,
19,
2338,
7300,
2499,
19,
18281,
81,
340,
19,
10721,
19,
5254,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
15038,
2148,
10477,
5664,
288,
203,
10792,
12875,
2053,
1653,
2056,
26585,
13803,
3217,
17205,
15297,
203,
203,
565,
2254,
5034,
2713,
5381,
4552,
67,
57,
3217,
5034,
273,
576,
636,
5034,
300,
404,
31,
203,
203,
203,
683,
94... |
./partial_match/42/0x4E951A6FB550c0eab2615619253900B2Dbc5F363/sources/STYK_I.sol | chainlink already give data as 10**8 so covnert to 18 decimal | function checkInflation() external view returns(uint256){
return _inflation();
}
| 3,304,674 | [
1,
4625,
348,
7953,
560,
30,
225,
2687,
1232,
1818,
8492,
501,
487,
1728,
636,
28,
1427,
10613,
82,
1051,
358,
6549,
6970,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
866,
27040,
367,
1435,
3903,
1476,
1135,
12,
11890,
5034,
15329,
203,
5411,
327,
389,
267,
2242,
367,
5621,
203,
3639,
289,
203,
540,
203,
540,
203,
540,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-02-20
*/
// t.me/MemeLordEther
// TAX 20% TOTAL ROUND TRIP
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned... | Buy FeesSell Fees Fees (Current) | contract MemeLord is Context, IERC20, Ownable, Pausable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address =... | 7,840,087 | [
1,
4625,
348,
7953,
560,
30,
605,
9835,
5782,
281,
55,
1165,
5782,
281,
5782,
281,
261,
3935,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
4698,
48,
517,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
... |
./full_match/97/0xf67e46419713d01c0214B29C79752fA2c31BDe1D/sources/Launchpad_v2.0/QubeLaunchPadLib.sol | Qube stake requirement for each tier
| uint256[] minimumEligibleQubeForTx; | 5,023,934 | [
1,
4625,
348,
7953,
560,
30,
2238,
4895,
384,
911,
12405,
364,
1517,
17742,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8526,
5224,
4958,
16057,
53,
4895,
1290,
4188,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2022-04-26
*/
// SPDX-License-Identifier: MIT
// Telegram : https://t.me/tfloki
pragma solidity 0.8.9;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address i... | Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract TFLOKI is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmount;
uin... | 10,973,765 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4352,
749,
1635,
22467,
1098,
1635,
1203,
1300,
434,
10191,
1284,
7459,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25543,
1502,
47,
45,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint25... | * @dev Approve `to` to operate on `tokenId` Emits a {Approval} event./ | function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
uint256 public nextOwnerToExplicitlySet = 0;
| 150,288 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
1375,
869,
68,
358,
20829,
603,
1375,
2316,
548,
68,
7377,
1282,
279,
288,
23461,
97,
871,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
12908,
537,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1758,
3410,
203,
565,
262,
3238,
288,
203,
3639,
389,
2316,
12053,
4524,
63,
2316,
548,
65,
273,
358,
31,
203,
3639,
3626... |
./full_match/137/0x3DB5c69C8B9cedA6556481808FE6f2977d4e0d89/sources/TokenVesting.sol | prevents errors when timestamp entered in milliseconds
| require(_unlock_date < 1e10, 'TIME'); | 3,736,691 | [
1,
4625,
348,
7953,
560,
30,
225,
17793,
1334,
1347,
2858,
16219,
316,
10993,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
24899,
26226,
67,
712,
411,
404,
73,
2163,
16,
296,
4684,
8284,
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... |
./partial_match/11155111/0xb3A97684Eb67182BAa7994b226e6315196D8b364/sources/Manager.sol | allow DEFALUT_ADMIN to withdraw as much as he wants | function withdrawEth(uint256 amount, address to) public onlyUnitapOrAdmin {
_checkAndUpdateEthMaxCap(amount);
payable(to).transfer(amount);
}
| 3,535,843 | [
1,
4625,
348,
7953,
560,
30,
225,
1699,
25957,
1013,
1693,
67,
15468,
358,
598,
9446,
487,
9816,
487,
3904,
14805,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
41,
451,
12,
11890,
5034,
3844,
16,
1758,
358,
13,
1071,
1338,
2802,
438,
1162,
4446,
288,
203,
3639,
389,
1893,
1876,
1891,
41,
451,
2747,
4664,
12,
8949,
1769,
203,
3639,
8843,
429,
12,
869,
2934,
13866,
... |
./full_match/137/0x65DFf67B62652DAB94a8Be6a5c1B3df993525Fcc/sources/project_/contracts/v6.3/GToken.sol | PRECISION (% per day, when under collat)
| uint public maxSupplyIncreaseDailyP; | 3,744,118 | [
1,
4625,
348,
7953,
560,
30,
225,
7071,
26913,
6142,
1534,
2548,
16,
1347,
3613,
4508,
270,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
2254,
1071,
943,
3088,
1283,
382,
11908,
40,
12857,
52,
31,
377,
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,
-1... |
./full_match/1/0xAbbBBc68F7d46d66d4eE77Cc6372bc9908520A9B/sources/Fransland_flattened.sol | Verify whitelist requirements | function whitelistMint(
uint256 _mintAmount,
bytes32[] calldata _merkleProof
)
public
payable
mintCompliance(_mintAmount)
mintPriceCompliance(_mintAmount)
{
require(whitelistMintEnabled, "The whitelist sale is not enabled!");
bytes32 leaf = kec... | 2,962,391 | [
1,
4625,
348,
7953,
560,
30,
225,
8553,
10734,
8433,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10734,
49,
474,
12,
203,
3639,
2254,
5034,
389,
81,
474,
6275,
16,
203,
3639,
1731,
1578,
8526,
745,
892,
389,
6592,
15609,
20439,
203,
565,
262,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
312,
474,
16687,
24899,... |
./partial_match/4/0x2768E24672b6EE867f63c021d9149be1f789B870/sources/AFIToken.sol | * Used by Rebalancer or in openRebalance to set the new allocations @param _allocations : array with allocations in percentages (100% => 100000)/ | function _setAllocations(uint256[] memory _allocations) internal {
require(_allocations.length == allAvailableTokens.length, "AFI:!EQ_LEN");
uint256 total;
for (uint256 i = 0; i < _allocations.length; i++) {
total = total.add(_allocations[i]);
lastRebalancerAllocations[i] = _allocations[i];
... | 8,569,566 | [
1,
4625,
348,
7953,
560,
30,
380,
10286,
635,
868,
18770,
578,
316,
1696,
426,
12296,
358,
444,
326,
394,
23804,
632,
891,
389,
9853,
1012,
294,
526,
598,
23804,
316,
5551,
1023,
261,
6625,
9,
516,
25259,
13176,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
542,
8763,
1012,
12,
11890,
5034,
8526,
3778,
389,
9853,
1012,
13,
2713,
288,
203,
565,
2583,
24899,
9853,
1012,
18,
2469,
422,
777,
5268,
5157,
18,
2469,
16,
315,
37,
1653,
30,
5,
27247,
67,
13017,
8863,
203,
56... |
./full_match/5/0x9368A0BDA86742Dc3E96140B4bD99eC86e0a1E3e/sources/contracts/module/NTS-Single.sol | Calculate the reward based on the stake time and rewardPerHourSub. | _Reward = ((_stakeTime * rewardPerHourSub) / 3600);
| 7,047,244 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
326,
19890,
2511,
603,
326,
384,
911,
813,
471,
19890,
2173,
13433,
1676,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
389,
17631,
1060,
273,
14015,
67,
334,
911,
950,
380,
19890,
2173,
13433,
1676,
13,
342,
12396,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// Copyright (c) 2016 Chronicled, Inc. All rights reserved.
// http://explorer.chronicled.org
// http://demo.chronicled.org
// http://chronicled.org
contract Registrar {
address public registrar;
/**
* Created event, gets triggered when a new registrant gets created
* event
* @param r... | * Function to reject value sends to the contract. fallback_function/ | function () noEther {}
| 1,087,991 | [
1,
4625,
348,
7953,
560,
30,
380,
4284,
358,
4925,
460,
9573,
358,
326,
6835,
18,
5922,
67,
915,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
1158,
41,
1136,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x21fC96B8C0d429820bcD03872083Bf8B1A0970eb/sources/TokenSale.sol | * @dev Is sale closed @return True if sale is closed/ | function isSaleClosed() public view returns (bool) {
return _isSaleClosed;
}
| 9,408,759 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2585,
272,
5349,
4375,
632,
2463,
1053,
309,
272,
5349,
353,
4375,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11604,
5349,
7395,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
291,
30746,
7395,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.10;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol... | * @dev Get Inviter Users by Size/ | function getInviterUsersBySize(
address inviter,
uint256 cursor,
uint256 size
) external view returns (address[] memory, uint256) {
uint256 length = size;
if (length > inviterUsers[inviter].length() - cursor) {
length = inviterUsers[inviter].length() - cursor;... | 6,486,047 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
5454,
2165,
12109,
635,
6321,
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,
565,
445,
336,
3605,
2165,
6588,
858,
1225,
12,
203,
3639,
1758,
2198,
2165,
16,
203,
3639,
2254,
5034,
3347,
16,
203,
3639,
2254,
5034,
963,
203,
565,
262,
3903,
1476,
1135,
261,
2867,
8526,
3778,
16,
2254,
5034,
13,
288,
203,
... |
./full_match/1/0x6f7B0a69EaD09AA5b4d4311C957AF030B636c1dD/sources/SDEX.sol | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./ | constructor (string memory name, string memory symbol, uint256 initialSupply,address payable owner) public {
_name = name;
_symbol = symbol;
_decimals = 18;
_owner = owner;
_safeOwner = owner;
_mint(owner, initialSupply*(10**18));
_mint(0x6a2000F0eCCa6... | 8,493,561 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
3885,
261,
1080,
3778,
508,
16,
533,
3778,
3273,
16,
2254,
5034,
2172,
3088,
1283,
16,
2867,
8843,
429,
3410,
13,
1071,
288,
203,
3639,
389,
529,
273,
508,
31,
203,
3639,
389,
7175,
273,
3273,
31,
203,
3639,
389,
31734,
27... |
./partial_match/8453/0x8a7878Cd64cBCD1fa997ed45fDb840ffC572cB18/sources/contracts/libraries/DataStorage.sol | @dev guaranteed that the result is within the bounds of int24 returns int256 for fuzzy tests current-WINDOW last current _________*____________*_______*_ |||||||||||| | function _getAverageTick(
Timepoint[UINT16_MODULO] storage self,
uint32 time,
int24 tick,
uint16 index,
uint16 oldestIndex,
uint32 lastTimestamp,
int56 lastTickCumulative
) internal view returns (int256 avgTick) {
uint32 oldestTimestamp = self[oldestIndex].blockTimestamp;
int56 o... | 16,762,205 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
15403,
716,
326,
563,
353,
3470,
326,
4972,
434,
509,
3247,
1135,
509,
5034,
364,
21315,
7434,
565,
783,
17,
23407,
225,
1142,
282,
783,
389,
12214,
14,
12214,
7198,
14,
7198,
31268,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
588,
17115,
6264,
12,
203,
565,
2647,
1153,
63,
57,
3217,
2313,
67,
6720,
57,
1502,
65,
2502,
365,
16,
203,
565,
2254,
1578,
813,
16,
203,
565,
509,
3247,
4024,
16,
203,
565,
2254,
2313,
770,
16,
203,
565,
2254... |
./full_match/1/0x666D080bD673679b927B7006bDbDF50925f27D9F/sources/contracts/MIRLStaking.sol | Reward debt. See explanation below.
| int256 rewardDebt; | 9,625,457 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
359,
1060,
18202,
88,
18,
2164,
21285,
5712,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
509,
5034,
19890,
758,
23602,
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,
... |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint2... | * @dev deccrement the spender delegated tokens @param spender address which is delegated @param valueToSubstract tokens amount to decrement @return bool true=> operation is succesful/ | function decreaseApproval(address spender, uint valueToSubstract) public returns (bool) {
uint oldValue = allowed[msg.sender][spender];
if (valueToSubstract > oldValue) {
allowed[msg.sender][spender] = 0;
allowed[msg.sender][spender] = oldValue.sub(valueToSubstract);
}
... | 279,807 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
443,
952,
266,
475,
326,
17571,
264,
30055,
2430,
632,
891,
17571,
264,
1758,
1492,
353,
30055,
632,
891,
30605,
1676,
2876,
2430,
3844,
358,
15267,
632,
2463,
1426,
638,
9207,
1674,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
20467,
23461,
12,
2867,
17571,
264,
16,
2254,
30605,
1676,
2876,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
11144,
273,
2935,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
15533,
203,
3639,
309,
261,
1132,
774,
16... |
./full_match/1/0xEA24e9Bac006DE9635Ac7fA4D767fFb64FB5645c/sources/contracts/interfaces/IStrategy.sol | * @title Platform interface to integrate with lending platform like Compound, AAVE etc./ | interface IStrategy {
function deposit(address _asset, uint256 _amount) external;
function depositAll() external;
function withdraw(
address _recipient,
address _asset,
uint256 _amount
) external;
function withdrawAll() external;
function checkBalance(address _asset)
... | 4,918,436 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
11810,
1560,
358,
23367,
598,
328,
2846,
4072,
3007,
21327,
16,
432,
26714,
5527,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
4525,
288,
203,
565,
445,
443,
1724,
12,
2867,
389,
9406,
16,
2254,
5034,
389,
8949,
13,
3903,
31,
203,
203,
565,
445,
443,
1724,
1595,
1435,
3903,
31,
203,
203,
565,
445,
598,
9446,
12,
203,
3639,
1758,
389,
20367,
... |
pragma solidity ^0.4.15;
interface TokenInterface {
function mint(address _to, uint256 _amount) public returns (bool);
function finishMinting() public returns (bool);
function totalSupply() public constant returns (uint);
function balanceOf(address _address) public constant returns (uint);
function burn(address b... | @dev Delegates request of finishing to the Voting base contract/Sorry but solidity doesn't support `switch` keyword | function finish() public {
VotingLib.delegatecallFinish(baseVoting);
if(result.description == "no") return;
if (uint(module) == uint(Modules.State)) dao.setStateModule(newModuleAddress);
if (uint(module) == uint(Modules.Payment)) dao.setPaymentModule(newModuleAddress);
if (uint(module) == uint(Modules.Votin... | 12,948,349 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
24117,
815,
590,
434,
4076,
310,
358,
326,
776,
17128,
1026,
6835,
19,
28898,
1496,
18035,
560,
3302,
1404,
2865,
1375,
9610,
68,
4932,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
4076,
1435,
1071,
288,
203,
202,
202,
58,
17128,
5664,
18,
22216,
1991,
11641,
12,
1969,
58,
17128,
1769,
203,
202,
202,
430,
12,
2088,
18,
3384,
422,
315,
2135,
7923,
327,
31,
203,
203,
202,
202,
430,
261,
11890,
12,... |
// contracts/MyContract.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.7.0;
//import "@openzeppelin/contracts/GSN/GSNRecipientERC20Fee.sol";
//import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/upgrades/contracts/Initializable.sol";
//import "@openzeppelin/contracts/acces... | Reward bid require(microbid.call(bytes4(keccak256("setaward(address)")), provider)); call method from other contract | function _award(address microbid, address provider) internal {
require(_admins[msg.sender], "You must be admin");
OfferContract oc = OfferContract(microbid);
oc.setaward(provider);
emit BidAwarded(mainContract, microbid, provider);
}
| 7,241,390 | [
1,
4625,
348,
7953,
560,
30,
534,
359,
1060,
9949,
2583,
12,
14458,
19773,
18,
1991,
12,
3890,
24,
12,
79,
24410,
581,
5034,
2932,
542,
69,
2913,
12,
2867,
2225,
13,
3631,
2893,
10019,
745,
707,
628,
1308,
6835,
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,
69,
2913,
12,
2867,
6481,
19773,
16,
1758,
2893,
13,
2713,
288,
203,
3639,
2583,
24899,
3666,
87,
63,
3576,
18,
15330,
6487,
315,
6225,
1297,
506,
3981,
8863,
203,
3639,
25753,
8924,
13345,
273,
25753,
8924,
12,
14... |
pragma solidity ^0.4.20;
//Address: 0xae36A22Bde48b53C9eE5B68383828C5c90272De2
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), t... | this function internally generates the correct oraclize_query and returns its queryId
| bytes32 queryId = oraclize_newRandomDSQuery(delay, N, callbackGas); | 191,305 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
445,
12963,
6026,
326,
3434,
578,
10150,
554,
67,
2271,
471,
1135,
2097,
843,
548,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1731,
1578,
843,
548,
273,
578,
10150,
554,
67,
2704,
8529,
3948,
1138,
12,
10790,
16,
423,
16,
1348,
27998,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |