file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./partial_match/56/0x6D385826F7026e2DCcaf5aBf0246a128AbcD61eb/sources/BEP20Token.sol | TODO: safely compare between uint and int int is negative int "b" always lesser | function lesserThan(uint256 a, int256 b, string memory message) public returns (bool result) {
if(b < int(0)) {
result = false;
result = (a < uint(b));
}
emit AssertionEventUintInt(result, message, "lesserThan", a, b);
}
| 11,205,083 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
15303,
3400,
3086,
2254,
471,
509,
509,
353,
6092,
509,
315,
70,
6,
3712,
5242,
264,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5242,
264,
9516,
12,
11890,
5034,
279,
16,
509,
5034,
324,
16,
533,
3778,
883,
13,
1071,
1135,
261,
6430,
563,
13,
288,
203,
565,
309,
12,
70,
411,
509,
12,
20,
3719,
288,
203,
1377,
563,
273,
629,
31,
203,
1377,
... |
pragma solidity ^0.6.0;
abstract contract Context {/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYA*/
function _msgSender() internal view virtual returns (address payable) {/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYA*/
return msg.sender;/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAM... | rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYA/ | }/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYA* | 14,014,465 | [
1,
4625,
348,
7953,
560,
30,
8581,
60,
1616,
77,
93,
74,
48,
94,
4430,
2192,
60,
15680,
61,
686,
92,
60,
1616,
77,
93,
74,
48,
94,
4430,
2192,
60,
15680,
61,
686,
92,
60,
1616,
77,
93,
74,
48,
94,
4430,
2192,
60,
15680,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
289,
20308,
20122,
60,
1616,
77,
93,
74,
48,
94,
4430,
2192,
60,
15680,
61,
686,
92,
60,
1616,
77,
93,
74,
48,
94,
4430,
2192,
60,
15680,
61,
686,
92,
60,
1616,
77,
93,
74,
48,
94,
4430,
2192,
60,
15680,
61,
37,
14,... |
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either... | inject NONSTANDARD NAMING
| address constant ilk_registry964 = 0xbE4F921cdFEf2cF5080F9Cf00CC2c14F1F96Bd07; | 12,918,627 | [
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,
1758,
5381,
14254,
79,
67,
9893,
29,
1105,
565,
273,
374,
6114,
41,
24,
42,
29,
5340,
4315,
8090,
74,
22,
71,
42,
3361,
3672,
42,
29,
39,
74,
713,
6743,
22,
71,
3461,
42,
21,
42,
10525,
38,
72,
8642,
31,
202,
2,
-100... |
pragma solidity^0.5.13;
import "../HasOwner.sol";
import "../CompliantDepositTokenWithHook.sol";
contract TokenFaucet {
struct MintOperation {
address to;
uint256 value;
uint256 requestedBlock;
uint256 numberOfApproval;
bool paused;
mapping(address => bool) approved... | *@dev Update this contract's registry pointer to _registry/ | function setRegistry(Registry _registry) external onlyOwner {
registry = _registry;
emit SetRegistry(registry);
}
| 12,811,368 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
5206,
2315,
333,
6835,
1807,
4023,
4407,
358,
389,
9893,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
4243,
12,
4243,
389,
9893,
13,
3903,
1338,
5541,
288,
203,
3639,
4023,
273,
389,
9893,
31,
203,
3639,
3626,
1000,
4243,
12,
9893,
1769,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@jbox/sol/contracts/abstract/JuiceboxProject.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openze... | Returns the URI for a given token. @param tokenId ID of the token in question. | function tokenURI(uint256 tokenId) public view override returns (string memory) {
require(_exists(tokenId), "WikiToken::tokenURI:: TOKEN_DOES_NOT_EXIST");
return
bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : "";
}
| 12,879,517 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
326,
3699,
364,
279,
864,
1147,
18,
632,
891,
1147,
548,
1599,
434,
326,
1147,
316,
5073,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
565,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
25438,
1345,
2866,
2316,
3098,
2866,
14275,
67,
3191,
3991,
67,
4400,
... |
./full_match/1/0x3aDf71D5Fbb59e32730cEB8E6605AF958a204E6B/sources/contracts/GearPod.sol | * @notice Change the wallet address required to sign tickets @param _signer the new signing address/ | function setSigner(
address _signer
) external onlyOwner {
signer = _signer;
}
| 17,135,897 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7576,
326,
9230,
1758,
1931,
358,
1573,
24475,
632,
891,
389,
2977,
264,
326,
394,
10611,
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... | [
1,
1,
1,
1,
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,
444,
15647,
12,
203,
3639,
1758,
389,
2977,
264,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
10363,
273,
389,
2977,
264,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-20
*/
pragma solidity 0.8.7;
// SPDX-License-Identifier: UNLICENSED
// FEGex PRO Pair Deployer
contract FEGmath {
function btoi(uint256 a)
internal pure
returns (uint256)
{
return a / 1e18;
}
function bfloo... | Incentive for providing higher liquidity
| if(_records[Main].balance >= 5e18) { | 10,513,936 | [
1,
4625,
348,
7953,
560,
30,
225,
657,
2998,
688,
364,
17721,
10478,
4501,
372,
24237,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
24899,
7094,
63,
6376,
8009,
12296,
1545,
1381,
73,
2643,
13,
288,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.18;
// File: contracts/ERC20Interface.sol
// https://github.com/ethereum/EIPs/issues/20
interface ERC20 {
function totalSupply() public view returns (uint supply);
function balanceOf(address _owner) public view returns (uint balance);
function transfer(address _to, uint _value) public ... | can skip validation if done at kyber network level transfer back only requested dest amount. transfer back only requested dest amount. | function doTrade(
ERC20 srcToken,
uint srcAmount,
ERC20 destToken,
address destAddress,
uint conversionRate,
bool validate
)
internal
returns(bool)
{
require((ETH_TOKEN_ADDRESS == srcToken) || (ETH_TOKEN_ADDRESS == destToken));
... | 228,980 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
2488,
3379,
309,
2731,
622,
417,
93,
744,
2483,
1801,
7412,
1473,
1338,
3764,
1570,
3844,
18,
7412,
1473,
1338,
3764,
1570,
3844,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
741,
22583,
12,
203,
3639,
4232,
39,
3462,
1705,
1345,
16,
203,
3639,
2254,
1705,
6275,
16,
203,
3639,
4232,
39,
3462,
1570,
1345,
16,
203,
3639,
1758,
1570,
1887,
16,
203,
3639,
2254,
4105,
4727,
16,
203,
3639,
1426,
... |
//Address: 0x12E29c3d8a8437B1A82aFb07DCa489548E08eBBE
//Contract name: CoinContract
//Balance: 0 Ether
//Verification Date: 10/8/2017
//Transacion Count: 1
// CODE STARTS HERE
contract CoinContract {
bool private workingState = false;
address public owner;
address public proxy;
uint256 public x = 100; //coin... | @title Sender funds getter | function getSenderFunds(address _sender) workingFlag returns (uint256 amount) {
return etherClients[_sender];
}
| 1,057,954 | [
1,
4625,
348,
7953,
560,
30,
632,
2649,
15044,
284,
19156,
7060,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1322,
2345,
42,
19156,
12,
2867,
389,
15330,
13,
5960,
4678,
1135,
261,
11890,
5034,
3844,
13,
288,
203,
565,
327,
225,
2437,
12300,
63,
67,
15330,
15533,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2021-02-20
*/
/**
*Submitted for verification at Etherscan.io on 2021-02-01
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.... | Liquidate as many assets as possible to `want`, irregardless of slippage, up to `_amountNeeded`. Any excess should be re-invested here as well./ TODO: Do stuff here to free up to `_amountNeeded` from all positions back into `want` Note: potential drift by 1 wei, reduce to max balance in the case approx is rounded up N... | function liquidatePosition(uint256 _amountNeeded)
internal
override
updateVirtualPrice
returns (uint256 _liquidatedAmount, uint256 _loss)
{
if (balanceOfWant() < _amountNeeded) {
uint256 amountToRedeem = _amountNeeded.sub(balanceOfWant());
uint256... | 15,135,433 | [
1,
4625,
348,
7953,
560,
30,
225,
511,
18988,
350,
340,
487,
4906,
7176,
487,
3323,
358,
1375,
17369,
9191,
9482,
1574,
1060,
2656,
434,
272,
3169,
2433,
16,
731,
358,
1375,
67,
8949,
11449,
8338,
5502,
23183,
1410,
506,
283,
17,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4501,
26595,
340,
2555,
12,
11890,
5034,
389,
8949,
11449,
13,
203,
3639,
2713,
203,
3639,
3849,
203,
3639,
1089,
6466,
5147,
203,
3639,
1135,
261,
11890,
5034,
389,
549,
26595,
690,
6275,
16,
2254,
5034,
389,
7873,
13,
... |
pragma solidity ^0.5.0;
//
//
//----------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spender) public view returns (uint r... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Dosadoge";
symbol = "DOSADOGE";
decimals = 9;
_totalSupply = 100000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 425,565 | [
1,
4625,
348,
7953,
560,
30,
380,
735,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
40,
538,
361,
717,
73,
14432,
203,
3639,
3273,
273,
315,
3191,
55,
1880,
51,
7113,
14432,
203,
3639,
15105,
273,
2468,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
... |
./full_match/80001/0x799022f326F50e330dCf5cFEbCEeC8356CD0aFa1/sources/contracts/libs/PreciseUnitMath.sol | * @dev Divides value a by value b (result is rounded up or away from 0)./ | function divCeil(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0, 'Cant divide by 0');
return a > 0 ? (a * PRECISE_UNIT - 1) / b + 1 : 0;
}
| 861,967 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21411,
4369,
460,
279,
635,
460,
324,
261,
2088,
353,
16729,
731,
578,
10804,
628,
374,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3739,
39,
73,
330,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2583,
12,
70,
480,
374,
16,
296,
39,
970,
12326,
635,
374,
8284,
203,
203,
565,
327,
279,
405... |
pragma solidity ^0.4.18;
interface token {
function transfer(address receiver, uint amount) external;
}
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
f... | * Constructor function/ | ) public {
totalCandyNo = 1e6;
tokenReward = token(addressOfTokenUsedAsReward);
collectorAddress = collector;
}
| 12,950,882 | [
1,
4625,
348,
7953,
560,
30,
380,
11417,
445,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
288,
203,
3639,
2078,
39,
464,
93,
2279,
273,
404,
73,
26,
31,
203,
3639,
1147,
17631,
1060,
273,
1147,
12,
2867,
951,
1345,
6668,
1463,
17631,
1060,
1769,
203,
3639,
8543,
1887,
273,
8543,
31,
203,
565,
289,
20... |
pragma solidity ^0.4.18;
import "./Allocatable.sol";
import './ERC20.sol';
import './SafeMathLib.sol';
/**
* Contract to enforce Token Vesting
*/
contract TokenVesting is Allocatable, SafeMathLib {
address public TokenAddress;
/** keep track of total tokens yet to be released,
* this should be less... | transfer vested tokens | require(amountToRelease > 0);
| 6,375,392 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
331,
3149,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
8949,
774,
7391,
405,
374,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-01-20
*/
// File: base/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make... | * @title ERC721 token receiver interface @dev Interface for any contract that wants to support safeTransfers from ERC721 asset contracts./ | interface IERC721Receiver {
function onERC721Received(
address operator,
address from,
uint tokenId,
bytes calldata data
) external returns (bytes4);
}
| 15,116,905 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
27,
5340,
1147,
5971,
1560,
632,
5206,
6682,
364,
1281,
6835,
716,
14805,
358,
2865,
4183,
1429,
18881,
628,
4232,
39,
27,
5340,
3310,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
12952,
288,
203,
565,
445,
603,
654,
39,
27,
5340,
8872,
12,
203,
3639,
1758,
3726,
16,
203,
3639,
1758,
628,
16,
203,
3639,
2254,
1147,
548,
16,
203,
3639,
1731,
745,
892,
501,
203,
565,
262,
39... |
./partial_match/4/0xE0b5A23a3F5C88410aB9831540e7C93ab81E0106/sources/TrxChain.sol | здесь кучастнику происхоит сумирование бонусов в соответствие с
| users[up].match_bonus += bonus; | 8,522,067 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
120,
145,
117,
145,
118,
146,
228,
146,
239,
225,
145,
123,
146,
230,
146,
234,
145,
113,
146,
228,
146,
229,
145,
126,
145,
121,
145,
123,
146,
230,
225,
145,
128,
146,
227,
145,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
7734,
3677,
63,
416,
8009,
1916,
67,
18688,
407,
1011,
324,
22889,
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,
-1... |
pragma solidity ^0.4.24;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender)
ex... | * @dev Decrease the amount of tokens that an owner allowed to a spender. approve should be called when allowed_[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol @param spender The address which will spen... | function decreaseAllowance(
address spender,
uint256 subtractedValue
)
public
returns (bool)
{
require(spender != address(0));
_allowed[msg.sender][spender] = (
_allowed[msg.sender][spender].sub(subtractedValue));
emit Approval(msg.sender, spe... | 1,163,016 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
31073,
448,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
6617,
537,
1410,
506,
2566,
1347,
2935,
67,
63,
67,
87,
1302,
264,
65,
422,
374,
18,
2974,
15267,
2935,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
7009,
1359,
12,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
10418,
329,
620,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2583,
12,
87,
1302,
264,
480,
1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import './interfaces/IUniswapV2Pair.sol';
import './UniswapV2ERC20.sol';
import './libraries/Math.sol';
import './libraries/UQ112x112.sol';
import './interfaces/IERC20.sol';
import './interfaces/IUniswapV2Factory.sol';
contract UniswapV2Pair is IUniswapV2Pair, Un... | this low-level function should be called from a contract which performs important safety checks scope for _token{0,1}, avoids stack too deep errors address _token0 = token0; address _token1 = token1; | function swap(uint amount0Out, uint amount1Out, address to) external override lock {
require(amount0Out > 0 || amount1Out > 0, 'PolkaBridge AMM: INSUFFICIENT_OUTPUT_AMOUNT');
require(amount0Out < _reserve0 && amount1Out < _reserve1, 'PolkaBridge AMM: INSUFFICIENT_LIQUIDITY');
uint256 balanc... | 565,671 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
10802,
24179,
4271,
2146,
364,
389,
2316,
95,
20,
16,
21,
5779,
24192,
2110,
4885,
4608,
1334,
1758,
389,
2316,
20,
273,
1147,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
12,
11890,
3844,
20,
1182,
16,
2254,
3844,
21,
1182,
16,
1758,
358,
13,
3903,
3849,
2176,
288,
203,
3639,
2583,
12,
8949,
20,
1182,
405,
374,
747,
3844,
21,
1182,
405,
374,
16,
296,
5850,
7282,
13691,
432,
8206,... |
pragma solidity ^0.4.0;
/**
* DOCUMENTATION
*
* Most of the interface of NotebookMarketplace is similar to DatasetMarketplace.
* This is because they are based on same concept of sharing.
* On the other hand, there is some change caused by the payment utility in both contracts.
* Since datasets can be a paid ser... | modifiers modifier onlyIfPayingEnoughForBuying { if (msg.value >= price){ _;}} modifier onlyIfPayingEnoughForUsing { if (msg.value >= usageFee){ _;}} | modifier onlyAuthor { if (msg.sender == authorAddress){ _;}}
| 12,753,677 | [
1,
4625,
348,
7953,
560,
30,
225,
10429,
9606,
1338,
2047,
9148,
310,
664,
4966,
1290,
38,
9835,
310,
288,
309,
261,
3576,
18,
1132,
1545,
6205,
15329,
389,
31,
9090,
9606,
1338,
2047,
9148,
310,
664,
4966,
1290,
7736,
288,
309,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
9606,
1338,
3594,
288,
309,
261,
3576,
18,
15330,
422,
2869,
1887,
15329,
389,
31,
9090,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: UNLICENSE
pragma solidity ^0.8.0;
import { EternalLib } from "../lib/EternalLib.sol";
import { AssembleLib } from "../lib/AssembleLib.sol";
import { GenotypeLib } from "../lib/GenotypeLib.sol";
import { MutationLib } from "../lib/MutationLib.sol";
contract FuckYousMetadata {
// figure o... | step 3: split this hash into 32 arrays to seed the attributes | uint8[32] memory seeds = splitHashIntoFenotype(hashy);
| 6,900,790 | [
1,
4625,
348,
7953,
560,
30,
225,
2235,
890,
30,
1416,
333,
1651,
1368,
3847,
5352,
358,
5009,
326,
1677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
11890,
28,
63,
1578,
65,
3778,
19076,
273,
1416,
2310,
5952,
42,
275,
10570,
12,
2816,
93,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x94263a20b1Eea751d6C3B207A7A0ba8fF8Db9E90/sources/contracts/upgradeable_contracts/omnibridge_nft/modules/OmnibridgeModule.sol | * @dev Throws if sender is not the owner of this contract./ | modifier onlyOwner {
require(msg.sender == mediator.owner());
_;
}
| 12,395,069 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22435,
309,
5793,
353,
486,
326,
3410,
434,
333,
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,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
5541,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
6735,
10620,
18,
8443,
10663,
203,
3639,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
library DoublyLinkedList {
struct data {
uint80 first;
uint80 last;
uint80 count;
Item[] items;
}
uint80 constant None = uint80(0);
struct Item {
uint80 prev;
uint80 next;
bytes32 data;
}
/// Appends `_data` to the end of the list `self`.
... | Removes the element identified by the iterator `_index` from the list `self`. | function remove(data storage self, uint80 _index) {
Item item = self.items[_index - 1];
if (item.prev == None)
self.first = item.next;
if (item.next == None)
self.last = item.prev;
if (item.prev != None)
self.items[item.prev - 1].next = item.next;
... | 899,651 | [
1,
4625,
348,
7953,
560,
30,
225,
20284,
326,
930,
9283,
635,
326,
2775,
1375,
67,
1615,
68,
628,
326,
666,
1375,
2890,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
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,
1206,
12,
892,
2502,
365,
16,
2254,
3672,
389,
1615,
13,
288,
203,
3639,
4342,
761,
273,
365,
18,
3319,
63,
67,
1615,
300,
404,
15533,
203,
3639,
309,
261,
1726,
18,
10001,
422,
599,
13,
203,
5411,
365,
18,
3645,
27... |
pragma solidity ^0.4.24;
contract FitoContract {
bool corporateAddrIsSet = false; //회사 계정 및 유통주식소 초기화 여부
uint[] tester;
uint unissuedSharesOfCompany = 1000000; //총 발행가능 주식수
uint issuedSharesOfCompany; //유통 발행 주식수
uint balance; //ETH transfer 전송할 이더 수량 저장을 위한 임시 변수
... | ----------------------------------------------------------- 각종 조회용 함수 ----------------------------------------------------------- [Protyotype1 : 주주명부 조회용] 총 등록 주주 수 리턴 | function getLengthOfshareOwnerLists() public view returns (uint) {
return shareOwnerLists.length;
}
| 6,393,169 | [
1,
4625,
348,
7953,
560,
30,
225,
13420,
15392,
225,
171,
113,
228,
173,
100,
232,
225,
173,
99,
113,
174,
253,
239,
173,
253,
107,
225,
174,
248,
106,
173,
235,
251,
13420,
15392,
306,
626,
4098,
10570,
21,
294,
225,
173,
101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9888,
951,
14419,
5541,
7432,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
7433,
5541,
7432,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
// Sources flattened with hardhat v2.8.3 https://hardhat.org
// File @openzeppelin/contracts/utils/introspection/[email protected]
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implemente... | Returns the current pass counter | function getCounter() external view returns (uint256) {
return _passCounter.current();
}
| 1,358,077 | [
1,
4625,
348,
7953,
560,
30,
2860,
326,
783,
1342,
3895,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31107,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
5466,
4789,
18,
2972,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.1;
import "./SafeMath.sol";
import "./SafeMath8.sol";
import "./IdentityRegistryInterface.sol";
/**
* @title Ice Protocol Global Items Libray
* @author Harsh Rajat
* @notice Create and handle critical File Management functions
* @dev This Library is part of many that Ice uses form a robust F... | Whether the staping is rejected by recipient
| bool stampingRejected; | 972,616 | [
1,
4625,
348,
7953,
560,
30,
225,
17403,
326,
384,
24447,
353,
11876,
635,
8027,
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,
1426,
14429,
310,
19902,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/137/0x1128f006920E0BB43985F5a4F4102F52ebDF6501/sources/contract/Miracle-Tournament/Miracle-Tournament-R2.sol | Unlock Escrow Prize Token / Fee Token to Escrow contract | MiracleTournamentEscrow(EscrowAddr).unlockPrize(_tournamentId, prizeAddr);
| 3,763,336 | [
1,
4625,
348,
7953,
560,
30,
225,
3967,
512,
1017,
492,
2301,
554,
3155,
342,
30174,
3155,
358,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
490,
11547,
2131,
774,
30751,
6412,
492,
12,
6412,
492,
3178,
2934,
26226,
2050,
554,
24899,
869,
30751,
548,
16,
846,
554,
3178,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/4/0x05F5230b57E7D1d96B7ECC3975e447955a690b85/sources/BondingCurveFactory_flat.sol | * @param _user: The address of the user @return address[]: The addresses of any markets the user has deployed through this factory./ | function getDeployedMarkets(
address _user
)
public
view
returns(address[] memory)
{
return deployedMarkets[msg.sender];
}
| 651,461 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
225,
389,
1355,
30,
1021,
1758,
434,
326,
729,
632,
2463,
1758,
8526,
30,
1021,
6138,
434,
1281,
2267,
2413,
326,
729,
711,
19357,
540,
3059,
333,
3272,
18,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
31954,
3882,
2413,
12,
203,
3639,
1758,
389,
1355,
203,
565,
262,
7010,
3639,
1071,
7010,
3639,
1476,
7010,
3639,
1135,
12,
2867,
8526,
3778,
13,
7010,
565,
288,
203,
3639,
327,
19357,
3882,
2413,
63,
3576,
18,
153... |
./full_match/42/0xFF256fbD39211fdB795C0086339439817b84BbC9/sources/Test.sol | Prevents the LP contract to count as a creditor before it is excluded
| if (_balances[_user] < _totalSupply.div(10)) tierB.tierSupply = tierB.tierSupply.add(_newBalance); | 16,235,005 | [
1,
4625,
348,
7953,
560,
30,
225,
19412,
87,
326,
511,
52,
6835,
358,
1056,
487,
279,
6197,
1811,
1865,
518,
353,
8845,
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,
... | [
1,
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,
10792,
309,
261,
67,
70,
26488,
63,
67,
1355,
65,
411,
389,
4963,
3088,
1283,
18,
2892,
12,
2163,
3719,
17742,
38,
18,
88,
2453,
3088,
1283,
273,
17742,
38,
18,
88,
2453,
3088,
1283,
18,
1289,
24899,
2704,
13937,
1769,
282,
2,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | Paid mint Mint via Penny token burn | function mint(uint _amount, bool _stake) public payable whenNotPaused {
require(tx.origin == msg.sender, "Only EOA");
require(tokensMinted + _amount <= MAX_TOKENS, "All tokens minted");
require(_amount > 0 && _amount <= MINT_PER_TX_LIMIT, "Invalid mint amount");
require(_availableTok... | 6,181,639 | [
1,
4625,
348,
7953,
560,
30,
225,
453,
20736,
312,
474,
490,
474,
3970,
453,
275,
18538,
1147,
18305,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
389,
8949,
16,
1426,
389,
334,
911,
13,
1071,
8843,
429,
1347,
1248,
28590,
288,
203,
3639,
2583,
12,
978,
18,
10012,
422,
1234,
18,
15330,
16,
315,
3386,
512,
28202,
8863,
203,
3639,
2583,
12,
78... |
/**
*Submitted for verification at Etherscan.io on 2021-09-17
*/
/**
Floki at Night! Join the Dark Side.
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are gener... | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements: - `to` cannot be the zero address./ | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
_balances[account] += amount;
emit Transfer(address(0x82084A627E8... | 2,243,398 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
203,
3639,
389,
5771,
1... |
./partial_match/1/0x4F1982dcbB37021eA9F8Ed5dFa1C5a4b73f92665/sources/contracts/VDF/IsPrime.sol | * @title Probable prime tester with Miller-Rabin/ | contract IsPrime {
function expmod(
uint256 _x,
uint256 _e,
uint256 _n
pragma solidity ^0.8.0;
) private view returns (uint256 r) {
assembly {
if iszero(staticcall(gas(), 0x05, p, 0xc0, p, 0x20)) {
revert(0, 0)
}
}
}
) pri... | 15,925,985 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14610,
429,
17014,
268,
7654,
598,
490,
24462,
17,
54,
378,
267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2585,
23327,
288,
203,
565,
445,
1329,
1711,
12,
203,
3639,
2254,
5034,
389,
92,
16,
203,
3639,
2254,
5034,
389,
73,
16,
203,
3639,
2254,
5034,
389,
82,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
56... |
//Address: 0x6381947999a27896e4125ffba9160646dbe4accb
//Contract name: UKTToken
//Balance: 0 Ether
//Verification Date: 5/31/2018
//Transacion Count: 75
// CODE STARTS HERE
pragma solidity ^0.4.21;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
*... | * @dev Sets initial balances allocation/ cannot be invoked after initial allocation the array of addresses should be the same length as the array of addresses types the array of addresses should be the same length as the array of allocating amounts sum of the allocating balances should be equal to totalSupply | function setInitialAllocation(
address[] addresses,
bytes32[] addressesTypes,
uint[] amounts
) external onlyController returns (bool) {
require(!isAllocated);
require(addresses.length == addressesTypes.length);
require(addresses.length == amounts.length);
uint balancesSum = 0;
for(uint b = 0; b < amou... | 1,774,870 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
2172,
324,
26488,
13481,
19,
2780,
506,
8187,
1839,
2172,
13481,
326,
526,
434,
6138,
1410,
506,
326,
1967,
769,
487,
326,
526,
434,
6138,
1953,
326,
526,
434,
6138,
1410,
506,
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,
202,
915,
444,
4435,
17353,
12,
203,
202,
202,
2867,
8526,
6138,
16,
203,
202,
202,
3890,
1578,
8526,
6138,
2016,
16,
203,
202,
202,
11890,
8526,
30980,
203,
202,
13,
3903,
1338,
2933,
1135,
261,
6430,
13,
288,
203,
202,
202,
6... |
./partial_match/1/0xc5A75367E22DA02C3b85412520af4bF99c9036cF/sources/OOCrossChainAndSwap.sol | * @notice Sends a token transfer via a bridge. @param _receiver The address of the destination app contract. @param _token The address of the token to be sent. @param _amount The amount of tokens to be sent. @param _dstChainId The destination chain ID. @param _nonce A number input to guarantee uniqueness of transferId.... | function sendTokenTransfer(
address _receiver,
address _token,
uint256 _amount,
uint64 _dstChainId,
uint64 _nonce,
bytes memory _bridgeData,
MsgDataTypes.BridgeSendType _bridgeSendType,
address _messageBus
) internal returns (SendTokenTransferResul... | 3,701,882 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2479,
87,
279,
1147,
7412,
3970,
279,
10105,
18,
632,
891,
389,
24454,
1021,
1758,
434,
326,
2929,
595,
6835,
18,
632,
891,
389,
2316,
1021,
1758,
434,
326,
1147,
358,
506,
3271,
18,
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,
1366,
1345,
5912,
12,
203,
3639,
1758,
389,
24454,
16,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
1105,
389,
11057,
3893,
548,
16,
203,
3639,
2254,
1105,
389,
12824,
16,
203,
... |
./partial_match/1/0xf57DE40648316A212E24CEE6df4E79D2bdA320aC/sources/Staking.sol | * @dev depsoit tokens to staking for allocation @param {_amount} Amount to be staked @return {bool} Status of stake/ | function stake(uint256 _amount) external nonReentrant returns (bool) {
require(_amount >= pool.minContrib, "Invalid amount!");
require(
token.allowance(msg.sender, address(this)) >= _amount,
"Set allowance first!"
);
reinvest();
bool success = token... | 4,449,824 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8740,
83,
305,
2430,
358,
384,
6159,
364,
225,
13481,
632,
891,
288,
67,
8949,
97,
16811,
358,
506,
384,
9477,
632,
2463,
288,
6430,
97,
2685,
434,
384,
911,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
389,
8949,
13,
3903,
1661,
426,
8230,
970,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
8949,
1545,
2845,
18,
1154,
442,
665,
16,
315,
1941,
3844,
4442,
1769,
203,
203,
3639,
2583,
12,
... |
./full_match/80001/0x894A805D70a5cdF69E3078F3D7f9C39857b20644/sources/StakingContract.sol | If address already has ERC721 Token/s staked, calculate the rewards. Increment the amountStaked and map msg.sender to the Token Id of the staked Token to later send back on withdrawal. Finally give timeOfLastUpdate the value of now. If wallet has tokens staked, calculate the rewards before adding the new token | function stake(uint256 _tokenId) external nonReentrant {
if (stakers[msg.sender].amountStaked > 0) {
uint256 rewards = calculateRewards(msg.sender);
stakers[msg.sender].unclaimedRewards += rewards;
}
milfCollection.ownerOf(_tokenId) == msg.sender || dilfCollectio... | 9,501,370 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1758,
1818,
711,
4232,
39,
27,
5340,
3155,
19,
87,
384,
9477,
16,
4604,
326,
283,
6397,
18,
17883,
326,
3844,
510,
9477,
471,
852,
1234,
18,
15330,
358,
326,
3155,
3124,
434,
326,
384,
9477,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
384,
911,
12,
11890,
5034,
389,
2316,
548,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
309,
261,
334,
581,
414,
63,
3576,
18,
15330,
8009,
8949,
510,
9477,
405,
374,
13,
288,
203,
5411,
2254,
5034,
283,
6397,
273,... |
./full_match/1/0x2760712092BA61e67043fE04FF3c4f54cd045ca0/sources/contracts/vaults/Drops4626.sol | @notice See {IERC4626-previewDeposit} | function previewDeposit(uint256 assets) public view returns (uint256) {
return _convertToShares(assets, MathUpgradeable.Rounding.Down);
}
| 2,955,552 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2164,
288,
45,
654,
39,
8749,
5558,
17,
12102,
758,
1724,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10143,
758,
1724,
12,
11890,
5034,
7176,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
6283,
774,
24051,
12,
9971,
16,
2361,
10784,
429,
18,
11066,
310,
18,
4164,
1769,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: MIT
/*
This is an abstract smart contract that provides an interface to the Check contract in Decentralised Domain Authentication on Ethereum blockchain.
Authors : Mohammed Sufiyan Aman, Riyanchhi Agrawal, Shakshi Pandey, Shehyaaz Khan Nayazi
*/
pragma solidity ^0.6.0;
abstract contract Ch... | this function receives the CT Log IDS and maximum merge delay from DDA contract */ | function setCTLogs(
bytes32[] calldata _ctLogIDs,
uint24 _maximum_merge_delay
) external {
maximum_merge_delay = _maximum_merge_delay;
for(uint256 i = 0; i < _ctLogIDs.length; i++){
ctLogIDs[_ctLogIDs[i]] = true;
}
}
| 15,826,176 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
445,
17024,
326,
21088,
1827,
1599,
55,
471,
4207,
2691,
4624,
628,
463,
9793,
6835,
225,
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... | [
1,
1,
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,
1268,
7777,
12,
203,
3639,
1731,
1578,
8526,
745,
892,
389,
299,
1343,
5103,
16,
203,
3639,
2254,
3247,
389,
15724,
67,
2702,
67,
10790,
203,
565,
262,
3903,
288,
203,
3639,
4207,
67,
2702,
67,
10790,
273,
389,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import ".deps/npm/@openzeppelin/contracts/token/ERC721/ERC721.sol";
interface TokenPool {
function distributePool(address) external;
}
contract StakeNFT {
//State variabble
TokenPool poolAddress;
uint private _stakingId = 0;
//con... | User must approve() this contract address via the NFT ERC721 contract before NFT can be transfered
| IERC721(token).transferFrom(msg.sender,address(this),tokenId); | 15,853,462 | [
1,
4625,
348,
7953,
560,
30,
225,
2177,
1297,
6617,
537,
1435,
333,
6835,
1758,
3970,
326,
423,
4464,
4232,
39,
27,
5340,
6835,
1865,
423,
4464,
848,
506,
7412,
329,
203,
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,
3639,
467,
654,
39,
27,
5340,
12,
2316,
2934,
13866,
1265,
12,
3576,
18,
15330,
16,
2867,
12,
2211,
3631,
2316,
548,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
///@title Indeed Contract
///@author Chandler De Kock, Iggy Phiri, Juliet Magagula
///@notice the start of the contract
contract IndeedContract{
///@notice structure containing the basic information of the property user
///@param name the name of the property holder
... | @notice mapping of users and properties - this mapping works by mapping the position the user is in their respective arrays to their address | mapping(address=> uint256) addressToUser;
| 6,382,964 | [
1,
4625,
348,
7953,
560,
30,
632,
20392,
2874,
434,
3677,
471,
1790,
300,
333,
2874,
6330,
635,
2874,
326,
1754,
326,
729,
353,
316,
3675,
17613,
5352,
358,
3675,
1758,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
9207,
2254,
5034,
13,
1758,
774,
1299,
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,
-10... |
./partial_match/1/0x20dC62D5904633cC6a5E34bEc87A048E80C92e97/sources/contracts/Lido.sol | * @notice Returns the key values related to Beacon-side @return depositedValidators - number of deposited validators @return beaconValidators - number of Lido's validators visible in the Beacon state, reported by oracles @return beaconBalance - total amount of Beacon-side Ether (sum of all the balances of Lido validato... | function getBeaconStat() public view returns (uint256 depositedValidators, uint256 beaconValidators, uint256 beaconBalance) {
depositedValidators = DEPOSITED_VALIDATORS_POSITION.getStorageUint256();
beaconValidators = BEACON_VALIDATORS_POSITION.getStorageUint256();
beaconBalance = BEACON_BAL... | 4,260,411 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
498,
924,
3746,
358,
4823,
16329,
17,
5564,
632,
2463,
443,
1724,
329,
19420,
300,
1300,
434,
443,
1724,
329,
11632,
632,
2463,
29203,
19420,
300,
1300,
434,
511,
22954,
1807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
1919,
16329,
5000,
1435,
1071,
1476,
1135,
261,
11890,
5034,
443,
1724,
329,
19420,
16,
2254,
5034,
29203,
19420,
16,
2254,
5034,
29203,
13937,
13,
288,
203,
3639,
443,
1724,
329,
19420,
273,
2030,
28284,
2056,
67,
5... |
./full_match/1/0xFa9f25e6e7065aE49705cC1A1e5a261462C2295A/sources/contracts/artist/10_jon_waltz/IAuctionHouse.sol | @notice MintType enum used to distinguish nft mint types | enum MintType { Promo, Allowlist, Auction, Raffle, PublicSale }
| 3,101,552 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
490,
474,
559,
2792,
1399,
358,
23926,
290,
1222,
312,
474,
1953,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2792,
490,
474,
559,
288,
17552,
83,
16,
7852,
1098,
16,
432,
4062,
16,
534,
7329,
298,
16,
7224,
30746,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x809c19E6444b4AB89d29b29191dbF7fAA48A1a57/sources/src/pendle/accumulator/PendleAccumulatorV2.sol | @notice Set fees reserved to claimer at every claim @param _claimerFee (100 = 1%) | function setClaimerFee(uint256 _claimerFee) external {
if (msg.sender != governance) revert NOT_ALLOWED();
if (_claimerFee > 10_000) revert FEE_TOO_HIGH();
emit ClaimerFeeSet(claimerFee, _claimerFee);
claimerFee = _claimerFee;
}
| 17,157,808 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
1656,
281,
8735,
358,
927,
69,
4417,
622,
3614,
7516,
632,
891,
389,
830,
69,
4417,
14667,
261,
6625,
273,
404,
9,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
2009,
69,
4417,
14667,
12,
11890,
5034,
389,
830,
69,
4417,
14667,
13,
3903,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
314,
1643,
82,
1359,
13,
15226,
4269,
67,
16852,
5621,
203,
3639,
309,
261,
67,
830,
69... |
pragma solidity ^0.4.0;
/**
* @title RLP
* @dev Library for RLP decoding.
* Based off of https://github.com/androlo/standard-contracts/blob/master/contracts/src/codec/RLP.sol.
*/
library RLP {
/*
* Storage
*/
uint internal constant DATA_SHORT_START = 0x80;
uint internal constant DATA_LONG_S... | * @dev Returns the next RLP item for some iterator. @param self The iterator. @return The next RLP item./ | function _next(Iterator memory self)
private
pure
returns (RLPItem memory subItem)
{
if (_hasNext(self)) {
uint ptr = self._unsafe_nextPtr;
uint itemLength = _itemLength(ptr);
subItem._unsafe_memPtr = ptr;
subItem._unsafe_length = i... | 5,463,764 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1024,
534,
14461,
761,
364,
2690,
2775,
18,
632,
891,
365,
1021,
2775,
18,
632,
2463,
1021,
1024,
534,
14461,
761,
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,
0,
0,
0,
0,
0,
0,
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,
4285,
12,
3198,
3778,
365,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
54,
48,
1102,
874,
3778,
720,
1180,
13,
203,
565,
288,
203,
3639,
309,
261,
67,
5332,
2134,
12,
2890,
3719,
288,
203,
5411,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.6;
import "./OwnableToken.sol";
import "./ERC20Interface.sol";
contract AgriUTToken is OwnableToken, ERC20Interface
{
string private _name;
string private _symbol;
uint8 private _decimals = 18;
uint256 private _totalSupply;
mapping(address => m... | Prevent transfer to 0x0 address. Use burn() instead
| require (_to != address(0x0), "ERC20: No transfer to 0x0 address"); | 5,396,822 | [
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,
261,
67,
869,
480,
1758,
12,
20,
92,
20,
3631,
315,
654,
39,
3462,
30,
2631,
7412,
358,
374,
92,
20,
1758,
8863,
15604,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/8453/0x46Cf9B499ecE1098beB860a9767e8c2c39AE747B/sources/ChainlinkPriceOracle.sol | * @notice Accrues interest and reduces reserves by transferring to admin @param reduceAmount Amount of reduction to reserves @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)/ _reduceReservesFresh emits reserve-reduction-specific logs on errors, so we don't need to. | function _reduceReserves(uint256 reduceAmount)
external
override
nonReentrant
returns (uint256)
{
accrueInterest();
return _reduceReservesFresh(reduceAmount);
}
| 16,722,404 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
15980,
86,
3610,
16513,
471,
30568,
400,
264,
3324,
635,
906,
74,
20245,
358,
3981,
632,
891,
5459,
6275,
16811,
434,
20176,
358,
400,
264,
3324,
632,
2463,
2254,
374,
33,
4768,
16,
3541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
12498,
607,
264,
3324,
12,
11890,
5034,
5459,
6275,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
4078,
86,
344,
29281,
5621... |
pragma solidity =0.6.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "./libraries/TransferHelper.sol";
import "./interfaces/IPancakeRouter02.s... | Denominator of fee Numerator of fee address of WETH address of zeroEx proxy contract to forward swaps address of referral registry that stores referral anchors address of SYA token balance threshold of SYA tokens which actives feeless swapping address that receives protocol fees percentage of fees that will be paid as... | contract FloozRouter is Ownable, Pausable, ReentrancyGuard {
using SafeMath for uint256;
using LibBytesV06 for bytes;
event SwapFeeUpdated(uint16 swapFee);
event ReferralRegistryUpdated(address referralRegistry);
event ReferralRewardRateUpdated(uint16 referralRewardRate);
event ReferralsActivat... | 600,723 | [
1,
4625,
348,
7953,
560,
30,
225,
22453,
26721,
434,
14036,
6805,
7385,
434,
14036,
1758,
434,
678,
1584,
44,
1758,
434,
3634,
424,
2889,
6835,
358,
5104,
1352,
6679,
1758,
434,
1278,
29084,
4023,
716,
9064,
1278,
29084,
22941,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
478,
383,
11142,
8259,
353,
14223,
6914,
16,
21800,
16665,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
10560,
2160,
58,
7677,
364,
1731,
31,
203,
203,
565,
871,
12738,... |
./partial_match/5/0x4D3495005E14c0AB9f3C0F80876c4152CE3D0F83/sources/contracts/testnet/LDPRewarder.sol | * @notice Returns the total unclaimed rewards accrued by tokens held by `account`. @param account The address of the account for which the unclaimed rewards will be calculated @return accruedRewards The total unclaimed rewards of the tokens held by the specified account/ Get the number of tokens owned by the specified ... | function accountRevenues(address account)
external
view
returns (uint256 accruedRewards)
{
uint256 numOwned = NFT.balanceOf(account);
for (uint256 i; i < numOwned; ) {
accruedRewards += _getNftRevenues_idw(
_rewards,
NFT.tokenOf... | 16,866,830 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
2078,
6301,
80,
4581,
329,
283,
6397,
4078,
86,
5957,
635,
2430,
15770,
635,
1375,
4631,
8338,
632,
891,
2236,
1021,
1758,
434,
326,
2236,
364,
1492,
326,
6301,
80,
4581,
329,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2236,
10070,
2104,
281,
12,
2867,
2236,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
4078,
86,
5957,
17631,
14727,
13,
203,
565,
288,
203,
3639,
2254,
5034,
818,
5460,
329,
273,
423,
4464,
18... |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarvest;
uint256 maxDebtPerHarvest;
uint256 lastReport;
uin... | Send all of our Curve pool tokens to be deposited | uint256 _toInvest = balanceOfWant();
| 236,441 | [
1,
4625,
348,
7953,
560,
30,
225,
2479,
777,
434,
3134,
22901,
2845,
2430,
358,
506,
443,
1724,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
2254,
5034,
389,
869,
3605,
395,
273,
11013,
951,
59,
970,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
/**
* @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 of tokens owned by `... | explained in detail here: https:www.youtube.com/watch?v=dQw4w9WgXcQ | function _changeOwnership(uint256 tokenId, address to) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] ... | 8,014,730 | [
1,
4625,
348,
7953,
560,
30,
19765,
329,
316,
7664,
2674,
30,
2333,
30,
5591,
18,
31749,
18,
832,
19,
7585,
35,
90,
33,
72,
53,
91,
24,
91,
29,
59,
75,
60,
71,
53,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
389,
3427,
5460,
12565,
12,
11890,
5034,
1147,
548,
16,
1758,
358,
13,
2713,
5024,
288,
203,
202,
202,
2867,
3410,
273,
4232,
39,
27,
5340,
18,
8443,
951,
12,
2316,
548,
1769,
203,
202,
202,
67,
5771,
1345,
5912,
12,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "./PentasNFT.sol";
contract Marketplace is Initializable, ContextUpgradeable, OwnableUpgradeable {
/**
* @dev Pentas NFT contract
*/
PentasNFT private _pentasNFT;
/**
* @dev To map tokenId to price
*/
mapping(uint256 => uint256) priva... | * @dev Purchase a token. @param tokenId Token ID./ Check for approval Not allow to purchase own token Selling price must be bigger than 0 Payment should be more than the asking price Royalty infomation based on EIP-2981 Royalty payment Seller earnings after deduct royalty and fee | function purchase(uint256 tokenId) external payable {
require(
_pentasNFT.getApproved(tokenId) == address(this),
"Marketplace: Require owner approval"
);
require(
_pentasNFT.ownerOf(tokenId) != _msgSender(),
"Marketplace: Token is owned by the caller"
);
require(
_t... | 12,545,737 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26552,
279,
1147,
18,
632,
891,
1147,
548,
3155,
1599,
18,
19,
2073,
364,
23556,
2288,
1699,
358,
23701,
4953,
1147,
348,
1165,
310,
6205,
1297,
506,
18983,
2353,
374,
12022,
1410,
506,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23701,
12,
11890,
5034,
1147,
548,
13,
3903,
8843,
429,
288,
203,
565,
2583,
12,
203,
1377,
389,
84,
319,
345,
50,
4464,
18,
588,
31639,
12,
2316,
548,
13,
422,
1758,
12,
2211,
3631,
203,
1377,
315,
3882,
24577,
30,
... |
./full_match/1/0x0EBB2B76FBdcc3a636b652fd3769154b5C196249/sources/contracts2/CSPLGuildPoolV2.sol | ギルドトークンごとの引き出し可能な量 全体の総和×割合-これまで引き出した量 | function getGuildStockWithdrawableBalance(uint256 _guildTokenId) public view returns (uint256) {
guildAsset.isValidGuildStock(_guildTokenId);
uint16 _guildType = guildAsset.getGuildType(_guildTokenId);
(uint256 shareRate, uint256 decimal) = guildAsset.getShareRateWithDecimal(_guildTokenId);
uint256 m... | 8,294,344 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
164,
229,
111,
164,
230,
109,
164,
230,
236,
164,
230,
235,
164,
230,
125,
164,
229,
112,
164,
230,
116,
164,
228,
247,
164,
228,
106,
164,
228,
111,
166,
125,
248,
164,
228,
240,
166,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
7162,
680,
17821,
1190,
9446,
429,
13937,
12,
11890,
5034,
389,
75,
680,
1345,
548,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
15488,
6672,
18,
26810,
43,
680,
17821,
24899,
75,
680,
1345,
548,
1769,
203... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functio... | * @dev Airdrops NFTs to the list of addresses provided @param addresses List of airdrop recepients/ | function airdrop(address[] memory addresses) public onlyOwner {
require(
tokenSupply.current() + addresses.length <= totalSaleSupply,
"FuDaoVerseDAN: Max Supply Reached!"
);
for (uint256 i; i < addresses.length; i++) {
tokenSupply.increment();
... | 13,707,994 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
432,
6909,
16703,
423,
4464,
87,
358,
326,
666,
434,
6138,
2112,
632,
891,
6138,
987,
434,
279,
6909,
1764,
2637,
84,
5828,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
279,
6909,
1764,
12,
2867,
8526,
3778,
6138,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
1147,
3088,
1283,
18,
2972,
1435,
397,
6138,
18,
2469,
1648,
2078,
30746,
3088,
1283,
16,
203,
5411,
315,
42,
89,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
// ----------------------------------------------------------------------------
// 'TELE' token governance smart contract
//
// Symbol : TELE
// Name : Telefy
// Max Total Circulating supply: 1000000000
// Decimals : 18
//
//
//
// (c) by Telefy T... | ---------------------------------------------------------------------------- @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but also transferring `value` wei to `target`. _Available since v3.1._ ---------------------------------------------------------------------------- | function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return
functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
| 1,214,744 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
632,
5206,
17795,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
20294,
68,
915,
1477,
68,
6487,
1496,
2546,
906,
74,
20245,
1375,
1132,
68,
732,
77,
358,
1375,
329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
445,
26356,
620,
12,
203,
202,
202,
2867,
1018,
16,
203,
202,
202,
3890,
3778,
501,
16,
203,
202,
202,
11890,
5034,
460,
203,
202,
13,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
202,
202,
2463,
203,
1082,
202,
915,
... |
pragma solidity >=0.4.22 <0.6.0;
// Represents the contract 'get truncate <01/01/2020 00:00:00> or one zero'
contract EuroOption {
// A struct representing an or-choice
struct OrChoice {
// Whether or not the or-choice has been set
bool set;
// The or-choice (true is the first sub-cont... | Updates the contract balance Must be at or past the horizon for get to acquire sub-contract If or-choice is true, acquire one | function update() public {
require(
acquired,
"The contract must be acquired before updating."
);
require(
!fullyUpdated,
"The contract must not be fully-updated when updating."
);
require(
orChoice.set,
... | 7,310,316 | [
1,
4625,
348,
7953,
560,
30,
225,
15419,
326,
6835,
11013,
6753,
506,
622,
578,
8854,
326,
366,
20648,
364,
336,
358,
10533,
720,
17,
16351,
971,
578,
17,
11569,
353,
638,
16,
10533,
1245,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1435,
1071,
288,
203,
3639,
2583,
12,
203,
5411,
20598,
16,
203,
5411,
315,
1986,
6835,
1297,
506,
20598,
1865,
9702,
1199,
203,
3639,
11272,
203,
3639,
2583,
12,
203,
5411,
401,
4095,
7381,
16,
203,
5411,
315,
19... |
pragma solidity ^0.4.23;
// File: contracts/BytesLib.sol
library BytesLib {
function concat(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bytes memory) {
bytes memory tempBytes;
assembly {
// Get a location of some free memory and store it in tempBytes as
... | Get a location of some free memory and store it in tempBytes as Solidity does for memory variables. The first word of the slice result is potentially a partial word read from the original array. To read it, we calculate the length of that partial word and start copying that many bytes into the array. The first word we... | function slice(bytes memory _bytes, uint _start, uint _length) internal pure returns (bytes memory) {
require(_bytes.length >= (_start + _length));
bytes memory tempBytes;
assembly {
switch iszero(_length)
case 0 {
tempBytes := mload(0x40)
... | 13,049,351 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
279,
2117,
434,
2690,
4843,
3778,
471,
1707,
518,
316,
1906,
2160,
487,
348,
7953,
560,
1552,
364,
3778,
3152,
18,
1021,
1122,
2076,
434,
326,
2788,
563,
353,
13935,
279,
4702,
2076,
855,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2788,
12,
3890,
3778,
389,
3890,
16,
2254,
389,
1937,
16,
2254,
389,
2469,
13,
2713,
225,
16618,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
2583,
24899,
3890,
18,
2469,
1545,
261,
67,
1937,
397,
389,
2469,
10019,
203,
... |
./full_match/420/0x78eca5875784F564664E66A18B33848AB00bA656/sources/contracts/shared/upgrade/UpgradeBeaconController.sol | * @title UpgradeBeaconController @notice Set as the controller of UpgradeBeacon contract(s), capable of changing their stored implementation address. @dev This implementation is a minimal version inspired by 0age's implementation:/ TODO: upgrade to `ProposedOwnable` ============ Events ============ ============ Externa... | contract UpgradeBeaconController is Ownable {
event BeaconUpgraded(address indexed beacon, address implementation);
pragma solidity 0.8.15;
import {UpgradeBeacon} from "./UpgradeBeacon.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Address} from "@openzeppelin/contracts/utils/Add... | 13,226,607 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
17699,
1919,
16329,
2933,
632,
20392,
1000,
487,
326,
2596,
434,
17699,
1919,
16329,
6835,
12,
87,
3631,
22863,
434,
12770,
3675,
4041,
4471,
1758,
18,
632,
5206,
1220,
4471,
353,
279,
1674... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17699,
1919,
16329,
2933,
353,
14223,
6914,
288,
203,
203,
225,
871,
4823,
16329,
1211,
19305,
12,
2867,
8808,
29203,
16,
1758,
4471,
1769,
203,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
3600,
31,
203,
5666,
288,
1... |
./full_match/56/0x526f6E8ada6d0ec42Bd9dd985c2c171d3EB97f84/sources/Ballswapper router02.sol | returns sorted token addresses, used to handle return values from pairs sorted in this order | library BallswapV1Library {
using SafeMath for uint;
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'BallswapV1Library: IDENTICAL_ADDRESSES');
(token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB... | 3,228,533 | [
1,
4625,
348,
7953,
560,
30,
225,
1135,
3115,
1147,
6138,
16,
1399,
358,
1640,
327,
924,
628,
5574,
3115,
316,
333,
1353,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
605,
454,
22270,
58,
21,
9313,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
203,
565,
445,
1524,
5157,
12,
2867,
1147,
37,
16,
1758,
1147,
38,
13,
2713,
16618,
1135,
261,
2867,
1147,
20,
16,
1758,
1147,
21... |
./full_match/4/0xbf4b80A8d18A62A1ba83402b31668E89127784Ab/sources/SnakesHaveLegs.sol | _____ _ _____ __ | __| ___ ___ | |_ ___ ___ | | | ___ _ _ ___ | | ___ ___ ___ |__ || || .'|| '_|| -_||_ -| | || .'|| | || -_| | |__ | -_|| . ||_ -| |_____||_|_||__,||_,_||___||___| |__|__||__,| \_/ |___| |_____||___||_ ||___| ... | contract SnakesHaveLegs is ERC721, Ownable {
using Counters for Counters.Counter;
using Colours for bytes3;
Counters.Counter private _tokenIdCounter;
address payable public constant recipient = payable(0x77737a65C296012C67F8c7f656d1Df81827c9541);
uint256 public constant limit = 888;
uint256 p... | 12,499,245 | [
1,
4625,
348,
7953,
560,
30,
282,
389,
7198,
5411,
389,
7734,
389,
7198,
10402,
1001,
571,
282,
1001,
96,
19608,
225,
19608,
571,
571,
67,
225,
19608,
225,
19608,
282,
571,
225,
571,
225,
571,
19608,
225,
389,
389,
225,
19608,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18961,
3223,
17944,
1682,
564,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
1450,
1558,
4390,
364,
1731,
23,
31,
203,
203,
565,
9354,
87,
18,
4789,
3238,... |
pragma solidity ^0.4.24;
// File: contracts\utils\SafeMath.sol
/**
* @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 c) {
if (... | player address => pId
| mapping(address => uint) public addrXpId; | 6,511,454 | [
1,
4625,
348,
7953,
560,
30,
225,
7291,
1758,
516,
293,
548,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
13,
1071,
3091,
60,
84,
548,
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,
... |
./partial_match/1/0x449962b884D2F818edb5d197E8572b42b6De99Ef/sources/FRS.sol | /Concludes the previous contest if needed | function withdrawForDay(uint256 day) external{
updateDay();
uint256 amountWon=_withdrawForDay(day,currentDayIndex,msg.sender);
syncToken._mint(msg.sender,amountWon);
Function for users to withdraw rewards for a single day.
}
| 9,319,584 | [
1,
4625,
348,
7953,
560,
30,
342,
442,
8993,
326,
2416,
466,
395,
309,
3577,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1290,
4245,
12,
11890,
5034,
2548,
13,
3903,
95,
203,
565,
1089,
4245,
5621,
203,
565,
2254,
5034,
3844,
59,
265,
33,
67,
1918,
9446,
1290,
4245,
12,
2881,
16,
2972,
4245,
1016,
16,
3576,
18,
15330,
1769,
2... |
./partial_match/1/0xFf6000a85baAc9c4854fAA7155e70BA850BF726b/sources/src/XXYYZZMint.sol | * @dev Check payment and quantity validation – quantityRequested for payment, quantityAvailable for updating the number of minted tokens, which may be different @param quantityRequested The number of tokens requested by the user, which must be paid for @return The new number of minted tokens/ this can be unchecked... | function _checkMintAndIncrementNumMinted(uint256 quantityRequested) internal returns (uint256) {
if (block.timestamp > MAX_MINT_CLOSE_TIMESTAMP) {
revert MintClosed();
}
_validatePayment(MINT_PRICE, quantityRequested);
unchecked {
newAmount = _numMinted + uin... | 3,952,367 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2073,
5184,
471,
10457,
3379,
225,
163,
227,
246,
10457,
11244,
364,
5184,
16,
10457,
5268,
364,
9702,
1377,
326,
1300,
434,
312,
474,
329,
2430,
16,
1492,
2026,
506,
3775,
632,
891,
1045... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
49,
474,
1876,
10798,
2578,
49,
474,
329,
12,
11890,
5034,
10457,
11244,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
2629,
18,
5508,
405,
4552,
67,
49,
3217,
67,
13384,
67,
17201,
13,
28... |
./full_match/137/0x21a1D92d3F837e875e0BBBBA749a7909266dbdE7/sources/Contract_Deploy/Mainnet/boltr-audit-paladin/MasterChef.sol | * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement on the return value: the return value is optional (but if data is returned, it must not be false). @param token The token targeted by the call. @param data The call data (encoded using abi.encode or one of ... | function _callOptionalReturn(IKRC20 token, bytes memory data) private {
bytes memory returndata = address(token).functionCall(data, "SafeKRC20: low-level call failed");
if (returndata.length > 0) {
require(abi.decode(returndata, (bool)), "SafeKRC20: KRC20 operation did not succeed");
... | 4,797,977 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
467,
1938,
815,
279,
348,
7953,
560,
3551,
17,
2815,
745,
261,
77,
18,
73,
18,
279,
6736,
445,
745,
358,
279,
6835,
3631,
25744,
310,
326,
12405,
603,
326,
327,
460,
30,
326,
327,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
1991,
6542,
990,
12,
45,
47,
11529,
3462,
1147,
16,
1731,
3778,
501,
13,
3238,
288,
203,
203,
3639,
1731,
3778,
327,
892,
273,
1758,
12,
2316,
2934,
915,
1477,
12,
892,
16,
315,
9890,
47,
11529,
3462,
30,
4587,
... |
//Address: 0x51da145cd7b6e6bd8b334d6a5e663dee1d8937fa
//Contract name: Vitaluck
//Balance: 0.045 Ether
//Verification Date: 1/26/2018
//Transacion Count: 8
// CODE STARTS HERE
pragma solidity ^0.4.18;
/*
_ _ _ _
| | | | | | | |
| | ... | To track the current winner | address currentWinningAddress;
| 2,576,225 | [
1,
4625,
348,
7953,
560,
30,
225,
2974,
3298,
326,
783,
5657,
1224,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
783,
18049,
2093,
1887,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xE29A865298180140c5957b1D6AE7620a94e797f7/sources/CitizensOfHumania.sol | * Do not allow calls from other contracts./ | modifier noBots() {
require(msg.sender == tx.origin, "Humanians: No bots");
_;
}
| 15,534,069 | [
1,
4625,
348,
7953,
560,
30,
380,
2256,
486,
1699,
4097,
628,
1308,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1158,
6522,
87,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
2229,
18,
10012,
16,
315,
28201,
19657,
30,
2631,
2512,
87,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.21;
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol';
contract MyIdol is Ownable {
/*** EVENTS ***/
event IdolBought(address owner, uint256 idolId, uint256 price);
event IdolOwnerNameChanged(uint256 _idolId, string _newOwnerName);
/*** DATA TYPES ***/
struct Ido... | 0-th idol is invalid. Only 1-101 are valid. | modifier isValidIdol(uint256 _id) {
require(0 < _id && _id < idols.length);
_;
}
| 6,354,996 | [
1,
4625,
348,
7953,
560,
30,
374,
17,
451,
612,
355,
353,
2057,
18,
5098,
404,
17,
15168,
854,
923,
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,
4908,
548,
355,
12,
11890,
5034,
389,
350,
13,
288,
203,
377,
202,
6528,
12,
20,
411,
389,
350,
597,
389,
350,
411,
612,
3528,
18,
2469,
1769,
203,
377,
202,
67,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
./full_match/1/0xc9d7bd1Fad7D5621DdA20335818E9575Ae07Ea03/sources/project_/contracts/CrowdsaleExt.sol | Address early participation whitelist status changed | event Whitelisted(address addr, bool status, uint256 minCap, uint256 maxCap);
| 2,910,926 | [
1,
4625,
348,
7953,
560,
30,
225,
5267,
11646,
30891,
367,
10734,
1267,
3550,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
3497,
7523,
329,
12,
2867,
3091,
16,
1426,
1267,
16,
2254,
5034,
1131,
4664,
16,
2254,
5034,
943,
4664,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.13;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division o... | Minimum to get 10% Bonus Tokens
| uint256 public constant PRE_SALE_MIN_ETHER = 1 ether; | 5,841,210 | [
1,
4625,
348,
7953,
560,
30,
225,
23456,
358,
336,
1728,
9,
605,
22889,
13899,
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,
225,
2254,
5034,
1071,
5381,
7071,
67,
5233,
900,
67,
6236,
67,
1584,
3891,
273,
404,
225,
2437,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IOwnable {
function policy() external view returns (address);
function renounceManagement() external;
function pushManagement(address newOwner_) external;
function pullManagement() external;
}
contract Ownable is IOwnable {
ad... | stores bond information for depositors
| mapping(address => Bond) public bondInfo; | 82,168 | [
1,
4625,
348,
7953,
560,
30,
225,
9064,
8427,
1779,
364,
443,
1724,
1383,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
2867,
516,
605,
1434,
13,
1071,
8427,
966,
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,... |
./full_match/43114/0xD316e1E95399a7aa03B2686Bc71A0Cf25128fF8C/sources/contracts/Strategy.sol | 4% Platform fee (PLATFORM_FEE / MAX_FEE)
| uint256 public PLATFORM_FEE = 40; | 4,516,337 | [
1,
4625,
348,
7953,
560,
30,
1059,
9,
11810,
14036,
261,
6253,
789,
4983,
67,
8090,
41,
342,
4552,
67,
8090,
41,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
453,
12190,
4983,
67,
8090,
41,
273,
8063,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2020-07-05
*/
/*
___________________________________________________________________
_ _ ______
| | / / /
--|-/|-/-----__---/----__----__---_--_----__-... | * Internal function to which distributes fund./ | function payForLevel(uint _level, address _user) internal {
address referer;
address referer1;
address referer2;
address referer3;
address referer4;
if(_level == 1 || _level == 6) {
referer = userAddressByID[userInfos[_user].referrerID];
}
... | 13,074,631 | [
1,
4625,
348,
7953,
560,
30,
380,
3186,
445,
358,
1492,
1015,
1141,
284,
1074,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
1290,
2355,
12,
11890,
389,
2815,
16,
1758,
389,
1355,
13,
2713,
288,
203,
3639,
1758,
18068,
31,
203,
3639,
1758,
18068,
21,
31,
203,
3639,
1758,
18068,
22,
31,
203,
3639,
1758,
18068,
23,
31,
203,
3639,
1758,
... |
pragma solidity ^0.4.24;
import "openzeppelin-zos/contracts/ownership/Ownable.sol";
import "openzeppelin-zos/contracts/token/ERC721/MintableERC721Token.sol";
import "tavern/contracts/TavernQuestReward.sol";
import "tavern/contracts/Tavern.sol";
contract BananoToken is MintableERC721Token, TavernQuestReward {
// ... | Sets token metadata | function _setTokenMetadata(uint256 _tokenId, string _metadata) internal {
require(exists(_tokenId));
tokenMetadata[_tokenId] = _metadata;
}
| 6,352,497 | [
1,
4625,
348,
7953,
560,
30,
225,
11511,
1147,
1982,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
1345,
2277,
12,
11890,
5034,
389,
2316,
548,
16,
533,
389,
4165,
13,
2713,
288,
203,
1377,
2583,
12,
1808,
24899,
2316,
548,
10019,
203,
1377,
1147,
2277,
63,
67,
2316,
548,
65,
273,
389,
4165,
31,
203,
565,... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* @dev Based on code by OpenZeppelin: https://github.com/OpenZeppelin/zeppelin-solidity/blob/v1.4.0/contracts/math/SafeMath.sol
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal ... | * @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./ | contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function Ownable() public {
owner = msg.sender;
}
function transferOwnership(add... | 12,740,517 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
632,
5206,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
565,
1758,
1071,
3410,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
565,
9606,
1338,
5541,
1435,
288,
203,
3639,
2583,
... |
./partial_match/1/0x1f58BeE325eef1393BeF925c8eD042586f0964Dd/sources/ZuniReward.sol | * @author Balancer Labs @title Configurable Rights Pool Factory - create parameterized smart pools @dev Rights are held in a corresponding struct in ConfigurableRightsPool Index values are as follows: 0: canPauseSwapping - can setPublicSwap back to false after turning it on by defau... | contract CRPFactory {
mapping(address => bool) private _isCrp;
event LogNewCrp(address indexed caller, address indexed pool);
function newCrp(
address factoryAddress,
ConfigurableRightsPool.PoolParams calldata poolParams,
RightsManager.Rights calldata rights
) external re... | 16,004,328 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
4161,
605,
5191,
511,
5113,
632,
2649,
29312,
534,
10730,
8828,
7822,
300,
752,
17629,
13706,
16000,
632,
5206,
534,
10730,
854,
15770,
316,
279,
4656,
1958,
316,
29312,
18464,
2864,
1377,
3340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6732,
52,
1733,
288,
203,
203,
565,
2874,
12,
2867,
516,
1426,
13,
3238,
389,
291,
12893,
84,
31,
203,
203,
203,
565,
871,
1827,
1908,
12893,
84,
12,
2867,
8808,
4894,
16,
1758,
8808,
2845,
1769,
203,
203,
203,
565,
445,... |
./full_match/3/0x19eBb244B3F6BEb79631684b09B900284Ea3a651/sources/contracts/DNT1.sol | changeOwnerAddress, only available for the current Owner. | function changeOwnerAddress(address newOwner) public returns(bool){
require(hasRole(Owner,msg.sender), "Caller is not Owner");
if(msg.sender == ownerAddress)
{
ownerAddress = newOwner;
return true;
}
return false;
}
| 8,274,938 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
5541,
1887,
16,
1338,
2319,
364,
326,
783,
16837,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
5541,
1887,
12,
2867,
394,
5541,
13,
1071,
1135,
12,
6430,
15329,
203,
540,
203,
3639,
2583,
12,
5332,
2996,
12,
5541,
16,
3576,
18,
15330,
3631,
315,
11095,
353,
486,
16837,
8863,
203,
3639,
309,
12,
3576,
18,
... |
./partial_match/42/0x77458A789f3063015ccC027534c2fD54e92DfE0d/sources/RewardEscrowV2.sol | ERROR: type should be string, got " https:docs.pynthetix.io/contracts/RewardEscrow" | contract BaseRewardEscrowV2 is Owned, IRewardEscrowV2, LimitedSetup(8 weeks), MixinResolver {
using SafeMath for uint;
using SafeDecimalMath for uint;
mapping(address => mapping(uint256 => VestingEntries.VestingEntry)) public vestingSchedules;
mapping(address => uint256[]) public accountVestingEntryID... | 8,943,394 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
8532,
18,
84,
878,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
17631,
1060,
6412,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3360,
17631,
1060,
6412,
492,
58,
22,
353,
14223,
11748,
16,
15908,
359,
1060,
6412,
492,
58,
22,
16,
7214,
329,
7365,
12,
28,
17314,
3631,
490,
10131,
4301,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450... |
pragma solidity ^0.4.16;
// SafeMath Taken From FirstBlood
contract SafeMath {
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint a, uint b) internal returns (uint) {
assert(b > 0);
... | @dev Finalizing the Open-Sale for Token Generation Event. 15% of Eth will be kept in contract to provide liquidity | function finalizeOpenSale() onlyOwner {
require((!openSaleCompleted) && (totalTokens >= tokenGenerationMin));
openSaleCompleted = true;
end_block = block.number;
reserveBalance = safeDiv(safeMul(totalTokens, percentageETHReserve), 100000);
var withdrawalBalance = safeSub(this... | 6,571,402 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
16269,
6894,
326,
3502,
17,
30746,
364,
3155,
23234,
2587,
18,
4711,
9,
434,
512,
451,
903,
506,
16555,
316,
6835,
358,
5615,
4501,
372,
24237,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12409,
3678,
30746,
1435,
1338,
5541,
288,
203,
3639,
2583,
12443,
5,
3190,
30746,
9556,
13,
597,
261,
4963,
5157,
1545,
1147,
13842,
2930,
10019,
203,
3639,
1696,
30746,
9556,
273,
638,
31,
203,
3639,
679,
67,
2629,
273,... |
/**
......''''......
.',:cldxxkOOO0kddk0OOOkxxdlc:;'.
.,:lxkO00000000000k, .;k00000000000Okxl:,.
.;ldO0000000000000000O; :O0000000000000000Odl;.
... | * @dev This contract implements a proxy that is upgradeable by an admin. clashing], which can potentially be used in an attack, this contract uses the things that go hand in hand: 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if that call matches one of t... | contract TransparentUpgradeableProxy is UpgradeableProxy {
constructor(address _logic, address _admin, bytes memory _data) payable UpgradeableProxy(_logic, _data) {
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_setAdmin(_admin);
}
event AdminChanged(addre... | 6,982,357 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
6835,
4792,
279,
2889,
716,
353,
8400,
429,
635,
392,
3981,
18,
927,
961,
310,
6487,
1492,
848,
13935,
506,
1399,
316,
392,
13843,
16,
333,
6835,
4692,
326,
9198,
716,
1960,
948,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
2938,
10784,
429,
3886,
353,
17699,
429,
3886,
288,
203,
565,
3885,
12,
2867,
389,
28339,
16,
1758,
389,
3666,
16,
1731,
3778,
389,
892,
13,
8843,
429,
17699,
429,
3886,
24899,
28339,
16,
389,
892,
13,
288,
203,
3639... |
pragma solidity 0.5.17;
import "../interfaces/proxy/IProxyActionsStorage.sol";
import "../interfaces/token/IERC20.sol";
import "../interfaces/token/IWETH.sol";
import "../interfaces/dss/IVat.sol";
/*
The actions to be performed by user's proxies.
User's proxies delegatecall into this contract.
This cont... | /solium-disable-next-line error-reasonsolium-disable-next-line error-reasonsolium-disable-next-line error-reasonsolium-disable-next-line error-reasonsolium-disable-next-line error-reasonsolium-disable-next-line error-reason | function setup() external {
require(msg.sender == proxyManager, "ProxyActions / setup: not allowed");
version = 1;
IVat vat = store.vat();
address daiJoin = address(store.tokenJoins("DAI"));
address flap = address(store.flap());
address flop = address(store.flop());... | 2,574,288 | [
1,
4625,
348,
7953,
560,
30,
342,
18281,
5077,
17,
8394,
17,
4285,
17,
1369,
555,
17,
10579,
18281,
5077,
17,
8394,
17,
4285,
17,
1369,
555,
17,
10579,
18281,
5077,
17,
8394,
17,
4285,
17,
1369,
555,
17,
10579,
18281,
5077,
17,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
1435,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
2889,
1318,
16,
315,
3886,
6100,
342,
3875,
30,
486,
2935,
8863,
203,
203,
3639,
1177,
273,
404,
31,
203,
203,
3639,
467,
15706,
17359,
273,
1707,
18,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-02
*/
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.7.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.send... | * @title ERC721BridgeToken @dev template token contract for bridged ERC721 tokens./ | contract ERC721BridgeToken is ERC721, IBurnableMintableERC721Token {
address public bridgeContract;
constructor(
string memory _name,
string memory _symbol,
address _bridgeContract
) ERC721(_name, _symbol) {
bridgeContract = _bridgeContract;
}
modifier onlyBridge()... | 6,568,998 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
27,
5340,
13691,
1345,
632,
5206,
1542,
1147,
6835,
364,
324,
1691,
2423,
4232,
39,
27,
5340,
2430,
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,
16351,
4232,
39,
27,
5340,
13691,
1345,
353,
4232,
39,
27,
5340,
16,
23450,
321,
429,
49,
474,
429,
654,
39,
27,
5340,
1345,
288,
203,
565,
1758,
1071,
10105,
8924,
31,
203,
203,
565,
3885,
12,
203,
3639,
533,
3778,
389,
529,
... |
./full_match/4/0x4767dd7aD034c6Db23363ac9F32cDBD5449C3424/sources/contracts/band/utils/Equation.sol | @dev Initialize equation by array of opcodes/values in prefix order. Array is read as if it is the *pre-order* traversal of the expression tree. Init should only be called when the equation is not yet initialized. Limit expression length to < 256 to make sure gas cost is managable. Get the node's value. Only applicabl... | function init(Node[] storage self, uint256[] calldata _expressions) external {
require(self.length == 0);
require(_expressions.length < 256);
for (uint8 idx = 0; idx < _expressions.length; ++idx) {
uint256 opcode = _expressions[idx];
require(opcode < OPCODE_INVALID);
Node memory node;
... | 674,033 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9190,
15778,
635,
526,
434,
1061,
7000,
19,
2372,
316,
1633,
1353,
18,
1510,
353,
855,
487,
309,
518,
353,
326,
380,
1484,
17,
1019,
14,
15940,
434,
326,
2652,
2151,
18,
4378,
1410,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
907,
8526,
2502,
365,
16,
2254,
5034,
8526,
745,
892,
389,
21480,
13,
3903,
288,
203,
565,
2583,
12,
2890,
18,
2469,
422,
374,
1769,
203,
565,
2583,
24899,
21480,
18,
2469,
411,
8303,
1769,
203,
565,
364,
26... |
// SPDX-License-Identifier: AGPLv3
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
import "../BaseStrategy.sol";
import "../../../../interfaces/UniSwap/IUni.sol";
import "../../../../interfaces/IHarvest.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/m... | * @title Yearn Base Strategy @author yearn.finance @notice BaseStrategy implements all of the required functionality to interoperate closely with the Vault contract. This contract should be inherited and the abstract methods implemented to adapt the Strategy to the particular needs it has to create a return. Of sp... | abstract contract BaseStrategy {
using SafeMath for uint256;
using SafeERC20 for IERC20;
string public metadataURI;
function apiVersion() public pure returns (string memory) {
return "0.3.2";
}
function name() external virtual view returns (string memory);
function delegatedAssets... | 1,149,184 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1624,
73,
1303,
3360,
19736,
632,
4161,
677,
73,
1303,
18,
926,
1359,
632,
20392,
225,
3360,
4525,
4792,
777,
434,
326,
1931,
14176,
358,
1554,
4063,
340,
225,
1219,
1786,
93,
598,
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,
17801,
6835,
3360,
4525,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
533,
1071,
1982,
3098,
31,
203,
203,
565,
445,
12051,
1435,
1071,
16618... |
//Address: 0xacb677dacac7c7b1ee4131cd071c89bad6c852f4
//Contract name: ExoTownToken
//Balance: 0 Ether
//Verification Date: 11/26/2017
//Transacion Count: 0
// CODE STARTS HERE
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
contract SafeMath {
... | @dev Constructor of ICO. Requires address of icoManager, @param _icoManager Address of ICO manager | function ExoTownIco(address _icoManager) {
require(_icoManager != 0x0);
exotownToken = new ExoTownToken(this);
icoManager = _icoManager;
}
| 1,808,451 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11417,
434,
467,
3865,
18,
16412,
1758,
434,
277,
2894,
1318,
16,
632,
891,
389,
10764,
1318,
5267,
434,
467,
3865,
3301,
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,
1312,
83,
56,
995,
45,
2894,
12,
2867,
389,
10764,
1318,
13,
288,
203,
3639,
2583,
24899,
10764,
1318,
480,
374,
92,
20,
1769,
203,
203,
3639,
431,
352,
995,
1345,
273,
394,
1312,
83,
56,
995,
1345,
12,
2211,
1769,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
pragma experimental ABIEncoderV2;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addit... | * @notice Require that the specified auction exists/ | function createAuction(
uint256 tokenId,
address tokenContract,
uint256 duration,
uint256 reservePrice,
address payable curator,
uint8 curatorFeePercentages,
address auctionCurrency,
uint256 startTime
) external returns (uint256);
function set... | 6,104,653 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12981,
716,
326,
1269,
279,
4062,
1704,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
37,
4062,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1758,
1147,
8924,
16,
203,
3639,
2254,
5034,
3734,
16,
203,
3639,
2254,
5034,
20501,
5147,
16,
203,
3639,
1758,
8843,
429,
662,
639,
16,
203,
3639,
2... |
// SPDX-License-Identifier: MIT
/**
* @title CargoCrowdsale
* @author: Muhammad Zaryab Khan
* Developed By: BLOCK360
* Date: November 5, 2020
* Version: 1.0
*/
pragma solidity 0.5.5;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `accou... | * @dev Extend crowdsale. @param newClosingTime Crowdsale closing time/ solhint-disable-next-line max-line-length | function extendTime(uint256 newClosingTime) external onlyOwner {
require(!hasClosed(), "TimedCrowdsale: already closed");
require(
newClosingTime > _closingTime,
"TimedCrowdsale: new closing time is before current closing time"
);
emit TimedCrowdsaleExtended(... | 10,363,000 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
27686,
276,
492,
2377,
5349,
18,
632,
891,
394,
15745,
950,
385,
492,
2377,
5349,
7647,
813,
19,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
943,
17,
1369,
17,
2469,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2133,
950,
12,
11890,
5034,
394,
15745,
950,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
5332,
7395,
9334,
315,
19336,
39,
492,
2377,
5349,
30,
1818,
4375,
8863,
203,
3639,
2583,
12,
203,
5411,
394,
15745,
950,
... |
// SPDX-License-Identifier: MIT
// Etalon Token https://www.etalontoken.org was created by the World's Engineers https://www.worldsengineers.org
// Etalon is a wealth accumulating token, your personal free pocket bank.
pragma solidity >=0.4.22 <=0.8.7;
//import "hardhat/console.sol";
//import "./Pricing.sol";
impo... | the sell limit while selling is pulled down
| event OnDecrementSellLimit(uint256 maxFallPercent); | 2,522,769 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
357,
80,
1800,
1323,
357,
2456,
353,
30741,
2588,
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,
565,
871,
2755,
23326,
475,
55,
1165,
3039,
12,
11890,
5034,
943,
42,
454,
8410,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.6.0;
interface ERC20 {
function totalSupply() external view returns (uint256 supply);
function balanceOf(address _owner) external view returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
function transferFrom(address _from, a... | use the proxy to execute calldata _data on contract _codeset new cache | contract DSProxyCache {
mapping(bytes32 => address) cache;
function execute(bytes memory _code, bytes memory _data)
public
payable
virtual
returns (address target, bytes32 response);
function execute(address _target, bytes memory _data)
public
payable
... | 337,147 | [
1,
4625,
348,
7953,
560,
30,
225,
999,
326,
2889,
358,
1836,
745,
892,
389,
892,
603,
6835,
389,
7000,
278,
394,
1247,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8678,
3886,
1649,
288,
203,
565,
2874,
12,
3890,
1578,
516,
1758,
13,
1247,
31,
203,
203,
565,
445,
1836,
12,
3890,
3778,
389,
710,
16,
1731,
3778,
389,
892,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
5024,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wr... | * @notice slash a keeper for downtime @param keeper the address being slashed/ | function down(address keeper) external {
require(keepers[keeper], "Keep3r::down: keeper not registered");
require(lastJob[keeper].add(DOWNTIME) < now, "Keep3r::down: keeper safe");
uint _slash = bonds[keeper].mul(DOWNTIMESLASH).div(BASE);
bonds[keeper] = bonds[keeper].sub(_slash);
... | 2,099,246 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9026,
279,
417,
9868,
364,
22095,
29367,
632,
891,
417,
9868,
326,
1758,
3832,
9026,
329,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2588,
12,
2867,
417,
9868,
13,
3903,
288,
203,
3639,
2583,
12,
10102,
414,
63,
79,
9868,
6487,
315,
11523,
23,
86,
2866,
2378,
30,
417,
9868,
486,
4104,
8863,
203,
3639,
2583,
12,
2722,
2278,
63,
79,
9868,
8009,
1289,... |
pragma solidity ^0.5.17;
contract emergencyJudgement {
address public judger1;
address public judger2;
address public judger3;
mapping(bytes => bool) public signatureUsed;
uint256 public judgeTime;
constructor(address _judger1, address _judger2, address _judger3) public {
... | 所有要被签名的信息,先打包哈希,再加前缀总哈希 | function _getHashOfInputParams(uint value, address to) public view returns(bytes32) {
return prefixedHash;
}
| 12,680,174 | [
1,
4625,
348,
7953,
560,
30,
225,
167,
236,
227,
167,
255,
236,
169,
104,
228,
169,
100,
109,
168,
260,
127,
166,
243,
240,
168,
253,
231,
165,
128,
99,
167,
228,
112,
176,
125,
239,
166,
232,
235,
167,
236,
246,
166,
239,
232... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
2310,
951,
1210,
1370,
12,
11890,
460,
16,
1758,
358,
13,
1071,
1476,
1135,
12,
3890,
1578,
13,
288,
203,
3639,
327,
12829,
2310,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/40/0xaF4f7aA301bD49Af118f32493f96FE51e0219661/sources/contracts/MISOMarket.sol | * @notice Sets the current template ID for any type. @param _templateType Type of template. @param _templateId The ID of the current template for that type/ | function setCurrentTemplateId(uint256 _templateType, uint256 _templateId) external {
require(
accessControls.hasAdminRole(msg.sender),
"MISOMarket: Sender must be admin"
);
require(auctionTemplates[_templateId] != address(0), "MISOMarket: incorrect _templateId");
... | 9,553,120 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
783,
1542,
1599,
364,
1281,
618,
18,
632,
891,
389,
3202,
559,
1412,
434,
1542,
18,
632,
891,
389,
3202,
548,
1021,
1599,
434,
326,
783,
1542,
364,
716,
618,
19,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12589,
2283,
548,
12,
11890,
5034,
389,
3202,
559,
16,
2254,
5034,
389,
3202,
548,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
2006,
16795,
18,
5332,
4446,
2996,
12,
3576,
18,
15330,
3631,
203,
5411,
315,
30062,
1872... |
./full_match/1/0x9FA77507bE1C99a9C03936AD0E18F0F8152acB84/sources/contracts/backloop/Leverager.sol | * @dev Calculates the amount to be borrowed from Aave v3. @param asset The asset to be borrowed. @param amount The origin amount of DAI supplied by the user. @param multiplier Multiplier for flashloan amount. Determines how much will be borrowed in relation to the user's input./ sDAI share that deposited to Aave v3 | function getBorrowAmount(
address asset,
uint256 amount,
uint256 multiplier
) external view returns (uint256) {
uint256 flashLoanAmount = amount.percentMul(multiplier);
uint256 depositAmount = IERC4626(SDAI).previewDeposit(amount + flashLoanAmount);
return _calcBorrowAmount(asset, depositAm... | 3,128,557 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
326,
3844,
358,
506,
29759,
329,
628,
432,
836,
331,
23,
18,
632,
891,
3310,
1021,
3310,
358,
506,
29759,
329,
18,
632,
891,
3844,
1021,
4026,
3844,
434,
463,
18194,
4580,
635,
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,
225,
445,
2882,
15318,
6275,
12,
203,
565,
1758,
3310,
16,
203,
565,
2254,
5034,
3844,
16,
203,
565,
2254,
5034,
15027,
203,
225,
262,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
9563,
1504,
304,
6275,
273,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
interface IERC20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
function name() external view returns (string memory);
function getOw... | setup ratio divisors based on dev's chosen ratiossetup _limits | constructor () {
if (block.chainid == 1)
routerAddress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
else if (block.chainid == 56)
routerAddress = 0x10ED43C718714eb63d5aA57B78B54704E256024E;
else if (block.chainid == 97)
routerAddress = 0x9Ac64Cc6e4415144... | 88,361 | [
1,
4625,
348,
7953,
560,
30,
3875,
7169,
3739,
291,
1383,
2511,
603,
4461,
1807,
10447,
25706,
8401,
389,
14270,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1832,
288,
203,
3639,
309,
261,
2629,
18,
5639,
350,
422,
404,
13,
7010,
5411,
4633,
1887,
273,
374,
92,
27,
69,
26520,
72,
4313,
5082,
38,
24,
71,
42,
25,
5520,
27,
5520,
72,
42,
22,
39,
25,
72,
37,
7358,
24,
... |
// File: contracts/ACE/validators/swap/SwapABIEncoder.sol
pragma solidity >=0.5.0 <0.6.0;
/**
* @title SwapABIEncoder
* @author AZTEC
* @dev Library to ABI encode the output of a Swap proof verification
* Don't include this as an internal library. This contract uses a static memory table to cache
* elliptic curv... | * @dev Calculate the keccak256 hash of the commitments for both input notes and output notes. This is used both as an input to validate the challenge `c` and also to generate pseudorandom relationships between commitments for different outputNotes, so that we can combine them into a single multi-exponentiation for the ... | function hashCommitments(notes, n) {
let index := add(add(notes, mul(i, 0xc0)), 0x60)
calldatacopy(add(0x300, mul(i, 0x80)), index, 0x80)
for { let i := 0 } lt(i, n) { i := add(i, 0x01) } {
}
| 1,785,171 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9029,
326,
417,
24410,
581,
5034,
1651,
434,
326,
3294,
1346,
364,
3937,
810,
10913,
471,
876,
10913,
18,
1220,
353,
1399,
3937,
487,
392,
810,
358,
1954,
326,
12948,
1375,
71,
68,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5411,
445,
1651,
5580,
1346,
12,
12903,
16,
290,
13,
288,
203,
7734,
2231,
770,
519,
527,
12,
1289,
12,
12903,
16,
14064,
12,
77,
16,
374,
6511,
20,
13,
3631,
374,
92,
4848,
13,
203,
7734,
745,
892,
3530,
12,
1289,
12,
20,
... |
./full_match/137/0x8e140cCe7b194a507960cc746E83dAf296B0CEF7/sources/contracts/helpers/TupleHelpers.sol | * @notice Extract a bytes32 encoded static type from a tuple @dev Use with .rawValue() in the weiroll planner @param tuple The bytes encoded tuple @param index The index of the value to be extracted/ let offset := mul(add(index, 1), 32) return(add(tuple, offset), 32) | function extractElement(bytes memory tuple, uint256 index) public pure returns (bytes32) {
assembly {
return(add(tuple, mul(add(index, 1), 32)), 32)
}
}
| 3,755,658 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8152,
279,
1731,
1578,
3749,
760,
618,
628,
279,
3193,
632,
5206,
2672,
598,
263,
1899,
620,
1435,
316,
326,
732,
77,
2693,
29236,
632,
891,
3193,
1021,
1731,
3749,
3193,
632,
891,
770,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2608,
1046,
12,
3890,
3778,
3193,
16,
2254,
5034,
770,
13,
1071,
16618,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
19931,
288,
203,
5411,
327,
12,
1289,
12,
8052,
16,
14064,
12,
1289,
12,
1615,
16,
404,
3631,
3847,
13... |
./full_match/1/0x2e8920950677F8545B4Ef80315f48E161CB02D1C/sources/contracts/crowdfund/CollectionBatchBuyCrowdfund.sol | This is to prevent this crowdfund from finalizing a loss if nothing was attempted to be bought (ie. `tokenIds` is empty) or all NFTs were bought for free. | if (totalEthUsed == 0) revert NothingBoughtError();
| 3,105,686 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
358,
5309,
333,
276,
492,
2180,
1074,
628,
727,
6894,
279,
8324,
309,
5083,
1703,
18121,
358,
506,
800,
9540,
261,
1385,
18,
1375,
2316,
2673,
68,
353,
1008,
13,
578,
777,
423,
4464,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
4963,
41,
451,
6668,
422,
374,
13,
15226,
13389,
13809,
9540,
668,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity ^0.6.12;
import "./Interfaces/LiquidityMathModelInterface.sol";
import "./MToken.sol";
import "./Utils/ErrorReporter.sol";
import "./Utils/ExponentialNoError.sol";
import "./Utils/AssetHelpers.sol";
import "./Moartroller.sol";
import "./... | * @dev Used by an message sending account to recall its voting delegates @return success of reverting delegation to owner/ | function recallVotingDelegate() public returns (bool) {
return _revertVotingDelegationToOwner(_msgSender());
}
| 11,818,607 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10286,
635,
392,
883,
5431,
2236,
358,
20895,
2097,
331,
17128,
22310,
632,
2463,
2216,
434,
15226,
310,
23595,
358,
3410,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20895,
58,
17128,
9586,
1435,
1071,
1135,
261,
6430,
13,
288,
203,
565,
327,
389,
266,
1097,
58,
17128,
26945,
774,
5541,
24899,
3576,
12021,
10663,
203,
225,
289,
203,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
/**
MIT License
Copyright (c) 2021 Woonkly OU
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use,... | * @dev Get if liquidy providers exist/ | function _StakeExist(uint256 StakeID) internal view returns (bool) {
return (_Stakes[StakeID].flag == 1);
}
| 13,111,159 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
309,
4501,
26595,
93,
9165,
1005,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
510,
911,
4786,
12,
11890,
5034,
934,
911,
734,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
261,
67,
510,
3223,
63,
510,
911,
734,
8009,
6420,
422,
404,
1769,
203,
565,
289,
203,
203,
2,
-100,
-10... |
./full_match/1/0x3a32BecC41115b4Aa8bD8614301AeBB9bB11258b/sources/@lyrafinance/protocol/contracts/libraries/BlackScholes.sol | * @dev Compute the absolute value of `val`. @param val The number to absolute value./ | function _abs(int val) internal pure returns (uint) {
return uint(val < 0 ? -val : val);
}
| 9,672,157 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8155,
326,
4967,
460,
434,
1375,
1125,
8338,
632,
891,
1244,
1021,
1300,
358,
4967,
460,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
5113,
12,
474,
1244,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
565,
327,
2254,
12,
1125,
411,
374,
692,
300,
1125,
294,
1244,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// File: SafeMath.sol
pragma solidity >=0.4.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the st... | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.timestamp <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = totalStaked;
if (lpSupply == 0) {
pool.lastRewardBlock = block.timestamp;
return;... | 13,591,130 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
5508,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
./full_match/1/0x6f9140097Ab6278B41Cf9597a597030207b8D75d/sources/lib/seaport-core/src/lib/BasicOrderFulfiller.sol | Determine if the transfer is to be performed via a conduit. Use free memory pointer as calldata offset for the conduit call. Utilize assembly to place each argument in free memory. Retrieve the free memory pointer and use it as the offset. Write ConduitInterface.execute.selector to memory. Write the offset to the Cond... | if (conduitKey != bytes32(0)) {
uint256 callDataOffset;
assembly {
callDataOffset := mload(FreeMemoryPointerSlot)
mstore(callDataOffset, Conduit_execute_signature)
mstore(
add(callDataOffset, Conduit_execute_ConduitTr... | 9,676,214 | [
1,
4625,
348,
7953,
560,
30,
225,
10229,
309,
326,
7412,
353,
358,
506,
9591,
3970,
279,
356,
2544,
305,
18,
2672,
4843,
3778,
4407,
487,
745,
892,
1384,
364,
326,
356,
2544,
305,
745,
18,
3564,
554,
19931,
358,
3166,
1517,
1237,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
309,
261,
591,
2544,
305,
653,
480,
1731,
1578,
12,
20,
3719,
288,
203,
5411,
2254,
5034,
745,
751,
2335,
31,
203,
203,
5411,
19931,
288,
203,
7734,
745,
751,
2335,
519,
312,
945,
12,
9194,
6031,
4926,
8764,
13,
203,
203,... |
./full_match/1/0x6f11a89d41b0cC86E05714A701462E788C989b6A/sources/contracts/interfaces/app/IAppAddressProvider.sol | @title Optimised for front-end Address Provider interface | interface IAppAddressProvider {
function getDataCompressor() external view returns (address);
function getGearToken() external view returns (address);
function getWethToken() external view returns (address);
function getWETHGateway() external view returns (address);
function getPriceOracle() ext... | 9,629,267 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
19615,
5918,
364,
6641,
17,
409,
5267,
7561,
1560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
467,
3371,
1887,
2249,
288,
203,
565,
445,
4303,
16552,
280,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
7162,
2091,
1345,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
13876,
546,
1345,
1435,
... |