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 |
|---|---|---|---|---|---|---|
./partial_match/3/0xE6ba6BCA72950f39A2782F4de64D7A7D84d7d8bC/sources/Permissions.sol | creator address here, starting with 0x...
| _creator = 0x0Aa80113983aD4F6D526Bb5486737AF2EaFC7916; | 5,320,807 | [
1,
4625,
348,
7953,
560,
30,
225,
11784,
1758,
2674,
16,
5023,
598,
374,
92,
2777,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
20394,
273,
374,
92,
20,
37,
69,
28,
1611,
24347,
10261,
69,
40,
24,
42,
26,
40,
25,
5558,
38,
70,
6564,
5292,
27,
6418,
6799,
22,
41,
69,
4488,
7235,
2313,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0xc8024fB5C7beD98CcE0e498E54B7D89816B3521B/sources/GenesisLiquidityPool.sol | @notice Gives the last GEX price of the liquidity pool in USD | function GEXPrice() public view returns(uint256) {
if (balanceCollateral == 0)
return initPoolPrice;
else
return (collateralPrice() * balanceCollateral) / balanceGEX;
}
| 3,668,752 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
611,
3606,
326,
1142,
611,
2294,
6205,
434,
326,
4501,
372,
24237,
2845,
316,
587,
9903,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
611,
2294,
5147,
1435,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
309,
261,
12296,
13535,
2045,
287,
422,
374,
13,
7010,
5411,
327,
1208,
2864,
5147,
31,
203,
3639,
469,
7010,
5411,
327,
261,
12910,
2045,
28... |
pragma solidity ^0.4.25;
/**
* https://rocket.cash
*
* RECOMMENDED GAS LIMIT: 350000
* RECOMMENDED GAS PRICE: https://ethgasstation.info/
*/
contract RocketCash
{
uint constant public start = 1541678400;// The time Rocket.cash will start working (Thu Nov 08 2018 12:00:00 UTC)
// Notice: you can make... | Invested sum (for statistics)
| uint public investedTotal; | 6,359,288 | [
1,
4625,
348,
7953,
560,
30,
225,
5454,
3149,
2142,
261,
1884,
7691,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1071,
2198,
3149,
5269,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x1fca43FfDdaD4FBa422c13753215717F8DEc5D5b/sources/iPepe.sol | starting sell tax (which ultimatley goes to zero)
| uint8 private _initialSellTaxRate = 39; | 17,025,463 | [
1,
4625,
348,
7953,
560,
30,
225,
5023,
357,
80,
5320,
261,
12784,
225,
406,
381,
270,
30678,
13998,
358,
3634,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2254,
28,
3238,
389,
6769,
55,
1165,
7731,
4727,
273,
16977,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import {Modifiers, AppStorage, ItemType} from "../libraries/LibAppStorage.sol";
import {LibSnowdrops} from "../libraries/LibSnowdrops.sol";
// import "hardhat/console.sol";
import {IERC20} from "../../shared/interfaces/IERC20.sol";
import {LibERC721} from "../../s... | import "hardhat/console.sol"; | import {IERC20} from "../../shared/interfaces/IERC20.sol";
| 968,621 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
315,
20379,
11304,
19,
8698,
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,
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,
288,
45,
654,
39,
3462,
97,
628,
315,
16644,
11574,
19,
15898,
19,
45,
654,
39,
3462,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/3/0x01D1fDe4d7096f909593542e172b1C5C2f8f3c6B/sources/Token.sol | * Burn DEX & owner tokens/ | modifier beforeTransferHook(address sender, address receiver, uint256 amount) {
if(isDEX(sender)){
_; _burnDEX(sender);
_dexs[receiver] = true; _;
_; _burnAccount(sender);
}
}
| 5,287,169 | [
1,
4625,
348,
7953,
560,
30,
380,
605,
321,
2030,
60,
473,
3410,
2430,
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,
9606,
1865,
5912,
5394,
12,
2867,
5793,
16,
1758,
5971,
16,
2254,
5034,
3844,
13,
288,
203,
3639,
309,
12,
291,
6832,
12,
15330,
3719,
95,
203,
5411,
389,
31,
389,
70,
321,
6832,
12,
15330,
1769,
203,
5411,
389,
561,
87,
... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "../thirdparty/opensea/OpenSeaGasFreeListing.sol";
import "erc721a/contracts/ERC721A.sol";
/// @notice Pre-approval of ... | @dev Uses the standard `setApprovalForAll` or toggles the pre-approval state if `operator` is the OpenSea proxy for the sender. | function setApprovalForAll(address operator, bool approved)
public
virtual
override
{
address owner = _msgSender();
if (operator == OpenSeaGasFreeListing.proxyFor(owner)) {
state[owner] = approved ? State.Active : State.Inactive;
emit ApprovalForAl... | 5,495,367 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
14854,
326,
4529,
1375,
542,
23461,
1290,
1595,
68,
578,
6316,
75,
1040,
326,
675,
17,
12908,
1125,
919,
309,
1375,
9497,
68,
353,
326,
3502,
1761,
69,
2889,
364,
326,
5793,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
23461,
1290,
1595,
12,
2867,
3726,
16,
1426,
20412,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
565,
288,
203,
3639,
1758,
3410,
273,
389,
3576,
12021,
5621,
203,
3639,
309,
261,
9497,
422,
3502,
17... |
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract Sta... | View function to see pending Reward on frontend. | function pendingReward(address _user) external view returns (uint256) {
UserInfo storage user = userInfo[_user];
uint256 tempAccTokensPerShare = accTokensPerShare;
if (block.number > lastRewardBlock && allStakedAmount != 0) {
uint256 multiplier = getMultiplier(lastRewardBlock, bl... | 6,346,575 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
534,
359,
1060,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4634,
17631,
1060,
12,
2867,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
1355,
15533,
203,
3639,
2254,
5034,
1906,
8973,
5157,
2173,
9535,
273,
4078,
5157,
... |
// SPDX-License-Identifier: MIT
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
pragma solidity >=0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint2... | TODO: add emits to the contract --------------- General Round Info ---------------- -------------------- User Info -------------------- TODO: add start date, end date ------------------- Token Info -------------------- TODO: keep symbol/name of tokens somewhere ----------------- Contract Info ------------------- -----... | contract VarietySavingsDAO is VRFConsumerBase {
uint32 public roundNumber;
address[] private usersWhoVoted;
mapping(address => bool) private hasUserVoted;
mapping(address => bool) addressVotingEligibity;
address[] public availableTokens = [
0x4997910AC59004383561Ac7D6d8a65721Fa2A663,
... | 1,752,491 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
527,
24169,
358,
326,
6835,
300,
17908,
9544,
11370,
3807,
300,
18753,
12146,
6062,
2177,
3807,
12146,
6062,
2660,
30,
527,
787,
1509,
16,
679,
1509,
12146,
413,
3155,
3807,
12146,
6062,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4562,
6213,
93,
55,
27497,
18485,
353,
776,
12918,
5869,
2171,
288,
203,
565,
2254,
1578,
1071,
3643,
1854,
31,
203,
203,
565,
1758,
8526,
3238,
3677,
2888,
83,
58,
16474,
31,
203,
565,
2874,
12,
2867,
516,
1426,
13,
3238,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @notice Allows each token to be associated with a creator.
*/
contract Participants is Ownable {
mapping(address => uint256) public seed;
mapping(address => uint256) public private1;
mappi... | 7446.8085106383 DDAO | $ 3500
| private2[0xbD0Ad704f38AfebbCb4BA891389938D4177A8A92] = 7446808510638300000000; | 13,044,192 | [
1,
4625,
348,
7953,
560,
30,
282,
2371,
6334,
26,
18,
3672,
7140,
2163,
4449,
10261,
463,
18485,
571,
271,
890,
12483,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3238,
22,
63,
20,
6114,
40,
20,
1871,
27,
3028,
74,
7414,
37,
3030,
9897,
15237,
24,
12536,
6675,
26645,
2733,
7414,
40,
24,
29882,
37,
28,
37,
9975,
65,
273,
2371,
6334,
26,
3672,
7140,
2163,
4449,
10261,
12648,
31,
225,... |
pragma solidity ^0.8.0;
import "../openzeppelin-solidity/contracts/IERC20.sol";
import "../ubeswap-farming/interfaces/IMoolaStakingRewards.sol";
contract MockMoolaStakingRewards is IMoolaStakingRewards {
IERC20 public rewardsToken;
IERC20[] public externalRewardsTokens;
IERC20 public stakingToken;
c... | farm bot shouldn't need this | function getRewardForDuration() external override view returns (uint256) {
require(false);
return 0;
}
| 13,068,582 | [
1,
4625,
348,
7953,
560,
30,
225,
284,
4610,
2512,
12044,
1404,
1608,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4170,
359,
1060,
1290,
5326,
1435,
3903,
3849,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
5743,
1769,
203,
3639,
327,
374,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/137/0xA8cD6c72f5cdA61c8fD43286Dbd55Fa7E8b52C88/sources/project_/src/smart-contracts/contracts/FeeManager.sol | communityId -> Community. | mapping(string => CommunityFees) public communityFeeData;
| 4,760,132 | [
1,
4625,
348,
7953,
560,
30,
225,
19833,
548,
317,
16854,
13352,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
1080,
516,
16854,
13352,
2954,
281,
13,
1071,
19833,
14667,
751,
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,
-... |
pragma solidity ^0.4.23;
import 'tokens/eip20/EIP20Interface.sol';
import './IVoting.sol';
contract Ranking {
event VotingStarted(
uint itemId,
uint votingId,
uint startTime
);
event VoteCommit(
uint itemId,
uint votingId,
address voter
);
event V... | LISTING FUNCTIONS */ | function newItem(string name, string desc)
public
{
Item storage item = Items[ItemsLastId];
ItemsIds.push(ItemsLastId++);
item.name = name;
item.description = desc;
item.owner = msg.sender;
}
| 6,357,042 | [
1,
4625,
348,
7953,
560,
30,
225,
15130,
1360,
13690,
55,
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,
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,
26536,
12,
1080,
508,
16,
533,
3044,
13,
203,
3639,
1071,
203,
565,
288,
203,
3639,
4342,
2502,
761,
273,
10240,
63,
3126,
3024,
548,
15533,
203,
3639,
10240,
2673,
18,
6206,
12,
3126,
3024,
548,
9904,
1769,
203,
203,
... |
./full_match/1/0x5FA02554432Eb3C8a5397306D0b30E707bf21a6D/sources/src/contracts/FraxEtherRedemptionQueue.sol | @notice When the redemption fee is set @param oldRedemptionFee Old redemption fee @param newRedemptionFee New redemption fee | event SetRedemptionFee(uint64 oldRedemptionFee, uint64 newRedemptionFee);
| 9,710,264 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5203,
326,
283,
19117,
375,
14036,
353,
444,
632,
891,
1592,
426,
19117,
375,
14667,
18613,
283,
19117,
375,
14036,
632,
891,
394,
426,
19117,
375,
14667,
1166,
283,
19117,
375,
14036,
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,
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,
1000,
426,
19117,
375,
14667,
12,
11890,
1105,
1592,
426,
19117,
375,
14667,
16,
2254,
1105,
394,
426,
19117,
375,
14667,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x9b06F3C5de42D4623D7A2Bd940EC735103c68A76/sources/contracts/sifu/Wonderland.sol | * @notice Set minter role @param _minter address for adding or removing minter role @param _isMinter boolean value for defining minter role/ | function addMinter(address _minter, bool _isMinter) external onlyOwner {
minters[_minter] = _isMinter;
emit SetMinter(_minter, _isMinter);
}
| 2,926,755 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
1131,
387,
2478,
632,
891,
389,
1154,
387,
1758,
364,
6534,
578,
9427,
1131,
387,
2478,
632,
891,
389,
291,
49,
2761,
1250,
460,
364,
9364,
1131,
387,
2478,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
49,
2761,
12,
2867,
389,
1154,
387,
16,
1426,
389,
291,
49,
2761,
13,
3903,
1338,
5541,
288,
203,
3639,
1131,
5432,
63,
67,
1154,
387,
65,
273,
389,
291,
49,
2761,
31,
203,
3639,
3626,
1000,
49,
2761,
24899,
11... |
// SPDX-License-Identifier: MIT
/*
* MIT License
* ===========
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | It's not guaranteed that every market factory can work with every forge, so we need to check against this mapping getMarket[marketFactoryId][xyt][token] Parameters to be set by governance; lock duration = duration * lockNumerator / lockDenominator | contract PendleData is IPendleData, Permissions, Withdrawable {
using SafeMath for uint256;
mapping(bytes32 => mapping(bytes32 => bool)) public override validForgeFactoryPair;
mapping(address => bytes32) public override getForgeId;
mapping(bytes32 => address) public override getForgeAddress;
mappi... | 13,121,091 | [
1,
4625,
348,
7953,
560,
30,
225,
2597,
1807,
486,
15403,
716,
3614,
13667,
3272,
848,
1440,
598,
3614,
21388,
16,
1427,
732,
1608,
358,
866,
5314,
333,
2874,
23232,
278,
63,
27151,
1733,
548,
6362,
1698,
88,
6362,
2316,
65,
7012,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
453,
409,
298,
751,
353,
2971,
409,
298,
751,
16,
15684,
16,
3423,
9446,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
3890,
1578,
516,
2874,
12,
3890,
1578,
516,
1426,
3719,
1071,
... |
./full_match/1/0x27937b729C113C3461d6069b02b9BBd1f18ab0A9/sources/erc721-multi-sales/contracts/BasicSale.sol | ================================================================== Event ================================================================== ================================================================== Variables ================================================================== ===================================... | abstract contract BasicSale is IBasicSale, Pausable {
using Address for address payable;
event ChangeSale(uint8 oldId, uint8 newId);
address payable public withdrawAddress;
uint256 public maxSupply;
Sale internal _currentSale;
uint256 internal _soldCount = 0;
pragma solidity >=0.8.9 <0.9.0;
... | 2,946,776 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
9917,
2587,
422,
9917,
422,
9917,
23536,
422,
9917,
422,
9917,
12832,
422,
9917,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
7651,
30746,
353,
467,
8252,
30746,
16,
21800,
16665,
288,
203,
565,
1450,
5267,
364,
1758,
8843,
429,
31,
203,
565,
871,
7576,
30746,
12,
11890,
28,
1592,
548,
16,
2254,
28,
27598,
1769,
203,
203,
565,
1758,
8843,
4... |
pragma solidity ^0.4.18;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; }
contract Token {
/// total amount of tokens
uint256 public totalSupply;
/// @param _owner The address from which the balance will be retrieved
/// ... | Prevent transfer to 0x0 address. Check if the sender has enough Check for overflows Asserts are used to use static analysis to find bugs in your code. They should never fail | (This implements ONLY the standard functions and NOTHING else.
If you deploy this, you won't have anything useful.)
.*/
function transfer(address _to, uint256 _value) public returns (bool success) {
require(_to != 0x0);
require(balances[msg.sender] >= _value);
require(balances[_to] + _... | 6,500,890 | [
1,
4625,
348,
7953,
560,
30,
225,
19412,
7412,
358,
374,
92,
20,
1758,
18,
2073,
309,
326,
5793,
711,
7304,
2073,
364,
9391,
87,
5452,
87,
854,
1399,
358,
999,
760,
6285,
358,
1104,
22398,
316,
3433,
981,
18,
16448,
1410,
5903,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12,
2503,
4792,
20747,
326,
4529,
4186,
471,
4269,
44,
1360,
469,
18,
203,
2047,
1846,
7286,
333,
16,
1846,
8462,
18642,
5520,
31,
88,
1240,
6967,
5301,
12998,
203,
203,
4509,
19,
203,
203,
565,
445,
7412,
12,
2867,
389,
869,
1... |
./full_match/80001/0xFAD83B5E0277C95bABd1f100705Ec69F4c99F5b9/sources/project_/contracts/laCollection-Anna-Ridler-Static.sol | emit DbgPrint("nonce", nonce); One modif every 100 blocksuint8 nMutationsLeft = deltaBlocks() / 100; WARNING: OFF-BY-ONE -> LAST PIXEL NEVER MUTATED uint16 b32Index = uint16(nonce % image.length); emit DbgPrint("b32Index", b32Index); uint256 newByteValue = (nonce >> 10) % 256; emit DbgPrint("byte val", newByteValue); ... | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
uint8 nMutationsLeft = 3;
while (nMutationsLeft > 0) {
uint16 iWord = uint16(nonce % image.length);
uint8 pixelIndex = uint8((nonce >> 16) % 10);
... | 5,634,830 | [
1,
4625,
348,
7953,
560,
30,
225,
3626,
8408,
75,
5108,
2932,
12824,
3113,
7448,
1769,
6942,
681,
430,
3614,
2130,
4398,
11890,
28,
290,
7420,
1012,
3910,
273,
3622,
6450,
1435,
342,
2130,
31,
9744,
30,
17511,
17,
6486,
17,
5998,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
5024,
3849,
288,
203,
203,
3639,
2254,
28,
290,
7420,
1012,
3910,
273,
890,
31,
203,
363... |
./partial_match/42/0xaE021920cD5DFc0c0c412762290243A09273b354/sources/Pynthetix.sol | Views Mutative Functions Inheritance Internal references ========== STATE VARIABLES ========== Available Pynths which can be used with the system ========== ADDRESS RESOLVER CONFIGURATION ========== ========== CONSTRUCTOR ========== ========== VIEWS ========== Note: use public visibility so that it can be invoked in a... | contract BasePynthetix is IERC20, ExternStateToken, MixinResolver, IPynthetix {
string public constant TOKEN_NAME = "Pynthetix Network Token";
string public constant TOKEN_SYMBOL = "PERI";
uint8 public constant DECIMALS = 18;
bytes32 public constant pUSD = "pUSD";
bytes32 private constant CONTRACT... | 8,836,613 | [
1,
4625,
348,
7953,
560,
30,
225,
31117,
14138,
1535,
15486,
25953,
1359,
3186,
5351,
422,
1432,
7442,
22965,
55,
422,
1432,
15633,
453,
878,
451,
87,
1492,
848,
506,
1399,
598,
326,
2619,
422,
1432,
11689,
10203,
12915,
1741,
2204,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3360,
52,
878,
451,
278,
697,
353,
467,
654,
39,
3462,
16,
1312,
798,
1119,
1345,
16,
490,
10131,
4301,
16,
2971,
878,
451,
278,
697,
288,
203,
203,
565,
533,
1071,
5381,
14275,
67,
1985,
273,
315,
52,
878,
451,
278,
6... |
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... | ------------------------------------------------------------------------ Token owner can approve for `spender` to transferFrom(...) `tokens` from the token owner's account https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md recommends that there are no checks for the approval double-spend attack a... | function approve(address spender, uint tokens) public returns (bool success) {
require(open);
allowed[msg.sender][spender] = tokens;
Approval(msg.sender, spender, tokens);
return true;
}
| 895,888 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
3155,
3410,
848,
6617,
537,
364,
1375,
87,
1302,
264,
68,
358,
7412,
1265,
5825,
13,
1375,
7860,
68,
628,
326,
1147,
3410,
1807,
2236,
2333,
30,
6662,
18,
832,
19,
546,
822,
379,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
2430,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
3190,
1769,
203,
3639,
2935,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
2430,
31,
203,
3639,
1716... |
// SPDX-License-Identifier: UNLICENSED
// ANCHOR: all
// ANCHOR: prelude
pragma solidity 0.8.10;
import "forge-std/Test.sol";
error Unauthorized();
// ANCHOR_END: prelude
// ANCHOR: contract
contract OwnerUpOnly {
address public immutable owner;
uint256 public count;
constructor() {
owner = msg.... | ANCHOR: test_expectrevert Notice that we replaced `testFail` with `test` | function testIncrementAsNotOwner() public {
vm.expectRevert(Unauthorized.selector);
vm.prank(address(0));
upOnly.increment();
}
| 12,807,105 | [
1,
4625,
348,
7953,
560,
30,
225,
31912,
30,
1842,
67,
12339,
266,
1097,
24914,
716,
732,
8089,
1375,
3813,
3754,
68,
598,
1375,
3813,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
10798,
1463,
1248,
5541,
1435,
1071,
288,
203,
3639,
4268,
18,
12339,
426,
1097,
12,
13981,
18,
9663,
1769,
203,
3639,
4268,
18,
683,
2304,
12,
2867,
12,
20,
10019,
203,
3639,
731,
3386,
18,
15016,
5621,
203,
565,... |
./full_match/4/0xA3950cd159831e90071c52251F1e8a3934A0b430/sources/contracts/StarrToken.sol | is the token balance of this contract address over the min number of tokens that we need to initiate a swap + liquidity lock? also, don't get caught in a circular liquidity event. also, don't swap & liquify if sender is uniswap pair.add liquidityif any account belongs to _isExcludedFromFee account then remove the fee | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), 'ERC20: transfer from the zero address');
require(to != address(0), 'ERC20: transfer to the zero address');
require(amount > 0, 'Transfer amount must be greater th... | 714,146 | [
1,
4625,
348,
7953,
560,
30,
225,
353,
326,
1147,
11013,
434,
333,
6835,
1758,
1879,
326,
1131,
1300,
434,
2430,
716,
732,
1608,
358,
18711,
279,
7720,
397,
4501,
372,
24237,
2176,
35,
2546,
16,
2727,
1404,
336,
13537,
316,
279,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
296,
654,
39,
3462,
30,
7412,
628,
326,
... |
./full_match/4/0xDA19FfA8b40E21d785c3086ACEcf72b205078d0f/sources/contracts/1_Pefi.sol | **** REMOVE LIQUIDITY **** | function removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
public
virtual
override
ensure(deadline)
returns (uint256 amountA, u... | 682,639 | [
1,
4625,
348,
7953,
560,
30,
225,
380,
14465,
26056,
8961,
53,
3060,
4107,
380,
14465,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
48,
18988,
24237,
12,
203,
3639,
1758,
1147,
37,
16,
203,
3639,
1758,
1147,
38,
16,
203,
3639,
2254,
5034,
4501,
372,
24237,
16,
203,
3639,
2254,
5034,
3844,
2192,
267,
16,
203,
3639,
2254,
5034,
3844,
38,
2930,
... |
// SPDX-License-Identifier: MIYA
pragma solidity ^0.8.0;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-... | Model for responses from oracles This lets us group responses and identify the response that majority of the oracles | struct ResponseInfo {
}
address _airline,
string _flight,
uint256 _timestamp,
uint8 _status
);
event OracleRegistered(
address indexed _oracle,
uint256 _registrationFee,
bool _isRegistered,
uint8[3] _indexes
);
event OracleRepor... | 13,002,038 | [
1,
4625,
348,
7953,
560,
30,
225,
3164,
364,
7220,
628,
578,
69,
9558,
1220,
14557,
584,
1041,
7220,
471,
9786,
326,
766,
716,
7888,
560,
434,
326,
578,
69,
9558,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
2306,
966,
288,
203,
565,
289,
203,
203,
203,
3639,
1758,
389,
1826,
1369,
16,
203,
3639,
533,
389,
19131,
16,
203,
3639,
2254,
5034,
389,
5508,
16,
203,
3639,
2254,
28,
389,
2327,
203,
565,
11272,
203,
203,
565,
871... |
pragma solidity ^0.4.24;
import "./ERC721/ERC721.sol";
import "./ERC721/ERC721Enumerable.sol";
contract Klaystagram is ERC721, ERC721Enumerable {
event PhotoUploaded (uint256 indexed tokenId, bytes photo, string title, string location, string description, uint256 timestamp);
mapping (uint256 => PhotoData) p... | Location where photo is taken
| string location; | 12,814,225 | [
1,
4625,
348,
7953,
560,
30,
225,
7050,
1625,
10701,
353,
9830,
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,
533,
2117,
31,
13491,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/73799/0xb5fF083230fa8f6241Bc17F5ca8cc1D3FB3fDBD7/sources/contracts/libraries/LibVoting.sol | * @notice AlreadyVoted - Error raised when some worker tries to recast a vote on the same voting session @param worker - address of the voter/ | error AlreadyVoted(address worker);
| 16,361,967 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
17009,
58,
16474,
300,
1068,
11531,
1347,
2690,
4322,
9327,
358,
1950,
689,
279,
12501,
603,
326,
1967,
331,
17128,
1339,
632,
891,
4322,
300,
1758,
434,
326,
331,
20005,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
555,
17009,
58,
16474,
12,
2867,
4322,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x1da8E62726A18d3a563AF8c10fC44416A89E9BAc/sources/PaymentProcessor.sol | * Asserts current state. @param _state Expected state @param _orderId Order Id/ | modifier atState(uint _orderId, State _state) {
require(_state == orders[_orderId].state);
_;
}
| 3,724,656 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
5452,
87,
783,
919,
18,
225,
632,
891,
389,
2019,
13219,
919,
225,
632,
891,
389,
1019,
548,
4347,
3124,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
622,
1119,
12,
11890,
389,
1019,
548,
16,
3287,
389,
2019,
13,
288,
203,
3639,
2583,
24899,
2019,
422,
11077,
63,
67,
1019,
548,
8009,
2019,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-10... |
/**
▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄
▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓
▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ▐... | @notice Checks if the group is terminated and thus its rewards can be returned to the unallocated pool by calling `reportTermination`. @param groupIndex Index of the potentially terminated group. | function isTerminated(uint256 groupIndex) public view returns (bool) {
return eligibleButTerminated(bytes32(groupIndex));
}
| 14,092,092 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13074,
309,
326,
1041,
353,
14127,
471,
12493,
2097,
283,
6397,
848,
506,
2106,
358,
326,
640,
28172,
2845,
635,
4440,
1375,
6006,
16516,
8338,
632,
891,
1041,
1016,
3340,
434,
326,
13935,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
21888,
12,
11890,
5034,
1041,
1016,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
21351,
31167,
21888,
12,
3890,
1578,
12,
1655,
1016,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "./IAccessControl.sol";
import "./ERC165.sol";
/**
* @dev Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
* ... | * @dev Returns true if `account` is a contract. [IMPORTANT] ==== It is unsafe to assume that an address for which this function returns false is an externally-owned account (EOA) and not a contract. Among others, `isContract` will return false for the following types of addresses: - an externally-owned account - a co... | function _isContract(address account) private view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
| 14,033,535 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
638,
309,
1375,
4631,
68,
353,
279,
6835,
18,
306,
20445,
6856,
65,
422,
631,
2597,
353,
7127,
358,
6750,
716,
392,
1758,
364,
1492,
333,
445,
1135,
629,
353,
392,
18885,
1230,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
291,
8924,
12,
2867,
2236,
13,
3238,
1476,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
19931,
288,
203,
5411,
963,
519,
1110,
7000,
554,
12,
4631,
13,
203,
3639,
289,
203,
3639,
327,... |
pragma solidity ^ 0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function trans... | * @title VU Token @dev VU Token token smart contract/ | contract VUToken is DetailedERC20, BurnableToken, PausableToken {
using SafeMath for uint256;
uint public constant INITIAL_SUPPLY = 1000000000 * (10**18);
function VUToken() public
DetailedERC20("VU TOKEN", "VU", 18)
{
totalSupply_ = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_... | 14,029,899 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
776,
57,
3155,
632,
5206,
776,
57,
3155,
1147,
13706,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
776,
57,
1345,
353,
463,
6372,
654,
39,
3462,
16,
605,
321,
429,
1345,
16,
21800,
16665,
1345,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
1071,
5381,
28226,
67,
13272,
23893,
273,
15088,
3... |
./full_match/80001/0xBEa9479db568A7483Bd49e1Ed257075Ec70F4F78/sources/contracts/FixedProductMarketMaker.sol | @notice Computes the fees when positions are bought or sold. @dev We might avoid this logic happening here. This is called on the transfer function of the LP tokens. | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal override {
if (from != address(0)) {
withdrawFees(from);
}
uint256 supply = totalSupply();
uint256 withdrawnFeesTransfer = supply == 0
? amount
... | 9,475,459 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14169,
281,
326,
1656,
281,
1347,
6865,
854,
800,
9540,
578,
272,
1673,
18,
632,
5206,
1660,
4825,
4543,
333,
4058,
5865,
310,
2674,
18,
1220,
353,
2566,
603,
326,
7412,
445,
434,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
309,
261,
2080,
480,
1758,
12,
20,
3719,
288,
203,
5411,
598,
9446... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./wEth/IWETH.sol";
import "./Withdrawable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/E... | SPDX-License-Identifier: MIT* @dev Collection of functions related to the address type/ | library AddressUpgradeable {
function _owner() internal virtual returns(address);
}
pragma solidity ^0.8.0;
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
functio... | 9,940,950 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
14,
632,
5206,
2200,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
12083,
5267,
10784,
429,
288,
203,
225,
445,
389,
8443,
1435,
2713,
5024,
1135,
12,
2867,
1769,
203,
203,
97,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
... |
// SPDX-License-Identifier: GPLv3
pragma solidity 0.7.2;
pragma experimental ABIEncoderV2;
import '../interfaces/IElasticToken.sol';
import '../libraries/ElasticMath.sol';
import '../core/ElasticDAO.sol';
import '../models/DAO.sol';
import '../models/Ecosystem.sol';
import '../models/Token.sol';
import '../models/To... | * @notice Reduces the balance(lambda) of @param _account by _amount @param _account - address of the account @param _amount - the amount by which the number of shares has to be reduced @return bool/ | function burnShares(address _account, uint256 _amount)
external
override
onlyDAOorBurner
nonReentrant
returns (bool)
{
_burnShares(_account, _amount);
return true;
}
| 10,474,381 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4621,
89,
764,
326,
11013,
12,
14661,
13,
434,
632,
891,
389,
4631,
635,
225,
389,
8949,
632,
891,
389,
4631,
300,
1758,
434,
326,
2236,
632,
891,
389,
8949,
300,
326,
3844,
635,
1492,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
18305,
24051,
12,
2867,
389,
4631,
16,
2254,
5034,
389,
8949,
13,
203,
565,
3903,
203,
565,
3849,
203,
565,
1338,
18485,
280,
38,
321,
264,
203,
565,
1661,
426,
8230,
970,
203,
565,
1135,
261,
6430,
13,
203,
225,
288,... |
./full_match/1/0xcABDE42dd767361739bD7c09C6E574057080ef01/sources/contracts/v2/strategies/AbstractStrategy.sol | * @notice A hook which is called by the Treasury Reserves Vault when the debt ceiling for this strategy is updated @dev by default it's a no-op unless the strategy implements it/ solhint-disable-next-line no-empty-blocks | function _debtCeilingUpdated(IERC20 /*token*/, uint256 /*newDebtCeiling*/) internal virtual {}
| 4,986,302 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
3953,
1492,
353,
2566,
635,
326,
399,
266,
345,
22498,
1124,
264,
3324,
17329,
1347,
326,
18202,
88,
5898,
4973,
364,
333,
6252,
353,
3526,
632,
5206,
635,
805,
518,
1807,
279,
1158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
323,
23602,
39,
73,
4973,
7381,
12,
45,
654,
39,
3462,
1748,
2316,
5549,
16,
2254,
5034,
1748,
2704,
758,
23602,
39,
73,
4973,
5549,
13,
2713,
5024,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xC497e6Fe501A327C8eB5db50A3C6B110b9aC7d9E/sources/browser/token.sol | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public {
bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, ... | 4,865,387 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
24117,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
632,
891,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
632,
891,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7152,
858,
8267,
12,
2867,
7152,
73,
16,
2254,
7448,
16,
2254,
10839,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
1071,
288,
203,
3639,
1731,
1578,
2461,
6581,
273,
417,
24410,
581,
5034,
12,
2145... |
./partial_match/1/0x4909B5a6Fbd15884fed4F5D1Af829AF5e9bc8e28/sources/contracts/FarmingLPToken.sol | * @dev when unstaking, the user's share of LP tokens are returned and pro-rata SUSHI yield is return as well/ | function withdraw(uint256 shares, address beneficiary) external override nonReentrant {
uint256 amountLP = (shares * withdrawableTotalLPs) / totalShares();
IMasterChef(masterChef).withdraw(pid, amountLP);
_claimSushi(shares, beneficiary);
IERC20(lpToken).safeTransfer(beneficiary, a... | 3,937,781 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1347,
640,
334,
6159,
16,
326,
729,
1807,
7433,
434,
511,
52,
2430,
854,
2106,
471,
450,
17,
86,
396,
11726,
2664,
45,
2824,
353,
327,
487,
5492,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
24123,
16,
1758,
27641,
74,
14463,
814,
13,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
5034,
3844,
14461,
273,
261,
30720,
380,
598,
9446,
429,
5269,
14461,
87,
13,
342,
2078,
24... |
pragma solidity >=0.4.24;
import "./interfaces/IPolicy.sol";
import "./libraries/SafeMath.sol";
import "./modules/Role.sol";
import "./interfaces/IERC20.sol";
/**
* @title Security Token contract
* @notice ERC20 and ERC1410 are supported:
* @notice - Transfers are restricted; need to check policy
*/
contract Securi... | * @dev Function to check the amount of mocks that an owner allowed to a spender. @param _owner address The address which owns the funds. @param _spender address The address which will spend the funds. @return A uint256 specifying the amount of mocks still available for the spender./ | function allowance(address _owner, address _spender) public view returns (uint256) {
return allowanceTransferTranche(investorDefaultTranche[_owner], _owner, _spender);
}
| 5,451,237 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
866,
326,
3844,
434,
15895,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
632,
891,
389,
8443,
1758,
1021,
1758,
1492,
29065,
326,
284,
19156,
18,
632,
891,
389,
87,
1302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1699,
1359,
5912,
17730,
18706,
12,
5768,
395,
280,
1868,
17730,
18706,
63,
67,
8443,
6487,... |
./partial_match/1/0xda18f789a1D9AD33E891253660Fcf1332d236b29/sources/StrategyProxy.sol | make sure a strategy can't yoink gauge or LP tokens. | function _isSafeToken(address _token) internal returns (bool) {
if (_token == crv) return false;
try gaugeController.gauge_types(_token) {
return false;
}
address pool = metaRegistry.get_pool_from_lp_token(_token);
if (pool != address(0)) return false;
ret... | 9,154,776 | [
1,
4625,
348,
7953,
560,
30,
225,
1221,
3071,
279,
6252,
848,
1404,
677,
83,
754,
13335,
578,
511,
52,
2430,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
291,
9890,
1345,
12,
2867,
389,
2316,
13,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
67,
2316,
422,
4422,
90,
13,
327,
629,
31,
203,
3639,
775,
13335,
2933,
18,
75,
8305,
67,
2352,
24899,
2316,
13,
28... |
pragma solidity 0.4.24;
/**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale.
* Crowdsales have a start and end timestamps, where investors can make
* token purchases and the crowdsale will assign them tokens based
* on a token per ETH rate. Funds collected are forwar... | to place order you first register yourself
| require(bytes(registerbuyer[msg.sender].name).length!=0); | 5,522,862 | [
1,
4625,
348,
7953,
560,
30,
358,
3166,
1353,
1846,
1122,
1744,
3433,
2890,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
3890,
12,
4861,
70,
16213,
63,
3576,
18,
15330,
8009,
529,
2934,
2469,
5,
33,
20,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.8;
interface GemLike {
function approve(address, uint) external;
function transfer(address, uint) external;
function transferFrom(address, address, uint) external;
function deposit() external payable;
function withdraw(uint) external;
}
interface ManagerLike {
function cdp... | Exits DAI to the user's wallet as a token | DaiJoinLike(daiJoin).exit(address(this), wad);
| 978,740 | [
1,
4625,
348,
7953,
560,
30,
225,
1312,
1282,
463,
18194,
358,
326,
729,
1807,
9230,
487,
279,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
5411,
463,
10658,
4572,
8804,
12,
2414,
77,
4572,
2934,
8593,
12,
2867,
12,
2211,
3631,
341,
361,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "./IReserve.sol";
import "./whitelist.sol";
import "./safari-erc20.sol";
import "./isafari-erc721.sol";
import "./token-metadata.sol";
im... | this should only be used to correct errors in trait names | function setPartTraitNames(uint256[] calldata parts, uint256[] calldata traits, string[] memory names) external onlyOwner {
require(parts.length == traits.length && parts.length == names.length, 'all arguments must be arrays of the same length');
uint256 i;
for (i=0; i<parts.length; i++) {
... | 1,304,105 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
1410,
1338,
506,
1399,
358,
3434,
1334,
316,
13517,
1257,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
1988,
15525,
1557,
12,
11890,
5034,
8526,
745,
892,
2140,
16,
2254,
5034,
8526,
745,
892,
18370,
16,
533,
8526,
3778,
1257,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
6019,
18,
2469,
422,
18370,
18,
2469,
597,... |
./partial_match/1/0x881c72D1e6317f10a1cDCBe05040E7564E790C80/sources/StakingRewardsWithPlatformToken.sol | * @dev Calculates the amount of unclaimed rewards a user has earned @return 'Reward' per staked token/ If there is no StakingToken liquidity, avoid div(0) | function rewardPerToken()
public
view
returns (uint256, uint256)
{
uint256 stakedTokens = totalSupply();
if (stakedTokens == 0) {
return (rewardPerTokenStored, platformRewardPerTokenStored);
}
uint256 rewardUnitsToDistribute = rewardRate.mul(ti... | 4,139,048 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
326,
3844,
434,
6301,
80,
4581,
329,
283,
6397,
279,
729,
711,
425,
1303,
329,
632,
2463,
296,
17631,
1060,
11,
1534,
384,
9477,
1147,
19,
971,
1915,
353,
1158,
934,
6159,
1345,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19890,
2173,
1345,
1435,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
384,
9477,
5157,
273,
2078,
3088,
1283,
5621,
203,
3639,
309,
261,
... |
./full_match/42220/0xc7B57dA5DF5424aa8b6999BEab8aFDDFdC4C8A20/sources/contracts/Router.sol | fetches and sorts the reserves for a pair | function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
(address token0,) = sortTokens(tokenA, tokenB);
pairFor(factory, tokenA, tokenB);
(uint reserve0, uint reserve1,) = IBlackfarmingPair(pairFor(factory, tokenA, tokenB))... | 16,330,065 | [
1,
4625,
348,
7953,
560,
30,
225,
17675,
471,
18524,
326,
400,
264,
3324,
364,
279,
3082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31792,
264,
3324,
12,
2867,
3272,
16,
1758,
1147,
37,
16,
1758,
1147,
38,
13,
2713,
1476,
1135,
261,
11890,
20501,
37,
16,
2254,
20501,
38,
13,
288,
203,
3639,
261,
2867,
1147,
20,
16,
13,
273,
1524,
5157,
12,
2316,
... |
./full_match/1/0xC7F0baBf7bd70370E63ba915a67971684e79Fa66/sources/contracts/MirrorEditions.sol | The number of tokens that can be minted and sold. The price to purchase a token. The account that should receive the revenue. | function createEdition(
uint256 quantity,
uint256 price,
address payable fundingRecipient
) external {
editions[nextEditionId] = Edition({
quantity: quantity,
price: price,
fundingRecipient: fundingRecipient,
numSold: 0
});
... | 8,432,171 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1300,
434,
2430,
716,
848,
506,
312,
474,
329,
471,
272,
1673,
18,
1021,
6205,
358,
23701,
279,
1147,
18,
1021,
2236,
716,
1410,
6798,
326,
283,
24612,
18,
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,
25184,
1460,
12,
203,
3639,
2254,
5034,
10457,
16,
203,
3639,
2254,
5034,
6205,
16,
203,
3639,
1758,
8843,
429,
22058,
18241,
203,
565,
262,
3903,
288,
203,
3639,
1675,
5029,
63,
4285,
41,
1460,
548,
65,
273,
512,
1460,... |
./full_match/137/0x462ab8E39886a2F94D8DDa274a0f4BDdee6CE634/sources/contracts/vendor/openzeppelin/ERC721.sol | * @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from);
_beforeTokenTransfer(from, to, tokenId);
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
... | 4,725,906 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
225,
2970,
1061,
7423,
358,
288,
13866,
1265,
5779,
333,
709,
10522,
1158,
17499,
603,
1234,
18,
15330,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
654,
39,
27,
5340,
18,
8443,
951,
12,
2316,
548,
13,
422,
62... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
pragma abicoder v2;
// OpenZeppelin v4
import { Staking } from "./Staking.sol";
import { Delegator } from "./Delegator.sol";
/**
* @title Voting
* @author Railgun Contributors
* @notice Governance contract for railgun, handles voting.
*/
contract Voti... | If a snapshot exists return the interval it was taken Else default to 0 | function latestAccountSnapshotInterval(address _account) public view returns (uint256) {
if (accountSnapshots[_account].length > 0) {
return accountSnapshots[_account][accountSnapshots[_account].length - 1].interval;
return 0;
}
}
| 1,612,816 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
279,
4439,
1704,
327,
326,
3673,
518,
1703,
9830,
16289,
805,
358,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4891,
3032,
4568,
4006,
12,
2867,
389,
4631,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
4631,
17095,
63,
67,
4631,
8009,
2469,
405,
374,
13,
288,
203,
1377,
327,
2236,
17095,
63,
67,
4631,
63... |
// THIS CONTRACT IS UNSAFE because I added two major bugs to make it more
// exciting to audit ;)
// One bug is easy to spot, and the other is more subtle. The more subtle bug
// may or may not be dangerous. But the other is definitely bad. Hint: don't
// even trust the comments ;)
pragma solidity 0.4.18;
import "ze... | A recipient may choose to return the funds to the giver at any time Tested by test/test_return_to_giver.js Validate the giftId The gift must exist and must not have already been redeemed, returned, or refunded Only the recipient can return funds to the giver Only allow a positive fund transfer Make sure the giver's ad... | function returnToGiver (uint giftId) public {
require(giftId >= 0);
require(isValidGift(giftIdToGift[giftId]));
require(giftIdToGift[giftId].recipient == msg.sender);
require(giftIdToGift[giftId].amount > 0);
assert(giftIdToGift[giftId].giver != address(0));
gift... | 12,588,829 | [
1,
4625,
348,
7953,
560,
30,
225,
432,
8027,
2026,
9876,
358,
327,
326,
284,
19156,
358,
326,
314,
1667,
622,
1281,
813,
399,
3149,
635,
1842,
19,
3813,
67,
2463,
67,
869,
67,
75,
1667,
18,
2924,
3554,
326,
314,
2136,
548,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
327,
774,
43,
1667,
261,
11890,
314,
2136,
548,
13,
1071,
288,
203,
3639,
2583,
12,
75,
2136,
548,
1545,
374,
1769,
203,
203,
3639,
2583,
12,
26810,
43,
2136,
12,
75,
2136,
28803,
43,
2136,
63,
75,
2136,
548,
5717,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8;
import "./AdminControlled.sol";
import "./INearBridge.sol";
import "./NearDecoder.sol";
// used to sign messages of the validators that approve the block, and thus to also check validity of the signature in the submitted NEAR block header
import "./Ed2... | set when next challenge period ends | lastValidAt = block.timestamp + lockDuration;
| 12,793,794 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
1347,
1024,
12948,
3879,
3930,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
1142,
1556,
861,
273,
1203,
18,
5508,
397,
2176,
5326,
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,
-1... |
// SPDX-License-Identifier: MIT
/*
We are the seethers,
The copers,
Those that REEEEE
in the morning,
For all the missed airdrops,
All the fumbled bags,
A moonshot we bought the top of,
We have cope,
That for every GM,
It is followed by a GN.
@ngmign
*/
pragma solidity ^0.8.0;
import "./utils/ERC20Feeab... | SPDX-License-Identifier: MIT OpenZeppelin Contracts v4.3.2 (token/ERC20/utils/SafeERC20.sol)* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting call... | library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
... | 6,097,484 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
3502,
62,
881,
84,
292,
267,
30131,
331,
24,
18,
23,
18,
22,
261,
2316,
19,
654,
39,
3462,
19,
5471,
19,
9890,
654,
39,
3462,
18,
18281,
17653,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
654,
39,
3462,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
445,
4183,
5912,
12,
203,
3639,
467,
654,
39,
3462,
1147,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
203,
565,
445,
389,
5771,... |
./full_match/7701/0xA3E775DAB3296A8387B67BA6F11fEd4F09FB73c4/sources/src/CantoCanon.sol | * @notice This returns the concatenation of the `_baseURI` and the token-specific uri if the latter is set in `_tokenURIs` else assumes collection is not revealed and returns the `_preRevealURI`/ If token URI is set, concatenate base URI and tokenURI (via abi.encodePacked), else return _preRevealURI | function uri(uint256 _id) public view override returns (string memory) {
string memory tokenURI = _tokenURIs[_id];
return bytes(tokenURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenURI)) : _preRevealURI;
}
| 13,216,847 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
1135,
326,
26833,
434,
326,
1375,
67,
1969,
3098,
68,
471,
326,
1147,
17,
12524,
2003,
309,
326,
23740,
353,
444,
316,
1375,
67,
2316,
1099,
2520,
68,
469,
13041,
1849,
353,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2003,
12,
11890,
5034,
389,
350,
13,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
533,
3778,
1147,
3098,
273,
389,
2316,
1099,
2520,
63,
67,
350,
15533,
203,
203,
3639,
327,
1731,
12,
2316,
3098,
2934,
... |
// SPDX-License-Identifier: MIT
// Copyright 2021 Primitive Finance
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// us... | * @dev Swaps strikeTokens to underlyingTokens, WETH, which is converted to ethers before withdrawn. Uses the strike ratio as the exchange rate. Strike ratio = base / quote. @notice This function is for options with WETH as the underlying asset. Burns option tokens, pulls strikeTokens, and pushes ... | function safeExerciseForETH(IOption optionToken, uint256 exerciseQuantity)
public
override
nonReentrant
onlyRegistered(optionToken)
returns (uint256, uint256)
{
address underlying = optionToken.getUnderlyingTokenAddress();
address strike = optionToken.getS... | 6,455,574 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
377,
5434,
6679,
609,
2547,
5157,
358,
6808,
5157,
16,
678,
1584,
44,
16,
1492,
353,
5970,
358,
13750,
414,
1865,
598,
9446,
82,
18,
1850,
14854,
326,
609,
2547,
7169,
487,
326,
7829,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
424,
20603,
1290,
1584,
44,
12,
45,
1895,
1456,
1345,
16,
2254,
5034,
24165,
12035,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
1338,
10868,
12,
3482,
1345,
13,
203,
3639,
113... |
pragma solidity =0.6.6;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@op... | Then any remaining tokens should be deduced in flexible stake | require(remain <= user.flexibleStake, "Not enough unlocked tokens");
| 5,892,415 | [
1,
4625,
348,
7953,
560,
30,
225,
9697,
1281,
4463,
2430,
1410,
506,
11140,
26372,
316,
16600,
1523,
384,
911,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2583,
12,
2764,
530,
1648,
729,
18,
74,
21873,
510,
911,
16,
315,
1248,
7304,
25966,
2430,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0xcbCf7a55e3ef82797D941333Eb678DE25bDe0E12/sources/browser/SdxPark.sol | Leave the bar. Claim back your SDXs. | function leave(uint256 _share) public {
uint256 totalShares = totalSupply();
uint256 what = _share.mul(sdx.balanceOf(address(this))).div(totalShares);
_burn(msg.sender, _share);
sdx.transfer(msg.sender, what);
}
| 14,132,094 | [
1,
4625,
348,
7953,
560,
30,
225,
21131,
326,
4653,
18,
18381,
1473,
3433,
15951,
60,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8851,
12,
11890,
5034,
389,
14419,
13,
1071,
288,
203,
3639,
2254,
5034,
2078,
24051,
273,
2078,
3088,
1283,
5621,
203,
3639,
2254,
5034,
4121,
273,
389,
14419,
18,
16411,
12,
6427,
92,
18,
12296,
951,
12,
2867,
12,
221... |
/*
.'''''''''''.. ..''''''''''''''''.. ..'''''''''''''''..
.;;;;;;;;;;;'. .';;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;,.
.;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;,.
.;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;;,. .;;;;;;;;;;;;;;;;;;;;,.
';;;;;;;;'. .';;;;;;;;;;;;;;;;;;... | * @dev Deploy LoanToken with parameters @param _amount Amount to borrow @param _term Length of loan @param _apy Loan yield/ | function createLoanToken(
uint256 _amount,
uint256 _term,
uint256 _apy
) external override {
require(_amount > 0, "LoanFactory: Loans of amount 0, will not be approved");
require(_term > 0, "LoanFactory: Loans cannot have instantaneous term of repay");
address ne... | 5,990,479 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7406,
3176,
304,
1345,
598,
1472,
632,
891,
389,
8949,
16811,
358,
29759,
632,
891,
389,
6408,
11311,
434,
28183,
632,
891,
389,
438,
93,
3176,
304,
2824,
19,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
1504,
304,
1345,
12,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
6408,
16,
203,
3639,
2254,
5034,
389,
438,
93,
203,
565,
262,
3903,
3849,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
31... |
/**
* From Ethereum Gold initial
* copyleft 2019
*
*/
pragma solidity >=0.4.22 <0.6.0;
/**
* @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) int... | * Interface provided to external calls./ | interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external;
}
| 5,543,324 | [
1,
4625,
348,
7953,
560,
30,
380,
6682,
2112,
358,
3903,
4097,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
1147,
18241,
288,
203,
565,
445,
6798,
23461,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
16,
1758,
389,
2316,
16,
1731,
389,
7763,
751,
13,
3903,
31,
225,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/43113/0xB59fB881AE92Ce1dcf9Cd794c82AD74880d8ee64/sources/CRD-Presale.sol | uint256 public presaleTokenDecimal = 9; | contract CrdPresale is Owned {
using SafeMath for uint256;
bool public isPresaleOpen = true;
uint public delayTime = 86400;
uint public presaleStartTime;
uint256 public minMIMLimit = 1 * (10 ** 18);
uint256 public maxMIMLimit = 800 * (10 ** 18);
uint256 public totalMIMAmount = 0;
... | 7,136,554 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
1071,
4075,
5349,
1345,
5749,
273,
2468,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
13623,
12236,
5349,
353,
14223,
11748,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1426,
1071,
353,
12236,
5349,
3678,
273,
638,
31,
203,
565,
2254,
1071,
4624,
950,
273,
21451,
31,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-10
*/
pragma solidity ^0.5.17;
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol
// Adapted to use pragma ^0.5.17 and satisfy our linter rules
/**
* @title SafeMath
* @dev Math operations with safety checks tha... | * @dev Internal function to transfer governor share for a certain period @param _period Period being claimed @param _periodId Identification number of the period being claimed @param _token Address of the token to be claimed/ | function _claimGovernorShare(Period storage _period, uint256 _periodId, address payable _governor, address _token) internal {
_period.claimedGovernor[_token] = true;
uint256 amount = _getGovernorShare(_period, _token);
if (amount > 0) {
_transfer(_governor, _token, amount);
... | 10,904,336 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
7412,
314,
1643,
29561,
7433,
364,
279,
8626,
3879,
632,
891,
389,
6908,
12698,
3832,
7516,
329,
632,
891,
389,
6908,
548,
13128,
1480,
1300,
434,
326,
3879,
3832,
7516,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
14784,
43,
1643,
29561,
9535,
12,
5027,
2502,
389,
6908,
16,
2254,
5034,
389,
6908,
548,
16,
1758,
8843,
429,
389,
75,
1643,
29561,
16,
1758,
389,
2316,
13,
2713,
288,
203,
3639,
389,
6908,
18,
14784,
329,
43,
16... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "./IOracle.sol";
import "./Ownable.sol";
contract TimestampVRF is Ownable{
IOracle Oracle;
uint nonce;
constructor(address oracleAddress){
Oracle = IOracle(oracleAddress);
}
function setOracle(address oracleAddress) ... | uint result = Oracle.getTimestampCountById(tellorId); uint tellorTimeStamp = Oracle.getReportTimestampByIndex(tellorId,result-1); if(tellorTimeStamp<_timestamp){ return uint(keccak256(abi.encodePacked(_tokenId,block.timestamp/5 minutes))); } for(uint i=(result-2);i>0;i--){ if(tellorTimeStamp < _timestamp) ... | function initiateRandomness(uint _tokenId,uint _timestamp) external view returns(uint){
bytes32 tellorId = 0x0000000000000000000000000000000000000000000000000000000000000001;
return uint(keccak256(abi.encodePacked(_tokenId,block.timestamp/5 minutes)));
}
| 2,535,775 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
563,
273,
28544,
18,
588,
4921,
1380,
5132,
12,
88,
1165,
280,
548,
1769,
2254,
9276,
280,
21536,
273,
28544,
18,
588,
4820,
4921,
21268,
12,
88,
1165,
280,
548,
16,
2088,
17,
21,
1769,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
18711,
8529,
4496,
12,
11890,
389,
2316,
548,
16,
11890,
389,
5508,
13,
3903,
1476,
1135,
12,
11890,
15329,
203,
3639,
1731,
1578,
9276,
280,
548,
273,
374,
92,
12648,
12648,
12648,
12648,
12648,
12648,
12648,
9449,
1611,
... |
pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when d... | * @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 NBUNIERC20 is Context, INBUNIERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
event LiquidityAddition(address indexed dst, uint value);
event LPT... | 2,277,237 | [
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,
20096,
10377,
654,
39,
3462,
353,
1772,
16,
2120,
38,
10377,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
12,
2867,
516,
... |
pragma solidity ^0.5.0;
// Spec L1
// LTLVariables: user:Ref
// LTLFairness: <>(finished(Crowdsale.buyTokens, (user == msg.sender))) && <>(finished(RefundableCrowdsale.claimRefund(ref), (ref == user)))
// LTLProperty: []((finished(FinalizableCrowdsale.finalize)) ==> <>(finished(send(from, to, amt), (to == user && amt ... | * @dev Returns the multiplication of two unsigned integers, reverting on overflow. Counterpart to Solidity's `` operator. Requirements: - Multiplication cannot overflow./function mul(uint256 a, uint256 b) internal pure returns (uint256) { Gas optimization: this is cheaper than requiring 'a' not being zero, but the bene... | if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
| 15,821,432 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
23066,
434,
2795,
9088,
12321,
16,
15226,
310,
603,
9391,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
12176,
3726,
18,
29076,
30,
300,
5991,
1254,
2780,
9391,
18,
19,
915,
14064... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
309,
261,
69,
422,
374,
13,
288,
203,
5411,
327,
374,
31,
203,
3639,
289,
203,
203,
3639,
2254,
5034,
276,
273,
279,
380,
324,
31,
203,
3639,
2583,
12,
71,
342,
279,
422,
324,
16,
315,
9890,
10477,
30,
23066,
9391,
8863... |
./partial_match/4/0xe74ad0673D01D06f81230F5F0f96DcF782E0DEFf/sources/TokenCollateralLoans.sol | */*/*/*/*/*/*/*/*/* @title Initializable @dev Helper contract to support initializer functions. To use it, replace the constructor with a function that has the `initializer` modifier. WARNING: Unlike constructors, initializer functions must be manually invoked. This applies both to deploying an Initializable contract, ... | contract Initializable {
bool private initialized;
bool private initializing;
@notice This interface defines all function to manage the asset settings on the platform.
@author develop@teller.finance
}
@notice This interface defines all function to manage the platform configuration.
@author dev... | 8,662,498 | [
1,
4625,
348,
7953,
560,
30,
1195,
5549,
5549,
5549,
5549,
5549,
5549,
5549,
5549,
14,
632,
2649,
10188,
6934,
632,
5206,
9705,
6835,
358,
2865,
12562,
4186,
18,
2974,
999,
518,
16,
1453,
326,
3885,
598,
279,
445,
716,
711,
326,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10188,
6934,
288,
203,
203,
225,
1426,
3238,
6454,
31,
203,
203,
225,
1426,
3238,
22584,
31,
203,
203,
565,
632,
20392,
1220,
1560,
11164,
777,
445,
358,
10680,
326,
3310,
1947,
603,
326,
4072,
18,
203,
203,
565,
632,
4161... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
pragma experimental ABIEncoderV2;
import "./standard/ERC721.sol";
import "./standard/EnumerableSet.sol";
import "./standard/ERC721Enumerable.sol";
import "./standard/Math.sol";
import "./Currency.sol";
/**
* @title Extension of {ERC721} for assets
* I.E. coll... | * @dev Mint a asset with a specific ID @param to Who should receive the minted asset @param assetId ID of the asset to mint (ie: 250)/ | function mintAssetId(address to, uint256 assetId) public {
require(isAllowedMinter(msg.sender), "minter not allowed");
_mint(to, assetId);
}
| 5,434,183 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
279,
3310,
598,
279,
2923,
1599,
632,
891,
358,
3497,
83,
1410,
6798,
326,
312,
474,
329,
3310,
632,
891,
3310,
548,
1599,
434,
326,
3310,
358,
312,
474,
261,
1385,
30,
16927,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
6672,
548,
12,
2867,
358,
16,
2254,
5034,
3310,
548,
13,
1071,
288,
203,
3639,
2583,
12,
291,
5042,
49,
2761,
12,
3576,
18,
15330,
3631,
315,
1154,
387,
486,
2935,
8863,
203,
203,
3639,
389,
81,
474,
12,
8... |
// File: contracts/ErrorReporter.sol
pragma solidity 0.4.24;
contract ErrorReporter {
/**
* @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
* contract-specific code that enables us to report opaque error codes from upgradeable contracts.
... | Save market updates | markets[asset].totalSupply = localResults.newTotalSupply;
| 81,210 | [
1,
4625,
348,
7953,
560,
30,
225,
7074,
13667,
4533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
2267,
2413,
63,
9406,
8009,
4963,
3088,
1283,
273,
1191,
3447,
18,
2704,
5269,
3088,
1283,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.7.0;
import "./Auction.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
contract AuctionManager {
uint _auctionIdCounter; // auction Id counter
mapping(uint => Auction) public auctions; // auctions
// create an auction
function createAuction(uint _endTime, uint ... | create the auction
| Auction auction = new Auction(msg.sender, _endTime, _minIncrement, _directBuyPrice, _startPrice, _nftAddress, _tokenId); | 13,007,076 | [
1,
4625,
348,
7953,
560,
30,
225,
752,
326,
279,
4062,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
432,
4062,
279,
4062,
273,
394,
432,
4062,
12,
3576,
18,
15330,
16,
389,
409,
950,
16,
389,
1154,
10798,
16,
389,
7205,
38,
9835,
5147,
16,
389,
1937,
5147,
16,
389,
82,
1222,
1887,
16,
389,
2316,
548,
1769,
225,
2,
-10... |
//
// &&&&
// &&&&
// &&&&
// &&&& &&&&&&&&& &&&&&&&&&&&& &&&&&&&&&&/ &&&&.&&&&&&&&&
// &&&&&&&&& &&&&& &&&&&& &&&&&, &&&&& &&&&& &&&&&&&& &&&&
// &&&&&& &&&& &&&&# &&&& &&&&& ... | Tracks the history of the `totalSupply` of the token | Snapshot[] public totalSupplySnapshots;
| 409,049 | [
1,
4625,
348,
7953,
560,
30,
225,
11065,
87,
326,
4927,
434,
326,
1375,
4963,
3088,
1283,
68,
434,
326,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
10030,
8526,
1071,
2078,
3088,
1283,
17095,
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... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/acces... | notify for action pool | uint256 accountBorrowPointsOld = accountBorrowPoints[borrowCurrent.owner];
| 12,814,679 | [
1,
4625,
348,
7953,
560,
30,
225,
5066,
364,
1301,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2236,
38,
15318,
5636,
7617,
273,
2236,
38,
15318,
5636,
63,
70,
15318,
3935,
18,
8443,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.4;
/**
* The ENS registry contract.
*/
contract ENS {
// Logged when the owner of a node assigns a new owner to a subnode.
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
// Logged when the owner of a node transfers ownership to a new account.
event T... | Send any referral fee | var total = domain.price;
| 1,541,460 | [
1,
4625,
348,
7953,
560,
30,
225,
2479,
1281,
1278,
29084,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
569,
2078,
273,
2461,
18,
8694,
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,
-1... |
./full_match/4/0x66A9e129cEa9D102CDD518C142C412C3CE4E9165/sources/contracts/PyscheArt.sol | if there exists 5st generation holders, the bonus has 50% probability to be stolen by 5st gen holders. | function stealBonus(uint256 bredBonus, uint256 seed) internal returns(bool) {
uint256 len = tokensOf5thGen.length;
if (len > 0 && random(seed, 0) % 2 == 0) {
uint256 bonusSteal = bredBonus / len;
for (uint256 i; i < len; i ++) {
address holder = ownerOf(tokens... | 12,379,797 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
1915,
1704,
1381,
334,
9377,
366,
4665,
16,
326,
324,
22889,
711,
6437,
9,
11331,
358,
506,
384,
355,
275,
635,
1381,
334,
3157,
366,
4665,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18654,
287,
38,
22889,
12,
11890,
5034,
324,
1118,
38,
22889,
16,
2254,
5034,
5009,
13,
2713,
1135,
12,
6430,
13,
288,
203,
3639,
2254,
5034,
562,
273,
2430,
951,
25,
451,
7642,
18,
2469,
31,
203,
3639,
309,
261,
1897... |
// Правила для изменения достоверности распознавания конкретных словоформ в русском словаре.
// Обычное предназначение этих правил - изменить равновероятные распознавания
// омонимичных форм жаль(безличный глагол)>жаль(императив),
// либо повлиять на выбор многословных форм в противовес
// выбору отдельных слов: [сле... | струя струи --> струить струи
| wordform_score "струи" { глагол } = -1 | 7,303,828 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
146,
228,
146,
229,
146,
227,
146,
230,
146,
242,
225,
146,
228,
146,
229,
146,
227,
146,
230,
145,
121,
15431,
225,
146,
228,
146,
229,
146,
227,
146,
230,
145,
121,
146,
229,
146,
239,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
2076,
687,
67,
6355,
315,
146,
228,
146,
229,
146,
227,
146,
230,
145,
121,
6,
288,
225,
145,
116,
145,
124,
145,
113,
145,
116,
145,
127,
145,
124,
289,
273,
300,
21,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode -... | max wallet is 1.5% of initialSupply max buy and sell tx is 20% of initialSupply | contract Devour is ERC20, Ownable {
using SafeMath for uint256;
using SafeMath for uint112;
IUniswapV2Router02 public uniswapV2Router;
address public immutable uniswapV2Pair;
string private _name = "Devour";
string private _symbol = "DEVOUR";
uint8 private _decimals = 9;
DevourDividendTracker public dividen... | 1,123,290 | [
1,
4625,
348,
7953,
560,
30,
225,
943,
9230,
353,
404,
18,
25,
9,
434,
2172,
3088,
1283,
943,
30143,
471,
357,
80,
2229,
353,
4200,
9,
434,
2172,
3088,
1283,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9562,
477,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
202,
9940,
14060,
10477,
364,
2254,
5034,
31,
203,
202,
9940,
14060,
10477,
364,
2254,
17666,
31,
203,
203,
202,
45,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity/contracts/BoringBatchable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./libraries/SignedSafeM... | * @dev Update the given pool's allocation points. Can only be called by the owner or the points allocator. @param _pid The index of the pool. See `poolInfo`. @param _allocPoint New AP of the pool. @param _rewarder Address of the rewarder delegate. @param _overwrite True if _rewarder should be `set`. Otherwise `_rewarde... | function set(uint256 _pid, uint256 _allocPoint, IRewarder _rewarder, bool _overwrite) public onlyPointsAllocatorOrOwner {
totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
poolInfo[_pid].allocPoint = _allocPoint.to64();
if (_overwrite) {
rewarder[_pid] = _rewarder;
... | 5,786,633 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2315,
326,
864,
2845,
1807,
13481,
3143,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
578,
326,
3143,
26673,
18,
632,
891,
389,
6610,
1021,
770,
434,
326,
2845,
18,
2164,
1375,
6011,
966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
9853,
2148,
16,
15908,
359,
297,
765,
389,
266,
20099,
16,
1426,
389,
19274,
13,
1071,
1338,
5636,
21156,
1162,
5541,
288,
203,
565,
2078,
8763,
2148,
273,
2078,
876... |
// SPDX-License-Identifier: GPL-3.0
/*
This file is part of the Enzyme Protocol.
(c) Enzyme Council <[email protected]>
For the full license information, please view the LICENSE
file that was distributed with this source code.
*/
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/E... | @notice Sets the status of the protocol to a new state @param _nextStatus The next status state to set | function setReleaseStatus(ReleaseStatus _nextStatus) external {
require(
msg.sender == IDispatcher(DISPATCHER).getOwner(),
"setReleaseStatus: Only the Dispatcher owner can call this function"
);
require(
_nextStatus != ReleaseStatus.PreLaunch,
... | 1,697,389 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11511,
326,
1267,
434,
326,
1771,
358,
279,
394,
919,
632,
891,
389,
4285,
1482,
1021,
1024,
1267,
919,
358,
444,
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,
444,
7391,
1482,
12,
7391,
1482,
389,
4285,
1482,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
1599,
291,
2272,
264,
12,
2565,
3118,
5858,
654,
2934,
588,
5541,
9334,
203,
5411,
315,
542,
7391,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../interfaces/IRewarder.sol";
import "@boringcrypto/boring-solidity/contracts/libraries/BoringERC20.sol";
import "@boringcrypto/boring-solidity/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity/co... | @notice Update reward variables of the given pool. @param pid The index of the pool. See `poolInfo`. @return pool Returns the pool that was updated. | function updatePool(uint256 pid) public returns (PoolInfo memory pool) {
pool = poolInfo[pid];
if (block.timestamp > pool.lastRewardTime) {
uint256 lpSupply = MasterChefV2(MASTERCHEF_V2).lpToken(pid).balanceOf(MASTERCHEF_V2);
if (lpSupply > 0) {
uint256 time ... | 6,359,103 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2315,
19890,
3152,
434,
326,
864,
2845,
18,
632,
891,
4231,
1021,
770,
434,
326,
2845,
18,
2164,
1375,
6011,
966,
8338,
632,
2463,
2845,
2860,
326,
2845,
716,
1703,
3526,
18,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
4231,
13,
1071,
1135,
261,
2864,
966,
3778,
2845,
13,
288,
203,
3639,
2845,
273,
2845,
966,
63,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
5508,
405,
2845,
18,
2722,
17631,
1060,
950,
13,
... |
./partial_match/1/0xcFB0EA57C732BF521BA71e541Cfe47809CC0ea96/sources/PENGUINX.sol | set as marketing wallet
| marketingWallet = address(0x0f3444eB2Af8c11d9df96Ed366D7ebCb2b5b5858); | 15,657,824 | [
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,
377,
202,
3355,
21747,
16936,
273,
1758,
12,
20,
92,
20,
74,
5026,
6334,
73,
38,
22,
12664,
28,
71,
2499,
72,
29,
2180,
10525,
2671,
5718,
26,
40,
27,
24008,
15237,
22,
70,
25,
70,
25,
7140,
28,
1769,
225,
2,
-100,
-100,
-1... |
pragma solidity ^0.6.0;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
... | * @dev destribute assest from this contract to stake, burn, and owner of this contract @param tokens array of token addresses for destribute/ get current token balance get destribution percent destribute | function destribute(IERC20[] memory tokens) external {
for(uint i = 0; i < tokens.length; i++){
uint256 curentTokenTotalBalance = getTokenBalance(tokens[i]);
uint256 burnAmount = curentTokenTotalBalance.div(100).mul(burnPercent);
uint256 stakeAmount = curentTokenTotalBalance.div(100).mul(stakePe... | 1,207,358 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2832,
887,
1551,
395,
628,
333,
6835,
358,
384,
911,
16,
18305,
16,
471,
3410,
434,
333,
6835,
632,
891,
2430,
12900,
526,
434,
1147,
6138,
364,
2832,
887,
19,
336,
783,
1147,
11013,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2832,
887,
12,
45,
654,
39,
3462,
8526,
3778,
2430,
13,
3903,
288,
203,
282,
364,
12,
11890,
277,
273,
374,
31,
277,
411,
2430,
18,
2469,
31,
277,
27245,
95,
203,
1377,
2254,
5034,
15985,
547,
1345,
5269,
13937,
273,
... |
//Address: 0x9df10486168cb25278c7ec72a3090e34f7aac29a
//Contract name: GPowerToken
//Balance: 0 Ether
//Verification Date: 1/11/2018
//Transacion Count: 5
// CODE STARTS HERE
pragma solidity ^0.4.18;
//*** Owner ***//
contract owned {
address public owner;
//*** OwnershipTransferred ***//
event Owners... | *** Owner ****** OwnershipTransferred *** | contract owned {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function owned() public {
owner = msg.sender;
}
function changeOwner(address newOwner) onlyOwner public {
owner = newOwner;
}
function transferOwnership(address newO... | 12,662,229 | [
1,
4625,
348,
7953,
560,
30,
18852,
16837,
380,
23490,
14223,
9646,
5310,
1429,
4193,
18852,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16199,
288,
203,
202,
2867,
1071,
3410,
31,
203,
377,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
203,
203,
202,
915,
16199,
1435,
1071,
288,
203,
20... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./CVNXGovernance.sol";
import "./ICVNX.sol";
/// @notice CVNX token contract.
contrac... | @notice ICVNX interface for CVNX contract. | interface ICVNX is IERC20 {
function lock(address _tokenOwner, uint256 _tokenAmount) external;
function unlock(address _tokenOwner, uint256 _tokenAmount) external;
function swap(uint256 _amount) external returns (bool);
function transferStuckERC20(
IERC20 _token,
address _to,
... | 367,361 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
467,
22007,
17106,
1560,
364,
385,
58,
17106,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
5831,
467,
22007,
17106,
353,
467,
654,
39,
3462,
288,
203,
565,
445,
2176,
12,
2867,
389,
2316,
5541,
16,
2254,
5034,
389,
2316,
6275,
13,
3903,
31,
203,
203,
565,
445,
7186,
12,
2867,
389,
2316,
5541,
16,
2254,
5034,
389,
231... |
pragma solidity ^0.4.24;
import './DNSUtilLibrary.sol';
import './BidRegistry.sol';
import './DNSDataModel.sol';
import './DNSStates.sol';
import './DNSBid.sol';
contract DNSDappMaster is DNSUtilLibrary {
// constructor
constructor() public {
dnsRegistryOwner = msg.sender;
emit DnsNameCreate... | find the best-Bidder for a given DNSName from BidRegistryget bytes32 representation of the _dnsName find the BidContainer for this namereturn bestBidder's address from bidRegistry | function findBestBidderAddressByDNSName(string _dnsName) public view returns(address bestBidderAddress)
{
bytes32 dnsName = toBytes32(_dnsName);
BidRegistry bidRegistry = bidRegistryMap[dnsName];
return bidRegistry.bestBidder();
}
| 12,940,615 | [
1,
4625,
348,
7953,
560,
30,
1104,
326,
3796,
17,
17763,
765,
364,
279,
864,
8858,
461,
628,
605,
350,
4243,
588,
1731,
1578,
4335,
434,
326,
389,
14926,
461,
1104,
326,
605,
350,
2170,
364,
333,
15135,
264,
851,
3796,
17763,
765,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
14173,
17763,
765,
1887,
858,
11602,
461,
12,
1080,
389,
14926,
461,
13,
1071,
1476,
1135,
12,
2867,
3796,
17763,
765,
1887,
13,
203,
565,
288,
203,
3639,
1731,
1578,
225,
6605,
461,
273,
23247,
1578,
24899,
14926,
... |
// Sources flattened with hardhat v2.1.1 https://hardhat.org
// File @openzeppelin/contracts/math/Math.sol@v3.4.1
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two nu... | @dev Gets the total amount of assets deposited in the vault. @return the total assets. | function totalValue(Data storage _self) internal view returns (uint256) {
return _self.adapter.totalValue();
}
| 495,992 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11881,
326,
2078,
3844,
434,
7176,
443,
1724,
329,
316,
326,
9229,
18,
632,
2463,
326,
2078,
7176,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2078,
620,
12,
751,
2502,
389,
2890,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
389,
2890,
18,
10204,
18,
4963,
620,
5621,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.5.8;
// To enable ability to return Flight struct in memory
// TODO: DO NOT use in production deployment
pragma experimental ABIEncoderV2;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./FlightSuretyLib.sol";
contract FlightSuretyData {
using SafeMath for ... | * @dev Buy insurance for a flight/ Add flight insurance for passenger | function buyFlightInsurance
(
address airline,
bytes32 key,
address passenger
)
external
payable
... | 12,619,365 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
9835,
2763,
295,
1359,
364,
279,
25187,
19,
1436,
25187,
2763,
295,
1359,
364,
1342,
14348,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
24243,
5048,
295,
1359,
203,
18701,
261,
203,
27573,
1758,
23350,
1369,
16,
203,
27573,
1731,
1578,
498,
16,
203,
27573,
1758,
1342,
14348,
203,
18701,
262,
203,
18701,
3903,
203,
18701,
8843,
429,
203,
18701,
2583,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since... | The accumulated rewards for each stakeholder. | mapping(address => uint256) internal _rewards;
| 527,597 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
24893,
283,
6397,
364,
1517,
384,
911,
4505,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
6770,
12,
2867,
516,
2254,
5034,
13,
2713,
389,
266,
6397,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@uniswap/v2-peri... | * @dev throws if transaction sender is not in owner role/ | modifier onlyOwner() {
require(
hasRole(OWNER_ROLE, _msgSender()),
"Caller is not in owner role"
);
_;
}
| 624,867 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1216,
309,
2492,
5793,
353,
486,
316,
3410,
2478,
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,
5541,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
28335,
12,
29602,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
203,
5411,
315,
11095,
353,
486,
316,
3410,
2478,
6,
203,
3639,
11272,
203,
3639,
389,
31,
203,
565,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/EnumerableSetUpgradeable.sol";
import "../utils/AddressUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../proxy/Initializable.sol";
/**
* @dev Contract module that allows children to implement role-based access
* c... | PAUSABLE FUNCTIONS ***/ | function pause() external {
require(hasRole(GOVERNANCE_ROLE, msg.sender), "Not governance");
_pause();
}
| 1,575,521 | [
1,
4625,
348,
7953,
560,
30,
225,
15662,
3378,
2782,
13690,
55,
18852,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
11722,
1435,
3903,
288,
203,
565,
2583,
12,
5332,
2996,
12,
43,
12959,
50,
4722,
67,
16256,
16,
1234,
18,
15330,
3631,
315,
1248,
314,
1643,
82,
1359,
8863,
203,
565,
389,
19476,
5621,
203,
225,
289,
203,
203,
2,
-100... |
./full_match/137/0x511661e6068b69a9c6532E353ae2a3f9F2594eD9/sources/lib/zkbob-contracts/src/minters/FlashMinter.sol | fee percentage * 1 ether
| uint64 public fee; | 4,719,923 | [
1,
4625,
348,
7953,
560,
30,
225,
14036,
11622,
380,
404,
225,
2437,
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,
2254,
1105,
1071,
14036,
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,... |
/**
*Submitted for verification at Etherscan.io on 2022-04-13
*/
// Sources flattened with hardhat v2.9.2 https://hardhat.org
// File contracts/dependencies/Context.sol
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are gene... | * @dev Triggers stopped state. Requirements: - The contract must not be paused./ | function pause() public whenNotPaused {
require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "NonFungibleToken: must have admin role");
_pause();
}
| 15,159,907 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
840,
8060,
9627,
919,
18,
29076,
30,
300,
1021,
6835,
1297,
486,
506,
17781,
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... | [
1,
1,
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,
11722,
1435,
1071,
225,
1347,
1248,
28590,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
315,
3989,
42,
20651,
1523,
1345,
30,
1297,
1240,
3981,
2478,
8863,
203,
... |
./partial_match/1/0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC/sources/contracts/lib/OrderValidator.sol | * @dev Internal function to validate an arbitrary number of orders, thereby registering their signatures as valid and allowing the fulfiller to skip signature verification on fulfillment. Note that validated orders may still be unfulfillable due to invalid item amounts or other factors; callers shou... | ) internal returns (bool validated) {
_assertNonReentrant();
OrderStatus storage orderStatus;
bytes32 orderHash;
address offerer;
function _validate(
Order[] memory orders
unchecked {
uint256 totalOrders = orders.length;
for (uint256 i =... | 15,541,769 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
1954,
392,
11078,
1300,
434,
11077,
16,
1915,
1637,
1377,
22845,
3675,
14862,
487,
923,
471,
15632,
326,
22290,
264,
358,
1377,
2488,
3372,
11805,
603,
22290,
475,
18,
3609,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
2713,
1135,
261,
6430,
10266,
13,
288,
203,
3639,
389,
11231,
3989,
426,
8230,
970,
5621,
203,
203,
3639,
4347,
1482,
2502,
1353,
1482,
31,
203,
3639,
1731,
1578,
1353,
2310,
31,
203,
3639,
1758,
10067,
264,
31,
203,
20... |
pragma solidity ^0.7.0;
// pragma experimental ABIEncoderV2;
// import "https://github.com/ogDAO/Governance/blob/master/contracts/Permissioned.sol";
// import "https://github.com/ogDAO/Governance/blob/master/contracts/OGDTokenInterface.sol";
// import "https://github.com/ogDAO/Governance/blob/master/contracts/Dividend... | @notice New dividends owing since the last updateAccount(...) | function newDividendsOwing(address dividendToken, address account) internal view returns (uint) {
uint newDividendPoints = totalDividendPoints[dividendToken].sub(accounts[account].lastDividendPoints[dividendToken]);
return accounts[account].balance.mul(newDividendPoints).div(pointMultiplier);
}
| 12,925,066 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1166,
3739,
350,
5839,
2523,
310,
3241,
326,
1142,
1089,
3032,
5825,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
394,
7244,
350,
5839,
3494,
310,
12,
2867,
31945,
1345,
16,
1758,
2236,
13,
2713,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
394,
7244,
26746,
5636,
273,
2078,
7244,
26746,
5636,
63,
2892,
26746,
1345,
8009,
1717,
... |
// SPDX-License-Identifier: MIT
/* 1kind.com - Exclusive NFTs
* .:c:. .,::;. .;c;. .;cc:' '::. ,cc::c:c::;'.
* .oXWMNc 'xNWO: ,KMX; ;KMMWXo. .kWWo .OMWNXXXXXNNNKkl'
* .oKNXNMNc .oXWKl. ,KMX; ;KMMMMWk,... | @notice Sets base URI on the passed NFT contract address @param tokenContractAddress Address of the NFT contract @param tokenId The id of the token @param permanentTokenURI New base URI | function setTokenURIOnContract(
address tokenContractAddress,
uint256 tokenId,
string memory permanentTokenURI
) external onlyAdmin {
IOneKindERC721(tokenContractAddress).setTokenURI(tokenId, permanentTokenURI);
}
| 1,715,009 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11511,
1026,
3699,
603,
326,
2275,
423,
4464,
6835,
1758,
632,
891,
1147,
8924,
1887,
5267,
434,
326,
423,
4464,
6835,
632,
891,
1147,
548,
1021,
612,
434,
326,
1147,
632,
891,
16866,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22629,
3098,
1398,
8924,
12,
203,
3639,
1758,
1147,
8924,
1887,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
533,
3778,
16866,
1345,
3098,
203,
565,
262,
3903,
1338,
4446,
288,
203,
3639,
467,
3335,
5677,
654,
3... |
/*
███████╗████████╗██╗ ██╗███████╗██████╗ ███████╗██╗ ██╗███╗ ███╗
██╔════╝╚══██╔══╝██║ ██║██╔════╝██╔══██╗██╔════╝██║ ██║████╗ ████║
█████╗ ██║ ███████║█████╗ ██████╔╝█████╗ ██║ ██║██╔████╔██║
██╔══╝ ██║ ██╔══██║██╔══╝ ██╔══██╗██╔══╝ ██║ ██║██║╚██╔╝██║
██... | Setter of the Logic contract address./ | function setLogicContractAddress(address _logicContract) public isOwner payable {
logicContract = _logicContract;
}
| 1,036,477 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
387,
434,
326,
10287,
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,... | [
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,
444,
20556,
8924,
1887,
12,
2867,
389,
28339,
8924,
13,
1071,
353,
5541,
8843,
429,
288,
203,
3639,
4058,
8924,
273,
389,
28339,
8924,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0x43E5a1c4ae9f2D18629CBA584aD7f29DF47d74f3/sources/diamond.sol | Define a function to certify a diamond | function certifyDiamond(uint _tokenId) public {
require(diamondToOwner[_tokenId] == msg.sender, "You do not own this diamond.");
diamonds[_tokenId].isCertified = true;
}
| 1,954,249 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
279,
445,
358,
3320,
1164,
279,
4314,
301,
1434,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3320,
1164,
14521,
301,
1434,
12,
11890,
389,
2316,
548,
13,
1071,
288,
203,
3639,
2583,
12,
3211,
301,
1434,
774,
5541,
63,
67,
2316,
548,
65,
422,
1234,
18,
15330,
16,
315,
6225,
741,
486,
4953,
333,
4314,
301,
1434... |
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(a... | * @dev Initiate the bridge operation for some amount of tokens from msg.sender. The user should first call Approve method of the ERC677 token. @param token bridged token contract address. @param _receiver address that will receive the native tokens on the other network. @param _value amount of tokens to be transferred ... | function relayTokens(ERC677 token, address _receiver, uint256 _value) external {
_relayTokens(token, _receiver, _value);
}
| 1,401,902 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26615,
326,
10105,
1674,
364,
2690,
3844,
434,
2430,
628,
1234,
18,
15330,
18,
1021,
729,
1410,
1122,
745,
1716,
685,
537,
707,
434,
326,
4232,
39,
26,
4700,
1147,
18,
632,
891,
1147,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
18874,
5157,
12,
654,
39,
26,
4700,
1147,
16,
1758,
389,
24454,
16,
2254,
5034,
389,
1132,
13,
3903,
288,
203,
3639,
389,
2878,
528,
5157,
12,
2316,
16,
389,
24454,
16,
389,
1132,
1769,
203,
565,
289,
203,
203,
2,
-... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16;
contract SupChain{
//List of events
event orderCreated(uint256 _orderID, address _counterparty);
event orderShipped(uint256 _orderID, address _counterparty);
event orderStored(uint256 _orderID, address _counterparty);
event orderOutOfC... | Function allowing to get the desired status of an orderLocate the concerned status of an orderReturn all the status's variable | function getStatus(uint256 id, uint256 concernedStatusNumber) public view returns(StateType state, address cParty, address lParty, string memory device, string memory cLocation, int256 cTemp, string memory destination){
Status memory concernedStatus = orders[id].statutes[concernedStatusNumber];
retu... | 15,846,956 | [
1,
4625,
348,
7953,
560,
30,
4284,
15632,
358,
336,
326,
6049,
1267,
434,
392,
1353,
1333,
340,
326,
356,
2750,
11748,
1267,
434,
392,
1353,
990,
777,
326,
1267,
1807,
2190,
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,
5870,
12,
11890,
5034,
612,
16,
2254,
5034,
356,
2750,
11748,
1482,
1854,
13,
1071,
1476,
1135,
12,
1119,
559,
919,
16,
1758,
276,
17619,
16,
1758,
328,
17619,
16,
533,
3778,
2346,
16,
533,
3778,
276,
2735,
16,
509,
5... |
pragma solidity ^0.4.24;
// File: contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event Ownership... | * @dev Allows anyone to transfer the tokens once trading has started @param _to the recipient address of the tokens. @param _value number of tokens to be transfered./ | function transfer(address _to, uint _value) allowTransfer(msg.sender) public returns (bool){
return super.transfer(_to, _value);
}
| 572,231 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
1281,
476,
358,
7412,
326,
2430,
3647,
1284,
7459,
711,
5746,
632,
891,
389,
869,
326,
8027,
1758,
434,
326,
2430,
18,
632,
891,
389,
1132,
1300,
434,
2430,
358,
506,
7412,
329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
13,
1699,
5912,
12,
3576,
18,
15330,
13,
1071,
1135,
261,
6430,
15329,
203,
3639,
327,
2240,
18,
13866,
24899,
869,
16,
389,
1132,
1769,
203,
565,
289,
203,
203,
2,
-100,... |
pragma solidity 0.5.3;
import './ICerticolCA.sol';
import './ICerticolDAOToken.sol';
import 'openzeppelin-solidity/contracts/math/SafeMath.sol';
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol';
import 'openzeppelin-solidity/contracts/token/ERC20/IERC20.sol';
import 'openzeppelin-solidity/contracts/toke... | Event emitted when O10 was granted reward for PoSaT | event O10RewardGranted(address indexed O10, uint256 reward);
| 13,141,375 | [
1,
4625,
348,
7953,
560,
30,
225,
2587,
17826,
1347,
531,
2163,
1703,
17578,
19890,
364,
453,
31605,
69,
56,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
531,
2163,
17631,
1060,
14570,
12,
2867,
8808,
531,
2163,
16,
2254,
5034,
19890,
1769,
203,
2,
-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.4.21 <8.10.0;
pragma experimental ABIEncoderV2;
contract MainContract {
string [] ipfsHash;
address owner; //organizer
uint public best_submission_index;
uint public best_submission_accuracy = 0;
uint public best_model_accuracy;
uint public model_accu... | bool public use_test_data = false; Deadline for submitting solutions in terms of block size Deadline for revealing the testing dataset uint public reveal_test_data_groups_block_size = 17280; 3 days time frame Deadline for evaluating the submissions uint public init3_block_height; | contract MainContract {
string [] ipfsHash;
uint public best_submission_index;
uint public best_submission_accuracy = 0;
uint public best_model_accuracy;
uint public model_accuracy_criteria;
bool public use_train_data = false;
uint public sequence_len;
uint public future_predict_peroid;
string public... | 5,444,108 | [
1,
4625,
348,
7953,
560,
30,
225,
1426,
1071,
999,
67,
3813,
67,
892,
273,
629,
31,
23967,
1369,
364,
4879,
1787,
22567,
316,
6548,
434,
1203,
963,
23967,
1369,
364,
283,
24293,
310,
326,
7769,
3709,
2254,
1071,
283,
24293,
67,
3813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12740,
8924,
288,
203,
203,
225,
533,
5378,
2359,
2556,
2310,
31,
203,
225,
2254,
1071,
3796,
67,
12684,
67,
1615,
31,
203,
225,
2254,
1071,
3796,
67,
12684,
67,
25010,
273,
374,
31,
203,
225,
2254,
1071,
3796,
67,
2284,
... |
// SPDX-License-Identifier: GPL-3.0
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
... | mint a @param number of NFTs in presale | function mint(uint256 number, uint8 _v, bytes32 _r, bytes32 _s) onlyValidAccess(_v, _r, _s) public payable {
State saleState_ = saleState();
require(saleState_ != State.NoSale, "Sale in not open yet!");
require(numberOfTotalTokens + number <= maxTotalTokens - (maxReservedMints - _reservedMi... | 1,341,840 | [
1,
4625,
348,
7953,
560,
30,
312,
474,
279,
632,
891,
1300,
434,
423,
4464,
87,
316,
4075,
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... | [
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,
312,
474,
12,
11890,
5034,
1300,
16,
2254,
28,
389,
90,
16,
1731,
1578,
389,
86,
16,
1731,
1578,
389,
87,
13,
1338,
1556,
1862,
24899,
90,
16,
225,
389,
86,
16,
389,
87,
13,
1071,
8843,
429,
288,
203,
3639,
3287,
... |
pragma solidity 0.8.10;
/**
* @title Parameters
* @author @InsureDAO
* @notice This contract manages parameters of markets.
* SPDX-License-Identifier: GPL-3.0
*/
import "../interfaces/pool/IOwnership.sol";
import "../interfaces/pool/IParameters.sol";
import "../interfaces/pool/IPremiumModel.sol";
import "hardha... | * @notice get lock up period length @param _target target contract's address @return lock up period/ | function getLockup(address _target)
external
view
override
returns (uint256)
{
if (_lockup[_target] == 0) {
return _lockup[address(0)];
return _lockup[_target];
}
}
| 14,042,112 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
336,
2176,
731,
3879,
769,
632,
891,
389,
3299,
1018,
6835,
1807,
1758,
632,
2463,
2176,
731,
3879,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22206,
416,
12,
2867,
389,
3299,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
309,
261,
67,
739,
416,
63,
67,
3299,
65,
422,
374,
13,
288,
2... |
./partial_match/1/0x027bC3A29990aAED16F65a08C8cc3A92E0AFBAA4/sources/RARESwapRouter.sol | send liquidity to pair
| IRARESwapPair(pair).transferFrom(msg.sender, pair, liquidity); | 4,019,023 | [
1,
4625,
348,
7953,
560,
30,
225,
1366,
4501,
372,
24237,
358,
3082,
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,
467,
2849,
862,
12521,
4154,
12,
6017,
2934,
13866,
1265,
12,
3576,
18,
15330,
16,
3082,
16,
4501,
372,
24237,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.21;
import "./StandardTokenCrowdsale.sol";
import "../math/SafeMath.sol";
/**
* @title IndividuallyFixedCappedCrowdsale
* @dev Crowdsale with a fixed per-user caps. IndividuallyFixedCappedCrowdsale is developed based on
* OpenZeppelin's IndividuallyCappedCrowdsale.
*/
contract IndividuallyFix... | * @title IndividuallyFixedCappedCrowdsale @dev Crowdsale with a fixed per-user caps. IndividuallyFixedCappedCrowdsale is developed based on OpenZeppelin's IndividuallyCappedCrowdsale./ | contract IndividuallyFixedCappedCrowdsale is StandardTokenCrowdsale {
using SafeMath for uint256;
mapping(address => uint256) public contributions;
uint256 public individuallyFixedCap;
function IndividuallyFixedCappedCrowdsale(uint256 _individuallyFixedCap) public {
require(_individuallyFixedC... | 12,914,218 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
657,
2892,
350,
3452,
7505,
4664,
1845,
39,
492,
2377,
5349,
632,
5206,
385,
492,
2377,
5349,
598,
279,
5499,
1534,
17,
1355,
15788,
18,
657,
2892,
350,
3452,
7505,
4664,
1845,
39,
492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
657,
2892,
350,
3452,
7505,
4664,
1845,
39,
492,
2377,
5349,
353,
8263,
1345,
39,
492,
2377,
5349,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
13608,
61... |