file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "../shared/WithRegistry.sol";
import "@gif-interface/contracts/modules/IQuery.sol";
import "@gif-interface/contracts/services/IOracleService.sol";
contract OracleService is IOracleService, WithRegistry {
bytes32 public constant NAME = "OracleSe... | todo: oracle contract should be approved | function respond(uint256 _requestId, bytes calldata _data) external override {
query().respond(_requestId, msg.sender, _data);
}
| 1,063,838 | [
1,
4625,
348,
7953,
560,
30,
225,
10621,
30,
20865,
6835,
1410,
506,
20412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6846,
12,
11890,
5034,
389,
2293,
548,
16,
1731,
745,
892,
389,
892,
13,
3903,
3849,
288,
203,
3639,
843,
7675,
17863,
24899,
2293,
548,
16,
1234,
18,
15330,
16,
389,
892,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,... |
// File: github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's ar... | * Allows for the distribution of an ERC721 token to be transferred to multiple recipients at a time. @param _recipients The list of addresses which will receive tokens. @param _nftContract The NFT collection contract where tokens are sent from. @param _tokenIds The list of ids being sent. @param _affiliateAddress The a... | function existing1155NftAirdrop(address[] memory _recipients, address _nftContract, uint256[] memory _tokenIds, uint256[] memory _amounts, address _affiliateAddress) public payable returns(bool) {
uint256 price = _recipients.length.mul(dropUnitPrice);
require(
msg.value >= price,
... | 10,107,751 | [
1,
4625,
348,
7953,
560,
30,
380,
25619,
364,
326,
7006,
434,
392,
4232,
39,
27,
5340,
1147,
358,
506,
906,
4193,
358,
3229,
12045,
622,
279,
813,
18,
632,
891,
389,
27925,
1021,
666,
434,
6138,
1492,
903,
6798,
2430,
18,
632,
891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2062,
2499,
2539,
50,
1222,
37,
6909,
1764,
12,
2867,
8526,
3778,
389,
27925,
16,
1758,
389,
82,
1222,
8924,
16,
2254,
5034,
8526,
3778,
389,
2316,
2673,
16,
2254,
5034,
8526,
3778,
389,
8949,
87,
16,
1758,
389,
7329,
... |
pragma solidity >=0.4.22 <0.6.0;
// The value of this.balance in payable methods is increased by msg.value before the body of your payable
// method executes. If your contract has a starting balance of 1 and you pass in a msg.value of 2,
// the payable method will already have a this.balance of 3 when it execute... | Check for proposed_car set or not.
| require(proposed_car.set,"There is no proposed car !!!"); | 2,537,895 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
364,
20084,
67,
9815,
444,
578,
486,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
685,
7423,
67,
9815,
18,
542,
10837,
9828,
353,
1158,
20084,
5926,
401,
5,
4442,
1769,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.22 < 0.5.0;
contract Design_Friendly_Agreement {
address public designer;
address public printer;
uint public QUANTITY;
uint public TEST_QUANTITY;
uint public PASS_QUANTITY;
uint public CONTRACT_AMOUNT;
// the number of items yet ot be printed
uint public qu... | Function to approve/fail product at a specific index in products Note: Bound checks are not done here, the client is expected to do that | function testProduct (uint index, bool approved) public designeronly {
require(quantity_remaining == 0, "Testing can start only after all items are printed");
require(quantity_tested < TEST_QUANTITY, "Test quantity has exceeded");
quantity_tested++;
if(approved)
quantit... | 5,473,880 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
358,
6617,
537,
19,
6870,
3017,
622,
279,
2923,
770,
316,
10406,
3609,
30,
12281,
4271,
854,
486,
2731,
2674,
16,
326,
1004,
353,
2665,
358,
741,
716,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
4133,
261,
11890,
770,
16,
1426,
20412,
13,
1071,
8281,
264,
3700,
288,
203,
3639,
2583,
12,
16172,
67,
17956,
422,
374,
16,
315,
22218,
848,
787,
1338,
1839,
777,
1516,
854,
14099,
8863,
203,
3639,
2583,
12,
1617... |
pragma solidity ^0.4.11;
import './token.sol';
contract LyonBank is StandardToken {
enum Role {
unregistered,
registered,
manager
}
struct Transaction {
address[] votes;
address from;
address to;
uint amount;
}
struct ChangeManager {
... | the bank may empty all accounts and refund all deposits, stopping all future transactions. if enough votes, refund everyone and close bank | function selfDistruct() isManager hasntVoted(selfdistruct) {
selfdistruct.push(msg.sender);
SelfDistructVote(msg.sender);
if (selfdistruct.length >= minVotes) {
for (uint j = 0; j < members.length; j++) {
members[j].transfer(balances[members[j]]);
... | 13,030,474 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
11218,
2026,
1008,
777,
9484,
471,
16255,
777,
443,
917,
1282,
16,
17008,
777,
3563,
8938,
18,
309,
7304,
19588,
16,
16255,
3614,
476,
471,
1746,
11218,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
365,
1669,
8813,
1435,
353,
1318,
711,
496,
58,
16474,
12,
2890,
2251,
8813,
13,
288,
203,
3639,
365,
2251,
8813,
18,
6206,
12,
3576,
18,
15330,
1769,
203,
3639,
18954,
1669,
8813,
19338,
12,
3576,
18,
15330,
1769,
203,... |
./partial_match/4/0xa3d1B9E1144CAaad7a30032995e841E8A858F663/sources/UniMexMargin.sol | uint256 public constant margin_call = 25 * 1e16; | contract UniMexMargin is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
address private WETH_ADDRESS;
IERC20 public WETH;
uint256 public constant mag = 1e18;
uint256 public constant LIQUIDATION_BONUS = 9 * 1e16;
struct Position {
bytes32 id;
addre... | 8,498,708 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
1071,
5381,
7333,
67,
1991,
273,
6969,
380,
404,
73,
2313,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
77,
49,
338,
9524,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
377,
203,
565,
1758,
3238,
678,
1584,
44,
67,
151... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import '@openzeppelin/contracts/utils/EnumerableSet.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
/// @author Premia
/// @title Keep record of all referrals made
contract PremiaReferral is Ownable {
using EnumerableSet for EnumerableSet.Address... | @notice Get the list of whitelisted addresses allowed to set new referrers @return The list of whitelisted addresses | function getWhitelisted() external view returns(address[] memory) {
uint256 length = _whitelisted.length();
address[] memory result = new address[](length);
for (uint256 i=0; i < length; i++) {
result[i] = _whitelisted.at(i);
}
return result;
}
| 248,023 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
326,
666,
434,
26944,
6138,
2935,
358,
444,
394,
1278,
370,
414,
632,
2463,
1021,
666,
434,
26944,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
18927,
329,
1435,
3903,
1476,
1135,
12,
2867,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
769,
273,
389,
20409,
329,
18,
2469,
5621,
203,
3639,
1758,
8526,
3778,
563,
273,
394,
1758,
8526,
12,
2469,
1769,
203,
203,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | нашептывать в микрофон
| rus_verbs:нашептывать{}, | 5,483,024 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
126,
145,
113,
146,
235,
145,
118,
145,
128,
146,
229,
146,
238,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
115,
225,
145,
125,
145,
121,
145,
123,
146,
227,
145,
127,
146,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
126,
145,
113,
146,
235,
145,
118,
145,
128,
146,
229,
146,
238,
145,
115,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
/**
* The Rebels NFT contract
*/
contract Rebels is ERC721, Ownable {
usi... | * The Rebels NFT contract/ Maximum supply of tokens Maximum amount of tokens that can be reserved by the owner Maximum number of tokens that can be minted in a single transaction Maximum number of tokens per address in a whitelisted sale SHA256 hash of the concatenated list of token image SHA256 hashes Number of tokens... | contract Rebels is ERC721, Ownable {
using ECDSA for bytes32;
uint public immutable MAX_SUPPLY;
uint public immutable MAX_OWNER_RESERVE;
uint public constant MAX_MINT_NUMBER = 10;
uint public constant MAX_WHITELISTED_SALE_TOKENS = 6;
string public provenanceHash;
uint public issuedTot... | 11,672,773 | [
1,
4625,
348,
7953,
560,
30,
380,
1021,
868,
70,
10558,
423,
4464,
6835,
19,
18848,
14467,
434,
2430,
18848,
3844,
434,
2430,
716,
848,
506,
8735,
635,
326,
3410,
18848,
1300,
434,
2430,
716,
848,
506,
312,
474,
329,
316,
279,
2202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
868,
70,
10558,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
203,
565,
1450,
7773,
19748,
364,
1731,
1578,
31,
203,
203,
565,
2254,
1071,
11732,
4552,
67,
13272,
23893,
31,
203,
203,
565,
2254,
1071,
11732,
4552,
67... |
// 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 can only be incremented, decremented or reset. This can be used e.... | File: contracts/LowGas.sol | contract KamiKomainu is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.0777 ether;
uint256 public maxSupply = 777;
uint256 public maxMintAm... | 10,304,107 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
10520,
27998,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
25188,
77,
47,
1530,
89,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.5;
contract SixElements {
event BuyEnergy(address player, uint256 quantity);
event UseEnergy(address player, uint256 quantity);
event JoinGame(address player, uint8 x, uint8 y, ArmyKind kind, uint8 unitCount);
event CreateArmy(address player, uint8 ... | enter check if there are allies nearby. win. expand map every 5 seasons until maximum size. | function createArmy(uint8 x, uint8 y, ArmyKind kind, uint8 unitCount) external payable {
require(x < mapWidth && y < mapHeight && map[y][x].owner == address(0), "This space is not empty");
require(kind >= ArmyKind.Light && kind <= ArmyKind.Dark);
require(unitCount <= MAX_UNIT_COUNT, "Exceed... | 12,577,110 | [
1,
4625,
348,
7953,
560,
30,
225,
6103,
866,
309,
1915,
854,
524,
549,
281,
13378,
1637,
18,
5657,
18,
4542,
852,
3614,
1381,
15874,
87,
3180,
4207,
963,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
686,
4811,
12,
11890,
28,
619,
16,
2254,
28,
677,
16,
1201,
4811,
5677,
3846,
16,
2254,
28,
2836,
1380,
13,
3903,
8843,
429,
288,
203,
203,
3639,
2583,
12,
92,
411,
852,
2384,
597,
677,
411,
852,
2686,
597,
852... |
./partial_match/1/0xE4FeDDA9360146dE7e2eA1e6759BaA769262e14e/sources/Oracle.sol | fixed window oracle that recomputes the average price for the entire period once every period note that the price average is only guaranteed to be over at least 1 period, but may be over a longer period epoch uniswap oracle | contract Oracle {
using FixedPoint for *;
using SafeMath for uint256;
uint256 public constant PERIOD = 1 days;
uint256 public startTime;
uint256 public epoch = 0;
address public token0;
address public token1;
IUniswapV2Pair public pair;
uint32 public blockTimestampLast;
uin... | 15,750,103 | [
1,
4625,
348,
7953,
560,
30,
225,
5499,
2742,
20865,
716,
283,
13406,
281,
326,
8164,
6205,
364,
326,
7278,
3879,
3647,
3614,
3879,
4721,
716,
326,
6205,
8164,
353,
1338,
15403,
358,
506,
1879,
622,
4520,
404,
3879,
16,
1496,
2026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
16351,
28544,
288,
203,
565,
1450,
15038,
2148,
364,
380,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
2254,
5034,
1071,
5381,
10950,
21054,
273,
404,
4681,
31,
203,
203,
203,
565,
2254,
5034,
1071,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import {L2ArbitrumMessenger} from "./L2ArbitrumMessenger.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract L2LPTDataCache is Ownable, L2ArbitrumMessenger {
address public l1LPTDataCache;
address public l2LPTGateway;
// Total supply... | * @notice Sets the L1LPTDataCache @param _l1LPTDataCache L1 address of L1LPTDataCache/ | function setL1LPTDataCache(address _l1LPTDataCache) external onlyOwner {
l1LPTDataCache = _l1LPTDataCache;
emit L1LPTDataCacheUpdate(_l1LPTDataCache);
}
| 15,787,223 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
511,
21,
48,
1856,
751,
1649,
632,
891,
389,
80,
21,
48,
1856,
751,
1649,
511,
21,
1758,
434,
511,
21,
48,
1856,
751,
1649,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
48,
21,
48,
1856,
751,
1649,
12,
2867,
389,
80,
21,
48,
1856,
751,
1649,
13,
3903,
1338,
5541,
288,
203,
3639,
328,
21,
48,
1856,
751,
1649,
273,
389,
80,
21,
48,
1856,
751,
1649,
31,
203,
3639,
3626,
511,
21... |
/**
*Submitted for verification at Etherscan.io on 2021-02-02
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overf... | token => (address => HistoryBet[])
| mapping(address => mapping(address => HistoryBet[])) private betHistory; | 1,974,020 | [
1,
4625,
348,
7953,
560,
30,
282,
1147,
516,
261,
2867,
516,
16058,
38,
278,
63,
5717,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
16058,
38,
278,
8526,
3719,
3238,
2701,
5623,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/5/0x907a755Ab4faf43Ea83b721595666643292B228d/sources/DigitalaxLPStaking.sol | @notice Lets a user with rewards owing to claim tokens @dev accounts for dust | function claimReward(
address _user
)
public
{
require(
tokensClaimable == true,
"Tokens cannnot be claimed yet"
);
updateReward(_user);
Staker storage staker = stakers[_user];
uint256 payableAmount = staker.rewardsEarned.... | 16,875,350 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
511,
2413,
279,
729,
598,
283,
6397,
2523,
310,
358,
7516,
2430,
632,
5206,
9484,
364,
302,
641,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
17631,
1060,
12,
203,
3639,
1758,
389,
1355,
203,
565,
262,
203,
3639,
1071,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
2430,
9762,
429,
422,
638,
16,
203,
5411,
315,
5157,
848,
82,
902,
506,
7516,
329,
4671... |
/* version metahash ETH multi sign wallet 0.1.5 RC */
pragma solidity ^0.4.18;
contract mhethkeeper {
/* contract settings */
/* dynamic data section */
address public recipient; /* recipient */
uint256 public amountToTransfer; /* quantity */
/* static data section ... | add a wallet manager */ | function AddManager(address _manager) public{
if (!isFinalized && (msg.sender == owner)){
mgrCount = mgrCount + 1;
mgrAddress[mgrCount] = _manager;
mgrVotes[mgrCount] = false;
revert();
}
}
| 15,835,723 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
279,
9230,
3301,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1436,
1318,
12,
2867,
389,
4181,
13,
1071,
95,
203,
3639,
309,
16051,
291,
7951,
1235,
597,
261,
3576,
18,
15330,
422,
3410,
3719,
95,
203,
5411,
13333,
1380,
273,
13333,
1380,
397,
404,
31,
203,
5411,
13333,
1887,
63,
... |
./full_match/80001/0xC42DCF0FBc12A4A3D204000d4f560d49e88307A2/sources/contracts/Marketplace.sol | Call the onlyBuyer function in the Escrow contract | function callOnlyBuyer(uint256 _purchaseId ) external {
escrow.confirmShipment(_purchaseId);
}
| 5,599,694 | [
1,
4625,
348,
7953,
560,
30,
225,
3049,
326,
1338,
38,
16213,
445,
316,
326,
512,
1017,
492,
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,
... | [
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,
915,
745,
3386,
38,
16213,
12,
11890,
5034,
389,
12688,
12104,
548,
262,
3903,
288,
203,
565,
2904,
492,
18,
10927,
19355,
24899,
12688,
12104,
548,
1769,
203,
97,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
import "./owned.sol";
import "./asset.sol";
import "./producers.sol";
import "./transporters.sol";
import "./shops.sol";
import "./transporters_users.sol";
contract TraceabilityContract is owned {
event LogNewTransporter(address transporterAddress, string registrationData);
event Lo... | Change asset status and add a transaction of type (TransportStartRequest) | function requestTransportStart(address _assetAddress, address _transporterAddress, address _receiverAddress)
public
returns (bool success)
{
require(Asset(_assetAddress).owner() == msg.sender, "Only owner of the asset can request a transport");
require(isTransport... | 7,280,398 | [
1,
4625,
348,
7953,
560,
30,
7576,
3310,
1267,
471,
527,
279,
2492,
434,
618,
261,
6568,
1685,
691,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
590,
6568,
1685,
12,
2867,
389,
9406,
1887,
16,
1758,
389,
2338,
7988,
1887,
16,
1758,
389,
24454,
1887,
13,
7010,
3639,
1071,
7010,
3639,
1135,
261,
6430,
2216,
13,
203,
565,
288,
27699,
3639,
2583,
12,
6672,
24899,
94... |
// SPDX-License-Identifier: MIT
// Grab a Ghoul, perfect pairing with your Soul
//
// <3 Lost Souls Sanctuary team
// @glu
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
contract Ghoul is ERC721Enumerable,... | October 1st, 2022 00:00:00 GMT-0400
| uint256 public ghoulEndTime = 1664596799; | 13,998,275 | [
1,
4625,
348,
7953,
560,
30,
225,
29482,
83,
744,
404,
334,
16,
26599,
22,
9631,
30,
713,
30,
713,
21706,
17,
3028,
713,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
21409,
1003,
25255,
273,
2872,
1105,
6162,
9599,
2733,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// "SPDX-License-Identifier: Apache-2.0"
pragma solidity ^0.6.11;
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "./math/SafeMathUint.sol";
import "./math/SafeMathInt.sol";
import "./IFundsDistri... | * @dev Internal function that mints tokens to an account. Update pointsCorrection to keep funds unchanged. @param account The account that will receive the created tokens. @param value The amount that will be created./ | function _mint(address account, uint256 value) internal override {
super._mint(account, value);
pointsCorrection[account] = pointsCorrection[account]
.sub( (pointsPerShare.mul(value)).toInt256Safe() );
}
| 2,540,707 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
716,
312,
28142,
2430,
358,
392,
2236,
18,
2315,
3143,
20884,
358,
3455,
284,
19156,
14827,
18,
632,
891,
2236,
1021,
2236,
716,
903,
6798,
326,
2522,
2430,
18,
632,
891,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
460,
13,
2713,
3849,
288,
203,
3639,
2240,
6315,
81,
474,
12,
4631,
16,
460,
1769,
203,
203,
3639,
3143,
20884,
63,
4631,
65,
273,
3143,
20884,
63,
4631,
65,
203,
5411,
... |
./full_match/8453/0xE5D8204f8335e9786ea7Ce382771B865fE73a304/sources/contracts/governance/mixins/MixinState.sol | @inheritdoc IGovernanceState | function getVotingPower(address account) external view override returns (uint256) {
return _getVotingPower(account);
}
| 11,540,682 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
13102,
1643,
82,
1359,
1119,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11031,
17128,
13788,
12,
2867,
2236,
13,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
588,
58,
17128,
13788,
12,
4631,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "contracts/CryptoJetERC721.sol";
import "contracts/CryptoJetStorage.sol";
contract CryptoJetFactory is CryptoJetERC721, CryptoJetStorage {
modifier onlyOwnerOf(uint tokenId) {
require(msg.sender == ownerOf(tokenId));
_;
}
... | Create the cryptojet token | uint256 tokenId = StoreCryptoJet(cryptoJet);
| 1,083,825 | [
1,
4625,
348,
7953,
560,
30,
1788,
326,
8170,
78,
278,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
1147,
548,
273,
4994,
18048,
46,
278,
12,
18489,
46,
278,
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... |
./partial_match/42/0x57A71Aeadd9409d1c76414C1dF48C85Cee76443d/sources/LockFunds.sol | USDT.safeTransfer(msg.sender,_amount); | function claim(uint _amount,uint currency,uint deadline,uint8 v, bytes32 r, bytes32 s) external {
require(block.timestamp > claimAt[msg.sender].add(claimDuration),"wait" );
bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)),keccak256(bytes(version)), getChainId(),... | 8,851,898 | [
1,
4625,
348,
7953,
560,
30,
225,
11836,
9081,
18,
4626,
5912,
12,
3576,
18,
15330,
16,
67,
8949,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
12,
11890,
389,
8949,
16,
11890,
5462,
16,
11890,
14096,
16,
11890,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
3903,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
7516,
861,
63,
3576,
18,
15330,
800... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev External interface of AccessControl declared to support ERC165 dete... | * @notice creates the tier along with the tier hashes, then saves the tokenId information in id -> hash and hash -> id mappings @param newTier the Tier struct containing all the tier information @param tierHashes the tier hashes to add to the tier/ Increment tier counter to use Store how many tokens are on the tier Set... | function _createTier(Tier calldata newTier, string[] calldata tierHashes)
internal
{
tierCount++;
Tier storage tier = tiers[tierCount];
tier.baseLoanSize = newTier.baseLoanSize;
tier.contributionAsset = newTier.contributionAsset;
tier.contributionSize = newTier.co... | 6,317,313 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3414,
326,
17742,
7563,
598,
326,
17742,
9869,
16,
1508,
14649,
326,
1147,
548,
1779,
316,
612,
317,
1651,
471,
1651,
317,
612,
7990,
632,
891,
394,
15671,
326,
399,
2453,
1958,
4191,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
2640,
15671,
12,
15671,
745,
892,
394,
15671,
16,
533,
8526,
745,
892,
17742,
14455,
13,
203,
3639,
2713,
203,
565,
288,
203,
3639,
17742,
1380,
9904,
31,
203,
3639,
399,
2453,
2502,
17742,
273,
11374,
414,
63,
88,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns ... | We mine if possible, the person that get the feeding transaction gets an extra ticket | function buyTicket(address _player) external {
require(start != 0, "The lottery did not start yet");
if (now > end) {
endLottery();
return;
}
uint256 lastTimeMined = cudlFinance.lastTimeMined(currentPet);
uint8 tickets = 1;
require(
... | 13,831,841 | [
1,
4625,
348,
7953,
560,
30,
225,
1660,
312,
558,
309,
3323,
16,
326,
6175,
716,
336,
326,
4746,
310,
2492,
5571,
392,
2870,
9322,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
13614,
12,
2867,
389,
14872,
13,
3903,
288,
203,
3639,
2583,
12,
1937,
480,
374,
16,
315,
1986,
17417,
387,
93,
5061,
486,
787,
4671,
8863,
203,
3639,
309,
261,
3338,
405,
679,
13,
288,
203,
5411,
679,
48,
352,... |
./partial_match/1/0xa143981F3eC758296a1575146eaB03ef047b7e40/sources/WTFToken.sol | Adds the amount to owner's balance
| balances[this] = balances[this].add(amount); | 11,010,062 | [
1,
4625,
348,
7953,
560,
30,
225,
15605,
326,
3844,
358,
3410,
1807,
11013,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
324,
26488,
63,
2211,
65,
273,
324,
26488,
63,
2211,
8009,
1289,
12,
8949,
1769,
17311,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//Address: 0x076719c05961a0c3398e558e2199085d32717ca6
//Contract name: Compliance
//Balance: 0 Ether
//Verification Date: 1/30/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
/*
Polymath compliance protocol is intended to ensure regulatory compliance
in the jurisdictions that security to... | role of the customer
| uint8 role; | 885,060 | [
1,
4625,
348,
7953,
560,
30,
225,
2478,
434,
326,
6666,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
28,
2478,
31,
4766,
8227,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.25 <0.6.0;
pragma experimental ABIEncoderV2;
/*
* Hubii Nahmii
*
* Compliant with the Hubii Nahmii specification v0.12.
*
* Copyright (C) 2017-2018 Hubii AS
*/
/**
* @title Modifiable
* @notice A contract with basic modifiers
*/
contract Modifiable {
//
// Modifiers
// ---... | Private functions ----------------------------------------------------------------------------------------------------------------- @dev index is 0-based Require that index is within bounds Add to active Add to full deposit history Emit event | function _receiveEthersTo(uint256 index, int256 amount)
private
{
require(index < partners.length, "Some error message when require fails [PartnerFund.sol:769]");
partners[index].active.add(amount, address(0), 0);
partners[index].txHistory.addDeposit(amount, address(0), 0);
... | 1,006,080 | [
1,
4625,
348,
7953,
560,
30,
225,
8726,
4186,
8879,
9634,
632,
5206,
770,
353,
374,
17,
12261,
12981,
716,
770,
353,
3470,
4972,
1436,
358,
2695,
1436,
358,
1983,
443,
1724,
4927,
16008,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
18149,
41,
29540,
774,
12,
11890,
5034,
770,
16,
509,
5034,
3844,
13,
203,
565,
3238,
203,
565,
288,
203,
3639,
2583,
12,
1615,
411,
1087,
9646,
18,
2469,
16,
315,
17358,
555,
883,
1347,
2583,
6684,
306,
1988,
12... |
pragma solidity ^0.5.0;
/**
* @title ExpenseLib
* @dev library-like contract for WeiExpense, WeiTable, ERC20Expense, ERC20Table
*/
contract ExpenseLib {
event ExpenseFlush(address _owner, uint _balance);
event ExpenseSetTotalNeeded(uint _totalNeeded);
event ExpenseSetMinAmount(uint _minAmount);
event ExpenseSet... | change need for fund (with discrete input) if baseNeed >= _currentFlow
| if((_currentFlow < _e.totalNeeded) && (_currentFlow >= _e.minAmount)) { | 13,060,792 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
1608,
364,
284,
1074,
261,
1918,
20035,
810,
13,
309,
1026,
14112,
1545,
389,
2972,
5249,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
9506,
202,
430,
12443,
67,
2972,
5249,
411,
389,
73,
18,
4963,
11449,
13,
597,
261,
67,
2972,
5249,
1545,
389,
73,
18,
1154,
6275,
3719,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma ton-solidity >=0.47.0;
pragma AbiHeader time;
pragma AbiHeader pubkey;
pragma AbiHeader expire;
//================================================================================
//
import "../interfaces/IOwnable.sol";
import "../contracts/Subscription.sol";
import "../interfaces/IService.sol";
import "../inter... | unused, but can be used for Event or anything else;
| planID; period; | 2,481,208 | [
1,
4625,
348,
7953,
560,
30,
225,
10197,
16,
1496,
848,
506,
1399,
364,
2587,
578,
6967,
469,
31,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4995,
734,
31,
3879,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x40481bAff20F00594fd39Ac4680F8C39b33a29d2/sources/contracts/AttackingDog.sol | require(numTokens <= TOKEN_LIMIT, "MINT LIMIT"); _tokenId = _tokenId.add(TOKEN_BIG_LIMIT); | function mint(address) private returns (uint256 _tokenId) {
_tokenId = ++numTokens;
_mint(msg.sender, _tokenId);
}
| 12,371,829 | [
1,
4625,
348,
7953,
560,
30,
225,
2583,
12,
2107,
5157,
1648,
14275,
67,
8283,
16,
315,
49,
3217,
13319,
8863,
389,
2316,
548,
273,
389,
2316,
548,
18,
1289,
12,
8412,
67,
19044,
67,
8283,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
13,
3238,
1135,
261,
11890,
5034,
389,
2316,
548,
13,
225,
288,
203,
3639,
389,
2316,
548,
273,
965,
2107,
5157,
31,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
389,
2316,
548,
1769,
203,
5... |
./partial_match/42/0xaD26bEC668BE4b017CFeE40235F3cfAf2FAdfa79/sources/NAPV2.sol | IVaultController public vaultController; | contract NAPV2 is Ownable, IERC20 {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
uint256 public constant TOKEN_CAP = 20000000 * 1e18;
uint256 private _totalSupply;
string private _name = "NAP V2";
string private _symbol = "NAPv2Tester";
uint8 priva... | 8,869,614 | [
1,
4625,
348,
7953,
560,
30,
467,
12003,
2933,
1071,
9229,
2933,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
423,
2203,
58,
22,
353,
14223,
6914,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,... |
// SPDX-License-Identifier: GPL-3.0
/// @title Wizards ERC-721 token
pragma solidity ^0.8.6;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IDescriptor} from "./descriptor/IDescriptor.sol";
import {ISeeder} from "./seeder/ISeeder.sol";
import {ERC721} from "../base/ERC721.sol";
import {I... | * @notice Lock the minter. @dev This cannot be reversed and is only callable by the owner when not locked./ | function lockMinter() external override onlyOwner whenMinterNotLocked {
isMinterLocked = true;
emit MinterLocked();
}
| 5,996,930 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3488,
326,
1131,
387,
18,
632,
5206,
1220,
2780,
506,
9553,
471,
353,
1338,
4140,
635,
326,
3410,
1347,
486,
8586,
18,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2176,
49,
2761,
1435,
3903,
3849,
1338,
5541,
1347,
49,
2761,
1248,
8966,
288,
203,
3639,
15707,
2761,
8966,
273,
638,
31,
203,
3639,
3626,
490,
2761,
8966,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100... |
./full_match/43113/0x15aea3bFCfa1e82A59124b87bb6725082cEB1560/sources/APEXWOLFE.sol | Anti-bot and anti-whale mappings and variables use by default 300,000 gas to process auto-claiming dividends exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract APEXWOLFE is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
DividendTracker public dividendTracker;
address public marketingWallet;
address public devWallet;
uin... | 7,148,828 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
999,
635,
805,
11631,
16,
3784,
16189,
358,
1207,
3656,
17,
14784,
310,
3739,
350,
5839,
431,
17704,
1317,
628,
1656,
281,
471,
943,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
1423,
60,
59,
1741,
8090,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
640,
291,
91,
438,
58,
22,
8... |
pragma solidity ^0.4.23;
/*
Author: Vox / 0xPool.io
Description: This smart contract is designed to store mining pool payouts for
Ethereum Protocol tokens and allow pool miners to withdraw their earned tokens
whenever they please. There are several benefits to using a smart contract to
track mining pool payouts... | * @title SafeMath @dev Math operations with safety checks that throw on error/ | library SafeMath {
function mul(uint64 a, uint64 b) internal pure returns (uint64) {
if (a == 0) {
return 0;
}
uint64 c = a * b;
assert(c / a == b);
return c;
}
function mul(uint64 a, uint64 b) internal pure returns (uint64) {
if (a == 0) {
return 0;
}
ui... | 6,658,067 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14060,
10477,
632,
5206,
2361,
5295,
598,
24179,
4271,
716,
604,
603,
555,
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,
12083,
14060,
10477,
288,
203,
377,
445,
14064,
12,
11890,
1105,
279,
16,
2254,
1105,
324,
13,
2713,
16618,
1135,
261,
11890,
1105,
13,
288,
203,
377,
309,
261,
69,
422,
374,
13,
288,
203,
377,
327,
374,
31,
203,
377,
289,
203,... |
./full_match/1/0xFb6B7C11a55C57767643F1FF65c34C8693a11A70/sources/contracts/GovernorTimelockControlConfigurable.sol | * @notice This function is used to update the long delay value @param newDelay new delay to be set/ | function updateLongDelay(uint256 newDelay) external onlyGovernance {
if (newDelay <= _defaultDelay) revert InvalidDelayValue();
_longDelay = newDelay;
}
| 4,892,132 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
445,
353,
1399,
358,
1089,
326,
1525,
4624,
460,
632,
891,
394,
6763,
394,
4624,
358,
506,
444,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
3708,
6763,
12,
11890,
5034,
394,
6763,
13,
3903,
1338,
43,
1643,
82,
1359,
288,
203,
3639,
309,
261,
2704,
6763,
1648,
389,
1886,
6763,
13,
15226,
1962,
6763,
620,
5621,
203,
203,
3639,
389,
5748,
6763,
273,
394,... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint... | @return Bigger value of two uint32s. | function min(uint32 _value1, uint32 _value2)
private pure
returns (uint32)
{
if(_value2 >= _value1)
return _value1;
else
return _value2;
}
| 6,784,031 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2463,
605,
2318,
460,
434,
2795,
2254,
1578,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1131,
12,
11890,
1578,
389,
1132,
21,
16,
2254,
1578,
389,
1132,
22,
13,
203,
565,
3238,
16618,
203,
565,
1135,
261,
11890,
1578,
13,
203,
225,
288,
203,
565,
309,
24899,
1132,
22,
1545,
389,
1132,
21,
13,
203,
1377,
... |
./full_match/3/0xb68ab3f0A9190F994e7D88De6fa6de8ef7B49Bb8/sources/contracts/5_BuyerToken.sol | address payable conadd = address(this); | contract BuyerToken is Ownable{
using SafeMath for uint256;
MukarramAli public yourToken;
address admin;
uint256 public tokenPrice = 1e16;
event BuyTokens(address buyer, uint256 amountOfETH, uint256 amountOfTokens);
constructor(address tokenAddress) public {
yourToken = MukarramAli(token... | 14,263,182 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
8843,
429,
356,
1289,
273,
1758,
12,
2211,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
16213,
1345,
353,
14223,
6914,
95,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
490,
19445,
297,
1940,
37,
549,
1071,
3433,
1345,
31,
203,
565,
1758,
3981,
31,
203,
565,
2254,
5034,
1071,
114... |
./partial_match/1313161554/0xE171FFa5F991AdCf27d427Cd0F82fce3f2cD0620/sources/ControllerAurora.sol | @notice Calculates an amount of underlyings in some amount of cluster. @param _cluster Cluster to check info. @param _clusterAmount Amount of cluster. @return Array of underlyings amounts, array of portions of wNear to spend on each underlying and the price of the cluster. | function getUnderlyingsInfo(address _cluster, uint256 _clusterAmount)
external
view
override
returns (
uint256[] memory,
uint256[] memory,
uint256,
uint256
)
{
address adapter = adapters[_cluster];
address[] ... | 16,938,243 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
26128,
392,
3844,
434,
3613,
715,
899,
316,
2690,
3844,
434,
2855,
18,
632,
891,
389,
7967,
5584,
358,
866,
1123,
18,
632,
891,
389,
7967,
6275,
16811,
434,
2855,
18,
632,
2463,
1510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10833,
765,
715,
899,
966,
12,
2867,
389,
7967,
16,
2254,
5034,
389,
7967,
6275,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
8526,
3778,
16,
203,
5411,
2254,
5034,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
//
interface IERC20 {
function TOTALSUPPLY439(... | inject NONSTANDARD NAMING
| function DIV909(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { | 7,317,024 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
27355,
29,
5908,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
16,
533,
3778,
9324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0; // Solidity Version 0.5.0
// Inherit Escrow from another local contract
import "contracts/Escrow.sol";
// Create Contract
contract EcommerceStore {
// Contract to list an Item and buy in a Marketplace.
// Create ennumerated type with two members for product condition
enum ProductC... | For each product what is the address of the Escrow | mapping(uint => address) productEscrow;
| 15,783,154 | [
1,
4625,
348,
7953,
560,
30,
225,
2457,
1517,
3017,
4121,
353,
326,
1758,
434,
326,
512,
1017,
492,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
516,
1758,
13,
3017,
6412,
492,
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,
-10... |
pragma solidity ^0.5.0;
import "../../lib/date/BokkyPooBahsDateTimeLibrary.sol";
/**
* @title DateTime
* @dev Library with convenience functions for working with datetime and timestamp values.
* Wraps calls to BokkyPooBahsDateTimeLibrary library (https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary).
*/
lib... | BokkyPooBahsDateTimeLibrary call does check for overflow | function add(uint timestamp, uint _seconds) internal pure returns (uint) {
return BokkyPooBahsDateTimeLibrary.addSeconds(timestamp, _seconds);
}
| 12,912,292 | [
1,
4625,
348,
7953,
560,
30,
225,
605,
601,
18465,
52,
5161,
38,
69,
4487,
5096,
9313,
745,
1552,
866,
364,
9391,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
12,
11890,
2858,
16,
2254,
389,
7572,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
327,
605,
601,
18465,
52,
5161,
38,
69,
4487,
5096,
9313,
18,
1289,
6762,
12,
5508,
16,
389,
7572,
1769,
203,
565,
289,... |
//SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
// DeepFreeze V0
contract DeepFreezeFactory {
address public creatorOwner; // public state variable automatically has getter function
DeepFreeze[] public deployedFreezer; // public array automatically has getter function
mapping(address => DeepFre... | publicly visible owner of the freezer
| address payable public FreezerOwner; | 1,034,736 | [
1,
4625,
348,
7953,
560,
30,
225,
1071,
715,
6021,
3410,
434,
326,
4843,
24355,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8843,
429,
1071,
15217,
24355,
5541,
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,... |
pragma solidity ^0.4.23;
// Version 0.6
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
f... | * @title Mintable token @dev Simple ERC20 Token example, with mintable token creation/bytes public lastBlob; | contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount, bytes32 trans);
using ECDSA for bytes32;
bytes32 public lastTrans;
mapping(bytes32 => bool) internal transactions;
modifier hasMintPermission() {
require(msg.sender == owner);
_;
... | 1,366,249 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
490,
474,
429,
1147,
632,
5206,
4477,
4232,
39,
3462,
3155,
3454,
16,
598,
312,
474,
429,
1147,
6710,
19,
3890,
1071,
1142,
9405,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
474,
429,
1345,
353,
8263,
1345,
16,
14223,
6914,
288,
203,
565,
871,
490,
474,
12,
2867,
8808,
358,
16,
2254,
5034,
3844,
16,
1731,
1578,
906,
1769,
203,
203,
565,
1450,
7773,
19748,
364,
1731,
1578,
31,
203,
565,
... |
pragma solidity ^0.4.24;
/// @title ERC-721 Non-Fungible Token Standard
/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
/// Note: the ERC-165 identifier for this interface is 0x80ac58cd.
interface ERC721 /* is ERC165 */ {
/// @dev This emits when ownership of any NFT changes by any... | @notice Enumerate valid NFTs @dev Throws if `_index` >= `totalSupply()`. @param _index A counter less than `totalSupply()` @return The token identifier for the `_index`th NFT, (sort order not specified) | function tokenByIndex(uint256 _index) external view returns (uint256) {
require(_index < nftList.length, "index out of range");
return nftList[_index];
}
| 2,559,290 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
6057,
12600,
923,
423,
4464,
87,
632,
5206,
22435,
309,
1375,
67,
1615,
68,
1545,
1375,
4963,
3088,
1283,
1435,
8338,
632,
891,
389,
1615,
432,
3895,
5242,
2353,
1375,
4963,
3088,
1283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1147,
21268,
12,
11890,
5034,
389,
1615,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
24899,
1615,
411,
290,
1222,
682,
18,
2469,
16,
315,
1615,
596,
434,
1048,
8863,
203,
3639,
327,
290,
1222,
682,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/IBuffe... | Update the given pool's DISH allocation point. Can only be called by the owner. | function set(
uint256 pid,
uint256 allocPoint,
bool withUpdate
) public onlyOwner {
if (withUpdate) {
massUpdatePools();
}
uint256 prevAllocPoint = poolInfo[pid].allocPoint;
if (prevAllocPoint != allocPoint) {
totalAllocPoint = tot... | 2,520,859 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
326,
864,
2845,
1807,
3690,
2664,
13481,
1634,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
12,
203,
3639,
2254,
5034,
4231,
16,
203,
3639,
2254,
5034,
4767,
2148,
16,
203,
3639,
1426,
598,
1891,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
309,
261,
1918,
1891,
13,
288,
203,
5411,
8039,
1891,
16639,
... |
./full_match/1/0x10aEC5622602e02186508318bD6e2cD995C92705/sources/contracts/MusicRacerNFT333.sol | @title описание инстанции одной машины | struct Car {
uint256 TypeId;
uint256[] Parts;
bool[] ColorsEnable;
uint256[] Colors;
}
}
| 3,871,950 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
225,
145,
127,
145,
128,
145,
121,
146,
228,
145,
113,
145,
126,
145,
121,
145,
118,
225,
145,
121,
145,
126,
146,
228,
146,
229,
145,
113,
145,
126,
146,
233,
145,
121,
145,
121,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1697,
23672,
288,
203,
565,
2254,
5034,
1412,
548,
31,
203,
565,
2254,
5034,
8526,
28195,
31,
203,
565,
1426,
8526,
30448,
8317,
31,
203,
565,
2254,
5034,
8526,
30448,
31,
203,
97,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.1;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal pure returns (uint) {
// assert(b > 0); // Solid... | Prevent transfer to 0x0 address. Use burn() instead
| require(_to != address(0x0), "invalid 'to' address"); | 14,103,559 | [
1,
4625,
348,
7953,
560,
30,
225,
19412,
7412,
358,
374,
92,
20,
1758,
18,
2672,
18305,
1435,
3560,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
92,
20,
3631,
315,
5387,
296,
869,
11,
1758,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
//Address: 0x4823429dbda52f05f66a2670852b28bd7999e810
//Contract name: KStarCoin
//Balance: 0 Ether
//Verification Date: 3/2/2018
//Transacion Count: 19
// CODE STARTS HERE
pragma solidity ^0.4.18;
//>> Reference to https://github.com/Arachnid/solidity-stringutils
library strings {
struct slice {
uint... | @dev Returns true if the slice is empty (has a length of 0). @param self The slice to operate on. @return True if the slice is empty, False otherwise./ | function empty(slice self) internal pure returns (bool) {
return self._len == 0;
}
| 952,656 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
638,
309,
326,
2788,
353,
1008,
261,
5332,
279,
769,
434,
374,
2934,
632,
891,
365,
1021,
2788,
358,
20829,
603,
18,
632,
2463,
1053,
309,
326,
2788,
353,
1008,
16,
1083,
3541,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1008,
12,
6665,
365,
13,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
365,
6315,
1897,
422,
374,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x053B3045552AEc792579A3dF4A17dC40E6617eDd/sources/contracts/EPMXPriceFeed.sol | * @dev Modifier that checks if the caller has a specific role. @param _role The role identifier to check./ | modifier onlyRole(bytes32 _role) {
_require(IAccessControl(registry).hasRole(_role, msg.sender), Errors.FORBIDDEN.selector);
_;
}
| 844,983 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
716,
4271,
309,
326,
4894,
711,
279,
2923,
2478,
18,
632,
891,
389,
4615,
1021,
2478,
2756,
358,
866,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
2996,
12,
3890,
1578,
389,
4615,
13,
288,
203,
3639,
389,
6528,
12,
45,
16541,
12,
9893,
2934,
5332,
2996,
24899,
4615,
16,
1234,
18,
15330,
3631,
9372,
18,
7473,
30198,
18,
9663,
1769,
203,
3639,
389,
31,
203,
... |
pragma solidity 0.5.17;
// Interfaces
import "../../atm/ATMGovernance.sol";
contract ATMGovernanceMockV2 is ATMGovernance {
/* Constants */
/* State Variables */
mapping(address => uint256) public newMapping;
// Unique CRA - Credit Risk Algorithm github hash to use in this ATM
string public new... | Unique CRA - Credit Risk Algorithm github hash to use in this ATM | contract ATMGovernanceMockV2 is ATMGovernance {
mapping(address => uint256) public newMapping;
string public newValue;
import "../../atm/ATMGovernance.sol";
function addNewMapping(address key, uint256 value) external {
newMapping[key] = value;
}
function setNewValue(string calldata aNe... | 7,214,074 | [
1,
4625,
348,
7953,
560,
30,
225,
14584,
385,
2849,
300,
30354,
534,
10175,
15067,
6133,
1651,
358,
999,
316,
333,
14464,
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,
... | [
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,
16351,
14464,
49,
43,
1643,
82,
1359,
9865,
58,
22,
353,
14464,
49,
43,
1643,
82,
1359,
288,
203,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
394,
3233,
31,
203,
203,
565,
533,
1071,
6129,
31,
203,
203,
203,
566... |
/*
Implementation of contract EulerProblem
*/
pragma ton-solidity >= 0.32.0;
pragma AbiHeader expire;
pragma AbiHeader pubkey;
import "./IEulerRoot.sol";
import "./IEulerProblem.sol";
import "Blueprint.sol";
contract EulerProblem is IEulerProblem, Blueprint {
uint64 constant EXN_AUTH_FAILED = 100 ;
uint64 c... | @dev updates the Blueprint circuit associated with a given problem. Only called by the EulerRoot smart contract.x @param verifkey: the new verification key of the circuit @param zip_provkey: the new proving key of the circuit to be used to generate submission proofs @param nonce: the nonce to be used to generate s... | function update_circuit( bytes verifkey,
bytes zip_provkey,
string nonce ) public
{
require( msg.sender == s_root_contract, EXN_AUTH_FAILED );
g_verifkey = verifkey ;
g_zip_provkey = zip_provkey ;
g_nonce = nonce ;
}
| 954,431 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4533,
326,
14499,
12937,
3627,
598,
279,
864,
6199,
18,
5098,
282,
2566,
635,
326,
512,
17040,
2375,
13706,
6835,
18,
92,
632,
891,
1924,
430,
856,
30,
326,
394,
11805,
498,
434,
326,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1089,
67,
24987,
12,
1731,
1924,
430,
856,
16,
203,
21821,
1731,
3144,
67,
25529,
856,
16,
203,
21821,
533,
7448,
262,
1071,
203,
225,
288,
203,
565,
2583,
12,
1234,
18,
15330,
422,
272,
67,
3085,
67,
16351,
16,
5675,... |
./full_match/4/0xC9434231534B8fab79d9226e1b443c372A966F65/sources/contracts/bancor/BancorFormula.sol | add x^07 * (33! / 07!)
| res += xi * 0x00054f1cf12bd04e516b6da88000000; | 649,104 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
619,
66,
8642,
380,
261,
3707,
5,
342,
10934,
24949,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
400,
1011,
14087,
380,
374,
92,
3784,
6564,
74,
21,
8522,
2138,
16410,
3028,
73,
25,
2313,
70,
26,
2414,
5482,
9449,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should ... | * @notice Hash order parameters @param nonce uint256 @param expiry uint256 @param signerWallet address @param signerToken address @param signerAmount uint256 @param senderToken address @param senderAmount uint256 @return bytes32/ | function _getOrderHash(
uint256 nonce,
uint256 expiry,
address signerWallet,
IERC20 signerToken,
uint256 signerAmount,
address senderWallet,
IERC20 senderToken,
uint256 senderAmount
) internal view returns (bytes32) {
return
keccak256(
abi.encode(
ORDER_TY... | 6,107,973 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2474,
1353,
1472,
632,
891,
7448,
2254,
5034,
632,
891,
10839,
2254,
5034,
632,
891,
10363,
16936,
1758,
632,
891,
10363,
1345,
1758,
632,
891,
10363,
6275,
2254,
5034,
632,
891,
5793,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
389,
588,
2448,
2310,
12,
203,
565,
2254,
5034,
7448,
16,
203,
565,
2254,
5034,
10839,
16,
203,
565,
1758,
10363,
16936,
16,
203,
565,
467,
654,
39,
3462,
10363,
1345,
16,
203,
565,
2254,
5034,
10363,
6275,
16,
203,
5... |
/**
*Submitted for verification at Etherscan.io on 2022-03-16
*/
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its ... | address where funds are collected | contract Games24KPrivateSale is Context, ReentrancyGuard{
uint256 baseFactor = 100000000;
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 public token;
uint256 private weiRaised;
uint256 startTime;
uint256 endTime;
address payable private wallet;
address adm... | 2,174,837 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
1625,
284,
19156,
854,
12230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
611,
753,
3247,
47,
6014,
30746,
353,
1772,
16,
868,
8230,
12514,
16709,
95,
203,
203,
565,
2254,
5034,
1026,
6837,
273,
2130,
9449,
31,
203,
27699,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
... |
pragma solidity ^0.4.18;
contract ERC20 {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function allowance(address owner, address spender) constant returns (uint);
function transfer(address _to, uint _value) returns (bool success);
function transferFrom(address ... | Move team token pool to founder balance Sub from total tokens team pool Sub from total tokens bounty pool Total supply is 500000 | function TradingForest(address _founder) payable {
owner = msg.sender;
founder = _founder;
balances[founder] = team;
totalTokens = safeSub(totalTokens, team);
totalTokens = safeSub(totalTokens, bounty);
totalSupply = totalTokens;
balances[owner] = t... | 7,807,857 | [
1,
4625,
348,
7953,
560,
30,
225,
9933,
5927,
1147,
2845,
358,
284,
465,
765,
11013,
2592,
628,
2078,
2430,
5927,
2845,
2592,
628,
2078,
2430,
324,
592,
93,
2845,
10710,
14467,
353,
1381,
11706,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
565,
445,
2197,
7459,
13573,
334,
12,
2867,
389,
74,
465,
765,
13,
8843,
429,
288,
203,
202,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
202,
3639,
284,
465,
765,
273,
389,
74,
465,
765,
31,
203,
202,
203,
203,
202,
3639,... |
pragma solidity ^0.4.24;
import "./Exponential.sol";
import "./ErrorReporter.sol";
import "./CarefulMath.sol";
import "./InterestRateModel.sol";
/**
* @title The Justpound Stable Coin Interest Rate Model
* @author Justpound
* @notice See Section 2.4 of the Justpound Whitepaper
*/
contract StableCoinInterestRa... | `addExp` only fails when the addition of mantissas overflow. As per above, utilizationRateMuled is capped at 3e18 and when divided by 10, utilizationRateScaled is capped at 3e17. mantissaOneTenth = 1e17, and thus the addition is capped at 4e17, which is less than 2^256. | assert(err3 == Error.NO_ERROR);
| 918,423 | [
1,
4625,
348,
7953,
560,
30,
225,
1375,
1289,
2966,
68,
1338,
6684,
1347,
326,
2719,
434,
20414,
1054,
345,
9391,
18,
2970,
1534,
5721,
16,
1709,
1588,
4727,
49,
725,
72,
353,
3523,
1845,
622,
890,
73,
2643,
471,
1347,
26057,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
1815,
12,
370,
23,
422,
1068,
18,
3417,
67,
3589,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "Initiative_Legislative.sol";
import "IDelegation.sol";
import "Agora.sol";
import "Register.sol";
import "Citizens_Register.sol";
interface IConstitution_Delegation{
function Get_Delegation_Legislatif_Process_Versions(address delegation_address) exte... | * @notice Add a register that can be ruled by the delegation @dev This function is called by the Constitution / | function Add_Controled_Register(address register_address) external Constitution_Only {
Controled_Registers[register_address].Active = true;
List_Controled_Registers.add(register_address);
}
| 12,947,186 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
279,
1744,
716,
848,
506,
1720,
72,
635,
326,
23595,
632,
5206,
1220,
445,
353,
2566,
635,
326,
735,
14278,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1436,
67,
660,
303,
1259,
67,
3996,
12,
2867,
1744,
67,
2867,
13,
3903,
735,
14278,
67,
3386,
288,
203,
3639,
1816,
303,
1259,
67,
10277,
63,
4861,
67,
2867,
8009,
3896,
273,
638,
31,
203,
3639,
987,
67,
660,
303,
1... |
// Copyright (C) 2021 Exponent
// This file is part of Exponent.
// Exponent 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.
// E... | @notice un-whitelist asset by address @param address of the asset to un-whitelist @dev only callable by the asset whitelist role | function deWhitelistAsset(address _asset)
external
onlyRole(ASSET_WHITELIST_ROLE)
{
_deWhitelistAsset(_asset);
}
| 11,851,747 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
640,
17,
20409,
3310,
635,
1758,
632,
891,
1758,
434,
326,
3310,
358,
640,
17,
20409,
632,
5206,
1338,
4140,
635,
326,
3310,
10734,
2478,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
18927,
6672,
12,
2867,
389,
9406,
13,
203,
3639,
3903,
203,
3639,
1338,
2996,
12,
3033,
4043,
67,
16861,
7085,
67,
16256,
13,
203,
565,
288,
203,
3639,
389,
323,
18927,
6672,
24899,
9406,
1769,
203,
565,
289,
203,
... |
./full_match/1/0xB23a00e6b2cA99c21c816Fc41e6eEb4d70103C12/sources/maker.sol | keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | contract UniswapV2ERC20 {
using SafeMathUniswap for uint;
string public constant name = 'SushiSwap LP Token';
string public constant symbol = 'SLP';
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(address =... | 4,850,791 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
291,
91,
438,
58,
22,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
984,
291,
91,
438,
364,
2254,
31,
203,
203,
565,
533,
1071,
5381,
508,
273,
296,
55,
1218,
77,
12521,
511,
52,
3155,
13506,
203,
565,
533,
1... |
/**
*Submitted for verification at Etherscan.io on 2022-02-14
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
library Counters {
struct Counter {
// This variable should never be dire... | Owner quota for the team and giveaways | function ownerMint(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner {
_mintLoop(_receiver, _mintAmount);
}
| 10,534,878 | [
1,
4625,
348,
7953,
560,
30,
225,
16837,
13257,
364,
326,
5927,
471,
8492,
69,
3052,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
3410,
49,
474,
12,
11890,
5034,
389,
81,
474,
6275,
16,
1758,
389,
24454,
13,
1071,
312,
474,
16687,
24899,
81,
474,
6275,
13,
1338,
5541,
288,
203,
565,
389,
81,
474,
6452,
24899,
24454,
16,
389,
81,
474,
6275,
1769,... |
./full_match/9001/0x110DD7887321f24477BF4A135a1E5eB7Bf31691a/sources/contracts/StreamingBoundHedgeys.sol | * @dev Required interface of an ERC721 compliant contract./ | interface IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
function balanceOf(... | 11,531,695 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10647,
1560,
434,
392,
4232,
39,
27,
5340,
24820,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
353,
467,
654,
39,
28275,
288,
203,
225,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
8808,
1147,
548,
1769,
203,
203,
225,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount o... | * @dev set CRV price oracle token address @param newOracle new oracle address/ | function setCrvOracle(ICrvPriceOracle newOracle) public onlyOwner {
_crvOracle = newOracle;
emit CrvOracleChanged(newOracle);
}
| 1,128,277 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
444,
6732,
58,
6205,
20865,
1147,
1758,
632,
891,
394,
23601,
394,
20865,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11440,
4962,
23601,
12,
2871,
4962,
5147,
23601,
394,
23601,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
3353,
90,
23601,
273,
394,
23601,
31,
203,
3639,
3626,
385,
4962,
23601,
5033,
12,
2704,
23601,
1769,
203,
565,
289,
... |
./full_match/1/0x27a7296A9d282E55Bdf7Ac3A7B768763dD65dE1E/sources/contracts/DutchAuction.sol | @notice Market price variables. | struct MarketPrice {
uint128 startPrice;
uint128 minimumPrice;
}
MarketPrice public marketPrice;
| 3,869,912 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
6622,
278,
6205,
3152,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6622,
278,
5147,
288,
203,
3639,
2254,
10392,
787,
5147,
31,
203,
3639,
2254,
10392,
5224,
5147,
31,
203,
565,
289,
203,
565,
6622,
278,
5147,
1071,
13667,
5147,
31,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
// ============ Internal Imports ============
import {IBridgeToken} from "../../interfaces/bridge/IBridgeToken.sol";
import {ERC20} from "./vendored/OZERC20.sol";
// ============ External Imports ============
import {Version0} from "@celo-org/opti... | * @dev See {IERC20-approve}. Requirements: - `_spender` cannot be the zero address./ | function approve(address _spender, uint256 _amount)
public
virtual
override
returns (bool)
{
_approve(msg.sender, _spender, _amount);
return true;
}
| 1,230,203 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
3462,
17,
12908,
537,
5496,
29076,
30,
300,
1375,
67,
87,
1302,
264,
68,
2780,
506,
326,
3634,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
8949,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
389,
12908,
537,
12,
3576,
18,
15330... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "../interfaces/INiftyswapExchange20.sol";
import "../utils/ReentrancyGuard.sol";
import "@0xsequence/erc-1155/contracts/interfaces/IERC20.sol";
import "@0xsequence/erc-1155/contracts/interfaces/IERC165.sol";
import "@... | **********************************| | } else if (functionSignature == DEPOSIT_SIG) {
| 1,793,720 | [
1,
4625,
348,
7953,
560,
30,
20210,
14,
96,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
289,
469,
309,
261,
915,
5374,
422,
2030,
28284,
67,
18513,
13,
288,
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,... |
//Address: 0x5D0ee539893323f9965e3AC2846Ea6421255AE79
//Contract name: HiPrecious
//Balance: 0 Ether
//Verification Date: 5/16/2018
//Transacion Count: 65
// CODE STARTS HERE
pragma solidity ^0.4.18; // solhint-disable-line
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author ... | @dev Assigns ownership of a specific Precious to an address. Since the number of preciouses is capped to 2^32 we can't overflow thistransfer ownership When creating new preciouses _from is 0x0, but we can't account that address. clear any previously approved ownership exchange | function _transfer(address _from, address _to, uint256 _tokenId) private {
ownershipPreciousCount[_to]++;
preciousIndexToOwner[_tokenId] = _to;
if (_from != address(0)) {
ownershipPreciousCount[_from]--;
delete preciousIndexToApproved[_tokenId];
}
}
| 5,543,158 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
12093,
87,
23178,
434,
279,
2923,
2962,
8450,
1481,
358,
392,
1758,
18,
7897,
326,
1300,
434,
675,
8450,
1481,
281,
353,
3523,
1845,
358,
576,
66,
1578,
732,
848,
1404,
9391,
333,
13866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
13866,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
2316,
548,
13,
3238,
288,
203,
565,
23178,
1386,
8450,
1481,
1380,
63,
67,
869,
3737,
15,
31,
203,
565,
675,
8450,
1481,
1016,
774,
5541,
63,
... |
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol | * @dev Revert with an error when attempting to create a new conduit when no initial owner address is supplied./ | error InvalidInitialOwner();
| 3,218,909 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
868,
1097,
598,
392,
555,
1347,
15600,
358,
752,
279,
394,
356,
2544,
305,
1347,
1158,
1377,
2172,
3410,
1758,
353,
4580,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
555,
1962,
4435,
5541,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ /... | @notice Function to deposit other assets as collateral to Aave pool @param collateral_address collateral ERC20 address @param amount Amount of asset to be diposited | function aaveDepositCollateral(address collateral_address, uint256 amount) public onlyByOwnGovCust {
ERC20 token = ERC20(collateral_address);
token.approve(address(aaveLending_Pool), amount);
aaveLending_Pool.deposit(collateral_address, amount, address(this), 0);
}
| 15,797,914 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4284,
358,
443,
1724,
1308,
7176,
487,
4508,
2045,
287,
358,
432,
836,
2845,
632,
891,
4508,
2045,
287,
67,
2867,
4508,
2045,
287,
4232,
39,
3462,
1758,
632,
891,
3844,
16811,
434,
3310,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
836,
758,
1724,
13535,
2045,
287,
12,
2867,
4508,
2045,
287,
67,
2867,
16,
2254,
5034,
3844,
13,
1071,
1338,
858,
5460,
43,
1527,
39,
641,
288,
203,
3639,
4232,
39,
3462,
1147,
273,
4232,
39,
3462,
12,
12910,
204... |
/**
*Submitted for verification at Etherscan.io on 2021-02-18
*/
/*
https://powerpool.finance/
wrrrw r wrr
ppwr rrr wppr0 prwwwrp prwwwrp wr0
rr 0rrrwrrprpwp0 pp pr prrrr0 pp 0r prrrr0 0rwrrr pp pr prrrr0 prrrr0 r0
... | @inheritdoc IVestedLPMining @dev Anyone may call, so we have to trust the migrator contract | function migrate(uint256 _pid) public override nonReentrant {
require(address(migrator) != address(0), "VLPMining: no migrator");
Pool storage pool = pools[_pid];
IERC20 lpToken = pool.lpToken;
uint256 bal = lpToken.balanceOf(address(this));
lpToken.safeApprove(address(migrator), bal);
IERC20 ... | 7,824,159 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
21602,
3149,
14461,
2930,
310,
632,
5206,
5502,
476,
2026,
745,
16,
1427,
732,
1240,
358,
10267,
326,
30188,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
13187,
12,
11890,
5034,
389,
6610,
13,
1071,
3849,
1661,
426,
8230,
970,
288,
203,
565,
2583,
12,
2867,
12,
81,
2757,
639,
13,
480,
1758,
12,
20,
3631,
315,
58,
14461,
2930,
310,
30,
1158,
30188,
8863,
203,
565,
8828,... |
./full_match/11155111/0xc9241Cf4cD7d9569cA044d8202EF1080405Bc6C9/sources/src/Drips.sol | @notice Extracts start from a `DripsConfig` `config` has value: `dripId (32 bits) | amtPerSec (160 bits) | start (32 bits) | duration (32 bits)` By bit shifting we get value: `zeros (32 bits) | dripId (32 bits) | amtPerSec (160 bits) | start (32 bits)` By casting down we get value: `start (32 bits)` | function start(DripsConfig config) internal pure returns (uint32) {
return uint32(DripsConfig.unwrap(config) >> 32);
}
| 3,827,125 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
8152,
87,
787,
628,
279,
1375,
40,
566,
1121,
809,
68,
1375,
1425,
68,
711,
460,
30,
1375,
72,
21335,
548,
261,
1578,
4125,
13,
571,
25123,
2173,
2194,
261,
16874,
4125,
13,
571,
787,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12,
40,
566,
1121,
809,
642,
13,
2713,
16618,
1135,
261,
11890,
1578,
13,
288,
203,
3639,
327,
2254,
1578,
12,
40,
566,
1121,
809,
18,
318,
4113,
12,
1425,
13,
1671,
3847,
1769,
203,
565,
289,
203,
203,
2,
-100... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import... | slither-disable-next-line naming-convention | function __DaoBondCollateralWhitelist_init() internal onlyInitializing {}
| 1,828,588 | [
1,
4625,
348,
7953,
560,
30,
2020,
2927,
17,
8394,
17,
4285,
17,
1369,
14634,
17,
591,
11111,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
11412,
9807,
13535,
2045,
287,
18927,
67,
2738,
1435,
2713,
1338,
29782,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x6389944D6D2cc971Ea6C4d84449E9e0cBf418477/sources/contracts/UnknownGentlemen.sol | settingspricesmaxmintsharestoken | contract UnknownGentlemen is ERC721Enumerable, Ownable, Payment, Guard {
using Strings for uint256;
string public baseURI;
uint256 public maxSupply = 10000;
bool public whitelistStatus = false;
bool public publicStatus = false;
mapping(address => uint256) public onWhitelist;
uint256 private price = 0.0... | 812,121 | [
1,
4625,
348,
7953,
560,
30,
1947,
683,
1242,
1896,
81,
474,
674,
8945,
969,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9077,
43,
319,
3269,
275,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
16,
12022,
16,
22809,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
565,
533,
1071,
1026,
3098,
31,
203,
203,
282,
202,
11890,
5034,
... |
./partial_match/1/0x9290F03e6aF2a1f386bFb318F9770DED44423082/sources/CoinManufactory.sol | exclude owner and this contract from fee | ) payable ERC20(name_, symbol_) {
_decimals = decimals_;
_liquidityPoolFee = value_[3];
_previousLiquidityPoolFee = _liquidityPoolFee;
_burnFee = value_[4];
_previousBurnFee = _burnFee;
_marketingFee = value_[0];
_previousMarketingFee = _marketingFee;
... | 15,739,339 | [
1,
4625,
348,
7953,
560,
30,
4433,
3410,
471,
333,
6835,
628,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
8843,
429,
4232,
39,
3462,
12,
529,
67,
16,
3273,
67,
13,
288,
203,
3639,
389,
31734,
273,
15105,
67,
31,
203,
203,
3639,
389,
549,
372,
24237,
2864,
14667,
273,
460,
67,
63,
23,
15533,
203,
3639,
389,
11515,
48,
18... |
/**
*Submitted for verification at Etherscan.io on 2020-12-10
*/
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.5;
pragma abicoder v2;
function getChainId() pure returns (uint256) {
uint256 chainId;
assembly {
chainId := chainid()
}
return chainId;
}
function isContract(address account) view ... | * @dev Getter of a proposal by id @param proposalId id of the proposal to get @return the proposal as ProposalWithoutVotes memory object/ | function getProposalById(uint256 proposalId)
external
view
override
returns (ProposalWithoutVotes memory)
{
Proposal storage proposal = _proposals[proposalId];
ProposalWithoutVotes memory proposalWithoutVotes =
ProposalWithoutVotes({
id: proposal.id,
creator: proposal.c... | 5,458,015 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
387,
434,
279,
14708,
635,
612,
632,
891,
14708,
548,
612,
434,
326,
14708,
358,
336,
632,
2463,
326,
14708,
487,
19945,
8073,
29637,
3778,
733,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
3570,
8016,
5132,
12,
11890,
5034,
14708,
548,
13,
203,
565,
3903,
203,
565,
1476,
203,
565,
3849,
203,
565,
1135,
261,
14592,
8073,
29637,
3778,
13,
203,
225,
288,
203,
565,
19945,
2502,
14708,
273,
389,
685,
22536,
63... |
./full_match/3/0x42e00F730F0F26104dF0f101ac5fb693D69dc5cC/sources/Ownable.sol | * @dev Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner./ | function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(owner, address(0));
owneraddress = address(0);
}
| 8,176,742 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3519,
6606,
326,
6835,
2887,
3410,
18,
2597,
903,
486,
506,
3323,
358,
745,
1375,
3700,
5541,
68,
4186,
16828,
18,
4480,
1338,
506,
2566,
635,
326,
783,
3410,
18,
5219,
30,
25921,
465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1654,
8386,
5460,
12565,
1435,
1071,
5024,
1338,
5541,
288,
203,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
12,
8443,
16,
1758,
12,
20,
10019,
203,
3639,
3410,
2867,
273,
1758,
12,
20,
1769,
203,
565,
289,
203,
203,
2,
... |
./full_match/42/0x9efa7A129Fcd968ADB70c9884e4fec46364b306c/sources/Pool.sol | * @title Pool @notice this implements the GYSR core Pool contract. It supports generalized incentive mechanisms through a modular architecture, where staking and reward logic is contained in child contracts./ constants modules gysr fields | contract Pool is IPool, IEvents, ReentrancyGuard, OwnerController {
using SafeERC20 for IERC20;
uint256 public constant DECIMALS = 18;
IStakingModule private immutable _staking;
IRewardModule public immutable _reward;
IERC20 private immutable _gysr;
IPoolFactory private immutable _factory;
... | 16,204,651 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
8828,
632,
20392,
333,
4792,
326,
611,
61,
10090,
2922,
8828,
6835,
18,
2597,
6146,
7470,
1235,
316,
2998,
688,
1791,
28757,
3059,
279,
681,
2490,
27418,
16,
1625,
384,
6159,
471,
19890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8828,
353,
467,
2864,
16,
467,
3783,
16,
868,
8230,
12514,
16709,
16,
16837,
2933,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
2254,
5034,
1071,
5381,
25429,
55,
273,
6549,
31,
... |
./full_match/1/0x76C725fEA03B179d326a3689C36218c0a3b42720/sources/contracts/EtherSwap.sol | Locks Ether for a swap in the contract and forwards a specified amount of Ether to the claim address @notice The amount locked is the Ether sent in the transaction minus the prepay amount and the refund address is the sender of the transaction @dev Make sure to set a reasonable gas limit for calling this function, els... | function lockPrepayMinerfee(
bytes32 preimageHash,
address payable claimAddress,
uint timelock,
uint prepayAmount
) external payable {
require(msg.value > prepayAmount, "EtherSwap: sent amount must be greater than the prepay amount");
lockEther(preimageHash, msg.... | 2,999,651 | [
1,
4625,
348,
7953,
560,
30,
225,
3488,
87,
512,
1136,
364,
279,
7720,
316,
326,
6835,
471,
24578,
279,
1269,
3844,
434,
512,
1136,
358,
326,
7516,
1758,
632,
20392,
1021,
3844,
8586,
353,
326,
512,
1136,
3271,
316,
326,
2492,
12647... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2176,
1386,
10239,
2930,
264,
21386,
12,
203,
3639,
1731,
1578,
675,
2730,
2310,
16,
203,
3639,
1758,
8843,
429,
7516,
1887,
16,
203,
3639,
2254,
1658,
292,
975,
16,
203,
3639,
2254,
675,
10239,
6275,
203,
565,
262,
390... |
./partial_match/1/0x82424a47D5fFC431f1fEDE80Fef8cdEEd1cFa3EE/sources/contracts/protocol/libraries/helpers/Errors.sol | 'The requested amount is greater than the max loan size in stable rate mode'
| string public constant AMOUNT_BIGGER_THAN_MAX_LOAN_SIZE_STABLE = "38"; | 2,752,228 | [
1,
4625,
348,
7953,
560,
30,
225,
296,
1986,
3764,
3844,
353,
6802,
2353,
326,
943,
28183,
963,
316,
14114,
4993,
1965,
11,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
5381,
432,
5980,
5321,
67,
19044,
3101,
67,
22408,
67,
6694,
67,
1502,
1258,
67,
4574,
67,
882,
2782,
273,
315,
7414,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
// @TODO: import the SafeMath library via Github URL
// YOUR CODE HERE!
contract ArcadeToken {
// @TODO: add the "using SafeMath..." line here to link the library to all uint types
// YOUR CODE HERE!
address payable owner = msg.sender;
string public symbol = "ARCD";
uint p... | @TODO: add the "using SafeMath..." line here to link the library to all uint types YOUR CODE HERE! | contract ArcadeToken {
address payable owner = msg.sender;
string public symbol = "ARCD";
uint public exchange_rate = 100;
mapping(address => uint) balances;
function balance() public view returns(uint) {
return balances[msg.sender];
}
function transfer(address recipient, uint v... | 975,339 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
6241,
30,
527,
326,
315,
9940,
14060,
10477,
7070,
980,
2674,
358,
1692,
326,
5313,
358,
777,
2254,
1953,
1624,
51,
1099,
11128,
670,
29340,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1201,
5065,
1345,
288,
203,
203,
565,
1758,
8843,
429,
3410,
273,
1234,
18,
15330,
31,
203,
565,
533,
1071,
3273,
273,
315,
985,
10160,
14432,
203,
565,
2254,
1071,
7829,
67,
5141,
273,
2130,
31,
203,
203,
565,
2874,
12,
... |
// Dependency file: openzeppelin-solidity/contracts/ownership/Ownable.sol
// pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
addr... | no need to require value <= totalSupply, since that would imply the sender's balance is greater than the totalSupply, which *should* be an assertion failure | function burn(address _who, uint _value) public auth {
require(_value <= _balances[_who]);
_balances[_who] = _balances[_who].sub(_value);
_supply = _supply.sub(_value);
emit Burn(_who, _value);
emit Transfer(_who, address(0), _value);
}
| 1,005,179 | [
1,
4625,
348,
7953,
560,
30,
225,
1158,
1608,
358,
2583,
460,
1648,
2078,
3088,
1283,
16,
3241,
716,
4102,
709,
1283,
326,
5793,
1807,
11013,
353,
6802,
2353,
326,
2078,
3088,
1283,
16,
1492,
380,
13139,
14,
506,
392,
11240,
5166,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
2867,
389,
3350,
83,
16,
2254,
389,
1132,
13,
1071,
1357,
288,
203,
3639,
2583,
24899,
1132,
1648,
389,
70,
26488,
63,
67,
3350,
83,
19226,
203,
203,
3639,
389,
70,
26488,
63,
67,
3350,
83,
65,
273,
389,
... |
./full_match/1/0x65Dd028d456854C3D4c37Ede685D332BE7e58c93/sources/browser/Permissions.sol | creator address, owner of the created tokens
| _creator = 0x3A77B98Abcf179b008553fE45Ac3092639251282; | 16,571,069 | [
1,
4625,
348,
7953,
560,
30,
225,
11784,
1758,
16,
3410,
434,
326,
2522,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
20394,
273,
374,
92,
23,
37,
4700,
38,
10689,
5895,
8522,
28814,
70,
713,
28,
2539,
23,
74,
41,
7950,
9988,
5082,
9975,
21607,
2947,
10392,
22,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x0DbA1E12948ebF3340d894910607eC9ec55164Ea/sources/Gelt.sol | */ ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | contract Gelt is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
Contract function to receive approval and execute function in one call
Borrowed from MiniMeToken... | 5,339,281 | [
1,
4625,
348,
7953,
560,
30,
1195,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
611,
20224,
353,
4232,
39,
3462,
1358,
16,
14060,
10477,
288,
203,
1080,
1071,
3273,
31,
203,
1080,
1071,
508,
31,
203,
11890,
28,
1071,
15105,
31,
203,
11890,
1071,
389,
4963,
3088,
1283,
31,
203,
6770,
12,
2867,
516,
225... |
/**
*Submitted for verification at Etherscan.io on 2022-03-07
*/
pragma solidity ^0.4.24;
/**
* @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(uin... | function to get Token Staking Ending time by id | function getTokenStakingEndTimeById(uint256 id) external view returns(uint256){
require(id <= _tokenStakingCount,"Unable to reterive data on specified id, Please try again!!");
return _tokenStakingEndTime[id];
}
| 2,348,653 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
358,
336,
3155,
934,
6159,
4403,
310,
813,
635,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9162,
510,
6159,
25255,
5132,
12,
11890,
5034,
612,
13,
3903,
1476,
1135,
12,
11890,
5034,
15329,
203,
565,
2583,
12,
350,
1648,
389,
2316,
510,
6159,
1380,
10837,
3370,
358,
325,
264,
688,
501,
603,
1269,
612,
16,
7801... |
pragma solidity ^0.4.24;
import "./Land.sol";
import "./BidLandBasic.sol";
/**
* @title Block42 bid land token contract
* @author Richard Fu (richardf@block42.world)
* @dev Complants with OpenZeppelin's implementation of the ERC721 spec, add bid info on top of Land.
*/
contract BidLand is Land, BidLandBasic {
map... | * @dev Sets the final bid price of the land./ | function setBidPrice(uint32 _worldId, int64 _x, int64 _y, uint256 _biddingPrice) public validPosition(_worldId, _x, _y) onlyAuthorized(_worldId) {
uint256 tokenId = encodeTokenId(_worldId, _x, _y);
biddingPrice[tokenId] = _biddingPrice;
}
| 5,537,055 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
727,
9949,
6205,
434,
326,
19193,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
15268,
350,
5147,
12,
11890,
1578,
389,
18179,
548,
16,
509,
1105,
389,
92,
16,
509,
1105,
389,
93,
16,
2254,
5034,
389,
70,
1873,
310,
5147,
13,
1071,
923,
2555,
24899,
18179,
548,
16,
389,
92,
16,
389,
93,
13,
133... |
./full_match/1/0x450fe11c1dbb9538b23CBaf6DD2BBE57A7FAd356/sources/browser/chef.sol | while around 10 days
| bonusEndBlock = startBlock.add(63000); | 9,665,357 | [
1,
4625,
348,
7953,
560,
30,
225,
1323,
6740,
1728,
4681,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
324,
22889,
1638,
1768,
273,
787,
1768,
18,
1289,
12,
4449,
3784,
1769,
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,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Ac... | @notice Deny a loan request with id `loanRequestId` - PRIVILEGES REQUIRED: Admins with the role "OPERATOR_ROLE" @param loanRequestId The id of loan request | function denyLoanRequest(uint256 loanRequestId) external override nonReentrant onlyRole(OPERATOR_ROLE) {
_denyLoanRequest(msg.sender, loanRequestId);
}
| 6,397,078 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
22453,
93,
279,
28183,
590,
598,
612,
1375,
383,
304,
15493,
68,
300,
10365,
4136,
19384,
3991,
15810,
30,
377,
7807,
87,
598,
326,
2478,
315,
26110,
67,
16256,
6,
632,
891,
28183,
15493... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17096,
1504,
304,
691,
12,
11890,
5034,
28183,
15493,
13,
3903,
3849,
1661,
426,
8230,
970,
1338,
2996,
12,
26110,
67,
16256,
13,
288,
203,
3639,
389,
13002,
93,
1504,
304,
691,
12,
3576,
18,
15330,
16,
28183,
15493,
17... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { Decimal } from "./Decimal.sol";
import { IMarket } from "./interfaces/IMarket.sol";
import { IMedia } from "./interfaces/IMedia.sol";
import { IZoo } from "./interfaces/IZoo.sol";
i... | pick array index 0 or 1 depending on the rarity Return Token | function getRandomHybrid(uint256 random, IZoo.Parents memory parents) external view returns (IZoo.Token memory token) {
Hybrid[2] memory possible = [
parentsToHybrid(parents.animalA, parents.animalB),
parentsToHybrid(parents.animalB, parents.animalA)
];
Hybrid memory... | 2,564,725 | [
1,
4625,
348,
7953,
560,
30,
225,
6002,
526,
770,
374,
578,
404,
8353,
603,
326,
436,
20498,
2000,
3155,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
20581,
17507,
14400,
12,
11890,
5034,
2744,
16,
467,
62,
5161,
18,
13733,
3778,
6298,
13,
3903,
1476,
1135,
261,
6867,
5161,
18,
1345,
3778,
1147,
13,
288,
203,
3639,
14881,
14400,
63,
22,
65,
3778,
3323,
273,
306,
203,... |
./full_match/43114/0xA3F9bC1D08fF0b0d483fFEAA122455D479BEEC71/sources/production-contracts/BlizzLockedStrategy.sol | Compounds earnings and charges performance fee Send AVAX rewards to vault | function harvest() external whenNotPaused {
IRewardPool(rewardPool).claim();
chargeFees();
uint256 rewards = IERC20(OUTPUT).balanceOf(address(this));
if (vault != address(0) && rewards > 0) {
IERC20(OUTPUT).safeTransfer(vault, rewards);
ILockedVault(v... | 4,594,077 | [
1,
4625,
348,
7953,
560,
30,
225,
5427,
9284,
425,
1303,
899,
471,
1149,
2852,
9239,
14036,
2479,
15068,
2501,
283,
6397,
358,
9229,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17895,
26923,
1435,
3903,
1347,
1248,
28590,
288,
203,
3639,
15908,
359,
1060,
2864,
12,
266,
2913,
2864,
2934,
14784,
5621,
203,
3639,
13765,
2954,
281,
5621,
203,
540,
203,
3639,
2254,
5034,
283,
6397,
273,
467,
654,
39... |
// SPDX-License-Identifier: MIT
// USAGE
// IF YOU ARE NOT THE OWNER OF THIS CONTRACT INSTANCE, DO NOT SEND TOKENS DIRECTLY TO THIS CONTRACT.
// IF YOU ARE AN END USER, ONLY USE THIS CONTRACT THROUGH THE INTERFACE (available at https://github.com/second-state/interest-earner-user-interface).
// DO NOT SEND ETH TO THIS... | Make sure that contract's reserve pool has enough to service this transaction. I.e. there is enough STATE in this contract to pay this user's interest (not including/counting any previous end user's staked STATE or interest which they will eventually take as a pay out) | require(token.balanceOf(address(this)) >= totalStateStaked.add(totalExpectedInterest).add(interestEarnedForThisStake), "Not enough STATE tokens in the reserve pool, please contact owner of this contract");
| 12,779,732 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
3071,
716,
6835,
1807,
20501,
2845,
711,
7304,
358,
1156,
333,
2492,
18,
467,
18,
73,
18,
1915,
353,
7304,
7442,
316,
333,
6835,
358,
8843,
333,
729,
1807,
16513,
261,
902,
6508,
19,
1883,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
2583,
12,
2316,
18,
12296,
951,
12,
2867,
12,
2211,
3719,
1545,
2078,
1119,
510,
9477,
18,
1289,
12,
4963,
6861,
29281,
2934,
1289,
12,
2761,
395,
41,
1303,
329,
1290,
2503,
510,
911,
3631,
315,
1248,
7304,
7442,
2430,
316,... |
./full_match/5/0x69420D43A83BB4cf340Cc31489b2771879023894/sources/src/minter/FriendsAndFamilyMinter.sol | @dev Mints a new token for the specified recipient and performs additional actions, such as setting the lockup (if applicable). @param recipient The address of the recipient who will receive the minted token. @return The token ID of the minted token. Mint the token Reset discount for the recipient Set lockup informati... | function mint(
address recipient
) external onlyExistingDiscount(recipient) returns (uint256) {
uint256 pfpTokenId = ICre8ors(cre8orsNFT).adminMint(recipient, 1);
totalClaimed[recipient] += 1;
hasDiscount[recipient] = false;
ILockup lockup = ICre8ors(cre8orsNFT).cre8ing... | 11,623,681 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
490,
28142,
279,
394,
1147,
364,
326,
1269,
8027,
471,
11199,
3312,
4209,
16,
4123,
487,
3637,
326,
2176,
416,
261,
430,
12008,
2934,
632,
891,
8027,
1021,
1758,
434,
326,
8027,
10354,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
12,
203,
3639,
1758,
8027,
203,
565,
262,
3903,
1338,
9895,
9866,
12,
20367,
13,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
293,
7944,
1345,
548,
273,
467,
1996,
28,
1383,
12,
1793,
28,
1383,
50... |
./full_match/40/0x212A316c2736Ef289A0870Ba4cBE3B5797a8D52D/sources/contracts/OmniBtcTlos.sol | Converts to both sides of the LP token and builds the LP | function addLiquidity() internal {
uint256 wrappedHalf = IERC20(wrapped).balanceOf(address(this)) / 2;
IOmniRouter(router).swapExactTokensForTokens(wrappedHalf, 0, wrappedToLp1Path, address(this), block.timestamp);
uint256 lp0Bal = IERC20(wrapped).balanceOf(address(this));
uint256 ... | 9,545,760 | [
1,
4625,
348,
7953,
560,
30,
225,
20377,
358,
3937,
22423,
434,
326,
511,
52,
1147,
471,
10736,
326,
511,
52,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
1435,
2713,
288,
203,
3639,
2254,
5034,
5805,
16168,
273,
467,
654,
39,
3462,
12,
18704,
2934,
12296,
951,
12,
2867,
12,
2211,
3719,
342,
576,
31,
203,
203,
3639,
1665,
13607,
77,
8259,
12,
10717,... |
./partial_match/1/0x34A542aCD8A717B5933228Ae3C554B1328F36e14/sources/ERC20ByMetadrop.sol | You required the pool to be above the minimum, and it is not
| error PoolIsBelowMinimum(); | 2,631,435 | [
1,
4625,
348,
7953,
560,
30,
11794,
4554,
1931,
326,
2845,
358,
506,
5721,
326,
5224,
16,
471,
518,
353,
486,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
555,
8828,
2520,
28730,
13042,
5621,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x46DE3A3dA932F1CbC151Db76AC1BeE935611544e/sources/contracts/IdleCDOStorage.sol | constant to represent 100% max fee, relative to FULL_ALLOC one token variable used to save the last tx.origin and block.number variable used to save the block of the latest harvest WETH address tokens used to incentivize the idle tranche ideal ratio underlying token (eg DAI) address that can only pause/unpause the con... | contract IdleCDOStorage {
uint256 public constant FULL_ALLOC = 100000;
uint256 public constant MAX_FEE = 20000;
uint256 public constant ONE_TRANCHE_TOKEN = 10**18;
bytes32 internal _lastCallerBlock;
uint256 internal latestHarvestBlock;
address public weth;
address[] public incentiveTokens;
address publi... | 16,559,162 | [
1,
4625,
348,
7953,
560,
30,
225,
5381,
358,
2406,
2130,
9,
943,
14036,
16,
3632,
358,
18153,
67,
1013,
29450,
1245,
1147,
2190,
1399,
358,
1923,
326,
1142,
2229,
18,
10012,
471,
1203,
18,
2696,
2190,
1399,
358,
1923,
326,
1203,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
28156,
39,
3191,
3245,
288,
203,
225,
2254,
5034,
1071,
5381,
18153,
67,
1013,
29450,
273,
25259,
31,
203,
225,
2254,
5034,
1071,
5381,
4552,
67,
8090,
41,
273,
576,
2787,
31,
203,
225,
2254,
5034,
1071,
5381,
15623,
67,
8... |
./full_match/1/0x7FeEe1c7AF002bCfc12720539Bf8360A2f1724DF/sources/bozy.sol | @dev Makes a function callable only by the founder. | modifier onlyFounder() {
require(_msgSender() == founder, "Your are not the Founder.");
_;
}
| 3,099,133 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
490,
3223,
279,
445,
4140,
1338,
635,
326,
284,
465,
765,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
42,
465,
765,
1435,
288,
203,
3639,
2583,
24899,
3576,
12021,
1435,
422,
284,
465,
765,
16,
315,
15446,
854,
486,
326,
478,
465,
765,
1199,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2022-03-04
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata... | exclude from paying fees or having max transaction amount | constructor() ERC20('In Between Destiny', 'IBD') {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_unis... | 6,274,358 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
3885,
1435,
4232,
39,
3462,
2668,
382,
605,
8458,
28510,
11652,
2187,
296,
13450,
40,
6134,
288,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradea... | * @param _addrTok Token to withdraw @param _amount Amount of OVN tokens to burn/ denormalize from 10**18 to 10**6 as OVN decimals check if we should return back to user proportionally tokens from Vault redeemAmount should be in OVN and or equivalent to USDC Calc user redeem shares Burn OVN from sender prevent stucked p... | function redeem(address _addrTok, uint256 _amount) external whenNotPaused {
require(_addrTok == address(usdc), "Only USDC tokens currently available for redeem");
uint256 redeemFeeAmount = (_amount * redeemFee) / redeemFeeDenominator;
uint256 redeemAmount = _amount - redeemFeeAmount;
... | 12,650,740 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
389,
4793,
20477,
3155,
358,
598,
9446,
632,
891,
389,
8949,
16811,
434,
531,
58,
50,
2430,
358,
18305,
19,
24919,
554,
628,
1728,
636,
2643,
358,
1728,
636,
26,
487,
531,
58,
50,
15105,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
24903,
12,
2867,
389,
4793,
20477,
16,
2254,
5034,
389,
8949,
13,
3903,
1347,
1248,
28590,
288,
203,
3639,
2583,
24899,
4793,
20477,
422,
1758,
12,
407,
7201,
3631,
315,
3386,
11836,
5528,
2430,
4551,
2319,
364,
283,... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable... | @notice Computes the proportion of the collateral leftover balance to use for a given action @param proportion Ratio to take from balance @param list Collateral list @param balances Balances of each collateral asset in the collateral list @param searchFor Collateral to look for @return amount Amount to use for the act... | function _computeProportion(
uint256 proportion,
address[_MAX_TOKENS] memory list,
uint256[_MAX_TOKENS] memory balances,
address searchFor
) internal pure returns (uint256 amount) {
uint256 index = _searchList(list, searchFor);
require(list[index] != address(0), ... | 6,009,135 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14169,
281,
326,
23279,
434,
326,
4508,
2045,
287,
29709,
11013,
358,
999,
364,
279,
864,
1301,
632,
891,
23279,
534,
4197,
358,
4862,
628,
11013,
632,
891,
666,
17596,
2045,
287,
666,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9200,
626,
17564,
12,
203,
3639,
2254,
5034,
23279,
16,
203,
3639,
1758,
63,
67,
6694,
67,
8412,
55,
65,
3778,
666,
16,
203,
3639,
2254,
5034,
63,
67,
6694,
67,
8412,
55,
65,
3778,
324,
26488,
16,
203,
3639,
17... |
//Address: 0x8a4aeb9455896e2cd498a9afc42a7f85638660eb
//Contract name: StockBetSale
//Balance: 0 Ether
//Verification Date: 10/23/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.17;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control ... | * @dev Allows the owner to set the Vault address @param _Vault the Vault address/ | function setVault(address _Vault) public onlyOwner {
require(_Vault != 0x0);
if (_Vault != address(0)) {
Vault = _Vault;
}
}
| 5,467,420 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
3410,
358,
444,
326,
17329,
1758,
632,
891,
389,
12003,
326,
17329,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
12003,
12,
2867,
389,
12003,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
24899,
12003,
480,
374,
92,
20,
1769,
203,
565,
309,
261,
67,
12003,
480,
1758,
12,
20,
3719,
288,
203,
1377,
17329,
273,
389,
12003,
31,
20... |
/**
*Submitted for verification at Etherscan.io on 2021-10-30
*/
// Verified using https://dapp.tools
// hevm: flattened sources of src/MemeNumbersRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4 >=0.8.0 <0.9.0;
////// lib/base64/base64.sol
/// @title Base64
/// @author Brecht Devos - <[email p... | hevm: flattened sources of src/MemeNumbersRenderer.sol SPDX-License-Identifier: MIT | pragma solidity >=0.8.4 >=0.8.0 <0.9.0;
| 10,980,020 | [
1,
4625,
348,
7953,
560,
30,
225,
3904,
3489,
30,
14171,
5550,
434,
1705,
19,
3545,
73,
10072,
6747,
18,
18281,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
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,
683,
9454,
18035,
560,
1545,
20,
18,
28,
18,
24,
1545,
20,
18,
28,
18,
20,
411,
20,
18,
29,
18,
20,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |