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 |
|---|---|---|---|---|---|---|
pragma solidity ^0.8.3;
/*
* \title Hakutaku token
* \brief Token that every X hours rewards a randomly selected holder (that held for long enough)
* with the total amount accumulated in a pool from transaction fees
* \version 1.0b experimental
* \author unknown
*/
import '@openzeppelin/contracts/token/ERC2... | update last time a prize was given
| prize_last_time = block.timestamp; | 6,342,815 | [
1,
2725,
1142,
813,
279,
846,
554,
1703,
864,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1082,
202,
683,
554,
67,
2722,
67,
957,
273,
1203,
18,
5508,
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,
... |
pragma solidity ^0.5.10;
/**
Get 20% profit every month with a contract Shareholder VOMER!
*
* - OBTAINING 20% PER 1 MONTH. (percentages are charged in equal parts every 1 sec.)
* 0,33 - for 1 day
* 0,013 - for 1 hour
* 0.00023 - for 1 minute
* 0.0000038 - for 1 sec
* - lifetime payments
* - unprecedentedly reliable
*... | prevent bots to interact with contract
| assert(msg.sender == tx.origin); | 642,428 | [
1,
29150,
2512,
87,
358,
16592,
598,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1815,
12,
3576,
18,
15330,
422,
2229,
18,
10012,
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,
... |
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see h... | Contract implementation We will set a minimum amount of tokens to be swaped => 5M | contract HentaiMax is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) p... | 291,513 | [
1,
8924,
4471,
1660,
903,
444,
279,
5224,
3844,
434,
2430,
358,
506,
1352,
5994,
516,
1381,
49,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
670,
319,
10658,
2747,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
... |
./partial_match/1/0xB690fC16279C096999264e3C049fA133024b4d69/sources/contracts/storefront/AbstractStorefront.sol | * @notice See {IStorefront-getSale}/ | function getSale(uint256 saleId) external view override returns (Sale memory) {
return _sales[saleId];
}
| 3,599,575 | [
1,
9704,
288,
45,
2257,
10211,
17,
588,
30746,
4004,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1322,
5349,
12,
11890,
5034,
272,
5349,
548,
13,
3903,
1476,
3849,
1135,
261,
30746,
3778,
13,
288,
203,
3639,
327,
389,
87,
5408,
63,
87,
5349,
548,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: GPL-3.0
// 定義版本
pragma solidity >=0.7.0 <0.9.0;
// Imports
// 假設Owner就是管理員
import "./Owner.sol";
// Contract主程式碼區塊
contract AsiaUniversityBankSol is Owner {
// 需要去記錄每個人的AU幣餘額
mapping(address => uint256) auBalance;
// 需要紀錄黑名單
mapping(address => bool) blacklist;
// 需要去... | 定義Transfer function 將會發送transfer事件 | function transfer(address to, uint256 amount) public nonBlacklisted {
address sender = msg.sender;
auBalance[sender] -= amount;
auBalance[to] += amount;
emit TransferEvent(sender, amount, block.timestamp);
}
| 6,488,163 | [
1,
166,
111,
253,
168,
127,
107,
5912,
445,
225,
166,
113,
234,
167,
255,
230,
168,
252,
125,
170,
227,
228,
13866,
165,
123,
238,
165,
124,
119,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
1661,
13155,
18647,
288,
203,
3639,
1758,
5793,
273,
1234,
18,
15330,
31,
203,
203,
3639,
20309,
13937,
63,
15330,
65,
3947,
3844,
31,
203,
3639,
20309,
13937,
63,
86... |
./partial_match/3/0xe23d4C9354ae5b65aD947C7FA93495cbFFe83688/sources/TokenTRC20.sol | * Transfer tokens from other address Send `_value` tokens to `_to` on behalf of `_from` @param _from The address of the sender @param _to The address of the recipient @param _value the amount to send/ | uint256 private limit = 0.1 * (10 ** 6);
| 5,326,296 | [
1,
5912,
2430,
628,
1308,
1758,
2479,
1375,
67,
1132,
68,
2430,
358,
1375,
67,
869,
68,
603,
12433,
6186,
434,
1375,
67,
2080,
68,
225,
389,
2080,
1021,
1758,
434,
326,
5793,
225,
389,
869,
1021,
1758,
434,
326,
8027,
225,
389,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
11890,
5034,
3238,
1800,
273,
374,
18,
21,
380,
261,
2163,
2826,
1666,
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,
-10... |
./full_match/1/0x5cD7ca863Ea0FebDaE82bb1cEdc7b8Cec3Ad93fF/sources/contracts/RewardsProxy.sol | @notice Function to stream rewards to Silica contracts | function streamRewards(StreamRequest[] calldata streamRequests) external override {
uint256 numRequest = streamRequests.length;
for (uint256 i = 0; i < numRequest; ++i) {
streamReward(streamRequests[i]);
}
emit RewardsStreamed(streamRequests);
}
| 9,822,437 | [
1,
2083,
358,
1407,
283,
6397,
358,
348,
330,
26433,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1407,
17631,
14727,
12,
1228,
691,
8526,
745,
892,
1407,
6421,
13,
3903,
3849,
288,
203,
3639,
2254,
5034,
818,
691,
273,
1407,
6421,
18,
2469,
31,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
818,
6... |
//Address: 0x3aa927a97594c3ab7d7bf0d47c71c3877d1de4a1
//Contract name: MatchingMarket
//Balance: 0 Ether
//Verification Date: 9/13/2017
//Transacion Count: 17130
// CODE STARTS HERE
pragma solidity ^0.4.13;
contract ERC20 {
function totalSupply() constant returns (uint supply);
function balanceOf( address w... | number of offers stored for token pair in sorted orderbook
| mapping(address => mapping(address => uint)) public _span; | 918,468 | [
1,
2696,
434,
28641,
4041,
364,
1147,
3082,
316,
3115,
1353,
3618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
2254,
3719,
1071,
389,
3969,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/42/0x2dC79215005767c7A8cF1954586Dd804eA1a8685/sources/DebtCache.sol | Inheritance Libraries Internal references https:docs.synthetix.io/contracts/source/contracts/debtcache Flexible storage names | contract DebtCache is Owned, MixinSystemSettings, IDebtCache {
using SafeMath for uint;
using SafeDecimalMath for uint;
uint internal _cachedDebt;
mapping(bytes32 => uint) internal _cachedSynthDebt;
uint internal _cacheTimestamp;
bool internal _cacheInvalid = true;
bytes32 internal consta... | 3,415,733 | [
1,
28255,
10560,
11042,
3186,
5351,
2333,
30,
8532,
18,
11982,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
3168,
19,
16351,
87,
19,
323,
23602,
2493,
478,
21873,
2502,
1257,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1505,
23602,
1649,
353,
14223,
11748,
16,
490,
10131,
3163,
2628,
16,
467,
758,
23602,
1649,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
14060,
5749,
10477,
364,
2254,
31,
203,
203,
565,
2254,
2713,
389... |
// Sources flattened with hardhat v2.8.0 https://hardhat.org
// File @openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol@v4.5.2
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standa... | * generates an array composed of all the individual traits and values @param tokenId the ID of the token to compose the metadata for @return a JSON array of all of the attributes for given token ID/ traitData 6 = alpha score, but not visible | function compileAttributes(uint256 tokenId) public view returns (string memory) {
IDiamondHeist.LlamaDog memory s = diamondheist.getTokenTraits(tokenId);
string memory traits;
if (s.isLlama) {
traits = string(abi.encodePacked(
attributeForTypeAndValue(_traitTypes[0], traitData[0][s.body].nam... | 14,374,569 | [
1,
3441,
815,
392,
526,
18673,
434,
777,
326,
7327,
18370,
471,
924,
225,
1147,
548,
326,
1599,
434,
326,
1147,
358,
11458,
326,
1982,
364,
327,
279,
1796,
526,
434,
777,
434,
326,
1677,
364,
864,
1147,
1599,
19,
13517,
751,
1666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
4074,
2498,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
565,
1599,
29401,
1434,
5256,
376,
18,
48,
80,
20789,
40,
717,
3778,
272,
273,
4314,
301,
1434,
580,
376,
18,
588,
1345,
303... |
./full_match/1/0x877C7ae9D03A4b0daA55eC74Eb6409853b1cfbA1/sources/browser/TorroCollab.sol | @notice Decreases allowance for given spender. @param spender_ spender to decrease allowance for. @param subtractedValue_ removed amount that spender can spend. @return bool true if successful. | function decreaseAllowance(address spender_, uint256 subtractedValue_) public returns (bool) {
return false;
}
| 3,154,286 | [
1,
23326,
3304,
1699,
1359,
364,
864,
17571,
264,
18,
225,
17571,
264,
67,
17571,
264,
358,
20467,
1699,
1359,
364,
18,
225,
10418,
329,
620,
67,
3723,
3844,
716,
17571,
264,
848,
17571,
18,
327,
1426,
638,
309,
6873,
18,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
20467,
7009,
1359,
12,
2867,
17571,
264,
67,
16,
2254,
5034,
10418,
329,
620,
67,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
327,
629,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xd6F2E30B99214B6eaffBE2B270d2e42c762a929B/sources/DisputeManager.sol | * @notice Draft jurors for the next round of dispute #`_disputeId` @param _disputeId Identification number of the dispute to be drafted/ Drafts can only be computed when the Court is up-to-date. Note that forcing a term transition won't work since the term randomness is always based on the next term which means it won'... | function draft(uint256 _disputeId) external disputeExists(_disputeId) {
IClock clock = _clock();
uint64 requiredTransitions = _clock().getNeededTermTransitions();
require(uint256(requiredTransitions) == 0, ERROR_TERM_OUTDATED);
uint64 currentTermId = _getLastEnsuredTermId();
... | 4,343,446 | [
1,
12714,
525,
295,
1383,
364,
326,
1024,
3643,
434,
1015,
2507,
1375,
67,
2251,
2507,
548,
68,
225,
389,
2251,
2507,
548,
13128,
1480,
1300,
434,
326,
1015,
2507,
358,
506,
12246,
329,
19,
463,
5015,
87,
848,
1338,
506,
8470,
1347,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12246,
12,
11890,
5034,
389,
2251,
2507,
548,
13,
3903,
1015,
2507,
4002,
24899,
2251,
2507,
548,
13,
288,
203,
3639,
467,
14027,
7268,
273,
389,
18517,
5621,
203,
3639,
2254,
1105,
1931,
23299,
273,
389,
18517,
7675,
588... |
./partial_match/1/0x00000000000006c7676171937C444f6BDe3D6282/sources/contracts/helpers/PointerLibraries.sol | @dev Reads the uint32 at `cdPtr` in calldata. | function readUint32(
CalldataPointer cdPtr
) internal pure returns (uint32 value) {
assembly {
value := calldataload(cdPtr)
}
}
| 4,300,218 | [
1,
7483,
326,
2254,
1578,
622,
1375,
4315,
5263,
68,
316,
745,
892,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
855,
5487,
1578,
12,
203,
3639,
3049,
892,
4926,
7976,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
1578,
460,
13,
288,
203,
3639,
19931,
288,
203,
5411,
460,
519,
745,
72,
3145,
6189,
12,
4315,
5263,
13,
203,
... |
pragma solidity ^0.4.19;
contract mortal {
/* Define variable owner of the type address. This is effectively the
government agency responsible for registering the property. */
address owner;
modifier onlyOwner {
require(msg.sender == owner);
_;
}
/* this function is executed a... | submits the buyer information for calculation of taxes | function submitBuyerInformation( string _name, uint _age, bool _canadianCitizen, bool _firstTimeBuyer,
uint256 _downpayment, bool _optForInsurance ) public onlyPropertyBuyer returns (bool success) {
if( state != State.SALE_INITIATED ) return false;
prospectiveBuy... | 7,302,470 | [
1,
1717,
22679,
326,
27037,
1779,
364,
11096,
434,
5320,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4879,
38,
16213,
5369,
12,
533,
389,
529,
16,
2254,
389,
410,
16,
1426,
389,
4169,
361,
2779,
39,
305,
452,
275,
16,
1426,
389,
3645,
950,
38,
16213,
16,
203,
19694,
2254,
5034,
389,
2378,
9261,
16,
1426,
389,
3838,
... |
./full_match/5/0xc2166567dbCC8Bc35ce79Ed429D75451AfC14985/sources/localhost/contracts/GatebridgeV2LPToken.sol | update reserves and, on the first call per block, price accumulators uint32 timeElapsed = blockTimestamp - blockTimestampLast; overflow is desired if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) { * never overflows, and + overflow is desired price0CumulativeLast += uint(U... | function _updateAdd(uint amount) private {
require(amount <= uint112(-1), 'GatebridgeV2: OVERFLOW');
uint32 blockTimestamp = uint32(block.timestamp % 2**32);
reserve = reserve + uint112(amount);
blockTimestampLast = blockTimestamp;
emit Sync(reserve);
}
| 1,852,282 | [
1,
2725,
400,
264,
3324,
471,
16,
603,
326,
1122,
745,
1534,
1203,
16,
6205,
8822,
3062,
3639,
2254,
1578,
813,
28827,
273,
1203,
4921,
300,
1203,
4921,
3024,
31,
225,
9391,
353,
6049,
3639,
309,
261,
957,
28827,
405,
374,
597,
389,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
2725,
986,
12,
11890,
3844,
13,
3238,
288,
203,
3639,
2583,
12,
8949,
1648,
2254,
17666,
19236,
21,
3631,
296,
13215,
18337,
58,
22,
30,
22577,
17430,
8284,
203,
3639,
2254,
1578,
1203,
4921,
273,
2254,
1578,
12,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@boringcrypto/boring-solidity-e06e943/contracts/libraries/BoringMath.sol";
import "@boringcrypto/boring-solidity-e06e943/contracts/BoringBatchable.sol";
import "@boringcrypto/boring-solidity-e06e943/contracts/BoringOwnab... | @notice Add a new LP to the pool. Can only be called by the owner. DO NOT add the same LP token more than once. Rewards will be messed up if you do. @param allocPoint AP of the new pool. @param _lpToken Address of the LP ERC-20 token. @param _rewarder Address of the rewarder delegate. | function add(
uint256 allocPoint,
IERC20 _lpToken,
IRewarder _rewarder
) public onlyOwner {
totalAllocPoint = totalAllocPoint.add(allocPoint);
lpToken.push(_lpToken);
rewarder.push(_rewarder);
poolInfo.push(
PoolInfo({
allocPoi... | 12,724,889 | [
1,
986,
279,
394,
511,
52,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
731,
309,
1846,
741,
18,
225,
4767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
12,
203,
3639,
2254,
5034,
4767,
2148,
16,
203,
3639,
467,
654,
39,
3462,
389,
9953,
1345,
16,
203,
3639,
15908,
359,
297,
765,
389,
266,
20099,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
2078,
8763,
2148,
... |
pragma solidity ^0.4.21;
/**
* @title LinkedListLib
* @author Darryl Morris (o0ragman0o) and Modular.network
*
* This utility library was forked from https://github.com/o0ragman0o/LibCLL
* into the Modular-Network ethereum-libraries repo at https://github.com/Modular-Network/ethereum-libraries
* It has been upd... | ------------------------------------------------------------------------ Internal function to calculate the number of extra blocks needed to flush, depending on the stash to flush (the greater the load, more difficult it will be) ------------------------------------------------------------------------ | function calculateFactorFlushDifficulty(uint stash) internal pure returns (uint extraBlocks) {
uint numBlocksToFlush = 10;
uint16 factor;
if(stash < 1000) {
factor = 1;
}
else if(stash < 5000) {
factor = 2;
}
else if(stash < 10000) {
... | 620,737 | [
1,
29461,
3186,
445,
358,
4604,
326,
1300,
434,
2870,
4398,
3577,
358,
3663,
16,
8353,
603,
326,
23017,
358,
3663,
261,
5787,
6802,
326,
1262,
16,
1898,
3122,
17551,
518,
903,
506,
13,
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,
1,
0,
0,
0,
0,
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,
6837,
8207,
5938,
21934,
12,
11890,
23017,
13,
2713,
16618,
1135,
261,
11890,
2870,
6450,
13,
288,
203,
3639,
2254,
818,
6450,
774,
8207,
273,
1728,
31,
203,
3639,
2254,
2313,
5578,
31,
203,
3639,
309,
12,
25915,
... |
./full_match/5/0x321A7e7626D904545D5Af3D2a2625694554932f1/sources/StakingContract.sol | total tokens staked | uint256 private _totalCurrentlyStaked;
| 1,878,026 | [
1,
4963,
2430,
384,
9477,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
389,
4963,
3935,
715,
510,
9477,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0x36996711A972DE3a838b858a73589C8488a6F759/sources/project_/contracts/Distribution.sol | uint256 uplineId, require(amount == 70 , "amount must be at least 70"); | function register(
uint256 amount,
address userAddress,
uint256 sponserId,
uint256[] calldata level,
uint256[] calldata binary
) external {
require(registered[msg.sender] == false,"User already registered");
require(P2PToken.balanceOf(msg.sender) ... | 5,670,386 | [
1,
11890,
5034,
582,
412,
558,
548,
16,
2583,
12,
8949,
422,
16647,
269,
315,
8949,
1297,
506,
622,
4520,
16647,
8863,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1744,
12,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
729,
1887,
16,
203,
540,
203,
3639,
2254,
5034,
272,
500,
550,
548,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
1801,
16,
203,
3639,
2254,
5034,
8526,
745,
89... |
pragma solidity ^0.5.0;
/// @title Simple wallet
/// @author Tonlabs
contract Wallet {
/*
* Storage
*/
uint256 owner;
address public subscription;
/*
Exception codes:
100 - message sender is not a wallet owner.
101 - limit is overrun.
102 - invalid transfer value.
1... | Storage// Runtime functions/ | function tvm_sender_pubkey() private view returns (uint256) {}
| 12,541,542 | [
1,
3245,
759,
2509,
4186,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
268,
3489,
67,
15330,
67,
23428,
1435,
3238,
1476,
1135,
261,
11890,
5034,
13,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppel... | @notice Fetch all the posts created accross users @return The list of post records | function getAllPosts() external onlyRegisteredUser(msg.sender) view returns (Post[] memory) {
return posts;
}
| 2,513,552 | [
1,
5005,
777,
326,
10775,
2522,
4078,
3984,
3677,
327,
1021,
666,
434,
1603,
3853,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5514,
24983,
1435,
3903,
1338,
10868,
1299,
12,
3576,
18,
15330,
13,
1476,
1135,
261,
3349,
8526,
3778,
13,
288,
203,
3639,
327,
10775,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.23;
contract LotteryFactory {
// contract profit
uint public commissionSum;
// default lottery params
Params public defaultParams;
// lotteries
Lottery[] public lotteries;
// lotteries count
uint public lotteryCount;
// contract owner address
address public owner;
struct Lottery {
m... | * @dev Returns selling token balance by user address @param _user user address @return token acount selling by user/ | function balanceSellingOf(address _user) public view returns(uint) {
Lottery storage lottery = lotteries[lotteryCount - 1];
return lottery.ownerTokenCountToSell[_user];
}
| 1,733,488 | [
1,
1356,
357,
2456,
1147,
11013,
635,
729,
1758,
225,
389,
1355,
729,
1758,
327,
1147,
1721,
592,
357,
2456,
635,
729,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
202,
915,
11013,
55,
1165,
310,
951,
12,
2867,
389,
1355,
13,
1071,
1476,
1135,
12,
11890,
13,
288,
203,
202,
202,
48,
352,
387,
93,
2502,
17417,
387,
93,
273,
17417,
387,
606,
63,
23372,
387,
93,
1380,
300,
404,
15533,
203,
... |
pragma solidity 0.5.17;
import {DepositLiquidation} from "./DepositLiquidation.sol";
import {DepositUtils} from "./DepositUtils.sol";
import {DepositFunding} from "./DepositFunding.sol";
import {DepositRedemption} from "./DepositRedemption.sol";
import {DepositStates} from "./DepositStates.sol";
import {ITBTCSystem} f... | @notice Notify the contract that the ECDSA keep has generated a public key so the deposit contract can pull it in. @dev Stores the pubkey as 2 bytestrings, X and Y. Emits a RegisteredPubkey event with the two components. Reverts if the deposit is not awaiting signer setup, if the generated public key... | function retrieveSignerPubkey() external {
self.retrieveSignerPubkey();
}
| 1,004,496 | [
1,
9168,
326,
6835,
716,
326,
7773,
19748,
3455,
711,
4374,
279,
1071,
540,
498,
1427,
326,
443,
1724,
6835,
848,
6892,
518,
316,
18,
225,
20296,
455,
326,
15649,
487,
576,
1731,
371,
87,
16,
1139,
471,
1624,
18,
7377,
1282,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4614,
15647,
9581,
856,
1435,
3903,
288,
203,
3639,
365,
18,
17466,
15647,
9581,
856,
5621,
203,
565,
289,
203,
203,
2,
-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 "./IBeacon.sol";
import "../utils/OwnableUpgradeable.sol";
import "../utils/Address.sol";
/**
* @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their
* implementation contract, which is where they will... | * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their implementation contract, which is where they will delegate all function calls. An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon./ | contract UpgradeableBeacon is IBeacon, OwnableUpgradeable {
address private _childImplementation;
event Upgraded(address indexed childImplementation);
function __UpgradeableBeacon__init(address childImplementation_) public initializer {
_setChildImplementation(childImplementation_);
}
fu... | 916,289 | [
1,
2503,
6835,
353,
1399,
316,
20998,
598,
1245,
578,
1898,
3884,
434,
288,
1919,
16329,
3886,
97,
358,
4199,
3675,
4471,
6835,
16,
1492,
353,
1625,
2898,
903,
7152,
777,
445,
4097,
18,
1922,
3410,
353,
7752,
358,
2549,
326,
4471,
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,
0,
0,
0,
0,
0... | [
1,
16351,
17699,
429,
1919,
16329,
353,
467,
1919,
16329,
16,
14223,
6914,
10784,
429,
288,
203,
565,
1758,
3238,
389,
3624,
13621,
31,
203,
203,
565,
871,
1948,
19305,
12,
2867,
8808,
1151,
13621,
1769,
203,
203,
203,
565,
445,
1001,... |
./full_match/1/0xFcEC7556B204008e26F78Dfa0996f0Df4994a354/sources/mamasaitama.sol | tax for development
| uint8 private _devTax = 1; | 2,970,623 | [
1,
8066,
364,
17772,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
3238,
389,
5206,
7731,
273,
404,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.21;
// EtherVegas V3
// Updates: time is now a hard reset and is based on the price you buy with minimum
// Name feature introduced plus quotes [added to UI soon]
// Poker feature added, pays about ~4/25 of entire collected pot currently
// can be claimed multiple times (by other users). ... | next poker pot starts at zero. | PokerPayoutValue= (TotalPot * PotPayout * PokerPayout)/(10000*10000);
| 7,307,530 | [
1,
4285,
293,
601,
264,
5974,
2542,
622,
3634,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
453,
601,
264,
52,
2012,
620,
33,
261,
5269,
18411,
380,
23435,
52,
2012,
380,
453,
601,
264,
52,
2012,
13176,
12,
23899,
14,
23899,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x350f004b54a0f3f58BeF1a28f9052Ed6c0965B4b/sources/HarryWarrenBuffettSmurf69Inu.sol | get balance of liquidity pair calculate amount to burn pull tokens from uniswapPair liquidity and perform true burn | function autoBurnLiquidityPairTokens() internal returns (bool) {
lastLpBurnTime = block.timestamp;
uint256 liquidityPairBalance = this.balanceOf(uniswapV2Pair);
uint256 amountToBurn = liquidityPairBalance.mul(percentForLPBurn).div(
10000
);
if (amountToBurn > 0... | 4,097,354 | [
1,
588,
11013,
434,
4501,
372,
24237,
3082,
4604,
3844,
358,
18305,
6892,
2430,
628,
640,
291,
91,
438,
4154,
4501,
372,
24237,
471,
3073,
638,
18305,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3656,
38,
321,
48,
18988,
24237,
4154,
5157,
1435,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
1142,
48,
84,
38,
321,
950,
273,
1203,
18,
5508,
31,
203,
203,
3639,
2254,
5034,
4501,
372,
24237,
4154,
13937,
273,
333,
1... |
/**
*Submitted for verification at Etherscan.io on 2022-04-16
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that ... | File: contracts/Psilocybe.sol Amended by HashLips, then again by Capnganj*/ | contract Psilocybe 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.025 ether;
uint256 public maxSupply = 44... | 7,737,392 | [
1,
812,
30,
20092,
19,
18124,
330,
504,
93,
2196,
18,
18281,
3986,
3934,
635,
2474,
48,
7146,
16,
1508,
3382,
635,
11200,
3368,
304,
78,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
25119,
504,
93,
2196,
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,
14467,
... |
// File: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.6.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 a... | This is a compliant ERC-20
| case 32 { | 348,628 | [
1,
2503,
353,
279,
24820,
4232,
39,
17,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
648,
3847,
288,
15604,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.5.17;
// solhint-disable-next-line compiler-version
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* externa... | * @dev operator can disable relayer whitelisting/ | function disableRelayerWhitelisting() external onlyOperator nonReentrant {
relayerWhitelistingEnabled = false;
}
| 6,782,026 | [
1,
9497,
848,
4056,
1279,
1773,
10734,
310,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4056,
1971,
1773,
18927,
310,
1435,
3903,
1338,
5592,
1661,
426,
8230,
970,
288,
203,
3639,
1279,
1773,
18927,
310,
1526,
273,
629,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// Sources flattened with hardhat v2.8.3 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.4.2
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* se... | if any account belongs to _isExcludedFromFee account then remove the fee | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(balanceOf(from) >= amount, "ERC20: tr... | 437,324 | [
1,
430,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) pu... | Last day the totalScaleStaked was updated
| uint _lastDayStakeWasUpdated; | 12,235,944 | [
1,
3024,
2548,
326,
2078,
5587,
510,
9477,
1703,
3526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
2254,
389,
2722,
4245,
510,
911,
14992,
7381,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
import 'zeppelin-solidity/contracts/ownership/Ownable.sol';
contract SubdomainRedirect is Ownable {
struct SubdomainEntry {
string redirect; // redirect url
address owner; // entry owner
uint registeredUntil; // timestamp until this registration is valid
}
uint public reg... | timestamp until this registration is valid
| uint registeredUntil; | 1,069,423 | [
1,
5508,
3180,
333,
7914,
353,
923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
4104,
9716,
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,
-100,
... |
// File contracts/libraries/SafeMath.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
f... | * @notice calculate true bond price a user pays @return price_ uint/ | function trueBondPrice() public view returns ( uint price_ ) {
price_ = bondPrice().add(bondPrice().mul( currentOlympusFee() ).div( 1e6 ) );
}
| 33,435 | [
1,
11162,
638,
8427,
6205,
279,
729,
293,
8271,
225,
327,
6205,
67,
2254,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
638,
9807,
5147,
1435,
1071,
1476,
1135,
261,
2254,
6205,
67,
262,
288,
203,
3639,
6205,
67,
273,
8427,
5147,
7675,
1289,
12,
26425,
5147,
7675,
16411,
12,
783,
51,
715,
1291,
407,
14667,
1435,
262,
18,
2892,
12,
404,
... |
./full_match/1/0x78E3DD527D0F9d2c64e5ac2f7C1EC9384Da58803/sources/BSB_StakingSoftStakers.sol | 20% of weekly rewards earned
| uint percent_claim = 1; | 3,119,189 | [
1,
3462,
9,
434,
4860,
715,
283,
6397,
425,
1303,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5551,
67,
14784,
273,
404,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 rateLimit;
uint256 lastReport;
uint256 totalDebt;
uint256 totalGain;
... | * @notice Harvests the Strategy, recognizing any profits or losses and adjusting the Strategy's position. In the rare case the Strategy is in emergency shutdown, this will exit the Strategy's position. This may only be called by governance, the strategist, or the keeper. @dev When `harvest()` is called, the Strat... | function harvest() external onlyKeepers {
uint256 profit = 0;
uint256 loss = 0;
uint256 debtOutstanding = vault.debtOutstanding();
uint256 debtPayment = 0;
if (emergencyExit) {
uint256 totalAssets = estimatedTotalAssets();
(debtPayment, loss) = liquida... | 385,872 | [
1,
44,
297,
90,
25563,
326,
19736,
16,
14603,
6894,
1281,
9214,
1282,
578,
24528,
471,
5765,
310,
225,
326,
19736,
1807,
1754,
18,
225,
657,
326,
25671,
648,
326,
19736,
353,
316,
801,
24530,
5731,
16,
333,
903,
2427,
225,
326,
1973... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17895,
26923,
1435,
3903,
1338,
11523,
414,
288,
203,
3639,
2254,
5034,
450,
7216,
273,
374,
31,
203,
3639,
2254,
5034,
8324,
273,
374,
31,
203,
3639,
2254,
5034,
18202,
88,
1182,
15167,
273,
9229,
18,
323,
23602,
1182,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-13
*/
/**
LORD L - https://t.me/LORDLETH
*/
// SPDX-License-Identifier: unlicense
pragma solidity ^0.8.7;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IE... | Buy FeeSell FeeOriginal Fee | contract LORDL is Context, IERC20, Ownable {
using SafeMath for uint256;
uint8 private constant _decimals = 9;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => b... | 15,188,938 | [
1,
38,
9835,
30174,
55,
1165,
30174,
8176,
30174,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
511,
916,
8914,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
7010,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
2254,
28,
3238,
5381,
389,
31734,
273,
2468,
31,
203,
7010,
565,
2874,
12,
... |
./full_match/42/0x19f5981C05cC486d8706d3D691644B0465AaB87E/sources/browser/gists/536123b71478ad4442cfc4278e8de577/RandomNumberConsumer.sol | * Callback function used by VRF Coordinator/ | function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
randomResult = randomness;
uint256 totalAmount = 0;
for (uint i=0; i<entries.length; i++) {
totalAmount = totalAmount + entries[i].amount;
}
uint256 winningNumber... | 16,206,612 | [
1,
2428,
445,
1399,
635,
776,
12918,
10320,
4240,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22290,
8529,
4496,
12,
3890,
1578,
14459,
16,
2254,
5034,
2744,
4496,
13,
2713,
3849,
288,
203,
3639,
2744,
1253,
273,
2744,
4496,
31,
203,
540,
203,
3639,
2254,
5034,
2078,
6275,
273,
374,
31,
203,
3639,
364,
261,
1189... |
./full_match/1/0xBC11De1F20e83F0a6889B8c7A7868E722694E315/sources/submodules/v2-foundry/src/external/aave/StaticAToken.sol | * @dev Converts an aToken or underlying amount to the what it is denominated on the aToken as scaled balance, function of the principal and the liquidity index @param amount The amount to convert from @return uint256 The static (scaled) amount/ | function dynamicToStaticAmount(uint256 amount) public view returns (uint256) {
return amount.rayDiv(rate());
}
| 3,018,082 | [
1,
5692,
392,
279,
1345,
578,
6808,
3844,
358,
326,
4121,
518,
353,
10716,
7458,
603,
326,
279,
1345,
487,
12304,
11013,
16,
445,
434,
326,
8897,
471,
326,
4501,
372,
24237,
770,
225,
3844,
1021,
3844,
358,
1765,
628,
327,
2254,
503... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
5976,
774,
5788,
6275,
12,
11890,
5034,
3844,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
3844,
18,
435,
7244,
12,
5141,
10663,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xe5b9239A8be521C9A08ba9A4b925DFa86Ee19024/sources/contracts/CopyPasta.sol | @notice Sets an account exclusion or inclusion from fees. @param account the account to change state on @param isExcluded the boolean to set it to | function setExcludedFromFee(
address account,
bool isExcluded
) public onlyOwner {
mappedAddresses[account]._isExcludedFromFee = isExcluded;
}
| 2,950,194 | [
1,
2785,
392,
2236,
21244,
578,
26485,
628,
1656,
281,
18,
225,
2236,
326,
2236,
358,
2549,
919,
603,
225,
353,
16461,
326,
1250,
358,
444,
518,
358,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
16461,
1265,
14667,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
1426,
353,
16461,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
5525,
7148,
63,
4631,
65,
6315,
291,
16461,
1265,
14667,
273,
353,
16461,
31,
203,
56... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "ERC721Enumerable.sol";
import "SafeMath.sol";
import "Counters.sol";
import "Ownable.sol";
import "Pausable.sol";
import "BPC.sol";
import "BPCSenderRecipient.sol";
import "ExternalFuncs.sol";
contract BPCLottery is ERC721, ERC777SenderRecipientMock, Ow... | We rely on overflow behavior here
| y = -y; | 154,111 | [
1,
3218,
21187,
603,
9391,
6885,
2674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
10792,
677,
273,
300,
93,
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,
-... |
pragma solidity 0.4.25;
/*
▒ █ ▀ ▀ ▀ █ ▒ █ ▀ ▀ █ ░ █ ▀ ▀ █ ▒ █ ▀ ▀ █ ▒ █ ░ ▄ ▀ ▒ █ ░ ░ ░ ▒ █ ▀ ▀ ▀
░ ▀ ▀ ▀ ▄ ▄ ▒ █ ▄ ▄ █ ▒ █ ▄ ▄ █ ▒ █ ▄ ▄ ▀ ▒ █ ▀ ▄ ░ ▒ █ ░ ░ ░ ▒ █ ▀ ▀ ▀
▒ █ ▄ ▄ ▄ █ ▒ █ ░ ░ ░ ▒ █ ░ ▒ █ ▒ █ ░ ▒ █ ▒ █ ░ ▒ █ ▒ █ ▄ ▄ █ ▒ █ ▄ ▄ ▄
░ █ ▀ ▀ █ ▀ █ ▀ ▒ █ ▀ ▀ █ ▒ █ ▀ ▀ ▄ ▒ ... | * @dev Multiplies two numbers, reverts on overflow./ Gas optimization: this is cheaper than requiring 'a' not being zero, but the benefit is lost if 'b' is also tested. See: https:github.com/OpenZeppelin/openzeppelin-solidity/pull/522 | function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
| 986,588 | [
1,
5002,
5259,
2795,
5600,
16,
15226,
87,
603,
9391,
18,
19,
31849,
14850,
30,
333,
353,
19315,
7294,
2353,
29468,
296,
69,
11,
486,
3832,
3634,
16,
1496,
326,
27641,
7216,
353,
13557,
309,
296,
70,
11,
353,
2546,
18432,
18,
2164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,
203,
565,
289,
203,
203,
565,
2254,
5034,
276,
... |
./partial_match/3/0xc64C4B475C4ee0b30A4E0D3F875A4541e6d480a1/sources/stakingContract.sol | get total rewards withdrawn by poolId | function getTotalRewardsWithdrawnInPool(uint256 _poolId) public constant returns ( uint256 _totalWithdrawn) {
return stakingPool[_poolId].rewardsWithdrawn;
}
| 5,125,855 | [
1,
588,
2078,
283,
6397,
598,
9446,
82,
635,
2845,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
17631,
14727,
1190,
9446,
82,
382,
2864,
12,
11890,
5034,
389,
6011,
548,
13,
1071,
5381,
1135,
261,
2254,
5034,
389,
4963,
1190,
9446,
82,
13,
288,
203,
3639,
327,
384,
6159,
2864,
63,
67,
6011,
548,
8009,
266,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
contract Structs {
/*
* State variable =>
* scope of variable is global
* (can be used in the whole program)
*/
uint public myUint = 1; // uint => unsigned integer (positive values)
address public myAddress = 0x4C501d78c6Bf497d... | local variable => scope of variable is only inside the function/ | function getValue() public pure returns(uint) {
uint value = 1;
return value;
}
| 2,560,525 | [
1,
3729,
2190,
516,
2146,
434,
2190,
353,
1338,
4832,
326,
445,
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,
565,
445,
2366,
1435,
1071,
16618,
1135,
12,
11890,
13,
288,
203,
3639,
2254,
460,
273,
404,
31,
203,
3639,
327,
460,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x8Fc8f8269ebca376D046Ce292dC7eaC40c8D358A/sources/DFI.sol | * @dev DFI ERC20 token, including: - Referenced from OpenZeppelin v3.3 preset: presets/ERC20PresetMinterPauser.sol - with pauser role and pause functionality removed/ | contract DFI is Context, AccessControl, ERC20Burnable {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
string private _backingAddress = "dZFYejknFdHMHNfHMNQAtwihzvq7DkzV49";
constructor() ERC20("DeFiChain Token", "DFI") {
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
_setu... | 3,701,682 | [
1,
40,
1653,
4232,
39,
3462,
1147,
16,
6508,
30,
225,
300,
6268,
72,
628,
3502,
62,
881,
84,
292,
267,
331,
23,
18,
23,
12313,
30,
24649,
19,
654,
39,
3462,
18385,
49,
2761,
16507,
1355,
18,
18281,
225,
300,
598,
6790,
1355,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
16351,
463,
1653,
353,
1772,
16,
24349,
16,
4232,
39,
3462,
38,
321,
429,
288,
203,
565,
1731,
1578,
1071,
5381,
6989,
2560,
67,
16256,
273,
417,
24410,
581,
5034,
2932,
6236,
2560,
67,
16256,
8863,
203,
565,
533,
3238,
389,
823,... |
./full_match/7672/0x04742440f3272232Dd46FCDb3e86A4c2961d5164/sources/contracts/libraries/Manageable.sol | * @dev Contract module which provides a basic access control mechanism, where there is an list of public managers who may be added or removed. This module is used through inheritance. It will make available the modifier `onlyManager`, which can be applied to your functions to restrict their use to other contracts which... | abstract contract Manageable is Ownable2StepUpgradeable {
mapping(address => uint256) public managers;
error OnlyManagers();
error ManagerCannotBeZeroAddress();
pragma solidity ^0.8.18;
function addManager(address manager) external onlyOwner {
if (manager == address(0)) {
revert Ma... | 16,296,176 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
666,
434,
1071,
21103,
10354,
2026,
506,
3096,
578,
3723,
18,
1220,
1605,
353,
1399,
3059,
16334,
18,
2597,
903,
1221,
2319,
326,
9606,
1375,
3700,
131... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
24247,
429,
353,
14223,
6914,
22,
4160,
10784,
429,
288,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
21103,
31,
203,
203,
565,
555,
5098,
17570,
5621,
203,
565,
555,
8558,
4515,
1919,
7170,
1887,
5621,
203,
... |
pragma solidity ^0.5.2;
/**
* @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) {
/... | It only works correctly when the rate is 1000. | function swap() external returns (bool) {
uint256 allowance = _fromToken.allowance(msg.sender, address(this));
require(allowance > 0, "sender need to approve token to swap contract.");
if (_fromToken.transferFrom(msg.sender, address(0x0), allowance)) {
uint256 swappedValue = all... | 12,585,809 | [
1,
7193,
1338,
6330,
8783,
1347,
326,
4993,
353,
4336,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
1435,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
1699,
1359,
273,
389,
2080,
1345,
18,
5965,
1359,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
10019,
203,
3639,
2583,
12,
5965,
1359,
405,
374,
16,
315,
... |
pragma solidity 0.8.4;
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "./YourToken.sol";
contract Vendor is Ownable {
event BuyTokens(address buyer, uint256 amountOfETH, uint256 amountOfTokens);
uint256 public constant tokensPerEth = 100;
YourToken public yourToken... | ToDo: create a sellTokens() function: | function sellTokens(uint256 amount) external {
yourToken.transferFrom(msg.sender, address(this), amount);
require(payedSeller, 'Unable to pay seller');
}
| 12,835,987 | [
1,
774,
3244,
30,
752,
279,
357,
80,
5157,
1435,
445,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
357,
80,
5157,
12,
11890,
5034,
3844,
13,
3903,
288,
203,
565,
3433,
1345,
18,
13866,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
3844,
1769,
203,
203,
565,
2583,
12,
10239,
329,
22050,
16,
296,
3370,
358,
88... |
./partial_match/80001/0x636C4701Fdd1C46e47177cef7032b26402Bf7251/sources/minter1.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view retu... | 8,818,716 | [
1,
1358,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1560,
467,
654,
39,
3462,
288,
203,
3639,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
460,
1769,
203,
203,
3639,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
5... |
/**
*Submitted for verification at Etherscan.io on 2020-07-28
*/
pragma solidity 0.6.0;
/**
* @title Offering contract
* @dev Offering + take order + NEST allocation
*/
contract Nest_3_OfferMain {
using SafeMath for uint256;
using address_make_payable for address;
using SafeERC20 for ERC20;
s... | Additional transaction multiple
| uint256 _tranAddition = 2; | 5,361,424 | [
1,
10552,
2492,
3229,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
389,
13171,
30296,
273,
576,
31,
21821,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC721Metadata.sol";
import "@openzep... | mint the NFTFirst day is insiders list require(IERC721(earlyAccessHolders).balanceOf(msg.sender) > 0,"early"); | function inhabit(uint16 _cityId, int16[2] calldata _coordinates, bytes32[] memory proof) public payable{
require(stage() == Stage.PreSiege,"stage");
if(block.timestamp < startTime + EARLY_ACCESS_TIME){
}
bytes32 leaf = keccak256(abi.encodePacked(_cityId,_coordinates[0],_coordinates... | 5,430,621 | [
1,
81,
474,
326,
423,
4464,
3759,
2548,
353,
2763,
24290,
666,
5411,
2583,
12,
45,
654,
39,
27,
5340,
12,
2091,
715,
1862,
27003,
2934,
12296,
951,
12,
3576,
18,
15330,
13,
405,
374,
10837,
2091,
715,
8863,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
316,
76,
30258,
12,
11890,
2313,
389,
14240,
548,
16,
509,
2313,
63,
22,
65,
745,
892,
389,
16941,
16,
1731,
1578,
8526,
3778,
14601,
13,
1071,
8843,
429,
95,
203,
3639,
2583,
12,
12869,
1435,
422,
16531,
18,
1386,
55... |
/**
*Submitted for verification at Etherscan.io on 2022-04-11
*/
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
interface ERC20 {
function totalSupply() external view returns (uint _totalSupply);
function balanceOf(address _owner) external view returns (uint balance);
function transfer(ad... | Balances Fees and limits @dev To enable decimals, we use 10x values and then divide /1000 | struct tax {
uint16 president;
uint16 coder;
uint16 liquidity;
uint16 marketing;
uint16 development;
}
mapping (bytes32 => tax) tax_on;
uint origin_time;
address president_wallet;
address marketing_wallet;
address coder_wallet;
address developme... | 15,104,982 | [
1,
38,
26488,
5782,
281,
471,
8181,
225,
2974,
4237,
15105,
16,
732,
999,
1728,
92,
924,
471,
1508,
12326,
342,
18088,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5320,
288,
203,
3639,
2254,
2313,
4075,
6392,
31,
203,
3639,
2254,
2313,
276,
5350,
31,
203,
3639,
2254,
2313,
4501,
372,
24237,
31,
203,
3639,
2254,
2313,
13667,
310,
31,
203,
3639,
2254,
2313,
17772,
31,
203,
565,
28... |
./full_match/4/0x0A7a3f0696c36E5c3452915dbB1b3115c3A37680/sources/browser/3_Ballot.sol | putting safeguard on will halt all non-owner functions
| bool public safeguard; | 671,033 | [
1,
458,
1787,
11029,
1332,
89,
1060,
603,
903,
18389,
777,
1661,
17,
8443,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1426,
1071,
11029,
1332,
89,
1060,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.13;
/**
.o. . .o8
.888. .o8 "888
.8"888. .oooo.o .o888oo oooo d8b .ooooo. .oooo888 oooo d8b .ooooo. oo.ooooo.
.8' `888. ... | @notice Offer ERC-20 tokens to the Shrine and distribute them to Champions proportional to their shares in the Shrine. Callable by anyone. @param token The ERC-20 token being offered to the Shrine @param amount The amount of tokens to offer ------------------------------------------------------------------- State upda... | function offer(ERC20 token, uint256 amount) external {
offeredTokens[currentLedgerVersion][token] += amount;
token.safeTransferFrom(msg.sender, address(this), amount);
emit Offer(msg.sender, token, amount);
}
| 15,818,196 | [
1,
10513,
4232,
39,
17,
3462,
2430,
358,
326,
2638,
86,
558,
471,
25722,
2182,
358,
1680,
931,
1115,
23279,
287,
358,
3675,
24123,
316,
326,
2638,
86,
558,
18,
10464,
635,
1281,
476,
18,
225,
1147,
1021,
4232,
39,
17,
3462,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10067,
12,
654,
39,
3462,
1147,
16,
2254,
5034,
3844,
13,
3903,
288,
203,
203,
3639,
10067,
329,
5157,
63,
2972,
28731,
1444,
6362,
2316,
65,
1011,
3844,
31,
203,
203,
203,
3639,
1147,
18,
4626,
5912,
1265,
12,
3576,
... |
pragma solidity ^0.5.4;
import "./AuctionityLibrary_V1.sol";
/// @title AuctionityOracable_V1
contract AuctionityOracable_V1 is AuctionityLibrary_V1 {
/// @notice event LogOracleTransfered_V1
event LogOracleTransfered_V1(
address indexed previousOracle,
address indexed newOracle
);
//... | @notice verify oracle address @param _oracle address : address to compare @return _isOracle bool | function verifyOracle_V1(address _oracle)
public
view
returns (bool _isOracle)
{
return _oracle == oracle;
}
| 919,274 | [
1,
8705,
20865,
1758,
225,
389,
280,
16066,
1758,
294,
1758,
358,
3400,
327,
389,
291,
23601,
1426,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3929,
23601,
67,
58,
21,
12,
2867,
389,
280,
16066,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
389,
291,
23601,
13,
203,
565,
288,
203,
3639,
327,
389,
280,
16066,
422,
20865,
31,
203,
565,
289,... |
//Address: 0x65d08c27d696eb55170cb3346b423ad85e58de68
//Contract name: CSCRarePreSaleManager
//Balance: 145.914409625771604941 Ether
//Verification Date: 4/5/2018
//Transacion Count: 29
// CODE STARTS HERE
pragma solidity ^0.4.19;
/* Adapted from strings.sol created by Nick Johnson <arachnid@notdot.net>
* Ref: htt... | @dev Creates and begins a new sale. Sanity check that no inputs overflow how many bits we've allocated to store them in the sale struct. | function _createSale(uint256 _tokenId, uint256 _startingPrice, uint256 _endingPrice, uint64 _duration, address _seller) internal {
require(_startingPrice == uint256(uint128(_startingPrice)));
require(_endingPrice == uint256(uint128(_endingPrice)));
require(_duration == uint256(uint64(_duration)));
... | 6,344,697 | [
1,
2729,
471,
17874,
279,
394,
272,
5349,
18,
23123,
866,
716,
1158,
4540,
9391,
3661,
4906,
4125,
732,
8081,
11977,
358,
1707,
2182,
316,
326,
272,
5349,
1958,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
2640,
30746,
12,
11890,
5034,
389,
2316,
548,
16,
2254,
5034,
389,
18526,
5147,
16,
2254,
5034,
389,
2846,
5147,
16,
2254,
1105,
389,
8760,
16,
1758,
389,
1786,
749,
13,
2713,
288,
203,
1377,
2583,
24899,
18526,
51... |
./full_match/1/0x18faf3cdF637D6054C64fE76cEA218C6e009c261/sources/contracts/interfaces/IDogMoneyAuctionHouse.sol | The id of this auction. The package containing which tokens are to be auctioned. The current highest bid amount. The time that the auction started. The time that the auction is scheduled to end. The address of the current highest bid. Whether or not the auction has been settled. If there isn't balance for an auction, ... | struct Auction {
uint256 id;
AuctionPack auctionPack;
uint256 amount;
uint256 startTime;
uint256 endTime;
address payable bidder;
bool settled;
bool cancelled;
uint256 lastAttempt;
}
| 8,448,319 | [
1,
1986,
612,
434,
333,
279,
4062,
18,
1021,
2181,
4191,
1492,
2430,
854,
358,
506,
279,
4062,
329,
18,
1021,
783,
9742,
9949,
3844,
18,
1021,
813,
716,
326,
279,
4062,
5746,
18,
1021,
813,
716,
326,
279,
4062,
353,
9755,
358,
679... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
432,
4062,
288,
203,
3639,
2254,
5034,
612,
31,
203,
3639,
432,
4062,
4420,
279,
4062,
4420,
31,
203,
3639,
2254,
5034,
3844,
31,
203,
3639,
2254,
5034,
8657,
31,
203,
3639,
2254,
5034,
13859,
31,
203,
3639,
1758,
8843... |
/**
*Submitted for verification at Etherscan.io on 2022-02-24
*/
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
... | in case ETH price gets too high; expressed in ETH x 10^18 | function setPrice(uint256 _price) external onlyOwner {
PUBLIC_PRICE = _price;
}
| 10,611,167 | [
1,
267,
648,
512,
2455,
6205,
5571,
4885,
3551,
31,
26863,
316,
512,
2455,
619,
1728,
66,
2643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5147,
12,
11890,
5034,
389,
8694,
13,
3903,
1338,
5541,
288,
203,
3639,
17187,
67,
7698,
1441,
273,
389,
8694,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0xCF810239F6266316D4Cfe2E478cD8d6be03ae1A6/sources/contracts/Comptroller.sol | * @notice Set the COMP token address @param _comp The COMP address/ | function _setCompAddress(address _comp) public {
require(msg.sender == admin, "only admin can set comp");
comp = _comp;
}
| 4,943,420 | [
1,
694,
326,
13846,
1147,
1758,
225,
389,
2919,
1021,
13846,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
542,
2945,
1887,
12,
2867,
389,
2919,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
16,
315,
3700,
3981,
848,
444,
1161,
8863,
203,
3639,
1161,
273,
389,
2919,
31,
203,
203,
565,
289,
203,
2,
... |
./partial_match/97/0x6315329068FC855F224D09924A11EA266EfF4486/sources/CLIQ.sol | function to performs staking for user tokens for a specific period of time | function stakeToken2(uint256 tokens, uint256 time) public returns(bool){
require( time > now && tokens > 0, "Invalid time and Amount");
_stakingCount = _stakingCount +1 ;
_time = now + (time * 1 days);
_totalDays[_stakingCount] = time;
_stakingAddress[_stakingCount] = msg.sender;
_stakingEndTi... | 11,461,417 | [
1,
915,
358,
11199,
384,
6159,
364,
729,
2430,
364,
279,
2923,
3879,
434,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
384,
911,
1345,
22,
12,
11890,
5034,
2430,
16,
2254,
5034,
813,
13,
1071,
1135,
12,
6430,
15329,
203,
565,
2583,
12,
813,
405,
2037,
597,
2430,
405,
374,
16,
315,
1941,
813,
471,
16811,
8863,
203,
565,
389,
334,
6159,... |
pragma solidity ^0.4.18;
// CONTRACT USED TO TEST THE ICO CONTRACT
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);... | Setting Token Name to Mango Setting Token Symbol to MGO Setting Token Decimals to 18 Setting Token Decimals to 45 Million Flags address for KYC verrified. | contract IprontoToken is StandardToken {
string public constant name = "iPRONTO";
string public constant symbol = "IPR";
uint8 public constant decimals = 18;
uint256 public constant INITIAL_SUPPLY = 45000000 * (1 ether / 1 wei);
address public owner;
mapping (address => bool) public validKyc;
funct... | 2,362,134 | [
1,
5568,
3155,
1770,
358,
490,
6399,
13274,
3155,
8565,
358,
490,
16387,
13274,
3155,
3416,
11366,
358,
6549,
13274,
3155,
3416,
11366,
358,
12292,
490,
737,
285,
10104,
1758,
364,
1475,
61,
39,
331,
370,
939,
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,
0,
0,
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,
467,
683,
265,
869,
1345,
353,
8263,
1345,
288,
203,
203,
225,
533,
1071,
5381,
508,
273,
315,
77,
8025,
673,
4296,
14432,
203,
203,
225,
533,
1071,
5381,
3273,
273,
315,
2579,
54,
14432,
203,
203,
225,
2254,
28,
1071,
5... |
// SPDX-License-Identifier: MIT
// CBOX Agent for getting items from given vault
//
// .. . . ..
// @@@@& &@@@@@@@@@@@@@@@( @@@@@.
// @@@@& [email protected]@@@@@@@@@@@@@@@@@@@@@@@@. @@@@@.
// @@@@& @@@@@@@@ @@@@@@@@ @@@@@.
// @@@@@@@@@@.. ... | Disallow contract calls Check if cbox already claimed in given week index check if msg.sender still owns that eligible cbox | function claimToken(
address vaultAddress,
address contractAddress,
uint256 tokenId,
uint256 passId,
uint256 cboxWeek,
bytes memory signature
) public whenNotPaused {
if (msg.sender != tx.origin) {
revert PermissionError("Contract calls is not allowed");
}
if (_cboxClaims[... | 1,242,142 | [
1,
1669,
5965,
6835,
4097,
2073,
309,
276,
2147,
1818,
7516,
329,
316,
864,
4860,
770,
866,
309,
1234,
18,
15330,
4859,
29065,
716,
21351,
276,
2147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7516,
1345,
12,
203,
565,
1758,
9229,
1887,
16,
203,
565,
1758,
6835,
1887,
16,
203,
565,
2254,
5034,
1147,
548,
16,
203,
565,
2254,
5034,
1342,
548,
16,
203,
565,
2254,
5034,
276,
2147,
6630,
16,
203,
565,
1731,
3778... |
pragma solidity ^0.5.11;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "./XPayCollectible.sol";
import "./Strings.sol";
contract XPayFactory is Ownable, ReentrancyGuard {
using Strings for string;
using SafeMath for uint2... | Only the factory owner or owner's proxy can have supply Haven't minted yet | function balanceOf(
address _owner,
uint256 _tokenId
) public view returns (uint256) {
if (!_isOwnerOrProxy(_owner)) {
return 0;
}
uint256 id = tokenToTokenID[_tokenId];
if (id == 0) {
return SUPPLY_PER_TOKEN_ID;
}
XPayCollectible nftContract = XPayCollectible(nftAd... | 989,506 | [
1,
3386,
326,
3272,
3410,
578,
3410,
1807,
2889,
848,
1240,
14467,
670,
7638,
1404,
312,
474,
329,
4671,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
11013,
951,
12,
203,
565,
1758,
389,
8443,
16,
203,
565,
2254,
5034,
389,
2316,
548,
203,
225,
262,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
16051,
67,
291,
5541,
1162,
3886,
24899,
8443,
3719,
288,
... |
./full_match/43114/0x72960B8bf97573DaC08B3cACf8Fe86F73c4F4d85/sources/avaxArbBot.sol | path[0] is out token
| uint[] memory amounts = IUniRouter(router).getAmountsIn(a1, reversePath); | 4,628,182 | [
1,
803,
63,
20,
65,
353,
596,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
8526,
3778,
30980,
273,
467,
984,
77,
8259,
12,
10717,
2934,
588,
6275,
87,
382,
12,
69,
21,
16,
4219,
743,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma ton-solidity >= 0.30.0;
import "voting_interface.sol";
contract SaverAdmin is IAdmin {
constructor() public {
require(tvm.pubkey() != 0, 101);
require(msg.pubkey() == tvm.pubkey(), 102);
tvm.accept();
reset_voter_msg_accepted();
}
modifier checkOwnerAndAccept {
... | ============================================ Initialization of the new voting session ============================================ voting session with such eid was initialized already | function init_voting_session(bytes eid, bytes pk_eid, bytes vk_eid, address[] voters_addresses, bytes rt) public checkOwnerAndAccept {
require(voters_addresses.length > 0, 106);
require(m_all_eid.add(eid, null), 107);
m_eid = eid;
SharedStructs.SessionState session_init_state;
... | 14,073,664 | [
1,
4428,
14468,
26586,
434,
326,
394,
331,
17128,
1339,
422,
4428,
1432,
631,
331,
17128,
1339,
598,
4123,
22555,
1703,
6454,
1818,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1208,
67,
90,
17128,
67,
3184,
12,
3890,
22555,
16,
1731,
2365,
67,
73,
350,
16,
1731,
331,
79,
67,
73,
350,
16,
1758,
8526,
331,
352,
414,
67,
13277,
16,
1731,
8253,
13,
1071,
866,
5541,
1876,
5933,
288,
203,
3639,... |
// SPDX-License-Identifier: Apache License, Version 2.0
pragma solidity ^0.6.10;
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { ISetToken } from "../interfaces/ISetToken.sol";
import { IIndexModule } from "../interfaces/IIndexModule.sol";
import { IStreamingFeeModule } from "../interface... | * OPERATOR ONLY: Set exchange for passed components @param _components Array of components @param _exchanges Array of exchanges mapping to correct component, uint256 used to signify exchange/ | function setAssetExchanges(
address[] calldata _components,
uint256[] calldata _exchanges
)
external
onlyOperator
{
indexModule.setExchanges(_components, _exchanges);
}
| 1,010,028 | [
1,
26110,
20747,
30,
1000,
7829,
364,
2275,
4085,
225,
389,
8119,
3639,
1510,
434,
4085,
225,
389,
338,
6329,
540,
1510,
434,
431,
6329,
2874,
358,
3434,
1794,
16,
2254,
5034,
1399,
358,
1573,
1164,
7829,
19,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
6672,
424,
6329,
12,
203,
3639,
1758,
8526,
745,
892,
389,
8119,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
338,
6329,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
5592,
203,
565,
288,
203,
3639,
770,
31... |
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint25... | if we want to stop the minting it is like play and pause button
| bool public paused = false; | 1,498,913 | [
1,
430,
732,
2545,
358,
2132,
326,
312,
474,
310,
518,
353,
3007,
6599,
471,
11722,
3568,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1426,
1071,
17781,
273,
629,
31,
4766,
4202,
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,
... |
//
// compiler: solcjs -o ./build/contracts --optimize --abi --bin <this file>
// version: 0.4.15+commit.bbb8e64f.Emscripten.clang
//
pragma solidity ^0.4.15;
contract owned {
address public owner;
function owned() { owner = msg.sender; }
modifier onlyOwner {
if (msg.sender != owner) { revert(); }
_;
... | price: approx $0.65 ea
| uint public constant HASHPERETH = 1000; | 6,518,958 | [
1,
8694,
30,
10818,
271,
20,
18,
9222,
24164,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
1071,
5381,
21641,
2500,
654,
1584,
44,
273,
4336,
31,
3639,
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,
... |
./partial_match/1/0xd4d65359c861243124A0037f4a156BD232f0474F/sources/EmartzonAirdrop.sol | loop over the users array and send the prize to each user check if the user has already claimed the prize send the prize to the user set the user as claimed add the prize amount to the total prize amount | function airdropPrizes() external onlyOwner {
for(uint i = 0; i < users.length; i++) {
if(!claimed[users[i]]) {
IERC20(prizeToken).safeTransfer(users[i], prizeAmount);
claimed[users[i]] = true;
totalPrizeAmount = totalPrizeAmount.add(prizeAmount);
... | 16,065,917 | [
1,
6498,
1879,
326,
3677,
526,
471,
1366,
326,
846,
554,
358,
1517,
729,
866,
309,
326,
729,
711,
1818,
7516,
329,
326,
846,
554,
1366,
326,
846,
554,
358,
326,
729,
444,
326,
729,
487,
7516,
329,
527,
326,
846,
554,
3844,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
6909,
1764,
2050,
3128,
1435,
3903,
1338,
5541,
288,
203,
3639,
364,
12,
11890,
277,
273,
374,
31,
277,
411,
3677,
18,
2469,
31,
277,
27245,
288,
203,
5411,
309,
12,
5,
14784,
329,
63,
5577,
63,
77,
65,
5717,
2... |
pragma solidity ^0.4.13;
interface ERC721Enumerable /* is ERC721 */ {
/// @notice Count NFTs tracked by this contract
/// @return A count of valid NFTs tracked by this contract, where each one of
/// them has an assigned and queryable owner not equal to the zero address
function totalSupply() public v... | * @notice Transfers the ownership of an NFT from one address to another address @dev Throws unless `msg.sender` is the current owner, an authorized operator, or the approved address for this NFT. Throws if `_from` is not the current owner. Throws if `_to` is the zero address. Throws if `_tokenId` is not a valid NFT. Wh... | function safeTransferFrom(
address _from,
address _to,
uint256 _tokenId,
bytes _data
)
public
whenNotPaused
{
require(_to != address(0));
require(_isValidLicense(_tokenId));
transferFrom(_from, _to, _tokenId);
if (_isContract(_to)) {
bytes4 tokenReceiverResponse = ERC... | 478,490 | [
1,
1429,
18881,
326,
23178,
434,
392,
423,
4464,
628,
1245,
1758,
358,
4042,
1758,
225,
22435,
3308,
1375,
3576,
18,
15330,
68,
353,
326,
783,
3410,
16,
392,
10799,
3726,
16,
578,
326,
20412,
1758,
364,
333,
423,
4464,
18,
22435,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
5912,
1265,
12,
203,
565,
1758,
389,
2080,
16,
203,
565,
1758,
389,
869,
16,
203,
565,
2254,
5034,
389,
2316,
548,
16,
203,
565,
1731,
389,
892,
203,
225,
262,
203,
565,
1071,
203,
565,
1347,
1248,
28590,
203,
... |
./partial_match/42/0xf6B81d1CFDb8D122176c0F26db87932aB9085358/sources/ExchangeRates.sol | * @notice Check if a specific currency's rate hasn't been updated for longer than the stale period./ xUSD is a special case and is never stale. | function rateIsStale(bytes32 currencyKey) public view returns (bool) {
if (currencyKey == "xUSD") return false;
return lastRateUpdateTimes(currencyKey).add(rateStalePeriod) < now;
}
| 8,851,147 | [
1,
1564,
309,
279,
2923,
5462,
1807,
4993,
13342,
1404,
2118,
3526,
364,
7144,
2353,
326,
14067,
3879,
18,
19,
619,
3378,
40,
353,
279,
4582,
648,
471,
353,
5903,
14067,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4993,
2520,
19155,
12,
3890,
1578,
5462,
653,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
7095,
653,
422,
315,
92,
3378,
40,
7923,
327,
629,
31,
203,
203,
3639,
327,
1142,
4727,
1891,
10694,
12,
709... |
{{
"language": "Solidity",
"sources": {
"contracts/5/EIP1167/CloneFactory.sol": {
"content": "pragma solidity 0.5.13;\n\n/*\nThe MIT License (MIT)\n\nCopyright (c) 2018 Murray Software, LLC.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated do... | XXX Currently there is no better way to check if there is a contract in an address\n than to check the size of the code at that address.\n See https:ethereum.stackexchange.com/a/14016/36603\n for more details about how this works.\n TODO Check this again before the Serenity release, because all address... | "content": " pragma solidity 0.5.13;\n\nimport \"@openzeppelin/contracts/math/SafeMath.sol\";\n\n/**\n * Utility library of inline functions on addresses\n */\nlibrary AddressUtils {\n\n /**\n * Returns whether the target address is a contract\n * @dev This function will return false if invoked during the co... | 7,322,437 | [
1,
15639,
15212,
1915,
353,
1158,
7844,
4031,
358,
866,
309,
1915,
353,
279,
6835,
316,
392,
1758,
64,
82,
377,
2353,
358,
866,
326,
963,
434,
326,
981,
622,
716,
1758,
8403,
82,
377,
2164,
2333,
30,
546,
822,
379,
18,
3772,
16641... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1377,
315,
1745,
6877,
315,
10878,
18035,
560,
374,
18,
25,
18,
3437,
9747,
82,
64,
82,
5666,
1239,
36,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
15949,
19,
9890,
10477,
18,
18281,
2412,
9747,
82,
64,
82,
26873,
64,
82,... |
./full_match/1/0xa6Ae1C1Dc3024ec951972A10A7043bc7425F1f57/sources/contracts/ArtblocksOracle.sol | Otherwise, between 0 and 255 tokens in this word are finalized; form a mask of their indices. (This subtraction doesn't underflow because the shift produces a nonzero value, given the bounds on `_numFinalizedSinceStartOfWord`.) | return (1 << _numFinalizedSinceStartOfWord) - 1;
| 16,526,911 | [
1,
8290,
2460,
16,
3086,
374,
471,
4561,
2430,
316,
333,
2076,
854,
727,
1235,
31,
646,
279,
3066,
434,
3675,
4295,
18,
261,
2503,
720,
25693,
3302,
1404,
3613,
2426,
2724,
326,
4654,
15505,
279,
16966,
460,
16,
864,
326,
4972,
603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
261,
21,
2296,
389,
2107,
7951,
1235,
9673,
1685,
951,
3944,
13,
300,
404,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xE4dD566b410Fe45db55BD9F5f928269290B0a674/sources/SecurityToken.sol | * @notice Burn function used to burn the securityToken on behalf of someone else @param _from Address for whom to burn tokens @param _value No. of tokens that get burned @param _data data to indicate validation/ | function burnFromWithData(address _from, uint256 _value, bytes _data) public onlyModule(BURN_KEY) {
require(_value <= allowed[_from][msg.sender], "Value too high");
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
require(_burn(_from, _value, _data), "Burn invalid");
... | 4,335,626 | [
1,
38,
321,
445,
1399,
358,
18305,
326,
4373,
1345,
603,
12433,
6186,
434,
18626,
469,
225,
389,
2080,
5267,
364,
600,
362,
358,
18305,
2430,
225,
389,
1132,
2631,
18,
434,
2430,
716,
336,
18305,
329,
225,
389,
892,
501,
358,
10768,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
1265,
1190,
751,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
1132,
16,
1731,
389,
892,
13,
1071,
1338,
3120,
12,
38,
8521,
67,
3297,
13,
288,
203,
3639,
2583,
24899,
1132,
1648,
2935,
63,
67,
2080,
6362,
3576,
18... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title WrappedBustOfRomeOneYear
/// @author jpegmint.xyz
import "./INiftyBuilder.sol";
import "./@jpegmint/contracts/ERC721Wrapper.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openze... | * _ __ __ ___ __ ___ ___ | | /| / /______ ____ ___ ___ ___/ / / _ )__ _____ / /_ ___ / _/ / _ \___ __ _ ___ |__/|__/_/ \_,_/ .__/ .__/\__/\_,_/ /____/\_,_/___/\__/ \___/_/ /_/|_|\___/_/_/_/\__/ /_/ /_/ @dev Wrapping contract for ROME token to i... | contract WrappedBustOfRomeOneYear is ERC721Wrapper, Ownable {
using Strings for uint256;
INiftyBuilder private immutable _niftyBuilderInstance;
constructor(address niftyBuilderAddress) ERC721("Wrapped Bust of Rome (One Year)", "wROME") {
_niftyBuilderInstance = INiftyBuilder(niftyBuilderAddress)... | 14,789,045 | [
1,
67,
1377,
1001,
12900,
1001,
225,
19608,
6647,
1001,
540,
19608,
225,
19608,
571,
571,
342,
96,
342,
342,
7198,
972,
19608,
67,
225,
19608,
225,
19608,
19608,
19,
342,
342,
389,
262,
972,
389,
7198,
342,
342,
67,
225,
19608,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24506,
38,
641,
951,
54,
1742,
3335,
5593,
353,
4232,
39,
27,
5340,
3611,
16,
14223,
6914,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
2120,
2136,
93,
1263,
3238,
11732,
389,
82,
2136,
93,
1263,
1442,
... |
pragma solidity >=0.4.21 <0.7.0;
interface ArbBLS {
// Associate a BLS public key with the caller's address
function register(uint x0, uint x1, uint y0, uint y1) external;
// Get the BLS public key associated with an address (revert if there isn't one)
function getPublicKey(address addr) external view... | Associate a BLS public key with the caller's address Get the BLS public key associated with an address (revert if there isn't one) | interface ArbBLS {
function register(uint x0, uint x1, uint y0, uint y1) external;
function getPublicKey(address addr) external view returns (uint, uint, uint, uint);
}
| 12,656,497 | [
1,
23880,
279,
605,
3045,
1071,
498,
598,
326,
4894,
1807,
1758,
968,
326,
605,
3045,
1071,
498,
3627,
598,
392,
1758,
261,
266,
1097,
309,
1915,
5177,
1404,
1245,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
1201,
70,
38,
3045,
288,
203,
565,
445,
1744,
12,
11890,
619,
20,
16,
2254,
619,
21,
16,
2254,
677,
20,
16,
2254,
677,
21,
13,
3903,
31,
203,
203,
565,
445,
31785,
12,
2867,
3091,
13,
3903,
1476,
1135,
261,
11890,
16,
... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | * @notice Calculate the address used when bridging an ERC20 token @dev this always returns the same as the L1 oracle, but may be out of date. For example, a custom token may have been registered but not deploy or the contract self destructed. @param l1ERC20 address of L1 token @return L2 address of a bridged ERC20 toke... | function _calculateL2TokenAddress(address l1ERC20)
internal
view
virtual
override
returns (address)
{
if (l1ERC20 != l1Weth) {
return address(0);
}
return l2Weth;
}
| 12,781,064 | [
1,
8695,
326,
1758,
1399,
1347,
324,
1691,
1998,
392,
4232,
39,
3462,
1147,
225,
333,
3712,
1135,
326,
1967,
487,
326,
511,
21,
20865,
16,
1496,
2026,
506,
596,
434,
1509,
18,
2457,
3454,
16,
279,
1679,
1147,
2026,
1240,
2118,
4104,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11162,
48,
22,
1345,
1887,
12,
2867,
328,
21,
654,
39,
3462,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
2867,
13,
203,
565,
288,
203,
3639,
309,
261,
80,
21,
6... |
./partial_match/421613/0xE6Db969E4d0615F1A6071e8F806055662676cEF6/sources/contracts/protocol/libraries/logic/ValidationLogic.sol | * @dev Validates a stable borrow rate rebalance action @param reserve The reserve state on which the user is getting rebalanced @param reserveAddress The address of the reserve @param stableDebtToken The stable debt token instance @param variableDebtToken The variable debt token instance @param zTokenAddress The addres... | function validateRebalanceStableBorrowRate(
DataTypes.ReserveData storage reserve,
address reserveAddress,
IERC20 stableDebtToken,
IERC20 variableDebtToken,
address zTokenAddress
) external view {
(bool isActive, , , ) = reserve.configuration.getFlags();
require(isActive, Errors.VL_NO_A... | 16,825,100 | [
1,
9594,
279,
14114,
29759,
4993,
283,
12296,
1301,
225,
20501,
1021,
20501,
919,
603,
1492,
326,
729,
353,
8742,
283,
12296,
72,
225,
20501,
1887,
1021,
1758,
434,
326,
20501,
225,
14114,
758,
23602,
1345,
1021,
14114,
18202,
88,
1147,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
426,
12296,
30915,
38,
15318,
4727,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
20501,
16,
203,
565,
1758,
20501,
1887,
16,
203,
565,
467,
654,
39,
3462,
14114,
758,
23602,
1345,
16,
203,
565,
467,
654,
... |
pragma solidity 0.4.18;
/// @title Ownable
/// @dev The Ownable contract has an owner address, and provides basic authorization control functions,
/// this simplifies the implementation of "user permissions".
/// @dev Based on OpenZeppelin's Ownable.
contract Ownable {
address public owner;
address p... | bytes4 grantSig = bytes4(keccak256("grant(address,uint256,uint256,uint256,uint256,bool)")); 6 arguments of size 32 sig + arguments size Add the signature first to memory Add the parameters | function grant(address _grantee, uint256 _amount, uint256 _start, uint256 _cliff, uint256 _end,
uint256 _installmentLength, bool _revokable) private {
bytes4 grantSig = 0x5ee7e96d;
uint256 argsSize = 6 * 32;
uint256 dataSize = 4 + argsSize;
bytes memory m_data = new bytes(da... | 1,083,172 | [
1,
3890,
24,
7936,
8267,
273,
1731,
24,
12,
79,
24410,
581,
5034,
2932,
16243,
12,
2867,
16,
11890,
5034,
16,
11890,
5034,
16,
11890,
5034,
16,
11890,
5034,
16,
6430,
2225,
10019,
1666,
1775,
434,
963,
3847,
3553,
397,
1775,
963,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7936,
12,
2867,
389,
75,
2450,
22579,
16,
2254,
5034,
389,
8949,
16,
2254,
5034,
389,
1937,
16,
2254,
5034,
389,
830,
3048,
16,
2254,
5034,
389,
409,
16,
203,
3639,
2254,
5034,
389,
5425,
475,
1782,
16,
1426,
389,
908... |
./full_match/4/0x42622B6c7f15430722D62eDb45938D91FC27419B/sources/contracts/AllocationStakingV2.sol | Emit relevant event | emit Deposit(msg.sender, _pid, depositAmount);
| 12,286,905 | [
1,
17982,
9368,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3626,
4019,
538,
305,
12,
3576,
18,
15330,
16,
389,
6610,
16,
443,
1724,
6275,
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,
... |
./full_match/1/0xc9E77ef4a304B39bEa702b882E701b757dCd3730/sources/home/paras/roaring-leaders/contracts/RoaringRoccstars.sol | Breed Roaring Leaders via the marketplace. One of the Leaders is owned by "renter", who is paid a fee by the caller/ | function breedUsingMarketplace(uint256 maleTokenId, uint256 femaleTokenId, bool hasSignature, bool instantCooldown, address renter, bool acceptorIsMaleOwner, uint256 rentalFee, uint256 expiry, bytes memory cooldownSignature, bytes memory listingSignature) public {
require(breedingIsActive, "Breeding not liv... | 4,982,856 | [
1,
38,
15656,
534,
83,
5968,
511,
684,
414,
3970,
326,
29917,
18,
6942,
434,
326,
511,
684,
414,
353,
16199,
635,
315,
1187,
387,
3113,
10354,
353,
30591,
279,
14036,
635,
326,
4894,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
324,
15656,
7736,
3882,
24577,
12,
11890,
5034,
312,
5349,
1345,
548,
16,
2254,
5034,
284,
351,
5349,
1345,
548,
16,
1426,
711,
5374,
16,
1426,
5934,
39,
1371,
2378,
16,
1758,
1654,
387,
16,
1426,
2791,
280,
2520,
49,
... |
./full_match/44787/0x31aa5951100e11b8A34Bc9D98a44De152Dc5d3a2/sources/contracts/vm/ops/math/FixedPointMathOps.sol | @dev Number of provided opcodes for `FixedPointMathOps`. | uint256 constant FIXED_POINT_MATH_OPS_LENGTH = 7;
| 13,256,109 | [
1,
1854,
434,
2112,
1061,
7000,
364,
1375,
7505,
2148,
10477,
8132,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11890,
5034,
5381,
26585,
67,
8941,
67,
49,
3275,
67,
3665,
55,
67,
7096,
273,
2371,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/* Copyright (C) 2020 NexusMutual.io
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distribu... | * @dev Get number of Claims queued for submission during emergency pause./ | function getLengthOfClaimSubmittedAtEP() external view returns (uint len) {
len = claimPause.length;
}
| 2,578,322 | [
1,
967,
1300,
434,
28895,
12234,
364,
8515,
4982,
801,
24530,
11722,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9888,
951,
9762,
28882,
861,
10541,
1435,
3903,
1476,
1135,
261,
11890,
562,
13,
288,
203,
565,
562,
273,
7516,
19205,
18,
2469,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.4.22 <0.7.0;
contract PowerBid {
enum Phase {
AUCTION,
CONSUMPTION,
FINISHED,
GAIN_WITHDRAWN,
PRICE_WITHDRAWN,
COMPLETED,
VIOLATED,
VIOLATION_RESOLVED}
// Parameters of the auction. Times are either
// absolute unix t... | Should be a 3rd party, trusted static account that will resolve the payments | function destroy() public {
require(msg.sender == consumer);
selfdestruct(consumer);
}
| 14,038,237 | [
1,
14309,
506,
279,
890,
13623,
18285,
16,
13179,
760,
2236,
716,
903,
2245,
326,
25754,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5546,
1435,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
4765,
1769,
203,
3639,
365,
5489,
8813,
12,
13230,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xcDa5d0596929Ed969fC026Cfb8F02f7ECc92DAD6/sources/SquidRise.sol | prevent overly large contract sells. | function swapBack() private lockTheSwap {
uint256 contractBalance = balanceOf(address(this));
if(contractBalance >= minimumTokensBeforeSwap * 5){
contractBalance = minimumTokensBeforeSwap * 5;
}
bool success;
uint256 totalTokensToSwap = _liquidit... | 2,964,251 | [
1,
29150,
1879,
715,
7876,
6835,
357,
3251,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
2711,
1435,
3238,
2176,
1986,
12521,
288,
203,
3639,
2254,
5034,
6835,
13937,
273,
11013,
951,
12,
2867,
12,
2211,
10019,
203,
540,
203,
3639,
309,
12,
16351,
13937,
1545,
5224,
5157,
4649,
12521,
380,
1381,
15329,
... |
//SPDX-License-Identifier: MIT License
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "./DaoConfig.sol";
/**
* @dev Handles all the proposal and voting logic
*/
contract DaoStake is DaoConfig {
/**
* @dev Stake Setup
*/
struct Stake {
uint128 amount;
uint128 startTime;
}
/**
... | * @dev Stake Setup/ | struct Stake {
uint128 amount;
uint128 startTime;
}
constructor(string memory _name, string memory _symbol)
DaoConfig(_name, _symbol)
| 13,043,388 | [
1,
510,
911,
10939,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1958,
934,
911,
288,
203,
565,
2254,
10392,
3844,
31,
203,
565,
2254,
10392,
8657,
31,
203,
225,
289,
203,
203,
203,
225,
3885,
12,
1080,
3778,
389,
529,
16,
533,
3778,
389,
7175,
13,
203,
565,
463,
6033,
809,
24899,
529,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/access/AccessControlEnumerable.so... | give the Institution contract as registrar
| _setupRole(REGISTRAR_ROLE, msg.sender); | 5,386,788 | [
1,
75,
688,
326,
657,
14278,
6835,
487,
17450,
297,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
8401,
2996,
12,
5937,
18643,
985,
67,
16256,
16,
1234,
18,
15330,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16 <0.7.0;
import {SafeMath} from '@openzeppelin/contracts/math/SafeMath.sol';
/**
* @title StableMath
* @author Stability Labs Pty. Ltd.
* @notice A library providing safe mathematical operations to multiply and
* divide with standardised precis... | * @dev Precisely divides two units, by first scaling the left hand operand. Useful for finding percentage weightings, i.e. 8e18/10e18 = 80% (or 8e17) @param x Left hand input to division @param y Right hand input to division @return Result after multiplying the left operand by the scale, and ... | function divPrecisely(uint256 x, uint256 y) internal pure returns (uint256) {
uint256 z = x.mul(FULL_SCALE);
return z.div(y);
}
| 12,548,229 | [
1,
1386,
71,
291,
2357,
3739,
4369,
2795,
4971,
16,
635,
1122,
10612,
326,
2002,
948,
9886,
18,
19256,
1377,
364,
13727,
11622,
3119,
899,
16,
277,
18,
73,
18,
1725,
73,
2643,
19,
2163,
73,
2643,
273,
8958,
9,
261,
280,
1725,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3739,
1386,
71,
291,
2357,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
998,
273,
619,
18,
16411,
12,
18111,
67,
19378,
1769,
203,
565,
327,
998,
1... |
/*
Copyright 2020 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Loop through cTokens | {
compToken = _compToken;
comptroller = _comptroller;
cEther = _cEther;
weth = _weth;
ICErc20[] memory cTokens = comptroller.getAllMarkets();
for(uint256 i = 0; i < cTokens.length; i++) {
if (address(cTokens[i]) == _cEther) {
underlyingTo... | 14,071,395 | [
1,
6452,
3059,
276,
5157,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
1161,
1345,
273,
389,
2919,
1345,
31,
203,
3639,
532,
337,
1539,
273,
389,
832,
337,
1539,
31,
203,
3639,
276,
41,
1136,
273,
389,
71,
41,
1136,
31,
203,
3639,
341,
546,
273,
389,
91,
546,
31,
203,
203,
... |
./full_match/137/0x335fF3edFb787e24fd6F3eB6c5E6e53003017cdD/sources/contracts/notlarvalads.sol | * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account./ | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
mapping(uint256 => uint256) private _ownedTokensIndex;
uint256[] private _allTokens;
mapping(uint256 => uint256) private _allTokensIndex;
function _beforeTokenTran... | 4,735,382 | [
1,
2503,
4792,
392,
3129,
2710,
434,
288,
654,
39,
27,
5340,
97,
2553,
316,
326,
512,
2579,
716,
4831,
3557,
2967,
434,
777,
326,
1147,
3258,
316,
326,
6835,
487,
5492,
487,
777,
1147,
3258,
16199,
635,
1517,
2236,
18,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
27,
5340,
3572,
25121,
353,
4232,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
3572,
25121,
288,
203,
565,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
2254,
5034,
3719,
3238,
389,
995,
329,
5157,
31,
20... |
pragma solidity ^0.4.18;
interface TokenStagesManager {
function isDebug() public constant returns(bool);
function setToken(address tokenAddress) public;
function getPool() public constant returns (uint96);
function getBonus() public constant returns (uint8);
function isFreezeTimeout() publi... | Burning all unsold tokens and proportionally other for deligationMove all left tokens to last stage | function _proceedStage()
internal
{
while (true) {
if ( currentStage < stages.length
&& (now >= stages[currentStage].endsAt || getAvailableCoinsForCurrentStage() == 0) ) {
currentStage++;
uint totalTokensForSale = TOKEN_AMOUNT_PRE_ICO
... | 6,482,582 | [
1,
38,
321,
310,
777,
16804,
1673,
2430,
471,
23279,
1230,
1308,
364,
1464,
360,
367,
7607,
777,
2002,
2430,
358,
1142,
6009,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
685,
5288,
8755,
1435,
203,
3639,
2713,
203,
565,
288,
203,
3639,
1323,
261,
3767,
13,
288,
203,
5411,
309,
261,
783,
8755,
411,
20298,
18,
2469,
203,
5411,
597,
261,
3338,
1545,
20298,
63,
2972,
8755,
8009,
5839,
... |
pragma solidity 0.8.4;
contract Foo {
/// #if_succeeds old(x) == 0;
function changesArg1(uint x) public {
x = 1;
}
/// #if_succeeds x == 0;
function changesArg2(uint x) public {
x = 1;
// NOTE: For functions that modify the arguments, you still
// always get the old value
}
uint[] x = [1,2];
/// #if_s... | #if_succeeds let x := x+1 in let x := x+1 in let x := x+1 in x + x == 8; | function shadowing(uint x) public {
}
uint t = 1;
| 13,044,873 | [
1,
430,
67,
87,
5286,
5288,
87,
2231,
619,
519,
619,
15,
21,
316,
2231,
619,
519,
619,
15,
21,
316,
2231,
619,
519,
619,
15,
21,
316,
619,
397,
619,
422,
1725,
31,
2,
0,
0,
0,
0,
0,
0,
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,
202,
915,
10510,
310,
12,
11890,
619,
13,
1071,
288,
203,
202,
97,
203,
203,
202,
11890,
268,
273,
404,
31,
203,
203,
2,
-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.11;
pragma experimental ABIEncoderV2;
////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
/* pragma solidity ^0.8.0; */
/**
* @dev Provides information about the current execution context, including th... | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
pragma solidity 0.8.11;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 1,457,692 | [
1,
17727,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
486,
506,
15539,
316,
4123,
279,
2657,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
2499,
31,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203... |
./full_match/1/0x0000000000aec84F5BFc2af15EAfb943bf4e3522/sources/contracts/core/SoundCreatorV2.sol | * @dev For compressed calldata calling./ | fallback() external payable {
LibZip.cdFallback();
}
| 4,875,177 | [
1,
1290,
8968,
745,
892,
4440,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5922,
1435,
3903,
8843,
429,
288,
203,
3639,
10560,
9141,
18,
4315,
12355,
5621,
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,
-10... |
./full_match/83/0xFda7f199909Cb2F31637F74f7A16d046bcd064f1/sources/contracts/CToken/CToken.sol | * @notice Transfers collateral tokens (this market) to the liquidator. @dev Called only during an in-kind liquidation, or by liquidateBorrow during the liquidation of another CToken. Its absolutely critical to use msg.sender as the seizer cToken and not a parameter. @param seizerToken The contract seizing the collater... | function seizeInternal(
address seizerToken,
address liquidator,
address borrower,
uint256 seizeTokens
) internal returns (uint256) {
uint256 allowed = IComptroller(comptroller).seizeAllowed(
address(this),
seizerToken,
liquidator,
borrower,
seizeTokens
);
i... | 9,560,867 | [
1,
1429,
18881,
4508,
2045,
287,
2430,
261,
2211,
13667,
13,
358,
326,
4501,
26595,
639,
18,
225,
11782,
1338,
4982,
392,
316,
17,
9224,
4501,
26595,
367,
16,
578,
635,
4501,
26595,
340,
38,
15318,
4982,
326,
4501,
26595,
367,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
695,
554,
3061,
12,
203,
565,
1758,
695,
1824,
1345,
16,
203,
565,
1758,
4501,
26595,
639,
16,
203,
565,
1758,
29759,
264,
16,
203,
565,
2254,
5034,
695,
554,
5157,
203,
225,
262,
2713,
1135,
261,
11890,
5034,
13,
288... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/introspection/ERC165.sol";
contract GsnCapable is ERC165, Ownable {
address public paymaster;
bytes4 private constant _INTERFACE_ID_GSN_CAPABLE = 0xa5a23640;
eve... | register the supported interface to conform to TradeTrustERC721 via ERC165 | constructor() public {
_registerInterface(_INTERFACE_ID_GSN_CAPABLE);
}
| 12,873,998 | [
1,
4861,
326,
3260,
1560,
358,
20156,
358,
2197,
323,
14146,
654,
39,
27,
5340,
3970,
4232,
39,
28275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
3885,
1435,
1071,
288,
203,
565,
389,
4861,
1358,
24899,
18865,
67,
734,
67,
43,
13653,
67,
17296,
2782,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
//Address: 0x9b73D1779C41DcA36314fB7c4D3309838e20C4E7
//Contract name: ENJCrowdfund
//Balance: 0 Ether
//Verification Date: 10/3/2017
//Transacion Count: 15531
// CODE STARTS HERE
pragma solidity ^0.4.15;
/*
Owned contract interface
*/
contract IOwned {
// this function isn't abstract since the compiler emi... | address to receive all ether contributions
| address public beneficiary = 0x0; | 933,015 | [
1,
2867,
358,
6798,
777,
225,
2437,
13608,
6170,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
1071,
27641,
74,
14463,
814,
273,
374,
92,
20,
31,
10792,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;
pragma experimental ABIEncoderV2;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ ... | Added to support recovering LP Rewards and other mistaken tokens from other systems to be distributed to holders Admin cannot withdraw the staking token from the contract unless currently migrating | function recoverBEP20(address tokenAddress, uint256 tokenAmount) external onlyByOwnerOrGovernance {
if(!migrationsOn){
}
emit Recovered(tokenAddress, tokenAmount);
}
| 7,271,229 | [
1,
8602,
358,
2865,
5910,
310,
511,
52,
534,
359,
14727,
471,
1308,
27228,
7940,
2430,
628,
1308,
14908,
358,
506,
16859,
358,
366,
4665,
7807,
2780,
598,
9446,
326,
384,
6159,
1147,
628,
326,
6835,
3308,
4551,
4196,
1776,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5910,
5948,
52,
3462,
12,
2867,
1147,
1887,
16,
2254,
5034,
1147,
6275,
13,
3903,
1338,
858,
5541,
1162,
43,
1643,
82,
1359,
288,
203,
3639,
309,
12,
5,
15642,
1398,
15329,
203,
3639,
289,
203,
3639,
3626,
868,
16810,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-18
*/
/**
// Baby EPRO ($BEPRO) ;
// Web: https://babyepro.co ;
// Telegram: https://t.me/BabyEPROToken ;
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view... | Contract implementation Tax and team fees will start at 0 so we don't have a big impact when deploying to Uniswap Team wallet address is null but the method to set the address is exposed We will set a minimum amount of tokens to be swaped => 5M | contract BEPRO is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
map... | 15,137,983 | [
1,
8924,
4471,
18240,
471,
5927,
1656,
281,
903,
787,
622,
374,
1427,
732,
2727,
1404,
1240,
279,
5446,
15800,
1347,
7286,
310,
358,
1351,
291,
91,
438,
10434,
9230,
1758,
353,
446,
1496,
326,
707,
358,
444,
326,
1758,
353,
16265,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
6835,
9722,
3373,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,... |
pragma solidity 0.5.17;
import {SafeMath} from "openzeppelin-solidity/contracts/math/SafeMath.sol";
import {TBTCDepositToken} from "./TBTCDepositToken.sol";
import {FeeRebateToken} from "./FeeRebateToken.sol";
import {TBTCToken} from "./TBTCToken.sol";
import {TBTCConstants} from "./TBTCConstants.sol";
import "../dep... | @notice Notifies the contract that the courtesy period has elapsed. @dev This is treated as an abort, rather than fraud. @param _d Deposit storage pointer. | function notifyCourtesyCallExpired(DepositUtils.Deposit storage _d) external {
require(_d.inCourtesyCall(), "Not in a courtesy call period");
require(block.timestamp >= _d.courtesyCallInitiated.add(TBTCConstants.getCourtesyCallTimeout()), "Courtesy period has not elapsed");
startLiquidation(... | 7,283,196 | [
1,
1248,
5032,
326,
6835,
716,
326,
21833,
1078,
93,
3879,
711,
9613,
18,
540,
1220,
353,
13974,
487,
392,
6263,
16,
9178,
2353,
284,
354,
1100,
18,
282,
389,
72,
225,
4019,
538,
305,
2502,
4407,
18,
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,
5066,
29328,
1078,
93,
1477,
10556,
12,
758,
1724,
1989,
18,
758,
1724,
2502,
389,
72,
13,
3903,
288,
203,
3639,
2583,
24899,
72,
18,
267,
29328,
1078,
93,
1477,
9334,
315,
1248,
316,
279,
21833,
1078,
93,
745,
3879,
... |