file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.24;
import "contracts/Storage.sol";
contract MultiSignAdmin is Pausable, Administratable, UserContract {
/*
* Constants
*/
uint256 constant public maxBankCount = 50;
/*
* events
*/
event BankAddition(address indexed bank);
event BankRemoval(address indexed bank);
event ... | @dev Allows anyone to execute a confirmed transaction. @param transactionId Transaction ID. | function executeTransaction(uint256 transactionId)
bankExists(msg.sender)
confirmed(transactionId, msg.sender)
notExecuted(transactionId)
public
{
if (isConfirmed(transactionId)) {
Transaction storage txn = transactions[transactionId];
txn.executed = true;
bool success = true;
... | 5,414,979 | [
1,
19132,
1281,
476,
358,
1836,
279,
19979,
2492,
18,
225,
24112,
5947,
1599,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
3342,
12,
11890,
5034,
24112,
13,
203,
565,
11218,
4002,
12,
3576,
18,
15330,
13,
203,
565,
19979,
12,
7958,
548,
16,
1234,
18,
15330,
13,
203,
565,
486,
23839,
12,
7958,
548,
13,
203,
565,
1071,
203,
225,
288,
... |
pragma solidity ^0.4.24;
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
/**
* @title S... | getunselltoken only admin | function getunselltoken()public returns(bool){
require (msg.sender == SEcoinsetWallet);
require (hasEnded() && startTime != 0);
uint256 remainedSEcoin = ERC20Basic(SEcoin).balanceOf(this)-weiSold;
ERC20Basic(SEcoin).transfer(SEcoinWallet, remainedSEcoin);
}
| 14,081,321 | [
1,
588,
27595,
1165,
2316,
1338,
3981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
27595,
1165,
2316,
1435,
482,
1135,
12,
6430,
15329,
203,
3639,
2583,
261,
3576,
18,
15330,
422,
3174,
12645,
542,
16936,
1769,
203,
3639,
2583,
261,
5332,
28362,
1435,
597,
8657,
480,
374,
1769,
203,
3639,
2254,
503... |
./partial_match/1/0x6F3F365DbFC800fC0DdCA2Ce12ee665a01Be6bfD/sources/HexDex.sol | * Function for the frontend to dynamically retrieve the price scaling of sell orders./ | function calculateEthereumReceived(uint256 _tokensToSell)
public
view
returns (uint256)
{
require(_tokensToSell <= tokenSupply_);
uint256 _ethereum = tokensToEthereum_(_tokensToSell);
uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
uint256 _tax... | 2,887,632 | [
1,
2083,
364,
326,
15442,
358,
18373,
4614,
326,
6205,
10612,
434,
357,
80,
11077,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4604,
41,
18664,
379,
8872,
12,
11890,
5034,
389,
7860,
774,
55,
1165,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
24899,
7860,
774,
55,
1165,
1648,
1147,... |
pragma solidity ^0.5.0;
import "../contracts/testContracts/TellorMaster.sol";
import "../contracts/testContracts/Tellor.sol";
import "./OracleIDDescriptions.sol";
import "../contracts/interfaces/ADOInterface.sol";
/**
* @title UserContract
* This contracts creates for easy integration to the Tellor Tellor System
* Th... | * @dev Allows the user to tip miners using ether @param _apiId to tip/ | function addTipWithEther(uint256 _apiId) external payable {
uint _amount = (msg.value / tributePrice)*1e18;
require(_tellorm.balanceOf(address(this)) >= _amount, "Balance is lower than tip amount");
_tellor.addTip(_apiId, _amount);
}
| 12,578,533 | [
1,
19132,
326,
729,
358,
9529,
1131,
414,
1450,
225,
2437,
225,
389,
2425,
548,
358,
9529,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
14189,
1190,
41,
1136,
12,
11890,
5034,
389,
2425,
548,
13,
3903,
8843,
429,
288,
203,
3639,
2254,
389,
8949,
273,
261,
3576,
18,
1132,
342,
433,
495,
624,
5147,
17653,
21,
73,
2643,
31,
203,
3639,
2583,
24899,
8... |
pragma solidity ^0.4.24;
/**
* @title It holds the storage variables related to ERC20DividendCheckpoint module
*/
contract ERC20DividendCheckpointStorage {
// Mapping to token address for each dividend
mapping (uint256 => address) public dividendTokens;
}
/**
* @title Holds the storage varia... | * @dev Fallback function allowing to perform a delegatecall to the given implementation. This function will return whatever the implementation call returns/solium-disable-next-line security/no-inline-assembly*/ Copy msg.data. We take full control of memory in this inline assembly block because it will not return to Sol... | function _delegate(address implementation) internal {
assembly {
calldatacopy(0, 0, calldatasize)
let result := delegatecall(gas, implementation, 0, calldatasize, 0, 0)
returndatacopy(0, 0, returndatasize)
switch result
}
}
| 926,180 | [
1,
12355,
445,
15632,
358,
3073,
279,
7152,
1991,
358,
326,
864,
4471,
18,
1220,
445,
903,
327,
15098,
326,
4471,
745,
1135,
19,
18281,
5077,
17,
8394,
17,
4285,
17,
1369,
4373,
19,
2135,
17,
10047,
17,
28050,
19,
5631,
1234,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
22216,
12,
2867,
4471,
13,
2713,
288,
203,
3639,
19931,
288,
203,
5411,
745,
892,
3530,
12,
20,
16,
374,
16,
745,
13178,
554,
13,
203,
203,
5411,
2231,
563,
519,
7152,
1991,
12,
31604,
16,
4471,
16,
374,
16,
74... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.25 <0.7.0;
/** OpenZeppelin Dependencies */
// import "@openzeppelin/contracts-upgradeable/contracts/proxy/Initializable.sol";
import '@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/math/SafeMa... | * @dev Contract module that allows children to implement role-based access control mechanisms. Roles are referred to by their `bytes32` identifier. These should be exposed in the external API and be unique. The best way to achieve this is by using `public constant` hash digests: ``` bytes32 public constant MY_ROLE = ke... | abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable {
function __AccessControl_init() internal initializer {
__Context_init_unchained();
__AccessControl_init_unchained();
}
function __AccessControl_init_unchained() internal initializer {
}
using Enumerabl... | 9,927,060 | [
1,
8924,
1605,
716,
5360,
2325,
358,
2348,
2478,
17,
12261,
2006,
3325,
1791,
28757,
18,
19576,
854,
29230,
358,
635,
3675,
1375,
3890,
1578,
68,
2756,
18,
8646,
1410,
506,
16265,
316,
326,
3903,
1491,
471,
506,
3089,
18,
1021,
3796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
24349,
10784,
429,
353,
10188,
6934,
16,
1772,
10784,
429,
288,
203,
565,
445,
1001,
16541,
67,
2738,
1435,
2713,
12562,
288,
203,
3639,
1001,
1042,
67,
2738,
67,
4384,
8707,
5621,
203,
3639,
1001,
16541,
67,
2738,
67,... |
./partial_match/1/0x99cB2dC9F66b2D6ABb0017254e25a836829a952c/sources/REFLECT.sol | 计算(rAmount, rTransferAmount, rFee, tTransferAmount, tFee); | function _getValues(uint256 tAmount) private view returns (uint256, uint256, uint256, uint256, uint256) {
(uint256 tTransferAmount, uint256 tFee) = _getTValues(tAmount);
uint256 currentRate = _getRate();
(uint256 rAmount, uint256 rTransferAmount, uint256 rFee) = _getRValues(tAmount, tFee, c... | 3,614,196 | [
1,
169,
111,
99,
168,
111,
250,
12,
86,
6275,
16,
436,
5912,
6275,
16,
436,
14667,
16,
268,
5912,
6275,
16,
268,
14667,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
1972,
12,
11890,
5034,
268,
6275,
13,
3238,
1476,
1135,
261,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
261,
11890,
5034,
268,
5912,
6275,
16,
2254,
5034,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-17
*/
/**
*Submitted for verification at BscScan.com on 2021-07-28
*/
/**
*Submitted for verification at Etherscan.io on 2021-07-28
*/
pragma solidity 0.5.16;
interface IBEP2E {
/**
* @dev Returns the amount of tokens in existence.
*/
function ... | * @dev See {BEP2E-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {BEP2E}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowan... | function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP2E: transfer amount exceeds allowance"));
return true;
}
| 2,051,019 | [
1,
9704,
288,
5948,
52,
22,
41,
17,
13866,
1265,
5496,
7377,
1282,
392,
288,
23461,
97,
871,
11193,
326,
3526,
1699,
1359,
18,
1220,
353,
486,
1931,
635,
326,
512,
2579,
18,
2164,
326,
4721,
622,
326,
8435,
434,
288,
5948,
52,
22,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
7412,
1265,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
3903,
1135,
261,
6430,
13,
288,
203,
565,
389,
13866,
12,
15330,
16,
8027,
16,
3844,
1769,
203,
565,
389,
12908,
537,
12,
15330,
16,
389,
3576,
120... |
./partial_match/1/0x4F8126bD0a57C4B865ab1C7A04F0ae2519206DDf/sources/FlokiSanta.sol | SPDX-License-Identifier: Unlicensed | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount)
external
returns (bool);
function allowance(address owner, address spender)
exte... | 4,023,914 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
1351,
80,
335,
28003,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.7.3;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../base/Multicall.sol";
import "../bancor/BancorFormula.sol";
import "../upgrades/GraphUpgradeable.sol";
import "../utils/TokenUtils.sol";
import "./IGNS... | * @dev Check if the owner is the graph account @param _graphAccount Address of the graph account/ | function _isGraphAccountOwner(address _graphAccount) private view {
address graphAccountOwner = erc1056Registry.identityOwner(_graphAccount);
require(graphAccountOwner == msg.sender, "GNS: Only graph account owner can call");
}
| 13,682,926 | [
1,
1564,
309,
326,
3410,
353,
326,
2667,
2236,
225,
389,
4660,
3032,
5267,
434,
326,
2667,
2236,
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,
389,
291,
4137,
3032,
5541,
12,
2867,
389,
4660,
3032,
13,
3238,
1476,
288,
203,
3639,
1758,
2667,
3032,
5541,
273,
6445,
71,
2163,
4313,
4243,
18,
10781,
5541,
24899,
4660,
3032,
1769,
203,
3639,
2583,
12,
4660,
3032,
... |
./partial_match/42/0xAf5d2BC0A47f0aE99b7E7225349e3d5C48F46Fd5/sources/STERegistryV1.sol | * @title Interface for checkpoint module configuration/ | interface IConfigurableModule {
function configure(
address _securityToken
) external;
}
| 3,412,104 | [
1,
1358,
364,
9776,
1605,
1664,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
31660,
3120,
288,
203,
203,
565,
445,
5068,
12,
203,
3639,
1758,
389,
7462,
1345,
203,
565,
262,
3903,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/3/0x0e227b07FB1e8B9E1690e489c0267271D5Ffc781/sources/MasterChef.sol | Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. | function add(uint256 _allocPoint, IBEP20 _lpToken, bool _withUpdate) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
poo... | 5,184,334 | [
1,
986,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
11329,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
731,
309,
1846,
741,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
5034,
389,
9853,
2148,
16,
467,
5948,
52,
3462,
389,
9953,
1345,
16,
1426,
389,
1918,
1891,
13,
1071,
1338,
5541,
288,
203,
3639,
309,
261,
67,
1918,
1891,
13,
288,
203,
5411,
8039,
1891,
16639,
5621,
... |
./partial_match/42/0xb2A9c9cB4796dFc137a3EbBF312d73A7837CF708/sources/PobTokenPresale.sol | Number of tokens at start of the sale. This exact amount must be sent to the contract to call initialize() !
| uint256 public constant initialTokens = 1000000 * 10**9; | 3,460,830 | [
1,
1854,
434,
2430,
622,
787,
434,
326,
272,
5349,
18,
1220,
5565,
3844,
1297,
506,
3271,
358,
326,
6835,
358,
745,
4046,
1435,
401,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
5381,
2172,
5157,
273,
15088,
380,
1728,
636,
29,
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,
-1... |
pragma solidity ^0.5.0;
import "./ERCStaking.sol";
import "./Checkpointing.sol";
import "./res/Autopetrified.sol";
import "./res/IsContract.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/tok... | transferring 0 staked tokens is invalid update stakes | function _transfer(address _from, address _to, uint256 _amount) internal {
require(_amount > 0, ERROR_AMOUNT_ZERO);
_modifyStakeBalance(_from, _amount, false);
_modifyStakeBalance(_to, _amount, true);
emit StakeTransferred(_from,_amount, _to);
}
| 1,067,083 | [
1,
2338,
74,
20245,
374,
384,
9477,
2430,
353,
2057,
1089,
384,
3223,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
5475,
67,
2192,
51,
5321,
67,
24968,
1769,
203,
203,
3639,
389,
17042,
510,
91... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
contract PolydiceGame {
mapping(address => uint256) public passLineBetAmounts;
address payable[] public passLinePlayers;
uint256 public currentPlayers;
uint8 public dice1value;
uint8 public dice2value;
uint8 public diceSum;
uint256 public fee;
bytes3... | based on the game rules, for example, if a player can make an 2x and the bank doenst have 1x his value, then the bets can't be fulfilled | function betsCanBeFulfilledWith(uint256 bankFunds) public returns(bool) {
return true;
}
| 5,444,643 | [
1,
12261,
603,
326,
7920,
2931,
16,
364,
3454,
16,
309,
279,
7291,
848,
1221,
392,
576,
92,
471,
326,
11218,
741,
275,
334,
1240,
404,
92,
18423,
460,
16,
1508,
326,
324,
2413,
848,
1404,
506,
16136,
13968,
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,
202,
915,
324,
2413,
2568,
1919,
23747,
13968,
1190,
12,
11890,
5034,
11218,
42,
19156,
13,
1071,
1135,
12,
6430,
13,
288,
203,
202,
202,
2463,
638,
31,
203,
202,
97,
203,
202,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-25
*/
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sende... | * @dev From the passed variables, calculate the amount of reward reduced along the curve. @param _lockups Total number of locked up tokens. @param _assets Total number of authenticated assets. @param _totalSupply Total supply the token. @param _mintPerBlockAndAseet Maximum number of reward per block per asset. @return ... | ) internal pure returns (uint256) {
uint256 t = _totalSupply;
uint256 s = (_lockups.mul(basis)).div(t);
uint256 assets = _assets.mul(basis.sub(s));
uint256 max = assets.mul(_mintPerBlockAndAseet);
uint256 _d = basis.sub(s);
uint256 _p =
(
(power_basis.mul(12)).sub(
s.div((basis.div((power_basis... | 7,931,392 | [
1,
1265,
326,
2275,
3152,
16,
4604,
326,
3844,
434,
19890,
13162,
7563,
326,
8882,
18,
225,
389,
739,
18294,
10710,
1300,
434,
8586,
731,
2430,
18,
225,
389,
9971,
10710,
1300,
434,
9370,
7176,
18,
225,
389,
4963,
3088,
1283,
10710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
11890,
5034,
268,
273,
389,
4963,
3088,
1283,
31,
203,
202,
202,
11890,
5034,
272,
273,
261,
67,
739,
18294,
18,
16411,
12,
23774,
13,
2934,
2892,
12,
88,
17... |
./full_match/5/0x7a66B21a7708c42049e88aC696B55588e01AF7B4/sources/project_/contracts/FOHLE_Router01.sol | refund dust eth, if any | function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) {
(amountTok... | 1,932,419 | [
1,
1734,
1074,
302,
641,
13750,
16,
309,
1281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
1584,
44,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
3844,
1345,
25683,
16,
203,
3639,
2254,
3844,
1345,
2930,
16,
203,
3639,
2254,
3844,
1584,
44,
2930,
16,
203,
3639,
1758,
358,
16,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
// website: www.defyswap.finance
//
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in... | Include an account in receive fee | function includeInFeeR(address account) external onlyOwner {
require( _isRExcludedFromFee[account], "Account is not excluded From receive Fee");
_isRExcludedFromFee[account] = false;
emit IncludeInFeeR(account);
}
| 7,244,170 | [
1,
8752,
392,
2236,
316,
6798,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2341,
382,
14667,
54,
12,
2867,
2236,
13,
3903,
1338,
5541,
288,
202,
203,
540,
2583,
12,
389,
291,
54,
16461,
1265,
14667,
63,
4631,
6487,
315,
3032,
353,
486,
8845,
6338,
6798,
30174,
8863,
202,
203,
3639,
389,
291,
... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is ch... | * @dev Sets the DAO address @param _dao DAO address./ | function setDao(address _dao) public onlyOwner {
require(_dao != address(0));
dao = _dao;
}
| 10,227,483 | [
1,
2785,
326,
463,
20463,
1758,
225,
389,
2414,
83,
463,
20463,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
11412,
12,
2867,
389,
2414,
83,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
2414,
83,
480,
1758,
12,
20,
10019,
203,
3639,
15229,
273,
389,
2414,
83,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
/**
* 作业:编写合约执行闪电贷(参考V2的ExampleFlashSwap):
* uniswapV2Call中,用收到的 TokenA 在 Uniswap V3 的 SwapRouter 兑换为 TokenB 还回到 uniswapV2 Pair 中。
*/
pragma solidity ^0.8.0;
import './IERC20.sol';
import './UniswapV2Library.sol';
interface IUniswapV2Callee {
function uniswapV2Call(address s... | 先授权V3合约允许调用自身的 A token | uint256 amountReceived = swapExactInputSingle(token1, token0, amount1);
| 12,650,510 | [
1,
166,
232,
235,
167,
241,
235,
167,
256,
230,
58,
23,
166,
243,
235,
168,
123,
104,
166,
232,
228,
169,
111,
121,
169,
113,
230,
168,
247,
106,
169,
234,
108,
169,
123,
109,
168,
253,
231,
432,
1147,
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,
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,
3639,
2254,
5034,
3844,
8872,
273,
7720,
14332,
1210,
5281,
12,
2316,
21,
16,
1147,
20,
16,
3844,
21,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xf61Dc5623656F6E23e5b20742dEbd67e872E9D56/sources/MiriChain.sol | / Artificialintelligence Connect /fix => Crypto Block Mine Token to => Mainnet => "CBM" Coin
| tokenSymbol = "Miri"; | 5,145,603 | [
1,
19,
9042,
1507,
649,
474,
1165,
360,
802,
8289,
342,
904,
516,
15629,
3914,
490,
558,
3155,
358,
516,
12740,
2758,
225,
516,
315,
8876,
49,
6,
28932,
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,
3639,
1147,
5335,
273,
315,
49,
25096,
14432,
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,... |
/**
*Submitted for verification at Etherscan.io on 2021-04-25
*/
/* :=*#%@@@@@@@@@%%%#**+=-:::: '*%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+
* [email protected]@@@@@@@@@... | Thursday, May 13, 2021 18:00:00 GMT
| uint256 public SALE_START_TIMESTAMP = 1620928800; | 15,320,306 | [
1,
1315,
25152,
2881,
16,
16734,
5958,
16,
26599,
21,
6549,
30,
713,
30,
713,
21706,
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,
2254,
5034,
1071,
17127,
900,
67,
7570,
67,
17201,
273,
2872,
3462,
9975,
5482,
713,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2019-06-06
*/
/**
* Source Code first verified at https://etherscan.io on Wednesday, April 24, 2019
(UTC) */
pragma solidity ^0.4.25;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) ... | * @dev Helps verify a ECDSA signature, while recovering the signing address. @param hash Hash of the signed message @param sig binary representation of the r, s & v parameters. @return address of the signer if data provided is valid, zero otherwise./ Check the signature length Divide the signature in r, s and v variabl... | function recoverHelper(bytes32 hash, bytes sig) public pure returns (address) {
bytes memory prefix = "\x19Ethereum Signed Message:\n32";
bytes32 prefixedHash = keccak256(abi.encodePacked(prefix, hash));
bytes32 r;
bytes32 s;
uint8 v;
if (sig.length != 65) {
... | 5,496,451 | [
1,
44,
292,
1121,
3929,
279,
7773,
19748,
3372,
16,
1323,
5910,
310,
326,
10611,
1758,
18,
225,
1651,
2474,
434,
326,
6726,
883,
225,
3553,
3112,
4335,
434,
326,
436,
16,
272,
473,
331,
1472,
18,
327,
1758,
434,
326,
10363,
309,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5910,
2276,
12,
3890,
1578,
1651,
16,
1731,
3553,
13,
1071,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
1731,
3778,
1633,
273,
1548,
92,
3657,
41,
18664,
379,
16724,
2350,
5581,
82,
1578,
14432,
203,
3639,
1731,
1578,
1... |
./full_match/1/0x617332a777780F546261247F621051d0b98975Eb/sources/src/contracts/voting/VotingMachine.sol | @inheritdoc IVotingMachine | function updateGasLimit(uint256 gasLimit) external onlyOwner {
_updateGasLimit(gasLimit);
}
| 4,928,864 | [
1,
36,
10093,
21602,
17128,
6981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27998,
3039,
12,
11890,
5034,
16189,
3039,
13,
3903,
1338,
5541,
288,
203,
565,
389,
2725,
27998,
3039,
12,
31604,
3039,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "./TradingAction.sol";
import "./ActionGuards.sol";
import "./nTokenMintAction.sol";
import "./nTokenRedeemAction.sol";
import "../SettleAssetsExternal.sol";
import "../FreeCollateralExternal.sol";
import "../../math/SafeInt256... | dev: bitmap notional overflow
| require(type(int128).min <= notional && notional <= type(int128).max); | 12,463 | [
1,
5206,
30,
9389,
486,
285,
287,
9391,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
12,
723,
12,
474,
10392,
2934,
1154,
1648,
486,
285,
287,
597,
486,
285,
287,
1648,
618,
12,
474,
10392,
2934,
1896,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.5.16;
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/ownership/Ownable.sol';
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/math/SafeMath.sol';
import 'OpenZeppelin/openzeppelin-contracts@2.3.0/contracts/utils/ReentrancyGuard.sol';
// import 'Uniswap/uniswap-v2-core@1.0.1/con... | @dev Throws if called by any account other than the goblin. | modifier onlyGoblin() {
require(isGoblin(), 'caller is not the goblin');
_;
}
| 1,045,637 | [
1,
21845,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
20062,
7511,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
43,
947,
7511,
1435,
288,
203,
565,
2583,
12,
291,
43,
947,
7511,
9334,
296,
16140,
353,
486,
326,
20062,
7511,
8284,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.5.16;
/**
* @title FundRaiser Smart Contract
* @author Malarena SA - www.malarena.com
* @notice A Fund Raising Smart Contract used to raise funds, with payments then released based on contributors voting
*/
contract FundRaiser {
using SafeMath for uint256;
// Initial set-up of Struct for Spen... | * @notice Process a Contribution @dev Payable function that should be sent Ether. Requires that minimum contribution value is met and deadline is not passed/ Check if it is the first time the contributor is contributing | function contribute() external payable returns (bool) {
require(msg.value >= minimumContribution, "Minimum Contribution level not met");
require(block.number <= deadline, "Deadline is passed");
if(contributions[msg.sender] == 0) {
totalContributors = totalContributors.add(1);
}
contribution... | 12,880,398 | [
1,
2227,
279,
735,
4027,
225,
13838,
429,
445,
716,
1410,
506,
3271,
512,
1136,
18,
16412,
716,
5224,
24880,
460,
353,
5100,
471,
14096,
353,
486,
2275,
19,
2073,
309,
518,
353,
326,
1122,
813,
326,
31123,
353,
13608,
8490,
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,
225,
445,
356,
887,
1435,
3903,
8843,
429,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
3576,
18,
1132,
1545,
5224,
442,
4027,
16,
315,
13042,
735,
4027,
1801,
486,
5100,
8863,
203,
565,
2583,
12,
2629,
18,
2696,
1648,
14096,
... |
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/mixins/SettleLayer.sol | @notice Collects a token debt from a specfic debtor. @dev Note that this function does not assert that the post-transfer balance is correct. CrocSwap is not safe to use for any fee-on-transfer tokens or any other tokens that break ERC20 transfer functionality. @param recv The address of the debtor b... | function collectToken (address recv, uint128 value, address token) private {
TransferHelper.safeTransferFrom(token, recv, address(this), value);
}
| 4,651,390 | [
1,
28791,
279,
1147,
18202,
88,
628,
279,
857,
74,
335,
18202,
13039,
18,
377,
3609,
716,
333,
445,
1552,
486,
1815,
716,
326,
1603,
17,
13866,
11013,
540,
353,
3434,
18,
385,
303,
71,
12521,
353,
486,
4183,
358,
999,
364,
1281,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3274,
1345,
261,
2867,
10665,
16,
2254,
10392,
460,
16,
1758,
1147,
13,
3238,
288,
203,
3639,
12279,
2276,
18,
4626,
5912,
1265,
12,
2316,
16,
10665,
16,
1758,
12,
2211,
3631,
460,
1769,
203,
565,
289,
203,
203,
2,
-1... |
/**
*Submitted for verification at Etherscan.io on 2022-03-09
*/
/*
https://t.me/rwbyeth
https://twitter.com/rwbyeth
https://rwby.io/
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.7;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
... | buy selltransfer mapping to avoid escaping early sell fees | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(!isBot[from] && !isBot[to]);
if (from == _deployerWallet || to == _deployerWallet || !liqInit) {
super._transfer(from, to, amount);
liqInit = true;
... | 7,830,209 | [
1,
70,
9835,
357,
80,
13866,
2874,
358,
4543,
20604,
11646,
357,
80,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
203,
3639,
2583,
12,
5,
291,
6522,
63,
2080,
65,
597,
401,
291,
6522,
63,
869,
19... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
interface IStokvel {
function showStockvelName() external view returns (string memory);
}
contract Stokvel is IStokvel {
struct Account {
uint32 id;
address member;
bytes32 memberSecretString;
uint32 amount;
}
... | require(!members[_addr].exists, "Already a member!"); | function register(address _addr, string calldata _memberSecretString, uint32 _amount) external returns (bool) {
bool result = false;
lastId++;
stockvelTotalAmount += _amount;
members[_addr] = Account({
id: lastId,
membe... | 12,816,851 | [
1,
6528,
12,
5,
7640,
63,
67,
4793,
8009,
1808,
16,
315,
9430,
279,
3140,
4442,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1744,
12,
2867,
282,
389,
4793,
16,
533,
745,
892,
389,
5990,
5207,
780,
16,
2254,
1578,
282,
389,
8949,
13,
282,
3903,
1135,
261,
6430,
13,
225,
288,
203,
540,
203,
540,
203,
3639,
1426,
563,
273,
629,
31,
203,
203... |
// SPDX-License-Identifier: MIT
// P1 - P3: OK
pragma solidity 0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
library Sa... | event PairCreated(address indexed token0, address indexed token1, address pair, uint256); | interface IGothFactory {
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function migrator() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint25... | 13,068,275 | [
1,
2575,
8599,
6119,
12,
2867,
8808,
1147,
20,
16,
1758,
8808,
1147,
21,
16,
1758,
3082,
16,
2254,
5034,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
13102,
10370,
1733,
288,
203,
203,
565,
445,
14036,
774,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
14036,
774,
8465,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
30188,
1435,
3903,
1476,
113... |
/**
*Submitted for verification at Etherscan.io on 2021-05-16
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.7.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* i... | * @title FailedMessagesProcessor @dev Functionality for fixing failed bridging operations./ | abstract contract FailedMessagesProcessor is BasicAMBMediator, BridgeOperationsStorage {
event FailedMessageFixed(bytes32 indexed messageId, address token, address recipient, uint256 value);
function requestFailedMessageFix(bytes32 _messageId) external {
IAMB bridge = bridgeContract();
require... | 2,001,556 | [
1,
2925,
5058,
5164,
225,
4284,
7919,
364,
28716,
2535,
324,
1691,
1998,
5295,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
11175,
5058,
5164,
353,
7651,
2192,
38,
13265,
10620,
16,
24219,
9343,
3245,
288,
203,
565,
871,
11175,
1079,
7505,
12,
3890,
1578,
8808,
19090,
16,
1758,
1147,
16,
1758,
8027,
16,
2254,
5034,
460,
1769,
203,
203,
203,... |
./full_match/1/0x622A9Ff8f826AE7d25Cfedd41bbe86Ea159B4D0e/sources/contracts/v2/MintStages/FairxyzMintStagesRegistry.sol | @custom:oz-upgrades-unsafe-allow state-variable-immutable @dev map scheduleId to stages @dev map scheduleId to stages count | modifier onlyRegistrant(address registrant) {
if (msg.sender != registrant) revert Unauthorized();
_;
}
| 8,438,829 | [
1,
36,
3662,
30,
11142,
17,
416,
13088,
17,
318,
4626,
17,
5965,
919,
17,
6105,
17,
381,
5146,
225,
852,
4788,
548,
358,
20298,
225,
852,
4788,
548,
358,
20298,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
20175,
970,
12,
2867,
17450,
970,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
17450,
970,
13,
15226,
15799,
5621,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-19
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.2;
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.0/contracts/utils/math/SafeMath.sol
// CAUTION - only use with Solidity 0.8 +
/**
* @dev Wrappers over Solidity's arit... | Current sale count
| uint256 private _sCount; | 2,032,354 | [
1,
3935,
272,
5349,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
389,
87,
1380,
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,
-... |
pragma solidity 0.4.18;
/**
* For convenience, you can delete all of the code between the <ORACLIZE_API>
* and </ORACLIZE_API> tags as etherscan cannot use the import callback, you
* can then just uncomment the line below and compile it via Remix.
*/
//import "github.com/oraclize/ethereum-api/oraclizeAPI.so... | * Payable function for receiving dividends from the P4D and P3D contracts/ only accept ETH payments from P4D and P3D (subdividends and dividends) as well as allowing the owner or dev to top up this contracts balance all ETH sent through this function will be used in the tokenCallback() function in order to buy more P4D... | function () public payable {
require(msg.sender == address(tokenContract) || msg.sender == address(_P3D) || msg.sender == _dev || msg.sender == _owner);
}
| 12,922,070 | [
1,
9148,
429,
445,
364,
15847,
3739,
350,
5839,
628,
326,
453,
24,
40,
471,
453,
23,
40,
20092,
19,
1338,
2791,
512,
2455,
25754,
628,
453,
24,
40,
471,
453,
23,
40,
261,
1717,
2892,
350,
5839,
471,
3739,
350,
5839,
13,
487,
549... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1832,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
2316,
8924,
13,
747,
1234,
18,
15330,
422,
1758,
24899,
52,
23,
40,
13,
747,
1234,
18,
15330,
422,
389,
5206,
747,
1234,
18,
15330,
422,... |
/**
*Submitted for verification at Etherscan.io on 2021-02-21
*/
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/*... | maxDeleverage is how much we want to increase by | function _normalLeverage(
uint256 maxLeverage,
uint256 lent,
uint256 borrowed,
uint256 collatRatio
) internal returns (uint256 leveragedAmount) {
uint256 theoreticalBorrow = lent.mul(collatRatio).div(1e18);
leveragedAmount = theoreticalBorrow.sub(borrowed);
... | 6,662,166 | [
1,
1896,
2837,
73,
5682,
353,
3661,
9816,
732,
2545,
358,
10929,
635,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
6130,
1682,
5682,
12,
203,
3639,
2254,
5034,
943,
1682,
5682,
16,
203,
3639,
2254,
5034,
328,
319,
16,
203,
3639,
2254,
5034,
29759,
329,
16,
203,
3639,
2254,
5034,
4508,
270,
8541,
203,
565,
262,
2713,
1135,
261,
... |
./full_match/43113/0x98A992392858d98D2715fb116915bF54cF1A175E/sources/registry/ENSRegistry.sol | * @dev Transfers ownership of a node to a new address. May only be called by the current owner of the node. @param _node The node to transfer ownership of. @param _owner The address of the new owner./ | function setOwner(bytes32 _node, address _owner) public virtual override authorised(_node) {
_setOwner(_node, _owner);
emit Transfer(_node, _owner);
}
| 7,167,532 | [
1,
1429,
18881,
23178,
434,
279,
756,
358,
279,
394,
1758,
18,
16734,
1338,
506,
2566,
635,
326,
783,
3410,
434,
326,
756,
18,
225,
389,
2159,
1021,
756,
358,
7412,
23178,
434,
18,
225,
389,
8443,
1021,
1758,
434,
326,
394,
3410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31309,
12,
3890,
1578,
389,
2159,
16,
1758,
389,
8443,
13,
1071,
5024,
3849,
2869,
5918,
24899,
2159,
13,
288,
203,
3639,
389,
542,
5541,
24899,
2159,
16,
389,
8443,
1769,
203,
3639,
3626,
12279,
24899,
2159,
16,
389,
8... |
pragma solidity ^0.4.22;
/* This contract is based on https://github.com/AltCoinExchange/ethatomicswap/blob/master/contracts/AtomicSwap.sol
For two ETH-based chains, this contract allows two persons safely exchange assets without trusting each other. All ERC20 and ERC721Value tokens are supported.
This cont... | transfer the donation value to the contractStarter*/ | function transferDonation() external{
require(address(this).balance > lockedValue);
contractStarter.transfer(address(this).balance - lockedValue);
}
| 12,873,068 | [
1,
13866,
326,
2727,
367,
460,
358,
326,
6835,
510,
14153,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22293,
367,
1435,
3903,
95,
203,
3639,
2583,
12,
2867,
12,
2211,
2934,
12296,
405,
8586,
620,
1769,
203,
3639,
6835,
510,
14153,
18,
13866,
12,
2867,
12,
2211,
2934,
12296,
300,
8586,
620,
1769,
203,
565,
289,
377... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "../abstractV2/PendleYieldContractDeployerBaseV2.sol";
import "./PendleCompoundV2YieldTokenHolder.sol";
import "./PendleCompoundV2Forge.sol";
contract PendleCompoundV2YieldContractDeployer is PendleYieldContractDeployerBaseV2 {
constructor(address... | */ Collect the forgeFee INVARIANT: all XYT interest payout must go through this line/ | function getYieldBearingToken(address _underlyingAsset)
public
virtual
override
returns (address);
@notice To be called before the dueInterest of any users is redeemed.
@param _skipUpdateDueInterests: this is set to true, if there was already a call to _updateDueInterests() ... | 1,396,701 | [
1,
19,
9302,
326,
21388,
14667,
2120,
29744,
6856,
30,
777,
18774,
56,
16513,
293,
2012,
1297,
1960,
3059,
333,
980,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10448,
491,
1919,
5968,
1345,
12,
2867,
389,
9341,
6291,
6672,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
2867,
1769,
203,
203,
565,
632,
20392,
2974,
506,
2566,
1865,
326,
6541,
29281,
... |
pragma solidity ^0.4.18;
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Ba... | * Mint tokens @param to adress destination to transfer the tokens to @param tokens number of tokens to mint and transfer/ | function mintTokens(address to, uint tokens) internal {
token.mint(this, tokens);
token.transfer(to, tokens);
TokenMinted(to, tokens, now);
}
| 5,930,155 | [
1,
49,
474,
2430,
225,
358,
1261,
663,
2929,
358,
7412,
326,
2430,
358,
225,
2430,
1300,
434,
2430,
358,
312,
474,
471,
7412,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
474,
5157,
12,
2867,
358,
16,
2254,
2430,
13,
2713,
288,
203,
565,
1147,
18,
81,
474,
12,
2211,
16,
2430,
1769,
203,
565,
1147,
18,
13866,
12,
869,
16,
2430,
1769,
203,
565,
3155,
49,
474,
329,
12,
869,
16,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "./interface/ikswap.sol";
import "./Third.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2P... | IERC20(token0).transfer(devaddr,IERC20(token0).balanceOf(address(this))); IERC20(token1).transfer(devaddr,IERC20(token1).balanceOf(address(this))); return; | (uint256 t0,uint256 t1,) = IUniswapV2Pair(address(pool.lpToken)).getReserves();
| 986,024 | [
1,
45,
654,
39,
3462,
12,
2316,
20,
2934,
13866,
12,
5206,
4793,
16,
45,
654,
39,
3462,
12,
2316,
20,
2934,
12296,
951,
12,
2867,
12,
2211,
3719,
1769,
467,
654,
39,
3462,
12,
2316,
21,
2934,
13866,
12,
5206,
4793,
16,
45,
654,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
261,
11890,
5034,
268,
20,
16,
11890,
5034,
268,
21,
16,
13,
273,
467,
984,
291,
91,
438,
58,
22,
4154,
12,
2867,
12,
6011,
18,
9953,
1345,
13,
2934,
588,
607,
264,
3324,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract SmartChefMarket is Ownable {
using SafeERC20 for IERC20;
uint ... | event StakeTokens(address indexed user, uint amountRB, uint[] tokensId); event UnstakeToken(address indexed user, uint amountRB, uint[] tokensId); | event EmergencyWithdraw(address indexed user, uint tokenCount);
| 13,016,425 | [
1,
2575,
934,
911,
5157,
12,
2867,
8808,
729,
16,
2254,
3844,
19437,
16,
2254,
8526,
2430,
548,
1769,
565,
871,
1351,
334,
911,
1345,
12,
2867,
8808,
729,
16,
2254,
3844,
19437,
16,
2254,
8526,
2430,
548,
1769,
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,
871,
512,
6592,
75,
2075,
1190,
9446,
12,
2867,
8808,
729,
16,
2254,
1147,
1380,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0xcBba3dc6457C94285258F591Fd67A9588c812df7/sources/project_/contracts/STokenV1.sol | @notice Revokes Financial Manager role from `_address` @dev If `_address` had been revoked Financial Manager role, emits a {RoleRevoked} event Requirements:the caller must have SuperAdmin role Revokes allowance to transfer tokens from Treasury for `_address` @param _address address to revoke Manager role fro... | function removeFinancialManager(address _address)
external
onlyRole(DEFAULT_ADMIN_ROLE)
{
_revokeRole(FINANCIAL_MANAGER_ROLE, _address);
_approve(_corporateTreasury, _address, 0);
}
| 851,958 | [
1,
10070,
601,
281,
9458,
19292,
649,
8558,
2478,
628,
1375,
67,
2867,
68,
225,
971,
1375,
67,
2867,
68,
9323,
2118,
22919,
9458,
19292,
649,
8558,
2478,
16,
24169,
279,
288,
2996,
10070,
14276,
97,
871,
1377,
29076,
30,
5787,
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,
565,
445,
1206,
6187,
19292,
649,
1318,
12,
2867,
389,
2867,
13,
203,
3639,
3903,
203,
3639,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
203,
565,
288,
203,
3639,
389,
9083,
3056,
2996,
12,
7263,
1258,
39,
6365,
67,
19402,
... |
/*
・
* ★
・ 。
・ ゚☆ 。
* ★ ゚・。 * 。
* ☆ 。・゚*.。
゚ *.。☆。★ ・
` .-:::::-.` `-::---...```
`-:` .:+ssssoooo++//:.` .-/+shhhhhhhhhhhhhyyyssooo:
.--::. .+o... | * @notice Attempt to send ETH and if the transfer fails or runs out of gas, store the balance for future withdrawal instead./ | abstract contract SendValueWithFallbackWithdraw is ReentrancyGuardUpgradeable {
using AddressUpgradeable for address payable;
using SafeMathUpgradeable for uint256;
mapping(address => uint256) private pendingWithdrawals;
event WithdrawPending(address indexed user, uint256 amount);
event Withdrawal(address i... | 12,224,186 | [
1,
7744,
358,
1366,
512,
2455,
471,
309,
326,
7412,
6684,
578,
7597,
596,
434,
16189,
16,
1707,
326,
11013,
364,
3563,
598,
9446,
287,
3560,
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,
17801,
6835,
2479,
620,
1190,
12355,
1190,
9446,
353,
868,
8230,
12514,
16709,
10784,
429,
288,
203,
225,
1450,
5267,
10784,
429,
364,
1758,
8843,
429,
31,
203,
225,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
203,
22... |
// SPDX-License-Identifier: MIT
//File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns... | Safe WEN transfer function, just in case if rounding error causes pool to not have enough WEN. | function safeWENTransfer(address _to, uint256 _amount) internal {
uint256 wenBal = wen.balanceOf(address(this));
if (_amount > wenBal) {
wen.transfer(_to, wenBal);
wen.transfer(_to, _amount);
}
}
| 14,416,097 | [
1,
9890,
678,
1157,
7412,
445,
16,
2537,
316,
648,
309,
13885,
555,
14119,
2845,
358,
486,
1240,
7304,
678,
1157,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
59,
1157,
5912,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2254,
5034,
341,
275,
38,
287,
273,
341,
275,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
67,
8949,
... |
./full_match/4/0x97775663518F3E12A4891CcC9EDCd5194671B7b3/sources/hash.sol | first 32 bytes, after the length prefix second 32 bytes final byte (first byte of the next 32 bytes) | function splitSignature(bytes memory sig)
public
pure
returns (bytes32, bytes32, uint8)
{
require(sig.length == 65);
bytes32 r;
bytes32 s;
uint8 v;
assembly {
r := mload(add(sig, 32))
s := mload(add(sig, 64))
v := byte(0, ... | 747,719 | [
1,
3645,
3847,
1731,
16,
1839,
326,
769,
1633,
2205,
3847,
1731,
727,
1160,
261,
3645,
1160,
434,
326,
1024,
3847,
1731,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1416,
5374,
12,
3890,
3778,
3553,
13,
203,
4202,
1071,
203,
4202,
16618,
203,
4202,
1135,
261,
3890,
1578,
16,
1731,
1578,
16,
2254,
28,
13,
203,
282,
288,
203,
4202,
2583,
12,
7340,
18,
2469,
422,
15892,
1769,
203,
2... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;
import "../ERC20/ERC20Custom.sol";
import "../ERC20/ERC20.sol";
import "../Math/SafeMath.sol";
/**
* @title TokenVesting
* @dev A token holder contract that can release its token balance gradually like a
* typical vesting scheme, with a cliff a... | Added to support recovering possible airdrops Cannot recover the staking token or the rewards token | function recoverERC20(address tokenAddress, uint256 tokenAmount) external {
require(msg.sender == _beneficiary, "Must be called by the beneficiary");
require(tokenAddress != _FXS_contract_address, "Cannot withdraw the FXS through this function");
ERC20(tokenAddress).transfer(_beneficiary, t... | 15,868,152 | [
1,
8602,
358,
2865,
5910,
310,
3323,
279,
6909,
16703,
14143,
5910,
326,
384,
6159,
1147,
578,
326,
283,
6397,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5910,
654,
39,
3462,
12,
2867,
1147,
1887,
16,
2254,
5034,
1147,
6275,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
70,
4009,
74,
14463,
814,
16,
315,
10136,
506,
2566,
635,
326,
27641,
74,
14463,
81... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this; // silence state mutability warning without generating bytecode - s... | change the minimum amount of tokens to sell from fees | function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) {
require(newAmount >= (totalSupply() * 1) / 100000, "Swap amount cannot be lower than 0.001% total supply.");
require(newAmount <= (totalSupply() * 5) / 1000, "Swap amount cannot be higher than 0.5% total supply.");
swapToken... | 1,324,797 | [
1,
3427,
326,
5224,
3844,
434,
2430,
358,
357,
80,
628,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1089,
12521,
5157,
861,
6275,
12,
11890,
5034,
394,
6275,
13,
3903,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
202,
202,
6528,
12,
2704,
6275,
1545,
261,
4963,
3088,
1283,
1435,
380,
404,
13,
342,
25259,
16,
315,
12521,... |
./partial_match/56/0xfe18d6364D83D21fC0ce4fEaD6653cCBCF903835/sources/OXMasterFarmer.sol | Safe ox transfer function, just in case if rounding error causes pool to not have enough OXs. | function safeOXTransfer(address _to, uint256 _amount) internal {
uint256 oxBal = ox.balanceOf(address(this));
if (_amount > oxBal) {
ox.transfer(_to, oxBal);
ox.transfer(_to, _amount);
}
}
| 11,063,570 | [
1,
9890,
6965,
7412,
445,
16,
2537,
316,
648,
309,
13885,
555,
14119,
2845,
358,
486,
1240,
7304,
531,
60,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
22550,
5912,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2254,
5034,
6965,
38,
287,
273,
6965,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
67,
8949,
405,
6965,
38... |
pragma solidity ^0.8.9;
// SPDX-License-Identifier: MIT
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | Mints two pseudo-randomly selected cards for each pack @param _numPacks the number of packs to "open" | function mintFromNewPacks(uint8 _numPacks) public payable checkAvailablePacks(_numPacks) {
if (msg.value < (uint256(_numPacks) * PACK_PRICE)) {
revert NotEnoughEth(msg.value);
}
if (_numPacks == 0 || _numPacks > MAX_PACKS_PER_TX) {
revert InvalidNumOfPacks(_numPacks);
}
availablePacks ... | 12,181,932 | [
1,
49,
28142,
2795,
12454,
17,
9188,
715,
3170,
18122,
364,
1517,
2298,
225,
389,
2107,
4420,
87,
326,
1300,
434,
2298,
87,
358,
315,
3190,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
1265,
1908,
4420,
87,
12,
11890,
28,
389,
2107,
4420,
87,
13,
1071,
8843,
429,
866,
5268,
4420,
87,
24899,
2107,
4420,
87,
13,
288,
203,
565,
309,
261,
3576,
18,
1132,
411,
261,
11890,
5034,
24899,
2107,
442... |
./full_match/44787/0x826c83cB9f9238546c6e823cf1a696E42Ae880B2/sources/contracts/MasterChef.sol | Return reward multiplier over the given _from to _to second. | function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
if (_from >= allEndTime) {
return 0;
}
if (_to < startTime) {
return 0;
}
uint from = _from;
uint to = _to;
if (from < startTime) {
from =... | 13,244,579 | [
1,
990,
19890,
15027,
1879,
326,
864,
389,
2080,
358,
389,
869,
2205,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31863,
5742,
12,
11890,
5034,
389,
2080,
16,
2254,
5034,
389,
869,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
67,
2080,
1545,
777,
25255,
13,
288,
203,
5411,
327,
374,
31,
203,
3639,
289,
20... |
///File: giveth-common-contracts/contracts/ERC20.sol
pragma solidity ^0.4.19;
/**
* @title ERC20
* @dev A standard interface for tokens.
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md
*/
contract ERC20 {
/// @dev Returns the total token supply
function totalSupply() ... | * @notice `onlySecurityGuard` can checkin. If they fail to checkin, payments will not be allowed to be disbursed, unless the payment has an `earliestPayTime` <= `securityGuardLastCheckin`. @notice To reduce the risk of a front-running attack on payments, it is important that this is called with a resonable gasPrice set... | function checkIn() onlySecurityGuard external {
securityGuardLastCheckin = _getTime();
}
| 10,468,519 | [
1,
68,
3700,
4368,
16709,
68,
848,
866,
267,
18,
971,
2898,
2321,
358,
866,
267,
16,
25754,
903,
486,
506,
2935,
358,
506,
1015,
70,
295,
730,
16,
3308,
326,
5184,
711,
392,
1375,
2091,
17452,
9148,
950,
68,
1648,
1375,
7462,
1670... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
382,
1435,
1338,
4368,
16709,
3903,
288,
203,
3639,
4373,
16709,
3024,
1564,
267,
273,
389,
588,
950,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function a... | deposit to yearn get DEA and send to Vault | function harvest(uint256 ethBalance) private returns(
uint256 withdrawable
){
uint256 rewards = calculateRewards();
uint256 depositable = ethBalance > rewards ? ethBalance.sub(rewards) : 0;
if(depositable >= minDepositable){
controller.depositTokenForStrategy(deposita... | 1,283,395 | [
1,
323,
1724,
358,
677,
73,
1303,
336,
2030,
37,
471,
1366,
358,
17329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17895,
26923,
12,
11890,
5034,
13750,
13937,
13,
3238,
1135,
12,
203,
3639,
2254,
5034,
598,
9446,
429,
203,
565,
262,
95,
203,
3639,
2254,
5034,
283,
6397,
273,
4604,
17631,
14727,
5621,
203,
3639,
2254,
5034,
443,
1724,... |
/**
*Submitted for verification at Etherscan.io on 2020-03-26
*/
// File: openzeppelin-solidity/contracts/access/Roles.sol
pragma solidity ^0.5.2;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
... | * @title Roles @dev Library for managing addresses assigned to a Role./ | library Roles {
struct Role {
mapping (address => bool) bearer;
}
function add(Role storage role, address account) internal {
require(account != address(0));
require(!has(role, account));
role.bearer[account] = true;
}
function remove(Role storage role, address a... | 1,069,769 | [
1,
6898,
225,
18694,
364,
30632,
6138,
6958,
358,
279,
6204,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
19576,
288,
203,
203,
203,
565,
1958,
6204,
288,
203,
3639,
2874,
261,
2867,
516,
1426,
13,
28802,
31,
203,
565,
289,
203,
203,
565,
445,
527,
12,
2996,
2502,
2478,
16,
1758,
2236,
13,
2713,
288,
203,
3639,
2583,
12,
463... |
// SPDX-License-Identifier: MIT
pragma solidity >0.7.5;
pragma experimental ABIEncoderV2;
/* Interface Imports */
import { iL1NFTBridge } from "./interfaces/iL1NFTBridge.sol";
import { iL2NFTBridge } from "./interfaces/iL2NFTBridge.sol";
import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
/* L... | * @param _l2CrossDomainMessenger Cross-domain messenger used by this contract. @param _l1NFTBridge Address of the L1 bridge deployed to the main chain./ | function initialize(
address _l2CrossDomainMessenger,
address _l1NFTBridge
)
public
onlyOwner()
initializer()
{
require(messenger == address(0), "Contract has already been initialized.");
require(_l2CrossDomainMessenger != address(0) && _l1NFTBridge !=... | 12,620,387 | [
1,
67,
80,
22,
13941,
3748,
29329,
19742,
17,
4308,
31086,
1399,
635,
333,
6835,
18,
225,
389,
80,
21,
50,
4464,
13691,
5267,
434,
326,
511,
21,
10105,
19357,
358,
326,
2774,
2687,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
203,
3639,
1758,
389,
80,
22,
13941,
3748,
29329,
16,
203,
3639,
1758,
389,
80,
21,
50,
4464,
13691,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1338,
5541,
1435,
203,
3639,
12562,
1435,
203,
565,
288,
203,
3... |
./full_match/1/0x342B6ECbd777AF880702B9670C1A2dECB403bc38/sources/Khroma.sol | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
constructor() internal {
_owner = 0x7Ab7B55a6c6716f9BFe23d8bec4f252241Bd12e5;
emit OwnershipTransferred(address(0), _owner);
... | 17,030,809 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
3639,
1758,
8808,
2416,
5541,
16,
203,
3639,
1758,
8808,
394,
5541,
203,
565,
11272,
203,
203,
5... |
./full_match/5/0xdF03d0DD06cd35e547b6A270a8fe821aA788e8aa/sources/src/stake/HoprStakeBase.sol | Cap on actual locked tokens for receiving additional boosts, in LOCK_TOKEN's decimals (1e18)
| uint256 public immutable BOOST_CAP; | 1,882,180 | [
1,
4664,
603,
3214,
8586,
2430,
364,
15847,
3312,
14994,
87,
16,
316,
14631,
67,
8412,
1807,
15105,
261,
21,
73,
2643,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
11732,
9784,
4005,
67,
17296,
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,
... |
./full_match/4/0xB6214030521bC6D27c770a6037fdDC07288A6086/sources/browser/myERC20.sol | * @dev Allows the current owner to set the pendingOwner address. @param newOwner The address to transfer ownership to./ | function transferOwnership(address newOwner) onlyOwner external {
pendingOwner = newOwner;
}
| 13,372,458 | [
1,
19132,
326,
783,
3410,
358,
444,
326,
4634,
5541,
1758,
18,
225,
394,
5541,
1021,
1758,
358,
7412,
23178,
358,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
5460,
12565,
12,
2867,
394,
5541,
13,
1338,
5541,
3903,
288,
203,
565,
4634,
5541,
273,
394,
5541,
31,
203,
225,
289,
203,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/*
* Copyright 2016 Modum.io and the CSG Group at University of Zurich
*
* 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 req... | The timestamp of the frist temperature that was out of range */ | function failedTimestampSecondsAt(uint16 index) constant returns (uint32) {
return failedTimestampSeconds[index];
}
| 2,478,251 | [
1,
1986,
2858,
434,
326,
3812,
376,
12843,
716,
1703,
596,
434,
1048,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2535,
4921,
6762,
861,
12,
11890,
2313,
770,
13,
5381,
1135,
261,
11890,
1578,
13,
288,
203,
4202,
327,
2535,
4921,
6762,
63,
1615,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/4/0xd8c2cd8D6819246D15B312aD95258C26ECFAb2D2/sources/contracts/StrategyProviders/WHProtectivePut.sol | * @notice Returns list of options to be bought in order to follow this strategy @param _amount Amount of underlying asset to hedge @param _period Period of time to hedge trade/ | function getOptionsList(uint _amount, uint _period) external view returns (IWHHedge.Option[] memory optionList){
uint currentPrice = getCurrentPrice();
optionList = new IWHHedge.Option[](1);
optionList[0] = IWHHedge.Option(currentPrice, _period, _amount, IHegicOptions.OptionType.Put);
}
... | 8,616,492 | [
1,
1356,
666,
434,
702,
358,
506,
800,
9540,
316,
1353,
358,
2805,
333,
6252,
225,
389,
8949,
16811,
434,
6808,
3310,
358,
366,
7126,
225,
389,
6908,
12698,
434,
813,
358,
366,
7126,
18542,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9849,
682,
12,
11890,
389,
8949,
16,
2254,
389,
6908,
13,
3903,
1476,
1135,
261,
45,
12557,
44,
7126,
18,
1895,
8526,
3778,
1456,
682,
15329,
203,
3639,
2254,
783,
5147,
273,
5175,
5147,
5621,
203,
3639,
1456,
682,
273,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
/**
* smatthewenglish oOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOo niftynathan
* OoOoOoOoOoOoOoOoOoOoOoOoOoO OoOoOoOoOoOoOoOoOoOoOoOoOoOo
* OoOoOoOoOoOoOoOoOoOoO OoOoOoOoOoOoOoOoOoOoOo
* ... | * @dev Generate the NFTs of this collection. [20001000, 20000900, ] Requirements: - `values_` provided as a list of addresses, each of which implicitly corresponds to a tokenId, derrived by the index of the value in the input array. The values map to a color attribute. Em... | function mint(uint256[] calldata values_) external onlyValidSender {
require(!_mintingFinalized, "Merge: Minting is finalized.");
uint256 index = _nextMintId;
uint256 alphaId = _alphaId;
uint256 alphaMass = _alphaMass;
address omnibus = _omni... | 6,060,364 | [
1,
4625,
326,
423,
4464,
87,
434,
333,
1849,
18,
306,
6976,
1611,
3784,
16,
576,
2787,
29,
713,
16,
308,
29076,
30,
300,
1375,
2372,
67,
68,
2112,
487,
279,
666,
434,
6138,
16,
1517,
434,
2398,
1492,
24682,
13955,
358,
279,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
377,
445,
312,
474,
12,
11890,
5034,
8526,
745,
892,
924,
67,
13,
3903,
1338,
1556,
12021,
288,
203,
3639,
2583,
12,
5,
67,
81,
474,
310,
7951,
1235,
16,
315,
6786,
30,
490,
474,
310,
353,
727,
1235,
1199,
1769,
540,
203,
540... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one... | delete current from daisy chain | function getUpdatedCurrentStaker() public returns (address) {
uint256 currentStake =
getMaintenanceStakerStake(currentMaintenanceStaker);
if (
(block.number - currentMaintenanceStakerStartBlock) *
maintenanceStakePerBlock >=
currentStake
) ... | 563,717 | [
1,
3733,
783,
628,
5248,
291,
93,
2687,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
7381,
3935,
510,
6388,
1435,
1071,
1135,
261,
2867,
13,
288,
203,
3639,
2254,
5034,
783,
510,
911,
273,
203,
5411,
2108,
7770,
510,
6388,
510,
911,
12,
2972,
11045,
510,
6388,
1769,
203,
3639,
309,
261,
203,
5411,
... |
pragma solidity 0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint a, uint b) internal pure returns(uint) {
if (a == 0) {
ret... | * @dev Integer division of two numbers, truncating the quotient./ assert(b > 0); Solidity automatically throws when dividing by 0 uint c = a / b; assert(a == b * c + a % b); There is no case in which this doesn't hold | function div(uint a, uint b) internal pure returns(uint) {
return a / b;
}
| 5,488,636 | [
1,
4522,
16536,
434,
2795,
5600,
16,
6956,
1776,
326,
26708,
18,
19,
1815,
12,
70,
405,
374,
1769,
225,
348,
7953,
560,
6635,
1216,
1347,
3739,
10415,
635,
374,
2254,
276,
273,
279,
342,
324,
31,
1815,
12,
69,
422,
324,
225,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
3739,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
12,
11890,
13,
288,
203,
3639,
327,
279,
342,
324,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.4.21;
// File: contracts/BytesDeserializer.sol
/*
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/*
* Deserialize... | Both of the below are checked on the overridden validPurchase() function Check to see if the tokens they're about to purchase is above the minimum for this stage | function checkMinimum(StageStorage storage self, uint8 _stage, uint256 _tokens) internal view returns (bool isValid) {
if(_tokens < self.stages[_stage].minimumBuy){
return false;
return true;
}
}
| 2,166,596 | [
1,
20240,
434,
326,
5712,
854,
5950,
603,
326,
11000,
923,
23164,
1435,
445,
2073,
358,
2621,
309,
326,
2430,
2898,
10,
5520,
31,
266,
2973,
358,
23701,
353,
5721,
326,
5224,
364,
333,
6009,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
13042,
12,
8755,
3245,
2502,
365,
16,
2254,
28,
389,
12869,
16,
2254,
5034,
389,
7860,
13,
2713,
1476,
1135,
261,
6430,
4908,
13,
288,
203,
377,
202,
430,
24899,
7860,
411,
365,
18,
334,
1023,
63,
67,
12869,
8009... |
pragma solidity 0.6.0;
import "./Lib/Address.sol";
import "./Lib/SafeMath.sol";
import "./Lib/AddressPayable.sol";
import "./Lib/SafeERC20.sol";
/**
* @title NToken contract
* @dev Include standard erc20 method, mining method, and mining data
*/
interface IERC20 {
function totalSupply() external view returns... | * @dev Check token mapping @param token Offering token address @return Mining NToken address/ | function checkTokenMapping(address token) public view returns (address) {
return _tokenMapping[token];
}
| 12,580,520 | [
1,
1564,
1147,
2874,
225,
1147,
25753,
310,
1147,
1758,
327,
5444,
310,
423,
1345,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
1345,
3233,
12,
2867,
1147,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
2316,
3233,
63,
2316,
15533,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/8453/0xFc29813Beeb3c7395C7A5f8dfC3352491D5ea0E2/sources/contracts/burnredeem/ERC1155BurnRedeem.sol | * See {IBurnRedeemCore-getBurnRedeemForToken}./ | function getBurnRedeemForToken(address creatorContractAddress, uint256 tokenId) external override view returns(uint256 instanceId, BurnRedeem memory burnRedeem) {
instanceId = _getRedeemInstanceId(creatorContractAddress, tokenId);
burnRedeem = _burnRedeems[creatorContractAddress][instanceId];
}
... | 16,794,515 | [
1,
9704,
288,
13450,
321,
426,
24903,
4670,
17,
588,
38,
321,
426,
24903,
1290,
1345,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
321,
426,
24903,
1290,
1345,
12,
2867,
11784,
8924,
1887,
16,
2254,
5034,
1147,
548,
13,
3903,
3849,
1476,
1135,
12,
11890,
5034,
17608,
16,
605,
321,
426,
24903,
3778,
18305,
426,
24903,
13,
288,
203,
3639,
17608,
... |
pragma solidity 0.4.25;
import "./library/acl.sol";
import "./library/SafeMath.sol";
/**
* censensus interface
*/
interface Consensus {
function getValidatorBlockInfo(address validatorAddress) external view returns(uint, uint, uint);
}
/**
* @dev This contract is designed to support Validator Committee on asimov... | delegate contract address initialized or not proposal type - for now there is one type which is to add a new asset as transaction fee | enum ProposalType {CONFIRM_ASSETS_FOR_FEE}
| 6,473,549 | [
1,
22216,
6835,
1758,
6454,
578,
486,
14708,
618,
300,
364,
2037,
1915,
353,
1245,
618,
1492,
353,
358,
527,
279,
394,
3310,
487,
2492,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2792,
19945,
559,
288,
2248,
31324,
67,
3033,
28092,
67,
7473,
67,
8090,
41,
97,
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,... |
./full_match/43114/0x352bBd0702A4B6275afA215a18cAeD517B378b0C/sources/contracts/PREZALE.sol | 0.02% remaining finalize presale
| if(presaleinfo2.totalRaised == presaleinfo.maxCapETH) { | 4,533,114 | [
1,
20,
18,
3103,
9,
4463,
12409,
4075,
5349,
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,
13491,
309,
12,
12202,
5349,
1376,
22,
18,
4963,
12649,
5918,
422,
4075,
5349,
1376,
18,
1896,
4664,
1584,
44,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xE9F0a0a787CEEA82f1c8fE7A783826eBD181e707/sources/packages/contracts-core/contracts/XAppConnectionManager.sol | * @notice remove the domain from the two-way mapping @param _domain domain to un-enroll/ | function _clearDomain(uint32 _domain) internal {
address _currentReplica = domainToReplica[_domain];
if (_currentReplica != address(0)) {
domainToReplica[_domain] = address(0);
replicaToDomain[_currentReplica] = 0;
emit ReplicaUnenrolled(_domain, _currentReplica);... | 15,740,815 | [
1,
4479,
326,
2461,
628,
326,
2795,
17,
1888,
2874,
225,
389,
4308,
2461,
358,
640,
17,
275,
2693,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8507,
3748,
12,
11890,
1578,
389,
4308,
13,
2713,
288,
203,
3639,
1758,
389,
2972,
14222,
273,
2461,
774,
14222,
63,
67,
4308,
15533,
203,
3639,
309,
261,
67,
2972,
14222,
480,
1758,
12,
20,
3719,
288,
203,
5411,
... |
pragma solidity ^0.4.24;
/**
* Implementation of the basic standard token
* https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
*/
contract TokenERC20 {
// [ERC20] the name of the token - e.g. "Vehicle Owner’s Benefit"
string public name;
// [ERC20] the symbol of the token. E.g. "VOB".
... | Check if the sender has enough
| require(balanceOf[msg.sender] >= _value); | 1,080,587 | [
1,
1564,
309,
326,
5793,
711,
7304,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
12296,
951,
63,
3576,
18,
15330,
65,
1545,
389,
1132,
1769,
2398,
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... |
pragma solidity 0.4.24;
import "./PermissionCreator.sol";
import "../common/Check.sol";
import "../../interaction/interface/IPermissionManagement.sol";
import "../../interaction/interface/IAuthorization.sol";
/// @title Permission management contract
/// @author ["Rivtower Technologies <contact@rivtower.com>"]
/// @n... | @notice Update the permission name @param _permission The address of permission @param _name The new name @return true if successed, otherwise false | function updatePermissionName(address _permission, bytes32 _name)
external
hasPermission(builtInPermissions[2])
returns (bool)
{
Permission perm = Permission(_permission);
require(perm.updateName(_name), "updatePermissionName failed.");
return true;
}
| 6,398,583 | [
1,
1891,
326,
4132,
508,
225,
389,
9827,
1021,
1758,
434,
4132,
225,
389,
529,
1021,
394,
508,
327,
638,
309,
8667,
3692,
16,
3541,
629,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
5041,
461,
12,
2867,
389,
9827,
16,
1731,
1578,
389,
529,
13,
203,
3639,
3903,
203,
3639,
26097,
12,
12406,
382,
6521,
63,
22,
5717,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
8509,
4641,
273,
850... |
./full_match/1/0xA3D1D966EfA6C99487eF1E0009a4D2F0AE3A4578/sources/new.sol | 200 means 2% will send to charity
| uint256 public ownerFee = 200; | 4,910,702 | [
1,
6976,
4696,
576,
9,
903,
1366,
358,
1149,
560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
3410,
14667,
273,
4044,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/40/0x10614e4395AAc006ca0Ef4970d1412e8e921d911/sources/Users/obiedobo/Desktop/Code/apeswap-zap/contracts/extensions/pools/ApeSwapZapPools.sol | @notice Zap token into banana/gnana pool @param inputToken Input token to zap @param inputAmount Amount of input tokens to zap @param lpTokens Tokens of LP to zap to @param path0 Path from input token to LP token0 @param path1 Path from input token to LP token1 @param minAmountsSwap The minimum amount of output tokens... | function zapLPPool(
IERC20 inputToken,
uint256 inputAmount,
address[] calldata path0,
address[] calldata path1,
uint256 deadline,
IBEP20RewardApeV5 pool
) external nonReentrant {
IApePair pair = IApePair(address(pool.STAKE_TOKEN()));
require(
... | 9,554,672 | [
1,
62,
438,
1147,
1368,
25732,
13848,
19,
1600,
13848,
2845,
225,
810,
1345,
2741,
1147,
358,
11419,
225,
810,
6275,
16811,
434,
810,
2430,
358,
11419,
225,
12423,
5157,
13899,
434,
511,
52,
358,
11419,
358,
225,
589,
20,
2666,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
11419,
14461,
2864,
12,
203,
3639,
467,
654,
39,
3462,
810,
1345,
16,
203,
3639,
2254,
5034,
810,
6275,
16,
203,
3639,
1758,
8526,
745,
892,
589,
20,
16,
203,
3639,
1758,
8526,
745,
892,
589,
21,
16,
203,
3639,
2254,
... |
./partial_match/3/0xa0e78aa76Da441C4bf73df0eB37e8c5C98282124/sources/POWH.sol | * @dev function to convert all dividend to collateral./ fetch dividends pay out the dividends virtually retrieve ref. bonus dispatch a buy order with the virtualized "withdrawn dividends" fire event | function reinvest(address contractAddress) public nonReentrant
{
require(contractAddressRecord[contractAddress] == true);
require(walletAddressRecord[msg.sender] == true);
address _customerAddress = msg.sender;
balanceLedger[_customerAddress][contractAddress].pa... | 5,051,446 | [
1,
915,
358,
1765,
777,
31945,
358,
4508,
2045,
287,
18,
19,
2158,
3739,
350,
5839,
8843,
596,
326,
3739,
350,
5839,
331,
2714,
3452,
4614,
1278,
18,
324,
22889,
3435,
279,
30143,
1353,
598,
326,
5024,
1235,
315,
1918,
9446,
82,
373... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
5768,
395,
12,
2867,
6835,
1887,
13,
1071,
1661,
426,
8230,
970,
203,
565,
288,
203,
3639,
2583,
12,
16351,
1887,
2115,
63,
16351,
1887,
65,
422,
638,
1769,
203,
3639,
2583,
12,
19177,
1887,
2115,
63,
3576,
18,
1... |
//Address: 0xa8df33a40fe2e3278e4d94a974f70778043fbd20
//Contract name: I2Presale
//Balance: 5.845 Ether
//Verification Date: 2/21/2018
//Transacion Count: 30
// CODE STARTS HERE
pragma solidity ^0.4.18;
interface token {
function transfer(address receiver, uint amount) external;
}
/**
* @title Ownable
* @dev... | * Finish Crowdsale in some reason like Goals Reached or etc/ | function finshCrowdsale () public onlyOwner {
deadline = now;
crowdsaleClosed = true;
}
| 1,811,492 | [
1,
11641,
385,
492,
2377,
5349,
316,
2690,
3971,
3007,
4220,
1031,
868,
2004,
578,
5527,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
574,
674,
39,
492,
2377,
5349,
1832,
1071,
1338,
5541,
288,
203,
3639,
14096,
273,
2037,
31,
203,
3639,
276,
492,
2377,
5349,
7395,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x8761b55aF5A703d5855F1865dB8fE4DD18E94c53/sources/contracts/SyntheticNouns.sol | The Nouns token URI descriptor ENS reverse records contract The noun seeds Addresses that have claimed a noun Claimer of each noun The internal noun ID tracker | contract SyntheticNouns is ERC721 {
using Strings for uint256;
using Strings for address;
event NounCreated(uint256 indexed tokenId, INounsSeeder.Seed seed);
INounsDescriptor public descriptor;
IENSReverseRecords public reverseRecords;
mapping(uint256 => INounsSeeder.Seed) public seeds;
... | 3,108,248 | [
1,
1986,
423,
465,
87,
1147,
3699,
4950,
512,
3156,
4219,
3853,
6835,
1021,
27771,
19076,
23443,
716,
1240,
7516,
329,
279,
27771,
3905,
69,
4417,
434,
1517,
27771,
1021,
2713,
27771,
1599,
9745,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
16091,
16466,
50,
465,
87,
353,
4232,
39,
27,
5340,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
565,
1450,
8139,
364,
1758,
31,
203,
203,
565,
871,
423,
465,
6119,
12,
11890,
5034,
8808,
1147,
548,
16,
2120,
465... |
./partial_match/1/0x4D4c8F2f30e0224889ab578283A844e10B57e0F8/sources/contracts/PancakeV3Pool.sol | @dev Get the pool's balance of token1 @dev This function is gas optimized to avoid a redundant extcodesize check in addition to the returndatasize check | function balance1() private view returns (uint256) {
(bool success, bytes memory data) = token1.staticcall(
abi.encodeWithSelector(IERC20Minimal.balanceOf.selector, address(this))
);
require(success && data.length >= 32);
return abi.decode(data, (uint256));
}
| 3,596,922 | [
1,
967,
326,
2845,
1807,
11013,
434,
1147,
21,
225,
1220,
445,
353,
16189,
15411,
358,
4543,
279,
19530,
1110,
7000,
554,
866,
316,
2719,
358,
326,
327,
13178,
554,
866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
21,
1435,
3238,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
261,
6430,
2216,
16,
1731,
3778,
501,
13,
273,
1147,
21,
18,
3845,
1991,
12,
203,
5411,
24126,
18,
3015,
1190,
4320,
12,
45,
654,
39,
3462,
2930... |
./partial_match/3/0xc54f81ed1116c53d13776C419764F75cEfDe18F5/sources/SIPilotToken.sol | converts ETH to DAI refund leftover ETH to user | function convertEthToDai(uint daiAmount) public payable {
uint deadline = block.timestamp + 15;
address[] memory path = new address[](2);
path[0] = _uniswapRouter.WETH();
path[1] = _daiToken;
require(amts[0] > 0, "Exchange failed.");
require(success, "refund failed")... | 5,089,191 | [
1,
6283,
87,
512,
2455,
358,
463,
18194,
16255,
29709,
512,
2455,
358,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1765,
41,
451,
774,
40,
10658,
12,
11890,
5248,
77,
6275,
13,
1071,
8843,
429,
288,
203,
3639,
2254,
14096,
273,
1203,
18,
5508,
397,
4711,
31,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203... |
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol | @dev Reads the int112 at `rdPtr` in returndata. | function readInt112(
ReturndataPointer rdPtr
) internal pure returns (int112 value) {
assembly {
returndatacopy(0, rdPtr, _OneWord)
value := mload(0)
}
}
| 3,218,541 | [
1,
7483,
326,
509,
17666,
622,
1375,
13623,
5263,
68,
316,
327,
892,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13731,
17666,
12,
203,
565,
2000,
892,
4926,
9437,
5263,
203,
225,
262,
2713,
16618,
1135,
261,
474,
17666,
460,
13,
288,
203,
565,
19931,
288,
203,
1377,
327,
892,
3530,
12,
20,
16,
9437,
5263,
16,
389,
3335,
3944,
1... |
./partial_match/288/0xBf977E734C24474f28282028C36F0863F4B1b49A/sources/contracts/BaseJumpRateModelV2.sol | * @title Logic for Compound's JumpRateModel Contract V2. @author Compound (modified by Dharma Labs, refactored by Arr00) @notice Version 2 modifies Version 1 by enabling updateable parameters./ | contract BaseJumpRateModelV2 {
using SafeMath for uint;
event NewInterestParams(uint baseRatePerBlock, uint multiplierPerBlock, uint jumpMultiplierPerBlock, uint kink);
address public owner;
uint public multiplierPerBlock;
uint public baseRatePerBlock;
uint public jumpMultiplierPerBlock;
... | 16,905,481 | [
1,
20556,
364,
21327,
1807,
804,
2801,
4727,
1488,
13456,
776,
22,
18,
225,
21327,
261,
7342,
635,
463,
30250,
2540,
511,
5113,
16,
283,
3493,
7653,
635,
10371,
713,
13,
225,
4049,
576,
23934,
4049,
404,
635,
570,
17912,
1089,
429,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
3360,
26743,
4727,
1488,
58,
22,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
871,
1166,
29281,
1370,
12,
11890,
1026,
4727,
2173,
1768,
16,
2254,
15027,
2173,
1768,
16,
2254,
11833,
23365,
2173,
1768,
16... |
./full_match/80001/0x93606Db8e1340eBa115633Cc8a031D379D7638C6/sources/contracts/dev/functions/FunctionsBillingRegistry.sol | @notice Oracle withdraw LINK earned through fulfilling requests @notice If amount is 0 the full balance will be withdrawn @param recipient where to send the funds @param amount amount to withdraw/ | function oracleWithdraw(address recipient, uint96 amount) external nonReentrant whenNotPaused {
if (amount == 0) {
amount = s_withdrawableTokens[msg.sender];
}
if (s_withdrawableTokens[msg.sender] < amount) {
revert InsufficientBalance();
}
s_withdrawableTokens[msg.sender] -= amount;
... | 5,640,171 | [
1,
23601,
598,
9446,
22926,
425,
1303,
329,
3059,
16136,
74,
5789,
3285,
225,
971,
3844,
353,
374,
326,
1983,
11013,
903,
506,
598,
9446,
82,
225,
8027,
1625,
358,
1366,
326,
284,
19156,
225,
3844,
3844,
358,
598,
9446,
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,
225,
445,
20865,
1190,
9446,
12,
2867,
8027,
16,
2254,
10525,
3844,
13,
3903,
1661,
426,
8230,
970,
1347,
1248,
28590,
288,
203,
565,
309,
261,
8949,
422,
374,
13,
288,
203,
1377,
3844,
273,
272,
67,
1918,
9446,
429,
5157,
63,
... |
./full_match/4/0x2B72ED11123cD87D42060Be24C83af43b28FCF55/sources/ThievesList1.sol | Value Changing Functions */ | function setNumberOfPublicMints(uint256 _mints) public onlyOwner {
MAX_PUBLIC_MINTS = _mints;
}
| 781,179 | [
1,
620,
1680,
18183,
15486,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
9226,
4782,
49,
28142,
12,
11890,
5034,
389,
81,
28142,
13,
1071,
1338,
5541,
288,
203,
3639,
4552,
67,
14939,
67,
49,
3217,
55,
273,
389,
81,
28142,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.12;
... | inject NONSTANDARD NAMING
| function SAFEAPPROVE352(IERC20 token, address spender, uint256 value) internal { | 1,839,177 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
348,
6799,
41,
2203,
3373,
3412,
4763,
22,
12,
45,
654,
39,
3462,
1147,
16,
1758,
17571,
264,
16,
2254,
5034,
460,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.4.24;
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pu... | * @dev Returns true if a node is whitelisted param node Node to check./ | function isWhitelisted(address node) public view returns(bool) {
return whitelistedNodesList.nodeExists(uint256(node));
}
| 5,489,212 | [
1,
1356,
638,
309,
279,
756,
353,
26944,
579,
756,
2029,
358,
866,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
18927,
329,
12,
2867,
756,
13,
1071,
1476,
1135,
12,
6430,
13,
288,
203,
565,
327,
26944,
3205,
682,
18,
2159,
4002,
12,
11890,
5034,
12,
2159,
10019,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
/// @author Jianwei Liu jliu@shipchain.io
pragma solidity 0.5.12;
import {Ownable} from "openzeppelin-solidity/contracts/ownership/Ownable.sol";
/** @notice The VaultNotary contract is the contract for reading/writing the
* vault uri and hash, and controlling the permissions to those operations by vault
* owner.... | * @notice This modifier is for testing whether a Vault has been registered yet @param vaultId bytes16 The ID of the vault to check/ | modifier isRegistered(bytes16 vaultId) {
require(notaryMapping[vaultId].vaultOwner != address(0x0), "Vault ID does not exist");
_;
}
| 2,520,323 | [
1,
2503,
9606,
353,
364,
7769,
2856,
279,
17329,
711,
2118,
4104,
4671,
225,
9229,
548,
1731,
2313,
1021,
1599,
434,
326,
9229,
358,
866,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
353,
10868,
12,
3890,
2313,
9229,
548,
13,
288,
203,
3639,
2583,
12,
902,
814,
3233,
63,
26983,
548,
8009,
26983,
5541,
480,
1758,
12,
20,
92,
20,
3631,
315,
12003,
1599,
1552,
486,
1005,
8863,
203,
3639,
389,
31,
20... |
./partial_match/1/0x43520395f42256100b47881CA53Ef613371d1506/sources/ECOProxy.sol | * @dev Collection of functions related to the address type/ | library Address {
function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
return (codehash != accountHash && codehash != 0x0);
}
assembly { codehash := ext... | 16,184,916 | [
1,
2532,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
203,
203,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
1731,
1578,
981,
2816,
31,
203,
3639,
1731,
1578,
2236,
2310,
273,
374,
6511,
25,
72,
3247,
26... |
./partial_match/1/0x1331e537Df2b3ae5B75E2655552B0AD7502cA4f8/sources/UniswapV2_ZapIn_General_V3.sol | */ check output via tokenA -> tokenB | @notice This function is used to swap ERC20 <> ERC20
@param _FromTokenContractAddress The token address to swap from.
@param _ToTokenContractAddress The token address to swap to.
@param tokens2Trade The amount of tokens to swap
@return tokenBought The quantity of tokens bought
function _token2T... | 4,402,553 | [
1,
19,
866,
876,
3970,
1147,
37,
317,
1147,
38,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
632,
20392,
1220,
445,
353,
1399,
358,
7720,
4232,
39,
3462,
2813,
4232,
39,
3462,
203,
565,
632,
891,
389,
1265,
1345,
8924,
1887,
1021,
1147,
1758,
358,
7720,
628,
18,
203,
565,
632,
891,
389,
774,
1345,
8924,
1887,
1021,
... |
./partial_match/1/0xbf826778E20274a33CC896275F3F01c97BCa7b71/sources/Asset.sol | @dev Read royalty fee set./ | function getRoyaltyFee() public view returns (uint256) {
return royalty;
}
| 4,423,248 | [
1,
1994,
721,
93,
15006,
14036,
444,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4170,
13372,
15006,
14667,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
721,
93,
15006,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-04
*/
// SPDX-License-Identifier: MIT
//FORKED OFF BORINGBANANAS.CO, GREAT COMMUNITY, GO CHECK THEM OUT!
//VEE IS THE MAN.
// GO TO LINE 1885 TO SEE WHERE THE MARTIAN CONTRACT STARTS
//LETS HAVE SOME FUN! HOPE YOU LIKE EM.
// File: @openzeppelin/contracts/ut... | IPFS URL WILL BE ADDED WHEN MARTIANS ARE ALL SOLD OUT
| string public MARTIAN_PROVENANCE = ""; | 15,443,918 | [
1,
2579,
4931,
1976,
678,
15125,
9722,
11738,
7660,
29707,
490,
4928,
45,
11607,
432,
862,
8061,
348,
11846,
8210,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
490,
4928,
21634,
67,
3373,
58,
1157,
4722,
273,
1408,
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... |
pragma solidity ^0.4.24;
interface PlayerBookReceiverInterface {
function receivePlayerInfo(uint256 _pID, address _addr, bytes32 _name, uint256 _laff) external;
function receivePlayerNameList(uint256 _pID, bytes32 _name) external;
}
contract PlayerBook {
using NameFilter for string;
using SafeMath f... | ============================================================================== _| _ _|_ _ _ _ _|_ _ . (_|(_| | (_| _\(/_ | |_||_) .=============================|================================================ | contract PlayerBook {
using NameFilter for string;
using SafeMath for uint256;
address private communityAddr = 0xf38ce89f0e7c0057fce8dc1e8dcbb36a2366e8c5;
struct Player {
address addr;
bytes32 name;
uint256 laff;
uint256 names;
}
public
constructor()
{
... | 467,100 | [
1,
9917,
26678,
377,
389,
96,
389,
389,
96,
67,
389,
565,
389,
389,
389,
96,
67,
565,
389,
282,
263,
565,
261,
67,
96,
24899,
96,
571,
261,
67,
96,
225,
389,
30351,
18510,
571,
571,
67,
20081,
67,
13,
225,
263,
2429,
14468,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19185,
9084,
288,
203,
565,
1450,
1770,
1586,
364,
533,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1758,
3238,
19833,
3178,
273,
374,
5841,
7414,
311,
6675,
74,
20,
73,
27,
71,
713,
10321,
74,
311,
... |
pragma solidity ^0.6.2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
contract FlightSuretyData is AccessControl {
using SafeMath for uint256;
// Roles definition
bytes32 public constant AIRLINER_ROLE = keccak256("AIRLINER");
// Airlin... | * @dev Transfers eligible payout funds to insuree/ | function withdraw() external requireIsOperational {
uint256 _amount = _pendingWithdrawals[_msgSender()];
require(
_amount > 0,
"Passenger has no pending withdrawal"
);
_pendingWithdrawals[_msgSender()] = 0;
require(success);
}
| 2,571,094 | [
1,
1429,
18881,
21351,
293,
2012,
284,
19156,
358,
316,
2055,
73,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
3903,
2583,
2520,
2988,
287,
288,
203,
3639,
2254,
5034,
389,
8949,
273,
389,
9561,
1190,
9446,
1031,
63,
67,
3576,
12021,
1435,
15533,
203,
203,
3639,
2583,
12,
203,
5411,
389,
8949,
405,
374,
16,
203,... |
./full_match/11155111/0xE788E055568df59E8c832fC21d9A1dA12ae0bfC1/sources/contracts/Contract.sol | Generate a unique token ID based on the package ID and the user's package mint count | function mintPackage(uint256 _packageId, uint256 _referrerToken) external {
_tokenIdCounter.increment();
require(_packageId > 0 && _packageId <= MAX_PACKAGES, "Invalid package ID");
require(referralCounts[referrers[_referrerToken]] < MAX_REFERRALS, "Referral limit reached");
require(... | 3,813,534 | [
1,
4625,
279,
3089,
1147,
1599,
2511,
603,
326,
2181,
1599,
471,
326,
729,
1807,
2181,
312,
474,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
2261,
12,
11890,
5034,
389,
5610,
548,
16,
2254,
5034,
389,
1734,
11110,
1345,
13,
3903,
288,
203,
3639,
389,
2316,
548,
4789,
18,
15016,
5621,
203,
3639,
2583,
24899,
5610,
548,
405,
374,
597,
389,
5610,
548,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-03
*/
/**
*Submitted for verification at Etherscan.io on 2021-11-03
*/
/**
*Submitted for verification at BscScan.com on 2021-10-30
*/
// File: contracts/Ownable.sol
pragma solidity ^0.5.0;
/**
* @dev Contract module which provides a basic access contr... | added _contract param in function to support generalization | function claimAuction(address _contract, uint256 _tokenId, bool awardType, string memory ownerId, address from) isValid(_contract) public {
auctionSell storage temp = _auctionTokens[_tokenId][_contract];
require(temp.endTime < now,"103");
require(temp.minPrice > 0,"104");
require(msg.sender==temp.bidd... | 36,251 | [
1,
9665,
389,
16351,
579,
316,
445,
358,
2865,
7470,
1588,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7516,
37,
4062,
12,
2867,
389,
16351,
16,
2254,
5034,
389,
2316,
548,
16,
1426,
279,
2913,
559,
16,
533,
3778,
29456,
16,
1758,
628,
13,
4908,
24899,
16351,
13,
1071,
288,
203,
565,
279,
4062,
55,
1165,
2502,
1906,
27... |
pragma solidity ^0.4.24;
contract Enum {
enum Operation {
Call,
DelegateCall,
Create
}
}
contract EtherPaymentFallback {
/// @dev Fallback function accepts Ether transactions.
function ()
external
payable
{
}
}
contract Executor i... | manager can only be 0 at initalization of contract. Check ensures that setup function can only be called once. | function setManager()
internal
{
require(address(manager) == 0, "Manager has already been set");
manager = ModuleManager(msg.sender);
}
| 7,301,233 | [
1,
4181,
848,
1338,
506,
374,
622,
1208,
287,
1588,
434,
6835,
18,
2073,
11932,
716,
3875,
445,
848,
1338,
506,
2566,
3647,
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,
565,
445,
444,
1318,
1435,
203,
3639,
2713,
203,
565,
288,
203,
3639,
2583,
12,
2867,
12,
4181,
13,
422,
374,
16,
315,
1318,
711,
1818,
2118,
444,
8863,
203,
3639,
3301,
273,
5924,
1318,
12,
3576,
18,
15330,
1769,
203,
565,
289... |
./partial_match/1/0x02173cf42495ab5f4C13680a0214Df1bEB847a09/sources/MasterChef.sol | Accumulated RMTs per share, times 1e12. See below.
| uint256 accRmtPerShare; | 9,378,157 | [
1,
8973,
5283,
690,
534,
6152,
87,
1534,
7433,
16,
4124,
404,
73,
2138,
18,
2164,
5712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
4078,
54,
1010,
2173,
9535,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/43113/0x0f256550f8311d063c55424D080F948afea26319/sources/LendingPool_flat.sol | Claim back your poolToken. Unlocks the amount deposited + gained and burns the eToken. Check to see if user has enough funds, and amount > 0 Updates User balance burn eToken | function withdraw(uint256 _amount) external {
require(_balances[msg.sender].balance >= _amount && _amount > 0);
uint256 totalAmount = _amount * 10**18;
_balances[msg.sender].balance = _balances[msg.sender].balance.sub(totalAmount);
_poolTokenSupply = _poolTokenSupply.s... | 7,113,539 | [
1,
9762,
1473,
3433,
2845,
1345,
18,
3967,
87,
326,
3844,
443,
1724,
329,
397,
314,
8707,
471,
18305,
87,
326,
425,
1345,
18,
2073,
358,
2621,
309,
729,
711,
7304,
284,
19156,
16,
471,
3844,
405,
374,
15419,
2177,
11013,
18305,
425,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
8949,
13,
3903,
288,
7010,
3639,
2583,
24899,
70,
26488,
63,
3576,
18,
15330,
8009,
12296,
1545,
389,
8949,
597,
389,
8949,
405,
374,
1769,
7010,
540,
203,
3639,
2254,
5034,
2078,
6275,
... |
./full_match/1/0x9b2Dc6e830320C48044a555263cBA4CdeB0FB201/sources/contracts/DeHiveTokensale.sol | * @notice For purchase with NUX token only. Available only for tokensale @param nuxAmount Amount of the NUX token/ | function purchaseDHVwithNUX(uint256 nuxAmount) external onlyPreSale whenNotPaused correctGas {
require(nuxAmount > 0, "Zero amount");
uint256 purchaseAmount = _calcPurchaseAmount(NUXToken, nuxAmount);
require(purchaseAmount.add(purchased[msg.sender]) <= maxTokensAmount, "Maximum allowed exce... | 3,125,520 | [
1,
1290,
23701,
598,
423,
57,
60,
1147,
1338,
18,
15633,
1338,
364,
2430,
5349,
225,
290,
2616,
6275,
16811,
434,
326,
423,
57,
60,
1147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23701,
16501,
58,
1918,
50,
57,
60,
12,
11890,
5034,
290,
2616,
6275,
13,
3903,
1338,
1386,
30746,
1347,
1248,
28590,
3434,
27998,
288,
203,
3639,
2583,
12,
82,
2616,
6275,
405,
374,
16,
315,
7170,
3844,
8863,
203,
3639... |
./partial_match/97/0xb20ED2192a949388173630fD03FC1e98D0036847/sources/MasterChef.sol | * @title SafeBEP20 @dev Wrappers around BEP20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeBEP20 for IBEP20... | library SafeBEP20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(
IBEP20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransfe... | 11,362,418 | [
1,
9890,
5948,
52,
3462,
225,
4266,
10422,
6740,
9722,
52,
3462,
5295,
716,
604,
603,
5166,
261,
13723,
326,
1147,
6835,
1135,
629,
2934,
13899,
716,
327,
1158,
460,
261,
464,
3560,
15226,
578,
604,
603,
5166,
13,
854,
2546,
3260,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14060,
5948,
52,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
445,
4183,
5912,
12,
203,
3639,
467,
5948,
52,
3462,
1147,
16,
203,
3639,
1758,
358,
16,
... |
./full_match/1/0x17B354dD2595411ff79041f930e491A4Df39A278/sources/src/data/VerifierLookupTable.sol | @notice Updates the verifier for the provided `batchSize`. @param batchSize The batch size to add the verifier for. @param verifier The verifier for a batch of size `batchSize`. @return oldVerifier The old verifier instance associated with this batch size. @custom:reverts string If the caller is not the owner. | function updateVerifier(uint256 batchSize, ITreeVerifier verifier)
public
onlyOwner
returns (ITreeVerifier oldVerifier)
{
oldVerifier = verifier_lut[batchSize];
verifier_lut[batchSize] = verifier;
emit VerifierUpdated(batchSize, address(oldVerifier), address(verif... | 3,853,631 | [
1,
5121,
326,
20130,
364,
326,
2112,
1375,
5303,
1225,
8338,
225,
16494,
1021,
2581,
963,
358,
527,
326,
20130,
364,
18,
225,
20130,
1021,
20130,
364,
279,
2581,
434,
963,
1375,
5303,
1225,
8338,
327,
1592,
17758,
1021,
1592,
20130,
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,
0... | [
1,
565,
445,
1089,
17758,
12,
11890,
5034,
16494,
16,
467,
2471,
17758,
20130,
13,
203,
3639,
1071,
203,
3639,
1338,
5541,
203,
3639,
1135,
261,
1285,
992,
17758,
1592,
17758,
13,
203,
565,
288,
203,
3639,
1592,
17758,
273,
20130,
67,... |
pragma solidity ^0.4.23;
import "../util/Ownable.sol";
import "../util/SafeMath.sol";
import "../util/RLP.sol";
import "../storage/KeyValueStorage.sol";
import "../ip-organisations/IPR.sol";
import "../ip-organisations/IPOrganisations.sol";
import "../util/ECRecovery.sol";
import "./Marketplaces.sol";
/**
* @title E... | check signature belongs to order taker | bytes32 orderHash = hashOrder(order);
| 1,021,140 | [
1,
1893,
3372,
11081,
358,
1353,
268,
6388,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1731,
1578,
1353,
2310,
273,
1651,
2448,
12,
1019,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |