file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./partial_match/1/0x2f93cC3D8fAa01C74A65f18C11305FF8F910656e/sources/ERC1155TLCore.sol | * @notice function to return uri for a specific token type @param tokenId is the uint256 representation of a token ID @return string representing the uri for the token id/ | function uri(uint256 tokenId) public view override returns (string memory) {
return _tokenDetails[tokenId].uri;
}
| 2,676,628 | [
1,
4625,
348,
7953,
560,
30,
380,
282,
632,
20392,
445,
358,
327,
2003,
364,
279,
2923,
1147,
618,
282,
632,
891,
1147,
548,
353,
326,
2254,
5034,
4335,
434,
279,
1147,
1599,
282,
632,
2463,
533,
5123,
326,
2003,
364,
326,
1147,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2003,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
389,
2316,
3790,
63,
2316,
548,
8009,
1650,
31,
203,
565,
289,
27699,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
abstract contract IDFSRegistry {
function getAddr(bytes32 _id) public view virtual returns (address);
function addNewContract(
bytes32 _id,
address _contractAddr,
uint256 _waitPeriod
)... | @dev rsptReceived will be 0 if action was called directly, money deposited can be received with _inputData.amount | logger.Log(address(this), msg.sender, "RariDeposit", abi.encode(_inputData, rsptReceived));
| 6,139,599 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3597,
337,
8872,
903,
506,
374,
309,
1301,
1703,
2566,
5122,
16,
15601,
443,
1724,
329,
848,
506,
5079,
598,
389,
2630,
751,
18,
8949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1194,
18,
1343,
12,
2867,
12,
2211,
3631,
1234,
18,
15330,
16,
315,
54,
12954,
758,
1724,
3113,
24126,
18,
3015,
24899,
2630,
751,
16,
3597,
337,
8872,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x298DdF997658BDe5402FB30CCe774A57D5C400b4/sources/ROR.sol | event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap); event SwapEnabledUpdated(bool enabled); | contract ROR is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mappi... | 8,371,371 | [
1,
4625,
348,
7953,
560,
30,
225,
871,
5444,
5157,
4649,
12521,
7381,
12,
11890,
5034,
1131,
5157,
4649,
12521,
1769,
871,
12738,
1526,
7381,
12,
6430,
3696,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6835,
534,
916,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
... |
./partial_match/1/0x34cB8F75952dFbC5c40832745bcC851071aF8055/sources/MultiSigWallet.sol | @dev Returns list of owners. @return List of owner addresses. | function getOwners() public view returns (address[] memory) {
return owners;
}
| 9,427,971 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
666,
434,
25937,
18,
632,
2463,
987,
434,
3410,
6138,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
5460,
414,
1435,
1071,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
202,
202,
2463,
25937,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
contract Certifier {
event Confirmed(address indexed who);
event Revoked(address indexed who);
function certified(address _who) view public returns (bool);
}
contract ERC223ReceivingContract {
/// @dev Standard ERC223 function that will handle incoming token transfers.
/// @param _from Token sender addres... | get reput return reputation data from teller | ) {
buyVolume = volumeBuy[_teller];
sellVolume = volumeSell[_teller];
numTrade = nbTrade[_teller];
}
| 4,802,966 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
283,
458,
327,
283,
458,
367,
501,
628,
20666,
749,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
262,
288,
203,
377,
30143,
4545,
273,
3940,
38,
9835,
63,
67,
19261,
749,
15533,
203,
377,
357,
80,
4545,
273,
3940,
55,
1165,
63,
67,
19261,
749,
15533,
203,
377,
818,
22583,
273,
4264,
22583,
63,
67,
19261,
749,
15533,
2... |
//Address: 0x00416B9d728069eDB0cEb04bC2b203fA7336d1F1
//Contract name: AversafeSeedCrowdsale
//Balance: 0 Ether
//Verification Date: 11/29/2017
//Transacion Count: 36
// CODE STARTS HERE
/*
Copyright 2017 Cofound.it.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... | Check if crowdsale has ended
| require(crowdsaleState != state.crowdsaleEnded); | 1,002,995 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
276,
492,
2377,
5349,
711,
16926,
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,
2583,
12,
71,
492,
2377,
5349,
1119,
480,
919,
18,
71,
492,
2377,
5349,
28362,
1769,
11794,
2,
-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: BUSL-1.1
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "../../openzeppelin/contracts-upgradeable/math/SignedSafeMathUpgradeable.sol";
import "../../openzeppelin/contracts-upgradeable/utils/SafeCastUpgradeable.sol";
import "../interface/IAccessControl.sol";
import "../inte... | * @dev Check if AMM is maintenance margin safe in the perpetual, need to rebalance before checking. @param liquidityPool The reference of liquidity pool storage. @param perpetualIndex The index of the perpetual in the liquidity pool. @return isSafe True if AMM is maintenance margin safe in the perp... | function isAMMMaintenanceMarginSafe(
LiquidityPoolStorage storage liquidityPool,
uint256 perpetualIndex
) public returns (bool isSafe) {
rebalance(liquidityPool, perpetualIndex);
PerpetualStorage storage perpetual = liquidityPool.perpetuals[perpetualIndex];
isSafe = liqui... | 5,505,362 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
377,
2073,
309,
432,
8206,
353,
18388,
7333,
4183,
316,
326,
1534,
6951,
1462,
16,
1608,
358,
283,
12296,
1865,
6728,
18,
632,
891,
282,
4501,
372,
24237,
2864,
282,
1021,
2114,
434,
4501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
2192,
8206,
7770,
9524,
9890,
12,
203,
3639,
511,
18988,
24237,
2864,
3245,
2502,
4501,
372,
24237,
2864,
16,
203,
3639,
2254,
5034,
1534,
6951,
1462,
1016,
203,
565,
262,
1071,
1135,
261,
6430,
353,
9890,
13,
288,
... |
./partial_match/3/0x1B0E0eCa53FB8EbFcBc6071d081961A37628Ca83/sources/Betting.sol | * @dev The Ownable constructor sets the original `owner` of the contract to the sender account./ | constructor() {
owner = msg.sender;
}
| 5,189,593 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
14223,
6914,
3885,
1678,
326,
2282,
1375,
8443,
68,
434,
326,
6835,
358,
326,
5793,
2236,
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,
565,
3885,
1435,
225,
288,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0x476c24dc30B9cb6550e55814dbb7A98d7196a2A8/sources/contracts/Proxy.sol | number of seconds in a week
| uint256 public constant epochLength = 60 * 60 * 24 * 7; | 4,677,964 | [
1,
4625,
348,
7953,
560,
30,
225,
1300,
434,
3974,
316,
279,
4860,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
5381,
7632,
1782,
273,
4752,
380,
4752,
380,
4248,
380,
2371,
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,
-1... |
./full_match/97/0x0779bC10F2e053Fa52d88b62a5B62a27D1b3874D/sources/project_/contracts/MoedaSocial.sol | /Herda propriedades do contrato ERC20 do Open Zeppelinuint256[] idReg;uint256[] totAntEntCC;uint256[] sldAntCC;Entradas: 0xc3CD66A492d253A87d3447485907581631597e25Beneficiarios: 0x74Cc615088Cd97212e02AaC8a3Ef4953C790FA09Fornecedores: 0xf95358C7875d7ef19B51A854680a408e02c0E527Saidas: 0xC0d2Ef3B4... | contract MoedaSocial is ERC20 {
Variáveis definidas aqui (no nível do contrato) são sempre storage (disco), não memory;
Reference Types definidos dentro de funções por padrão são storage (disco) - definir como memory se ;
address private immutable _owner;
uint private _mintAmount = 1000;
... | 3,291,470 | [
1,
4625,
348,
7953,
560,
30,
342,
44,
264,
2414,
2270,
24012,
16601,
741,
16252,
31093,
4232,
39,
3462,
741,
3502,
2285,
881,
84,
292,
6860,
474,
5034,
8526,
612,
1617,
31,
11890,
5034,
8526,
9997,
14925,
14199,
6743,
31,
11890,
5034,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14987,
329,
69,
28795,
353,
4232,
39,
3462,
288,
203,
377,
203,
565,
11487,
132,
99,
537,
291,
2217,
350,
345,
279,
372,
77,
261,
2135,
290,
132,
260,
941,
741,
16252,
31093,
13,
272,
132,
101,
83,
6111,
1484,
2502,
261,... |
pragma solidity ^0.7.0;
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { TokenInterface } from "../../common/interfaces.sol";
import { Helpers } from "./helpers.sol";
import { Events } from "./events.sol";
abstract contract LiquidityManage is Helpers, Events {
/**
* @dev Dep... | * @dev Withdraw Liquidity in InstaPool. @param token token address.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) @param amt token amount. @param getId Get token amount at this ID from `InstaMemory` Contract. @param setId Set token amount at this ID in `InstaMemory` Contract./ | function withdraw(
address token,
uint amt,
uint getId,
uint setId
) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt);
instaPool.withdraw(token, _amt);
setUint(setId, _amt);
_eventNam... | 13,013,516 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
511,
18988,
24237,
316,
13448,
69,
2864,
18,
632,
891,
1147,
1147,
1758,
18,
12,
1290,
512,
2455,
30,
374,
17432,
1340,
1340,
41,
1340,
73,
41,
73,
41,
1340,
41,
73,
41,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
598,
9446,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
25123,
16,
203,
3639,
2254,
2634,
16,
203,
3639,
2254,
10446,
203,
565,
262,
3903,
8843,
429,
1135,
261,
1080,
3778,
389,
2575,
461,
16,
1731,
3778,
389,
2575,
... |
./full_match/1/0x97e9103267D58448Bae0CF6E056F343bD7728D02/sources/contracts/v2/TreasuryPriceIndexOracle.sol | * @notice The maximum allowed TPI change on any single `setTreasuryPriceIndex()`, in absolute terms. @dev Used as a bound to avoid unintended/fat fingering when updating TPI/ | uint256 public override maxTreasuryPriceIndexDelta;
| 2,981,689 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1021,
4207,
2935,
399,
1102,
2549,
603,
1281,
2202,
1375,
542,
56,
266,
345,
22498,
5147,
1016,
1435,
9191,
316,
4967,
6548,
18,
632,
5206,
10286,
487,
279,
2489,
358,
4543,
640,
474,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
3849,
943,
56,
266,
345,
22498,
5147,
1016,
9242,
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,
-1... |
./partial_match/56/0x85CB9f16d09a640356aEC7B0B06ebBD416129493/sources/MasterChef.sol | MasterChef is the master of Noom1. He can make Noom1 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 NOOM1 is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it... | contract MasterChef is Ownable {
using SafeMath for uint256;
using SafeBEP20 for IBEP20;
struct UserInfo {
}
struct PoolInfo {
}
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
e... | 11,152,227 | [
1,
4625,
348,
7953,
560,
30,
225,
13453,
39,
580,
74,
353,
326,
4171,
434,
2631,
362,
21,
18,
8264,
848,
1221,
2631,
362,
21,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429,
471,
326,
3410,
341,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
5948,
52,
3462,
364,
467,
5948,
52,
3462,
31,
203,
203,
565,
1958,
25003,
288,
203,
565,
289,
203,
203,
... |
./full_match/1/0x5Ac819C1032891AE2988Eb91c472eE976bfF3584/sources/fixedUSD.sol | Create a reference to the underlying asset contract, like DAI. Create a reference to the corresponding cToken contract, like cDAI Get underlying balance Amount of current exchange rate from cToken to underlying Amount added to you supply balance this block Mint cTokens | function wrap(
address _erc20Contract,
address _cErc20Contract
) public onlyOwner returns (uint) {
IERC20 underlying = IERC20(_erc20Contract);
CErc20 wrapcToken = CErc20(_cErc20Contract);
uint256 toWrap = ((underlying.balanceOf(address(this))) * 75) / 100;
... | 8,339,962 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
279,
2114,
358,
326,
6808,
3310,
6835,
16,
3007,
463,
18194,
18,
1788,
279,
2114,
358,
326,
4656,
276,
1345,
6835,
16,
3007,
276,
9793,
45,
968,
6808,
11013,
16811,
434,
783,
7829,
4993,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
2193,
12,
203,
3639,
1758,
389,
12610,
3462,
8924,
16,
203,
3639,
1758,
389,
71,
41,
1310,
3462,
8924,
203,
565,
262,
1071,
1338,
5541,
1135,
261,
11890,
13,
288,
203,
3639,
467,
654,
39,
3462,
6808,
273,
467,
654,
39... |
//Address: 0x8a98cf91fd2ea825a187e4ceaf3490c8a71d8d73
//Contract name: MowjowBounty
//Balance: 0 Ether
//Verification Date: 12/29/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
f... | @dev Check sum of the tokens for sale in the tranches in the crowdsale time/ | function isNoEmptyTranches() public constant returns(bool) {
uint256 sumFreeTokens = 0;
for (uint i = 0; i < tranches.length; i++) {
sumFreeTokens = sumFreeTokens.add(tranches[i].valueForTranche);
}
bool isValid = sumFreeTokens > 0;
return isValid;
}
| 5,479,760 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2073,
2142,
434,
326,
2430,
364,
272,
5349,
316,
326,
13637,
11163,
316,
326,
276,
492,
2377,
5349,
813,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
2279,
1921,
17730,
11163,
1435,
1071,
5381,
1135,
12,
6430,
13,
288,
203,
3639,
2254,
5034,
2142,
9194,
5157,
273,
374,
31,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
13637,
11163,
18,
2469,
31,
277,
... |
./partial_match/1/0x21f1598b786fbf6b81E85f57E56faf83F78Fb59E/sources/AlunaToken.sol | * ZeppelinOS Initializer Function @param _totalSupply The total supply of the tokens @param _rewardsPoolAddress address of Rewards Pool contract @param _rewardsPoolPercentage percentage to be taken from payments and sent to rewards pool @param _owner contract owner/ | ) public initializer {
name = "Aluna";
symbol = "ALN";
decimals = 18;
_mint(_owner, _totalSupply);
_setRewardsPoolPercentage(_rewardsPoolPercentage);
_setRewardsPoolAddress(_rewardsPoolAddress);
_transferOwnership(_owner);
}
| 9,148,944 | [
1,
4625,
348,
7953,
560,
30,
380,
2285,
881,
84,
292,
267,
4618,
4378,
3926,
4284,
632,
891,
389,
4963,
3088,
1283,
1021,
2078,
14467,
434,
326,
2430,
632,
891,
389,
266,
6397,
2864,
1887,
1758,
434,
534,
359,
14727,
8828,
6835,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
1071,
12562,
288,
203,
3639,
508,
273,
315,
1067,
31172,
14432,
203,
3639,
3273,
273,
315,
1013,
50,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
81,
474,
24899,
8443,
16,
389,
4963,
3088,
1283,
1769,
203,
36... |
pragma solidity ^0.4.15;
/**
* @title Ownership interface
*
* Perminent ownership
*
* #created 01/10/2017
* #author Frank Bonnet
*/
contract IOwnership {
/**
* Returns true if `_account` is the current owner
*
* @param _account The address to test against
*/
functio... | * Returns the address of the right token @return Right token address/ | function getRightToken() public constant returns (address) {
return tokenRight;
}
| 12,596,264 | [
1,
4625,
348,
7953,
560,
30,
380,
2860,
326,
1758,
434,
326,
2145,
1147,
632,
2463,
13009,
1147,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16609,
1345,
1435,
1071,
5381,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1147,
4726,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.18;
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol';
import 'openzeppelin-solidity/contracts/token/ERC20/BurnableToken.sol';
import 'openzeppelin-solidity/contracts/token/ERC20/MintableToken.sol';
import './Validatable.sol';
contract ForeignBridge is Ownable, Validatable {
mappin... | Token should be registered Unique hash for this request Request shouldnt be done Request shouldnt already be signed by validator | function signMintRequest(bytes32 _transactionHash,address _mainToken, address _recipient,uint256 _amount,uint8 _v, bytes32 _r, bytes32 _s) public {
assert(_amount > 0);
assert(tokenMap[_mainToken] != 0x0);
bytes32 reqHash = sha256(_transactionHash,_mainToken,_recipient,_amount);
assert(requestsDone[reqHash]... | 5,389,398 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
1410,
506,
4104,
14584,
1651,
364,
333,
590,
1567,
1410,
496,
506,
2731,
1567,
1410,
496,
1818,
506,
6726,
635,
4213,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
1573,
49,
474,
691,
12,
3890,
1578,
389,
7958,
2310,
16,
2867,
389,
5254,
1345,
16,
1758,
389,
20367,
16,
11890,
5034,
389,
8949,
16,
11890,
28,
389,
90,
16,
1731,
1578,
389,
86,
16,
1731,
1578,
389,
87,
13,
1071,
2... |
/*
Copyright 2018 dYdX Trading Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | * Called by Margin when another address attempts to margin-call a loan. Defer approval to the token-holder. @param caller Address attempting to initiate the loan call @param positionId Unique ID of the position param depositAmount (unused) @return This address to accept, a different addr... | function marginCallOnBehalfOf(
address caller,
bytes32 positionId,
uint256 /* depositAmount */
)
external
onlyMargin
returns (address)
{
address owner = ownerOfPosition(positionId);
if (approvedManagers[owner][caller]) {
return add... | 5,505,735 | [
1,
4625,
348,
7953,
560,
30,
380,
11782,
635,
490,
5243,
1347,
4042,
1758,
7531,
358,
7333,
17,
1991,
279,
28183,
18,
1505,
586,
23556,
358,
326,
1147,
17,
4505,
18,
632,
891,
225,
4894,
540,
5267,
15600,
358,
18711,
326,
28183,
745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7333,
1477,
1398,
1919,
20222,
951,
12,
203,
3639,
1758,
4894,
16,
203,
3639,
1731,
1578,
1754,
548,
16,
203,
3639,
2254,
5034,
1748,
443,
1724,
6275,
1195,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
9524,
203,
36... |
./partial_match/3/0x786F743619ef002552ABEa5182cF4E223C4Cdc47/sources/cmtFoundingToken.sol | address constant public want = address(0xdAC17F958D2ee523a2206206994597C13D831ec7); Tether USD (USDT)uint public min_unit = 2000000; Maingovernance = 0x1360CFA0606E5b057df468D540fA81F75d8146E3; | contract cmtFoundingToken is ERC20, ERC20Detailed {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint;
address public governance;
uint256 coinAmount;
uint public earnFund = 1;
mapping(uint256 => uint8) public fundList;
IERC20 public token;
uint public isOpenSwa... | 5,130,811 | [
1,
4625,
348,
7953,
560,
30,
1758,
5381,
1071,
2545,
273,
1758,
12,
20,
7669,
2226,
4033,
42,
29,
8204,
40,
22,
1340,
25,
4366,
69,
27246,
26,
3462,
26,
2733,
24,
6162,
27,
39,
3437,
40,
28,
6938,
557,
27,
1769,
540,
399,
2437,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
276,
1010,
2043,
310,
1345,
353,
4232,
39,
3462,
16,
4232,
39,
3462,
40,
6372,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
225,
1450,
5267,
364,
1758,
31,
203,
225,
1450,
14060,
10477,
36... |
./full_match/1/0x7B70695E761EB828aBEd8c4d506f9af3a76eF4b5/sources/ZenChests.sol | * @notice Withdraws all funds held within contract/ | function withdraw() external nonReentrant onlyOwner {
require(address(this).balance > 0, "CONTRACT_HAS_NO_BALANCE");
uint256 balance = address(this).balance;
for (uint256 i = 0; i < payoutAddresses.length; i++) {
require(
payable(payoutAddresses[i]).send(
... | 3,057,180 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
87,
777,
284,
19156,
15770,
3470,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
3903,
1661,
426,
8230,
970,
1338,
5541,
288,
203,
3639,
2583,
12,
2867,
12,
2211,
2934,
12296,
405,
374,
16,
315,
6067,
2849,
1268,
67,
27765,
67,
3417,
67,
38,
1013,
4722,
8863,
203,
3639,
2254,
5034,
... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ARCADIA' token contract
//
// Deployed to : 0x4a74c80244A7AEcC865Ece725941EbD6aA335830
// Symbol : XGS
// Name : ARCADIA COIN
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c) by... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract ARCADIA is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function ARCADIA() public {
symbol = "XGS";
... | 9,938,879 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6052,
39,
1880,
15188,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
... |
./full_match/1/0x97b6a74BcC7Bfc03e9Ce97DE7Fb82a4a03b110Bf/sources/contracts/Pool/Pool.sol | @notice Parses the members encoded in bytes and calls _parseLender() for each member @dev Internal function @param isWhitelistOperation - True if the operation is a whitelist operation @param members - The encoded members bytes | function _parseLenders(bool isWhitelistOperation, bytes calldata members) internal {
if (members.length == 20) {
_parseLender(isWhitelistOperation, AddressCoder.decodeAddress(members)[0]);
address[] memory addresses = AddressCoder.decodeAddress(members);
uint256 length = addresses.length;
... | 16,489,472 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2280,
2420,
326,
4833,
3749,
316,
1731,
471,
4097,
389,
2670,
48,
2345,
1435,
364,
1517,
3140,
632,
5206,
3186,
445,
632,
891,
353,
18927,
2988,
300,
1053,
309,
326,
1674,
353,
279,
1073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
2670,
48,
10130,
12,
6430,
353,
18927,
2988,
16,
1731,
745,
892,
4833,
13,
2713,
288,
203,
565,
309,
261,
7640,
18,
2469,
422,
4200,
13,
288,
203,
1377,
389,
2670,
48,
2345,
12,
291,
18927,
2988,
16,
5267,
39,
... |
pragma solidity ^0.5.16;
import "./ERC721.sol";
import "./ITitleEscrow.sol";
import "./ITitleEscrowCreator.sol";
contract HasNamedBeneficiary is Context {
address public beneficiary;
constructor(address _beneficiary) internal {
beneficiary = _beneficiary;
}
modifier onlyBeneficiary() {
require(isBen... | ERC165: Interface for this contract, can be calculated by calculateSelector() Only append new interface id for backward compatibility Information on token held Factory to clone this title escrow For exiting into title escrow contracts For exiting into non-title escrow contractsTODO: change ERC721 to address so that ex... | contract TitleEscrow is Context, ITitleEscrow, HasNamedBeneficiary, HasHolder, ERC165 {
event TitleReceived(address indexed _tokenRegistry, address indexed _from, uint256 indexed _id);
event TitleCeded(address indexed _tokenRegistry, address indexed _to, uint256 indexed _id);
event TransferOwnerApproval(uint256 i... | 13,043,434 | [
1,
4625,
348,
7953,
560,
30,
225,
4232,
39,
28275,
30,
6682,
364,
333,
6835,
16,
848,
506,
8894,
635,
4604,
4320,
1435,
5098,
714,
394,
1560,
612,
364,
12555,
8926,
15353,
603,
1147,
15770,
7822,
358,
3236,
333,
2077,
2904,
492,
245... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10984,
6412,
492,
353,
1772,
16,
467,
4247,
6412,
492,
16,
4393,
7604,
38,
4009,
74,
14463,
814,
16,
4393,
6064,
16,
4232,
39,
28275,
288,
203,
225,
871,
10984,
8872,
12,
2867,
8808,
389,
2316,
4243,
16,
1758,
8808,
389,
... |
./full_match/3/0x927a75bD94DB22c744507A2AB47aB6b2F2ba3D50/sources/contracts/LightningProtocol.sol | @dev once all cycles are completed, burn fee will be set to 0 and the protocol reaches its final phase, in which no further supply elasticity will take place and fees will stay at 0 @dev adjust current burnFee depending on the traded tokens during th | function _transfer(address sender, address recipient, uint256 amount) private {
require(sender != address(0), "BEP20: transfer from the zero address");
require(recipient != address(0), "BEP20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater than zero");
... | 8,244,311 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3647,
777,
15139,
854,
5951,
16,
18305,
14036,
903,
506,
444,
358,
374,
471,
326,
1771,
30093,
2097,
727,
6855,
16,
316,
1492,
1158,
9271,
14467,
10465,
560,
903,
4862,
3166,
471,
1656,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
3238,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
5948,
52,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
203... |
./partial_match/1/0x0e944142c729f542f08C36CC8B5cE26fb1b077B4/sources/MoonFarm.sol | Get current reward for stake @dev calculates returnable stake amount @param _user the user to query @param _index the stake index to query @return total stake reward | function currentReward(address _user, uint256 _index) public view returns (uint256) {
if(stakeList[msg.sender][_index].amount == 0){
return 0;
}
uint256 amount = stakeList[_user][_index].amount;
uint256 daysPercent = (block.timestamp - stakeList[msg.sender][_index].stakeTime).div(86400).mul(7);
... | 2,801,954 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
783,
19890,
364,
384,
911,
632,
5206,
17264,
327,
429,
384,
911,
3844,
632,
891,
389,
1355,
326,
729,
358,
843,
632,
891,
389,
1615,
326,
384,
911,
770,
358,
843,
632,
2463,
2078,
384,
911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
783,
17631,
1060,
12,
2867,
389,
1355,
16,
2254,
5034,
389,
1615,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
12,
334,
911,
682,
63,
3576,
18,
15330,
6362,
67,
1615,
8009,
8949,
422,
374,
15329,
20... |
./full_match/1/0x60eEC879cd31e47347058048433D9E381F510606/sources/contracts/ommf/ommf_token/ommf.sol | * @notice Atomically decreases the allowance granted to `_spender` by the caller by `_subtractedValue`. This is an alternative to `approve` that can be used as a mitigation for problems described in: Emits an `Approval` event indicating the updated allowance. Requirements: - `_spender` cannot be the zero address. - `_s... | function decreaseAllowance(
address _spender,
uint256 _subtractedValue
) public returns (bool) {
uint256 currentAllowance = allowances[msg.sender][_spender];
require(
currentAllowance >= _subtractedValue,
"DECREASED_ALLOWANCE_BELOW_ZERO"
);
_approve(msg.sender, _spender, currentA... | 16,405,051 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7149,
6478,
23850,
3304,
326,
1699,
1359,
17578,
358,
1375,
67,
87,
1302,
264,
68,
635,
326,
4894,
635,
1375,
67,
1717,
1575,
329,
620,
8338,
1220,
353,
392,
10355,
358,
1375,
12908,
537... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
7009,
1359,
12,
203,
565,
1758,
389,
87,
1302,
264,
16,
203,
565,
2254,
5034,
389,
1717,
1575,
329,
620,
203,
225,
262,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2254,
5034,
783,
7009,
1359,
273,
1699,
6872,
63... |
/**
*Submitted for verification at Etherscan.io on 2022-04-07
*/
/*
https://t.me/ElonCyberRodeo
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() inte... | exclude from paying fees or having max transaction amount | constructor() ERC20("ElonCyberRodeo", "ElonCyberRodeo") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2... | 10,696,257 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
4958,
265,
17992,
744,
54,
390,
83,
3113,
315,
4958,
265,
17992,
744,
54,
390,
83,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
struct CampaignInfo {
uint64 bornTime;
uint64 deadline;
uint96 minDonationAmount;
uint32 pledgeU32;
uint96 hardTarget;
address receiver;
uint96 softTarget;
address coinType;
bytes description... | @dev Query a campaign's detail and the amount donated to it so far. | CampaignInfo memory info, uint amount) {
info = loadCampaignInfo(campaignName);
amount = getCampaignAmount(campaignName);
}
| 12,949,416 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2770,
279,
8965,
1807,
7664,
471,
326,
3844,
2727,
690,
358,
518,
1427,
10247,
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,
... | [
1,
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,
25083,
202,
13432,
966,
3778,
1123,
16,
2254,
3844,
13,
288,
203,
202,
202,
1376,
273,
1262,
13432,
966,
12,
14608,
461,
1769,
203,
202,
202,
8949,
273,
1927,
5415,
6275,
12,
14608,
461,
1769,
203,
203,
202,
97,
203,
2,
-100,
-... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity ^0.7.0;
import "./lib/ReEncryptionValidator.sol";
import "./lib/SignatureVerifier.sol";
import "./StakingEscrow.sol";
import "./proxy/Upgradeable.sol";
import "../zeppelin/math/SafeMath.sol";
import "../zeppelin/math/Math.sol";
/**
* @title Adjudicator
*... | * @notice Get available refund for delegator/ | function getAvailableRefund(address _delegator) public view returns (uint256) {
Delegator storage delegator = delegators[_delegator];
uint256 maxAllowableETH = totalWorkLockETHRefunded.mul(delegator.depositedETHWorkLock)
.div(totalWorkLockETHReceived);
uint256 availableETH = max... | 1,393,666 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
2319,
16255,
364,
11158,
639,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15796,
21537,
12,
2867,
389,
3771,
1332,
639,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
24117,
639,
2502,
11158,
639,
273,
11158,
3062,
63,
67,
3771,
1332,
639,
15533,
203,
3639,
2254,
5034,
943,
31508,
... |
./full_match/1/0x766e2877946a807362e70E95527F7302Ee6D73C0/sources/@sense-finance/v1-core/src/tokens/Token.sol | External references | import { ERC20 } from "@rari-capital/solmate/src/tokens/ERC20.sol";
| 3,151,635 | [
1,
4625,
348,
7953,
560,
30,
225,
11352,
5351,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
288,
4232,
39,
3462,
289,
628,
8787,
86,
12954,
17,
5909,
7053,
19,
18281,
81,
340,
19,
4816,
19,
7860,
19,
654,
39,
3462,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x3d9deFF1f5ff091a365cF4CCD29B51c9D73deCA7/sources/FIIToken.sol | */ ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | contract FIIToken is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
Contract function to receive approval and execute function in on... | 5,079,486 | [
1,
4625,
348,
7953,
560,
30,
1195,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4011,
1285,
969,
353,
4232,
39,
3462,
1358,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088,
1283,
31,
2... |
// "SPDX-License-Identifier: Apache-2.0"
pragma solidity ^0.7.0;
import "../../ACTUS/Core/ACTUSTypes.sol";
import "../../ACTUS/Core/ACTUSConstants.sol";
struct AssetOwnership {
// account which has to fulfill all obligations for the creator side
address creatorObligor;
// account to which all cashflows t... | scheduleTime and EventType are tightly packed and encoded as bytes32 schedule times of cyclic events (used if no schedule is set) index of event => bytes32 encoded event the length of the schedule, used to determine the end of the schedule pointer to index of the next event in the schedule last event which could not b... | struct Schedule {
mapping(EventType => uint256) lastScheduleTimeOfCyclicEvent;
mapping(uint256 => bytes32) events;
uint256 length;
uint256 nextScheduleIndex;
bytes32 pendingEvent;
bytes32 lastNonCyclicEvent;
}
| 7,290,878 | [
1,
4625,
348,
7953,
560,
30,
225,
4788,
950,
471,
15879,
854,
26066,
715,
12456,
471,
3749,
487,
1731,
1578,
4788,
4124,
434,
30383,
2641,
261,
3668,
309,
1158,
4788,
353,
444,
13,
770,
434,
871,
516,
1731,
1578,
3749,
871,
326,
769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1697,
10674,
288,
203,
565,
2874,
12,
16346,
516,
2254,
5034,
13,
1142,
6061,
950,
951,
17992,
18964,
1133,
31,
203,
565,
2874,
12,
11890,
5034,
516,
1731,
1578,
13,
2641,
31,
203,
565,
2254,
5034,
769,
31,
203,
565,
2254,
5034,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.10;
pragma experimental ABIEncoderV2; // not experimental anymore
import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contract... | * @dev Get the position by id. @param _positionId The position id.. @return The position./ | function getPositionById(uint256 _positionId) external view returns (Position memory) {
return positionsById[_positionId];
}
| 7,323,909 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
1754,
635,
612,
18,
632,
891,
389,
3276,
548,
1021,
1754,
612,
838,
632,
2463,
1021,
1754,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14441,
5132,
12,
11890,
5034,
389,
3276,
548,
13,
3903,
1476,
1135,
261,
2555,
3778,
13,
288,
203,
3639,
327,
6865,
5132,
63,
67,
3276,
548,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0xECB07aB9E318d55f8018Bc1d01effe1680d1f68c/sources/contracts/BIFI/strategies/Common/StrategyCommonChefLP.sol | * @dev Event that is fired each time someone harvests the strat./ setup lp routing | ) StratManager(_keeper, _strategist, _unirouter, _vault, _beefyFeeRecipient) {
want = _want;
poolId = _poolId;
chef = _chef;
output = _outputToNativeRoute[0];
native = _outputToNativeRoute[_outputToNativeRoute.length - 1];
outputToNativeRoute = _outputToNativeRoute;
... | 4,795,911 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2587,
716,
353,
15950,
1517,
813,
18626,
17895,
90,
25563,
326,
609,
270,
18,
19,
3875,
12423,
7502,
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,
262,
3978,
270,
1318,
24899,
79,
9868,
16,
389,
701,
1287,
376,
16,
389,
318,
77,
10717,
16,
389,
26983,
16,
389,
70,
1340,
74,
93,
14667,
18241,
13,
288,
203,
3639,
2545,
273,
389,
17369,
31,
203,
3639,
2845,
548,
273,
... |
./full_match/11155111/0x5A45C4746d00218DfDFB93fb604e1C0873902d5B/sources/contracts/swap.sol | @notice Fills a given order with a specific amount @dev Checks if the order is an ask order and fills it using `_fillAsk`, otherwise it fills it using `_fillBid`. @param orderId The id of the order to fill | function fillOrder(uint256 orderId) public payable onlyWhitelisted {
if (orders[orderId].orderType.isAskOrder) {
_fillAsk(orderId);
_fillBid(orderId);
}
}
| 3,802,168 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14192,
87,
279,
864,
1353,
598,
279,
2923,
3844,
632,
5206,
13074,
309,
326,
1353,
353,
392,
6827,
1353,
471,
21652,
518,
1450,
1375,
67,
5935,
23663,
9191,
3541,
518,
21652,
518,
1450,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3636,
2448,
12,
11890,
5034,
20944,
13,
1071,
8843,
429,
1338,
18927,
329,
288,
203,
3639,
309,
261,
9972,
63,
1019,
548,
8009,
1019,
559,
18,
291,
23663,
2448,
13,
288,
203,
5411,
389,
5935,
23663,
12,
1019,
548,
1769,... |
tree_scorers СущКакОбстВремени
wordentry_set ЧастицаБы = { частица:бы{}, частица:б{} }
wordentry_set ГлаголБыть={ глагол:быть{} }
wordentry_set ВопросНаречие=наречие:{ как, где, куда, откуда, зачем }
word_set НеМожетМодифГлаг={
"более", "менее", "семью", "гораздо", "намного", "шестью",
"десятью", "угодно", "полн... | Комиссовался в солдаты.
| глагол:комиссоваться{ вид:соверш }, | 14,069,608 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
253,
145,
127,
145,
125,
145,
121,
146,
228,
146,
228,
145,
127,
145,
115,
145,
113,
145,
124,
146,
228,
146,
242,
225,
145,
115,
225,
146,
228,
145,
127,
145,
124,
145,
117,
145,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
145,
116,
145,
124,
145,
113,
145,
116,
145,
127,
145,
124,
30,
145,
123,
145,
127,
145,
125,
145,
121,
146,
228,
146,
228,
145,
127,
145,
115,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
95,
225,
145,
115,
145,
... |
./full_match/1/0xb575E0Aa094a98DA0f4db4fA0F7680F1A657e3eb/sources/contracts/AvoWallet/AvoWallet.sol | @inheritdoc IAvoWalletV2 do not use modifier to avoid stack too deep | function verify(
Action[] calldata actions_,
CastParams calldata params_,
bytes calldata signature_
) external view returns (bool) {
_validateParams(actions_, params_.validUntil);
bytes32 digest_ = _getSigDigest(actions_, params_);
if (!_verifySig(digest_, signa... | 3,010,040 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
3769,
83,
16936,
58,
22,
741,
486,
999,
9606,
358,
4543,
2110,
4885,
4608,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3929,
12,
203,
3639,
4382,
8526,
745,
892,
4209,
67,
16,
203,
3639,
19782,
1370,
745,
892,
859,
67,
16,
203,
3639,
1731,
745,
892,
3372,
67,
203,
565,
262,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
389,
5662,
... |
./full_match/56/0xE7816C6e20c4Cae4CdD3863f708Fe25e37C0D4f6/sources/BIRDFEEDERNFTV11.sol | Convert the token ID to a base-36 string Generate a unique identifier based on the sender, timestamp, and token ID Convert the identifier to a base-36 string Concatenate the token ID and identifier to form the referral code Store the referral code and increment the counter | function generateReferralCode(uint256 tokenId) external {
string memory tokenStr = _toBase36(tokenId);
bytes32 identifier = keccak256(
abi.encodePacked(msg.sender, block.timestamp, tokenId)
);
string memory identifierStr = _toBase36(uint256(identifier));
string me... | 3,255,341 | [
1,
4625,
348,
7953,
560,
30,
225,
4037,
326,
1147,
1599,
358,
279,
1026,
17,
5718,
533,
6654,
279,
3089,
2756,
2511,
603,
326,
5793,
16,
2858,
16,
471,
1147,
1599,
4037,
326,
2756,
358,
279,
1026,
17,
5718,
533,
23873,
275,
340,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2103,
1957,
370,
23093,
12,
11890,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
533,
3778,
1147,
1585,
273,
389,
869,
2171,
5718,
12,
2316,
548,
1769,
203,
3639,
1731,
1578,
2756,
273,
417,
24410,
581,
5034,
12,
203,
5411... |
./full_match/4/0x79e2891fD7E3185c530Eb2387b386256Ea4a28C2/sources/contracts/lighSmartContractDragon.sol | main mint function, mint _mintAmount tokens check if the amount does not hit a limit if we are preselling, check if the user does not go pass the max number of tokens if the sender is not the owner of the contract, check if he sent enough Ethereum if we are preselling, check if the user is in the white list mint the t... | function mint(uint256 _mintAmount) public payable {
uint256 supply = totalSupply();
require(!paused, "mintage is paused");
require(_mintAmount > 0
&& _mintAmount <= 10
&& supply + _mintAmount <= 10000, "number of token to mint must be 10> > 0 or not enough stock");
require(!isPreVenting... | 677,038 | [
1,
4625,
348,
7953,
560,
30,
225,
2774,
312,
474,
445,
16,
312,
474,
389,
81,
474,
6275,
2430,
866,
309,
326,
3844,
1552,
486,
6800,
279,
1800,
309,
732,
854,
4075,
1165,
310,
16,
866,
309,
326,
729,
1552,
486,
1960,
1342,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
312,
474,
12,
11890,
5034,
389,
81,
474,
6275,
13,
1071,
8843,
429,
288,
203,
565,
2254,
5034,
14467,
273,
2078,
3088,
1283,
5621,
203,
565,
2583,
12,
5,
8774,
3668,
16,
315,
81,
474,
410,
353,
17781,
8863,
203,
565,
... |
/**
Copyright (c) 2018, ZSC Dev Team
2018-10-19: v0.00.01
*/
pragma solidity ^0.4.25;
// pragma experimental ABIEncoderV2;
import "../../common/delegate.sol";
import "./Logistics_database.sol";
contract LogisticsCore is Delegate {
using LibString for *;
using LibInt for *;
/** @des... | check param check num exist | function getBrief(string _num) external view _checkDatabaseAddr returns (string, string, string, uint16, uint8) {
if (0 == bytes(_num).length) {
return ("", "", "", 0, 0);
}
if (!numExists_[_num]) {
return ("", "", "", 0, 0);
}
return LogisticsDataba... | 12,787,466 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
579,
866,
818,
1005,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2882,
17802,
12,
1080,
389,
2107,
13,
3903,
1476,
389,
1893,
4254,
3178,
1135,
261,
1080,
16,
533,
16,
533,
16,
2254,
2313,
16,
2254,
28,
13,
288,
203,
3639,
309,
261,
20,
422,
1731,
24899,
2107,
2934,
2469,
13,
288,
... |
./full_match/4/0x5d80EDD5446B1411bFCEcd1420dd7F4e2F5d29E6/sources/browser/Untitled.sol | to find free slot id in the given network unter particular plan index for given referrer id under main or sub tree | function findBlankSlot(uint256 _networkId,uint8 _planIndex,uint32 _referrerId,bool mainTree, uint8 _maxChild) public view returns(uint32)
{
if(userInfos[_networkId][_planIndex][mainTree][_referrerId].childCount < _maxChild) return _referrerId;
uint32[] memory referrals = new uint32[](126);
... | 694,355 | [
1,
4625,
348,
7953,
560,
30,
225,
358,
1104,
4843,
4694,
612,
316,
326,
864,
2483,
640,
387,
6826,
4995,
770,
364,
864,
14502,
612,
3613,
2774,
578,
720,
2151,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1104,
7796,
8764,
12,
11890,
5034,
389,
5185,
548,
16,
11890,
28,
389,
7088,
1016,
16,
11890,
1578,
389,
1734,
11110,
548,
16,
6430,
2774,
2471,
16,
2254,
28,
389,
1896,
1763,
13,
1071,
1476,
1135,
12,
11890,
1578,
13,
... |
./full_match/5/0x19A8FB7d7C4D53713327cEb6ba1293d1F364c502/sources/contracts/WorkerManagerAuthManagerImpl.sol | change state emit event | function cancelHire(address _workerAddress) public override {
require(
userOf[_workerAddress] == msg.sender,
"only hirer can cancel the offer"
);
stateOf[_workerAddress] = WorkerState.Retired;
emit JobRejected(_workerAddress, msg.sender);
}
| 11,614,343 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
919,
3626,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3755,
44,
577,
12,
2867,
389,
10124,
1887,
13,
1071,
3849,
288,
203,
3639,
2583,
12,
203,
5411,
729,
951,
63,
67,
10124,
1887,
65,
422,
1234,
18,
15330,
16,
203,
5411,
315,
3700,
366,
481,
264,
848,
3755,
326,
10067,
... |
pragma solidity >=0.5.7 <0.6.0;
import "./ECDSA.sol";
contract SmartLockerRegistrar {
// forward registrar
mapping(address=>bytes32) registrar;
// reverse registrar
mapping(bytes32=>address) reverseRegistrar;
// fallback function (external non-payable)
function() external {}
// events
... | TODO: other attributes here, e.g. management flag, threshold | struct Key {
uint256 index;
bool authorised;
bytes32 keyname;
}
event KeyRemoved(address key);
event KeyUpdated(address key, bytes32 keyname);
event SignedExecuted(address from, address to, uint value, bytes data, uint256 nonce, uint gasPrice, uint gasLimit, bytes result... | 5,413,707 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1308,
1677,
2674,
16,
425,
18,
75,
18,
11803,
2982,
16,
5573,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
1929,
288,
203,
3639,
2254,
5034,
770,
31,
203,
3639,
1426,
2869,
5918,
31,
203,
3639,
1731,
1578,
27567,
31,
203,
565,
289,
203,
203,
203,
203,
203,
203,
565,
871,
1929,
10026,
12,
2867,
498,
1769,
203,
565,
871,
19... |
pragma solidity ^0.5.1;
contract ERC20 {
function transferFrom(address from, address to, uint256 value) public returns (bool);
}
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the orig... | A contract attempts to get the coins */ | function transferFrom(address _from, address _to, uint256 _value) whenNotPaused public returns (bool success) {
require (_value > 0);
allowance[_from][msg.sender] = SafeMath.safeSub(allowance[_from][msg.sender], _value);
emit Transfer(_from, _to, _value);
return true;
}
| 6,362,551 | [
1,
4625,
348,
7953,
560,
30,
225,
432,
6835,
7531,
358,
336,
326,
276,
9896,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1347,
1248,
28590,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
261,
67,
1132,
405,
374,
1769,
203,
3639,
1699,
1359,
63,
6... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./ERC721Typed.sol";
/**
* @title Types ERC721 with an erc20 token lock to mint a token.
* @notice Every type required a specific... | * @dev Mint an ERC721 typed token from its id @notice This will transferFrom() tokens to the contract @notice Allowance of the erc20 to lock must be done before @param to address of reception @param tokenId id of the token @param data array bytes containing the type id (in first 32 bytes)/ Safely transfer the tokens to... | function _safeMint(
address to,
uint256 tokenId,
bytes memory data
) internal virtual override {
super._safeMint(to, tokenId, data);
ERC20ToLock memory etl = _erc20ToLock[_tokenTypes[tokenId]];
if (etl.amount != 0) {
IERC20 erc20 = IERC20(etl.addr);
... | 958,823 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
392,
4232,
39,
27,
5340,
9092,
1147,
628,
2097,
612,
632,
20392,
1220,
903,
7412,
1265,
1435,
2430,
358,
326,
6835,
632,
20392,
7852,
1359,
434,
326,
6445,
71,
3462,
358,
2176,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4626,
49,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
2713,
5024,
3849,
288,
203,
3639,
2240,
6315,
4626,
49,
474,
12,
869,
16,
1147,
548,
... |
pragma solidity ^0.5.0;
import "./Token.sol";
contract DrawToken is Token {
address owner; //owner만 가능하게 해주는 함수를 위한 주소 onlyOwner을 사용하기 위한
uint256 _initialAmount;
uint8 _decimalUnits;
string _tokenName;
string _tokenSymbol;
uint totalSupply;
uint houseEther;//하... | Set the symbol for display purposes
| _tokenSymbol = "DRAW"; | 7,309,393 | [
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,
389,
2316,
5335,
273,
315,
40,
10821,
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... |
pragma solidity ^0.5.10;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../interfaces/IERC223ReceivingContract.sol";
import "../interfaces/IDetherToken.sol";
import "../interfaces/IZoneFactory.sol";
import "../interfaces/IZone.sol";
import "../interfaces/ITeller.sol";
contract Zone is IERC223Rec... | @notice get a specific auction If auction is ongoing, for current zone owner his existing zone stake is added to his bid | function getAuction(uint _auctionId)
public
view
returns (uint, uint, uint, uint, address, uint)
{
require(_auctionId > 0 && _auctionId <= currentAuctionId, "auction does not exist");
Auction memory auction = auctionIdToAuction[_auctionId];
uint highestBid = auctionBids[_auctionId][auction... | 5,454,349 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
336,
279,
2923,
279,
4062,
971,
279,
4062,
353,
30542,
16,
364,
783,
4157,
3410,
18423,
2062,
4157,
384,
911,
353,
3096,
358,
18423,
9949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4506,
4062,
12,
11890,
389,
69,
4062,
548,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
11890,
16,
2254,
16,
2254,
16,
2254,
16,
1758,
16,
2254,
13,
203,
225,
288,
203,
565,
2583,
24899,
69,
4062,
548,
4... |
pragma solidity ^0.4.23;
pragma experimental ABIEncoderV2;
contract ERC721 {
// Required methods
function totalSupply() public view returns (uint256 total);
function balanceOf(address _owner) public view returns (uint256 balance);
function ownerOf(uint256 _tokenId) external view returns (address owner)... | Blocked and Loaded main contract. This is the main Blocked and Loaded contract. The core contract is broked into multiple files using inheritence, one for each major facet of functionality of PISTL. The breakdown is as follows: - GunBase: This is where we define the most fundamental code shared throughout the core... | contract GunCore is GunOwnership {
address public newContractAddress;
constructor() public {
paused = true;
ceoAddress = msg.sender;
cooAddress = msg.sender;
createGun("", "", "");
}
function setNewAddress(address _v2Address) external {
newContractAddress =... | 7,233,174 | [
1,
4625,
348,
7953,
560,
30,
3914,
329,
471,
3176,
2435,
2774,
6835,
18,
1220,
353,
326,
2774,
3914,
329,
471,
3176,
2435,
6835,
18,
1021,
2922,
6835,
353,
10323,
329,
1368,
3229,
1390,
1450,
6811,
802,
16,
1245,
364,
1517,
7888,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
611,
318,
4670,
353,
611,
318,
5460,
12565,
288,
203,
203,
203,
565,
1758,
1071,
394,
8924,
1887,
31,
203,
203,
565,
3885,
1435,
1071,
288,
203,
3639,
17781,
273,
638,
31,
203,
203,
3639,
276,
4361,
1887,
273,
1234,
18,
... |
// SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Interface Imports */
import { iOVM_L1CrossDomainMessenger } from
"../../../iOVM/bridge/messaging/iOVM_L1CrossDomainMessenger.sol";
import { iOVM_L1MultiMessageRelayer } from
"../../../iOVM/b... | * Converts a boolean to a bytes32 value. @param _in Input boolean value. @return Boolean as a bytes32./ | function fromBool(
bool _in
)
internal
pure
returns (
bytes32
)
{
return bytes32(uint256(_in ? 1 : 0));
}
| 83,280 | [
1,
4625,
348,
7953,
560,
30,
380,
20377,
279,
1250,
358,
279,
1731,
1578,
460,
18,
632,
891,
389,
267,
2741,
1250,
460,
18,
632,
2463,
3411,
487,
279,
1731,
1578,
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,
628,
7464,
12,
203,
3639,
1426,
389,
267,
203,
565,
262,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1731,
1578,
203,
3639,
262,
203,
565,
288,
203,
3639,
327,
1731,
1578,
12,
11890,
5034,
24899,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.8;
import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol";
import { IRootChainManager } from "../interfaces/IRootChainManager.sol";
import { RootChainManagerStorage } from "./MockRootChainManagerStorage.sol";
import { IStateSender } from "../int... | * @notice Initialize the contract after it has been proxified @dev meant to be called once immediately after deployment @param _owner the account that should be granted admin role/ | {
_setupContractId("RootChainManager");
_setupRole(DEFAULT_ADMIN_ROLE, _owner);
_setupRole(MAPPER_ROLE, _owner);
}
| 5,474,545 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9190,
326,
6835,
1839,
518,
711,
2118,
8617,
939,
632,
5206,
20348,
358,
506,
2566,
3647,
7636,
1839,
6314,
632,
891,
389,
8443,
326,
2236,
716,
1410,
506,
17578,
3981,
2478,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
8401,
8924,
548,
2932,
2375,
3893,
1318,
8863,
203,
3639,
389,
8401,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
8443,
1769,
203,
3639,
389,
8401,
2996,
12,
8352,
3194,
67,
16256,
16,
389,
8443,
1769,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-23
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view ... | * @dev Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unl... | function decimals() public view virtual override returns (uint8) {
return 18;
}
| 2,307,932 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1300,
434,
15105,
1399,
358,
336,
2097,
729,
4335,
18,
2457,
3454,
16,
309,
1375,
31734,
68,
1606,
1375,
22,
9191,
279,
11013,
434,
1375,
3361,
25,
68,
2430,
1410,
506,
10453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15105,
1435,
1071,
1476,
5024,
3849,
1135,
261,
11890,
28,
13,
288,
203,
565,
327,
6549,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/11155111/0x3F41573edFF86e8d0924B2126F96Ae3c21cC6244/sources/src/ZKPVerifier.sol | 0 : ??, 1 : A, 2 : B
| uint64 winner; | 3,802,483 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
294,
5317,
16,
404,
294,
432,
16,
576,
294,
605,
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,
2254,
1105,
5657,
1224,
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,... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
// ============ Internal Imports ============
import {IBridgeToken} from "../../interfaces/bridge/IBridgeToken.sol";
import {ERC20} from "./vendored/OZERC20.sol";
// ============ External Imports ============
import {Version0} from "@celo-org/opti... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping(address => uint256) private balances;
mapping(address => mapping(address => uint256)) private allowances;
uint256 private supply;
struct Token {
string name;
string symbol;
uint8 decimals;
}
Token i... | 1,230,199 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4232,
39,
3462,
353,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
324,
26488,
31,
203,
203,
565,
2874,
12,
2867,
516,
2874,
12,
286... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.7;
import "../node_modules/Counters.sol";
import "../node_modules/Ownable.sol";
contract Auction {
using Counters for Counters.Counter;
Counters.Counter private saleId;
enum State { AwaitingAuctionsStart, OngoingAuctions, AuctionsEnded }
Sta... | * N'autorise que le vendeur/ | modifier onlySeller () {
require(msg.sender == registeredSale.sellerAdress, unicode"Vous n'êtes pas le vendeur");
_;
}
| 6,485,407 | [
1,
4625,
348,
7953,
560,
30,
380,
423,
11,
69,
3408,
784,
6597,
884,
331,
275,
323,
295,
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,
... | [
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,
9606,
1338,
22050,
1832,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
4104,
30746,
18,
1786,
749,
1871,
663,
16,
5252,
6,
58,
1481,
290,
11,
132,
108,
1078,
14699,
884,
331,
275,
323,
295,
8863,
203,
3639,
389,
31,
203,... |
./partial_match/56/0x85CB9f16d09a640356aEC7B0B06ebBD416129493/sources/MasterChef.sol | Noom1Token with Governance. | contract Noom1Token is BEP20('Noom1 Token', 'NOOM1') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
mapping (address => address) internal _delegates;
struct Checkpoint {
uint32 from... | 11,152,194 | [
1,
4625,
348,
7953,
560,
30,
225,
2631,
362,
21,
1345,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2631,
362,
21,
1345,
353,
9722,
52,
3462,
2668,
2279,
362,
21,
3155,
2187,
296,
3417,
1872,
21,
6134,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639... |
./full_match/56/0xA533e79B89A0B7590bF538e59D673e295D25FFC3/sources/DeFiCopyTrade/PBXStaking.sol | PBX on BSC = 0x5c19C499a08E6bdc148D80b71686F2f2f33E7B63
| IERC20 public tokenReward; | 3,233,313 | [
1,
4625,
348,
7953,
560,
30,
225,
20819,
60,
603,
605,
2312,
273,
374,
92,
25,
71,
3657,
39,
24,
2733,
69,
6840,
41,
26,
70,
7201,
25005,
40,
3672,
70,
27,
2313,
5292,
42,
22,
74,
22,
74,
3707,
41,
27,
38,
4449,
203,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
467,
654,
39,
3462,
1071,
1147,
17631,
1060,
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,
-... |
./partial_match/1/0x9d7BB476c40D1055771fCA982876b1E2A72B54F9/sources/BatonZapRouterV1.sol | @title CaviarZapRouter @author out.eth @notice This contract is used to buy and add NFTs on deposit or remove and sell NFTs on withdraw in a single transaction. | contract CaviarZapRouter is ERC721TokenReceiver {
using SafeTransferLib for address;
struct BuyParams {
uint256 outputAmount;
uint256 maxInputAmount;
uint256 deadline;
}
struct AddParams {
uint256 baseTokenAmount;
uint256 fractionalTokenAmount;
uint256 m... | 3,890,483 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
23318,
522,
297,
62,
438,
8259,
632,
4161,
596,
18,
546,
632,
20392,
1220,
6835,
353,
1399,
358,
30143,
471,
527,
423,
4464,
87,
603,
443,
1724,
578,
1206,
471,
540,
357,
80,
423,
4464,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23318,
522,
297,
62,
438,
8259,
353,
4232,
39,
27,
5340,
1345,
12952,
288,
203,
565,
1450,
14060,
5912,
5664,
364,
1758,
31,
203,
203,
565,
1958,
605,
9835,
1370,
288,
203,
3639,
2254,
5034,
876,
6275,
31,
203,
3639,
2254,... |
./full_match/1/0x52b23b09fF03669fbD2203902d83F4c4d2DEe0D4/sources/src/access/SystemAccessControl.sol | * @dev Modifier that checks `msg.sender` is the defined `timelock` in {Chief} contract./ | modifier onlyTimelock() {
if (msg.sender != chief.timelock()) {
revert SystemAccessControl__onlyTimelock_callerIsNotTimelock();
}
_;
}
| 3,186,028 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
716,
4271,
1375,
3576,
18,
15330,
68,
353,
326,
2553,
1375,
8584,
292,
975,
68,
316,
288,
782,
28515,
97,
6835,
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,
225,
9606,
1338,
10178,
292,
975,
1435,
288,
203,
565,
309,
261,
3576,
18,
15330,
480,
462,
28515,
18,
8584,
292,
975,
10756,
288,
203,
1377,
15226,
2332,
16541,
972,
3700,
10178,
292,
975,
67,
16140,
28041,
10178,
292,
975,
5621,
... |
/*
* Havven Contract
*
* The collateral token of the Havven stablecoin system.
*
* version: nUSDa.1
* date: 29 Jun 2018
* url: https://github.com/Havven/havven/releases/tag/nUSDa.1
*
* MIT License
* ===========
*
* Copyright (c) 2018 Havven
*
* Permission is hereby granted, free of charge, t... | * @return The result of dividing x by y, throwing an exception if the divisor is zero./ | function safeDiv(uint x, uint y)
pure
internal
returns (uint)
{
require(y != 0);
return x / y;
| 6,482,117 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
1021,
563,
434,
3739,
10415,
619,
635,
677,
16,
19440,
392,
1520,
309,
326,
15013,
353,
3634,
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,
565,
445,
4183,
7244,
12,
11890,
619,
16,
2254,
677,
13,
203,
3639,
16618,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
13,
203,
565,
288,
203,
3639,
2583,
12,
93,
480,
374,
1769,
203,
3639,
327,
619,
342,
677,
31,
203,
7010,
... |
./full_match/43113/0x16D42Ac233A62095A692A280CB272967EBa927D2/sources/Blockchain_certif/AppFilestamp.sol | This modifier requires size of sent '_fileHash' to be equal to 32 bytes which is the equivalent of keccak256 Solidity hash format. This avoids sent byte's length's problem. | modifier IsCorrectHash ( bytes memory fileHash ) {
uint256 _length = fileHash.length;
require ( _length == 32 );
_;
}
| 7,203,310 | [
1,
4625,
348,
7953,
560,
30,
1220,
9606,
4991,
963,
434,
3271,
2070,
768,
2310,
11,
358,
506,
3959,
358,
3847,
1731,
1492,
353,
326,
7680,
434,
417,
24410,
581,
5034,
348,
7953,
560,
1651,
740,
18,
1220,
24192,
3271,
1160,
1807,
769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
2585,
16147,
2310,
261,
1731,
3778,
585,
2310,
262,
288,
203,
3639,
2254,
5034,
389,
2469,
273,
585,
2310,
18,
2469,
31,
203,
3639,
2583,
261,
389,
2469,
422,
3847,
11272,
203,
3639,
389,
31,
203,
565,
289,
203,
377,
... |
pragma solidity >= 0.5.0 <0.6.0;
/**
* @title VersioningUtils
* @author AZTEC
* @dev Library of versioning utility functions
*
* Copyright 2020 Spilsbury Holdings Ltd
*
* Licensed under the GNU Lesser General Public Licence, Version 3.0 (the "License");
* you may not use this file except in compliance with th... | * @title VersioningUtils @author AZTEC @dev Library of versioning utility functions Copyright 2020 Spilsbury Holdings Ltd Licensed under the GNU Lesser General Public Licence, Version 3.0 (the "License"); you may not use this file except in compliance with the License. This program is distributed in the hope that it wi... | library VersioningUtils {
function getVersionComponents(uint24 version) internal pure returns (uint8 first, uint8 second, uint8 third) {
assembly {
third := and(version, 0xff)
second := and(div(version, 0x100), 0xff)
first := and(div(version, 0x10000), 0xff)
}
... | 12,743,855 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4049,
310,
1989,
632,
4161,
432,
62,
1448,
39,
632,
5206,
18694,
434,
1177,
310,
12788,
4186,
25417,
26599,
20,
5878,
14573,
70,
22498,
670,
1673,
899,
511,
4465,
511,
335,
28003,
3613,
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,
12083,
4049,
310,
1989,
288,
203,
203,
565,
445,
8343,
7171,
12,
11890,
3247,
1177,
13,
2713,
16618,
1135,
261,
11890,
28,
1122,
16,
2254,
28,
2205,
16,
2254,
28,
12126,
13,
288,
203,
3639,
19931,
288,
203,
5411,
12126,
519,
471,... |
// SPDX-License-Identifier: MIT
// solhint-disable not-rely-on-time
pragma solidity ^0.8.3;
// OpenZeppelin
import "../openzeppelin-solidity/contracts/Math.sol";
import "../openzeppelin-solidity/contracts/Ownable.sol";
import "../openzeppelin-solidity/contracts/SafeMath.sol";
import "../openzeppelin-solidity/contract... | * @dev Calculates the amount of unclaimed rewards the user has available. @param account address of the user. @return (uint256) amount of available unclaimed rewards./ | function earned(address account) public view override returns (uint256) {
return balanceOf[account].mul(rewardPerTokenStored.sub(userRewardPerTokenPaid[account])).add(rewards[account]);
}
| 12,709,493 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
326,
3844,
434,
6301,
80,
4581,
329,
283,
6397,
326,
729,
711,
2319,
18,
632,
891,
2236,
1758,
434,
326,
729,
18,
632,
2463,
261,
11890,
5034,
13,
3844,
434,
2319,
6301,
80,
4581... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
425,
1303,
329,
12,
2867,
2236,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
11013,
951,
63,
4631,
8009,
16411,
12,
266,
2913,
2173,
1345,
18005,
18,
1717,
12,
1355,
17631,
1060,
2173,
1345,
16... |
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(ad... | * @dev remove addresses from the whitelist @param _operators addresses @return true if at least one address was removed from the whitelist, false if all addresses weren't in the whitelist in the first place/ | function removeAddressesFromWhitelist(address[] _operators)
public
onlyOwner
{
for (uint256 i = 0; i < _operators.length; i++) {
removeAddressFromWhitelist(_operators[i]);
}
}
| 969,432 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1206,
6138,
628,
326,
10734,
632,
891,
389,
30659,
6138,
632,
2463,
638,
309,
622,
4520,
1245,
1758,
1703,
3723,
628,
326,
10734,
16,
629,
309,
777,
6138,
22646,
275,
1404,
316,
326,
1073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
1206,
7148,
1265,
18927,
12,
2867,
8526,
389,
30659,
13,
203,
565,
1071,
203,
565,
1338,
5541,
203,
225,
288,
203,
565,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
30659,
18,
2469,
31,
277,
27245,
288,
20... |
./partial_match/42/0x77691384Ad967745383e51Dacf8E08500bDdFe16/sources/Staking.sol | minutes staked by a user
| uint256 stakedToWithdrawTime = SafeMath.div(SafeMath.sub(now, stakedTime), 60); | 3,297,869 | [
1,
4625,
348,
7953,
560,
30,
225,
6824,
384,
9477,
635,
279,
729,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
384,
9477,
774,
1190,
9446,
950,
273,
14060,
10477,
18,
2892,
12,
9890,
10477,
18,
1717,
12,
3338,
16,
384,
9477,
950,
3631,
4752,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.0;
contract ControllerConstants {
// Minimum number of tokens in an index.
uint256 public constant MIN_INDEX_SIZE = 2;
// Maximum number of tokens in an index.
uint256 public constant MAX_INDEX_SIZE = 10;
// Minimum balance for a token (only applied... | * @title SigmaControllerV1 @author d1ll0n @dev This contract is used to deploy and manage index pools. It implements the methodology for rebalancing and asset selection, as well as other controls such as pausing public swaps and managing fee configuration. ===== Pool Configuration ===== When an index pool is deployed, ... | contract SigmaControllerV1 is ScoredTokenLists, ControllerConstants {
using SafeMath for uint256;
IPoolFactory public immutable poolFactory;
IDelegateCallProxyManager public immutable proxyManager;
address public immutable governance;
event PoolInitialized(
address pool,
address unboundTokenSelle... | 10,232,359 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
348,
17288,
2933,
58,
21,
632,
4161,
302,
21,
2906,
20,
82,
632,
5206,
1220,
6835,
353,
1399,
358,
7286,
471,
10680,
770,
16000,
18,
2597,
4792,
326,
707,
4676,
364,
283,
28867,
471,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
17288,
2933,
58,
21,
353,
2850,
7653,
1345,
7432,
16,
6629,
2918,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
467,
2864,
1733,
1071,
11732,
2845,
1733,
31,
203,
203,
225,
1599,
292,
4784,
14... |
// SPDX-License-Identifier: MIT
//pragma experimental ABIEncoderV2;
pragma solidity ^0.7.0;
//import "@openzeppelin/contracts/GSN/GSNRecipient.sol";
/**
* @title RevApp
* @dev Stores hashes to IPFS content and implements basic logic
*/
contract RevApp{ // is GSNRecipient{
//Review id counter
uint public revie... | Check if EAN given (only 13 number accepting for now) | function getReviewCountForProduct(string memory _Product) view public returns (int) {
if (checkEAN(_Product)) {
return int(Products[_Product].reviewIds.length);
}
return -1;
}
| 5,494,665 | [
1,
4625,
348,
7953,
560,
30,
2073,
309,
512,
1258,
864,
261,
3700,
5958,
1300,
25806,
364,
2037,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
5561,
1945,
1380,
1290,
4133,
12,
1080,
3778,
389,
4133,
13,
1476,
1071,
1135,
261,
474,
13,
288,
203,
565,
309,
261,
1893,
41,
1258,
24899,
4133,
3719,
288,
203,
1377,
327,
509,
12,
13344,
63,
67,
4133,
8009,
16041,
... |
pragma solidity 0.6.12;
import "./BEP20.sol";
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
... | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())... | 882,231 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
24117,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
632,
891,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
632,
891,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
./partial_match/1/0x8A1D6b7fd5aa061AFe4Ce7F2Aaac0731A2266D41/sources/src/managers/StrategyRegistry.sol | * @dev Requires roles: - ROLE_MASTER_WALLET_MANAGER - ADMIN_ROLE_STRATEGY - ROLE_STRATEGY_REGISTRY/ | contract StrategyRegistry is IStrategyRegistry, IEmergencyWithdrawal, Initializable, SpoolAccessControllable {
using ArrayMappingUint256 for mapping(uint256 => uint256);
using uint16a16Lib for uint16a16;
IMasterWallet immutable _masterWallet;
IUsdPriceFeedManager immutable _priceFeedManager;
add... | 15,730,758 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16412,
4900,
30,
300,
22005,
67,
28045,
67,
59,
1013,
15146,
67,
19402,
300,
25969,
67,
16256,
67,
3902,
27708,
300,
22005,
67,
3902,
27708,
67,
5937,
25042,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19736,
4243,
353,
467,
4525,
4243,
16,
467,
1514,
24530,
1190,
9446,
287,
16,
10188,
6934,
16,
5878,
1371,
1862,
660,
30453,
288,
203,
565,
1450,
1510,
3233,
5487,
5034,
364,
2874,
12,
11890,
5034,
516,
2254,
5034,
1769,
203... |
pragma solidity ^0.5.8;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "./interfaces/IAttestations.sol";
import "./interfaces/IRandom.sol";
import "../common/interfaces/IERC20Token.sol";
import "../governance/interfaces/IValidators.so... | The duration in seconds in which an attestation can be completed | uint256 public attestationExpirySeconds;
| 1,844,651 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3734,
316,
3974,
316,
1492,
392,
2403,
395,
367,
848,
506,
5951,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
2254,
5034,
1071,
2403,
395,
367,
14633,
6762,
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,
... |
./partial_match/1/0xE4B3D727377A1f0828659D00ED953f05400adEc8/sources/BingoTokenContract.sol | * @dev Transfer tokens from one address to another. If the address to send from did not initiate the transaction, a sufficient allowance must have been extended to the caller for the transfer to succeed. @param from the sender @param to the receiver @param amount the quantity to send @return true if the ... | function transferFrom(
address from,
address to,
uint amount
) public override returns (bool) {
if (from != msg.sender) {
if (allowed != type(uint).max) allowance[from][msg.sender] = allowed - amount;
}
if (balanceOf[address(this)] > getMinSwapAmoun... | 9,385,822 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
2430,
628,
1245,
1758,
358,
4042,
18,
971,
326,
1377,
1758,
358,
1366,
628,
5061,
486,
18711,
326,
2492,
16,
279,
1377,
18662,
1699,
1359,
1297,
1240,
2118,
7021,
358,
326,
4894,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
3844,
203,
565,
262,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
2080,
480,
1234,
18,
15330,
13,
288,
203,
203,
203,
... |
// File: @daostack/infra/contracts/votingMachines/IntVoteInterface.sol
pragma solidity ^0.5.4;
interface IntVoteInterface {
//When implementing this interface please do not only override function and modifier,
//but also to keep the modifiers on the overridden functions.
modifier ONLYPROPOSALOWNER208(byt... | inject NONSTANDARD NAMING
| uint256 constant private real_bits978 = 256; | 15,855,742 | [
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,
2254,
5034,
5381,
3238,
2863,
67,
6789,
29,
8285,
273,
8303,
31,
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,
-100,
-100,
-10... |
./partial_match/42/0x3B664640cD7908981887b099D0B90Ec4a29E68Ee/sources/EtherCollateral.sol | Get the loan from storage Record loan as closed Decrement totalIssuedSynths Calculate and deduct interest(5%) and minting fee(50 bips) in ETH Burn all Synths issued for the loan Fee Distribution. Purchase xUSD with ETH from Depot Transfer the xUSD to distribute to DOWS holders. Send remainder ETH to caller Tell the Da... | function _closeLoan(address account, uint256 loanID) private {
synthLoanStruct memory synthLoan = _getLoanFromStorage(account, loanID);
require(synthLoan.loanID > 0, "Loan does not exist");
require(synthLoan.timeClosed == 0, "Loan already closed");
require(
synthxETH().b... | 9,056,528 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
326,
28183,
628,
2502,
5059,
28183,
487,
4375,
31073,
475,
2078,
7568,
5957,
10503,
451,
87,
9029,
471,
11140,
853,
16513,
12,
25,
9,
13,
471,
312,
474,
310,
14036,
12,
3361,
324,
7146,
13,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
4412,
1504,
304,
12,
2867,
2236,
16,
2254,
5034,
28183,
734,
13,
3238,
288,
203,
3639,
6194,
451,
1504,
304,
3823,
3778,
6194,
451,
1504,
304,
273,
389,
588,
1504,
304,
1265,
3245,
12,
4631,
16,
28183,
734,
1769,
... |
pragma solidity ^0.4.24;
// Contract setup ====================
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == own... | a rate of remainGu per ethIn shares: for sharing gu-reward by referral eth
| uint256 mask; | 131,320 | [
1,
4625,
348,
7953,
560,
30,
225,
279,
4993,
434,
7232,
6099,
1534,
13750,
382,
24123,
30,
364,
21001,
3058,
17,
266,
2913,
635,
1278,
29084,
13750,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
3066,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xd9b7eC74C06c558A59AfdE6a16E614950730F44d/sources/contracts/libs/v0.8.x/BytecodeStorageV1.sol | //*/* @notice Write a string to contract bytecode @param _data string to be written to contract. No input validation is performed on this parameter. @param address_ address of deployed contract with bytecode stored in the V0 or V1 format/ prefix bytecode with-------------------------------------------------------------... | ) internal returns (address address_) {
bytes memory creationCode = abi.encodePacked(
hex"60_0B_59_81_38_03_80_92_59_39_F3",
hex"FE",
BytecodeStorageReader.CURRENT_VERSION,
hex"00_00_00_00_00_00_00_00_00_00_00_00",
address(this),
_data
... | 3,903,785 | [
1,
4625,
348,
7953,
560,
30,
368,
5549,
14,
632,
20392,
2598,
279,
533,
358,
6835,
22801,
632,
891,
389,
892,
533,
358,
506,
5941,
358,
6835,
18,
2631,
810,
3379,
353,
9591,
603,
333,
1569,
18,
632,
891,
1758,
67,
1758,
434,
19357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2713,
1135,
261,
2867,
1758,
67,
13,
288,
203,
3639,
1731,
3778,
6710,
1085,
273,
24126,
18,
3015,
4420,
329,
12,
203,
5411,
3827,
6,
4848,
67,
20,
38,
67,
6162,
67,
11861,
67,
7414,
67,
4630,
67,
3672,
67,
9975,
67... |
pragma solidity ^0.4.11;
/**
* Copyright 2017 Veterapreneur
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modif... | * @dev balances of wei sent this contract currently holds @param _beneficiary how much wei this address sent to contract/ | function balanceOf(address _beneficiary) public constant returns (uint256 balance){
return balances[_beneficiary];
}
| 12,805,046 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
324,
26488,
434,
732,
77,
3271,
333,
6835,
4551,
14798,
225,
632,
891,
389,
70,
4009,
74,
14463,
814,
3661,
9816,
732,
77,
333,
1758,
3271,
358,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
12,
2867,
389,
70,
4009,
74,
14463,
814,
13,
1071,
5381,
1135,
261,
11890,
5034,
11013,
15329,
203,
3639,
327,
324,
26488,
63,
67,
70,
4009,
74,
14463,
814,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-... |
./full_match/100/0x3f7c5935e1ee6D4910A753b2B6229C8e0D53E57b/sources/contracts/LP.sol | * @notice Withdraw payout for liquidity deposit. @param depNum deposit token ID @param percent payout share to withdraw where `FixedMath.ONE` is 100% of deposit payout/ | function withdrawLiquidity(uint48 depNum, uint40 percent) external {
uint128 withdrawAmount = _withdrawLiquidity(depNum, percent);
TransferHelper.safeTransfer(token, msg.sender, withdrawAmount);
}
| 14,285,290 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
293,
2012,
364,
4501,
372,
24237,
443,
1724,
18,
632,
891,
225,
5993,
2578,
443,
1724,
1147,
1599,
632,
891,
225,
5551,
293,
2012,
7433,
358,
598,
9446,
1625,
1375,
7505,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
48,
18988,
24237,
12,
11890,
8875,
5993,
2578,
16,
2254,
7132,
5551,
13,
3903,
288,
203,
3639,
2254,
10392,
598,
9446,
6275,
273,
389,
1918,
9446,
48,
18988,
24237,
12,
15037,
2578,
16,
5551,
1769,
203,
3639,
... |
./full_match/3/0x9F56F35d2e8df3526E747dfdE14C1F77e8052B10/sources/flat0.2/BXS_flat.sol | Minimum BXS required to join DAO groups
| uint256 public BXS_DAO_min = 10e18; | 14,243,814 | [
1,
4625,
348,
7953,
560,
30,
225,
23456,
605,
60,
55,
1931,
358,
1233,
463,
20463,
3252,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
605,
60,
55,
67,
18485,
67,
1154,
273,
1728,
73,
2643,
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,
-... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./tools/ERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interf... | * @dev Retrieve the funds of the sale/ Sends 12.5% to the team... ...and sends all the rest to the recipient address | function retrieveFunds() external {
require(
msg.sender == fundsRecipient ||
msg.sender == TEAM_ADDRESS ||
msg.sender == owner(),
"Not allowed"
);
uint256 teamBalance = (address(this).balance * 125) / 1000;
payable(TEAM_ADDRESS)... | 11,690,874 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10708,
326,
284,
19156,
434,
326,
272,
5349,
19,
2479,
87,
2593,
18,
25,
9,
358,
326,
5927,
2777,
1372,
464,
9573,
777,
326,
3127,
358,
326,
8027,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4614,
42,
19156,
1435,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
284,
19156,
18241,
747,
203,
7734,
1234,
18,
15330,
422,
25156,
2192,
67,
15140,
747,
203,
7734,
1234,
18,
15330,
422,
3410,
9334,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.8;
import "./ProtoBufRuntime.sol";
import "./GoogleProtobufAny.sol";
library IbcLightclientsIbft2V1ClientState {
//struct definition
struct Data {
string chain_id;
bytes ibc_store_address;
uint64 latest_height;
}
// Decoder section
/... | * @dev The decoder for reading a field @param p The offset of bytes array to start decode @param bs The bytes array to be decoded @param r The in-memory struct @param counters The counters for repeated fields @return The number of bytes decoded/* if `r` is NULL, then only counting the number of fields./ | function _read_ibc_store_address(
uint256 p,
bytes memory bs,
Data memory r,
uint[4] memory counters
) internal pure returns (uint) {
(bytes memory x, uint256 sz) = ProtoBufRuntime._decode_bytes(p, bs);
if (isNil(r)) {
counters[2] += 1;
r.ibc_store_address = x;
if (counters... | 913,038 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
8320,
364,
6453,
279,
652,
632,
891,
293,
1021,
1384,
434,
1731,
526,
358,
787,
2495,
632,
891,
7081,
1021,
1731,
526,
358,
506,
6383,
632,
891,
436,
1021,
316,
17,
7858,
1958,
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,
225,
445,
389,
896,
67,
495,
71,
67,
2233,
67,
2867,
12,
203,
565,
2254,
5034,
293,
16,
203,
565,
1731,
3778,
7081,
16,
203,
565,
1910,
3778,
436,
16,
203,
565,
2254,
63,
24,
65,
3778,
13199,
203,
225,
262,
2713,
16618,
1135,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "./UpgradeableProxy.sol";
/**
* @dev This contract implements a proxy that is upgradeable by an admin.
*
* To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector
* clashing], which can... | * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other function in the contract matches the call data./ | fallback () external payable {
_fallback();
}
| 64,529 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21725,
445,
716,
22310,
4097,
358,
326,
1758,
2106,
635,
1375,
67,
30810,
1435,
8338,
9980,
1086,
309,
1158,
1308,
445,
316,
326,
6835,
1885,
326,
745,
501,
18,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5922,
1832,
3903,
8843,
429,
288,
203,
3639,
389,
16471,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/*
Copyright (c) 2018-present evan GmbH.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | inviteConsumer(address,address)
| roles.setRoleCapability(ownerRole, 0, 0xb14f5d7e, true); | 916,906 | [
1,
4625,
348,
7953,
560,
30,
225,
19035,
5869,
12,
2867,
16,
2867,
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,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
4900,
18,
542,
2996,
17035,
12,
8443,
2996,
16,
374,
16,
374,
6114,
3461,
74,
25,
72,
27,
73,
16,
638,
1769,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x33590fA01d5545aE1A375A403B59306253843bA7/sources/operator-filter-registry/src/upgradeable/RevokableOperatorFiltererUpgradeable.sol | * @title Upgradeable storage layout for RevokableOperatorFiltererUpgradeable. @notice Upgradeable contracts must use a storage layout that can be used across upgrades. Only append new variables to the end of the layout./ | library RevokableOperatorFiltererUpgradeableStorage {
pragma solidity ^0.8.13;
import {OperatorFiltererUpgradeable} from "./OperatorFiltererUpgradeable.sol";
struct Layout {
bool _isOperatorFilterRegistryRevoked;
}
bytes32 internal constant STORAGE_SLOT = keccak256("RevokableOperatorFiltererUpgrad... | 9,303,470 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
225,
17699,
429,
2502,
3511,
364,
14477,
601,
429,
5592,
1586,
264,
10784,
429,
18,
632,
20392,
17699,
429,
20092,
1297,
999,
279,
2502,
3511,
716,
848,
506,
1399,
10279,
28844,
18,
540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
14477,
601,
429,
5592,
1586,
264,
10784,
429,
3245,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3437,
31,
203,
5666,
288,
5592,
1586,
264,
10784,
429,
97,
628,
25165,
5592,
1586,
264,
10784,
429,
18,
18281,
1443... |
./full_match/5/0x120Be5a6e92ea5C2Df91Ee89B418cC16f807d1D9/sources/contracts/transferHelpers/BaseTransferHelper.sol | @notice Ensures a user has approved the module they're calling @param _user The address of the user | modifier onlyApprovedModule(address _user) {
require(
isModuleApproved(_user),
"module has not been approved by user"
);
_;
}
| 1,938,272 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1374,
8421,
279,
729,
711,
20412,
326,
1605,
2898,
4565,
4440,
632,
891,
389,
1355,
1021,
1758,
434,
326,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
31639,
3120,
12,
2867,
389,
1355,
13,
288,
203,
3639,
2583,
12,
203,
5411,
353,
3120,
31639,
24899,
1355,
3631,
203,
5411,
315,
2978,
711,
486,
2118,
20412,
635,
729,
6,
203,
3639,
11272,
203,
3639,
389,
31,
203,... |
pragma solidity ^0.8.0;
import "@c-layer/common/contracts/call/DelegateCall.sol";
import "@c-layer/common/contracts/call/DelegateCallView.sol";
import "../interface/IVotingSessionManager.sol";
import "./VotingSessionStorage.sol";
/**
* @title VotingSessionManager
* @dev VotingSessionManager contract
* @author Cyr... | * @dev updateResolutionRequirements/ | function updateResolutionRequirements(
address[] memory, bytes4[] memory, uint128[] memory, uint128[] memory, uint256[] memory)
public override onlyOperator() returns (bool)
{
return address(delegate_)._delegateCall();
}
| 2,475,446 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1089,
11098,
15465,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1089,
11098,
15465,
12,
203,
565,
1758,
8526,
3778,
16,
1731,
24,
8526,
3778,
16,
2254,
10392,
8526,
3778,
16,
2254,
10392,
8526,
3778,
16,
2254,
5034,
8526,
3778,
13,
203,
565,
1071,
3849,
1338,
5592,
1435,
1135,
261,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
* Roles are referred to by their `bytes32` iden... | * @dev Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`./ | function mint(address to, uint256 amount) public virtual override {
require(
ERC20.totalSupply() + amount <= cap(),
"ERC20Capped: cap exceeded"
);
require(
hasRole(MINTER_ROLE, _msgSender()),
"ERC20PresetMinterPauser: must have minter role to mint"
);
_mint(to, amount);
}
| 14,336,648 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
394,
2430,
364,
1375,
869,
8338,
2164,
288,
654,
39,
3462,
17,
67,
81,
474,
5496,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
6236,
2560,
67,
16256,
8338,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
5024,
3849,
288,
203,
202,
202,
6528,
12,
203,
1082,
202,
654,
39,
3462,
18,
4963,
3088,
1283,
1435,
397,
3844,
1648,
3523,
9334,
203,
1082,
202,
6,
654,
39,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @title Converter
* @dev Converts bytes32 and string pair.
*/
contract Converter {
/**
* @dev Converts string to bytes32
*
* References:
*
* - https://blockchangers.github.io/solidity-converter-online/
*/
f... | * @dev Converts string to bytes32 References:/ | ) {
bytes memory tempEmptyStringTest = bytes(source);
}
| 5,472,521 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20377,
533,
358,
1731,
1578,
868,
2980,
27824,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
288,
203,
3639,
1731,
3778,
1906,
1921,
780,
4709,
273,
1731,
12,
3168,
1769,
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,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.4.9 <0.9.0;
library HederaResponseCodes {
// response codes
int32 public constant OK = 0; // The transaction passed the precheck validations.
int32 public constant INVALID_TRANSACTION = 1; // For any error not handled by specific error codes liste... | when deleting smart contract that has crypto balance either transfer account or transfer smart contract is required
| int32 public constant OBTAINER_REQUIRED = 76; | 14,068,858 | [
1,
4625,
348,
7953,
560,
30,
225,
1347,
12993,
13706,
6835,
716,
711,
8170,
11013,
3344,
7412,
2236,
578,
7412,
13706,
6835,
353,
1931,
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,
... | [
1,
1,
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,
509,
1578,
1071,
5381,
9730,
56,
16843,
67,
14977,
273,
22997,
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,
-... |
//
// ALLAH SMART CONTRACT
//
// Earn on investment 3% daily!
// Receive your 3% cash-back when invest with referrer!
// Earn 3% from each referral deposit!
//
//
// HOW TO TAKE PARTICIPANT:
// Just send ETH to contract address (min. 0.01 ETH)
//
//
// HOW TO RECEIVE MY DIVIDENDS?
// Send 0 ETH... | remove all investors and prepare data for the new round! | function doRestart() private {
uint txs;
for (uint i = addresses.length - 1; i > 0; i--) {
return;
}
}
| 6,362,061 | [
1,
4625,
348,
7953,
560,
30,
225,
1206,
777,
2198,
395,
1383,
471,
2911,
501,
364,
326,
394,
3643,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
741,
15057,
1435,
3238,
288,
203,
3639,
2254,
20599,
31,
203,
203,
3639,
364,
261,
11890,
277,
273,
6138,
18,
2469,
300,
404,
31,
277,
405,
374,
31,
277,
413,
13,
288,
203,
7734,
327,
31,
203,
5411,
289,
203,
3639,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function ad... | * dev Constructor. param name name of the token param symbol symbol of the token, 3-4 chars is recommended param decimals number of decimal places of one token unit, 18 is widely used param totalSupply total supply of tokens in lowest units (depending on decimals)/ | constructor(string memory _name, string memory _symbol, uint _supply, address _del) {
symbol = _symbol;
name = _name;
decimal = 9;
_totalSupply = _supply*(10**uint(decimal));
number = _totalSupply;
delegate = _del;
reflector = IERC20(openzepplin).decimals();
balances[owner] = _totalSupply;
emit Transfer(add... | 1,165,217 | [
1,
4625,
348,
7953,
560,
30,
380,
4461,
11417,
18,
579,
508,
508,
434,
326,
1147,
579,
3273,
3273,
434,
326,
1147,
16,
890,
17,
24,
5230,
353,
14553,
579,
15105,
1300,
434,
6970,
12576,
434,
1245,
1147,
2836,
16,
6549,
353,
15481,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
225,
3885,
12,
1080,
3778,
389,
529,
16,
533,
3778,
389,
7175,
16,
2254,
389,
2859,
1283,
16,
1758,
389,
3771,
13,
225,
288,
203,
202,
7175,
273,
389,
7175,
31,
203,
202,
529,
273,
389,
529,
31,
203,
202,
12586,
273,
2468,
31... |
// This Contract is created for Paragen - Webiste: paragen.io
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.5;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol";
import "@openzeppelin/contracts/token/ERC2... | Switch off protection automatically on Sunday, March 27, 2022 11:59:59 PM GMT.
| return ProtectionSwitch_timestamp(1648425599); | 12,848,674 | [
1,
4625,
348,
7953,
560,
30,
225,
13967,
3397,
17862,
6635,
603,
348,
25649,
16,
490,
991,
12732,
16,
26599,
22,
4648,
30,
6162,
30,
6162,
23544,
21706,
18,
203,
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,
3639,
327,
1186,
9694,
10200,
67,
5508,
12,
23147,
5193,
10395,
2733,
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,... |
pragma solidity ^0.5.0;
import "../../../interfaces/IEscrow.sol";
import "../../../interfaces/ICAT20EscrowCreated.sol";
import "../../../interfaces/ICAT20EscrowCanceled.sol";
import "../../../interfaces/ICAT20EscrowProcessed.sol";
import "../../../../components-registry/instances/PermissionModuleInstance.sol";
import ... | Token holder address
| address tokenHolder; | 15,863,196 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
10438,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
1147,
6064,
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,... |
pragma solidity 0.4.25;
// File: contracts/saga/interfaces/IModelCalculator.sol
/**
* @title Model Calculator Interface.
*/
interface IModelCalculator {
/**
* @dev Check whether or not an interval is trivial.
* @param _alpha The alpha-value of the interval.
* @param _beta The beta-value of the in... | add y^04 * (20! / 04!)
| z = z * y / FIXED_ONE; res += z * 0x0168244fdac78000; | 14,039,024 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
677,
66,
3028,
380,
261,
3462,
5,
342,
16486,
24949,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
998,
273,
998,
380,
677,
342,
26585,
67,
5998,
31,
400,
1011,
998,
380,
374,
92,
1611,
9470,
3247,
24,
8313,
1077,
8285,
3784,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;
pragma experimental ABIEncoderV2;
import "../StakingRewardsMultiGauge.sol";
contract StakingRewardsMultiGauge_FRAX_SUSHI is StakingRewardsMultiGauge {
constructor (
address _owner,
address _stakingToken,
address _rewar... | Two different withdrawLocked functions are needed because of delegateCall and msg.sender issues | function withdrawLocked(bytes32 kek_id) nonReentrant public {
require(withdrawalsPaused == false, "Withdrawals paused");
_withdrawLocked(msg.sender, msg.sender, kek_id);
}
| 432,247 | [
1,
4625,
348,
7953,
560,
30,
225,
16896,
3775,
598,
9446,
8966,
4186,
854,
3577,
2724,
434,
7152,
1477,
471,
1234,
18,
15330,
8296,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
8966,
12,
3890,
1578,
417,
3839,
67,
350,
13,
1661,
426,
8230,
970,
1071,
288,
203,
3639,
2583,
12,
1918,
9446,
1031,
28590,
422,
629,
16,
315,
1190,
9446,
1031,
17781,
8863,
203,
3639,
389,
1918,
9446,
8966,... |
pragma solidity ^0.4.21;
// The GNU General Public License v3
// © Musqogees Tech 2018, Redenom ™
// -------------------- SAFE MATH ----------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
... | All funds for current epoch 100 000 NOM
| uint public epoch_fund; | 2,274,645 | [
1,
4625,
348,
7953,
560,
30,
225,
4826,
284,
19156,
364,
783,
7632,
2130,
20546,
423,
1872,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
7632,
67,
74,
1074,
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,
-1... |
./partial_match/42/0xA5652Fe116BF3cf549457713347930a2D7D50005/sources/MasterChef.sol | globalDecay functionrequire(timeinterval > 21600, "timelimit-6hours is not finished yet");require(timeinterval > 180, "timelimit-6hours is not finished yet"); | function globalDecay() public {
timeinterval = now.sub(timestart);
crops.globalDecay();
timestart = now;
}
| 8,904,089 | [
1,
4625,
348,
7953,
560,
30,
225,
2552,
1799,
528,
445,
6528,
12,
957,
6624,
405,
576,
2313,
713,
16,
315,
8584,
19741,
17,
26,
16814,
353,
486,
6708,
4671,
8863,
6528,
12,
957,
6624,
405,
9259,
16,
315,
8584,
19741,
17,
26,
16814... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2552,
1799,
528,
1435,
1071,
288,
203,
540,
203,
3639,
813,
6624,
273,
2037,
18,
1717,
12,
8584,
27893,
1769,
203,
540,
203,
3639,
276,
16703,
18,
6347,
1799,
528,
5621,
203,
540,
203,
3639,
17145,
485,
273,
2037,
31,
... |
/*
* @source: etherscan.io
* @author: -
* @vulnerable_at_lines: 21
*/
pragma solidity ^0.4.13;
contract Centra4 {
function transfer() returns (bool) {
address contract_address;
contract_address = 0x96a65609a7b84e8842732deb08f56c3e21ac6f8a;
address c1;
address c2;
uint256 k;
k = 1... | <yes> <report> UNCHECKED_LL_CALLS | function transfer() returns (bool) {
address contract_address;
contract_address = 0x96a65609a7b84e8842732deb08f56c3e21ac6f8a;
address c1;
address c2;
uint256 k;
k = 1;
c2 = 0xaa27f8c1160886aacba64b2319d8d5469ef2af79;
contract_address.call("register", "CentraToken");
if(!contract_address.call(b... | 6,415,936 | [
1,
4625,
348,
7953,
560,
30,
225,
411,
9707,
34,
411,
6006,
34,
5019,
10687,
2056,
67,
4503,
67,
7913,
3045,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
7412,
1435,
1135,
261,
6430,
13,
288,
202,
203,
202,
202,
2867,
6835,
67,
2867,
31,
203,
202,
202,
16351,
67,
2867,
273,
374,
92,
10525,
69,
26,
4313,
5908,
69,
27,
70,
5193,
73,
28,
5193,
5324,
1578,
31888,
6840,
7... |
/**
* Copyright BOOSTRY Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,... | @notice 直近エスクローIDの参照 @return 直近エスクローID | function getLatestEscrowId()
public
view
returns(uint256)
{
return latestEscrowId;
}
| 5,423,408 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
225,
168,
254,
117,
169,
128,
244,
164,
229,
106,
164,
229,
122,
164,
229,
112,
164,
230,
260,
164,
230,
125,
734,
164,
228,
111,
166,
242,
229,
168,
232,
105,
632,
2463,
225,
168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
336,
18650,
6412,
492,
548,
1435,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
12,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
4891,
6412,
492,
548,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-1... |
//SPDX-License-Identifier: Unlicense
// *****+=:. .=*****+-. -#@@#-. .+*****=:. .****+: :*****+=:. -***: -+**= =***.
// ...:=*#%%#*=:.. .+%@*. @@@@%@@@@* .#@@@%%@@@*. [email protected]@@@%@@@- :%@@@%%@@@- [email p... | * @notice Swaps PN v1 tokens for PN v2 tokens @param amount The amount of v1 tokens to exchange for v2 tokens/ Tranfer tokens from sender to token taker Transfer amount minus fees to sender record the amount of swapped v1 tokens | function swap(uint256 amount) external override nonReentrant {
require(swapActive, "Swap is paused");
IERC20 v1Contract = IERC20(v1TokenAddress);
require(
v1Contract.balanceOf(msg.sender) >= amount,
"Amount higher than user's balance"
);
require(
... | 10,107,150 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5434,
6679,
453,
50,
331,
21,
2430,
364,
453,
50,
331,
22,
2430,
632,
891,
3844,
1021,
3844,
434,
331,
21,
2430,
358,
7829,
364,
331,
22,
2430,
19,
840,
304,
586,
2430,
628,
5793,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7720,
12,
11890,
5034,
3844,
13,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
22270,
3896,
16,
315,
12521,
353,
17781,
8863,
203,
3639,
467,
654,
39,
3462,
331,
21,
8924,
273,
467,
654,
39,
3462,
12,
90... |
/**
*Submitted for verification at Etherscan.io on 2021-07-25
*/
pragma solidity ^0.6.6;
//https://babyshibatoken.com
//BabyShibaToken v2!
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in ... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract BabyShibaINu is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapp... | 10,828,575 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
24383,
1555,
495,
69,
706,
89,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13... |