file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.24;
pragma experimental ABIEncoderV2;
import "./assign.sol";
contract demo is assign{
mapping(uint => uint) backrecord;
/**************用户定义空间***************/
/**************创建评估单功能类***************/
/**
* guobin
* 创建评估单基本信息
*/
function addvaluation(
string... | * guobin 将申诉订单编号分配给仲裁者/ | function appealdistribution(uint number,address appeal1,address appeal2,address appeal3,address appeal4,address appeal5) public {
_appealdistribution(number,appeal1,appeal2,appeal3,appeal4,appeal5);
_setappeal(_getcreator(number),_getassessor(number));
}
| 895,601 | [
1,
4625,
348,
7953,
560,
30,
380,
3058,
947,
267,
225,
166,
113,
233,
168,
247,
116,
169,
112,
236,
169,
111,
100,
166,
240,
248,
168,
125,
249,
166,
242,
120,
166,
235,
233,
170,
232,
240,
168,
124,
252,
165,
124,
115,
169,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7226,
287,
16279,
12,
11890,
1300,
16,
2867,
7226,
287,
21,
16,
2867,
7226,
287,
22,
16,
2867,
7226,
287,
23,
16,
2867,
7226,
287,
24,
16,
2867,
7226,
287,
25,
13,
1071,
288,
203,
3639,
389,
438,
347,
287,
16279,
12... |
pragma solidity ^0.4.24;
/* Version 1.1 */
contract Access {
struct policyRecord
{
address acp;
string URIpolicy;
uint price;
}
struct payment
{
address acp;
uint price;
string base64Hash;
}
mapping(string => policyRecord) p... | Authorization granted the Thing-publisher relationship verification*/ | function authorize2(string publicKey, string token, string URIresource, string base64Esk, string base64hashPreimage) external {
payment storage record = pendingPayments[token];
require (msg.sender == record.acp);
bytes32 h = keccak256(abi.encodePacked(base64hashPreimage));
msg.sender... | 5,461,905 | [
1,
4625,
348,
7953,
560,
30,
225,
10234,
17578,
326,
25803,
17,
26018,
5232,
11805,
5549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12229,
22,
12,
1080,
12085,
16,
533,
1147,
16,
533,
3699,
3146,
16,
533,
1026,
1105,
6705,
79,
16,
533,
1026,
1105,
2816,
1386,
2730,
13,
3903,
288,
203,
3639,
5184,
2502,
1409,
273,
4634,
23725,
63,
2316,
15533,
203,
... |
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256... | minimum investment in wei (=10 ether)
| minInvestment = 10 ether; | 15,082,018 | [
1,
4625,
348,
7953,
560,
30,
5224,
2198,
395,
475,
316,
732,
77,
225,
261,
33,
2163,
225,
2437,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1131,
3605,
395,
475,
273,
1728,
225,
2437,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
contract PetShelter is AccessControl, VRFConsumerBase {
// Create roles
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_... | * @dev Create a Pet, Only Owner=Admin./ | function createPet(string memory _name, uint16 _idbreed, uint16 _age, uint16 _idphoto ) public {
require(bytes(_name).length > 0, "A valid Name is required!");
require(_age > 0, "A valid Age is required!");
require(_idphoto > 0, "A valid Photo ID is required!");
require(hasRo... | 12,711,639 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1788,
279,
453,
278,
16,
5098,
16837,
33,
4446,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
52,
278,
12,
1080,
3778,
389,
529,
16,
2254,
2313,
389,
350,
6073,
329,
16,
2254,
2313,
389,
410,
16,
2254,
2313,
389,
350,
17232,
262,
1071,
288,
203,
3639,
2583,
12,
3890,
24899,
529,
2934,
2469,
405,
374,
16,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import "./libraries/TransferHelper.sol";
import "./interfaces/external/IWETH9.sol";
import "./interfaces/IUnipilotVault.sol";
import "./interfaces/IUnipilotStrategy.sol";
import "./interfaces/IUnipilotFactory.sol";
import "./libraries/UniswapLiq... | @dev Rounds tick down towards negative infinity so that it's a multiple of `tickSpacing`. | function floor(int24 tick, int24 tickSpacing)
internal
pure
returns (int24)
{
int24 compressed = tick / tickSpacing;
if (tick < 0 && tick % tickSpacing != 0) compressed--;
return compressed * tickSpacing;
}
| 5,781,904 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
534,
9284,
4024,
2588,
23248,
6092,
27272,
1427,
716,
518,
1807,
279,
3229,
434,
1375,
6470,
18006,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6346,
12,
474,
3247,
4024,
16,
509,
3247,
4024,
18006,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
474,
3247,
13,
203,
565,
288,
203,
3639,
509,
3247,
8968,
273,
4024,
342,
4024,
18006,
31,
203,
3639,
... |
./partial_match/1/0x027bC3A29990aAED16F65a08C8cc3A92E0AFBAA4/sources/RARESwapRouter.sol | refund dust eth, if any | uint bal = amounts[0].add(adminFeeDeduct);
| 4,019,018 | [
1,
4625,
348,
7953,
560,
30,
225,
16255,
302,
641,
13750,
16,
309,
1281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
324,
287,
273,
30980,
63,
20,
8009,
1289,
12,
3666,
14667,
20563,
853,
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,
-1... |
pragma solidity 0.6.1;
pragma experimental ABIEncoderV2;
import "../lib/Ownable.sol";
import "../ZeroOne/IZeroOne.sol";
/**
* @title CustomToken
* @dev Contract implements custom tokens for ZeroOne
*/
contract CustomToken is Ownable {
mapping (address => uint256) private balances;
mapping (address => map... | * @dev removes project from list can called only by project, which will be removed @param _project address of ZeroOne project/ | function removeFromProjects(
address _project
)
public
onlyZeroOne
{
require(isProjectAddress(_project), "Provided address is not in projects list");
uint index = projectsIndexes[_project];
address lastProjectInList = projects[projects.length - 1];
... | 13,050,860 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7157,
1984,
628,
666,
848,
2566,
1338,
635,
1984,
16,
1492,
903,
506,
3723,
632,
891,
389,
4406,
1758,
434,
12744,
3335,
1984,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22386,
15298,
12,
203,
3639,
1758,
389,
4406,
203,
565,
262,
7010,
3639,
1071,
7010,
3639,
1338,
7170,
3335,
203,
565,
288,
203,
3639,
2583,
12,
291,
4109,
1887,
24899,
4406,
3631,
315,
19254,
1758,
353,
486,
316,
10137,
... |
./full_match/42/0xe10d9eC768e23832380003196035Da910291341D/sources/browser/bet.sol | [ dunno, up, even, down ] What is the result of the game?
| GameResult result; | 16,281,828 | [
1,
4625,
348,
7953,
560,
30,
225,
306,
302,
318,
2135,
16,
731,
16,
5456,
16,
2588,
308,
18734,
353,
326,
563,
434,
326,
7920,
35,
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... | [
1,
1,
1,
1,
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,
3639,
14121,
1253,
563,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//Address: 0xd009bfa851a31b08343a68d824107e2b813a0fb7
//Contract name: MintableToken
//Balance: 0 Ether
//Verification Date: 3/18/2018
//Transacion Count: 71
// CODE STARTS HERE
pragma solidity ^0.4.18;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, ui... | * @dev Function to stop minting new tokens. @return True if the operation was successful./ | function finishMinting() onlyOwnerOrManager canMint public returns (bool) {
mintingFinished = true;
MintFinished();
return true;
}
| 14,108,777 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
2132,
312,
474,
310,
394,
2430,
18,
632,
2463,
1053,
309,
326,
1674,
1703,
6873,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4076,
49,
474,
310,
1435,
1338,
5541,
1162,
1318,
848,
49,
474,
1071,
1135,
261,
6430,
13,
288,
203,
565,
312,
474,
310,
10577,
273,
638,
31,
203,
565,
490,
474,
10577,
5621,
203,
565,
327,
638,
31,
203,
225,
289,
2... |
pragma solidity ^0.5.11;
// import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
// import "./SafeMath.sol";
import "./DomainRegistry.sol";
/**
* @title DomainDAO - Equity based voting system managed by domain investo... | * @dev Returns the amount of shares an investor owns, as well as the total shares in the domain. Used as numerator and denominator/ | function getInvestorEquity(address investor) public view returns(uint, uint) {
uint shares = investorShares[investor];
return(shares, totalShares);
}
| 15,824,123 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
3844,
434,
24123,
392,
2198,
395,
280,
29065,
16,
487,
5492,
487,
326,
2078,
24123,
316,
326,
2461,
18,
10286,
487,
16730,
471,
15030,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
336,
3605,
395,
280,
13142,
560,
12,
2867,
2198,
395,
280,
13,
1071,
1476,
1135,
12,
11890,
16,
2254,
13,
288,
203,
565,
2254,
24123,
273,
2198,
395,
280,
24051,
63,
5768,
395,
280,
15533,
203,
565,
327,
12,
30720,
16... |
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c... | * @title ForgeCDN @dev Contract to mint FORGE token./ | contract ForgeCDN is ERC20{
using SafeMath for uint256;
string public constant name = "ForgeCDN";
string public constant symbol = "FORGE";
uint8 public constant decimals = 18;
event Transfer(address indexed from, address indexed to, uint256 value);
event Burn(address indexed burner, uint256 va... | 4,803,343 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
2457,
908,
39,
8609,
632,
5206,
13456,
358,
312,
474,
12108,
7113,
1147,
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,... | [
1,
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,
16351,
2457,
908,
39,
8609,
353,
4232,
39,
3462,
95,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
1071,
5381,
508,
273,
315,
1290,
908,
39,
8609,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
7473,
... |
// SPDX-License-Identifier: MIT AND GPL-3.0 AND AGPLv3
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSup... | * @notice Sell reward tokens (crv + cvx)/ | function _sellBasic() private {
uint256 crv = IERC20(CRV).balanceOf(address(this));
if (crv > 0) {
IUni(dex[0]).swapExactTokensForTokens(
crv,
uint256(0),
_getPath(CRV, TO_WANT),
address(this),
block.timestam... | 9,874,769 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
348,
1165,
19890,
2430,
261,
3353,
90,
397,
8951,
92,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
87,
1165,
8252,
1435,
3238,
288,
203,
3639,
2254,
5034,
4422,
90,
273,
467,
654,
39,
3462,
12,
5093,
58,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
3353,
90,
405,
374,
13,
288,
203,
5411,
... |
./partial_match/1/0x3139059D0b23e88c5BA7E17cDC21cd6A860CB8bE/sources/ElonTweetCoin.sol | * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), reverting with custom message when dividing by zero. CAUTION: This function is deprecated because it requires allocating memory for the error message unnecessarily. For custom revert reasons use {tryMod}. Counterpart to Solidity'... | function mod(
uint a,
uint b,
string memory errorMessage
) internal pure returns (uint) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
| 4,246,207 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
10022,
434,
3739,
10415,
2795,
9088,
12321,
18,
261,
22297,
3571,
26109,
3631,
15226,
310,
598,
1679,
883,
1347,
3739,
10415,
635,
3634,
18,
6425,
13269,
30,
1220,
445,
353,
6849... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
681,
12,
203,
3639,
2254,
279,
16,
203,
3639,
2254,
324,
16,
203,
3639,
533,
3778,
9324,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
22893,
288,
203,
5411,
2583,
12,
70,
405,
374,
16,
9324,
1769,... |
./full_match/5/0x00899df26C5cBF8861b16d518BCb6fF59D5a4b55/sources/project_/contracts/Base.sol | from token ID to monster | {
mapping (uint256 => Monster) monsters;
constructor() {
_pause();
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
)
internal
override(ERC721, ERC721Enumerable)
{
super._beforeTokenTransfer(from, to, tokenId);
... | 11,586,126 | [
1,
4625,
348,
7953,
560,
30,
225,
628,
1147,
1599,
358,
6921,
8190,
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,
95,
203,
565,
2874,
261,
11890,
5034,
516,
9041,
8190,
13,
6921,
334,
414,
31,
203,
203,
565,
3885,
1435,
288,
203,
3639,
389,
19476,
5621,
203,
565,
289,
203,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,... |
./full_match/5/0x9ccDD0Bb22aA073Be7f4021D9bfa89fdD7BfAbdF/sources/project_/contracts/V3SwapRouter.sol | @dev Performs a single exact output swap @notice `refundETH` should be called at very end of all swaps find and replace recipient addresses it's technically possible to not receive the full output amount, so if no price limit has been specified, require this possibility away | function exactOutputInternal(
uint256 amountOut,
address recipient,
uint160 sqrtPriceLimitX96,
SwapCallbackData memory data
) private returns (uint256 amountIn) {
if (recipient == Constants.MSG_SENDER) recipient = msg.sender;
else if (recipient == Constants.ADDRES... | 1,959,315 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
27391,
279,
2202,
5565,
876,
7720,
632,
20392,
1375,
1734,
1074,
1584,
44,
68,
1410,
506,
2566,
622,
8572,
679,
434,
777,
1352,
6679,
1104,
471,
1453,
8027,
6138,
518,
1807,
17734,
6478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5565,
1447,
3061,
12,
203,
3639,
2254,
5034,
3844,
1182,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
16874,
5700,
5147,
3039,
60,
10525,
16,
203,
3639,
12738,
2428,
751,
3778,
501,
203,
565,
262,
3238,
1135,
261,
11... |
pragma solidity ^0.5.0;
/**
* @title Math
* @dev Assorted math operations
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the small... | * Change KYC status/ | function onKYC() public {
require(msg.sender == _whitelistAdmin);
require(!_KYC);
_KYC = true;
}
| 1,012,637 | [
1,
4625,
348,
7953,
560,
30,
380,
7576,
1475,
61,
39,
1267,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
603,
47,
61,
39,
1435,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
20409,
4446,
1769,
203,
3639,
2583,
12,
5,
67,
47,
61,
39,
1769,
203,
3639,
389,
47,
61,
39,
273,
638,
31,
203,
565,
289,
203,
203,... |
./full_match/42220/0xEEdDB10353768f8C54320E84f5104Ae765b0419f/sources/project_/contracts/strategies/AaveStrategy.sol | Deposits MATIC into the pool | wethGateway.depositETH{ value: address(this).balance }(address(lendingPool), address(this), REFERRAL_CODE);
| 16,348,758 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
1282,
490,
11781,
1368,
326,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
341,
546,
5197,
18,
323,
1724,
1584,
44,
95,
460,
30,
1758,
12,
2211,
2934,
12296,
289,
12,
2867,
12,
80,
2846,
2864,
3631,
1758,
12,
2211,
3631,
2438,
6553,
54,
1013,
67,
5572,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity =0.6.6;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) exter... | update the cumulative price for the observation at the current timestamp. each observation is updated at most once per epoch period. | function update(address tokenA, address tokenB) external returns (bool) {
address pair = UniswapV2Library.pairFor(factory, tokenA, tokenB);
return _update(pair);
}
| 1,114,415 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
326,
15582,
6205,
364,
326,
13853,
622,
326,
783,
2858,
18,
1517,
13853,
353,
3526,
622,
4486,
3647,
1534,
7632,
3879,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
12,
2867,
1147,
37,
16,
1758,
1147,
38,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
3082,
273,
1351,
291,
91,
438,
58,
22,
9313,
18,
6017,
1290,
12,
6848,
16,
1147,
37,
16,
1147,
38,
1769,
203,
3639,
... |
// SPDX-License-Identifier: GPL-3.0
// solhint-disable no-empty-blocks
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./XPower.sol";
import "./XPowerNftStaked.sol";
/**
* Treasury to claim (MoE) tokens for staked XPowerNft(s).
*/
contract MoeTreasury is Ownable {
/** (Burn... | * Treasury to claim (MoE) tokens for staked XPowerNft(s)./ | contract MoeTreasury is Ownable {
XPower private _moe;
XPowerNftStaked private _nftStaked;
uint256[] private _alphas = [0, 1, 1, 0];
uint256[] private _gammas = [0, 1, 1, 0];
mapping(address => mapping(uint256 => uint256)) private _claimed;
mapping(uint256 => uint256) private _claimedTotal;
pra... | 5,507,225 | [
1,
4625,
348,
7953,
560,
30,
380,
399,
266,
345,
22498,
358,
7516,
261,
16727,
41,
13,
2430,
364,
384,
9477,
1139,
13788,
50,
1222,
12,
87,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14987,
73,
56,
266,
345,
22498,
353,
14223,
6914,
288,
203,
565,
1139,
13788,
3238,
389,
8683,
73,
31,
203,
565,
1139,
13788,
50,
1222,
510,
9477,
3238,
389,
82,
1222,
510,
9477,
31,
203,
565,
2254,
5034,
8526,
3238,
389,
... |
./partial_match/1/0x9Ae4Ed3bF7a3a529Afbc126b4541c0D636D455f6/sources/EasyTrade.sol | @dev Withdraw WETH @param amount Amount of ether to unwrap. | function withdrawWeth(uint amount) internal {
EtherToken(WETH_ADDR).withdraw(amount);
}
| 3,889,447 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3423,
9446,
678,
1584,
44,
632,
891,
3844,
16811,
434,
225,
2437,
358,
11014,
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... | [
1,
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,
225,
445,
598,
9446,
59,
546,
12,
11890,
3844,
13,
2713,
288,
7010,
565,
512,
1136,
1345,
12,
59,
1584,
44,
67,
14142,
2934,
1918,
9446,
12,
8949,
1769,
203,
225,
289,
203,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.17;
import "../openzeppelin/SafeMath.sol";
import "../interfaces/IERC20.sol";
/**
* @title A holding contract for Sovryn Ethereum Pool to accept SOV Token.
* @author Franklin Richards - powerhousefrank@protonmail.com
* @notice You can use this contract for deposit of SOV tokens for some tim... | * @notice Withdraws token from the contract by User. @dev Only works after the contract state is in Withdraw./ | function withdrawTokens() public checkRelease checkStatus(Status.Withdraw) {
uint256 amount = userBalances[msg.sender];
userBalances[msg.sender] = 0;
bool txStatus = SOV.transfer(msg.sender, amount);
require(txStatus, "Token transfer was not successful. Check receiver address.");
... | 2,546,707 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
87,
1147,
628,
326,
6835,
635,
2177,
18,
632,
5206,
5098,
6330,
1839,
326,
6835,
919,
353,
316,
3423,
9446,
18,
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,
598,
9446,
5157,
1435,
1071,
866,
7391,
866,
1482,
12,
1482,
18,
1190,
9446,
13,
288,
203,
3639,
2254,
5034,
3844,
273,
729,
38,
26488,
63,
3576,
18,
15330,
15533,
203,
3639,
729,
38,
26488,
63,
3576,
18,
15330,
65,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/**
* @dev TestGhostMarketERC721_V2 for upgrade.
*/
import "../contracts/ERC721PresetMinterPauserAutoIdUpgradeableCustom.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/ac... | * @dev get a NFT current locked content view tracker/ | function getCurrentLockedContentViewTracker(uint256 tokenId)
external
view
returns (uint256)
{
return _lockedContentViewTracker[tokenId];
}
| 1,777,565 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
336,
279,
423,
4464,
783,
8586,
913,
1476,
9745,
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,
202,
915,
5175,
8966,
1350,
1767,
8135,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
202,
202,
2463,
389,
15091,
1350,
1767,
8135,
63,
2316,
548,
155... |
pragma solidity ^0.5.7;
// Wesion Early Investors Fund
// Freezed till 2020-06-30 23:59:59, (timestamp 1593532799).
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/
library SafeMath {
/**
* @dev Adds two unsigned integers, reverts on overflow... | * @dev Withdraw or Donate by any amount/ | function () external payable {
if (now > _till && _investors[msg.sender] > 0) {
assert(Wesion.transfer(msg.sender, _investors[msg.sender]));
_investors[msg.sender] = 0;
}
if (msg.value > 0) {
emit Donate(msg.sender, msg.value);
}
}
| 2,528,889 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
578,
7615,
340,
635,
1281,
3844,
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... | [
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,
1832,
3903,
8843,
429,
288,
203,
3639,
309,
261,
3338,
405,
389,
88,
737,
597,
389,
5768,
395,
1383,
63,
3576,
18,
15330,
65,
405,
374,
13,
288,
203,
5411,
1815,
12,
59,
281,
285,
18,
13866,
12,
3576,
18,
15330,
16,... |
./partial_match/1/0xD7bE38C17a254ad397039d2F794EcE9E19cd15eA/sources/BabyShina.sol | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract BabyShina is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public charityWallet;
address public marketing... | 15,886,738 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
24383,
1555,
15314,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
82... |
./full_match/1/0x337d5fC36B329187B2586136B3127881b8E67C4C/sources/contracts/VibraniumrvUSD.sol | VUSD totalSupply is 0: assume that shares correspond to VUSD 1-to-1 | function mintSwap(address _account, uint _amount) external {
require(msg.sender == vUSD, "INPUT_WRONG");
uint256 sharesAmount = getSharesByMintedVUSD(_amount);
if (sharesAmount == 0) {
sharesAmount = _amount;
}
esvibMinter.refreshReward(_account);
_mintSha... | 4,994,797 | [
1,
4625,
348,
7953,
560,
30,
776,
3378,
40,
2078,
3088,
1283,
353,
374,
30,
6750,
716,
24123,
4325,
358,
776,
3378,
40,
404,
17,
869,
17,
21,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12521,
12,
2867,
389,
4631,
16,
2254,
389,
8949,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
331,
3378,
40,
16,
315,
15934,
67,
7181,
7390,
8863,
203,
3639,
2254,
5034,
24123,
6275,
273,
1322,
... |
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { ERC721Enumerable } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
// import "@openzeppelin/contracts/access/Owna... | TODO allow proposing match as invader
| m.defender = msg.sender; | 5,445,478 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
1699,
450,
24014,
845,
487,
2198,
1143,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
312,
18,
536,
2345,
273,
1234,
18,
15330,
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... |
./full_match/80001/0x99801c84821F3a807f32b446FB77A593f3db2229/sources/contracts/SonicaERC721DelayedReveal.sol | @dev Valid who can change the Claim Conditions. | function _canSetClaimConditions()
internal
view
virtual
returns (bool)
{
return hasRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
| 5,579,481 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2364,
10354,
848,
2549,
326,
18381,
23261,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4169,
694,
9762,
8545,
1435,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
28335,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
1769,
203,
... |
./full_match/77/0xFAD08dB559EB7D84AD58C9dfDe1A8fC8Acb33f65/sources/contracts/rollup/facets/AbsRollupUserFacet.sol | * @notice Inform the rollup that the challenge between the given stakers is completed @dev completeChallenge isn't pausable since in flight challenges should be allowed to complete or else they could be forced to timeout @param winningStaker Address of the winning staker @param losingStaker Address of the losing staker... | function completeChallenge(address winningStaker, address losingStaker)
external
override
whenNotPaused
{
require(msg.sender == inChallenge(winningStaker, losingStaker), "WRONG_SENDER");
completeChallengeImpl(winningStaker, losingStaker);
}
| 5,047,664 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
657,
687,
326,
5824,
416,
716,
326,
12948,
3086,
326,
864,
384,
581,
414,
353,
5951,
632,
5206,
3912,
18359,
5177,
1404,
6790,
16665,
3241,
316,
25187,
462,
7862,
2852,
1410,
506,
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,
3912,
18359,
12,
2867,
5657,
2093,
510,
6388,
16,
1758,
437,
2470,
510,
6388,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1347,
1248,
28590,
203,
565,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
316,
18359,
12,... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;... | * @dev transmit token for a specified address. This is owner only method and should be called using web3.js if someone is trying to buy token using bitcoin or any other altcoin. @param _to The address to transmit to. @param _value The amount to be transferred. @param _message message to log after transfer./ transfer to... | function transferManual(address _to, uint256 _value, string _message) onlyOwner public returns (bool) {
require(_to != address(0));
token.transfer(_to , _value);
TransferManual(msg.sender, _to, _value, _message);
return true;
}
| 167,341 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
23323,
1147,
364,
279,
1269,
1758,
18,
1220,
353,
3410,
1338,
707,
471,
1410,
506,
2566,
1450,
3311,
23,
18,
2924,
309,
18626,
353,
8374,
358,
30143,
1147,
1450,
25851,
578,
1281,
1308,
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,
202,
915,
7412,
25139,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
16,
533,
389,
2150,
13,
1338,
5541,
1071,
1135,
261,
6430,
13,
288,
203,
202,
202,
6528,
24899,
869,
480,
1758,
12,
20,
10019,
203,
203,
202,
202,
2316,
18,
... |
pragma solidity ^0.4.21;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal pure returns (uint) {
// ass... | * @title Basic token @dev Basic version of StandardToken, with no allowances./ | contract BasicToken is ERC20Basic {
using SafeMath for uint;
mapping(address => uint) balances;
modifier onlyPayloadSize(uint size) {
if(msg.data.length < size + 4) {
revert();
}
_;
}
modifier onlyPayloadSize(uint size) {
if(msg.data.length < size + 4) ... | 65,294 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7651,
1147,
632,
5206,
7651,
1177,
434,
8263,
1345,
16,
598,
1158,
1699,
6872,
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,
... | [
1,
1,
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,
16351,
7651,
1345,
353,
4232,
39,
3462,
8252,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
13,
324,
26488,
31,
203,
203,
565,
9606,
1338,
6110,
1225,
12,
11890,
963,
13,
288,
203,
... |
./full_match/80001/0x4bdbD516956B5C7950F1eF49d7a43D487341D82d/sources/contracts/messaging/MerkleTreeManager.sol | * @dev Initializes MerkleTreeManager instance. Sets the msg.sender as the initial permissioned/ | function __MerkleTreeManager_init(address _arborist) internal onlyInitializing {
__MerkleTreeManager_init_unchained(_arborist);
}
| 9,459,340 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10188,
3128,
31827,
2471,
1318,
791,
18,
11511,
326,
1234,
18,
15330,
487,
326,
2172,
4132,
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... | [
1,
1,
1,
1,
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,
1001,
8478,
15609,
2471,
1318,
67,
2738,
12,
2867,
389,
6779,
280,
376,
13,
2713,
1338,
29782,
288,
203,
565,
1001,
8478,
15609,
2471,
1318,
67,
2738,
67,
4384,
8707,
24899,
6779,
280,
376,
1769,
203,
225,
289,
203,
203... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.7.5;
pragma experimental ABIEncoderV2;
import {IAaveDistributionManager} from '../interfaces/IAaveDistributionManager.sol';
import {SafeMath} from '../lib/SafeMath.sol';
import {DistributionTypes} from '../lib/DistributionTypes.sol';
/**
* @title DistributionMan... | * @dev sets the state of the cooldown pause @param paused true if the cooldown needs to be paused, false otherwise/ | function setCooldownPause(bool paused) external override onlyCooldownAdmin {
_cooldownPaused = paused;
emit CooldownPauseChanged(paused);
}
| 14,847,138 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1678,
326,
919,
434,
326,
27367,
2378,
11722,
632,
891,
17781,
638,
309,
326,
27367,
2378,
4260,
358,
506,
17781,
16,
629,
3541,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
11440,
1371,
2378,
19205,
12,
6430,
17781,
13,
3903,
3849,
1338,
39,
1371,
2378,
4446,
288,
203,
565,
389,
71,
1371,
2378,
28590,
273,
17781,
31,
203,
565,
3626,
385,
1371,
2378,
19205,
5033,
12,
8774,
3668,
1769,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
/**
* @dev These functions deal with verification of ... | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 1,496 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
565,
445,
389,
3576,
751,
1435,
2713,
1476,
5024,
... |
// contracts/token/PartialCommonOwnership.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import {ERC721} from "./modules/ERC721.sol";
import {Lease} from "./modules/Lease.sol";
/// @title PartialCommonOwnership
/// @notice Extends the ERC721 standard by requiring tax payments from a token's current owne... | @notice Burns a token. @param tokenId_ ID of token to burn. Return the current owner's deposit. Burn token Delete state | function _burn(uint256 tokenId_) internal override _collectTax(tokenId_) {
_withdrawDeposit(tokenId_, depositOf(tokenId_));
ERC721._burn(tokenId_);
delete _beneficiaries[tokenId_];
delete _valuations[tokenId_];
delete _taxNumerators[tokenId_];
delete _collectionFrequencies[tokenId_];
del... | 12,994,698 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
605,
321,
87,
279,
1147,
18,
632,
891,
1147,
548,
67,
1599,
434,
1147,
358,
18305,
18,
2000,
326,
783,
3410,
1807,
443,
1724,
18,
605,
321,
1147,
2504,
919,
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,
225,
445,
389,
70,
321,
12,
11890,
5034,
1147,
548,
67,
13,
2713,
3849,
389,
14676,
7731,
12,
2316,
548,
67,
13,
288,
203,
565,
389,
1918,
9446,
758,
1724,
12,
2316,
548,
67,
16,
443,
1724,
951,
12,
2316,
548,
67,
10019,
203,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-10
*/
/**
*Submitted for verification at niranameta.com on 2021-11-09
*/
pragma solidity ^0.5.0;
contract Mnu {
// ERC20
string private _name;
string private _symbol;
uint256 private _decimals;
uint256 private _totalSupply;
mapping ... | 10_00000000.mul(10 ** uint256(18));
| _totalSupply = 1000000000000000000000000000; | 10,833,704 | [
1,
4625,
348,
7953,
560,
30,
225,
1728,
67,
12648,
18,
16411,
12,
2163,
2826,
2254,
5034,
12,
2643,
10019,
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,... | [
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,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
2787,
11706,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2020-11-24
*/
/**
*Submitted for verification at Etherscan.io on 2020-11-23
*/
/** HYPE FINANCE STAKING POOL NUMBER 3 (KING)
* 1000 TOKEN LIMIT
* 100 DAYS LOCKED PERIOD
* APY REFRESH EVERY WEEK
* PAYMENT OF DIVIDENDS EVERY SUNDAY 11:59PM EASTERN TIME
* HYPE FI... | ------------------------------------------------------------------------ Stakers can claim their pending rewards using this function ------------------------------------------------------------------------ | function CLAIMREWARD() public {
require(farmLock[msg.sender]+100 days <= block.timestamp, "Claim reward can only be done after 100 days");
if(totalDividends > stakers[msg.sender].fromTotalDividend){
uint256 owing = pendingReward(msg.sender);
owing = owing.ad... | 7,932,281 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
934,
581,
414,
848,
7516,
3675,
4634,
283,
6397,
1450,
333,
445,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
29859,
3445,
862,
21343,
1435,
1071,
288,
203,
3639,
2583,
12,
74,
4610,
2531,
63,
3576,
18,
15330,
3737,
6625,
4681,
1648,
1203,
18,
5508,
16,
315,
9762,
19890,
848,
1338,
506,
2731,
1839,
2130,
4681,
8863,
203,
540,
2... |
//
// ENCORB "Where $core meets $orb"
//
// https://twitter.com/enc_orb
//
// https://t.me/encorb
//
// ENCORB.FINANCE
pragma solidity ^0.5.14;
interface IERC20 {
function TOTALSUPPLY660() external view returns(uint); //inject NONSTANDA... | inject NONSTANDARD NAMING
| function _BURN473(address account, uint amount) internal { | 5,386,634 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
38,
8521,
24,
9036,
12,
2867,
2236,
16,
2254,
3844,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.24;
import './SafeMath.sol';
/**
* Here is an example of upgradable contract, consisting of two parts:
* - Data Contract keeps the resources (data) and is controlled by the Handler contract;
* - Handler contract (implements Handler interface) defines operations and provides services. This ... | * Handler Contract interface. Handler Contract defines bussiness related functions. Use the interface to ensure that your external services are always supported. Because of function live(), we design IHandler as an abstract contract rather than a true interface. Handler Contract is deployed as following steps: 1. Dep... | contract IHandler {
function initialize (/** Parameters */) public;
function done () external;
}
function live () pure public returns(bool) {
return true;
}
}
| 12,788,272 | [
1,
4625,
348,
7953,
560,
30,
380,
4663,
13456,
1560,
18,
4663,
13456,
11164,
324,
5567,
6336,
3746,
4186,
18,
2672,
326,
1560,
358,
3387,
716,
3433,
3903,
4028,
854,
3712,
3260,
18,
15191,
434,
445,
8429,
9334,
732,
8281,
467,
1503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1503,
288,
203,
377,
203,
565,
445,
4046,
261,
26873,
7012,
1195,
13,
1071,
31,
203,
377,
203,
565,
445,
2731,
1832,
3903,
31,
203,
377,
203,
97,
203,
565,
445,
8429,
1832,
16618,
1071,
1135,
12,
6430,
13,
288,
203,... |
./full_match/1/0x08E6c961423A09d05f80078CD3Fe9a4b4e1dbeF7/sources/browser/token/Lifetycoin.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- The contract can be initialized with a number of tokens All the tokens are... | contract Lifetycoin is ERC20Interface, Ownable {
using SafeMath for uint256;
string public symbol;
string public name;
uint8 public decimals;
uint256 public _totalSupply;
mapping(address => uint256) balances;
mapping(address => mapping(address => uint256)) allowed;
constructor(
... | 3,048,708 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
225,
1021,
6835,
848,
506,
6454,
598,
279,
1300,
434,
2430,
225,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
11695,
14369,
12645,
353,
4232,
39,
3462,
1358,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31... |
./partial_match/1/0x822Ba32d153ab854E0E4B53A1ba5366d4f073906/sources/CsprlToken.sol | set up the owner as the default admin of all roles
| _grantRole(DEFAULT_ADMIN_ROLE, owner); | 3,562,958 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
731,
326,
3410,
487,
326,
805,
3981,
434,
777,
4900,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
16243,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
3410,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/42/0xb36628385431331E3636d908237D06fB7e3308eb/sources/HodlerPool.sol | externalonlyRewardDistribution | function notifyRewardAmount(uint256 reward)
private
updateReward(address(0), 0)
{
if (block.timestamp > startTime) {
if (block.timestamp >= periodFinish) {
rewardRate = reward.div(duration);
uint256 remaining = periodFinish.sub(block.timestamp);
... | 9,086,364 | [
1,
4625,
348,
7953,
560,
30,
3903,
3700,
17631,
1060,
9003,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5066,
17631,
1060,
6275,
12,
11890,
5034,
19890,
13,
203,
3639,
3238,
203,
3639,
1089,
17631,
1060,
12,
2867,
12,
20,
3631,
374,
13,
203,
565,
288,
203,
3639,
309,
261,
2629,
18,
5508,
405,
8657,
13,
288,
203,
1850,
3... |
//Address: 0x0f9B3Fa06BC5E344491aa97596019FC55E1077A0
//Contract name: BearCrowdSale
//Balance: 0 Ether
//Verification Date: 12/29/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract ha... | CONSTANT METHODS @dev Get current exchange rate | function priceRate() public view returns (uint) {
if (startTime <= now && now < startTime + 1 years ) {
return PRICE_RATE_FIRST;
return PRICE_RATE_SECOND;
return PRICE_RATE_LAST;
assert(false);
}
return now;
}
| 6,353,258 | [
1,
4625,
348,
7953,
560,
30,
225,
24023,
10152,
55,
632,
5206,
968,
783,
7829,
4993,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6205,
4727,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
309,
261,
1937,
950,
1648,
2037,
597,
2037,
411,
8657,
397,
404,
11387,
262,
288,
203,
5411,
327,
225,
10365,
1441,
67,
24062,
67,
15354,
31,
203,
5411... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "contracts/protocol/futures/HybridFutureVault.sol";
import "contracts/interfaces/platforms/ItfToken.sol";
/**
* @title Contract for TrueFi Future
* @notice Handles the future mechanisms for tfTokens
*/
contract TrueFiFutureVault is HybridFutureVau... | * @notice Remove a delegation from one address to another @param _delegator the address delegating its future FYTs @param _receiver the address receiving the future FYTs @param _amount the of future FYTs to remove from the delegation/ | function withdrawFYTDelegationFrom(
address _delegator,
address _receiver,
uint256 _amount
) public {
require(hasRole(CONTROLLER_ROLE, msg.sender), "ERR_CALLER");
updateUserState(_delegator);
updateUserState(_receiver);
uint256 numberOfDelegations = deleg... | 158,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3581,
279,
23595,
628,
1245,
1758,
358,
4042,
632,
891,
389,
3771,
1332,
639,
326,
1758,
11158,
1776,
2097,
3563,
478,
61,
17218,
632,
891,
389,
24454,
326,
1758,
15847,
326,
3563,
478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
598,
9446,
42,
61,
56,
26945,
1265,
12,
203,
3639,
1758,
389,
3771,
1332,
639,
16,
203,
3639,
1758,
389,
24454,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
1071,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
6067... |
./full_match/1/0xBB00101b19c0b1511730aCa582fBCC3c25fE9e9e/sources/contracts/protocol/libraries/paraspace-upgradeability/BaseImmutableAdminUpgradeabilityProxy.sol | * @dev Constructor. @param admin_ The address of the admin/ | constructor(address admin_) {
_admin = admin_;
}
| 2,994,569 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
18,
632,
891,
3981,
67,
1021,
1758,
434,
326,
3981,
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,
3885,
12,
2867,
3981,
67,
13,
288,
203,
3639,
389,
3666,
273,
3981,
67,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/10/0x6a282c7E0656c3E1DAbB2fe0972e8Ea2BD109Fb3/sources/contracts/Airdrop/OngoingAirdrop.sol | helper for the dapp | function canClaim(uint256 index) external view returns (bool) {
uint256 claimedBlock = _claimed[period][index / 256];
uint256 claimedMask = (uint256(1) << uint256(index % 256));
return ((claimedBlock & claimedMask) == 0);
}
| 3,781,158 | [
1,
4625,
348,
7953,
560,
30,
225,
4222,
364,
326,
302,
2910,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
848,
9762,
12,
11890,
5034,
770,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
7516,
329,
1768,
273,
389,
14784,
329,
63,
6908,
6362,
1615,
342,
8303,
15533,
203,
3639,
2254,
5034,
7516,
329,
5796,
27... |
./full_match/1/0xf607014406bc3Fa7aAB224a85A0318b4556e9C28/sources/browser/SingleAuctionV1.sol | The address of the Cryptograph I'm administrating
| address internal myCryptograph; | 3,151,948 | [
1,
4625,
348,
7953,
560,
30,
1021,
1758,
434,
326,
22752,
8829,
467,
17784,
30162,
1776,
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,
565,
1758,
2713,
3399,
22815,
8829,
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,... |
/**
*Submitted for verification at Etherscan.io on 2021-04-19
*/
/*
⚠⚠⚠ WARNING WARNING WARNING ⚠⚠⚠
This is a TARGET contract - DO NOT CONNECT TO IT DIRECTLY IN YOUR CONTRACTS or DAPPS!
This contract has an associated PROXY that MUST be used for all integrations - this TARGET will be REPLACED in an upcoming Synthe... | ERROR: type should be string, got " https:docs.synthetix.io/contracts/source/contracts/owned" | contract Owned {
address public owner;
address public nominatedOwner;
constructor(address _owner) public {
require(_owner != address(0), "Owner address cannot be 0");
owner = _owner;
emit OwnerChanged(address(0), _owner);
}
function nominateNewOwner(address _owner) exter... | 2,341,623 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
8532,
18,
11982,
451,
278,
697,
18,
1594,
19,
16351,
87,
19,
3168,
19,
16351,
87,
19,
995,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
11748,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
12457,
7458,
5541,
31,
203,
203,
203,
203,
203,
565,
3885,
12,
2867,
389,
8443,
13,
1071,
288,
203,
3639,
2583,
24899,
8443,
480,
1758,
12,
20,
3631,... |
pragma solidity ^0.4.24;
// File: contracts/SafeMath.sol
library SafeMath {
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;
}
function div(uint256 a, uint256 b) internal pure retur... | chainID对应的链跑图ID,用来方便查找和判断跑图是否已上链 (tokenID)
| mapping (bytes32 => uint256) public chainIDToTokenID; | 7,221,602 | [
1,
4625,
348,
7953,
560,
30,
27756,
166,
112,
122,
166,
123,
247,
168,
253,
231,
170,
246,
127,
169,
120,
244,
166,
254,
127,
734,
176,
125,
239,
168,
247,
106,
167,
256,
103,
167,
249,
122,
165,
127,
128,
167,
258,
103,
167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2874,
261,
3890,
1578,
516,
2254,
5034,
13,
1071,
27756,
774,
1345,
734,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x279cE2bD958C9CbFD2b3006C5cFC33da96570622/sources/src/SavingsCapsule.sol | Aqui, em um cenário real, usando Chainlink Functions para checar condições extratempo e pegar a chave de decriptação da mensagem e o vídeo. | function openCapsule(uint256 _capsuleId) public {
require(
msg.sender == capsules[_capsuleId].capsuleCreator,
"Only the recipient can open the capsule"
);
require(
block.timestamp >= capsules[_capsuleId].unlockTime,
"Capsule is not yet ready to... | 859,098 | [
1,
4625,
348,
7953,
560,
30,
225,
432,
372,
77,
16,
801,
9570,
276,
275,
132,
99,
566,
83,
2863,
16,
584,
28630,
7824,
1232,
15486,
12602,
462,
557,
297,
356,
3211,
132,
105,
132,
118,
281,
7582,
340,
1291,
83,
425,
29231,
297,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
24193,
725,
12,
11890,
5034,
389,
22984,
725,
548,
13,
1071,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
15788,
1513,
63,
67,
22984,
725,
548,
8009,
22984,
725,
10636,
16,
203,
5411,
315,
3386,
326,... |
./full_match/1/0xBe8E1c3D8BEaDA56f2AC567E93B252ADFb4Ae40d/sources/6_liam_pitchford/AuctionHouse.sol | number allowlist supply
| uint256 public allowlistSupply = 59; | 3,198,233 | [
1,
4625,
348,
7953,
560,
30,
225,
1300,
1699,
1098,
14467,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1699,
1098,
3088,
1283,
1377,
273,
14995,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
IceconeFactory.sol
https://icecone.farm/
t.me/iceconefarm
*/
pragma solidity ^0.6.6;
/**
* @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);
/... | Perform LP token migration from legacy UniswapV2 to ICCSwap. Take the current LP token address and return the new LP token address. Migrator should have full access to the caller's LP token. Return the new LP token address. XXX Migrator must have allowance access to UniswapV2 LP tokens. ICCSwap must mint EXACTLY the s... | interface IMigratorFactory {
function migrate(IERC20 token) external returns (IERC20);
}
| 10,594,069 | [
1,
4625,
348,
7953,
560,
30,
225,
11217,
511,
52,
1147,
6333,
628,
8866,
1351,
291,
91,
438,
58,
22,
358,
26899,
4596,
91,
438,
18,
17129,
326,
783,
511,
52,
1147,
1758,
471,
327,
326,
394,
511,
52,
1147,
1758,
18,
490,
2757,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
6246,
2757,
639,
1733,
288,
203,
565,
445,
13187,
12,
45,
654,
39,
3462,
1147,
13,
3903,
1135,
261,
45,
654,
39,
3462,
1769,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
pragma abicoder v2;
// OpenZeppelin v4
import { StorageSlot } from "@openzeppelin/contracts/utils/StorageSlot.sol";
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
/**
* @title PausableUpgradableProxy
* @author Railgun Contributors
... | Redirect to delegate if caller isn't owner | modifier onlyOwner() {
if (msg.sender == StorageSlot.getAddressSlot(ADMIN_SLOT).value) {
_;
delegate();
}
}
| 1,543,690 | [
1,
4625,
348,
7953,
560,
30,
225,
9942,
358,
7152,
309,
4894,
5177,
1404,
3410,
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,
9606,
1338,
5541,
1435,
288,
203,
565,
309,
261,
3576,
18,
15330,
422,
5235,
8764,
18,
588,
1887,
8764,
12,
15468,
67,
55,
1502,
56,
2934,
1132,
13,
288,
203,
1377,
389,
31,
203,
1377,
7152,
5621,
203,
565,
289,
203,
225,
... |
pragma solidity ^0.5.10;
import "./UnitFactory.sol";
/**
* @title Track a single unit with associated operations (setup, maintainance, repair, ...)
* @author E. Guyonnet
* @notice Created by the UnitFactory
* This contract doesn't need to be upgradable
*/
contract Unit {
address private parentFa... | @dev Updates the control status of an operation TODO later improvment : msg.sender should be a well known certification body | function _controlOperation(uint256 _index, uint8 _statusCtrl) private {
require(_index >= 0 && _index < operations.length, "Invalid operation index");
require(operations[_index].statusCtrl == 0, "Operation already controlled");
operations[_index].statusCtrl = _statusCtrl;
}
| 943,451 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
15419,
326,
3325,
1267,
434,
392,
1674,
2660,
5137,
13069,
90,
475,
294,
1234,
18,
15330,
1410,
506,
279,
5492,
4846,
3320,
1480,
1417,
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,
0,
0,
0,
0,
0,
0,
0,
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,
7098,
2988,
12,
11890,
5034,
389,
1615,
16,
2254,
28,
389,
2327,
12418,
13,
3238,
288,
203,
3639,
2583,
24899,
1615,
1545,
374,
597,
389,
1615,
411,
5295,
18,
2469,
16,
315,
1941,
1674,
770,
8863,
203,
3639,
2583,
... |
./full_match/3/0xeE9977857789b0e41F7F1BB08821BF8eC3017176/sources/contracts/Staking.sol | @notice Reset compound rate to 1. | function resetCompoundRate() external override {
require(
aggregatedAmount == 0,
"Staking: there are holders in the contract, withdraw funds before resetting compound rate."
);
safeResetCompoundRate();
}
| 8,208,923 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
7151,
11360,
4993,
358,
404,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2715,
16835,
4727,
1435,
3903,
3849,
288,
203,
3639,
2583,
12,
203,
5411,
16165,
6275,
422,
374,
16,
203,
5411,
315,
510,
6159,
30,
1915,
854,
366,
4665,
316,
326,
6835,
16,
598,
9446,
284,
19156,
1865,
30691,
11360,
49... |
./partial_match/1/0x4C1Bf22D608E9E871f42c4e377d8a32F8b40372C/sources/contracts/interfaces/IVault.sol | @title Saffron Fixed Income Vault Interface @author psykeeper, supafreq, everywherebagel, maze, rx @notice Base interface for vaults @dev When implementing new vault types, extend the abstract contract Vault | interface IVault {
function fixedSideCapacity() external view returns (uint256);
function initialize(
uint256 _vaultId,
uint256 _duration,
address _adapter,
uint256 _fixedSideCapacity,
uint256 _variableSideCapacity,
address _variableAsset,
uint256 _feeBps,
address _feeReceiver
) e... | 4,333,838 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
348,
7329,
1949,
15038,
657,
5624,
17329,
6682,
632,
4161,
4250,
93,
79,
9868,
16,
1169,
1727,
3658,
16,
3614,
6051,
22551,
292,
16,
312,
1561,
73,
16,
8581,
632,
20392,
3360,
1560,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
5831,
467,
12003,
288,
203,
225,
445,
5499,
8895,
7437,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
225,
445,
4046,
12,
203,
565,
2254,
5034,
389,
26983,
548,
16,
203,
565,
2254,
5034,
389,
8760,
16,
203,
565,
1758,... |
pragma solidity 0.5.17;
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "../interfaces/Comptroller.sol";
import "../interfaces/PriceOracle.sol";
import "../interfaces/CERC20.sol";
import "../interfaces/CEther.sol";
import "../Utils.sol";
contract CompoundOrder is Utils(address(0), address(0), address(... | Short CERC20 Order Long CERC20 Order Short CEther Order Long CEther Order | function createOrder(
address _compoundTokenAddr,
uint256 _cycleNumber,
uint256 _stake,
uint256 _collateralAmountInUSDC,
uint256 _loanAmountInUSDC,
bool _orderType
) external returns (CompoundOrder) {
require(_compoundTokenAddr != address(0));
CompoundOrder order;
address payab... | 15,851,528 | [
1,
4625,
348,
7953,
560,
30,
225,
7925,
385,
654,
39,
3462,
4347,
3407,
385,
654,
39,
3462,
4347,
7925,
29538,
1136,
4347,
3407,
29538,
1136,
4347,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
752,
2448,
12,
203,
565,
1758,
389,
22585,
1345,
3178,
16,
203,
565,
2254,
5034,
389,
13946,
1854,
16,
203,
565,
2254,
5034,
389,
334,
911,
16,
203,
565,
2254,
5034,
389,
12910,
2045,
287,
6275,
382,
3378,
5528,
16,
2... |
pragma solidity >=0.4.22 <0.6.0;
/* GetCryptoPayments 'GCPS (ERC20)' contract Version 2.0
*This GCPS token (ERC20) will be used as a means of payment
on our GetCryptoPayments platform.
*Refer to our Official Sites and Community:
*https://www.GetCryptoPayments.org/
*https://twitter.com/GCryptoPayments
*https://faceb... | Set the symbol for display purposes
| symbol = "GCPS"; | 1,430,762 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
3273,
364,
2562,
13694,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
43,
4258,
55,
14432,
27573,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;
pragma abicoder v2;
import "./Libraries.sol";
import "./ERC20.sol";
import "./Uniswap.sol";
contract Events {
event stakeStarted(
bytes16 indexed stakeID,
address indexed stakerAddr,
... | = 0.0001 5Minutes tokens
| uint32 constant minStakingAmt = 100000; | 2,478,476 | [
1,
4625,
348,
7953,
560,
30,
273,
374,
18,
13304,
1381,
13050,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1578,
5381,
1131,
510,
6159,
31787,
273,
25259,
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,... |
pragma solidity >=0.6.0 <0.7.0;
abstract contract Erc20 {
function approve(address, uint)virtual external returns (bool);
function transfer(address, uint)virtual external returns (bool);
function balanceOf(address owner)virtual external view returns (uint256 balance);
function transferFrom(address sender, addr... | Total amount of Ether in contract
| uint256 public contractEtherBalance; | 907,109 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
3844,
434,
512,
1136,
316,
6835,
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,
2254,
5034,
1071,
6835,
41,
1136,
13937,
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,
... |
./full_match/80001/0x97179E9Ff65FB5578D30F9416eE8B0cD5262BCbE/sources/project_/contracts/UniswapV2ERC20.sol | keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | contract UniswapV2ERC20 is IUniswapV2ERC20 {
string public override constant name = 'PolkaBridge AMM';
string public override constant symbol = 'PBRAMM';
uint8 public override constant decimals = 18;
uint public override totalSupply;
mapping(address => uint) public override balanceOf;
mapping(... | 9,473,048 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
291,
91,
438,
58,
22,
654,
39,
3462,
353,
467,
984,
291,
91,
438,
58,
22,
654,
39,
3462,
288,
203,
203,
565,
533,
1071,
3849,
5381,
508,
273,
296,
5850,
7282,
13691,
432,
8206,
13506,
203,
565,
533,
1071,
3849,
5... |
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Mintable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/TokenTimelock.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Pausable.sol";
import "openzeppelin-solidity/contracts/crowdsale/Crowdsale.sol";
import "openz... | * @dev Update current tokens total stack by stage for mantaince @param _stage stage @param _tokens new tokens state/ | function updateTokensQuantityAdmin(uint _stage, uint256 _tokens) public onlyOwner {
if(_stage == uint(CrowdsaleStage.PrivateICO)) {
totalPrivateTokens = _tokens;
totalPreTokens = _tokens;
totalPublicTokens = _tokens;
}
emit TokensQuantityChanged(_stage, _... | 918,046 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2315,
783,
2430,
2078,
2110,
635,
6009,
364,
20414,
530,
311,
632,
891,
389,
12869,
6009,
632,
891,
389,
7860,
394,
2430,
919,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
5157,
12035,
4446,
12,
11890,
389,
12869,
16,
2254,
5034,
389,
7860,
13,
1071,
1338,
5541,
225,
288,
203,
3639,
309,
24899,
12869,
422,
2254,
12,
39,
492,
2377,
5349,
8755,
18,
6014,
2871,
51,
3719,
288,
203,
5411... |
./partial_match/1/0xE5fEB62FB34aDbA661B7c8256887a8B9a21C2278/sources/contracts/core/SoundEditionV1_1.sol | * @dev Updates the mint randomness./ | modifier updatesMintRandomness() {
if (mintRandomnessEnabled() && !mintConcluded()) {
uint256 randomness = _mintRandomness;
uint256 newRandomness = MintRandomnessLib.nextMintRandomness(
randomness,
_totalMinted(),
editionMaxMintable()
... | 3,644,492 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15419,
326,
312,
474,
2744,
4496,
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,
9606,
4533,
49,
474,
8529,
4496,
1435,
288,
203,
3639,
309,
261,
81,
474,
8529,
4496,
1526,
1435,
597,
401,
81,
474,
442,
7908,
10756,
288,
203,
5411,
2254,
5034,
2744,
4496,
273,
389,
81,
474,
8529,
4496,
31,
203,
5411,
2... |
./full_match/1/0xf048dEB8Ab55f0820CdA5D4A748424E42865a9c0/sources/browser/APE.sol | the supply will not exceed 493 APE events mappings | contract APE is Ownable {
using SafeMath for uint256;
string public constant name = "APE";
string public constant symbol = "APE";
uint256 public constant decimals = 18;
uint256 private constant _maximumSupply = 493 * 10 ** decimals;
uint256 private constant _maximumPresaleBurnAmount = 493 * 10 ** decimals;... | 9,792,422 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
14467,
903,
486,
9943,
1059,
11180,
432,
1423,
2641,
7990,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
1423,
353,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
533,
1071,
5381,
508,
273,
315,
37,
1423,
14432,
203,
225,
533,
1071,
5381,
3273,
273,
315,
37,
1423,
14432,
203,
225,
225... |
pragma solidity 0.6.4;
import "./System.sol";
import "./lib/BytesToTypes.sol";
import "./lib/Memory.sol";
import "./interface/ILightClient.sol";
import "./interface/ISlashIndicator.sol";
import "./interface/ITokenHub.sol";
import "./interface/IRelayerHub.sol";
import "./interface/IParamSubscriber.sol";
import "./inter... | get incoming from deprecated validator; | emit deprecatedDeposit(valAddr,value);
| 15,807,463 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
6935,
628,
6849,
4213,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
3626,
6849,
758,
1724,
12,
1125,
3178,
16,
1132,
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,
... |
./partial_match/56/0xe357fEd031FdDabc6348ef264997C5E2845e4d7d/sources/TomToken.sol | Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. | function add(uint256 _allocPoint, IBEP20 _lpToken, uint16 _depositFeeBP, bool _withUpdate) public onlyOwner {
require(_depositFeeBP <= 10000, "add: invalid deposit fee basis points");
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock = block.number > startBl... | 11,240,594 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
11329,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
5034,
389,
9853,
2148,
16,
467,
5948,
52,
3462,
389,
9953,
1345,
16,
2254,
2313,
389,
323,
1724,
14667,
30573,
16,
1426,
389,
1918,
1891,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
323,
1724,
146... |
pragma solidity >=0.4.21 <0.6.0;
contract AdminRole {
using Roles for Roles.Role;
event AdminAdded(address indexed account);
event AdminRemoved(address indexed account);
Roles.Role private _Admins;
address private _owner;
constructor () internal {
_addAdmin(msg.sender);
... | * @dev Transfer token for a specified addresses @param from The address to transfer from. @param to The address to transfer to. @param value The amount to be transferred./ | function _transfer(address from, address to, uint256 value) internal {
require(to != address(0),"0x0 Address");
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| 1,069,859 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
1147,
364,
279,
1269,
6138,
632,
891,
628,
1021,
1758,
358,
7412,
628,
18,
632,
891,
358,
1021,
1758,
358,
7412,
358,
18,
632,
891,
460,
1021,
3844,
358,
506,
906,
4193,
18,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
2713,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
20,
3631,
6,
20,
92,
20,
5267,
8863,
203,
203,
3639,
389,
70,
26488,
63,
2080,
65,
273,
389,
7... |
pragma solidity ^0.4.21;
contract Owner {
address public owner;
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function Owner(address _owner) public {
owner = _owner;
}
function changeOwner(address _newOwnerAddr) public onlyOwner {
... | Allocate reserved tokens
| event AllocateReservedTokens(address reservedAddress, uint256 tokenAmount); | 1,843,778 | [
1,
4625,
348,
7953,
560,
30,
225,
22222,
8735,
2430,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
22222,
10435,
5157,
12,
2867,
8735,
1887,
16,
2254,
5034,
1147,
6275,
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,
... |
./full_match/42/0xc56Dc76e2f87d3BDb0CF1f2b1A993EC42A1EB247/sources/Users/225153/Projects/ram/contracts/RamVault.sol | Accumulated YGYs per share, times 1e12. See below.
| uint256 accYGYPerShare; | 9,578,655 | [
1,
4625,
348,
7953,
560,
30,
225,
15980,
5283,
690,
1624,
20564,
87,
1534,
7433,
16,
4124,
404,
73,
2138,
18,
2164,
5712,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
4078,
61,
20564,
2173,
9535,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.24;
// Import the library 'Roles'
import "./Roles.sol";
// Define a contract 'RetailerRole' to manage this role - add, remove, check
contract RetailerRole {
using Roles for Roles.Role;
// Define 2 events, one for Adding, and other for Removing
event RetailerAdded(address indexed account);... | Define a function 'renounceRetailer' to renounce this role | function renounceRetailer() public {
_removeRetailer(msg.sender);
}
| 12,537,284 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
279,
445,
296,
1187,
8386,
54,
1641,
264,
11,
358,
1654,
8386,
333,
2478,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1654,
8386,
54,
1641,
264,
1435,
1071,
288,
203,
565,
389,
4479,
54,
1641,
264,
12,
3576,
18,
15330,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-06-12
*/
/**
* Hello
* I am a MileWallet 2.0 (fixed)
*
*/
pragma solidity 0.5.10;
contract MileWallet {
address public ownerWallet;
MileWallet public oldSC = MileWallet(0x07D03e87A7dB6c3C87d3D631B3c00A57b9... | injected CONTRACT AFFECTED BY MINERS
| else if(block.gaslimit == LEVEL_PRICE[7]) level = 7; | 7,324,713 | [
1,
4625,
348,
7953,
560,
30,
15776,
8020,
2849,
1268,
432,
2246,
4239,
2056,
6953,
6989,
11367,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
469,
309,
12,
2629,
18,
31604,
3595,
422,
15080,
67,
7698,
1441,
63,
27,
5717,
1801,
273,
2371,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0x10Fc212223A7928B7FD9F9Da6CA2C460eb8305BD/sources/contracts/drop/DropERC721.sol | Custom claim @dev Checks a request to claim NFTs against the active claim condition's criteria. | function verifyClaimReceiver(
uint256 _quantity,
address _receiver
) public view {
require(
maxWalletClaimCount == 0 || walletClaimCount[_receiver] + _quantity <= maxWalletClaimCount,
"exceed claim limit"
);
}
| 5,645,561 | [
1,
4625,
348,
7953,
560,
30,
225,
6082,
7516,
632,
5206,
13074,
279,
590,
358,
7516,
423,
4464,
87,
5314,
326,
2695,
7516,
2269,
1807,
3582,
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,... | [
1,
1,
1,
1,
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,
3929,
9762,
12952,
12,
203,
3639,
2254,
5034,
389,
16172,
16,
203,
3639,
1758,
225,
389,
24454,
7010,
565,
262,
1071,
1476,
288,
203,
3639,
2583,
12,
203,
5411,
943,
16936,
9762,
1380,
422,
374,
747,
9230,
9762,
1380,
6... |
pragma solidity 0.4.23;
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
/**
* @notice Checks if the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
* as the code is not actually created ... | * @notice A.k.a "transfer a token on behalf" @notice Transfers ownership rights of a token defined by the `tokenId` to a new owner specified by address `to` @notice Allows transferring ownership rights by a trading operator on behalf of token owner. Allows building an exchange of tokens. @dev Transfers the ow... | function transferFrom(address _from, address _to, uint256 _tokenId) public {
require(_from == msg.sender && __isFeatureEnabled(FEATURE_TRANSFERS)
|| _from != msg.sender && __isFeatureEnabled(FEATURE_TRANSFERS_ON_BEHALF));
address operator = msg.sender;
address approved = approvals[_tokenId];
... | 6,443,120 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
18,
79,
18,
69,
315,
13866,
279,
1147,
603,
12433,
6186,
6,
632,
20392,
2604,
18881,
23178,
14989,
434,
279,
1147,
2553,
1377,
635,
326,
1375,
2316,
548,
68,
358,
279,
394,
3410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
2316,
548,
13,
1071,
288,
203,
565,
2583,
24899,
2080,
422,
1234,
18,
15330,
597,
1001,
291,
4595,
1526,
12,
18257,
67,
16596,
6553,
55,
13,
20... |
pragma solidity ^0.4.13;
/**
*
* Concept:
*
* Phase 1
* =======
*
* Create a 2 dimensional board of 100 x 100 squares
* Allow a person to purchase a single square and set its colour
*
* Phase 2
* =======
* Allow a person to purchase a set of squares and set its colour
*
**/
contract BasicBoard {
stru... | * Return coordinate details/ | function getCoordinateDetails(uint8 x, uint8 y)
public constant
returns (address owner, uint price, string colour, uint32 purchasedDateTime) {
Owner storage o = board[x][y];
return (o.owner, o.price, o.colour, o.purchasedDateTime);
}
| 6,442,575 | [
1,
4625,
348,
7953,
560,
30,
380,
2000,
7799,
3189,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19850,
22454,
3790,
12,
11890,
28,
619,
16,
2254,
28,
677,
13,
203,
565,
1071,
5381,
203,
565,
1135,
261,
2867,
3410,
16,
2254,
6205,
16,
533,
15046,
16,
2254,
1578,
5405,
343,
8905,
5096,
13,
288,
203,
202,
202,
5541... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "../interfaces/IBEP20.sol";
import "../interfaces/IBSTMinter.sol";
import "../interfaces/IBStablePool.sol";
import "../interfaces/IBStableToken.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
... | @notice Only pay, no need swap. | function pay(
address receiptToken,
address receipt,
uint256 amt
) external {
require(
amt <= IBEP20(receiptToken).balanceOf(msg.sender),
"Payment: insufficient balance."
);
bstMinter.mint(address(this), 1, 1);
uint256 fee = amt.mul... | 12,691,421 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5098,
8843,
16,
1158,
1608,
7720,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
203,
3639,
1758,
16030,
1345,
16,
203,
3639,
1758,
16030,
16,
203,
3639,
2254,
5034,
25123,
203,
565,
262,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
25123,
1648,
467,
5948,
52,
3462,
12,
8606,
8138,
1345,
293... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
import "./interfaces/ITreasury.sol";
import "./interfaces/IPolicy.sol";
import "./interfaces/IPriceConsumer.sol";
import "./interfaces/IPriceProducer.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@ope... | Minimum loss protection is 10%
| minLossProtectionInBps = 10 * 100; | 5,343,721 | [
1,
4625,
348,
7953,
560,
30,
23456,
8324,
17862,
353,
1728,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1131,
20527,
16938,
382,
38,
1121,
273,
1728,
380,
2130,
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,
... |
./full_match/1/0xF647f29860335E064fAc9f1Fe28BC8C9fd5331b0/sources/contracts/ERC721A-OCMfers.sol | * Returns the packed ownership data of `tokenId`./ If not burned. Invariant: There will always be an initialized ownership slot (i.e. `ownership.addr != address(0) && ownership.burned == false`) before an unintialized ownership slot (i.e. `ownership.addr == address(0) && ownership.burned == false`) Hence, `curr` will n... | function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr)
if (curr < _currentIndex) {
uint256 packed = _packedOwnerships[curr];
if (packed... | 16,475,306 | [
1,
4625,
348,
7953,
560,
30,
380,
2860,
326,
12456,
23178,
501,
434,
1375,
2316,
548,
8338,
19,
971,
486,
18305,
329,
18,
657,
8688,
30,
6149,
903,
3712,
506,
392,
6454,
23178,
4694,
261,
77,
18,
73,
18,
1375,
995,
12565,
18,
4793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2920,
329,
5460,
12565,
951,
12,
11890,
5034,
1147,
548,
13,
3238,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
4306,
273,
1147,
548,
31,
203,
540,
203,
3639,
22893,
288,
203,
5411,
309,
261,
67,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppel... | * @dev Set the {Claw.priceClaw} to 12,7 ether (starting price) and {Claw.totalClaw} to 2. Set the {_baseUri} and the {safeAddress}. @param safeAddress_ The safe address of deployer @param uri_ The CID of ipfs url/ | constructor(address safeAddress_, string memory uri_) ERC721("Kaveu", "KVU") {
safeAddress = safeAddress_;
_baseUri = uri_;
for (uint256 id = 1; id <= MAX_SUPPLY; id++) {
_mint(safeAddress, id);
}
}
| 15,811,849 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
326,
288,
2009,
2219,
18,
8694,
2009,
2219,
97,
358,
2593,
16,
27,
225,
2437,
261,
18526,
6205,
13,
471,
288,
2009,
2219,
18,
4963,
2009,
2219,
97,
358,
576,
18,
1000,
326,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
2867,
4183,
1887,
67,
16,
533,
3778,
2003,
67,
13,
4232,
39,
27,
5340,
2932,
47,
836,
89,
3113,
315,
16945,
57,
7923,
288,
203,
3639,
4183,
1887,
273,
4183,
1887,
67,
31,
203,
3639,
389,
1969,
3006,
273,
2003,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/*
* HuckleberryFinance
* App: https://huckleberry.finance
* GitHub: https://github.com/huckleberryDex
*/
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openz... | Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. | function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardTimestamp = block.timestamp > startTime ? block.timestamp : startTime;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
... | 894,771 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
11329,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
5034,
389,
9853,
2148,
16,
467,
654,
39,
3462,
389,
9953,
1345,
16,
1426,
389,
1918,
1891,
13,
1071,
1338,
5541,
288,
203,
3639,
309,
261,
67,
1918,
1891,
13,
288,
203,
5411,
8039,
1891,
16639,
5621,
2... |
./full_match/44787/0xDf21092CF5476934F5e46E7aBC2EAFAf7fBD2a70/sources/contracts/StarFarm.sol | MasterChef is the master of Star. He can make Star and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once STAR is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's ... | contract MasterChef is Initializable, OwnableUpgradeable {
using SafeMathUpgradeable for uint256;
using SafeERC20Upgradeable for IERC20Upgradeable;
struct UserInfo {
uint256 lastDeposit;
uint256 nftAmount;
uint256 nftRewardDebt;
uint256 nftLastDeposit;
}
struct Poo... | 13,268,874 | [
1,
4625,
348,
7953,
560,
30,
225,
13453,
39,
580,
74,
353,
326,
4171,
434,
934,
297,
18,
8264,
848,
1221,
934,
297,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429,
471,
326,
3410,
341,
491,
87,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13453,
39,
580,
74,
353,
10188,
6934,
16,
14223,
6914,
10784,
429,
288,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
10784,
429,
364,
467,
654,
39,
3462,
10784,
429,
... |
pragma solidity ^0.5.0;
import "./Bytes32SetLib.sol";
import "./BytesSetLib.sol";
import "./Bytes32DictionaryLib.sol";
import "./BytesDictionaryLib.sol";
import "./Bytes32SetDictionaryLib.sol";
import "./BytesSetDictionaryLib.sol";
/**
* @title Polymorphic dictionary to store data.
* @dev Polymorphic dictionary fo... | * @dev Get variable value at dictionary[_key]. O(1). @param dictionary The PolymorphicDictionary. @param key The bytes32 key. @return bytes value./ | function getBytesForKey(
PolymorphicDictionary storage dictionary,
bytes32 key
) internal view returns (bytes memory) {
return dictionary.OneToOneVariable.getValueForKey(key);
}
| 14,123,678 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
2190,
460,
622,
3880,
63,
67,
856,
8009,
531,
12,
21,
2934,
632,
891,
3880,
1021,
6730,
21976,
10905,
18,
632,
891,
498,
1021,
1731,
1578,
498,
18,
632,
2463,
1731,
460,
18,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8425,
19759,
12,
203,
3639,
6730,
21976,
10905,
2502,
3880,
16,
203,
3639,
1731,
1578,
498,
203,
565,
262,
2713,
1476,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
327,
3880,
18,
3335,
16027,
3092,
18,
24805,
19759,
12,
8... |
// SPDX-License-Identifier: MIT
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 functions.
*
* By default, the owner account will be the on... | == LIMITS == @notice Wallet limit in wei. | uint256 public walletLimit;
| 1,608,815 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
13052,
10158,
422,
632,
20392,
20126,
1800,
316,
732,
77,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
9230,
3039,
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,
... |
./full_match/1/0x600bAcC8D793Fe487703973987f1a3016c4BB8Ae/sources/pond.sol | * @dev Returns the address of the current owner./ | function owner() public view returns (address) {
return _owner; }
| 2,914,553 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1758,
434,
326,
783,
3410,
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,
... | [
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,
3410,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
8443,
31,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x8CD834258d000166769733Dfb5fB6fD6E43dB4e7/sources/@nftculture/nftc-contracts-private/contracts/token/v4/interfaces/INFTCAdvanceMint.sol | NFTC Prerelease Contracts | import './IBaseURIConfigurable.sol';
| 4,861,814 | [
1,
4625,
348,
7953,
560,
30,
225,
423,
4464,
39,
2301,
30464,
30131,
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,
5666,
12871,
45,
2171,
3098,
31660,
18,
18281,
13506,
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,
-10... |
./full_match/1/0x30410fAb6d367E11839c00Ad93eb357e3066ada8/sources/contracts/BetHorde.sol | Reserve funds owned by house | state.reserved_eth += msg.value;
| 4,987,719 | [
1,
4625,
348,
7953,
560,
30,
225,
1124,
6527,
284,
19156,
16199,
635,
23867,
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,
919,
18,
18898,
67,
546,
1011,
1234,
18,
1132,
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,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | установить в багажнике
| rus_verbs:установить{}, | 5,482,404 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
146,
230,
146,
228,
146,
229,
145,
113,
145,
126,
145,
127,
145,
115,
145,
121,
146,
229,
146,
239,
225,
145,
115,
225,
145,
114,
145,
113,
145,
116,
145,
113,
145,
119,
145,
126,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
146,
230,
146,
228,
146,
229,
145,
113,
145,
126,
145,
127,
145,
115,
145,
121,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../interfaces/xDai/messengers/IArbitraryMessageBridge.sol";
import "./MessengerWrapper.sol";
/**
* @dev A MessengerWrapper for xDai - https://www.xdaichain.com/ (also see https://docs.tokenbridge.net/)
* @notice Deplo... | @notice The xDai AMB uses bytes32 for chainId instead of uint256 | {
l2BridgeAddress = _l2BridgeAddress;
l1MessengerAddress = _l1MessengerAddress;
defaultGasLimit = _defaultGasLimit;
l2ChainId = bytes32(_l2ChainId);
ambBridge = _ambBridge;
}
| 307,012 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
619,
40,
10658,
432,
7969,
4692,
1731,
1578,
364,
2687,
548,
3560,
434,
2254,
5034,
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,
288,
203,
3639,
328,
22,
13691,
1887,
273,
389,
80,
22,
13691,
1887,
31,
203,
3639,
328,
21,
29329,
1887,
273,
389,
80,
21,
29329,
1887,
31,
203,
3639,
805,
27998,
3039,
273,
389,
1886,
27998,
3039,
31,
203,
3639,
328,
22,... |
./full_match/137/0x81c2cE5BB7124A9b47a1846F303430b7c9fff8Dc/sources/contracts/3_Ballot.sol | From an ERC20 to an LP token, through specified router, going through base asset if necessary we'll need this approval to add liquidity | function zapInToken(address _from, uint amount, address _to, address routerAddr, address _recipient) external {
IERC20(_from).safeTransferFrom(msg.sender, address(this), amount);
_approveTokenIfNeeded(_from, routerAddr);
_swapTokenToLP(_from, amount, _to, _recipient, routerAddr);
}
| 3,748,695 | [
1,
4625,
348,
7953,
560,
30,
225,
6338,
392,
4232,
39,
3462,
358,
392,
511,
52,
1147,
16,
3059,
1269,
4633,
16,
8554,
3059,
1026,
3310,
309,
4573,
732,
5614,
1608,
333,
23556,
358,
527,
4501,
372,
24237,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11419,
382,
1345,
12,
2867,
389,
2080,
16,
2254,
3844,
16,
1758,
389,
869,
16,
1758,
4633,
3178,
16,
1758,
389,
20367,
13,
3903,
288,
203,
3639,
467,
654,
39,
3462,
24899,
2080,
2934,
4626,
5912,
1265,
12,
3576,
18,
1... |
// SPDX-License-Identifier: MIT OR Apache-2.0
// Reproduced from https://etherscan.io/address/0x1bed4009d57fcdc068a489a153601d63ce4b04b2#code under the terms of Apache-2.0
pragma solidity ^0.7.0;
import "@openzeppelin/contracts-upgradeable2/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable2/m... | * @dev Attempt to send a user or contract ETH and if it fails store the amount owned for later withdrawal./ Record failed sends for a withdrawal later Transfers could fail if sent to a multisig with non-trivial receiver logic solhint-disable-next-line reentrancy | function _sendValueWithFallbackWithdraw(
address payable user,
uint256 amount,
uint256 gasLimit
) private {
if (amount == 0) {
return;
}
if (!success) {
pendingWithdrawals[user] = pendingWithdrawals[user].add(amount);
emit Withd... | 6,462,310 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12864,
358,
1366,
279,
729,
578,
6835,
512,
2455,
471,
309,
518,
6684,
1707,
326,
3844,
16199,
364,
5137,
598,
9446,
287,
18,
19,
5059,
2535,
9573,
364,
279,
598,
9446,
287,
5137,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4661,
620,
1190,
12355,
1190,
9446,
12,
203,
3639,
1758,
8843,
429,
729,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
16189,
3039,
203,
565,
262,
3238,
288,
203,
3639,
309,
261,
8949,
422,
374,
13,
... |
pragma solidity ^0.4.20;
/* Welcome to ETCH3dV
* This is the first Game with an unique Profit-Sharing System
* We believe at EtherChain, this game-contract will be one of the most sustainable and successful dividends contract ever created because of the unique profits sharing aspect" (Steve - Founder)
* Backed by a so... | ensures that the first tokens in the contract will be equally distributed meaning, no divine dump will be ever possible result: healthy longevity. are we still in the vulnerable phase? if so, enact anti early whale protocol is the customer in the Founder list? does the customer purchase exceed the max Founder quota? u... | modifier antiEarlyWhale(uint256 _amountOfEthereum){
address _customerAddress = msg.sender;
if( onlyFounders && ((totalEthereumBalance() - _amountOfEthereum) <= FounderQuota_ )){
require(
Founders_[_customerAddress] == true &&
(Fou... | 7,928,753 | [
1,
4625,
348,
7953,
560,
30,
225,
11932,
716,
326,
1122,
2430,
316,
326,
6835,
903,
506,
1298,
1230,
16859,
12256,
16,
1158,
3739,
558,
4657,
903,
506,
14103,
3323,
563,
30,
28819,
4281,
908,
16438,
18,
854,
732,
4859,
316,
326,
331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
30959,
41,
20279,
2888,
5349,
12,
11890,
5034,
389,
8949,
951,
41,
18664,
379,
15329,
203,
3639,
1758,
389,
10061,
1887,
273,
1234,
18,
15330,
31,
203,
540,
203,
3639,
309,
12,
1338,
2043,
414,
597,
14015,
4963,
41,
18... |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: MIT
import { Oracle } from './oracle.sol';
import { UserManager } from './user_manager.sol';
contract OracleManager {
// MAP OF ALL ORACLES, [ORACLE ID => CONTRACT]
mapping (string => Oracle) oracles;
// USER DEVICE CO... | CHECK IF ORACLE EXISTS | function exists(string memory id) public view returns(bool) {
if (address(oracles[id]) != 0x0000000000000000000000000000000000000000) {
return true;
return false;
}
}
| 12,963,958 | [
1,
4625,
348,
7953,
560,
30,
225,
14565,
11083,
4869,
2226,
900,
20476,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1704,
12,
1080,
3778,
612,
13,
1071,
1476,
1135,
12,
6430,
13,
288,
203,
3639,
309,
261,
2867,
12,
10610,
9558,
63,
350,
5717,
480,
374,
92,
12648,
12648,
12648,
12648,
12648,
13,
288,
203,
5411,
327,
638,
31,
203,
54... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "https://raw.githubusercontent.com/smartcontractkit/chainlink/develop/evm-contracts/src/v0.6/ChainlinkClient.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/math/SafeMath.sol";
// to do: add events, test ... | saves date of request to history
| requestHistory.push(RequestData(block.timestamp, 0)); | 1,087,788 | [
1,
4625,
348,
7953,
560,
30,
225,
14649,
1509,
434,
590,
358,
4927,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
590,
5623,
18,
6206,
12,
17031,
12,
2629,
18,
5508,
16,
374,
10019,
3639,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x81b582bd42516C5A815c1e9c8333d413BD54D505/sources/contracts/TablelandRigs.sol | * @dev See {IERC721Metadata-tokenURI}./ | function tokenURI(
uint256 tokenId
)
public
view
override(ERC721AUpgradeable, IERC721AUpgradeable)
returns (string memory)
{
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
return _getTokenURI(_toString(tokenId));
}
| 16,458,668 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
2277,
17,
2316,
3098,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
12,
654,
39,
27,
5340,
37,
10784,
429,
16,
467,
654,
39,
27,
5340,
37,
10784,
429,
13,
203,
3639,
1... |
./full_match/1/0x6a6bc8ce19901f0e3e93ba6FAbCfD0a8a8bF180a/sources/browser/Augustus.sol | * @dev Allows owner of the contract to transfer tokens any tokens which are assigned to the contract This method is for saftey if by any chance tokens or ETHs are assigned to the contract by mistake @dev token Address of the token to be transferred @dev destination Recepient of the token @dev amount Amount of tokens to... | function ownerTransferTokens(
address token,
address payable destination,
uint256 amount
)
external
onlyOwner
{
Utils.transferTokens(token, destination, amount);
}
| 3,019,348 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
3410,
434,
326,
6835,
358,
7412,
2430,
1281,
2430,
1492,
854,
6958,
358,
326,
6835,
1220,
707,
353,
364,
7864,
1222,
402,
309,
635,
1281,
17920,
2430,
578,
512,
2455,
87,
854,
6958... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3410,
5912,
5157,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
8843,
429,
2929,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
203,
565,
3903,
203,
565,
1338,
5541,
203,
565,
288,
203,
3639,
6091,
18,
13866,
5157,
... |
./partial_match/1/0x971C130f5a31d41A52b0cC6f66FfB3b75c25303f/sources/ERC1967Proxy.sol | @dev Performs a delegatecall on an address | function functionDelegateCall(address _target, bytes memory _data) internal returns (bytes memory) {
if (!isContract(_target)) revert INVALID_TARGET();
(bool success, bytes memory returndata) = _target.delegatecall(_data);
return verifyCallResult(success, returndata);
}
| 4,289,295 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
27391,
279,
7152,
1991,
603,
392,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
445,
9586,
1477,
12,
2867,
389,
3299,
16,
1731,
3778,
389,
892,
13,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
309,
16051,
291,
8924,
24899,
3299,
3719,
15226,
10071,
67,
16374,
5621,
203,
203,
3639,
261,
6430,
22... |
// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.6.2;
// We import this library to be able to use console.log
import "@openzeppelin/contracts/token/ERC20/ERC20Capped.sol";
import "@nomiclabs/buidler/console.sol";
import "@openzepp... | We import this library to be able to use console.log | import "@openzeppelin/contracts/token/ERC20/ERC20Capped.sol";
| 12,707,886 | [
1,
4625,
348,
7953,
560,
30,
225,
1660,
1930,
333,
5313,
358,
506,
7752,
358,
999,
2983,
18,
1330,
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,
5666,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
3462,
19,
654,
39,
3462,
4664,
1845,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/137/0x260351a1ba7E6a34B7A5dA1cAEf8ec93BF6A6899/sources/contracts/ROTCG.sol | * @dev Extension of ERC20 to support Compound-like voting and delegation. This version is more generic than Compound's, and supports token supply up to 2^224^ - 1, while COMP is limited to 2^96^ - 1. NOTE: If exact COMP compatibility is required, use the {ERC20VotesComp} variant of this module. This extension keeps a h... | abstract contract ERC20VotesUpgradeable is Initializable, IVotesUpgradeable, ERC20PermitUpgradeable {
function __ERC20Votes_init() internal onlyInitializing {
}
function __ERC20Votes_init_unchained() internal onlyInitializing {
}
struct Checkpoint {
uint32 fromBlock;
uint224 votes... | 4,778,432 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
4232,
39,
3462,
358,
2865,
21327,
17,
5625,
331,
17128,
471,
23595,
18,
1220,
1177,
353,
1898,
5210,
2353,
21327,
1807,
16,
471,
6146,
1147,
14467,
731,
358,
576,
66,
23622,
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,
17801,
6835,
4232,
39,
3462,
29637,
10784,
429,
353,
10188,
6934,
16,
21602,
6366,
10784,
429,
16,
4232,
39,
3462,
9123,
305,
10784,
429,
288,
203,
203,
203,
565,
445,
1001,
654,
39,
3462,
29637,
67,
2738,
1435,
2713,
1338,
29782,
... |
./full_match/97/0x4f254bB0937B836Ecd09716Ea8a7f9B1c300740c/sources/project:/contracts/TalariumSoulShard.sol | To track issuance progress
| uint256 public immutable INITIAL_UNISSUED_AMOUNT; | 3,275,229 | [
1,
4625,
348,
7953,
560,
30,
225,
2974,
3298,
3385,
89,
1359,
4007,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
11732,
28226,
67,
10377,
1260,
1821,
40,
67,
2192,
51,
5321,
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,
-10... |
./partial_match/3/0xF0050770f475e7861398DEa00141CC301528e4DE/sources/CollateralAuction.sol | / Calculate how much time takes the auction to offer all the `_limit` tokens in exchange for the requested base `_amount`, this delta defines the linear function of the first half of the auction Pull tokens for the auction, the full `_limit` is pulled any exceeding tokens will be returned at the end of the auction Crea... | function create(
IERC20 _fromToken,
uint256 _start,
uint256 _ref,
uint256 _limit,
uint256 _amount
) external nonReentrant() returns (uint256 id) {
require(_start < _ref, "auction: offer should be below refence offer");
require(_ref <= _limit, "auction: ref... | 5,052,954 | [
1,
4625,
348,
7953,
560,
30,
342,
9029,
3661,
9816,
813,
5530,
326,
279,
4062,
358,
10067,
777,
326,
1375,
67,
3595,
68,
2430,
316,
7829,
364,
326,
3764,
1026,
1375,
67,
8949,
9191,
333,
3622,
11164,
326,
9103,
445,
434,
326,
1122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
12,
203,
3639,
467,
654,
39,
3462,
389,
2080,
1345,
16,
203,
3639,
2254,
5034,
389,
1937,
16,
203,
3639,
2254,
5034,
389,
1734,
16,
203,
3639,
2254,
5034,
389,
3595,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { IRandomProvider } from "../../interfaces/IRandomProvider.sol";
contract OutchainRandomProvider is Ownable, IRandomProvider {
uint256 _randomNumber;
event RandomNumbe... | * @dev Returns (pseudo) random number./ | function getRandomness() override external view returns(uint256) {
return _randomNumber;
}
| 12,969,288 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
261,
26023,
13,
2744,
1300,
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,
20581,
4496,
1435,
3849,
3903,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
389,
9188,
1854,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0xcc303B063088880487fC168baB3655376801C9e3/sources/VaultsCore.sol | reduce the vault debt by repayAmount | _reduceVaultDebt(_vaultId, repayAmount.add(insuranceAmount));
| 8,847,990 | [
1,
4625,
348,
7953,
560,
30,
225,
5459,
326,
9229,
18202,
88,
635,
2071,
528,
6275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
389,
12498,
12003,
758,
23602,
24899,
26983,
548,
16,
2071,
528,
6275,
18,
1289,
12,
2679,
295,
1359,
6275,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |