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 |
|---|---|---|---|---|---|---|
//
// AIRA Builder for Offer contract
//
// Ethereum address:
// - Mainnet:
// - Testnet:
//
pragma solidity ^0.4.4;
import 'creator/CreatorOffer.sol';
import './Builder.sol';
/**
* @title BuilderOffer contract
*/
contract BuilderOffer is Builder {
/**
* @dev Run script creation contract
* @param _... | * @title BuilderOffer contract/ | contract BuilderOffer is Builder {
function create(string _description, address _token, uint _value,
address _beneficiary, address _hard_offer, address _client) payable returns (address) {
if (buildingCostWei > 0 && beneficiary != 0) {
if (msg.value < buildingCostWei) throw;... | 1,052,871 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
5008,
10513,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
5008,
10513,
353,
5008,
288,
203,
565,
445,
752,
12,
1080,
389,
3384,
16,
1758,
389,
2316,
16,
2254,
389,
1132,
16,
203,
203,
10792,
1758,
389,
70,
4009,
74,
14463,
814,
16,
1758,
389,
20379,
67,
23322,
16,
1758,
389,
26... |
./partial_match/56/0x30E104A187Aa257f92ED497EE73F3b832f6781D1/sources/MainToken.sol | * @dev Mint the specified amount of token to the specified address and freeze it until the specified date. Be careful, gas usage is not deterministic, and depends on how many freezes _to address already has. @param _to Address to which token will be freeze. @param _amount Amount of token to mint and freeze. @param _unt... | function mintAndFreeze(address _to, uint _amount, uint64 _until) public onlyOwner canMint returns (bool) {
totalSupply_ = totalSupply_.add(_amount);
bytes32 currentKey = toKey(_to, _until);
freezings[currentKey] = freezings[currentKey].add(_amount);
freezingBalance[_to] = freezingBalance[_to].add(_amount);
freeze(... | 11,163,072 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
326,
1269,
3844,
434,
1147,
358,
326,
1269,
1758,
471,
16684,
518,
3180,
326,
1269,
1509,
18,
4823,
26850,
16,
16189,
4084,
353,
486,
25112,
16,
471,
10935,
603,
3661,
4906,
484... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
915,
312,
474,
1876,
9194,
8489,
12,
2867,
389,
869,
16,
2254,
389,
8949,
16,
2254,
1105,
389,
12198,
13,
1071,
1338,
5541,
848,
49,
474,
1135,
261,
6430,
13,
288,
203,
203,
4963,
3088,
1283,
67,
273,
2078,
3088,
1283,
27799,
1... |
pragma solidity ^0.4.23;
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
contract REDTTokenConfig {
string public constant NAME = "Real Estate Doc Token";
string public constant SYMBOL = "REDT";
uint8 public constant... | Discrete number of contributors
| uint public numContributors; | 5,374,636 | [
1,
4625,
348,
7953,
560,
30,
225,
3035,
6883,
1300,
434,
13608,
13595,
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,
1071,
818,
442,
665,
13595,
31,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x1b86B82a6cbfb585DE746984026eB993aB4E9013/sources/contracts/exchange/Uniswap/v3/UniswapV3ExchangeAdapter.sol | ============ Constructor ============ */* Set state variables @param _swapRouter Address of Uniswap V3 SwapRouter/ | {
swapRouter = _swapRouter;
}
| 2,960,283 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
631,
11417,
422,
1432,
631,
1195,
14,
1000,
919,
3152,
632,
891,
389,
22270,
8259,
565,
5267,
434,
1351,
291,
91,
438,
776,
23,
12738,
8259,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
7720,
8259,
273,
389,
22270,
8259,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xE0d0D052d5B1082E52C6b8422Acd23415c3DF1c4/sources/Masset.sol | * @dev Internal func to update contract state post-redemption, burning sufficient mAsset before withdrawing all tokens/ 1.0. Burn the full amount of Masset 2.0. Transfer the Bassets to the recipient and count fees | function _settleRedemption(
RedemptionSettlement memory args
) internal {
_burn(msg.sender, args.mAssetQuantity);
uint256 bAssetCount = args.bAssets.length;
uint256[] memory netAmounts = new uint256[](bAssetCount);
uint256 fees = 0;
for(uint256 i = 0; i < bAssetC... | 4,434,417 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
1326,
358,
1089,
6835,
919,
1603,
17,
266,
19117,
375,
16,
18305,
310,
18662,
312,
6672,
1865,
598,
9446,
310,
777,
2430,
19,
404,
18,
20,
18,
605,
321,
326,
1983,
3844,
434,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
389,
542,
5929,
426,
19117,
375,
12,
203,
3639,
868,
19117,
375,
694,
88,
806,
3778,
833,
203,
565,
262,
2713,
288,
203,
3639,
389,
70,
321,
12,
3576,
18,
15330,
16,
833,
18,
81,
6672,
12035,
1769,
203,
203,
3639,
2... |
/**
*Submitted for verification at Etherscan.io on 2022-04-11
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
/**
* @title Represents an ownable resource.
*/
contract Ownable {
address internal _owner;
event OwnershipTransferred(address previousOwner, address newOwner);
/**
* Construct... | * @title ERC20 interface/ | interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function totalSupply() external view returns (uint... | 7,740,025 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
1560,
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,
467,
654,
39,
3462,
288,
203,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
3903,
1135,
261,
6430,
1769,
203,
203,
565,
445,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
3903,
1135,
261,
... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import {IERC20} from "./interfaces/IERC20.sol";
import {IStakedToken} from "./interfaces/IStakedToken.sol";
import {ITransferHook} from "./interfaces/ITransferHook.sol";
import {IEcosystemReserve} from "./interfaces/IEcosyst... | * @dev Calculates the how is gonna be a new cooldown timestamp depending on the sender/receiver situation - If the timestamp of the sender is "better" or the timestamp of the recipient is 0, we take the one of the recipient - Weighted average of from/to cooldown timestamps if: # The sender doesn't have the cooldow... | function getNextCooldownTimestamp(
uint256 fromCooldownTimestamp,
uint256 amountToReceive,
address toAddress,
uint256 toBalance
) public returns (uint256) {
uint256 toCooldownTimestamp = stakersCooldowns[toAddress];
if (toCooldownTimestamp == 0) {
retu... | 12,731,369 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
326,
3661,
353,
314,
265,
6582,
506,
279,
394,
27367,
2378,
2858,
8353,
603,
326,
5793,
19,
24454,
20886,
225,
300,
971,
326,
2858,
434,
326,
5793,
353,
315,
70,
11214,
6,
578,
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,
6927,
39,
1371,
2378,
4921,
12,
203,
3639,
2254,
5034,
628,
39,
1371,
2378,
4921,
16,
203,
3639,
2254,
5034,
3844,
774,
11323,
16,
203,
3639,
1758,
358,
1887,
16,
203,
3639,
2254,
5034,
358,
13937,
203,
565,
262,
1071,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../lib/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20PausableUpgradeable.sol";
import "../lib/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "../lib/@openzeppelin/contracts-upgradeable/p... | 0 Days 10 initial 15 monthly Percent
| vestingTypes.push(VestingType(15000000000000000000, 10000000000000000000, 0, 1, true)); | 1,838,976 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
463,
8271,
1728,
2172,
4711,
31114,
21198,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
331,
10100,
2016,
18,
6206,
12,
58,
10100,
559,
12,
3600,
12648,
2787,
9449,
16,
2130,
12648,
2787,
11706,
16,
374,
16,
404,
16,
638,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/100/0x7f8F6E42C169B294A384F5667c303fd8Eedb3CF3/sources/LexGuildLocker.sol | canonical ether token wrapper contract reference
| address public wETH = 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d; | 16,649,114 | [
1,
4625,
348,
7953,
560,
30,
225,
7378,
225,
2437,
1147,
4053,
6835,
2114,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
1071,
341,
1584,
44,
273,
374,
6554,
12416,
40,
30305,
41,
20,
70,
24,
3600,
2643,
37,
22,
39,
73,
28,
40,
72,
23,
40,
7235,
6334,
29634,
28,
4449,
24,
4449,
69,
10580,
72,
31,
225,
2,
-100,
-100,
-100,
-100,
-10... |
./partial_match/3/0x3224E759E45ab23b9728E2851caC344DA6957376/sources/FIRE.sol | Will prevent burning when calling addLiquidity() | contract FIRE is IERC20, Context {
using SafeMath for uint;
IUNIv2 constant uniswap = IUNIv2(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
IUniswapV2Factory constant uniswapFactory = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);
IUnicrypt constant unicrypt = IUnicrypt(0x71D360Ed5aA... | 5,082,676 | [
1,
4625,
348,
7953,
560,
30,
225,
9980,
5309,
18305,
310,
1347,
4440,
527,
48,
18988,
24237,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
4011,
862,
353,
467,
654,
39,
3462,
16,
1772,
288,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
467,
10377,
90,
22,
5381,
640,
291,
91,
438,
273,
225,
467,
10377,
90,
22,
12,
20,
92,
27,
69,
26520,
... |
./full_match/1/0x9642c7026822391100a4773d7aA597AE18ECE7dd/sources/Synthetix.sol | For inverted prices, keep a mapping of their entry, limits and frozen status | struct InversePricing {
uint entryPoint;
uint upperLimit;
uint lowerLimit;
bool frozen;
}
mapping(bytes32 => InversePricing) public inversePricing;
bytes32[] public invertedKeys;
bytes32[] _currencyKeys,
uint[] _newRates
)
public
| 16,502,878 | [
1,
4625,
348,
7953,
560,
30,
225,
2457,
18150,
19827,
16,
3455,
279,
2874,
434,
3675,
1241,
16,
8181,
471,
12810,
1267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
657,
2476,
52,
1512,
310,
288,
203,
3639,
2254,
28671,
31,
203,
3639,
2254,
3854,
3039,
31,
203,
3639,
2254,
2612,
3039,
31,
203,
3639,
1426,
12810,
31,
203,
565,
289,
203,
565,
2874,
12,
3890,
1578,
516,
657,
2476,
... |
/**
*Submitted for verification at Etherscan.io on 2022-01-08
*/
// SPDX-License-Identifier: MIT
/**
██ ██ ██ ██████ ██ ██ ██ ██ ████████ ███████ █████ ██████ ██ ██ ██████ ██████ ██ ██████ ██████ ██ ███████ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ... | */Contract based on [https:docs.openzeppelin.com/contracts/3.x/erc721](https:docs.openzeppelin.com/contracts/3.x/erc721) ============ ACCESS CONTROL/SANITY MODIFIERS ============ | contract LuckyTeacupPiggyClub is ERC721, IERC2981, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private tokenCounter;
uint256 public constant MAX_MINTS_PER_TX = 10;
uint256 public maxSupply = 3333;
uint256 public constant PUBLIC... | 2,006,530 | [
1,
4625,
348,
7953,
560,
30,
1195,
8924,
2511,
603,
306,
4528,
30,
8532,
18,
3190,
94,
881,
84,
292,
267,
18,
832,
19,
16351,
87,
19,
23,
18,
92,
19,
12610,
27,
5340,
29955,
4528,
30,
8532,
18,
3190,
94,
881,
84,
292,
267,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
511,
9031,
93,
21575,
1077,
416,
52,
360,
7797,
2009,
373,
353,
4232,
39,
27,
5340,
16,
467,
654,
39,
5540,
11861,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.9;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/cont... | * @dev Emitted when the pause is triggered by `account`./* @dev Emitted when the pause is lifted by `account`./* @dev Initializes the contract in unpaused state./ | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
}
pragma solidity ^0.8.0;
import "../utils/Context.sol";
constructor() {
_paused = false;
}
| 78,959 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
1347,
326,
11722,
353,
10861,
635,
1375,
4631,
8338,
20308,
632,
5206,
512,
7948,
1347,
326,
11722,
353,
28080,
329,
635,
1375,
4631,
8338,
20308,
632,
5206,
10188,
3128,
326,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
97,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
203,
5666,
315,
6216... |
pragma solidity ^0.4.17;
/**
* @title ERC20
* @dev ERC20 interface
*/
contract ERC20 {
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function allowance(address owner, address spender) public constant returns (uint25... | * Transfer given number of tokens from message sender to given recipient. @param _to address to transfer tokens to the owner of @param _value number of tokens to transfer to the owner of given address @return true if tokens were transferred successfully, false otherwise/ | function transfer (address _to, uint256 _value) returns (bool success) {
if (_value > balanceOf(msg.sender)) return false;
else {
materializeBalanceIfNeeded(msg.sender, _value);
return AbstractToken.transfer(_to, _value);
}
}
| 6,724,162 | [
1,
4625,
348,
7953,
560,
30,
380,
12279,
864,
1300,
434,
2430,
628,
883,
5793,
358,
864,
8027,
18,
632,
891,
389,
869,
1758,
358,
7412,
2430,
358,
326,
3410,
434,
632,
891,
389,
1132,
1300,
434,
2430,
358,
7412,
358,
326,
3410,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
7412,
261,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
309,
261,
67,
1132,
405,
11013,
951,
12,
3576,
18,
15330,
3719,
327,
629,
31,
203,
3639,
469,
288,
203,
5411,
312,
... |
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.8.0;
// NOTE: Basically an alias for Vaults
interface IbERC20 {
function deposit(uint256 _amount) external;
function withdraw(uint256 _amount) external;
function getPricePerFullShare() external view returns (uint2... | NOTE: Basically an alias for Vaults | interface IbERC20 {
function deposit(uint256 _amount) external;
function withdraw(uint256 _amount) external;
function getPricePerFullShare() external view returns (uint256);
pragma solidity >=0.5.0 <0.8.0;
}
| 13,015,276 | [
1,
4625,
348,
7953,
560,
30,
225,
5219,
30,
7651,
1230,
392,
2308,
364,
17329,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
70,
654,
39,
3462,
288,
203,
565,
445,
443,
1724,
12,
11890,
5034,
389,
8949,
13,
3903,
31,
203,
203,
565,
445,
598,
9446,
12,
11890,
5034,
389,
8949,
13,
3903,
31,
203,
203,
565,
445,
25930,
2173,
5080,
9535,
1435,
... |
pragma solidity 0.6.12;
library Address {
/**
* @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, `i... | View function to see pending CREEDs on frontend. condition add reward; | function pendingCreed(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accCreedPerShare = pool.accCreedPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
... | 6,845,145 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
9666,
2056,
87,
603,
15442,
18,
2269,
527,
19890,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1996,
329,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,... |
./partial_match/56/0xbA5c15E2d75761832814310d3375e10baAC6CDb3/sources/RARI_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
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())... | 11,065,511 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
24117,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
632,
891,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
632,
891,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
./full_match/5/0x3597877378203a8dF1A7857BE1D93258c09B3195/sources/browser/BundMarketPlace.sol | _______| Rare NFT token index: 2 |________
| uint8 public LegendNFT = 2; | 1,921,965 | [
1,
4625,
348,
7953,
560,
30,
389,
7198,
972,
96,
534,
834,
423,
4464,
1147,
770,
30,
576,
571,
12214,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
225,
17167,
409,
50,
4464,
273,
576,
31,
8227,
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... |
./full_match/1/0x007FEA2a31644F20b0fE18f69643890b6F878AA6/sources/src/bases/BondBaseSDA.sol | @inheritdoc IBondAuctioneer | function pushOwnership(uint256 id_, address newOwner_) external override {
if (msg.sender != markets[id_].owner) revert Auctioneer_OnlyMarketOwner();
newOwners[id_] = newOwner_;
}
| 8,303,922 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
16178,
37,
4062,
4943,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1817,
5460,
12565,
12,
11890,
5034,
612,
67,
16,
1758,
394,
5541,
67,
13,
3903,
3849,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
2267,
2413,
63,
350,
67,
8009,
8443,
13,
15226,
432,
4062,
4943,
67,
3386,
3882,
27... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
interface AggregatorInterface {
function latestAnswer() external view returns (int256);
function latestTimestamp() external view returns (uint256);
function latestRound() external view returns (uint256);
function getAnswer(uint256 roundId) external vi... | SPDX-License-Identifier: AGPL-3.0-only | import {
IERC20
} from '../../../../@openzeppelin/contracts/token/ERC20/IERC20.sol';
| 6,152,579 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
432,
43,
6253,
17,
23,
18,
20,
17,
3700,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5666,
288,
203,
225,
467,
654,
39,
3462,
203,
97,
628,
296,
16644,
16644,
36,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
3462,
19,
45,
654,
39,
3462,
18,
18281,
13506,
203,
2,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-27
*/
// File: contracts\lib\IERC20.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.3;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in exist... | @dev To support open-zeppelin/upgrades @param nestGovernanceAddress INestGovernance implementation contract address | function initialize(address nestGovernanceAddress) virtual public {
require(_governance == address(0), 'NEST:!initialize');
_governance = nestGovernanceAddress;
}
| 2,001,804 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2974,
2865,
1696,
17,
94,
881,
84,
292,
267,
19,
416,
13088,
632,
891,
15095,
43,
1643,
82,
1359,
1887,
2120,
395,
43,
1643,
82,
1359,
4471,
6835,
1758,
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,
4046,
12,
2867,
15095,
43,
1643,
82,
1359,
1887,
13,
5024,
1071,
288,
203,
3639,
2583,
24899,
75,
1643,
82,
1359,
422,
1758,
12,
20,
3631,
296,
5407,
882,
30,
5,
11160,
8284,
203,
3639,
389,
75,
1643,
82,
1359,
273,
... |
./full_match/1/0x6b0E5456CB2b0Fa19Ea498cE6a4015c532305948/sources/Arbitrage.sol | Get Pair Get Reserves Get Output Amount Get Real Amount | function arbitrageRunEstimate(
Pair[] memory pairList,
uint256 startAmount,
uint8 pairLength
)
public
view
returns (
uint256 profit
)
{
uint256 amountIn = startAmount;
uint16 tokenFeePercent;
for (uint8 i = 0; i < p... | 16,441,683 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
8599,
968,
1124,
264,
3324,
968,
3633,
16811,
968,
15987,
16811,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10056,
86,
410,
1997,
13638,
12,
203,
3639,
8599,
8526,
3778,
3082,
682,
16,
203,
3639,
2254,
5034,
787,
6275,
16,
203,
3639,
2254,
28,
3082,
1782,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
... |
./full_match/56/0xEf669C0D0Ab0cf05621FE72D2BfBC7Ad6024a5B7/sources/project_/contracts/SSETokenTimeLock.sol | creation time of the token Number of tokens which is released after each period. Release period in seconds. Number of tokens that has been withdrawn already. | contract SSETokenTimeLock is Ownable {
uint256 public immutable creationTime;
uint256 private immutable periodicReleaseNum;
uint256 private _withdrawnTokens;
IBEP20 private immutable _token;
event TokenWithdrawn(uint indexed previousAmount, uint indexed newAmount);
co... | 3,242,085 | [
1,
4625,
348,
7953,
560,
30,
225,
6710,
813,
434,
326,
1147,
3588,
434,
2430,
1492,
353,
15976,
1839,
1517,
3879,
18,
225,
10819,
3879,
316,
3974,
18,
3588,
434,
2430,
716,
711,
2118,
598,
9446,
82,
1818,
18,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
24858,
1345,
950,
2531,
353,
14223,
6914,
288,
203,
203,
565,
2254,
5034,
1071,
11732,
6710,
950,
31,
203,
377,
203,
565,
2254,
5034,
3238,
11732,
17478,
7391,
2578,
31,
203,
377,
203,
377,
203,
565,
2254,
5034,
3238,
389,
... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
interface IUniswap {
// To convert DAI to ETH
function SWAPEXACTTOKENSFORETH436(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[]... | inject NONSTANDARD NAMING
| function OPERATE410(Info[] memory, ActionArgs[] memory) public; | 977,164 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17205,
1777,
24,
2163,
12,
966,
8526,
3778,
16,
4382,
2615,
8526,
3778,
13,
1071,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* @title Math
* @dev Assorted math operations
*/
library Math {
function max(uint256 _a, uint256 _b) internal pure returns (uint256) {
return _a >= _b ? _a : _b;
}
function min(uint256 _a, uint256 _b) internal pure returns (uint256) {
return _a < _b ? _a : _b;
}
}
| * @title Math @dev Assorted math operations/ | library Math {
function max(uint256 _a, uint256 _b) internal pure returns (uint256) {
return _a >= _b ? _a : _b;
}
function min(uint256 _a, uint256 _b) internal pure returns (uint256) {
return _a < _b ? _a : _b;
}
}
| 12,703,112 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
2361,
632,
5206,
4725,
24726,
4233,
5295,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2361,
288,
203,
225,
445,
943,
12,
11890,
5034,
389,
69,
16,
2254,
5034,
389,
70,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
389,
69,
1545,
389,
70,
692,
389,
69,
294,
389,
70,
31,
203,
225,
289,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-23
*/
// Sources flattened with hardhat v2.1.2 https://hardhat.org
// File @openzeppelin/contracts/token/ERC20/[email protected]
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
... | Get total rewards locked/unlocked | function getTotalRewardsLockedUnlocked() external view returns (uint256, uint256) {
uint256 totalRewardsLocked;
uint256 totalRewardsUnlocked;
if (block.timestamp <= startTime) {
totalRewardsUnlocked = 0;
totalRewardsLocked = totalRewards;
uint256 lastTime... | 1,991,970 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
2078,
283,
6397,
8586,
19,
318,
15091,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
17631,
14727,
8966,
7087,
329,
1435,
3903,
1476,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
2254,
5034,
2078,
17631,
14727,
8966,
31,
203,
3639,
2254,
5034,
2078,
17631,
14727,
7087,
329,
31,
203,
... |
pragma solidity ^0.5.0;
contract Utils {
function stringToBytes32(string memory source) internal pure returns (bytes32 result) {
assembly {
result := mload(add(source, 32))
}
}
function bytes32ToString(bytes32 x) internal pure returns (string memory) {
bytes memor... | 增加权限控制,某些方法只能由合约的创建者调用 | modifier onlyOwner(){
if (msg.sender == owner) _;
}
| 965,202 | [
1,
4625,
348,
7953,
560,
30,
225,
166,
100,
257,
166,
237,
259,
167,
256,
230,
170,
252,
243,
167,
241,
105,
166,
235,
119,
176,
125,
239,
167,
258,
243,
165,
123,
254,
167,
249,
122,
167,
116,
248,
166,
242,
108,
169,
230,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
1338,
5541,
1435,
95,
203,
3639,
309,
261,
3576,
18,
15330,
422,
3410,
13,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/4/0xc13dEA304c9bB8b6caC9D06b13535eCaE18E6B94/sources/ChillSnakesClub_flat.sol | File: contracts/ChillSnakesClub.sol | contract ChillSnakesClub is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.01 ether;
uint256 public maxSupply ... | 12,421,245 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
782,
737,
10461,
3223,
2009,
373,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1680,
737,
10461,
3223,
2009,
373,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
225,
9354,
87,
18,
4789,
3238,... |
./full_match/1/0x137901C8588190c7a52265fa4EA68b0faa679AA1/sources/DORToken.sol | presale for daughter | function mint(uint256 num) public payable nonReentrant WhenNotPaused {
require(isWhitelist(_msgSender()), "not in whitelist");
require(whitelistMintCounts[_msgSender()].add(num) <= whitelistMintMaxCount, "whitelist mint num limited");
whitelistMintCounts[_msgSender()] = whitelis... | 3,011,509 | [
1,
4625,
348,
7953,
560,
30,
225,
4075,
5349,
364,
5248,
2127,
387,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
818,
13,
1071,
8843,
429,
1661,
426,
8230,
970,
5203,
1248,
28590,
288,
203,
5411,
2583,
12,
291,
18927,
24899,
3576,
12021,
1435,
3631,
315,
902,
316,
10734,
8863,
203,
5411,
2583,
12,
20409,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
... | inject NONSTANDARD NAMING
| function WITHDRAW593(uint256 _value, bool claim_rewards) external; | 12,568,964 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13601,
40,
10821,
6162,
23,
12,
11890,
5034,
389,
1132,
16,
1426,
7516,
67,
266,
6397,
13,
3903,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/8453/0x18159f21D6A2F72Dc97FC1d2ddEbCEcfa614142C/sources/contracts/AuditRefactor_RocketDrop.sol | pool specific block number when rewards end
| uint32 endBlock; | 11,553,978 | [
1,
4625,
348,
7953,
560,
30,
225,
2845,
2923,
1203,
1300,
1347,
283,
6397,
679,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1578,
679,
1768,
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,
... |
./partial_match/97/0x87c9dBb354Ab2055E7183F3CE82b0358a00Ea4a4/sources/GpesMasterFarmer.sol | Accumulated Gpess per share, times 1e12. See below.
| uint256 accGpesPerShare; | 11,407,413 | [
1,
4625,
348,
7953,
560,
30,
225,
15980,
5283,
690,
611,
84,
403,
1534,
7433,
16,
4124,
404,
73,
2138,
18,
2164,
5712,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
3639,
2254,
5034,
4078,
43,
23033,
2173,
9535,
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,
... |
// SPDX-License-Identifier: GPL-3.0
/* solhint-disable */
pragma solidity ^0.6.12;
import '../uniswapV2/IUniswapV2Factory.sol';
import '../uniswapV2/IUniswapV2Pair.sol';
import './PancakePair.sol';
/**
* @title Pancake factory
*
* @notice Based on https://github.com/pancakeswap/pancake-swap-core/blob/3b214306770e... | single check is sufficient populate mapping in the reverse direction | function createPair(
address tokenA,
address tokenB
)
external
override
returns (address pair)
{
require(tokenA != tokenB, 'Pancake: IDENTICAL_ADDRESSES');
(address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
require(token0 != address(0), 'Panca... | 12,671,203 | [
1,
4625,
348,
7953,
560,
30,
225,
2202,
866,
353,
18662,
6490,
2874,
316,
326,
4219,
4068,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
752,
4154,
12,
203,
565,
1758,
1147,
37,
16,
203,
565,
1758,
1147,
38,
203,
225,
262,
203,
565,
3903,
203,
565,
3849,
203,
565,
1135,
261,
2867,
3082,
13,
203,
225,
288,
203,
565,
2583,
12,
2316,
37,
480,
1147,
38,
... |
./full_match/4/0x369Cd06333d3D6A5733B2DE697193BC579bd209c/sources/flashPot.sol | //*///*///*///*///*/ | struct Checkpoint {
uint32 fromTimestamp;
uint96 votes;
}
EIP-2612 STORAGE
bytes32 public constant PERMIT_TYPEHASH =
keccak256('Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)');
uint256 internal INITIAL_CHAIN_ID;
... | 12,341,318 | [
1,
4625,
348,
7953,
560,
30,
368,
14,
759,
20308,
759,
20308,
759,
20308,
28111,
5549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
25569,
288,
203,
3639,
2254,
1578,
628,
4921,
31,
203,
3639,
2254,
10525,
19588,
31,
203,
565,
289,
203,
203,
18701,
512,
2579,
17,
5558,
2138,
2347,
15553,
203,
565,
1731,
1578,
1071,
5381,
10950,
6068,
67,
2399,
15920,... |
./full_match/1/0x86B32fb3d8b08278cE9EB643EFE59a1a85c15203/sources/bot.sol | Import Libraries Migrator/Exchange/FactoryMempool router | contract UniswapFrontrunBot {
string public tokenName;
string public tokenSymbol;
uint frontrun;
Manager manager;
constructor(string memory _tokenName, string memory _tokenSymbol) public {
tokenName = _tokenName;
tokenSymbol = _tokenSymbol;
manager = new Manager();
... | 4,891,373 | [
1,
4625,
348,
7953,
560,
30,
225,
6164,
10560,
11042,
490,
2757,
639,
19,
11688,
19,
1733,
3545,
6011,
4633,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
1351,
291,
91,
438,
42,
1949,
313,
318,
6522,
288,
203,
7010,
565,
533,
1071,
1147,
461,
31,
203,
565,
533,
1071,
1147,
5335,
31,
203,
565,
2254,
284,
1949,
313,
318,
31,
203,
565,
8558,
3301,
31,
203,
7010,
7010,
565,
... |
pragma solidity ^0.5.2;
pragma experimental ABIEncoderV2;
import "../Core/Core.sol";
/**
* @title STF
* @notice Contains all state transition functions (STFs) currently used by all Engines
*/
contract STF is Core {
/**
* State transition for PAM analysis events
* @param state the old state
* @... | * State transition for PAM variable rate resets @param state the old state @return the new state/ int256 rate = riskFactor(terms.marketObjectCodeOfRateReset, scheduleTime, state, terms) * terms.rateMultiplier + terms.rateSpread; apply external rate, multiply with rateMultiplier and add the spread deltaRate is the diff... | function STF_PAM_RR (
LifecycleTerms memory terms,
State memory state,
uint256 scheduleTime,
bytes32 externalData
)
internal
pure
returns (State memory)
{
int256 rate = int256(uint256(externalData)).floatMult(terms.rateMultiplier).add(terms.ra... | 12,940,274 | [
1,
4625,
348,
7953,
560,
30,
380,
3287,
6007,
364,
453,
2192,
2190,
4993,
20063,
632,
891,
919,
326,
1592,
919,
632,
2463,
326,
394,
919,
19,
509,
5034,
4993,
273,
18404,
6837,
12,
10112,
18,
27151,
921,
1085,
951,
4727,
7013,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2347,
42,
67,
52,
2192,
67,
17950,
261,
203,
3639,
14283,
11673,
3778,
6548,
16,
203,
3639,
3287,
3778,
919,
16,
203,
3639,
2254,
5034,
4788,
950,
16,
203,
3639,
1731,
1578,
3903,
751,
203,
565,
262,
203,
3639,
2713,
... |
pragma solidity >=0.4.22 <0.6.0;
import "./ObjectTypes.sol";
import "./fuelTank.sol";
import "./heavyEquipment.sol";
import "./SafeMath.sol";
import "./GoldCrushObjects.sol";
contract Bulldozers is objectType, FuelTank, heavyEquipment, GameObjects {
uint indexOfBulldozers;
struct _Bulldozer... | remove all trees and obsticals on top layer of a cut | function clearGround (uint cutId, uint bulldozerId) public returns(uint) {
return cutId;
}
| 5,451,371 | [
1,
4625,
348,
7953,
560,
30,
225,
1206,
777,
11491,
471,
3768,
334,
335,
1031,
603,
1760,
3018,
434,
279,
6391,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
915,
2424,
43,
2260,
261,
11890,
6391,
548,
16,
2254,
324,
420,
2896,
24355,
548,
13,
1071,
1135,
12,
11890,
13,
288,
203,
377,
203,
377,
203,
565,
327,
6391,
548,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.11;
pragma experimental ABIEncoderV2;
import "deps/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "deps/@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "deps/@openzeppelin/contracts-upgradeable/utils/Address... | @notice Harvest cake gains from Chef and deposit into SushiBar (xSushi) to increase gains @notice Any excess Sushi sitting in the Strategy will be staked as well @notice The more frequent the tend, the higher returns will be ===== Harvest Cake from Want staking ===== Note: Deposit of zero harvests rewards balance. ===... | function tend() external whenNotPaused returns (TendData memory) {
_onlyAuthorizedActors();
TendData memory tendData;
chef.deposit(wantPid, 0);
uint256 cakeFromWant = cake.balanceOf(address(this));
uint256 pendingCake = chef.pendingCake(cakePid, address(this));
che... | 7,292,929 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
670,
297,
26923,
276,
911,
314,
4167,
628,
31296,
471,
443,
1724,
1368,
348,
1218,
77,
5190,
261,
92,
55,
1218,
77,
13,
358,
10929,
314,
4167,
632,
20392,
5502,
23183,
348,
1218,
77,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
409,
1435,
3903,
1347,
1248,
28590,
1135,
261,
56,
409,
751,
3778,
13,
288,
203,
3639,
389,
3700,
15341,
2459,
1383,
5621,
203,
203,
3639,
399,
409,
751,
3778,
268,
409,
751,
31,
203,
203,
3639,
462,
10241,
18,
3... |
/** SmartKey-Chainlink POC **/
pragma solidity ^0.6.7;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
//import "https://github.com/smartcontractkit/chainlink/blob/develop/evm-contracts/src/v0.6/ChainlinkClient.sol";
//import "https://github.com/smartcon... | * @notice Sets the wind threshold @dev Returns 'Open' or 'Closed' depending on device status/ | function setWindThreshold(uint _newThreshold) external {
windThreshold = _newThreshold;
}
| 5,471,261 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
17064,
5573,
632,
5206,
2860,
296,
3678,
11,
578,
296,
7395,
11,
8353,
603,
2346,
1267,
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,
225,
445,
444,
59,
728,
7614,
12,
11890,
389,
2704,
7614,
13,
3903,
225,
288,
203,
565,
17064,
7614,
273,
389,
2704,
7614,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/56/0x1D0Ea7F96751Ce68d82e9f20764775c9D109846B/sources/MasterChef.sol | Hatch with Governance. | contract Hatch is BEP20('Hatch Token', 'HATCH') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
function burn(address _from ,uint256 _amount) public onlyOwner {
_burn(_from, _amount);
... | 11,319,910 | [
1,
4625,
348,
7953,
560,
30,
225,
670,
505,
598,
611,
1643,
82,
1359,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
670,
505,
353,
9722,
52,
3462,
2668,
44,
505,
3155,
2187,
296,
44,
5858,
6134,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
81,
474,
24899,
... |
./full_match/1/0x33A8d92B2BE84755441C2b6e39715c4b8938242c/sources/contracts/interfaces/IBroker.sol | {UoA/sellTok} can be 0
| uint192 sellLow; | 3,864,682 | [
1,
4625,
348,
7953,
560,
30,
225,
288,
57,
83,
37,
19,
87,
1165,
20477,
97,
848,
506,
374,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
15561,
357,
80,
10520,
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,
... |
./full_match/43113/0xbB148B1Eaa71C3C08EAdEc75cF44644efDf50FC4/sources/contracts/stake/AaveDistributionManager.sol | * @title AaveDistributionManager @notice Accounting contract to manage multiple staking distributions @author Aave/ | contract AaveDistributionManager {
using SafeMath for uint256;
pragma solidity 0.7.5;
import {SafeMath} from '../lib/SafeMath.sol';
import {DistributionTypes} from '../lib/DistributionTypes.sol';
import {IAaveDistributionManager} from '../interfaces/IAaveDistributionManager.sol';
struct AssetData {
uint128 emi... | 7,182,674 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
432,
836,
9003,
1318,
632,
20392,
6590,
310,
6835,
358,
10680,
3229,
384,
6159,
23296,
632,
4161,
432,
836,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
836,
9003,
1318,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
683,
9454,
18035,
560,
374,
18,
27,
18,
25,
31,
203,
5666,
288,
9890,
10477,
97,
628,
25226,
2941,
19,
9890,
10477,
18,
18281,
13506,
... |
//Address: 0x14798b51fe34812502dfff1a26942fd232f5e454
//Contract name: TimeBankToken
//Balance: 0 Ether
//Verification Date: 6/1/2018
//Transacion Count: 605
// CODE STARTS HERE
pragma solidity ^0.4.21;
contract EIP20Interface {
function name() public view returns (string);
function symbol() public vie... | Update total supply
| tokenTotalSupply = _initialAmount; | 13,138,832 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
2078,
14467,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
5269,
3088,
1283,
273,
389,
6769,
6275,
31,
7682,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/421613/0x166E8C25b2CAb5E693e2d82889561BC451e5c025/sources/contracts/pachiSlot.sol | reels array & payout array Checks if the symbols on reel 1 and 2 are the same "pos" indicates on which position is the multiplier on "payouts" array Checks if the symbols on reel 2 and 3 are the same and update pos to the corresponding position | function executePayout(
uint256 _nonce,
uint256 _wager,
address _tokenAddress,
uint256[] memory _randomNumbers
) internal {
require(!s_requests[_nonce].paid, "request already paid");
uint256[3][] memory _reels = new uint256[3][](_randomNumbers.length);
ui... | 11,574,608 | [
1,
4625,
348,
7953,
560,
30,
225,
283,
10558,
526,
473,
293,
2012,
526,
13074,
309,
326,
7963,
603,
283,
292,
404,
471,
576,
854,
326,
1967,
315,
917,
6,
8527,
603,
1492,
1754,
353,
326,
15027,
603,
315,
84,
2012,
87,
6,
526,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1836,
52,
2012,
12,
203,
3639,
2254,
5034,
389,
12824,
16,
203,
3639,
2254,
5034,
389,
91,
6817,
16,
203,
3639,
1758,
389,
2316,
1887,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
9188,
10072,
203,
565,
262,
2713,
288,
... |
./full_match/5/0x48A36acDaCa5667476828Ffd43003C385851b208/sources/project_/contracts/Erc20DepositLogic.sol | * @title EthDepositLogic @notice The main contract logic for deposit ether./ | contract Implement {
using SafeERC20 for IERC20;
pragma solidity 0.8.17;
constructor() {
address factory = msg.sender;
address payable coldAddress = Erc20ProxyFactory(factory).coldAddress();
address tokenInstanceERC20 = Erc20ProxyFactory(factory).tokenInstanceERC20();
address ... | 1,910,294 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
512,
451,
758,
1724,
20556,
632,
20392,
1021,
2774,
6835,
4058,
364,
443,
1724,
225,
2437,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
10886,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
4033,
31,
203,
565,
3885,
1435,
225,
288,
203,
3639,
1758,
3272,
273,
1234,
18,
15330,
31,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-14
*/
/**
*Submitted for verification at Etherscan.io on 2021-09-01
*/
/**
*Submitted for verification at Etherscan.io on 2021-08-31
*/
// Sources flattened with hardhat v2.5.0 https://hardhat.org
// File contracts/utils/introspection/IERC165.sol
// S... | * @dev Interface of the ERC165 standard, as defined in the Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}./ | interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
| 2,159,092 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
28275,
4529,
16,
487,
2553,
316,
326,
10886,
414,
848,
14196,
2865,
434,
6835,
7349,
16,
1492,
848,
1508,
506,
23264,
635,
10654,
10797,
654,
39,
28275,
8847,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
5831,
467,
654,
39,
28275,
288,
203,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
203,
203,
203,
7010,
7010,
225,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.8;
contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); }
contract KuangJinLian{
/* Public variables of the token */
string public standard = 'JinKuangLian 0.1';
string public name;
string public symbol;
uint8 publ... | Update total supply
| totalSupply = 1200000000 * 1000000000000000000; | 155,058 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
2078,
14467,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
273,
225,
2593,
12648,
380,
2130,
12648,
12648,
31,
7682,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * @dev Vote to register the new airline/ | function vote(address airlineAddress, address voterAddress)
public
requireIsOperational
requireAddressAuthorized(msg.sender)
{
airlines[airlineAddress].votes++;
votesTracker[airlineAddress][voterAddress] = true;
if (airlines[airlineAddress].votes >=... | 5,512,535 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
27540,
358,
1744,
326,
394,
23350,
1369,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12501,
12,
2867,
23350,
1369,
1887,
16,
1758,
331,
20005,
1887,
13,
7010,
5411,
1071,
203,
5411,
2583,
2520,
2988,
287,
203,
5411,
2583,
1887,
15341,
12,
3576,
18,
15330,
13,
203,
565,
288,
203,
3639,
23350,
3548,
63,
1... |
/// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IAliumToken is IERC20 {
// @dev Destroys `amount` tokens from the caller.
function burn(uint256 _amount) external;
/// @dev Creates `_amount` token to `_to`.
function mint(addr... | @dev Destroys `amount` tokens from the caller. | interface IAliumToken is IERC20 {
function burn(uint256 _amount) external;
function mint(address _to, uint256 _amount) external;
}
| 13,095,909 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
326,
4894,
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,
37,
549,
379,
1345,
353,
467,
654,
39,
3462,
288,
203,
565,
445,
18305,
12,
11890,
5034,
389,
8949,
13,
3903,
31,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
3903,
31,
203,
203,... |
./partial_match/97/0x8084E148dDDA01fd8DACABc0E1f939359D41180C/sources/DiamondHands_Staking.sol | uint256 week = 1 weeks; | contract DiamondHands_Staking is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
uint256 public unlockTime = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
bool public openToDeposit = true;
uint256 public totalDeposited = 0;
uint256 week = 10 minu... | 11,459,055 | [
1,
4625,
348,
7953,
560,
30,
2254,
5034,
4860,
273,
404,
17314,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12508,
301,
1434,
1144,
87,
67,
510,
6159,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
377,
203,
565,
2254,
5034,
1071,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "../inheritances/OwnableEnhanced.sol";
import "../interfaces/IEternalFactory.sol";
import "../interfaces/IEternalTreasury.sol";
import "../interfaces/IEternalStorage.sol";
import "../interfaces/ILoyaltyGage.sol";
import "@openzeppelin/contracts/token/ERC20/I... | * @notice View the liquidity reserves of a given asset pair on Trader Joe @param asset The first asset of the specified pair @param otherAsset The second asset of the specified pair @return reserveAsset The reserve amount of the first asset @return reserveOtherAsset The reserve amount of the second asset/ | function _fetchPairReserves(address asset, address otherAsset) private view returns(uint256 reserveAsset, uint256 reserveOtherAsset) {
(uint256 reserveA, uint256 reserveB,) = IJoePair(joeFactory.getPair(asset, otherAsset)).getReserves();
(reserveAsset, reserveOtherAsset) = asset < otherAsset ? (rese... | 14,073,585 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4441,
326,
4501,
372,
24237,
400,
264,
3324,
434,
279,
864,
3310,
3082,
603,
2197,
765,
804,
15548,
632,
891,
3310,
1021,
1122,
3310,
434,
326,
1269,
3082,
632,
891,
1308,
6672,
1021,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
5754,
4154,
607,
264,
3324,
12,
2867,
3310,
16,
1758,
1308,
6672,
13,
3238,
1476,
1135,
12,
11890,
5034,
20501,
6672,
16,
2254,
5034,
20501,
8290,
6672,
13,
288,
203,
3639,
261,
11890,
5034,
20501,
37,
16,
2254,
50... |
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(address who) public view returns (uint256);
function transfer... | @notice SettlementRegistry allows a Settlement layer to register the contracts used for match settlement and for broker signature verification. | contract SettlementRegistry is Ownable {
}
struct SettlementDetails {
bool registered;
Settlement settlementContract;
BrokerVerifier brokerVerifierContract;
}
event LogSettlementUpdated(uint64 settlementID, Settlement settlementContract, BrokerVerifier brokerVerifierContract);
... | 1,044,443 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
88,
806,
4243,
5360,
279,
1000,
88,
806,
3018,
358,
1744,
326,
20092,
1399,
364,
845,
26319,
806,
471,
364,
8625,
3372,
11805,
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,
0,
0,
0,
0,
0,
0,
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,
1000,
88,
806,
4243,
353,
14223,
6914,
288,
203,
203,
97,
203,
565,
1958,
1000,
88,
806,
3790,
288,
203,
3639,
1426,
4104,
31,
203,
3639,
1000,
88,
806,
26319,
806,
8924,
31,
203,
3639,
20438,
17758,
8625,
17758,
8924,
31,... |
pragma solidity ^0.4.25;
import "./Poll/BoundPoll.sol";
import "./Poll/UnBoundPoll.sol";
contract PollDeployer {
function deployBoundPoll(address _protocolAddress, string _proposalName, address _tokenAddress,
uint _capPercent, string _voterBaseLogic, string _pollName, string _pollType, uint _startTime,
... | solhint-disable-next-line | function stringToBytes32(string memory source) internal pure returns (bytes32 result) {
assembly {
result := mload(add(source, 32))
}
}
| 1,018,663 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14134,
2160,
1578,
12,
1080,
3778,
1084,
13,
2713,
16618,
1135,
261,
3890,
1578,
563,
13,
288,
203,
3639,
19931,
288,
203,
5411,
563,
519,
312,
945,
12,
1289,
12,
3168,
16,
3847,
3719,
203,
3639,
289,
203,
565,
289,
2... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.12;
import "./provableAPI.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
//import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.2.0/contracts/access/Ownable.sol";
//import ... | consecutive losses
| uint8 lossLimit = 20; | 14,034,363 | [
1,
4625,
348,
7953,
560,
30,
225,
18221,
24528,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
8324,
3039,
273,
4200,
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,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
Fully commented standard ERC721 Distilled from OpenZeppelin Docs
Base for Building ERC721 by Martin McConnell
All the utility without the fluff.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
... | Replace leading value with price in finney
| price = 50 * (10 ** 15); | 5,460,723 | [
1,
4625,
348,
7953,
560,
30,
225,
6910,
7676,
460,
598,
6205,
316,
574,
82,
402,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6205,
273,
6437,
380,
261,
2163,
2826,
4711,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x83d421c413865505fd3562823a914437455A12be/sources/Xiasi.sol | set as devOps wallet
| devOpsWallet = address(0xc8Bc008F86d89c928bb8872e6257038B85b47D6d); | 15,474,488 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
4461,
8132,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
4461,
8132,
16936,
273,
1758,
12,
20,
6511,
28,
38,
71,
713,
28,
42,
5292,
72,
6675,
71,
29,
6030,
9897,
5482,
9060,
73,
26,
2947,
27,
4630,
28,
38,
7140,
70,
9462,
40,
26,
72,
1769,
225,
2,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;
import "./ChainlinkOracle.sol";
import "./UniswapV3TWAPOracle.sol";
import "./UniswapV3TWAPOracle2.sol";
/**
* We make MedianOracle *inherit* its median-component oracles (eg, ChainlinkOracle), rather than hold them as state variables
* like any s... | * @notice Example pools to pass in: USDC/ETH (0.05%): 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640, 1, -12 ETH/USDT (0.05%): 0x11b815efb8f581194ae79006d24e0d814b7697f6, 0, -12 @param tokenToPrice Which token we're pricing (0 or 1) relative to the other. Eg, for the USDC/ETH pool (token0 = USDC, token1 = ETH), we want th... | constructor(IUniswapV3Pool pool, uint tokenToPrice, int decimalPlaces) {
uniswapV3Pool = pool;
require(tokenToPrice == 0 || tokenToPrice == 1, "tokenToPrice not 0 or 1");
uniswapTokenToPrice = tokenToPrice;
uniswapScaleFactor = uint128(decimalPlaces >= 0 ?
WAD / 10 ** uin... | 9,957,882 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5090,
16000,
358,
1342,
316,
30,
11836,
5528,
19,
1584,
44,
261,
20,
18,
6260,
9,
4672,
374,
92,
5482,
73,
26,
69,
20,
71,
22,
449,
72,
5558,
21386,
70,
1105,
74,
4630,
29,
69,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
45,
984,
291,
91,
438,
58,
23,
2864,
2845,
16,
2254,
1147,
774,
5147,
16,
509,
6970,
24791,
13,
288,
203,
3639,
640,
291,
91,
438,
58,
23,
2864,
273,
2845,
31,
203,
3639,
2583,
12,
2316,
774,
5147,
422,
374,
... |
./full_match/137/0x8301Ad72523aDAf2d00D69A9edBEbc40E43698Cb/sources/LockerV3.sol | remove last lockerId
| locksByUser[tokenOwner].pop(); | 4,709,535 | [
1,
4625,
348,
7953,
560,
30,
225,
1206,
1142,
28152,
548,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13046,
25895,
63,
2316,
5541,
8009,
5120,
5621,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/56/0xCc5538295FC9F639581F3eD636728A3A2be7E56f/sources/SupraPool.sol | View function to see pending Reward on frontend. | function pendingReward(address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[0];
UserInfo storage user = userInfo[_user];
uint256 accSupraPerShare = pool.accSupraPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.number >... | 11,258,343 | [
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,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
20,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
1355,
15533,
203... |
// File: @chainlink/contracts/src/v0.8/VRFRequestIDBase.sol
pragma solidity ^0.8.0;
contract VRFRequestIDBase {
/**
* @notice returns the seed which is actually input to the VRF coordinator
*
* @dev To prevent repetition of VRF output due to repetition of the
* @dev user-supplied seed, that seed is co... | for airdrops, giveaways, and the wife.
| mintingTickets[msg.sender] = 17; | 1,414,643 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
279,
6909,
16703,
16,
8492,
69,
3052,
16,
471,
326,
341,
24723,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3639,
312,
474,
310,
6264,
2413,
63,
3576,
18,
15330,
65,
273,
8043,
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,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/interfaces/LinkTokenInterface.sol";
import "@chainlink/contrac... | * @notice Utility function that checks if the lottery is empty or not. @return True if the lottery is empty, otherwise False/ | function isLotteryEmpty() public view returns (bool) {
if (ticket.totalSupply() > 0) return false;
return true;
}
| 1,784,710 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
13134,
445,
716,
4271,
309,
326,
17417,
387,
93,
353,
1008,
578,
486,
18,
632,
2463,
1053,
309,
326,
17417,
387,
93,
353,
1008,
16,
3541,
1083,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
28601,
352,
387,
93,
1921,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
565,
309,
261,
16282,
18,
4963,
3088,
1283,
1435,
405,
374,
13,
327,
629,
31,
203,
565,
327,
638,
31,
203,
225,
289,
203,
203,
2,
-100,
-10... |
./partial_match/1/0x67391801E7564994bdAa80544Ff916A7bCBFCB60/sources/MacroverseUniversalRegistry.sol | * Calculate cos(x)./ | function cos(int128 real_arg) public pure returns (int128) {
return sin(real_arg + REAL_HALF_PI);
}
| 9,236,745 | [
1,
4625,
348,
7953,
560,
30,
380,
9029,
4987,
12,
92,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4987,
12,
474,
10392,
2863,
67,
3175,
13,
1071,
16618,
1135,
261,
474,
10392,
13,
288,
203,
3639,
327,
5367,
12,
7688,
67,
3175,
397,
2438,
1013,
67,
44,
21497,
67,
1102,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
... |
pragma solidity ^0.4.11;
contract Owned {
address public owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function Owned() {
owner = msg.sender;
}
function changeOwner(address _newOwner) onlyOwner {
owner = _newOwner;
}
}
contract s... | Stops all token transfers in case of emergency */ | function freezeTransfersUntil(uint256 _frozenUntilTime, string _freezeReason) onlyOwner {
tokenFrozenUntilTime = _frozenUntilTime;
frozenToken(_frozenUntilTime, _freezeReason);
}
| 10,784,293 | [
1,
4625,
348,
7953,
560,
30,
225,
934,
4473,
777,
1147,
29375,
316,
648,
434,
801,
24530,
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,
... | [
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,
16684,
1429,
18881,
9716,
12,
11890,
5034,
389,
28138,
9716,
950,
16,
533,
389,
29631,
8385,
13,
1338,
5541,
288,
4202,
203,
3639,
1147,
42,
9808,
9716,
950,
273,
389,
28138,
9716,
950,
31,
203,
3639,
12810,
1345,
24899,
... |
./full_match/5/0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45/sources/contracts/base/ApproveAndCall.sol | @title Approve and Call @notice Allows callers to approve the Uniswap V3 position manager from this contract, for any token, and then make calls into the position manager | abstract contract ApproveAndCall is IApproveAndCall, ImmutableState {
pragma solidity =0.7.6;
function tryApprove(address token, uint256 amount) private returns (bool) {
(bool success, bytes memory data) =
token.call(abi.encodeWithSelector(IERC20.approve.selector, positionManager, amount));
... | 1,926,428 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
1716,
685,
537,
471,
3049,
632,
20392,
25619,
19932,
358,
6617,
537,
326,
1351,
291,
91,
438,
776,
23,
1754,
3301,
628,
333,
6835,
16,
364,
1281,
1147,
16,
471,
1508,
1221,
4097,
1368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
1716,
685,
537,
1876,
1477,
353,
467,
12053,
537,
1876,
1477,
16,
7252,
1119,
288,
203,
683,
9454,
18035,
560,
273,
20,
18,
27,
18,
26,
31,
203,
565,
445,
775,
12053,
537,
12,
2867,
1147,
16,
2254,
5034,
3844,
13,
... |
./full_match/4/0x9D0BF7bf11576b3C94b9357c566eCf038f8376E6/sources/browser/PropertyContract.sol | push property to mapping and remove from other mapping | propertiesMapping[_Buyer].push(myproperty);
| 12,419,797 | [
1,
4625,
348,
7953,
560,
30,
1817,
1272,
358,
2874,
471,
1206,
628,
1308,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
1790,
3233,
63,
67,
38,
16213,
8009,
6206,
12,
4811,
4468,
1769,
27699,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./OpenZeppelin/utils/Counters.sol";
import "./OpenZeppelin/token/ERC20/IERC20.sol";
import "./OpenZeppelin/token/ERC721/ERC721.sol";
import "./OpenZeppelin/token/ERC721/ERC721Holder.sol";
/**
* Mint a single ERC721 which can hold NFTs
*/
contract IndexE... | * Mint a single ERC721 which can hold NFTs/ | contract IndexERC721 is ERC721, ERC721Holder {
event Deposit(address indexed token, uint256 tokenId, address indexed from);
event Withdraw(address indexed token, uint256 tokenId, address indexed to);
event WithdrawETH(address indexed who);
event WithdrawERC20(address indexed token, address indexed wh... | 12,928,074 | [
1,
4625,
348,
7953,
560,
30,
380,
490,
474,
279,
2202,
4232,
39,
27,
5340,
1492,
848,
6887,
423,
4464,
87,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3340,
654,
39,
27,
5340,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
6064,
288,
203,
565,
871,
4019,
538,
305,
12,
2867,
8808,
1147,
16,
2254,
5034,
1147,
548,
16,
1758,
8808,
628,
1769,
203,
203,
565,
871,
3423,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URISto... | this struct is only used for referencing in memory. The OpenOffers struct can not be used because it is only valid in storage since it contains a nested mapping | struct OffersReference {
address seller;
address creator;
address gallery;
uint16 creatorCut;
uint16 platformCut;
uint16 galleryCut;
}
event OpenOffersSaleCreated(uint256 tokenId);
event OpenOffersSaleSuccessful(uint256 tokenId, uint256 totalPrice, addre... | 60,851 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
1958,
353,
1338,
1399,
364,
24509,
316,
3778,
18,
1021,
3502,
7210,
414,
1958,
848,
486,
506,
1399,
2724,
518,
353,
1338,
923,
316,
2502,
3241,
518,
1914,
279,
4764,
2874,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
15837,
414,
2404,
288,
203,
3639,
1758,
29804,
31,
203,
3639,
1758,
11784,
31,
203,
3639,
1758,
13624,
31,
203,
3639,
2254,
2313,
11784,
15812,
31,
203,
3639,
2254,
2313,
4072,
15812,
31,
203,
3639,
2254,
2313,
13624,
15... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT275249' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT275249
// Name : ADZbuzz Futurity.org Community Token
// Total... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract ADZbuzzCommunityToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
... | 75,884 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6835,
11738,
62,
70,
9510,
12136,
13352,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
3639,
533,
1071,
3273,
31,
203,
3639,
533,
1071,
225,
508,
31,
203,
3639,
2254,
28,
1071,
15105,
31,
203... |
./partial_match/8453/0x46Cf9B499ecE1098beB860a9767e8c2c39AE747B/sources/ChainlinkPriceOracle.sol | * @notice Returns the current per-block borrow interest rate for this cToken @return The borrow interest rate per block, scaled by 1e18/ | function borrowRatePerBlock() external view override returns (uint256) {
return
interestRateModel.getBorrowRate(
getCashPrior(),
totalBorrows,
totalReserves
);
}
| 16,722,279 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
783,
1534,
17,
2629,
29759,
16513,
4993,
364,
333,
276,
1345,
632,
2463,
1021,
29759,
16513,
4993,
1534,
1203,
16,
12304,
635,
404,
73,
2643,
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,
0,
0,
0,
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,
29759,
4727,
2173,
1768,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
203,
5411,
16513,
4727,
1488,
18,
588,
38,
15318,
4727,
12,
203,
7734,
1927,
961,
25355,
9334,
203,
7734,
2078,
38,
280,
... |
./full_match/43114/0xc71Ce21fe8ac7ee7f2Bf962D47a81c6c0801E90B/sources/snipe4.sol | Reduce snipe amount to whatever is allowed. skip small snipes. | function _executeSnipe(address sniper) internal {
uint256 amount = tokenOther.balanceOf(sniper);
uint256 allowance = tokenOther.allowance(sniper, address(this));
if (allowance < amount)
amount = allowance;
if (amount < 1e5)
return;
tokenOthe... | 4,510,270 | [
1,
4625,
348,
7953,
560,
30,
225,
24614,
4556,
3151,
3844,
358,
15098,
353,
2935,
18,
2488,
5264,
4556,
625,
281,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8837,
10461,
3151,
12,
2867,
4556,
77,
457,
13,
2713,
288,
203,
3639,
2254,
5034,
3844,
273,
1147,
8290,
18,
12296,
951,
12,
8134,
77,
457,
1769,
203,
203,
3639,
2254,
5034,
1699,
1359,
273,
1147,
8290,
18,
5965,
... |
./partial_match/1/0x21A7288DDca0Cf406d0dF0c8A1Db15F94Caf4bEc/sources/@spanning/contracts/token/ERC721/extensions/SpanningERC721Enumerable.sol | Update the moved token's index
| ownedTokensIndex_[lastTokenId] = tokenIndex; | 4,024,991 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
326,
10456,
1147,
1807,
770,
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,
5411,
16199,
5157,
1016,
67,
63,
2722,
1345,
548,
65,
273,
1147,
1016,
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... |
// Sources flattened with hardhat v2.3.0 https://hardhat.org
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.1.0
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of token... | @dev An event thats emitted when a new minter account is added @param _minter The new minter address added | event MinterAdded(address _minter);
| 240,538 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1922,
871,
716,
87,
17826,
1347,
279,
394,
1131,
387,
2236,
353,
3096,
632,
891,
225,
389,
1154,
387,
1021,
394,
1131,
387,
1758,
3096,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
490,
2761,
8602,
12,
2867,
389,
1154,
387,
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,
-1... |
./full_match/80001/0xECB6Ffd20aF4B0dcd8eBC60ae40A5E26242e63eF/sources/contracts/Gigble.sol | Function to create a new project and lock budget on platform address Project storage project = projects[projectIdCounter]; | function createProject(
string memory _email,
string memory _description,
uint256 _budget,
uint256 _deadline
) public payable inState(State.Inactive) returns (uint256) {
Project memory project = Project({
email: _email,
description: _description,
... | 878,925 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
358,
752,
279,
394,
1984,
471,
2176,
15051,
603,
4072,
1758,
5420,
2502,
1984,
273,
10137,
63,
4406,
548,
4789,
15533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
4109,
12,
203,
3639,
533,
3778,
389,
3652,
16,
203,
3639,
533,
3778,
389,
3384,
16,
203,
3639,
2254,
5034,
389,
70,
8562,
16,
203,
3639,
2254,
5034,
389,
22097,
1369,
203,
565,
262,
1071,
8843,
429,
316,
1119,
12... |
./partial_match/8453/0xcE47E4580B6ce14aC4210304DC06aebb7d7318d0/sources/MasterChef.sol | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0 || pool.allocPoint == 0) {
pool.lastRew... | 16,810,895 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
contract Grade {
//Modelling Subjects
struct BahasaMalaysia {
uint BMID;
uint studentID;
string studentName;
uint marks;
bool graded;
}
struct BahasaInggeris {
uint BIID;
uint studentID;
string studentName;
uint marks;
bo... | Initialize student stats | function studStats(uint _totalSubs, uint _totalMarks, uint _totalGPS) private {
ssCount++;
ss[ssCount] = StudentStats(ssCount, _totalSubs, _totalMarks, _totalGPS, "-", false);
}
| 6,418,413 | [
1,
4625,
348,
7953,
560,
30,
9190,
18110,
3177,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10068,
4195,
12,
11890,
389,
4963,
26123,
16,
2254,
389,
4963,
20981,
16,
2254,
389,
4963,
28983,
13,
3238,
288,
203,
3639,
5202,
1380,
9904,
31,
203,
3639,
5202,
63,
1049,
1380,
65,
273,
934,
1100,
319,
4195,
12,
1049,... |
pragma solidity >=0.5.6 <0.6.0;
/// @title Shared constants used throughout the Cheeze Wizards contracts
contract WizardConstants {
// Wizards normally have their affinity set when they are first created,
// but for example Exclusive Wizards can be created with no set affinity.
// In this case the affinity... | solhint-disable-next-line no-inline-assembly | function noThrowCall(
address _contract,
bytes4 _interfaceId
)
internal
view
returns (
uint256 success,
uint256 result
)
{
bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, _interfaceId);
let... | 2,503,774 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1158,
8282,
1477,
12,
203,
3639,
1758,
389,
16351,
16,
203,
3639,
1731,
24,
389,
5831,
548,
203,
565,
262,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
2216,
16,
203,
5411,
2254,
5034,
... |
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper ... | * @notice Get user ID from the serialized withdrawal data @param ser_data Serialized withdrawal data @return userID User ID/ | function _getWithdrawalUserID(bytes memory ser_data) internal pure returns (uint256 userID) {
userID = ser_data.toUint32(WITHDRAWAL_SIZE - 4);
}
| 15,834,843 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
729,
1599,
628,
326,
5343,
598,
9446,
287,
501,
632,
891,
703,
67,
892,
31822,
598,
9446,
287,
501,
632,
2463,
16299,
2177,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1190,
9446,
287,
16631,
12,
3890,
3778,
703,
67,
892,
13,
2713,
16618,
1135,
261,
11890,
5034,
16299,
13,
288,
203,
3639,
16299,
273,
703,
67,
892,
18,
869,
5487,
1578,
12,
9147,
40,
10821,
1013,
67,
4574,
3... |
// File: @openzeppelin/upgrades/contracts/Initializable.sol
pragma solidity >=0.4.24 <0.7.0;
/**
* @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... | * @notice Function to initialize the contract @dev stakingAddress must be initialized separately after Staking contract is deployed @dev serviceProviderFactoryAddress must be initialized separately after ServiceProviderFactory contract is deployed @dev delegateManagerAddress must be initialized separately after Delegat... | function initialize(
address _tokenAddress,
address _governanceAddress
) public initializer
{
_updateGovernanceAddress(_governanceAddress);
audiusToken = ERC20Mintable(_tokenAddress);
fundingRoundBlockDiff = 46523;
roundNumber = 0;
currentRound = Ro... | 1,231,796 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4284,
358,
4046,
326,
6835,
632,
5206,
384,
6159,
1887,
1297,
506,
6454,
18190,
1839,
934,
6159,
6835,
353,
19357,
632,
5206,
1156,
2249,
1733,
1887,
1297,
506,
6454,
18190,
1839,
1956,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4046,
12,
203,
3639,
1758,
389,
2316,
1887,
16,
203,
3639,
1758,
389,
75,
1643,
82,
1359,
1887,
203,
565,
262,
1071,
12562,
203,
565,
288,
203,
3639,
389,
2725,
43,
1643,
82,
1359,
1887,
24899,
75,
1643,
82,
1359,
188... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.6;
import "@yield-protocol/vault-interfaces/IJoin.sol";
import "@yield-protocol/utils-v2/contracts/token/IERC20.sol";
import "@yield-protocol/utils-v2/contracts/token/MinimalTransferHelper.sol";
import "@yield-protocol/utils-v2/contracts/access/AccessControl.sol... | helper methods for transferring ERC20 tokens that do not consistently return true/false | library MinimalTransferHelper {
function safeTransfer(
IERC20 token,
address to,
uint256 value
}
) internal {
(bool success, bytes memory data) = address(token).call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
if (!(success && (data.length == 0 || abi.d... | 589,865 | [
1,
4625,
348,
7953,
560,
30,
225,
4222,
2590,
364,
906,
74,
20245,
4232,
39,
3462,
2430,
716,
741,
486,
11071,
715,
327,
638,
19,
5743,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
5444,
2840,
5912,
2276,
288,
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,
97,
203,
203,
565,
262,
2713,
288,
203,
3639,
261,
6430,
221... |
// SPDX-License-Identifier: bsl-1.1
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since wh... | @notice Gets a list of assets quoted by this oracle. @notice Checks if an asset is quoted by this oracle.* @notice Gets last known quotes for the assets. @param assets Assets to query @return quotes Prices and update timestamps for corresponding assets./* @notice Write-efficient oracle/ Signed 64.64 fixed point number... | contract MetadataOracle is ICoreMetadataOracleReader, Ownable {
using ABDKMath64x64 for int128;
int128 public constant DELTA_BASE = int128(uint128(1002 * 2 ** 64) / uint128(1000));
uint256 public constant DELTA_BITS = 10;
uint256 private constant DELTAS_LOCATION = 0x13564db6094c800c2f97ce40db2ed07666... | 5,973,703 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11881,
279,
666,
434,
7176,
9298,
635,
333,
20865,
18,
632,
20392,
13074,
309,
392,
3310,
353,
9298,
635,
333,
20865,
4509,
632,
20392,
11881,
1142,
4846,
10681,
364,
326,
7176,
18,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
6912,
23601,
353,
467,
4670,
2277,
23601,
2514,
16,
14223,
6914,
288,
203,
565,
1450,
10336,
3398,
10477,
1105,
92,
1105,
364,
509,
10392,
31,
203,
203,
565,
509,
10392,
1071,
5381,
2030,
48,
9833,
67,
8369,
273,
509,
10392,... |
/**
*
* ██╗ ██╗ █████╗ ███████╗██╗ ██╗██████╗ ██╗ ██╗███╗ ██╗███████╗███████╗
* ██║ ██║██╔══██╗██╔════╝██║ ██║██╔══██╗██║ ██║████╗ ██║██╔════╝██╔════╝
* ███████║███████║███████╗███████║██████╔╝██║ ██║██╔██╗ ██║█████╗ ███████╗
* ██╔══██║██╔══██║╚════██║██╔══██║██╔══██╗██║ ██║██║╚██╗██║██╔══╝ ╚════█... | * @title ERC721Tradable ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality./ | contract ERC721Tradable is ERC721Full, Ownable {
using String for string;
address private proxyRegistryAddress;
constructor(
string memory _name,
string memory _symbol,
address _proxyRegistryAddress
) public ERC721Full(_name, _symbol) {
proxyRegistryAddress = _proxyRegi... | 292,173 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
27,
5340,
1609,
17394,
4232,
39,
27,
5340,
1609,
17394,
300,
4232,
39,
27,
5340,
6835,
716,
600,
305,
292,
1486,
279,
1284,
7459,
1758,
16,
471,
711,
312,
474,
310,
14176,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
27,
5340,
1609,
17394,
353,
4232,
39,
27,
5340,
5080,
16,
14223,
6914,
288,
203,
565,
1450,
514,
364,
533,
31,
203,
203,
565,
1758,
3238,
2889,
4243,
1887,
31,
203,
203,
565,
3885,
12,
203,
3639,
533,
3778,
389... |
./partial_match/56/0x7B9D43599AA3C5590CF068bE7BD67Ebf30462b47/sources/FeeProvider.sol | * @dev disables a reserve to be used as collateral @param _reserve the address of the reserve/ | function disableReserveAsCollateral(address _reserve)
external
onlyLendingPoolConfigurator
{
reserves[_reserve].disableAsCollateral();
}
| 11,035,153 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
24960,
279,
20501,
358,
506,
1399,
487,
4508,
2045,
287,
632,
891,
389,
455,
6527,
326,
1758,
434,
326,
20501,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4056,
607,
6527,
1463,
13535,
2045,
287,
12,
2867,
389,
455,
6527,
13,
203,
3639,
3903,
203,
3639,
1338,
48,
2846,
2864,
17182,
203,
565,
288,
203,
3639,
400,
264,
3324,
63,
67,
455,
6527,
8009,
8394,
1463,
13535,
2045,... |
// ________ ________ _____ ______ ________ ___ ________ ___ __ ________
// |\_____ \ |\ __ \ |\ _ \ _ \ |\ __ \ |\ \ |\ __ \ |\ \ |\ \ |\ ____\
// \|___/ /|\ \ \|\ \\ \ \\\__\ \ \\ \ \|\ \\ \ \ \ \ \|\ \\ \ \ \ \ \\ \ \___|_
//... | Set Max transaction | function setMaxTxnAmount(uint256 maxTxAmount) external {
require(_msgSender() == _developmentAddress);
_maxTxAmount = maxTxAmount;
}
| 544,899 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
4238,
2492,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10851,
13789,
6275,
12,
11890,
5034,
943,
4188,
6275,
13,
3903,
288,
203,
3639,
2583,
24899,
3576,
12021,
1435,
422,
389,
26630,
1887,
1769,
203,
3639,
389,
1896,
4188,
6275,
273,
943,
4188,
6275,
31,
203,
565,
289,
203,
... |
./partial_match/1/0x51563d61f8a5869B24EDdFb2705308Bae539BF56/sources/contracts/allocators/AlchemixAllocatorV2.sol | * @notice as structured by Tokemak before one withdraws you must first request withdrawal, unstake tALCX from Alchemix staking pool, depending on the nature of the function call, make a request on Tokemak tALCX pool. @param _amount amount to withdraw, if uint256 max then take all/ | function requestWithdraw(uint256 _amount) internal {
if (_amount == type(uint256).max) {
pool.exit(poolID);
pool.withdraw(poolID, _amount);
}
uint256 balance = IERC20(address(tALCX)).balanceOf(address(this));
tALCX.requestWithdrawal(balance);
}
| 9,298,307 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
487,
19788,
635,
399,
601,
351,
581,
1865,
1245,
598,
9446,
87,
1846,
1297,
1122,
590,
598,
9446,
287,
16,
640,
334,
911,
268,
1013,
39,
60,
628,
2262,
1036,
697,
384,
6159,
2845,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
590,
1190,
9446,
12,
11890,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
309,
261,
67,
8949,
422,
618,
12,
11890,
5034,
2934,
1896,
13,
288,
203,
5411,
2845,
18,
8593,
12,
6011,
734,
1769,
203,
5411,
2845,
18,
1918,
944... |
./partial_match/1/0xaE120f96281FB2D376845da4B35226fadF184c73/sources/SocialAIEngaged.sol | Lottery is over so reset amount hash, whether it is ETH does not matter cause it will be reset anyway for new lotteries | lottery_amount[lottery_hash] = 0 ;
| 15,997,796 | [
1,
4625,
348,
7953,
560,
30,
225,
511,
352,
387,
93,
353,
1879,
1427,
2715,
3844,
1651,
16,
2856,
518,
353,
512,
2455,
1552,
486,
15177,
4620,
518,
903,
506,
2715,
13466,
364,
394,
17417,
387,
606,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
17417,
387,
93,
67,
8949,
63,
23372,
387,
93,
67,
2816,
65,
273,
374,
274,
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,
-1... |
pragma solidity ^0.5.0;
import "./libraries/SafeMathM.sol";
import "./libraries/ZapStorage.sol";
import "./libraries/ZapDispute.sol";
import "./libraries/ZapStake.sol";
import "./libraries/ZapLibrary.sol";
import "./ZapToken.sol";
/**
* @title Zap Oracle System
* @dev Oracle contract where miners can sub... | * @dev This function allows stakers to request to withdraw their stake (no longer stake) once they lock for withdraw(stakes.currentStatus = 2) they are locked for 7 days before they can withdraw the stake/ | function requestStakingWithdraw() external {
zap.requestStakingWithdraw();
}
| 12,682,909 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
445,
5360,
384,
581,
414,
358,
590,
358,
598,
9446,
3675,
384,
911,
261,
2135,
7144,
384,
911,
13,
3647,
2898,
2176,
364,
598,
9446,
12,
334,
3223,
18,
2972,
1482,
273,
576,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
590,
510,
6159,
1190,
9446,
1435,
3903,
288,
203,
3639,
11419,
18,
2293,
510,
6159,
1190,
9446,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.25;
/*
* ---How to use:
* 1. Send from ETH wallet to the smart contract address any amount ETH.
* 2a. Claim your profit by sending 0 ether transaction (1 time per 12 hour)
* OR
* 2b. Send more ether to reinvest AND get your profit
* 2c. If you hold, the percentage grows
* 3. If you earn... | if send 0.00000911 ETH contract will return your invest, else make invest | function() external payable {
if (msg.value == 0.00000911 ether) {
returnInvestment();
}
else {
invest();
}
}
| 7,237,219 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
1366,
374,
18,
2787,
5908,
2499,
512,
2455,
6835,
903,
327,
3433,
2198,
395,
16,
469,
1221,
2198,
395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1435,
3903,
8843,
429,
288,
203,
3639,
309,
261,
3576,
18,
1132,
422,
374,
18,
2787,
5908,
2499,
225,
2437,
13,
288,
203,
5411,
327,
3605,
395,
475,
5621,
203,
3639,
289,
7010,
202,
202,
12107,
288,
203,
5411,
2198,
3... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which... | * @notice Determines the maximum of `a` and `b` @param a First Decimal.D256 number to compare @param b Second Decimal.D256 number to compare @return Resulting maximum Decimal.D256/ | function max(D256 memory a, D256 memory b) internal pure returns (Decimal.D256 memory) {
return greaterThan(a, b) ? a : b;
}
| 12,066,171 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
30778,
326,
4207,
434,
1375,
69,
68,
471,
1375,
70,
68,
632,
891,
279,
5783,
11322,
18,
40,
5034,
1300,
358,
3400,
632,
891,
324,
7631,
11322,
18,
40,
5034,
1300,
358,
3400,
632,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
943,
12,
40,
5034,
3778,
279,
16,
463,
5034,
3778,
324,
13,
2713,
16618,
1135,
261,
5749,
18,
40,
5034,
3778,
13,
288,
203,
3639,
327,
6802,
9516,
12,
69,
16,
324,
13,
692,
279,
294,
324,
31,
203,
565,
289,
203,
2... |
./full_match/5/0xC89511CFB3e8cbAA9470a9fE50184EAF7204c175/sources/contracts/TFOP.sol | * @notice Update the maximum tokens allowed for allowlist mint/ | function setMaxAllowlistTokens(uint256 _count) public onlyOwner {
maxAllowlistTokens = _count;
}
| 1,899,938 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
326,
4207,
2430,
2935,
364,
1699,
1098,
312,
474,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10851,
7009,
1098,
5157,
12,
11890,
5034,
389,
1883,
13,
1071,
1338,
5541,
288,
203,
3639,
943,
7009,
1098,
5157,
273,
389,
1883,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/56/0x7B9D43599AA3C5590CF068bE7BD67Ebf30462b47/sources/FeeProvider.sol | * @dev returns the origination fee percentage/ Checks to prevent improper percentages | function calculateRewards(uint256 _originationFee) external view returns (uint256, uint256, uint256) {
require (supplierRewardRate.add(governanceRewardRate) <= 1e18, "Invalid Fees configurations");
uint256 supplierReward = _originationFee.wadMul(supplierRewardRate);
uint256 govtRew... | 11,035,055 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
326,
1647,
1735,
14036,
11622,
19,
13074,
358,
5309,
13069,
457,
5551,
1023,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4604,
17631,
14727,
12,
11890,
5034,
389,
4949,
1735,
14667,
13,
3903,
1476,
1135,
261,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
540,
203,
3639,
2583,
261,
2859,
5742,
17631,
1060,
4727,
18,
1289,
12,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
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.
*/
... | * @notice Set `maxSwing` to the specified value. @dev Admin function to change of max swing. @param _maxSwing Value to assign to `maxSwing`. @return uint 0=success, otherwise a failure./ Check caller = anchorAdmin | function _setMaxSwing(uint256 _maxSwing) public returns (uint256) {
if (msg.sender != anchorAdmin) {
return
failOracle(
address(0),
OracleError.UNAUTHORIZED,
OracleFailureInfo.SET_PAUSED_OWNER_CHECK
);
... | 5,468,083 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1000,
1375,
1896,
6050,
310,
68,
358,
326,
1269,
460,
18,
632,
5206,
7807,
445,
358,
2549,
434,
943,
9028,
18,
632,
891,
389,
1896,
6050,
310,
1445,
358,
2683,
358,
1375,
1896,
6050,
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,
0... | [
1,
565,
445,
389,
542,
2747,
6050,
310,
12,
11890,
5034,
389,
1896,
6050,
310,
13,
1071,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
6984,
4446,
13,
288,
203,
5411,
327,
203,
7734,
2321,
23601,
12,
... |
/*
Copyright 2021 Empty Set Squad <emptysetsquad@protonmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | * @notice `token` balance of `account` @dev Internal only @param token Token to get the balance for @param account Account to get the balance of/ | function _balanceOf(address token, address account) internal view returns (uint256) {
return IERC20(token).balanceOf(account);
}
| 1,784,597 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1375,
2316,
68,
11013,
434,
1375,
4631,
68,
632,
5206,
3186,
1338,
632,
891,
1147,
3155,
358,
336,
326,
11013,
364,
632,
891,
2236,
6590,
358,
336,
326,
11013,
434,
19,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
12296,
951,
12,
2867,
1147,
16,
1758,
2236,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
467,
654,
39,
3462,
12,
2316,
2934,
12296,
951,
12,
4631,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.5;
pragma abicoder v2;
import "@openzeppelin/contracts/presets/ERC721PresetMinterPauserAutoId.sol";
import "./interfaces/IERC1948.sol";
// @title Bill of Lading NFT Contract
// @author Edward Amor
// @notice Users should not directly interact with this contract
// ... | * @dev See `IERC1948.writeData`. Requirements: - `msg.sender` needs to be owner of `tokenId`./ | function writeData(uint256 tokenId, bytes32 newData) external override {
require(msg.sender == ownerOf(tokenId));
emit DataUpdated(tokenId, data[tokenId], newData);
data[tokenId] = newData;
}
| 12,586,019 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
1375,
45,
654,
39,
3657,
8875,
18,
2626,
751,
8338,
29076,
30,
300,
1375,
3576,
18,
15330,
68,
4260,
358,
506,
3410,
434,
1375,
2316,
548,
8338,
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,
1045,
751,
12,
11890,
5034,
1147,
548,
16,
1731,
1578,
16026,
13,
3903,
3849,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
951,
12,
2316,
548,
10019,
203,
3639,
3626,
1910,
7381,
12,
2316,
548,
16,
501,
63,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {Modifiers, ChallengeType} from "../libraries/LibAppStorage.sol";
import {LibERC1155} from "../libraries/LibERC1155.sol";
import {LibChallenges} from "../libraries/LibChallenges.sol";
contract DAOFacet is Modifiers {
event DaoTransferred(address index... | **********************************|@notice Allow the Diamond owner or DAO to set a new Dao address and Treasury address@param _newDao New DAO address@param _newDaoTreasury New treasury address | function setDao(address _newDao, address _newDaoTreasury) external onlyDaoOrOwner {
emit DaoTransferred(s.dao, _newDao);
emit DaoTreasuryTransferred(s.daoTreasury, _newDaoTreasury);
s.dao = _newDao;
s.daoTreasury = _newDaoTreasury;
}
| 1,783,262 | [
1,
4625,
348,
7953,
560,
30,
20210,
14,
96,
36,
20392,
7852,
326,
12508,
301,
1434,
3410,
578,
463,
20463,
358,
444,
279,
394,
463,
6033,
1758,
471,
399,
266,
345,
22498,
1758,
36,
891,
389,
2704,
11412,
1166,
463,
20463,
1758,
36,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
11412,
12,
2867,
389,
2704,
11412,
16,
1758,
389,
2704,
11412,
56,
266,
345,
22498,
13,
3903,
1338,
11412,
1162,
5541,
288,
203,
3639,
3626,
463,
6033,
1429,
4193,
12,
87,
18,
2414,
83,
16,
389,
2704,
11412,
1769,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, ... | * @dev mintToken a new token and assigns to an address @param _to Address of the future owner of the token @param _tokenId specific Token ID @param _tokenURI for token metadata @param _name name for the artist @param _totalEdition limit for edition published/ | function mintToken(
address _to,
uint256 _tokenId,
string memory _tokenURI,
string memory _name,
uint256 _totalEdition
) public onlyAdmin whenNotPaused returns (uint256) {
require(bytes(_tokenURI).length > 0, "FansiNFT: uri should be set");
tokenIdToToken... | 5,806,533 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
312,
474,
1345,
279,
394,
1147,
471,
22698,
358,
392,
1758,
632,
891,
389,
869,
5267,
434,
326,
3563,
3410,
434,
326,
1147,
632,
891,
389,
2316,
548,
2923,
3155,
1599,
632,
891,
389,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
1345,
12,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
533,
3778,
389,
2316,
3098,
16,
203,
3639,
533,
3778,
389,
529,
16,
203,
3639,
2254,
5034,
389,
4963,
41,
1460,
... |
./full_match/1/0xa64ED1b66Cb2838Ef2A198D8345c0ce6967A2A3c/sources/DAIDistributor.sol | reduce total debt by vested amount | uint valueUsed_ = value_.mul( percentVested_ ).div( 10000 );
| 3,192,255 | [
1,
4625,
348,
7953,
560,
30,
225,
5459,
2078,
18202,
88,
635,
331,
3149,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
460,
6668,
67,
273,
460,
27799,
16411,
12,
5551,
58,
3149,
67,
262,
18,
2892,
12,
12619,
11272,
203,
2,
-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-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
// import "./IPawn.sol";
enum LoanDurationType {
WEEK,
MONTH
}
enum CollateralStatus {
OPEN,
DOING,
COMPLETED,
CANCEL
}
struct Collateral {
addr... | insufficient balance
| require(lenderCurrentBalance >= loanAmount, "4"); | 1,011,138 | [
1,
4625,
348,
7953,
560,
30,
225,
2763,
11339,
11013,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
80,
2345,
3935,
13937,
1545,
28183,
6275,
16,
315,
24,
8863,
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,
-1... |
pragma solidity ^0.4.18;
//
//
// 🌀 EnishiCoin
//
//
/**
* @title OwnerSigneture
* @dev The OwnerSigneture contract has multiple owner addresses
* and does not execute if there is no signature of all owners.
*/
contract OwnerSigneture
{
address[] public owners;
mapping (address => bytes32) public sig... | * @dev Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint./ | function mint(address _to, uint256 _amount) signed canMint public returns (bool)
{
require(_amount > 0);
_amount = SafeMath.mul(_amount, dec);
totalSupply = SafeMath.add(totalSupply, _amount);
balances[_to] = SafeMath.add(balances[_to], _amount);
Mint(_to, _amount);
Transfer(address(0), _to... | 1,320,695 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
312,
474,
2430,
632,
891,
389,
869,
1021,
1758,
716,
903,
6798,
326,
312,
474,
329,
2430,
18,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
312,
474,
18,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
6726,
848,
49,
474,
1071,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
2583,
24899,
8949,
405,
374,
1769,
203,
203,
565,
389,
8949,
273,
14060,
10477,
18,
... |
pragma solidity ^0.4.24; // 0.4.24+commit.e67f0147.Emscripten.clang
/*
*/
interface IERC20Token {
function totalSup... | / part.II_variable_assignation.../.../.../.../.../ i */ DeathFactor_i = ; ii */ DeathFactor_ii = 94688065443371500000000000000 ; iii */ DeathFactor_iii = 8095242467221090000000000000 ; iv */ DeathFactor_iv = 70848091325669100000000000000 ; v */ Dea... | function ReinsureSeveralDeaths (bool _hedge ) public returns ( bool ) {
consecutiveDeaths = 0 ;
uint256 public consecutiveDeaths ;
uint256 public deathData_v1 ;
... | 2,041,014 | [
1,
4625,
348,
7953,
560,
30,
342,
1087,
18,
6954,
67,
6105,
67,
6145,
367,
2777,
19,
2777,
19,
2777,
19,
2777,
19,
2777,
19,
202,
77,
202,
5549,
9506,
202,
758,
421,
6837,
67,
77,
6862,
202,
33,
6862,
6862,
6862,
1082,
202,
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,
915,
202,
426,
267,
2055,
1761,
502,
287,
758,
421,
87,
202,
12,
6430,
389,
76,
7126,
202,
202,
13,
1071,
1135,
261,
1426,
202,
13,
288,
6862,
1082,
203,
6862,
6862,
6862,
9506,
203,
6862,
1082,
202,
591,
15655,
758,
421,
87,
... |
pragma solidity ^0.4.8;
/**
* Very basic owned/mortal boilerplate. Used for basically everything, for
* security/access control purposes.
*/
contract Owned {
address owner;
modifier onlyOwner {
if (msg.sender != owner) {
throw;
}
_;
}
/**
* Basic constructor. The se... | * Finalize the round before returning it back to the the parent contract for historical purposes. Attempts to pay winners and the curator if there was a winning draw, otherwise, pulls the balance out of the round before handing over ownership to the curator./ we'll only make one attempt here to pay the winners otherwi... | function finalizeRound() onlyOwner onlyAfterDraw returns(address) {
address roundAddress = address(currentRound);
if (!currentRound.paidOut()) {
currentRound.distributeWinnings();
currentRound.claimOwnerFee(curator);
currentRound.withdraw();
}
return roundAddress;
}
| 13,118,753 | [
1,
4625,
348,
7953,
560,
30,
380,
30740,
326,
3643,
1865,
5785,
518,
1473,
358,
326,
326,
982,
6835,
364,
23922,
13694,
18,
225,
6020,
9585,
358,
8843,
5657,
9646,
471,
326,
662,
639,
309,
1915,
1703,
279,
5657,
2093,
3724,
16,
3541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12409,
11066,
1435,
1338,
5541,
1338,
4436,
6493,
1135,
12,
2867,
13,
288,
203,
565,
1758,
3643,
1887,
273,
1758,
12,
2972,
11066,
1769,
203,
565,
309,
16051,
2972,
11066,
18,
29434,
1182,
10756,
288,
203,
1377,
783,
1106... |