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: ISC
pragma solidity ^0.8.4;
import "./interface/IProcessPayments.sol";
import "./interface/IMerchant.sol";
import "./chainlink/IAggregatorV3.sol";
import "./token/IERC20.sol";
import "./utils/Context.sol";
import "./utils/Ownable.sol";
contract POS is IProcessPayments, Ownable {
addre... | * @dev returns the contract address./ | function fetchContract(string memory _ticker)
public
view
returns (address)
{
return _contracts[bytes(_ticker)];
}
| 13,124,892 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
326,
6835,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2158,
8924,
12,
1080,
3778,
389,
88,
5448,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
13,
203,
565,
288,
203,
3639,
327,
389,
16351,
87,
63,
3890,
24899,
88,
5448,
13,
15533,
203,
565,
289,
203,... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.9;
import { TickMath } from '@uniswap/v3-core-0.8-support/contracts/libraries/TickMath.sol';
import { IUniswapV3Pool } from '@uniswap/v3-core-0.8-support/contracts/interfaces/IUniswapV3Pool.sol';
/// @title UniswapV3Pool helper functions
library Unis... | @notice Get twap tick for uniswap v3 pool @param v3Pool The uniswap v3 pool contract @param twapDuration The twap period @return _twapTick the twap tick this call will fail if period is bigger than MaxObservationPeriod Always round to negative infinity | function twapTick(IUniswapV3Pool v3Pool, uint32 twapDuration) internal view returns (int24 _twapTick) {
if (twapDuration == 0) {
return v3Pool.tickCurrent();
}
uint32[] memory secondAgos = new uint32[](2);
secondAgos[0] = twapDuration;
secondAgos[1] = 0;
... | 13,048,282 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
2339,
438,
4024,
364,
640,
291,
91,
438,
331,
23,
2845,
632,
891,
331,
23,
2864,
1021,
640,
291,
91,
438,
331,
23,
2845,
6835,
632,
891,
2339,
438,
5326,
1021,
2339,
438,
3879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2339,
438,
6264,
12,
45,
984,
291,
91,
438,
58,
23,
2864,
331,
23,
2864,
16,
2254,
1578,
2339,
438,
5326,
13,
2713,
1476,
1135,
261,
474,
3247,
389,
11246,
438,
6264,
13,
288,
203,
3639,
309,
261,
11246,
438,
5326,
... |
pragma solidity ^0.4.9;
//Anything that can be contained
contract GameObject {
}
contract Container
{
GameObject[] contents;
}
//Locations are contracts which represent a room
//Can be mapped to a description in an external service
contract Location extends Container {
function remove(GameO... | Setup initial locations and map | {
var description = new GameDescription();
for(int i=0;i++;i<4)
{
locations.push(new Location());
}
var map = new Map();
}
| 12,637,382 | [
1,
4625,
348,
7953,
560,
30,
10939,
2172,
7838,
471,
852,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
569,
2477,
273,
394,
14121,
3291,
5621,
203,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
9904,
31,
77,
32,
24,
13,
203,
3639,
288,
203,
5411,
7838,
18,
6206,
12,
2704,
7050,
10663,
203,
3639,
289,
203,
3639,... |
./full_match/122/0xCbc6Ce8C3bc4E5D7EB0fe7440B7b0f58C2884D3B/sources/contracts/LiquidStakingPool.sol | * @dev Process user deposit, updates and mints liquid tokens/ Handle first ever deposit | function _deposit() internal {
uint256 depositAmount = msg.value;
require(depositAmount != 0, "ZERO_DEPOSIT");
if (systemTotalStaked() != 0) {
_priorChecks();
_update();
_submit(msg.value);
uint256 newSystemTotal = systemTotalStaked().add(msg... | 16,366,562 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4389,
729,
443,
1724,
16,
4533,
471,
312,
28142,
4501,
26595,
2430,
19,
5004,
1122,
14103,
443,
1724,
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,
565,
445,
389,
323,
1724,
1435,
2713,
288,
203,
3639,
2254,
5034,
443,
1724,
6275,
273,
1234,
18,
1132,
31,
203,
3639,
2583,
12,
323,
1724,
6275,
480,
374,
16,
315,
24968,
67,
1639,
28284,
8863,
203,
203,
3639,
309,
261,
4299,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b... | * @dev Change TokenPrice @param _rate is TokenPrice/ | function changeRate(uint256 _rate) public onlyOwner {
require(_rate != 0);
rate = _rate;
}
| 7,897,447 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7576,
3155,
5147,
632,
891,
225,
389,
5141,
353,
3155,
5147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2549,
4727,
12,
11890,
5034,
389,
5141,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
24899,
5141,
480,
374,
1769,
203,
565,
4993,
273,
389,
5141,
31,
203,
203,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x2FB0A9A0caaaD28c1B78FD1DDD29449A8BBf5673/sources/FIREDATE.sol | Going for 222.2222222222 ETH total or $33,333.30 @ $150/ETH
| uint256 public tokenCrowdsaleCap = 22 * (10 ** 6) * 10 ** 18; | 2,662,691 | [
1,
4625,
348,
7953,
560,
30,
225,
4220,
310,
364,
576,
3787,
18,
3787,
3787,
3787,
3787,
3787,
512,
2455,
2078,
578,
271,
3707,
16,
3707,
23,
18,
5082,
632,
271,
23014,
19,
1584,
44,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
1147,
39,
492,
2377,
5349,
4664,
273,
225,
11201,
380,
261,
2163,
2826,
1666,
13,
380,
1728,
2826,
6549,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view retu... | Update the price of reeth
| oracle.updateREETHPrice(); | 13,387,891 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
326,
6205,
434,
283,
546,
2398,
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,
5411,
20865,
18,
2725,
862,
1584,
2500,
3057,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
contract DoubleProfit {
using SafeMath for uint256;
struct Investor {
uint256 deposit;
uint256 paymentTime;
uint256 withdrawals;
bool insured;
}
uint public countOfInvestors;
mapping (address => Investor) public investors;
... | * @dev Modifier for access from the DoubleProfit/ | modifier onlyDP() {
require(msg.sender == DPAddress, "access denied");
_;
}
| 7,237,052 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
12832,
364,
2006,
628,
326,
3698,
626,
7216,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
8640,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
463,
52,
1887,
16,
315,
3860,
15338,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol"; //Track Token Supply //This might be an overkill... //TODO: Get rid of this!
import "@openzeppelin/contracts/utils/C... | Mapping from token ID to account's Negative balances (Offers Redeemed)
| mapping(uint256 => mapping(address => uint256)) private _used; | 5,373,994 | [
1,
4625,
348,
7953,
560,
30,
225,
9408,
628,
1147,
1599,
358,
2236,
1807,
30716,
324,
26488,
261,
7210,
414,
868,
24903,
329,
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... | [
1,
1,
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,
2874,
12,
11890,
5034,
516,
2874,
12,
2867,
516,
2254,
5034,
3719,
3238,
389,
3668,
31,
6862,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.24;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/
impo... | Get the current credit available | function getCredit()
public
view
returns (uint256)
{
return flightSuretyData.getCredit(msg.sender);
}
| 14,113,409 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
326,
783,
12896,
2319,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1927,
10430,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
25187,
55,
594,
4098,
751,
18,
588,
16520,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
20... |
./partial_match/1/0x7AFD5e22379E152e00236306035EF0EEbF141664/sources/Architect.sol | * @notice Return whether account is liquidity pair. @param account Account address. @return Liquidity pair./ | function isLiquidityPair(address account) public view returns (bool) {
return _unpackBoolean(addressConfiguration[account], 1);
}
| 4,077,342 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2000,
2856,
2236,
353,
4501,
372,
24237,
3082,
18,
632,
891,
2236,
6590,
1758,
18,
632,
2463,
511,
18988,
24237,
3082,
18,
19,
2,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28601,
18988,
24237,
4154,
12,
2867,
2236,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
17309,
5507,
12,
2867,
1750,
63,
4631,
6487,
404,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0xbc2CE2034Fcc593FF29b782Dd2975A1f70A172ED/sources/contracts/contracts-v10/contracts/StandardSubstrate.sol | Update project status | project.status = ProjectManager.ProjectStatus.Settled;
| 1,851,579 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
1984,
1267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1984,
18,
2327,
273,
5420,
1318,
18,
4109,
1482,
18,
694,
88,
1259,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.6.12;
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
require(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal pure returns (uint) {
require(b > 0);
uint c = a / b;
re... | Inner Because of https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md#transfer-1 | function innerMint(address owner, uint amount) internal {
totalSupply = totalSupply.add(amount);
balances[owner] = balances[owner].add(amount);
emit Transfer(address(0), owner, amount);
}
| 391,996 | [
1,
4625,
348,
7953,
560,
30,
225,
19494,
15191,
434,
2333,
30,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
10721,
19,
7525,
19,
41,
2579,
55,
19,
73,
625,
17,
3462,
18,
1264,
7,
13866,
17,
21,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
3443,
49,
474,
12,
2867,
3410,
16,
2254,
3844,
13,
2713,
288,
203,
202,
202,
4963,
3088,
1283,
273,
2078,
3088,
1283,
18,
1289,
12,
8949,
1769,
203,
202,
202,
70,
26488,
63,
8443,
65,
273,
324,
26488,
63,
8443,
8009,
... |
./partial_match/1/0xBA0a02CC51C88D91bCad72d13aF266b8dC6881c2/sources/OffscriptPayment.sol | * @dev External interface of AccessControl declared to support ERC165 detection./ | interface IAccessControl {
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
event RoleRevoked(bytes32 indexed role, address indexed account, address index... | 9,431,206 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11352,
1560,
434,
24349,
7886,
358,
2865,
4232,
39,
28275,
11649,
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,
... | [
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,
5831,
467,
16541,
288,
203,
565,
871,
6204,
4446,
5033,
12,
3890,
1578,
8808,
2478,
16,
1731,
1578,
8808,
2416,
4446,
2996,
16,
1731,
1578,
8808,
394,
4446,
2996,
1769,
203,
203,
565,
871,
6204,
14570,
12,
3890,
1578,
8808,
2478,
... |
./full_match/42220/0xccF3e2a7c06A515E36F547c6eB563dc8E00d3c08/sources/Users/yorhodes/celo/celo-monorepo/packages/protocol/contracts/common/libraries/ReentrancyGuard.sol | * @dev Prevents a contract from calling itself, directly or indirectly. Calling a `nonReentrant` function from another `nonReentrant` function is not supported. It is possible to prevent this from happening by making the `nonReentrant` function external, and make it call a `private` function that does the actual work./ | modifier nonReentrant() {
_guardCounter += 1;
uint256 localCounter = _guardCounter;
_;
require(localCounter == _guardCounter, "reentrant call");
}
| 16,315,040 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19412,
87,
279,
6835,
628,
4440,
6174,
16,
5122,
578,
16807,
715,
18,
21020,
279,
1375,
5836,
426,
8230,
970,
68,
445,
628,
4042,
1375,
5836,
426,
8230,
970,
68,
445,
353,
486,
3260,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
1661,
426,
8230,
970,
1435,
288,
203,
565,
389,
24594,
4789,
1011,
404,
31,
203,
565,
2254,
5034,
1191,
4789,
273,
389,
24594,
4789,
31,
203,
565,
389,
31,
203,
565,
2583,
12,
3729,
4789,
422,
389,
24594,
4789,
16,
3... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
//
interface IERC20 {
function TOTALSUPPLY726(... | inject NONSTANDARD NAMING
| function SENDVALUE836(address payable recipient, uint256 amount) internal { | 15,830,430 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31434,
4051,
28,
5718,
12,
2867,
8843,
429,
8027,
16,
2254,
5034,
3844,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0xEd015673D365D4275ffd08D677397DC0444773E0/sources/tmp.sol | ------------------------------------------------------------------------ Total supply ------------------------------------------------------------------------ | function totalSupply() public returns (uint) {
return _totalSupply - balances[address(0)];
}
| 8,265,485 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
10710,
14467,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
3088,
1283,
1435,
1071,
1135,
261,
11890,
13,
288,
203,
3639,
327,
389,
4963,
3088,
1283,
300,
324,
26488,
63,
2867,
12,
20,
13,
15533,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x355c91e5a9Ea75c71975378DC7f31699bB8767B6/sources/contracts/MLN.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 MLN is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping (addr... | 3,141,442 | [
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,
22383,
50,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
3... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
/**
* @dev Interface ... | * @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 virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account].balance;
require(accountBalance >= ... | 7,007,992 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
540,
203,
3639,
389,
5771,
... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.11;
library ETHDKGErrorCodes {
// ETHDKG error codes
bytes32 public constant ETHDKG_ONLY_VALIDATORS_ALLOWED = "100"; //"ETHDKG: Only validators allowed!"
bytes32 public constant ETHDKG_VARIABLE_CANNOT_BE_SET_WHILE_RUNNING = "101"; //"ETHDKG: T... | "ETHDKG: GPKj cannot be all zeros!"
| bytes32 public constant ETHDKG_GPKJ_ZERO = "147"; | 12,560,458 | [
1,
4625,
348,
7953,
560,
30,
225,
315,
1584,
44,
3398,
43,
30,
4948,
47,
78,
2780,
506,
777,
4922,
4442,
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,... | [
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,
1731,
1578,
1071,
5381,
512,
2455,
3398,
43,
67,
43,
8784,
46,
67,
24968,
273,
315,
29488,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xD4c8eAf4065886d050074E72b0a8eC5848bEe08c/sources/contracts/FYVM.sol | * @notice Whitelist mint function @dev Restricted to price, threshold, merkle root, and max WL (3) @param _amount The amount to mint @param _proof The generated merkel proof/ | function whitelistMint(
uint256 _amount,
bytes32[] calldata _proof
)
external
payable
isCorrectPrice(_amount, price)
withinThreshold(_amount)
isWhitelist(merkleRoot, _proof)
{
require(isLive() && isWhitelistOpen, "Whitelist mint is not active."... | 17,060,877 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3497,
7523,
312,
474,
445,
632,
5206,
29814,
358,
6205,
16,
5573,
16,
30235,
1365,
16,
471,
943,
678,
48,
261,
23,
13,
632,
891,
389,
8949,
1021,
3844,
358,
312,
474,
632,
891,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10734,
49,
474,
12,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1731,
1578,
8526,
745,
892,
389,
24207,
203,
565,
262,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
353,
16147,
5147,
24899,
8949,
16,
6205,
13,
... |
./full_match/1/0xc824e1715aBC59b4F03AF0F60e3A9f0996822840/sources/R2S-Collection.sol | @notice Function to updated signer address.@dev Accesible to contract managers. | function setSigner(address _signer) external onlyManagers {
signer = _signer;
}
| 9,613,369 | [
1,
4625,
348,
7953,
560,
30,
632,
20392,
4284,
358,
3526,
10363,
1758,
18,
36,
5206,
12848,
764,
1523,
358,
6835,
21103,
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,
... | [
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,
15647,
12,
2867,
389,
2977,
264,
13,
3903,
1338,
17570,
288,
203,
3639,
10363,
273,
389,
2977,
264,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/3/0x03b0258e8A3d9C0a7574bD55b06815998345ec1B/sources/contracts/DiamondHoldTestETH.sol | * @dev Sets the amount of tax tier 1 wallets incur/ | function setTierOneReflectionTaxPercent(uint256 tax) external onlyOwner() {
_reflectionTaxTierOne = tax;
}
| 8,267,727 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
3844,
434,
5320,
17742,
404,
17662,
2413,
316,
1397,
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,
444,
15671,
3335,
9801,
7731,
8410,
12,
11890,
5034,
5320,
13,
3903,
1338,
5541,
1435,
288,
203,
3639,
389,
26606,
7731,
15671,
3335,
273,
5320,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "../Roles.sol";
import "./OwnerRole.sol";
/**
* @title MintLimiterAdminRole
*
* @dev Role for providing access control to functions that administer individual mint limiter roles.
* This contract inherits from OwnerRole so that owners can administer this role.
* The MintLimiterRole... | * @dev Internal function that removes the given `account` from `_mintLimiterAdmins`. Emits a MintLimiterAdminRemoved event. @param account The account address having access removed from the mintLimiterAdmin role/ | function _removeMintLimiterAdmin(address account) internal {
_mintLimiterAdmins.remove(account);
emit MintLimiterAdminRemoved(account);
}
| 2,579,082 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
716,
7157,
326,
864,
1375,
4631,
68,
628,
1375,
67,
81,
474,
22329,
4446,
87,
8338,
7377,
1282,
279,
490,
474,
22329,
4446,
10026,
871,
18,
632,
891,
2236,
1021,
2236,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4479,
49,
474,
22329,
4446,
12,
2867,
2236,
13,
2713,
288,
203,
3639,
389,
81,
474,
22329,
4446,
87,
18,
4479,
12,
4631,
1769,
203,
3639,
3626,
490,
474,
22329,
4446,
10026,
12,
4631,
1769,
203,
565,
289,
203,
20... |
pragma solidity ^0.5.2;
import "openzeppelin-solidity/contracts/access/Roles.sol";
import "./AdminRole.sol";
/**
* @author ITMF Ltd.
* @title FreezerRole - Access for who can freeze/unfreeze accounts
*/
contract FreezerRole is AdminRole {
using Roles for Roles.Role;
event FreezerAdded(address indexed account... | * @dev Renounce freezer role. Message sender will no longer be freezer/ | function renounceFreezer() public {
_removeFreezer(msg.sender);
}
| 14,057,305 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25921,
8386,
4843,
24355,
2478,
18,
2350,
5793,
903,
1158,
7144,
506,
4843,
24355,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1654,
8386,
9194,
24355,
1435,
1071,
288,
203,
3639,
389,
4479,
9194,
24355,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
abstract contract Context {
function _msgSender() internal view returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning wit... | Ownership moved to in-contract for customizability. PCS ROUTER | contract ReflectionToken is IERC20 {
address private _owner;
mapping (address => uint256) _tOwned;
mapping (address => bool) lpPairs;
uint256 private timeSinceLastPair = 0;
mapping (address => mapping (address => uint256)) _allowances;
mapping (address => bool) _isFeeExcluded;
mapping (addr... | 13,128,477 | [
1,
4625,
348,
7953,
560,
30,
225,
14223,
9646,
5310,
10456,
358,
316,
17,
16351,
364,
1679,
452,
2967,
18,
453,
4596,
534,
5069,
654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
5685,
1345,
353,
467,
654,
39,
3462,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
389,
88,
5460,
329,
31,
203,
565,
2874,
261,
2867,
516,
1426,
13,
12423,
10409,
31,
203,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.13;
// Imports
import "./ERC721A.sol";
import "./Reveal.sol";
import "./AccessControl.sol";
import "./Ownable.sol";
/// @title MOD - The NFT contract.
contract NFT is ERC721A, AccessControl, Ownable, Reveal {
// Available Access Roles
// Only address with... | * @param tokenId The ID of an NFT @dev Returns the URI of an NFT/ | function tokenURI(uint256 tokenId) public view override returns (string memory) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
return getTokenUri(tokenId);
}
| 1,682,858 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
1147,
548,
1021,
1599,
434,
392,
423,
4464,
632,
5206,
2860,
326,
3699,
434,
392,
423,
4464,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
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,
225,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
565,
309,
16051,
67,
1808,
12,
2316,
548,
3719,
15226,
3699,
1138,
1290,
3989,
19041,
1345,
5621,
203,
565,
327,
9162,
3... |
pragma solidity ^0.5.1;
/**
The MIT License (MIT)
Copyright (c) 2016 Smart Contract Solutions, Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitati... | * @dev Adds two numbers, reverts on overflow./ | function add(uint256 a, uint256 b) internal pure returns (uint256)
{
uint256 c = a + b;
require(c >= a, "Addition overflow");
return c;
}
| 12,975,367 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15605,
2795,
5600,
16,
15226,
87,
603,
9391,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
1545,
279,
16,
315,
30296,
9391,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.5;
/**
* @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... | If true, and LLG reward claim portion fails, the portion will be given as BNB instead
| bool private _reimburseAfterLLGClaimFailure; | 14,072,338 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
638,
16,
471,
29863,
43,
19890,
7516,
14769,
6684,
16,
326,
14769,
903,
506,
864,
487,
605,
20626,
3560,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
6430,
3238,
389,
266,
381,
70,
295,
307,
4436,
4503,
43,
9762,
5247,
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,
... |
./full_match/1/0x9786D9482Ce5F3A9077b185a297d91C676919767/sources/PEPE.sol | set final tax after 15 minutes
| taxes = Taxes(1, 1, 0); | 17,038,645 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
727,
5320,
1839,
4711,
6824,
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,
7734,
5320,
281,
273,
399,
10855,
12,
21,
16,
404,
16,
374,
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,
-100,
... |
claimers[0xEB079Ee381FC821B809F6110cCF7a8439C7A6870] = 0; // seq: 0 -> tkn_id: 0
claimers[0xcBD56A71a02fA7AA01bF1c94c0AeB2828Bebdc0A] = 1; // seq: 1 -> tkn_id: 1
claimers[0x9E1fDAB0FE4141fe269060f098bc7076d248cE7B] = 2; // seq: 2 -> tkn_id: 2
claimers[0x33aEA8f43D9685683b236B20a1818aFcD48204cD] = 3; // seq: 3 -> tk... | seq: 190 -> tkn_id: 190
| claimers[0x98a784132CF101E8Cd2764ded4c2F246325F1fe6] = 190; | 12,654,686 | [
1,
4625,
348,
7953,
560,
30,
225,
3833,
30,
5342,
20,
317,
13030,
82,
67,
350,
30,
5342,
20,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14784,
414,
63,
20,
92,
10689,
69,
27,
5193,
22152,
8955,
15168,
41,
28,
19728,
5324,
1105,
785,
24,
71,
22,
42,
3247,
26,
1578,
25,
42,
21,
3030,
26,
65,
273,
5342,
20,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
import "./LinkExInterface.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/**
* @title The LINK exchange contract
*/
contract LinkEx is LinkExInterface, Ownable {
using SafeMath for uint256;
struct Rate {
... | * @title The LINK exchange contract/ | contract LinkEx is LinkExInterface, Ownable {
using SafeMath for uint256;
struct Rate {
uint256 blockNumber;
uint256 rate;
}
uint256 public constant VALID_BLOCKS = 25;
mapping(address => bool) public authorizedNodes;
mapping(address => Rate) private rates;
uint256 private historicRate;
uint2... | 12,982,204 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1021,
22926,
7829,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4048,
424,
353,
4048,
424,
1358,
16,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
1958,
13025,
288,
203,
565,
2254,
5034,
1203,
1854,
31,
203,
565,
2254,
5034,
4993,
31,
203,
225,
289... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@bancor/token-g... | * @dev returns provider rewards for a specific pool and reserve/ | function _providerRewards(
address provider,
IDSToken poolToken,
IReserveToken reserveToken
) private view returns (ProviderRewards memory) {
ProviderRewards memory data;
(
data.rewardPerToken,
data.pendingBaseRewards,
data.totalClaimed... | 7,268,403 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
2893,
283,
6397,
364,
279,
2923,
2845,
471,
20501,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6778,
17631,
14727,
12,
203,
3639,
1758,
2893,
16,
203,
3639,
1599,
882,
969,
2845,
1345,
16,
203,
3639,
467,
607,
6527,
1345,
20501,
1345,
203,
565,
262,
3238,
1476,
1135,
261,
2249,
17631,
14727,
3778,
13,
288,
2... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
/// On Tupac's Soul
import "./ERC721A.sol";
import "./Payable.sol";
contract FoodlesClubToken is ERC721A, Payable {
using Strings for uint256;
// Token values incremented for gas efficiency
uint256 private maxSalePlusOne = 5001;
uint256 privat... | Token values incremented for gas efficiency Minting | contract FoodlesClubToken is ERC721A, Payable {
using Strings for uint256;
uint256 private maxSalePlusOne = 5001;
uint256 private constant MAX_RESERVED_PLUS_ONE = 51;
uint256 private constant MAX_FREE = 700;
uint256 private constant MAX_PER_TRANS_PLUS_ONE = 11;
uint256 private reserveClaimed ... | 12,229,512 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
924,
28859,
364,
16189,
30325,
490,
474,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
478,
4773,
1040,
2009,
373,
1345,
353,
4232,
39,
27,
5340,
37,
16,
13838,
429,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
3238,
943,
30746,
13207,
3335,
273,
6604,
21,
31,
203,
565,
2254,
... |
./full_match/1/0x3a95eA2D789ABf5307F16033bf06EB9B297C81c2/sources/_ensdomains/ens-contracts/contracts/resolvers/profiles/IAddressResolver.sol | * Interface for the new (multicoin) addr function./ | interface IAddressResolver {
event AddressChanged(
bytes32 indexed node,
uint256 coinType,
bytes newAddress
);
function addr(bytes32 node, uint256 coinType)
external
view
returns (bytes memory);
pragma solidity >=0.8.4;
}
| 3,043,187 | [
1,
4625,
348,
7953,
560,
30,
380,
6682,
364,
326,
394,
261,
5421,
335,
885,
13,
3091,
445,
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,... | [
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,
5831,
467,
1887,
4301,
288,
203,
565,
871,
5267,
5033,
12,
203,
3639,
1731,
1578,
8808,
756,
16,
203,
3639,
2254,
5034,
13170,
559,
16,
203,
3639,
1731,
394,
1887,
203,
565,
11272,
203,
203,
565,
445,
3091,
12,
3890,
1578,
756,
... |
pragma solidity ^0.4.24;
import {SafeMath} from "openzeppelin-solidity/math/SafeMath.sol";
import {RBAC} from "openzeppelin-solidity/access/rbac/RBAC.sol";
import {ReentrancyGuard} from "./utils/ReentrancyGuard.sol";
/**
* @dev ValidatorManager is a contract that manages validators on Plasma Chain.
*/
contract Val... | * @dev ValidatorManager is a contract that manages validators on Plasma Chain./ | contract ValidatorManager is RBAC, ReentrancyGuard {
using SafeMath for uint256;
event Registered(address indexed validator);
event NewBlockProposed(uint256 blockNumber);
event VotingFinished(uint256 indexed blockNumber);
event VoteRevealed(
address indexed validator,
uint256 index... | 12,956,423 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9150,
1318,
353,
279,
6835,
716,
20754,
281,
11632,
603,
3008,
345,
2540,
7824,
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,
16351,
9150,
1318,
353,
534,
38,
2226,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
26940,
12,
2867,
8808,
4213,
1769,
203,
565,
871,
1166,
1768,
626,
7423,
12,
11890,
5... |
pragma solidity ^0.4.24;
contract PriceOracleInterface {
/**
* @notice Gets the price of a given asset
* @dev fetches the price of a given asset
* @param asset Asset to get the price of
* @return the price scaled by 10**18, or zero if the price is not available
*/
function assetPr... | * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin @dev Admin function for pending admin to accept role and update admin @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)/ Check caller = pendingAdmin msg.sender can't be zero | function _acceptAdmin() public returns (uint) {
if (msg.sender != pendingAdmin) {
return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK);
}
emit NewAdmin(oldAdmin, msg.sender);
return uint(Error.NO_ERROR);
}
| 2,476,622 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
27158,
7412,
434,
3981,
14989,
18,
1234,
18,
15330,
1297,
506,
4634,
4446,
632,
5206,
7807,
445,
364,
4634,
3981,
358,
2791,
2478,
471,
1089,
3981,
632,
2463,
2254,
374,
33,
4768,
16,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
9436,
4446,
1435,
1071,
1135,
261,
11890,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
4634,
4446,
13,
288,
203,
5411,
327,
2321,
12,
668,
18,
2124,
28383,
16,
13436,
966,
18,
21417,
67,
15468,
67,
25691,
... |
./full_match/4/0x12cee96621e1C8Ecdf8Af0ef19599160C623faD8/sources/TokenETH.sol | this is so that we can capture exactly the amount of ETH that the has been manually sent to the contract | function _swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap {
uint256 half = contractTokenBalance.div(2);
uint256 otherHalf = contractTokenBalance.sub(half);
uint256 initialBalance = address(this).balance;
uint256 newBalance = address(this).balance.sub(initialBalance);... | 741,264 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
353,
1427,
716,
732,
848,
7477,
8950,
326,
3844,
434,
512,
2455,
716,
326,
711,
2118,
10036,
3271,
358,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
22270,
1876,
48,
18988,
1164,
12,
11890,
5034,
6835,
1345,
13937,
13,
3238,
2176,
1986,
12521,
288,
203,
3639,
2254,
5034,
8816,
273,
6835,
1345,
13937,
18,
2892,
12,
22,
1769,
203,
3639,
2254,
5034,
1308,
16168,
273... |
./partial_match/1/0xEAf6C7993e16fDa21169Be534576127D9c8cDE59/sources/FLAPPY.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Flappy Shiba", "FLAPPY") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair ... | 15,516,342 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3885,
1435,
4232,
39,
3462,
2932,
2340,
438,
2074,
2638,
495,
69,
3113,
315,
19054,
7215,
61,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "./interfaces/IERC20.sol";
import "./interfaces/ILockManager.sol";
import "./lib/SafeMath.sol";
import "./lib/SafeERC20.sol";
/**
* @title Vault
* @dev Contract for locking up tokens for set periods of time
* + option... | * @notice Internal implementation of token claims @param lockId The lock id for claim @param claimAmount The amount to claim/ Remove voting power, if exists | function _claimTokens(uint256 lockId, uint256 claimAmount) internal {
Lock storage lock = tokenLocks[lockId];
uint256 votingPowerRemoved;
if (lock.votingPower > 0) {
votingPowerRemoved = lockManager.removeVotingPower(lock.receiver, lock.token, claimAmount);
lock.voti... | 6,485,025 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3186,
4471,
434,
1147,
11955,
632,
891,
2176,
548,
1021,
2176,
612,
364,
7516,
632,
891,
7516,
6275,
1021,
3844,
358,
7516,
19,
3581,
331,
17128,
7212,
16,
309,
1704,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
14784,
5157,
12,
11890,
5034,
2176,
548,
16,
2254,
5034,
7516,
6275,
13,
2713,
288,
203,
3639,
3488,
2502,
2176,
273,
1147,
19159,
63,
739,
548,
15533,
203,
3639,
2254,
5034,
331,
17128,
13788,
10026,
31,
203,
203,
... |
pragma solidity ^0.4.23;
/**
* CRAIDER (RAID) ERC20 Token Smart Contract implementation.
*
* Copyright © 2018 by Craider Technologies.
*
* Developed By: NewCryptoBlock.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
*
* Unless requ... | * Temporary freeze token transfers/ | function freezeTransfers () onlyOwner public {
if (!transfersFrozen) {
transfersFrozen = true;
emit Freeze(msg.sender);
}
}
| 15,850,821 | [
1,
4625,
348,
7953,
560,
30,
380,
22791,
16684,
1147,
29375,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16684,
1429,
18881,
1832,
1338,
5541,
1071,
288,
203,
565,
309,
16051,
2338,
18881,
42,
9808,
13,
288,
203,
1377,
29375,
42,
9808,
273,
638,
31,
203,
1377,
3626,
15217,
8489,
12,
3576,
18,
15330,
1769,
203,
565,
289,
20... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
... | Invest related functions */* @dev Fallback function, to be used to purchase tokens/ cannot be a contract calculate token amount to be transfered check if we are below MAX_TOKENS update tokens sold update total wei counter update balance of the beneficiary forward ETH | function () public payable validPurchase mustBeAtStage(Stage.Running) {
require(msg.sender != address(0));
require(isContract(msg.sender) == false);
address beneficiary = msg.sender;
uint256 weiAmount = msg.value;
uint256 tokens = getTokenAmount(weiAmount);
require(tokens > 0);
require... | 12,666,329 | [
1,
4625,
348,
7953,
560,
30,
225,
5454,
395,
3746,
4186,
1195,
14,
632,
5206,
21725,
445,
16,
358,
506,
1399,
358,
23701,
2430,
19,
2780,
506,
279,
6835,
4604,
1147,
3844,
358,
506,
7412,
329,
866,
309,
732,
854,
5712,
4552,
67,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1832,
1071,
8843,
429,
923,
23164,
1297,
1919,
861,
8755,
12,
8755,
18,
7051,
13,
288,
203,
565,
2583,
12,
3576,
18,
15330,
480,
1758,
12,
20,
10019,
203,
565,
2583,
12,
291,
8924,
12,
3576,
18,
15330,
13,
422,
629,
... |
// File: contracts/MerkleProof.sol
pragma solidity ^0.6.0;
/**
* @dev These functions deal with verification of Merkle trees (hash trees),
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided,... | * @dev to send the airdropped tokens back to AirDropper. @param ' _vault' - vault Address/ | function sendTokenBackToAirDropperByVault(address _vault) external returns (bool) {
MerkleAirDrop memory merkledrop = airdroppedtokens[_vault];
require(merkledrop.airdropCreator == msg.sender, "ERR_NOT_AUTHORIZED");
require(merkledrop.airdropExpirationDate < now, "ERR_TOKEN_AIRDROP_HASNOT_EX... | 577,388 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
358,
1366,
326,
279,
6909,
1764,
1845,
2430,
1473,
358,
432,
481,
7544,
457,
18,
225,
632,
891,
296,
389,
26983,
11,
225,
300,
9229,
5267,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1366,
1345,
2711,
774,
29752,
7544,
457,
858,
12003,
12,
2867,
389,
26983,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
31827,
29752,
7544,
3778,
4045,
79,
1259,
1764,
273,
279,
6909,
1764,
1845,
7860,
63,
67,
26983,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "ERC721.sol";
import "Ownable.sol";
import "ISimpleLimitedMinter.sol";
contract Prospect100MH is ERC721, Ownable, ISimpleLimitedMinter {
string internal baseURI;
bool internal isLockedURI;
uint256 public nextTokenId;
uint256 public maxTok... | only minter - mints next token to address | function tryMint(address to) external onlyMinter override returns (bool minted, uint256 tokenId) {
if (nextTokenId > maxTokens) return (false, 0);
uint256 tokenId = nextTokenId;
_mint(to, tokenId);
nextTokenId++;
return (true, tokenId);
}
| 13,837,618 | [
1,
4625,
348,
7953,
560,
30,
1338,
1131,
387,
300,
312,
28142,
1024,
1147,
358,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
775,
49,
474,
12,
2867,
358,
13,
3903,
1338,
49,
2761,
3849,
1135,
261,
6430,
312,
474,
329,
16,
2254,
5034,
1147,
548,
13,
288,
203,
3639,
309,
261,
4285,
1345,
548,
405,
943,
5157,
13,
327,
261,
5743,
16,
374,
176... |
// SPDX-License-Identifier: MIT
/**
* @title The Endings
* @notice The Endings by Caitlin Cronenberg, an editioned, interactive photography book
* @author Transient Labs
*/
/*
_______ _ ______ _ _
|__ __| | | ____| | (_)
| | | |__... | * @notice function to set the allowlist mint status @param status is the true/false flag for the allowlist mint status/ | function setAllowlistSaleStatus(bool status) external virtual adminOrOwner {
allowlistSaleOpen = status;
}
| 10,296,966 | [
1,
4625,
348,
7953,
560,
30,
380,
282,
632,
20392,
445,
358,
444,
326,
1699,
1098,
312,
474,
1267,
282,
632,
891,
1267,
353,
326,
638,
19,
5743,
2982,
364,
326,
1699,
1098,
312,
474,
1267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
7009,
1098,
30746,
1482,
12,
6430,
1267,
13,
3903,
5024,
3981,
1162,
5541,
288,
203,
3639,
1699,
1098,
30746,
3678,
273,
1267,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x4fe750a07126333F62f36523d1265C0eDf859722/sources/browser/Jointer/ethBonus.sol | system address may change fee amount
| address public system; | 3,032,985 | [
1,
4625,
348,
7953,
560,
30,
225,
2619,
1758,
2026,
2549,
14036,
3844,
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,
1758,
1071,
2619,
31,
6647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2022-03-08
*/
// SPDX-License-Identifier:UNLICENSED
pragma solidity ^0.8.4;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal r... | Mapping from token ID to account balances Mapping from tokenId to operator approvals Mapping from account to operator approvals mapping for token URIs mapping for token royaltyFee mapping for token creator | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using EnumerableMap for EnumerableMap.UintToAddressMap;
using Strings for uint256;
bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;
... | 2,446,221 | [
1,
4625,
348,
7953,
560,
30,
225,
9408,
628,
1147,
1599,
358,
2236,
324,
26488,
9408,
628,
1147,
548,
358,
3726,
6617,
4524,
9408,
628,
2236,
358,
3726,
6617,
4524,
2874,
364,
1147,
24565,
2874,
364,
1147,
721,
93,
15006,
14667,
2874,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4232,
39,
27,
5340,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
2277,
16,
467,
654,
39,
27,
5340,
3572,
25121,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
6057,... |
/*
* THE eMoon contract!
* eMoon - fork from YFIN. But removed error.
*
* eMoon website: https://emoon.site/
*
*
* THE eMoon ADVANTAGE:
* REMOVED THE PUBLIC MINT() FUNCTION PRESENT IN THE OTHER FORKS (NOT IN THE ORIGINAL - SUSHI) THAT ALLOWS THE CONTRACT OWNER TO MINT TOKENS TO THE DEV ADDRESS.
* REMOVED GOO... | Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. | function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
poo... | 1,157,925 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
11329,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
5034,
389,
9853,
2148,
16,
467,
654,
39,
3462,
389,
9953,
1345,
16,
1426,
389,
1918,
1891,
13,
1071,
1338,
5541,
288,
203,
3639,
309,
261,
67,
1918,
1891,
13,
288,
203,
5411,
8039,
1891,
16639,
5621,
2... |
//Address: 0xa7df9fe76b5c4928de450afe0b2ff95a968640c2
//Contract name: Crowdsale
//Balance: 0 Ether
//Verification Date: 3/22/2018
//Transacion Count: 5
// CODE STARTS HERE
pragma solidity ^0.4.17;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* f... | * @dev Function to set bonus system. @param preICOtokens , firstPeriodTokens, secondPeriodTokens, thirdPeriodTokens Percentage of tokens for each period. @param preICObonus , firstPeriodBonus, secondPeriodBonus, thirdPeriodBonus Percentage of bonus for each period./ | function setBonusSystem(uint preICOtokens, uint preICObonus, uint firstPeriodTokens, uint firstPeriodBonus,
uint secondPeriodTokens, uint secondPeriodBonus, uint thirdPeriodTokens, uint thirdPeriodBonus) private {
bonus.push(BonusSystem(0, startPreICO, startPreICO + periodPreICO... | 1,847,733 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
444,
324,
22889,
2619,
18,
632,
891,
675,
2871,
51,
7860,
269,
1122,
5027,
5157,
16,
2205,
5027,
5157,
16,
12126,
5027,
5157,
21198,
410,
434,
2430,
364,
1517,
3879,
18,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
15268,
22889,
3163,
12,
11890,
675,
2871,
51,
7860,
16,
2254,
675,
2871,
10516,
22889,
16,
2254,
1122,
5027,
5157,
16,
2254,
1122,
5027,
38,
22889,
16,
7010,
18701,
2254,
2205,
5027,
5157,
16,
2254,
2205,
5027,
38,
22889,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IDomainRegistry.sol";
import "./libraries/UtilityLibrary.sol";
import "./libraries/DomainLibrary.sol";
import "./structs/Domain.sol";
import "./structs/DomainOwner.sol";
import "./structs/settings/DomainRegistrySettings.sol";
import "./err... | @inheritdoc IERC721 | function setApprovalForAll(address operator, bool enabled)
external
override
{
if (operator == address(0)) revert AddressIsZero();
if (msg.sender == operator) revert AddressesAreIdentical();
_updateOperator(operator, enabled);
}
| 13,017,511 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
654,
39,
27,
5340,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
23461,
1290,
1595,
12,
2867,
3726,
16,
1426,
3696,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
565,
288,
203,
3639,
309,
261,
9497,
422,
1758,
12,
20,
3719,
15226,
5267,
2520,
7170,
5621,
203,
3639,
309,
261,
3576,
... |
./full_match/5/0xe8F0D74baB0e29e56b23c330e1ebfa4f76817059/sources/contracts/Proxy.sol | Verify a valid address was passed in save the code address solium-disable-line | constructor(address contractLogic) {
require(contractLogic != address(0), "Contract Logic cannot be 0x0");
assembly {
sstore(PROXY_MEM_SLOT, contractLogic)
}
}
| 7,082,274 | [
1,
4625,
348,
7953,
560,
30,
225,
8553,
279,
923,
1758,
1703,
2275,
316,
1923,
326,
981,
1758,
3704,
5077,
17,
8394,
17,
1369,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
2867,
6835,
20556,
13,
288,
203,
3639,
2583,
12,
16351,
20556,
480,
1758,
12,
20,
3631,
315,
8924,
10287,
2780,
506,
374,
92,
20,
8863,
203,
203,
3639,
19931,
288,
203,
5411,
272,
2233,
12,
16085,
67,
12286,
67,
... |
./partial_match/1/0x357ADa6E0da1BB40668BDDd3E3aF64F472Cbd9ff/sources/StakingPool.sol | If there is no change the balance didn't change
| nerdBalance = nerd.balanceOf(address(this)).sub(nerdDeposit()); | 4,460,271 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1915,
353,
1158,
2549,
326,
11013,
10242,
1404,
2549,
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,
5411,
290,
264,
72,
13937,
273,
290,
264,
72,
18,
12296,
951,
12,
2867,
12,
2211,
13,
2934,
1717,
12,
1224,
72,
758,
1724,
10663,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5 .11;
// 'ButtCoin' contract, version 2.0
// Website: http://www.0xbutt.com/
//
// Symbol : 0xBUTT
// Name : ButtCoin v2.0
// Total supply: 33,554,431.99999981
// Decimals : 8
//
// ----------------------------------------------------------------------------
// =====================... | generate a new one when a new reward is minted
| bytes32 public challengeNumber; | 14,015,823 | [
1,
4625,
348,
7953,
560,
30,
2103,
279,
394,
1245,
1347,
279,
394,
19890,
353,
312,
474,
329,
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,
282,
1731,
1578,
1071,
12948,
1854,
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,... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be... | * @dev Withdra ALOHA without generating your NFT. This can be done before release time is reached./ | function forceSimpleWithdraw(
uint256 _tokenRarity
)
public
{
forcePairWithdraw(alohaERC20, _tokenRarity);
}
| 147,463 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
27224,
432,
1502,
19191,
2887,
12516,
3433,
423,
4464,
18,
1220,
848,
506,
2731,
1865,
3992,
813,
353,
8675,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2944,
5784,
1190,
9446,
12,
203,
3639,
2254,
5034,
389,
2316,
54,
20498,
203,
565,
262,
203,
3639,
1071,
203,
565,
288,
203,
3639,
2944,
4154,
1190,
9446,
12,
287,
83,
3395,
654,
39,
3462,
16,
389,
2316,
54,
20498,
17... |
pragma solidity ^0.4.21;
import "zeppelin-solidity/contracts/ownership/Ownable.sol";
import "zeppelin-solidity/contracts/math/SafeMath.sol";
/// @title interface to EmergencyStop contract
interface IEmergencyStop {
function breakerIsDisabled() external returns(bool);
}
/// @title interface to Bank contract
inter... | @author Alexander 'rmi7' Remie @title Products contract Variables storeId productIds productId productIdIdx-inside-storeIdToProductIds-of-correct-store currently cannot return a struct from solidity, so this will be used only internally we implement a getProduct(id) function down below to fetch a product fro... | contract Products is Ownable {
IEmergencyStop private breaker;
IStores private stores;
IUsers private users;
IBank private bank;
uint constant public MIN_PRODUCT_PRICE = 0.01 * 1 ether;
uint constant public MIN_PRODUCT_QUANTITY = 1;
uint constant public MAX_PRODUCT_QUANTITY = 1000;
uint public produc... | 2,508,641 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
4161,
432,
4149,
464,
264,
296,
8864,
77,
27,
11,
2663,
1385,
632,
2649,
8094,
87,
6835,
23536,
1377,
18525,
3017,
2673,
1377,
23820,
23820,
4223,
17,
28091,
17,
2233,
28803,
4133,
2673,
17,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8094,
87,
353,
14223,
6914,
288,
203,
203,
225,
467,
1514,
24530,
4947,
3238,
898,
264,
31,
203,
225,
467,
13125,
3238,
9064,
31,
203,
225,
467,
6588,
3238,
3677,
31,
203,
225,
467,
16040,
3238,
11218,
31,
203,
203,
225,
... |
/*
This Token Contract implements the standard token functionality (https://github.com/ethereum/EIPs/issues/20) as well as the following OPTIONAL extras intended for use by humans.
In other words. This is intended for deployment in something like a Token Factory or Mist wallet, and then used by humans.
Imagine coins, ... | Public variables of the token */ | 3) Optional approveAndCall() functionality to notify a contract if an approval() has occurred.
.*/
pragma solidity ^0.4.23;
import "./StandardToken.sol";
{
}
| 13,014,662 | [
1,
4625,
348,
7953,
560,
30,
225,
7224,
3152,
434,
326,
1147,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23,
13,
4055,
6617,
537,
1876,
1477,
1435,
14176,
358,
5066,
279,
6835,
309,
392,
23556,
1435,
711,
7841,
18,
203,
203,
4509,
19,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
24,
18,
4366,
31,
203,
5666,
25165,
8336,
1345,
18... |
pragma solidity ^0.5.2;
pragma experimental ABIEncoderV2;
import "./Commitment.sol";
import "./ForceMoveApp.sol";
library Rules {
using Commitment for Commitment.CommitmentStruct;
address private constant zeroAddress = address(0);
struct Challenge {
address channelId;
Commitment.Commitment... | commitments must be signed by the appropriate participant first move must be a concluded Commitment (transition rules will ensure this for the other commitments) must be a valid transition | function validConclusionProof(
Commitment.CommitmentStruct memory _fromCommitment,
Commitment.CommitmentStruct memory _toCommitment,
uint8[] memory v,
bytes32[] memory r,
bytes32[] memory s
) public pure returns (bool) {
_fromCommitment.requireSignature(v[0], r[0]... | 2,485,465 | [
1,
4625,
348,
7953,
560,
30,
225,
3294,
1346,
1297,
506,
6726,
635,
326,
5505,
14188,
1122,
3635,
1297,
506,
279,
356,
7908,
10269,
475,
261,
14936,
2931,
903,
3387,
333,
364,
326,
1308,
3294,
1346,
13,
1297,
506,
279,
923,
6007,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
923,
442,
15335,
20439,
12,
203,
3639,
10269,
475,
18,
5580,
475,
3823,
3778,
389,
2080,
5580,
475,
16,
203,
3639,
10269,
475,
18,
5580,
475,
3823,
3778,
389,
869,
5580,
475,
16,
203,
3639,
2254,
28,
8526,
3778,
331,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-24
*/
/**
*Submitted for verification at Etherscan.io on 2021-03-31
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint2... | @dev To pauseor unpause the pre sale @param '_val' - specifies the boolean value/ | function isPausable(bool _val)external onlyOwner{
isPaused = _val;
}
| 11,932,046 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2974,
11722,
280,
640,
19476,
326,
675,
272,
5349,
632,
891,
225,
2070,
1125,
11,
300,
11470,
326,
1250,
460,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
16507,
16665,
12,
6430,
389,
1125,
13,
9375,
1338,
5541,
95,
203,
3639,
353,
28590,
273,
389,
1125,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "./TellorVars.sol";
import "./interfaces/IOracle.sol";
import "./interfaces/IController.sol";
import "./interfaces/ITreasury.sol";
/**
@author Tellor Inc.
@title Governance
@dev This is the Governance contract which defines the functionality for
* prop... | Emitted when all casting for a vote is tallied
| event VoteTallied(uint256 _disputeId, VoteResult _result); | 5,352,548 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
7948,
1347,
777,
27660,
364,
279,
12501,
353,
268,
454,
2092,
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,
871,
27540,
56,
454,
2092,
12,
11890,
5034,
389,
2251,
2507,
548,
16,
27540,
1253,
389,
2088,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x326f577dB2AD32bB6682526F4174753dAD46433b/sources/BUTERINTWEET.sol | set as marketing wallet
| marketingWallet = address(0xd8AA614be3DcCBBaf368226d111EE65E867B69b3); | 4,159,541 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
13667,
310,
9230,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
7669,
28,
5284,
26,
3461,
2196,
23,
40,
71,
8876,
38,
1727,
5718,
24532,
26,
72,
20227,
9383,
9222,
41,
5292,
27,
38,
8148,
70,
23,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x5b320DB337aF8cFe8425a9b7F35EA1062d1ed62c/sources/AMBOT.sol | generate the uniswap pair path of token -> weth make the swap | function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = swapRouter.WETH();
_approve(address(this), address(swapRouter), tokenAmount);
swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(... | 9,162,104 | [
1,
4625,
348,
7953,
560,
30,
225,
2103,
326,
640,
291,
91,
438,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
5157,
1290,
41,
451,
12,
11890,
5034,
1147,
6275,
13,
3238,
288,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2211,
1769,
203,
3639,
589,
63,
... |
/**
*Submitted for verification at Etherscan.io on 2019-12-03
*/
pragma solidity 0.5.13;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in suc... | inject UNINIT LOCAL/STATE VAR
| uint256 penaltyDays ; | 1,819,055 | [
1,
4625,
348,
7953,
560,
30,
4590,
5019,
12919,
15234,
19,
7998,
8350,
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,
2254,
5034,
23862,
9384,
274,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x0197f1081F28ed90815442821109Da9DcC1f23FD/sources/boom.sol | * @dev Throws if called by any account other than the owner./ | modifier onlyOwner() {
require(_owner == _msgSender(), 'Ownable: caller is not the owner');
_;
}
| 2,951,099 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22435,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
9606,
1338,
5541,
1435,
288,
203,
3639,
2583,
24899,
8443,
422,
389,
3576,
12021,
9334,
296,
5460,
429,
30,
4894,
353,
486,
326,
3410,
8284,
203,
3639,
389,
31,
203,
565,
289,
203,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | this method is virtual since different subclasses can handle escrow differently | function inboundEscrowTransfer(
address _l1Token,
address _dest,
uint256 _amount
) internal virtual {
IERC20(_l1Token).safeTransfer(_dest, _amount);
}
| 6,401,589 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
707,
353,
5024,
3241,
3775,
15320,
848,
1640,
2904,
492,
23621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13357,
6412,
492,
5912,
12,
203,
3639,
1758,
389,
80,
21,
1345,
16,
203,
3639,
1758,
389,
10488,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
2713,
5024,
288,
203,
3639,
467,
654,
39,
3462,
24899,
80,
21,
1345... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be... | * @notice Modifies a slot at an index for a given branch. @param _branch Branch node to modify. @param _index Slot index to modify. @param _value Value to insert into the slot. @return _updatedNode Modified branch node./ | function _editBranchIndex(
TrieNode memory _branch,
uint8 _index,
bytes memory _value
)
private
pure
returns (
TrieNode memory _updatedNode
)
{
bytes memory encoded = _value.length < 32 ? _value : Lib_RLPWriter.writeBytes(_value);
... | 194,830 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3431,
5032,
279,
4694,
622,
392,
770,
364,
279,
864,
3803,
18,
632,
891,
389,
7500,
15449,
756,
358,
5612,
18,
632,
891,
389,
1615,
23195,
770,
358,
5612,
18,
632,
891,
389,
1132,
1445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
389,
4619,
7108,
1016,
12,
203,
3639,
26336,
907,
3778,
389,
7500,
16,
203,
3639,
2254,
28,
389,
1615,
16,
203,
3639,
1731,
3778,
389,
1132,
203,
565,
262,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Timers.sol";
contract Trustee is Ownable, ReentrancyGuard {
using Time... | * @notice Adds a beneficiary with it's Trust if it doesn't have one @dev Turns the caller into a Testator by creating a Trust and relating @dev the beneficiary with the Trust. Also asociates the Beneficiary with @dev it's Testator. Updates deadline and initialize checkInFrequencyInDays @dev property of the Testator if ... | function createTrust(address _beneficiary, uint amount)
public
payable
isUnique(_beneficiary)
{
require(msg.value >= amount, "Not enough balance.");
uint trustIndex = _trusts.length;
_trusts.push(
Trust(
trustIndex,
msg... | 12,571,213 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15605,
279,
27641,
74,
14463,
814,
598,
518,
1807,
20246,
309,
518,
3302,
1404,
1240,
1245,
632,
5206,
22425,
87,
326,
4894,
1368,
279,
7766,
639,
635,
4979,
279,
20246,
471,
1279,
1776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
752,
14146,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
3844,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
353,
6303,
24899,
70,
4009,
74,
14463,
814,
13,
203,
565,
288,
203,
3639,
2583,
12,
3576,
18,
... |
./full_match/288/0xF08AD7C3f6b1c6843ba027AD54Ed8DDB6D71169b/sources/src/contracts/shibui/Shibui.sol | @title 🌊 Shibui 🌊 @notice The ShibuiDAO governance and treasury token. @author Shibui (https://github.com/ShibuiDAO/shibui/blob/main/src/contracts/shibui/Shibui.sol) @author Modified from Compound (https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol) @author Modified from ... | contract Shibui is ERC20("Shibui", unicode"🌊"), EIP712, ERC20Burnable, ERC20Snapshot, ERC20Permit("Shibui"), LockedHolders, Ownable, IShibui {
bytes32 public constant override _DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
uint96 public constant override MAX_SUPPLY... | 7,106,230 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
225,
177,
258,
239,
237,
2638,
495,
4881,
225,
177,
258,
239,
237,
632,
20392,
1021,
2638,
495,
4881,
18485,
314,
1643,
82,
1359,
471,
9787,
345,
22498,
1147,
18,
632,
4161,
2638,
495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2638,
495,
4881,
353,
4232,
39,
3462,
2932,
1555,
495,
4881,
3113,
5252,
6,
177,
258,
239,
237,
6,
3631,
512,
2579,
27,
2138,
16,
4232,
39,
3462,
38,
321,
429,
16,
4232,
39,
3462,
4568,
16,
4232,
39,
3462,
9123,
305,
2... |
// SPDX-License-Identifier: MIT
/**
* Stick Fighter
.m.
(;)
(;)
(;)
. (;) .
|\_(;)_/|
|/ )|( \|
( o )
)8(
( o )
)8(
;|S|;
||S||
... | Function to activate or deactivate the sale | function setSaleActive(bool _start) public onlyOwner {
saleActive = _start;
}
| 11,752,501 | [
1,
4625,
348,
7953,
560,
30,
4284,
358,
10235,
578,
18790,
326,
272,
5349,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13928,
5349,
3896,
12,
6430,
389,
1937,
13,
1071,
1338,
5541,
288,
203,
3639,
272,
5349,
3896,
273,
389,
1937,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.8.11;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {Unauthorized, IllegalState, IllegalArgument} from "./base/Errors.sol";
import "./base/Multicall.sol";
import "./base/Mutex.sol";
import "./interfaces/IAlchemistV2.sol";
import "./interfaces/IERC20Minimal.sol... | @dev Unwraps `amount` of `yieldToken` into its underlying token. @param yieldToken The address of the yield token to unwrap. @param amount The amount of the underlying token to wrap. @param minimumAmountOut The minimum amount of underlying tokens that are expected to be received from the ... | function _unwrap(
address yieldToken,
uint256 amount,
address recipient,
uint256 minimumAmountOut
) internal returns (uint256) {
ITokenAdapter adapter = ITokenAdapter(_yieldTokens[yieldToken].adapter);
uint256 amountUnwrapped = adapter.unwrap(amount, recipient);
... | 504,829 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1351,
91,
7506,
1375,
8949,
68,
434,
1375,
23604,
1345,
68,
1368,
2097,
6808,
1147,
18,
632,
891,
2824,
1345,
4202,
1021,
1758,
434,
326,
2824,
1147,
358,
11014,
18,
632,
891,
3844,
6647,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
318,
4113,
12,
203,
3639,
1758,
2824,
1345,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
5224,
6275,
1182,
203,
565,
262,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
... |
//Address: 0xc7c11eb6983787f7aa0c20abeeac8101cf621e47
//Contract name: BaktFactory
//Balance: 0 Ether
//Verification Date: 5/16/2017
//Transacion Count: 3
// CODE STARTS HERE
/******************************************************************************\
file: RegBase.sol
ver: 0.2.1
updated:9-May-2017
author:... | To close a holder account Ensure holder account is empty, is not the trustee and there are no pending transactions or dividends NB can't garbage collect holder.allowances mapping | function vacate(address _addr)
public
canEnter
isHolder(msg.sender)
isHolder(_addr)
returns (bool)
{
Holder holder = holders[_addr];
require(_addr != trustee);
require(holder.tokenBalance == 0);
require(holder.etherBalance == 0);
re... | 12,918,771 | [
1,
4625,
348,
7953,
560,
30,
225,
2974,
1746,
279,
10438,
2236,
7693,
10438,
2236,
353,
1008,
16,
353,
486,
326,
10267,
1340,
471,
1915,
854,
1158,
4634,
8938,
578,
3739,
350,
5839,
20096,
848,
1404,
15340,
3274,
10438,
18,
5965,
6872... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30602,
340,
12,
2867,
389,
4793,
13,
203,
3639,
1071,
203,
3639,
848,
10237,
203,
3639,
353,
6064,
12,
3576,
18,
15330,
13,
203,
3639,
353,
6064,
24899,
4793,
13,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
36... |
pragma solidity 0.5.11;
library PaymentInFlightExitRouterArgs {
/**
* @notice Wraps arguments for startInFlightExit.
* @param inFlightTx RLP encoded in-flight transaction.
* @param inputTxs Transactions that created the inputs to the in-flight transaction. In the same order as in-flight transaction inp... | @notice Wraps arguments for challenging in-flight transaction output exit. @param inFlightTx RLP encoded in-flight transaction. @param inFlightTxInclusionProof Proof that in-flight transaction is included in Plasma. @param outputUtxoPos Utxo position of challenged output. @param challengingTx RLP encoded challenging t... | struct ChallengeOutputSpent {
bytes inFlightTx;
bytes inFlightTxInclusionProof;
uint256 outputUtxoPos;
bytes challengingTx;
uint16 challengingTxInputIndex;
bytes challengingTxWitness;
bytes spendingConditionOptionalArgs;
}
| 5,498,295 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
678,
7506,
1775,
364,
462,
7862,
1998,
316,
17,
19131,
2492,
876,
2427,
18,
632,
891,
316,
24243,
4188,
534,
14461,
3749,
316,
17,
19131,
2492,
18,
632,
891,
316,
24243,
4188,
382,
15335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
1680,
8525,
1447,
3389,
319,
288,
203,
3639,
1731,
316,
24243,
4188,
31,
203,
3639,
1731,
316,
24243,
4188,
382,
15335,
20439,
31,
203,
3639,
2254,
5034,
876,
57,
978,
83,
1616,
31,
203,
3639,
1731,
462,
7862,
1998,
41... |
pragma solidity ^0.4.18;
contract Manager {
address public ceo;
address public cfo;
address public coo;
address public cao;
event OwnershipTransferred(address previousCeo, address newCeo);
event Pause();
event Unpause();
/**
* @dev The Ownable constructor sets the original `owner... | Buy assets in market Check whether the saleId is a valid sale order Check the sender isn't the seller Check whether pay value is enough check whether this account will have too many assets Transfer assets to buyer Cut and then send the proceeds to seller Emit the buy event If the sale has complete, clear this order Em... | function buyInMarket(uint256 saleId, uint256 amount) external payable whenNotPaused {
address seller = saleOrderList[saleId].seller;
require(seller != address(0));
require(msg.sender != seller);
require(saleOrderList[saleId].amount >= uint64(amount));
require(msg.value / s... | 121,615 | [
1,
4625,
348,
7953,
560,
30,
225,
605,
9835,
7176,
316,
13667,
2073,
2856,
326,
272,
5349,
548,
353,
279,
923,
272,
5349,
1353,
2073,
326,
5793,
5177,
1404,
326,
29804,
2073,
2856,
8843,
460,
353,
7304,
866,
2856,
333,
2236,
903,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
30143,
382,
3882,
278,
12,
11890,
5034,
272,
5349,
548,
16,
2254,
5034,
3844,
13,
3903,
8843,
429,
1347,
1248,
28590,
288,
203,
3639,
1758,
29804,
273,
272,
5349,
2448,
682,
63,
87,
5349,
548,
8009,
1786,
749,
31,
203,
... |
./full_match/1/0x10d88Ae63188987799772813778e3B697a5AE64A/sources/contracts/MCFToken.sol | * @dev Returns the token name./ | function name() external view returns (string memory) {
return _name;
}
| 8,492,104 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1147,
508,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
508,
1435,
3903,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
389,
529,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-3.0
/*
%%%%%%% &%%%%%, %% %%% %%% %%%%%% %%%%%% %%%%%%%%%%%%%%%%%%%
%%# &% %%. (%%% %%%% #%%% %% %% %% %%%
%%# &% &% %&.%. %%%%% % %% %% %% %% ... | FROM here must be msg.sender to prevent ability to take ownership of others' tokens check if contract suppoers EIP1155 default to 721 | function transferAsset(address from, address to, address tokenAddress, uint256 tokenId) internal {
if((IERC165(tokenAddress)).supportsInterface(_INTERFACE_ID_ERC1155)) {
transfer1155(from, to, tokenAddress, tokenId);
transfer721(from, to, tokenAddress, tokenId);
}
}
| 228,367 | [
1,
4625,
348,
7953,
560,
30,
225,
4571,
2674,
1297,
506,
1234,
18,
15330,
358,
5309,
7123,
358,
4862,
23178,
434,
10654,
11,
2430,
866,
309,
6835,
1169,
1631,
414,
512,
2579,
2499,
2539,
805,
358,
2371,
5340,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
6672,
12,
2867,
628,
16,
1758,
358,
16,
1758,
1147,
1887,
16,
2254,
5034,
1147,
548,
13,
2713,
288,
203,
3639,
309,
12443,
45,
654,
39,
28275,
12,
2316,
1887,
13,
2934,
28064,
1358,
24899,
18865,
67,
734,
67,
65... |
./full_match/137/0xBD522494485B2eb5efccA5dcDd031C91C780Fa40/sources/contracts/EarlyAdopters.sol | * @notice Adds multiple addresses to the priorityList @param _addresses: dynamic array of addresses to add to the priorityList/ | function addMultiplePriorityList(address[] calldata _addresses) external onlyOwner {
require(_addresses.length <= 100, "Please don't add more than 100 addresses at once");
for (uint256 i = 0; i < _addresses.length; i++) {
priorityList[_addresses[i]] = true;
}
}
| 4,759,809 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
15605,
3229,
6138,
358,
326,
4394,
682,
225,
632,
891,
389,
13277,
30,
5976,
526,
434,
6138,
358,
527,
358,
326,
4394,
682,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
8438,
8183,
682,
12,
2867,
8526,
745,
892,
389,
13277,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
13277,
18,
2469,
1648,
2130,
16,
315,
8496,
2727,
1404,
527,
1898,
2353,
2130,
6138,
622,
3647,
8863,
203,
3... |
./partial_match/3/0x3Cd9ceb078399B3068564fc71B894EF3be4C0443/sources/SmartChain.sol | deposit to current cycle.
| users[_addr].deposit_amount[users[_addr].cycle] = _amount; | 5,153,773 | [
1,
4625,
348,
7953,
560,
30,
225,
443,
1724,
358,
783,
8589,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3677,
63,
67,
4793,
8009,
323,
1724,
67,
8949,
63,
5577,
63,
67,
4793,
8009,
13946,
65,
273,
389,
8949,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/44787/0x9099d61a4D84D3C708f0903fb7839E1F1a1d9Ad2/sources/contracts/governor/PACTDelegate.sol | * @notice Owner function for setting the voting period @param _newVotingPeriod new voting period, in blocks/ require( _newVotingPeriod >= MIN_VOTING_PERIOD && _newVotingPeriod <= MAX_VOTING_PERIOD, "PACT::_setVotingPeriod: invalid voting period" ); | function _setVotingPeriod(uint256 _newVotingPeriod) external virtual onlyOwner {
uint256 _oldVotingPeriod = votingPeriod;
votingPeriod = _newVotingPeriod;
emit VotingPeriodSet(_oldVotingPeriod, _newVotingPeriod);
}
| 13,252,732 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
16837,
445,
364,
3637,
326,
331,
17128,
3879,
632,
891,
389,
2704,
58,
17128,
5027,
394,
331,
17128,
3879,
16,
316,
4398,
19,
2583,
12,
377,
389,
2704,
58,
17128,
5027,
1545,
6989,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
542,
58,
17128,
5027,
12,
11890,
5034,
389,
2704,
58,
17128,
5027,
13,
3903,
5024,
1338,
5541,
288,
203,
3639,
2254,
5034,
389,
1673,
58,
17128,
5027,
273,
331,
17128,
5027,
31,
203,
3639,
331,
17128,
5027,
273,
38... |
pragma solidity ^0.5;
import './base/openzeppelin/math/SafeMath.sol';
import './IMarket.sol';
import './Uninitialized.sol';
import './Restricted.sol';
import './Nonpayable.sol';
import './UpcityBase.sol';
/// @title Game contract for upcity.app
contract UpcityGame is
UpcityBase,
Uninitialized,
Nonpayable,
Res... | Add the average of the neighbor prices. | price = price.add(neighborPrices / NUM_NEIGHBORS);
| 6,411,166 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
326,
8164,
434,
326,
10553,
19827,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
202,
202,
8694,
273,
6205,
18,
1289,
12,
18168,
31862,
342,
9443,
67,
5407,
16055,
38,
14006,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.11;
import './Owned.sol';
import './TokenHolder.sol';
import './interfaces/ISmartToken.sol';
import './interfaces/IEtherToken.sol';
import './interfaces/ITokenChanger.sol';
/*
Bancor Changer interface
*/
contract IBancorChanger is ITokenChanger {
function token() public constant returns (I... | need user to approve the wallet spend bancor token
| assert(bancorToken.transferFrom(msg.sender, this, _bntAmount)); | 7,213,274 | [
1,
4625,
348,
7953,
560,
30,
225,
1608,
729,
358,
6617,
537,
326,
9230,
17571,
25732,
3850,
1147,
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,
... | [
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,
3639,
1815,
12,
21515,
3850,
1345,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
333,
16,
389,
70,
496,
6275,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xCA06a15fd0c1CCE807f4793ddEf1936e3390a4d2/sources/IERC721.sol | * @dev Required interface of an ERC721 compliant contract./ | interface IERC721 is IERC165 {
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
event Approval(
address indexed owner,
address indexed approved,
uint256 indexed tokenId
);
event ApprovalForAll(
address inde... | 4,365,672 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10647,
1560,
434,
392,
4232,
39,
27,
5340,
24820,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
353,
467,
654,
39,
28275,
288,
203,
565,
871,
12279,
12,
203,
3639,
1758,
8808,
628,
16,
203,
3639,
1758,
8808,
358,
16,
203,
3639,
2254,
5034,
8808,
1147,
548,
203,
565,
11272,
203,
203,
565,
871,... |
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.5.2;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uin... | * @title Snapshot Token @dev This is an ERC20 compatible token that takes snapshots of account balances. @author Validity Labs AG <info@validitylabs.org>/ | pragma solidity 0.5.7;
| 14,021,225 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
10030,
3155,
632,
5206,
1220,
353,
392,
4232,
39,
3462,
7318,
1147,
716,
5530,
12808,
434,
2236,
324,
26488,
18,
632,
4161,
2364,
560,
511,
5113,
432,
43,
411,
1376,
36,
877,
560,
80,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
683,
9454,
18035,
560,
374,
18,
25,
18,
27,
31,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
import "./CErc20.sol";
import "./CToken.sol";
import "./PriceOracle.sol";
import "./Exponential.sol";
import "./EIP20Interface.sol";
interface V1PriceOracleInterface {
function assetPrices(address asset) external view returns (uint);
}
interface Aggregat... | * @notice Normalize the price according to the underlying decimals. @param price The original price @param cTokenAddress The cToken address @return The normalized price./ | function getNormalizedPrice(uint price, address cTokenAddress) internal view returns (uint) {
uint underlyingDecimals = EIP20Interface(CErc20(cTokenAddress).underlying()).decimals();
return mul_(price, 10**(18 - underlyingDecimals));
}
| 5,415,145 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14282,
326,
6205,
4888,
358,
326,
6808,
15105,
18,
632,
891,
6205,
1021,
2282,
6205,
632,
891,
276,
1345,
1887,
1021,
276,
1345,
1758,
632,
2463,
1021,
5640,
6205,
18,
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,
565,
445,
336,
15577,
5147,
12,
11890,
6205,
16,
1758,
276,
1345,
1887,
13,
2713,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
6808,
31809,
273,
512,
2579,
3462,
1358,
12,
1441,
1310,
3462,
12,
71,
1345,
1887,
2934,
9341,
62... |
./full_match/43113/0x7Af9b65bA5f239612D5879b12221a97649A3caC4/sources/contracts/Triava.sol | @dev minimum creator staking amount | uint256 public minCreatorStaking = 10**17;
| 7,209,096 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5224,
11784,
384,
6159,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1131,
10636,
510,
6159,
273,
1728,
636,
4033,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
import './Context.sol';
import './Strings.sol';
import './ERC165.sol';
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControlUpgradeable {
function hasRole(bytes32 role, address account) external view ... | Assign GUARDIAN_ROLE. Assign OWNER_ROLE and DELEGATION_ADMIN_ROLE to the sender. Set admins for all roles. (Don't use the default admin role.) | {
_setupRole(GUARDIAN_ROLE, guardian);
_setupRole(OWNER_ROLE, msg.sender);
_setupRole(DELEGATION_ADMIN_ROLE, msg.sender);
_setRoleAdmin(GUARDIAN_ROLE, GUARDIAN_ROLE);
_setRoleAdmin(VETO_GUARDIAN_ROLE, GUARDIAN_ROLE);
_setRoleAdmin(OWNER_ROLE, OWNER_ROLE);
_setRoleAdmin(DELEGATION_ADMIN_R... | 221,931 | [
1,
4625,
348,
7953,
560,
30,
225,
12093,
611,
57,
985,
2565,
1258,
67,
16256,
18,
12093,
531,
22527,
67,
16256,
471,
2030,
19384,
2689,
67,
15468,
67,
16256,
358,
326,
5793,
18,
1000,
31116,
364,
777,
4900,
18,
261,
22293,
1404,
999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
288,
203,
565,
389,
8401,
2996,
12,
30673,
985,
2565,
1258,
67,
16256,
16,
11026,
2779,
1769,
203,
203,
565,
389,
8401,
2996,
12,
29602,
67,
16256,
16,
1234,
18,
15330,
1769,
203,
565,
389,
8401,
2996,
12,
1639,
19384,
2689,... |
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "./FriendrCoin.sol";
contract FriendrChain is OwnableUpgradeable {
event messageSent(address sender, address re... | Helper method to determine correct ordering of address1:address2 vs address2:address1 for storing messages Try other pair ordering If message count is still 0, then we have an issue | function fetchMessageKeyPair(address _address1, address _address2)
private
view
returns (bytes memory)
{
bytes memory matchKeyPair = buildAddressKeyPair(_address1, _address2);
uint256 messageCount = _messages_count[matchKeyPair];
if (messageCount == 0) {
... | 1,035,615 | [
1,
4625,
348,
7953,
560,
30,
225,
9705,
707,
358,
4199,
3434,
9543,
434,
1758,
21,
30,
2867,
22,
6195,
1758,
22,
30,
2867,
21,
364,
15729,
2743,
6161,
1308,
3082,
9543,
971,
883,
1056,
353,
4859,
374,
16,
1508,
732,
1240,
392,
567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2158,
1079,
15099,
12,
2867,
389,
2867,
21,
16,
1758,
389,
2867,
22,
13,
203,
3639,
3238,
203,
3639,
1476,
203,
3639,
1135,
261,
3890,
3778,
13,
203,
565,
288,
203,
3639,
1731,
3778,
845,
15099,
273,
1361,
1887,
15099,
... |
./full_match/4/0x2d7E6341cD27340D01b7A642E7729E178672D263/sources/contracts/niftygemsv4.sol | * @dev To mine NiftyGems (NiftyGem). Requirements: - Mined NiftyGems must be less than MAX_NGMS. - Minimum number of NiftyGems must be greater than 0 & less than 20. - Maximum 20 NiftyGems can be minted within 24 hours./solhint-disable-next-line reason-string THIS ADDRESES THE SCENARIO OF SAY, MAX_NGMS = 20, minedNifty... | function mineNiftyGems(uint256 numNiftyGems) external payable {
uint256 minedNiftyGems = totalSupply();
require(minedNiftyGems < MAX_NGMS, "Sale has already ended");
require(
numNiftyGems > 0 && numNiftyGems <= 20,
"You can mine minimum 1, maximum 20 NiftyGems"
... | 12,502,401 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2974,
312,
558,
423,
2136,
93,
43,
7424,
261,
50,
2136,
93,
43,
351,
2934,
29076,
30,
300,
490,
1920,
423,
2136,
93,
43,
7424,
1297,
506,
5242,
2353,
4552,
67,
4960,
3537,
18,
300,
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,
565,
445,
312,
558,
50,
2136,
93,
43,
7424,
12,
11890,
5034,
818,
50,
2136,
93,
43,
7424,
13,
3903,
8843,
429,
288,
203,
3639,
2254,
5034,
1131,
329,
50,
2136,
93,
43,
7424,
273,
2078,
3088,
1283,
5621,
203,
3639,
2583,
12,
1... |
./full_match/5/0x94240A3b62554c8dFDC88eD629A6315F6FF1E110/sources/contracts/StudypeyWeb3.sol | Number of total upvotes for this question
| uint256 upvotes; | 1,933,830 | [
1,
4625,
348,
7953,
560,
30,
225,
3588,
434,
2078,
731,
27800,
364,
333,
5073,
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,
2254,
5034,
731,
27800,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/137/0xC651267cC027C64d0B796f9Ee05C330c1B9FCE86/sources/DovePolyMasterChef.sol | Store info of each pool in mapping | uint256 poolInfoLength;
| 4,680,178 | [
1,
4625,
348,
7953,
560,
30,
225,
4994,
1123,
434,
1517,
2845,
316,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
2845,
966,
1782,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0x661b51A840e7f000777D3587f502200F65e9ab9e/sources/@solidstate/contracts/proxy/diamond/fallback/DiamondFallback.sol | * @notice set the address of the fallback implementation @param fallbackAddress address of fallback implementation/ | function _setFallbackAddress(address fallbackAddress) internal virtual {
DiamondBaseStorage.layout().fallbackAddress = fallbackAddress;
}
| 3,823,741 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
444,
326,
1758,
434,
326,
5922,
4471,
632,
891,
5922,
1887,
1758,
434,
5922,
4471,
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,
565,
445,
389,
542,
12355,
1887,
12,
2867,
5922,
1887,
13,
2713,
5024,
288,
203,
3639,
12508,
301,
1434,
2171,
3245,
18,
6741,
7675,
16471,
1887,
273,
5922,
1887,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/4/0xE4F78603d6cC760Bf354a1ac8f8864484Dd52fA3/sources/SpoonLGE.sol | Possible ways this could break addressed 1) Accessing before event is over and resetting fork contributed -- added require 2) No uniswap pair - impossible at this moment because of the LPGenerationCompleted bool 3) LP per unit is 0 - impossible checked at generation function | function claimLPTokensForFORK() public {
require(LPGenerationCompletedForFORK, "Event not over yet");
require(forkContributed[msg.sender] > 0 , "Nothing to claim, move along");
IUniswapV2Pair forkPair = IUniswapV2Pair(tokenUniswapPairForFORK);
uint256 amountLPToTransfer = forkContrib... | 8,707,362 | [
1,
4625,
348,
7953,
560,
30,
225,
25433,
16226,
333,
3377,
898,
527,
4638,
404,
13,
5016,
310,
1865,
871,
353,
1879,
471,
30691,
12515,
356,
11050,
1493,
3096,
2583,
576,
13,
2631,
640,
291,
91,
438,
3082,
300,
23343,
622,
333,
1038... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7516,
48,
1856,
3573,
1290,
7473,
47,
1435,
1071,
288,
203,
3639,
2583,
12,
14461,
13842,
9556,
1290,
7473,
47,
16,
315,
1133,
486,
1879,
4671,
8863,
203,
3639,
2583,
12,
23335,
442,
11050,
63,
3576,
18,
15330,
65,
405,... |
./full_match/3/0x96A78a17dFc547c72EEe5B14271F12296fbF7D7C/sources/CoolMeteorsNFT.sol | ROLE ⋯ Allows freeMinted user to claim a mint for free | function claimMint() public {
require(!paused,"Sorry contract is paused");
require(totalMints + 1 <= maxSupply, "Sorry, max supply has been reached");
require(freeMint[msg.sender],"Sorry you are not on the list");
require(!claimedMint[msg.sender], "You already claimed");
claimedMint[msg.sender] ... | 8,224,745 | [
1,
4625,
348,
7953,
560,
30,
22005,
225,
163,
238,
112,
25619,
4843,
49,
474,
329,
729,
358,
7516,
279,
312,
474,
364,
4843,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
7516,
49,
474,
1435,
1071,
288,
203,
565,
2583,
12,
5,
8774,
3668,
10837,
28898,
6835,
353,
17781,
8863,
203,
565,
2583,
12,
4963,
49,
28142,
397,
404,
1648,
943,
3088,
1283,
16,
315,
28898,
16,
943,
14467,
711,
2118,
... |
pragma solidity ^0.4.24;
// File: contracts\CloneFactory.sol
/**
* @title CloneFactory
* @dev This contracts helps clone an oracle.
* The address of the targeted contract to clone has to be provided.
*/
contract CloneFactory {
/**
* @dev Creates oracle clone
* @param target is the address being cloned
... | * @dev Getter function that gets the index of the specified deployed oracle @param _oracle is the oracle address to look up @return the oracle index/ | function getOracleIndex(address _oracle) public view returns(uint){
return oracle_index[_oracle];
}
| 938,640 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
387,
445,
716,
5571,
326,
770,
434,
326,
1269,
19357,
20865,
632,
891,
389,
280,
16066,
353,
326,
20865,
1758,
358,
2324,
731,
632,
2463,
326,
20865,
770,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17971,
16873,
1016,
12,
2867,
389,
280,
16066,
13,
1071,
1476,
1135,
12,
11890,
15329,
203,
3639,
327,
20865,
67,
1615,
63,
67,
280,
16066,
15533,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0x433C3a8B65a2B5553c02c950B4cC76E870A7f144/sources/project_/contracts/Airdrop.sol | * @dev airdrop @param recipients address[] recipients/ | function airdrop(address[] memory recipients) public returns (bool) {
if (msg.sender != IKNexus(token).owner()) revert Unauthorized();
for (uint256 i = 0; i < recipients.length; i++) {
if (claimed[recipients[i]]) revert AddressClaimed();
IKNexus(token).safeMint(recipients[i... | 9,520,909 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
279,
6909,
1764,
632,
891,
12045,
1758,
8526,
12045,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
6909,
1764,
12,
2867,
8526,
3778,
12045,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
467,
47,
50,
21029,
12,
2316,
2934,
8443,
10756,
15226,
15799,
5621,
203,
203,
3639,
364,
261,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol";
import "@openzeppelin/contracts/token/ERC777/IERC777Sender.sol";
import "@openzeppelin/contracts/token/ERC777/ERC777.sol";
import "@openzeppel... | if 0 then use nativeTokenSwap
| address _fundingToken; | 15,823,351 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
374,
1508,
999,
6448,
1345,
12521,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
389,
74,
14351,
1345,
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,
... |
./partial_match/1/0xbc6a1af02c09fc1514B95eC98756ccAa95e8Af2e/sources/GEtherBridge.sol | * @notice Performs the burning of gToken shares upon the withdrawal of the reserve token. The actual amount of the reserve token to be received can be calculated using the calcWithdrawalCostFromShares function. In every withdrawal, 1% of the shares is retained in terms of withdrawal fee.... | function withdraw(uint256 _grossShares) public override nonReentrant
{
address _from = msg.sender;
require(_grossShares > 0, "shares must be greater than 0");
(uint256 _cost, uint256 _feeShares) = GFormulae._calcWithdrawalCostFromShares(_grossShares, totalReserve(), totalSupply(), withdrawalFee());
require(_c... | 2,650,911 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
27391,
326,
18305,
310,
434,
314,
1345,
24123,
12318,
326,
598,
9446,
287,
434,
540,
326,
20501,
1147,
18,
1021,
3214,
3844,
434,
326,
20501,
1147,
358,
540,
506,
5079,
848,
506,
8894,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
598,
9446,
12,
11890,
5034,
389,
75,
3984,
24051,
13,
1071,
3849,
1661,
426,
8230,
970,
203,
202,
95,
203,
202,
202,
2867,
389,
2080,
273,
1234,
18,
15330,
31,
203,
202,
202,
6528,
24899,
75,
3984,
24051,
405,
374,
16... |
/**
* SPDX-License-Identifier: UNLICENSED
*/
pragma solidity =0.6.10;
pragma experimental ABIEncoderV2;
// File: contracts/packages/oz/SafeMath.sol
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily res... | * @dev increase the short oToken balance in a vault when a new oToken is minted @param _vault vault to add or increase the short position in @param _shortOtoken address of the _shortOtoken being minted from the user's vault @param _amount number of _shortOtoken being minted from the user's vault @param _index index of ... | function addShort(
Vault storage _vault,
address _shortOtoken,
uint256 _amount,
uint256 _index
) external {
require(_amount > 0, "V1");
if ((_index == _vault.shortOtokens.length) && (_index == _vault.shortAmounts.length)) {
_vault.shortOtokens.push(_s... | 1,551,671 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10929,
326,
3025,
320,
1345,
11013,
316,
279,
9229,
1347,
279,
394,
320,
1345,
353,
312,
474,
329,
632,
891,
389,
26983,
9229,
358,
527,
578,
10929,
326,
3025,
1754,
316,
632,
891,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4897,
12,
203,
3639,
17329,
2502,
389,
26983,
16,
203,
3639,
1758,
389,
6620,
51,
2316,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
1615,
203,
565,
262,
3903,
288,
203,
3639,
2583,
24899,
... |
./full_match/44787/0xbe9Ca967D2fd863DEb887FD57fFF39b312B1FB36/sources/contracts/Fundraise.sol | add donation to campaign add contributor to donation list update number of contributors | function fundCampaign(uint campaignId) public payable onlyWhenNotPaused {
require(msg.value >= minFund);
require(!isEnded(campaignId), "Fundraising finished");
require(
IERC20(cUsdTokenAddress).transferFrom(
msg.sender,
address(this),
... | 13,272,574 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
2727,
367,
358,
8965,
527,
31123,
358,
2727,
367,
666,
1089,
1300,
434,
13608,
13595,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
284,
1074,
13432,
12,
11890,
8965,
548,
13,
1071,
8843,
429,
1338,
9434,
1248,
28590,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
1131,
42,
1074,
1769,
203,
3639,
2583,
12,
5,
291,
28362,
12,
14608,
548,
3631,
315,
... |
./partial_match/1/0x724BCC333098948675F1DFDf2d9D8B2EA837864D/sources/LiquidityIronBender.sol | If this were not internal, and source_address had an infinite approve, this could be exploitable (pull funds from source_address and stake for an arbitrary staker_address) Pull the tokens from the source_addressTODO: do we even need this if we're dealing with Sushi LP not saddle? Update liquidities Need to call to upd... | function _stakeLocked(
address staker_address,
address source_address,
uint256 liquidity,
uint256 secs,
uint256 start_timestamp
) internal updateRewardAndBalance(staker_address, true) {
require(!stakingPaused, "Staking paused");
require(liquidity > 0, "Mus... | 4,266,768 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
333,
4591,
486,
2713,
16,
471,
1084,
67,
2867,
9323,
392,
14853,
6617,
537,
16,
333,
3377,
506,
15233,
9085,
261,
13469,
284,
19156,
628,
1084,
67,
2867,
471,
384,
911,
364,
392,
11078,
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,
389,
334,
911,
8966,
12,
203,
3639,
1758,
384,
6388,
67,
2867,
16,
203,
3639,
1758,
1084,
67,
2867,
16,
203,
3639,
2254,
5034,
4501,
372,
24237,
16,
203,
3639,
2254,
5034,
18043,
16,
203,
3639,
2254,
5034,
787,
67,
55... |
./full_match/1/0xd1Ad8a5D9Be8267D833f23c7D2349b6A2B30b0AD/sources/contracts/Boneyard.sol | Sort the positions in ascending order, in order to calculate the XP gains | uint256[] memory indexes = new uint256[](racers.length);
| 8,352,511 | [
1,
4625,
348,
7953,
560,
30,
225,
5928,
326,
6865,
316,
13976,
1353,
16,
316,
1353,
358,
4604,
326,
1139,
52,
314,
4167,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
8526,
3778,
5596,
273,
394,
2254,
5034,
8526,
12,
8836,
414,
18,
2469,
1769,
203,
2,
-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
// COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/GovernorAlpha.sol
// Copyright 2020 Compound Labs, Inc.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following con... | XXX: import "./SafeMath.sol"; | import "@openzeppelin/contracts/math/SafeMath.sol";
| 145,016 | [
1,
4625,
348,
7953,
560,
30,
225,
11329,
30,
1930,
25165,
9890,
10477,
18,
18281,
14432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5666,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
15949,
19,
9890,
10477,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |