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 |
|---|---|---|---|---|---|---|
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol | * @dev See {ERC721-_update}./ | function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) {
address previousOwner = super._update(to, tokenId, auth);
if (previousOwner == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
_removeTokenFromOwnerEnumeration(p... | 8,082,234 | [
1,
9704,
288,
654,
39,
27,
5340,
17,
67,
2725,
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,
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,
389,
2725,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
16,
1758,
1357,
13,
2713,
5024,
3849,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
2416,
5541,
273,
2240,
6315,
2725,
12,
869,
16,
1147,
548,
16,
1357,
1769,
203,
203... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | TODO: cheaper to make static calls or save isDeployed to storage? | function getOutboundCalldata(
address _token,
address _from,
address _to,
uint256 _amount,
bytes memory _data
) public view override returns (bytes memory outboundCalldata) {
bytes memory deployData = abi.encode(
callStatic(_token, ERC20.name.selector)... | 15,811,616 | [
1,
6241,
30,
19315,
7294,
358,
1221,
760,
4097,
578,
1923,
353,
31954,
358,
2502,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
17873,
1477,
892,
12,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1731,
3778,
389,
892,
203,
565,
262,
1071,
147... |
pragma solidity 0.4.24;
import "./base/ownership/Ownable.sol";
import "./base/token/ERC20.sol";
import "./base/token/WETH.sol";
import "./Collectable.sol";
import "./TransferProxy.sol";
import "./StakeContract.sol";
import "./PaymentRegistry.sol";
import "./KyberNetworkInterface.sol";
import "./ApprovedRegistry.sol";... | * PUBLIC FUNCTIONS/* @dev Set the addresses for the relevant contracts @param _transferProxyAddress the address for the designated transfer proxy. @param _stakeContractAddress the address for the stake contract. @param _paymentRegistryAddress the address for the payment registry. @param _kyberAddress the address for th... | {
transferProxy = TransferProxy(_transferProxyAddress);
stakeContract = StakeContract(_stakeContractAddress);
paymentRegistry = PaymentRegistry(_paymentRegistryAddress);
kyberProxy = KyberNetworkInterface(_kyberAddress);
approvedRegistry = ApprovedRegistry(_approvedRegistryA... | 6,401,770 | [
1,
14939,
13690,
55,
19,
225,
1000,
326,
6138,
364,
326,
9368,
20092,
225,
389,
13866,
3886,
1887,
326,
1758,
364,
326,
25264,
7412,
2889,
18,
225,
389,
334,
911,
8924,
1887,
326,
1758,
364,
326,
384,
911,
6835,
18,
225,
389,
9261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
203,
3639,
7412,
3886,
273,
12279,
3886,
24899,
13866,
3886,
1887,
1769,
203,
3639,
384,
911,
8924,
273,
934,
911,
8924,
24899,
334,
911,
8924,
1887,
1769,
203,
3639,
5184,
4243,
273,
12022,
4243,
24899,
9261,
4243,
... |
pragma solidity ^0.4.25;
contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_own... | only one possible scenario remains.. dealer hand has more strength | else {
processHandEnd(false);
}
| 13,126,684 | [
1,
3700,
1245,
3323,
10766,
22632,
838,
15448,
948,
711,
1898,
21638,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
469,
288,
203,
5411,
1207,
1144,
1638,
12,
5743,
1769,
203,
3639,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/137/0x11d455366ba5D590e7838c4CEcE9aCC95C567e46/sources/contracts/trove-factory.sol | * @dev insert a trove in the sorted list of troves. the troves must be sorted by collateralisation ratio CR the sender must be the trove which will be inserted in the list @param _newNextTrove is the trove before which the trove will be added/ if now hint is provided we start by trying the last trove in the list if the... | function insertTrove(address _token, address _newNextTrove) public override troveExists(_token, msg.sender) {
require(
containsTrove(_token, _newNextTrove) || _newNextTrove == address(0),
"3a669 the trove hint must exist in the list or be 0x0"
);
if (_newNextTrove == address(0)) {
_newN... | 4,722,869 | [
1,
6387,
279,
23432,
537,
316,
326,
3115,
666,
434,
23432,
3324,
18,
326,
23432,
3324,
1297,
506,
3115,
635,
4508,
2045,
287,
10742,
7169,
6732,
326,
5793,
1297,
506,
326,
23432,
537,
1492,
903,
506,
9564,
316,
326,
666,
225,
389,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
2243,
56,
303,
537,
12,
2867,
389,
2316,
16,
1758,
389,
2704,
2134,
56,
303,
537,
13,
1071,
3849,
23432,
537,
4002,
24899,
2316,
16,
1234,
18,
15330,
13,
288,
203,
565,
2583,
12,
203,
1377,
1914,
56,
303,
537,
24899,
... |
./partial_match/1/0xf7C2AF7cDEB633598b51f39916D991b3e7b3e61F/sources/Snark.sol | *****************/ exclude from paying fees or having max transaction amount | constructor() ERC20("Hunting of The Snark", "BELLMAN") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
unisw... | 2,716,278 | [
1,
19,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
3462,
2932,
44,
318,
1787,
434,
1021,
18961,
1313,
3113,
315,
38,
21943,
9560,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
... |
./partial_match/1/0x94b23249604A05dd3478967Ed9A239Dfe986cD25/sources/COW.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("COW", "COW") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2... | 3,696,928 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
3462,
2932,
3865,
59,
3113,
315,
3865,
59,
7923,
288,
203,
7010,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
... |
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external ... | Get uniswapV2 router Approve token remove liquidity | function removeLiquidity(
address tokenA,
address tokenB,
uint256 liquidity,
uint256 amountAMin,
uint256 amountBMin
) external payable returns (uint256 amountA, uint256 amountB) {
IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);
address pa... | 12,238,430 | [
1,
967,
640,
291,
91,
438,
58,
22,
4633,
1716,
685,
537,
1147,
1206,
4501,
372,
24237,
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,
1206,
48,
18988,
24237,
12,
203,
3639,
1758,
1147,
37,
16,
203,
3639,
1758,
1147,
38,
16,
203,
3639,
2254,
5034,
4501,
372,
24237,
16,
203,
3639,
2254,
5034,
3844,
2192,
267,
16,
203,
3639,
2254,
5034,
3844,
38,
2930,
... |
// File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assum... | * @title EnzymePoolController @dev This library handles deposits to and withdrawals from Enzyme's Rari ETH (technically WETH) pool./ | library EnzymePoolController {
using SafeMath for uint256;
using SafeERC20 for IERC20;
address constant private WETH_CONTRACT = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
IEtherToken constant private _weth = IEtherToken(WETH_CONTRACT);
address constant private IBETH_CONTRACT = 0x67B66C99D3Eb37Fa... | 12,084,390 | [
1,
664,
94,
2942,
73,
2864,
2933,
225,
1220,
5313,
7372,
443,
917,
1282,
358,
471,
598,
9446,
1031,
628,
1374,
94,
2942,
73,
1807,
534,
12954,
512,
2455,
261,
28012,
82,
6478,
678,
1584,
44,
13,
2845,
18,
19,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
1374,
94,
2942,
73,
2864,
2933,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1758,
5381,
3238,
678,
1584,
44,
67,
6067,
2849,
1... |
./full_match/80001/0x2a6bDdd481Ae14915Dc1e164a8bc5022D76baB7b/sources/deploy/contracts/core/Constants.sol | * @title Stores common interface names used throughout Synthereum./ | library SynthereumInterfaces {
bytes32 public constant Deployer = 'Deployer';
bytes32 public constant FactoryVersioning = 'FactoryVersioning';
bytes32 public constant TokenFactory = 'TokenFactory';
bytes32 public constant PoolRegistry = 'PoolRegistry';
bytes32 public constant SelfMintingRegistry = 'SelfMintin... | 9,527,562 | [
1,
13125,
2975,
1560,
1257,
1399,
3059,
659,
16091,
18664,
379,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16091,
18664,
379,
10273,
288,
203,
225,
1731,
1578,
1071,
5381,
7406,
264,
273,
296,
10015,
264,
13506,
203,
225,
1731,
1578,
1071,
5381,
7822,
1444,
310,
273,
296,
1733,
1444,
310,
13506,
203,
225,
1731,
1578,
1071,
5381,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
interface INiftyswapExchange20 {
/***********************************|
| Events |
|__________________________________*/
event TokensPurchase(
address indexed buyer,
address index... | **********************************| | struct LiquidityRemovedEventObj {
uint256 currencyAmount;
uint256 soldTokenNumerator;
uint256 boughtCurrencyNumerator;
uint256 totalSupply;
}
event LiquidityRemoved(
address indexed provider,
uint256[] tokenIds,
uint256[] tokenAmounts,
LiquidityRemovedEventObj[] details
);
ev... | 7,300,313 | [
1,
96,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
511,
18988,
24237,
10026,
1133,
2675,
288,
203,
565,
2254,
5034,
5462,
6275,
31,
203,
565,
2254,
5034,
272,
1673,
1345,
2578,
7385,
31,
203,
565,
2254,
5034,
800,
9540,
7623,
2578,
7385,
31,
203,
565,
2254,
5034,
2078,
... |
./partial_match/3/0x1a5e930A5b49439F143AF6F27af609dc9d062b68/sources/NDFE.sol | * @dev user ROI and stake withdrawal @param _investID investment ID/ | function withdraw(uint _investID)public returns(bool){
require(_investID > 0 && _investID <= users[msg.sender].investID, "invalid investID");
require(!users[msg.sender].investments[_investID].completed, "investment completed");
require(users[msg.sender].investments[_investID].unstake_time <=... | 5,321,512 | [
1,
1355,
6525,
45,
471,
384,
911,
598,
9446,
287,
225,
389,
5768,
395,
734,
225,
2198,
395,
475,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
389,
5768,
395,
734,
13,
482,
1135,
12,
6430,
15329,
203,
3639,
2583,
24899,
5768,
395,
734,
405,
374,
597,
389,
5768,
395,
734,
1648,
3677,
63,
3576,
18,
15330,
8009,
5768,
395,
734,
16,
315,
53... |
pragma solidity 0.6.6;
import "../interfaces/ISmartWalletSwapImplementation.sol";
import "./SmartWalletSwapStorage.sol";
import "@kyber.network/utils-sc/contracts/IERC20Ext.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
contract SmartWalletSwapImplementation is SmartWalletSwapStorage, ISmartWallet... | just collect src token, no need to swap | function swapKyberAndDeposit(
ISmartWalletLending.LendingPlatform platform,
IERC20Ext src,
IERC20Ext dest,
uint256 srcAmount,
uint256 minConversionRate,
uint256 platformFeeBps,
address payable platformWallet,
bytes calldata hint,
bool useGasTok... | 13,577,427 | [
1,
3732,
3274,
1705,
1147,
16,
1158,
1608,
358,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
47,
93,
744,
1876,
758,
1724,
12,
203,
3639,
4437,
81,
485,
16936,
48,
2846,
18,
48,
2846,
8201,
4072,
16,
203,
3639,
467,
654,
39,
3462,
2482,
1705,
16,
203,
3639,
467,
654,
39,
3462,
2482,
1570,
16,
203,
363... |
pragma solidity ^0.4.19;
pragma solidity ^0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
... | An identifier: e.g. REP
| string public symbol; | 979,145 | [
1,
979,
2756,
30,
425,
18,
75,
18,
2438,
52,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1071,
3273,
31,
7734,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/80001/0x66E132e79990A4804EEe9331bdf624967ad8Bf3B/sources/L2ShardRegistry.sol | @param shotgunClause address of the relevant Shotgun contract./ | function burnAndCollectEther(address shotgunClause) external {
L2IShotgunClause _shotgunClause = L2IShotgunClause(shotgunClause);
bool enacted = _shotgunClause.shotgunEnacted();
if (!enacted) {
_shotgunClause.enactShotgun();
}
require(
enacted || _shotgunClause.shotgunEnacted(),
"[burnAndCollectEthe... | 8,810,750 | [
1,
2415,
19339,
7044,
1758,
434,
326,
9368,
2638,
352,
19339,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
18305,
1876,
10808,
41,
1136,
12,
2867,
24167,
19339,
7044,
13,
3903,
288,
203,
202,
202,
48,
22,
45,
1555,
352,
19339,
7044,
389,
2415,
19339,
7044,
273,
511,
22,
45,
1555,
352,
19339,
7044,
12,
2415,
19339,
7044,
1769... |
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC20/IERC20.sol";
import "../interfaces/IGetRateMinter.sol";
import "../interfaces/IAffiliateMa... | * Allows Token Issuer to add a contribution to the fundraise contract's accounting in the case he received an offchain contribution, for example @param contributor the address of the contributor we want to add @param currency the currency of the contribution we are adding @param amount the amount of the contributi... | function addOffchainContribution(
address contributor,
address currency,
uint256 amount
)
public
onlyOwner()
ongoing
onlyAcceptedCurrencies(currency)
returns (bool)
{
require(offchainContributionsAllowed, "Not allowed by setup!");
... | 12,997,559 | [
1,
19132,
3155,
23959,
358,
527,
279,
24880,
358,
326,
284,
1074,
11628,
6835,
1807,
2236,
310,
225,
316,
326,
648,
3904,
5079,
392,
3397,
5639,
24880,
16,
364,
3454,
282,
31123,
326,
1758,
434,
326,
31123,
732,
2545,
358,
527,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
7210,
5639,
442,
4027,
12,
203,
3639,
1758,
31123,
16,
203,
3639,
1758,
5462,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
203,
3639,
1071,
203,
3639,
1338,
5541,
1435,
203,
3639,
30542,
203,
3639,
1338,
18047,
... |
./partial_match/1/0x43eA73168B8f192dBDEC088DA29F2C5E517f6fcB/sources/contracts-verify/libraries/WadRayMath.sol | * @dev Converts wad up to ray @param a Wad @return b = a converted in ray/ to avoid overflow, b/WAD_RAY_RATIO == a | function wadToRay(uint256 a) internal pure returns (uint256 b) {
assembly {
b := mul(a, WAD_RAY_RATIO)
}
}
| 15,921,164 | [
1,
5692,
341,
361,
731,
358,
14961,
225,
279,
678,
361,
327,
324,
273,
279,
5970,
316,
14961,
19,
358,
4543,
9391,
16,
324,
19,
59,
1880,
67,
6722,
67,
54,
789,
4294,
422,
279,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
341,
361,
774,
54,
528,
12,
11890,
5034,
279,
13,
2713,
16618,
1135,
261,
11890,
5034,
324,
13,
288,
203,
3639,
19931,
288,
203,
5411,
324,
519,
14064,
12,
69,
16,
678,
1880,
67,
6722,
67,
54,
789,
4294,
13,
203,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interface/INFTXVault.sol";
import "./interface/INFTXVaultFactory.sol";
import "./interface/INFTXFeeDistributor.sol";
import "./interface/INFTXLPStaking.sol";
import "./interface/ITimelockRewardDistributionToken.sol";
import "./interface/IUnis... | Write functions. Configuration functions. SPDX-License-Identifier: MIT Write functions. | interface INFTXLPStaking {
function nftxVaultFactory() external view returns (address);
function rewardDistTokenImpl() external view returns (address);
function stakingTokenProvider() external view returns (address);
function vaultToken(address _stakingToken) external view returns (address);
functio... | 1,846,108 | [
1,
3067,
4186,
18,
4659,
4186,
18,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
2598,
4186,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
2120,
4464,
60,
14461,
510,
6159,
288,
203,
565,
445,
13958,
978,
12003,
1733,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
565,
445,
19890,
5133,
1345,
2828,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
565,
445,
384,
6159... |
./full_match/80001/0x7AcbbB1fC0a72233C2103F660fe6037EA8997377/sources/contracts/ERC721Rollup.sol | * @title ERC721Rollup ERC721Rollup - ERC721 contract that has a Merkle based rollup of addition facts about each token which can be added to over time/ url data for the meta data each token has a root for it's merkle tree that can be used to see if a hash exists in that tree we optionally keep a list of legacy roots fo... | abstract contract ERC721Rollup is ERC721, Ownable, Pausable, AccessControl, ERC2771ContextUpdateable {
using SafeMath for uint256;
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant TRANSFER_ROLE = kecc... | 5,656,027 | [
1,
654,
39,
27,
5340,
24194,
416,
4232,
39,
27,
5340,
24194,
416,
300,
4232,
39,
27,
5340,
6835,
716,
711,
279,
31827,
2511,
5824,
416,
434,
2719,
18137,
2973,
1517,
1147,
1492,
848,
506,
3096,
358,
1879,
813,
19,
880,
501,
364,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
24194,
416,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
16,
21800,
16665,
16,
24349,
16,
4232,
39,
22,
4700,
21,
1042,
1891,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
... |
pragma solidity ^0.4.11;
// File: @laborx/solidity-shared-lib/contracts/ERC20Interface.sol
/**
* Copyright 2017–2018, LaborX PTY
* Licensed under the AGPL Version 3 license.
*/
pragma solidity ^0.4.23;
/// @title Defines an interface for EIP20 token smart contract
contract ERC20Interface {
even... | @notice Returns current address for a particular holder id. @param _holderId holder id. @return holder address. | function _address(uint _holderId) public view returns (address) {
return get(store, holdersAddressStorage, _holderId);
}
| 1,049,023 | [
1,
1356,
783,
1758,
364,
279,
6826,
10438,
612,
18,
225,
389,
4505,
548,
10438,
612,
18,
327,
10438,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2867,
12,
11890,
389,
4505,
548,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
336,
12,
2233,
16,
366,
4665,
1887,
3245,
16,
389,
4505,
548,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x7dE80A29a5Dd7E86D1130B7BA5E66d2947141C34/sources/SingleNftDao.sol | check if NFT was just sold | function _maxBurn(address _member) internal override returns (uint256) {
if (state == State.HOLDING && address(this).balance > 0 && !_daoIsOwner()) {
state = State.SOLD;
tokenRate = address(this).balance / totalSupply();
}
return this.balanceOf(_member);
}
| 726,212 | [
1,
1893,
309,
423,
4464,
1703,
2537,
272,
1673,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1896,
38,
321,
12,
2867,
389,
5990,
13,
2713,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
2019,
422,
3287,
18,
44,
11846,
1360,
597,
1758,
12,
2211,
2934,
12296,
405,
374,
597,
401,
67,
2414,
83,
... |
// SPDX-License-Identifier: MIT
//
/*
*
* || .-:'"-._
* | | _(, )
* | | ,'O"( )>
* | | `-.-( )
* || `-._._.-'
* // //
*
* ASTERIA LABS:
* @Danny_One_
*
*/
import "./ERC721_efficient.sol";
pragma solidity ^0.8.0;
inter... | * @dev Destroys `tokenId`. The approval is cleared when the token is burned. Requirements: - `tokenId` must exist. Emits a {Transfer} event./ Clear approvals | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
_approve(address(0), tokenId);
_owners[tokenId] = address(0);
emit Transfer(owner, address(0), tokenId);
}
| 547,363 | [
1,
9378,
28599,
1375,
2316,
548,
8338,
1021,
23556,
353,
16054,
1347,
326,
1147,
353,
18305,
329,
18,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
18,
7377,
1282,
279,
288,
5912,
97,
871,
18,
19,
10121,
6617,
4524,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
321,
12,
11890,
5034,
1147,
548,
13,
2713,
5024,
288,
203,
3639,
1758,
3410,
273,
4232,
39,
27,
5340,
18,
8443,
951,
12,
2316,
548,
1769,
203,
203,
3639,
389,
5771,
1345,
5912,
12,
8443,
16,
1758,
12,
20,
3... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@prps/solidity/contracts/EIP712Boostable.sol";
import "./DubiexLib.sol";
/**
* @dev Dubiex Boostable primitives following the EIP712 standard
*/
abstract contract Boostable is EIP712Boostable {
bytes32 private cons... | Update ancestor order if any | _updateOrderAncestorIfAny(input, maker, _unpacked, _packed);
| 10,209,469 | [
1,
1891,
9731,
1353,
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,
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,
3639,
389,
2725,
2448,
15637,
2047,
2961,
12,
2630,
16,
312,
6388,
16,
389,
17309,
329,
16,
389,
2920,
329,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
contract Token {
string public name = "GG WP";
string public symbol = "GGWP";
uint256 public totalSupply = 750000000000000000000000; // 750k million tokens
uint8 public decimals = 18;
event Transfer(
address indexed _from,
address indexed _to,
ui... | 750k million tokens
| uint256 public totalSupply = 750000000000000000000000; | 234,401 | [
1,
27,
3361,
79,
312,
737,
285,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
2078,
3088,
1283,
273,
18821,
12648,
12648,
9449,
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... |
/**
*Submitted for verification at Etherscan.io on 2021-06-10
*/
pragma solidity ^0.5.17;
// Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol
// Adapted to use pragma ^0.5.17 and satisfy our linter rules
/**
* @title SafeMath
* @dev Math operations with safety checks tha... | Pick a random Court term during the next period of the requested one to get the total amount of guardian tokens active in the Court | IClock clock = _clock();
| 10,904,344 | [
1,
17968,
279,
2744,
385,
477,
88,
2481,
4982,
326,
1024,
3879,
434,
326,
3764,
1245,
358,
336,
326,
2078,
3844,
434,
11026,
2779,
2430,
2695,
316,
326,
385,
477,
88,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
467,
14027,
7268,
273,
389,
18517,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.4.25;
// File: contracts/saga/interfaces/IReserveManager.sol
/**
* @title Reserve Manager Interface.
*/
interface IReserveManager {
/**
* @dev Get a deposit-recommendation.
* @param _balance The balance of the token-contract.
* @return The address of the wallet permitted to depo... | * @title Reserve Manager Interface./ | interface IReserveManager {
function getDepositParams(uint256 _balance) external view returns (address, uint256);
function getWithdrawParams(uint256 _balance) external view returns (address, uint256);
}
| 12,887,767 | [
1,
607,
6527,
8558,
6682,
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,
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,
607,
6527,
1318,
288,
203,
565,
445,
336,
758,
1724,
1370,
12,
11890,
5034,
389,
12296,
13,
3903,
1476,
1135,
261,
2867,
16,
2254,
5034,
1769,
203,
203,
565,
445,
336,
1190,
9446,
1370,
12,
11890,
5034,
389,
12296,
13,... |
./partial_match/1/0xd800bec5c90B85a323501eac02F81081a0e37E1a/sources/contracts/StakingV2.sol | ========== STATE VARIABLES ========== */ ========== CONSTRUCTOR ========== */ | ) external onlyOwner {
require(
_stakingToken.isContract(),
"Staking: stakingToken not a contract address"
);
require(
_rewardToken.isContract(),
"Staking: rewardToken not a contract address"
);
require(
_rewardAmoun... | 2,623,172 | [
1,
1432,
631,
7442,
22965,
55,
422,
1432,
342,
422,
1432,
3492,
13915,
916,
422,
1432,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
389,
334,
6159,
1345,
18,
291,
8924,
9334,
203,
5411,
315,
510,
6159,
30,
384,
6159,
1345,
486,
279,
6835,
1758,
6,
203,
3639,
11272,
203,
3639,
2583,
12,
203,
54... |
./full_match/42/0x6e0a19B17fFa7a773b03178F47d8328AC3B11855/sources/browser/generalized_batching_solution.sol | TODO: figure out if registerInterface makes a difference and need to do it for 721* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any oth... | function onERC721Received(
address, /*operator*/
address, /*from*/
uint256, /*tokenId*/
bytes calldata data
) external override returns (bytes4) {
_decodeAndCall(data);
return IERC721Receiver.onERC721Received.selector;
}
| 16,245,426 | [
1,
6241,
30,
7837,
596,
309,
1744,
1358,
7297,
279,
7114,
471,
1608,
358,
741,
518,
364,
2371,
5340,
225,
3497,
4009,
502,
392,
288,
45,
654,
39,
27,
5340,
97,
1375,
2316,
548,
68,
1147,
353,
906,
4193,
358,
333,
6835,
3970,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
603,
654,
39,
27,
5340,
8872,
12,
203,
3639,
1758,
16,
1748,
9497,
5549,
203,
3639,
1758,
16,
1748,
2080,
5549,
203,
3639,
2254,
5034,
16,
1748,
2316,
548,
5549,
203,
3639,
1731,
745,
892,
501,
203,
565,
262,
3903,
38... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @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 implemen... | * @dev See {IWOWSCryptofolio-initialize}./ | function initialize() external override {
require(address(_deployer) == address(0), 'CF: Already initialized');
_deployer = IWOWSERC1155(msg.sender);
}
| 14,767,985 | [
1,
9704,
288,
45,
59,
7306,
2312,
2015,
792,
355,
1594,
17,
11160,
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,
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,
4046,
1435,
3903,
3849,
288,
203,
565,
2583,
12,
2867,
24899,
12411,
264,
13,
422,
1758,
12,
20,
3631,
296,
8955,
30,
17009,
6454,
8284,
203,
565,
389,
12411,
264,
273,
467,
59,
7306,
2123,
39,
2499,
2539,
12,
3576,
1... |
./full_match/80001/0xf416854209769796f3367c785A3F155a9fe2D6B7/sources/project:/contracts/WHAPcoin_Liquidity.sol | WHAPcoin contract instance
| WHAPcoin public _WHAPcoinContract; | 5,572,226 | [
1,
12557,
2203,
12645,
6835,
791,
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,
565,
14735,
2203,
12645,
1071,
389,
12557,
2203,
12645,
8924,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//Address: 0xb8bf73550f251562d308882e032225a700a7b9bc
//Contract name: DWorldCore
//Balance: 0 Ether
//Verification Date: 2/3/2018
//Transacion Count: 7
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
functi... | @dev Assign claim dividend to an address. @param _from The address who paid the dividend. @param _to The dividend beneficiary. @param _deedIdFrom The identifier of the deed the dividend is being paid for. @param _deedIdTo The identifier of the deed the dividend is being paid to. Trigger event. Assign the dividend. | function _assignClaimDividend(address _from, address _to, uint256 _deedIdFrom, uint256 _deedIdTo) internal {
uint256 _claimDividend = claimDividend();
ClaimDividend(_from, _to, _deedIdFrom, _deedIdTo, _claimDividend);
_assignBalance(_to, _claimDividend);
}
| 15,801,550 | [
1,
4910,
7516,
31945,
358,
392,
1758,
18,
225,
389,
2080,
1021,
1758,
10354,
30591,
326,
31945,
18,
225,
389,
869,
1021,
31945,
27641,
74,
14463,
814,
18,
225,
389,
323,
329,
548,
1265,
1021,
2756,
434,
326,
443,
329,
326,
31945,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
6145,
9762,
7244,
26746,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
323,
329,
548,
1265,
16,
2254,
5034,
389,
323,
329,
28803,
13,
2713,
288,
203,
3639,
2254,
5034,
389,
14784,
7244,
26746,
273,
... |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
int256 constant private INT256_MIN = -2**255;
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) ... | Current owner of NFT | struct Auction {
address seller;
uint256 price;
bool allowPayDekla;
}
ERC20 public tokens;
event AuctionCreated(uint256 tokenId);
event AuctionSuccessful(uint256 tokenId, uint256 totalPrice, address winner);
event AuctionCancelled(uint256 tokenId);
| 6,389,636 | [
1,
3935,
3410,
434,
423,
4464,
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,
1958,
432,
4062,
288,
203,
3639,
1758,
29804,
31,
203,
3639,
2254,
5034,
6205,
31,
203,
3639,
1426,
1699,
9148,
758,
79,
11821,
31,
203,
565,
289,
203,
203,
203,
565,
4232,
39,
3462,
1071,
2430,
31,
203,
203,
203,
203,
565... |
/**
*Submitted for verification at Etherscan.io on 2021-09-02
*/
// Sources flattened with hardhat v2.6.1 https://hardhat.org
// File @openzeppelin/contracts/utils/cryptography/[email protected]
pragma solidity ^0.8.0;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functio... | * @dev Overriden version of the {Governor-state} function with added support for the `Queued` status./ | function state(uint256 proposalId) public view virtual override(IGovernor, Governor) returns (ProposalState) {
ProposalState status = super.state(proposalId);
if (status != ProposalState.Succeeded) {
return status;
}
if (queueid == bytes32(0)) {
return statu... | 2,013,730 | [
1,
22042,
17951,
1177,
434,
326,
288,
43,
1643,
29561,
17,
2019,
97,
445,
598,
3096,
2865,
364,
326,
1375,
21039,
68,
1267,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
919,
12,
11890,
5034,
14708,
548,
13,
1071,
1476,
5024,
3849,
12,
3047,
1643,
29561,
16,
611,
1643,
29561,
13,
1135,
261,
14592,
1119,
13,
288,
203,
3639,
19945,
1119,
1267,
273,
2240,
18,
2019,
12,
685,
8016,
548,
1769... |
pragma solidity ^0.4.24;
// Interface for Asset Registries
interface AssetRegisterInterface {
function issueAssets(address _recipient, uint _amount) external;
function transfer(address _sender, address _recipient, uint _amount) external;
function getBalance(address _user) external view returns (uint);
}
c... | if (msg.sender != registryOwner) { revert("Assets can only be transferred by the registry owner"); } | function transfer(address _sender, address _recipient, uint _amount) public {
if (balances[_sender] < _amount) {
revert("Not enough balance");
}
balances[_sender] -= _amount;
balances[_recipient] += _amount;
emit AssetRegisterEvent(_sender, _recipient, _amount,... | 13,000,000 | [
1,
430,
261,
3576,
18,
15330,
480,
4023,
5541,
13,
288,
377,
15226,
2932,
10726,
848,
1338,
506,
906,
4193,
635,
326,
4023,
3410,
8863,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
389,
15330,
16,
1758,
389,
20367,
16,
2254,
389,
8949,
13,
1071,
288,
203,
203,
3639,
309,
261,
70,
26488,
63,
67,
15330,
65,
411,
389,
8949,
13,
288,
203,
5411,
15226,
2932,
1248,
7304,
11013,
8863,
2... |
./partial_match/3/0x77b12c7B54d5a4CdA274f17BcB1D064c69699cA9/sources/Marathon.sol | Đăng kí mới 1 vđv (Câu 1) | function dang_ky_vdv_Cau_1(string _name, uint _birth_year,uint _range, uint _team){
require(_range == 25 || _range == 50 || _range == 75 || _range == 100);
require(_team == 1 || _team == 2|| _team == 3|| _team == 4|| _team == 5);
athletes_count++;
list_athletes[athletes_count] = Athl... | 5,278,030 | [
1,
133,
243,
133,
230,
3368,
417,
132,
260,
312,
162,
124,
254,
77,
404,
331,
133,
244,
90,
261,
39,
132,
100,
89,
404,
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,
... | [
1,
1,
1,
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,
302,
539,
67,
18465,
67,
90,
15679,
67,
39,
8377,
67,
21,
12,
1080,
389,
529,
16,
2254,
389,
22531,
67,
6874,
16,
11890,
389,
3676,
16,
2254,
389,
10035,
15329,
203,
3639,
2583,
24899,
3676,
422,
6969,
747,
389,
3676,... |
./full_match/80001/0xe6bEB35055374766db01E54D9EDD1ABe152FdB5f/sources/src/MembershipNFT.sol | * @notice Returns the metadata URI for an NFT & works out it's level based on the associated TBA's balance. @dev See `BatchMintMetadata` for handling of metadata in this contract. @param _tokenId The tokenId of an NFT./ do math here if there are multiple levels rather than up to 3 | function tokenURI(
uint256 _tokenId
) public view virtual override returns (string memory) {
uint256 level;
address wallet = IERC6551Registry(registryContract).account(
implementation,
chainId,
address(this),
_tokenId,
0
... | 5,699,345 | [
1,
1356,
326,
1982,
3699,
364,
392,
423,
4464,
473,
6330,
596,
518,
1807,
1801,
2511,
603,
326,
3627,
399,
12536,
1807,
11013,
18,
2868,
2164,
1375,
4497,
49,
474,
2277,
68,
364,
5057,
434,
1982,
316,
333,
6835,
18,
282,
389,
2316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1147,
3098,
12,
203,
3639,
2254,
5034,
389,
2316,
548,
203,
565,
262,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2254,
5034,
1801,
31,
203,
3639,
1758,
9230,
273,
467,
654,
39,
26,
2539,
21,
42... |
pragma solidity ^0.4.25;
/*******************************************************************************
*
* Copyright (c) 2019 Decentralization Authority MDAO.
* Released under the MIT License.
*
* ZeroCache - AmTrust (First Edition)
*
* --------------------------------------------------... | * ECRecovery Interface/ | function _ecRecovery() private view returns (
ECRecovery ecrecovery
) {
bytes32 hash = keccak256('aname.ecrecovery');
address aname = _zer0netDb.getAddress(hash);
ecrecovery = ECRecovery(aname);
| 5,395,086 | [
1,
7228,
11548,
6682,
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,
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,
445,
389,
557,
11548,
1435,
3238,
1476,
1135,
261,
203,
3639,
7773,
11548,
425,
1793,
4813,
203,
565,
262,
288,
203,
3639,
1731,
1578,
1651,
273,
417,
24410,
581,
5034,
2668,
304,
339,
18,
557,
23963,
8284,
203,
540,
203,
36... |
//Address: 0x2cc572eA86ABcf75C113fE72752CAF0216c74837
//Contract name: YourMomTokenCrowdsale
//Balance: 0 Ether
//Verification Date: 12/28/2017
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.16; //YourMomTokenCrowdsale
interface token {
function transferFrom(address _holder, address _receiver, uint... | Updates msg.sender ether contribution amount
| etherBalanceOf[msg.sender] += msg.value; | 6,394,954 | [
1,
5121,
1234,
18,
15330,
225,
2437,
24880,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
2437,
13937,
951,
63,
3576,
18,
15330,
65,
1011,
1234,
18,
1132,
31,
3196,
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,... |
//Address: 0x78F7eF08b4583F9866D8a98A9f2D9B64d9c02380
//Contract name: TelcoinSale
//Balance: 0 Ether
//Verification Date: 12/11/2017
//Transacion Count: 3691
// CODE STARTS HERE
pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
... | The ERC20 total fixed supply of tokens. Account balances. The transfer allowances. The initial distributor is responsible for allocating the supply into the various pools described in the whitepaper. This can be verified later from the event log. | function Telcoin(address _distributor) public {
balances[_distributor] = totalSupply;
Transfer(0x0, _distributor, totalSupply);
}
| 2,510,213 | [
1,
1986,
4232,
39,
3462,
2078,
5499,
14467,
434,
2430,
18,
6590,
324,
26488,
18,
1021,
7412,
1699,
6872,
18,
1021,
2172,
1015,
19293,
353,
14549,
364,
4767,
1776,
326,
14467,
1368,
326,
11191,
16000,
11893,
316,
326,
600,
305,
881,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
399,
292,
12645,
12,
2867,
389,
2251,
19293,
13,
1071,
288,
203,
3639,
324,
26488,
63,
67,
2251,
19293,
65,
273,
2078,
3088,
1283,
31,
203,
3639,
12279,
12,
20,
92,
20,
16,
389,
2251,
19293,
16,
2078,
3088,
1283,
1769... |
./full_match/56/0xD409fb4999C937b4f29BE60eF79548c9A25A206d/sources/project_/contracts/shields.sol | 0-3 regular traits, 4 = traitless (DEF)
| return uint8(SafeMath.div(statPattern, 5) % 5); | 3,233,166 | [
1,
20,
17,
23,
6736,
18370,
16,
1059,
273,
13517,
2656,
261,
12904,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
2254,
28,
12,
9890,
10477,
18,
2892,
12,
5642,
3234,
16,
1381,
13,
738,
1381,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.0;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
/**
* @title Debts Package.
* @notice Package of debts tokens to be sold on a time auction.
* @author Anibal Catalán <anibalcatalanf@gmail.com>.
*/
contract Packag... | * @notice Calculate the package price while the auction is running. @return price Package price in Wei./ | function packagePrice() public view returns(uint256) {
require(fundingTimeFinished > 0, "funding is not complete");
require(now <= fundingTimeFinished.add(auctionPeriod) && auctionTimeFinished == 0, "out of period");
uint256 linearPriceChange = total.sub(auctionFloorPrice).mul(now.s... | 1,070,971 | [
1,
8695,
326,
2181,
6205,
1323,
326,
279,
4062,
353,
3549,
18,
327,
6205,
7508,
6205,
316,
1660,
77,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2181,
5147,
1435,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
74,
14351,
950,
10577,
405,
374,
16,
315,
74,
14351,
353,
486,
3912,
8863,
203,
3639,
2583,
12,
3338,
1648,
22058,
950,
10577,
18,
1289,... |
// SPDX-License-Identifier: BUSDL-1.1
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IAssetAllocation} from "contracts/common/Imports.sol";
import {SafeERC20, SafeMath} from "contracts/libraries/Imports.sol";
import {IOldStableSw... | SPDX-License-Identifier: BUSDL-1.1 | import {IErc20Allocation} from "./IErc20Allocation.sol";
| 551,713 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
605,
3378,
8914,
17,
21,
18,
21,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5666,
288,
8732,
1310,
3462,
17353,
97,
628,
25165,
8732,
1310,
3462,
17353,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.0;
/**
* @title Lambdeth
* @dev Helpful methods for working with arrays
*/
contract Lambdeth {
/**
* @dev Iterates an array and returns true if the specified value is present in the array
*/
function concat(uint[] memory arr1, uint[] memory arr2) public pure returns (uint[] m... | Converts bytes into uint | function bytesToUint(bytes memory data, uint start) internal pure returns (uint) {
require(data.length >= start + 32, "slicing out of range");
uint val;
assembly {
val := mload(add(data, add(0x20, start)))
}
return val;
}
| 5,503,458 | [
1,
5692,
1731,
1368,
2254,
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,
445,
1731,
774,
5487,
12,
3890,
3778,
501,
16,
2254,
787,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
12,
892,
18,
2469,
1545,
787,
397,
3847,
16,
315,
2069,
14774,
596,
434,
1048,
8863,
203,
3639,
2254,
1... |
pragma solidity ^0.5.6;
import "../Forwarder/InitializableForwarder.sol";
import "../Ownership/HasNoEther.sol";
contract ForwarderFactory is HasNoEther {
// An event sent when a forwarder is created.
event ForwarderCreated(address forwarder);
//event DebugBytes32(bytes32 log);
//event DebugBytes20(b... | An event sent when a forwarder is created.event DebugBytes32(bytes32 log);event DebugBytes20(bytes20 log);event DebugAddress(address log); | contract ForwarderFactory is HasNoEther {
event ForwarderCreated(address forwarder);
bytes32 private contractCodeHash;
constructor() public {
contractCodeHash = keccak256(
type(InitializableForwarder).creationCode
);
}
function createForwarder(uint256 _salt, address ... | 13,005,154 | [
1,
979,
871,
3271,
1347,
279,
364,
20099,
353,
2522,
18,
2575,
4015,
2160,
1578,
12,
3890,
1578,
613,
1769,
2575,
4015,
2160,
3462,
12,
3890,
3462,
613,
1769,
2575,
4015,
1887,
12,
2867,
613,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2457,
20099,
1733,
353,
4393,
2279,
41,
1136,
288,
203,
203,
565,
871,
2457,
20099,
6119,
12,
2867,
364,
20099,
1769,
203,
203,
203,
565,
1731,
1578,
3238,
6835,
1085,
2310,
31,
203,
203,
565,
3885,
1435,
1071,
288,
203,
3... |
pragma solidity ^0.5.8;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOw... | @notice Removes a darknode from the store and transfers its bond to the owner of this contract. | function removeDarknode(address darknodeID) external onlyOwner {
uint256 bond = darknodeRegistry[darknodeID].bond;
delete darknodeRegistry[darknodeID];
LinkedList.remove(darknodes, darknodeID);
require(ren.transfer(owner(), bond), "bond transfer failed");
}
| 6,360,579 | [
1,
6220,
279,
23433,
2159,
628,
326,
1707,
471,
29375,
2097,
8427,
358,
326,
3410,
434,
333,
6835,
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,
... | [
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,
1206,
40,
1313,
2159,
12,
2867,
23433,
2159,
734,
13,
3903,
1338,
5541,
288,
203,
3639,
2254,
5034,
8427,
273,
23433,
2159,
4243,
63,
25045,
2159,
734,
8009,
26425,
31,
203,
3639,
1430,
23433,
2159,
4243,
63,
25045,
2159,... |
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol | @title Interface for WETH9 | interface IWETH9 is IERC20 {
function deposit() external payable;
function withdraw(uint256) external;
}
}
| 3,218,104 | [
1,
1358,
364,
678,
1584,
44,
29,
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,
59,
1584,
44,
29,
353,
467,
654,
39,
3462,
288,
203,
225,
445,
443,
1724,
1435,
3903,
8843,
429,
31,
203,
203,
225,
445,
598,
9446,
12,
11890,
5034,
13,
3903,
31,
203,
97,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x47b09149a8E138789421dB1EdE366cdAB3cc9Ebb/sources/direct_staking.sol | Always extend storage instead of modifying it | bytes private DEPOSIT_AMOUNT_LITTLE_ENDIAN;
| 9,143,255 | [
1,
18806,
2133,
2502,
3560,
434,
21920,
518,
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,
1731,
3238,
2030,
28284,
67,
2192,
51,
5321,
67,
15716,
56,
900,
67,
30597,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x06e5bffEdA8383848Fd04D047c839ecec6329627/sources/contracts/Livestreambets.sol | Non-terminal state (manual). | return GameStatus.EntriesClosed;
| 9,709,520 | [
1,
3989,
17,
15979,
919,
261,
19840,
2934,
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,
327,
14121,
1482,
18,
5400,
7395,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/7700/0xf160D4a4f60A1C901Ec894943Fb6d06413ce7E61/sources/src/contracts/Minter.sol | initial cost in CANTO of minting 1 sCANTO
| uint256 public initialExchangeRate = 1 ether; | 4,659,511 | [
1,
6769,
6991,
316,
22709,
4296,
434,
312,
474,
310,
404,
272,
39,
1258,
4296,
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,
2254,
5034,
1071,
2172,
11688,
4727,
273,
404,
225,
2437,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xbf225112beE7935C6238F80a245Af3dD82f77a6F/sources/Token.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and a fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Constructor -... | contract Token is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint256 _totalSupply;
uint256 sale;
uint256 reserve;
uint public phase;
mapping(address => uint) public balances;
mapping(address => mapping(addr... | 5,218,481 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
279,
5499,
14467,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2... |
/**
*Submitted for verification at polygonscan.com on 2022-02-12
*/
// Forge Auctions Contract
// Auctions Forge tokens every 3 days and users are able to withdraw anytime after!
//
// The 0xBitcoin tokens collected by Forge Auctions go to miners and liquidity providers!
//
// 10,500,000 Forge tokens are Auctione... | always between 0 and 1000
| uint shortage_block_pct_extra = shortage_block_pct.sub(100).limitLessThan(1000); | 12,567,708 | [
1,
17737,
3086,
374,
471,
4336,
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,
7734,
2254,
3025,
410,
67,
2629,
67,
23989,
67,
7763,
273,
3025,
410,
67,
2629,
67,
23989,
18,
1717,
12,
6625,
2934,
3595,
30899,
12,
18088,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLES ... | * this methods return true if msgSenderAddress added newAirlineToBeRegistrered address in pending registration pool and msgSenderAddress has funded too. it can be said that if true, this mean msgSenderAddress has given his vote in newAirlineToBeRegistrered favour/ | function addedToPoolAndHasFunded(address pendingRegistration, address msgSenderAddress) external view requireAuthorizeCaller returns (bool) {
return (registeredAirlinesMap[msgSenderAddress].hasFunded && addressToVoteCountMapping[pendingRegistration][msgSenderAddress]);
}
| 14,112,404 | [
1,
2211,
2590,
327,
638,
309,
1234,
12021,
1887,
3096,
394,
29752,
1369,
15360,
20175,
264,
329,
1758,
316,
4634,
7914,
2845,
471,
1234,
12021,
1887,
711,
9831,
785,
4885,
18,
225,
518,
848,
506,
7864,
350,
716,
309,
638,
16,
333,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
202,
915,
3096,
774,
2864,
1876,
5582,
42,
12254,
12,
2867,
4634,
7843,
16,
1758,
1234,
12021,
1887,
13,
3903,
1476,
2583,
18987,
11095,
1135,
261,
6430,
13,
288,
203,
202,
202,
2463,
261,
14327,
29752,
3548,
863,
63,
3576,
12021,
... |
./full_match/3/0xc3C944750A79e3c7A3dD8bb74b3D293AbE86D916/sources/browser/MyWill.sol | using Strings for string;using Address for address;文件hash对应的区块号ipfs hash对应的区块号 | contract MyWill is WhitelistAdminRole{
using SafeMath for uint256;
uint256 private _currentTokenID = 0;
mapping (address => Will) public wills;
mapping(address => bool) public creators;
mapping(string=>uint256) public fileHashOnBlock;
mapping(string=>uint256) public ipfsfileHashOnBlock;
... | 8,101,922 | [
1,
9940,
8139,
364,
533,
31,
9940,
5267,
364,
1758,
31,
167,
249,
234,
165,
124,
119,
2816,
166,
112,
122,
166,
123,
247,
168,
253,
231,
166,
239,
123,
166,
256,
250,
166,
242,
120,
625,
2556,
1651,
166,
112,
122,
166,
123,
247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8005,
13670,
353,
3497,
7523,
4446,
2996,
95,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
3238,
389,
2972,
1345,
734,
273,
374,
31,
203,
565,
2874,
261,
2867,
516,
9980,
13,
1071... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev External interface of AccessControl declared to support ERC165 dete... | It holds how many tokens types exists in a tier. | mapping(uint128 => uint256) public tierTokenCount;
| 6,317,294 | [
1,
7193,
14798,
3661,
4906,
2430,
1953,
1704,
316,
279,
17742,
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,
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,
2874,
12,
11890,
10392,
516,
2254,
5034,
13,
1071,
17742,
1345,
1380,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "./interfaces/IController.sol";
import "./TellorVars.sol";
/**
@author Tellor Inc.
@title Oracle
@dev This is the Oracle contract which defines the functionality for the Tellor
* oracle, where reporters submit values on chain and users can retrieve va... | * @dev Returns the amount of tips available for a specific query ID @param _queryId is ID of the specific data feed @return uint256 of the amount of tips added for the specific ID/ | function getTipsById(bytes32 _queryId) external view returns (uint256) {
return tips[_queryId];
}
| 6,383,905 | [
1,
1356,
326,
3844,
434,
31606,
2319,
364,
279,
2923,
843,
1599,
225,
389,
2271,
548,
353,
1599,
434,
326,
2923,
501,
4746,
327,
2254,
5034,
434,
326,
3844,
434,
31606,
3096,
364,
326,
2923,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3181,
7146,
5132,
12,
3890,
1578,
389,
2271,
548,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
31606,
63,
67,
2271,
548,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x700d6d24A55512c6AEC08820B49da4e4193105B3/sources/src/Minter.sol | * @dev Pulls multiple tokens to deposit in the associated Locker & mints WAR based on the deposited amounts @param vlTokens List of address of tokens to deposit @param amounts List of amounts to deposit @param receiver Address to receive the minted WAR/ | function _mintMultiple(address[] calldata vlTokens, uint256[] calldata amounts, address receiver) internal {
if (vlTokens.length != amounts.length) revert Errors.DifferentSizeArrays(vlTokens.length, amounts.length);
if (vlTokens.length == 0) revert Errors.EmptyArray();
uint256 length = vlTokens.length;
... | 3,008,463 | [
1,
9629,
87,
3229,
2430,
358,
443,
1724,
316,
326,
3627,
3488,
264,
473,
312,
28142,
678,
985,
2511,
603,
326,
443,
1724,
329,
30980,
225,
19755,
5157,
987,
434,
1758,
434,
2430,
358,
443,
1724,
225,
30980,
987,
434,
30980,
358,
443... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
81,
474,
8438,
12,
2867,
8526,
745,
892,
19755,
5157,
16,
2254,
5034,
8526,
745,
892,
30980,
16,
1758,
5971,
13,
2713,
288,
203,
565,
309,
261,
10872,
5157,
18,
2469,
480,
30980,
18,
2469,
13,
15226,
9372,
18,
26... |
./full_match/4/0x89f5a6fADeB98E2d4F9d57d3600C1815D8C41956/sources/contracts/SnowmanNFT.sol | max_supply = _max_supply; _admin = admin; marketPlaceContract = _marketPlaceContract; | {
_baseTokenURI = "b";
}
| 767,152 | [
1,
1896,
67,
2859,
1283,
273,
389,
1896,
67,
2859,
1283,
31,
389,
3666,
273,
3981,
31,
13667,
6029,
8924,
273,
389,
27151,
6029,
8924,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
288,
203,
3639,
389,
1969,
1345,
3098,
273,
315,
70,
14432,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-21
*/
pragma solidity ^0.6.6;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an ov... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract FLOAT is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping (ad... | 15,074,477 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15483,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
2... |
// File contracts/libraries/SafeMath.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
f... | total value of outstanding bonds; used for pricing
| uint public totalDebt; | 33,369 | [
1,
4963,
460,
434,
20974,
15692,
31,
1399,
364,
31765,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
2078,
758,
23602,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x4D82EC530Ac3b7F9FEB890ba5DBA18c169cA1C1e/sources/BackToTheEthContract.sol | File: EarlyMintIncentive.sol Allows the contract to have the first x tokens minted for a wallet at a discount or zero fee that can be calculated on the fly. | abstract contract EarlyMintIncentive is Teams, ERC721A, ProviderFees {
uint256 public PRICE = 0.002 ether;
uint256 public EARLY_MINT_PRICE = 0 ether;
uint256 public earlyMintOwnershipCap = 1;
bool public usingEarlyMintIncentive = true;
function enableEarlyMintIncentive() public onlyTeamOrOwner {
usingEar... | 9,700,902 | [
1,
812,
30,
512,
20279,
49,
474,
382,
2998,
688,
18,
18281,
25619,
326,
6835,
358,
1240,
326,
1122,
619,
2430,
312,
474,
329,
364,
279,
9230,
622,
279,
12137,
578,
3634,
14036,
716,
848,
506,
8894,
603,
326,
21434,
18,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
20279,
49,
474,
382,
2998,
688,
353,
10434,
87,
16,
4232,
39,
27,
5340,
37,
16,
7561,
2954,
281,
288,
203,
225,
2254,
5034,
1071,
10365,
1441,
273,
374,
18,
24908,
225,
2437,
31,
203,
225,
2254,
5034,
1071,
51... |
/**
*Submitted for verification at Etherscan.io on 2019-11-11
*/
pragma solidity 0.5.12;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
uint256 result = a * b;
assert(a == 0 || result / a == b);
return result;
}
function div(uint256 a, uint2... | Give\deprive permission to a wallet for freeze tokens. | contract FreezableToken is StandartToken, Ownable {
event ChangeFreezePermission(address indexed _owner, bool _permission);
event FreezeTokens(address indexed _owner, uint256 _freezeAmount);
event UnfreezeTokens(address indexed _owner, uint256 _unfreezeAmount);
function giveFreezePermission(address[] m... | 1,047,654 | [
1,
43,
688,
64,
323,
683,
688,
4132,
358,
279,
9230,
364,
16684,
2430,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15217,
94,
429,
1345,
353,
934,
464,
485,
1345,
16,
14223,
6914,
288,
203,
565,
871,
7576,
9194,
8489,
5041,
12,
2867,
8808,
389,
8443,
16,
1426,
389,
9827,
1769,
203,
565,
871,
15217,
8489,
5157,
12,
2867,
8808,
389,
8443... |
pragma solidity ^0.4.25;
contract DAPP {
// User struct
struct User {
uint id; //user ID
uint bal; //users's balance, not important
string name; //username
uint[] neighbours; //neighbours in PCN
mapping (uint => uint) account; //balances in accounts
}
//State... | helper function to visit each node during BFSonly add to queue if the full amount can be sent through this edge | function exploreNode(uint[] memory Q, int[] memory P, uint[5] memory data) internal returns (bool) {
if(Q[data[1]] == data[3]) return true;
uint cur = Q[data[1]++];
uint i = 0;
for(i = 0; i < users[cur].neighbours.length; ++i){
if(!visited[users[cur].neighbours[i]] && us... | 5,493,496 | [
1,
4759,
445,
358,
3757,
1517,
756,
4982,
605,
4931,
3700,
527,
358,
2389,
309,
326,
1983,
3844,
848,
506,
3271,
3059,
333,
3591,
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,
15233,
266,
907,
12,
11890,
8526,
3778,
2238,
16,
509,
8526,
3778,
453,
16,
2254,
63,
25,
65,
3778,
501,
13,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
309,
12,
53,
63,
892,
63,
21,
13563,
422,
501,
63,
23,
5717,
... |
./partial_match/1/0x0000000006bC8D9e5e9d436217B88De704a9F307/sources/src/Curta.sol | @title Curta @author fiveoutofnine @notice A CTF protocol, where players create and solve EVM puzzles to earn NFTs (``Flag''). ------------------------------------------------------------------------- Constants ------------------------------------------------------------------------- ----------------------------------... | contract Curta is ICurta, FlagsERC721, Owned {
using LibString for uint256;
uint256 constant PHASE_ONE_LENGTH = 2 days;
uint256 constant SUBMISSION_LENGTH = 5 days;
uint256 constant PHASE_TWO_MINIMUM_FEE = 0.02 ether;
uint256 constant PHASE_TWO_PROTOCOL_FEE = 0.01 ether;
uint120 constant D... | 4,251,671 | [
1,
2408,
2351,
225,
23714,
659,
792,
82,
558,
225,
432,
385,
17963,
1771,
16,
1625,
18115,
752,
471,
12439,
512,
7397,
293,
9510,
1040,
358,
425,
1303,
423,
4464,
87,
261,
10335,
4678,
6309,
2934,
8879,
788,
5245,
8879,
788,
8879,
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,
0,
0,
0,
0... | [
1,
16351,
7251,
2351,
353,
467,
2408,
2351,
16,
10104,
654,
39,
27,
5340,
16,
14223,
11748,
288,
203,
565,
1450,
10560,
780,
364,
2254,
5034,
31,
203,
203,
203,
565,
2254,
5034,
5381,
15490,
4429,
67,
5998,
67,
7096,
273,
576,
4681,... |
// SPDX-License-Identifier: GPL-3.0
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)
pragma solidity ^0.8.13;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uin... | File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)* @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned ... | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
mapping(uint256 => uint256) private _ownedTokensIndex;
uint256[] private _allTokens;
mapping(uint256 => uint256) private _allTokensIndex;
function _beforeTokenT... | 8,996 | [
1,
812,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
9489,
19,
654,
39,
27,
5340,
3572,
25121,
18,
18281,
3502,
62,
881,
84,
292,
267,
30131,
331,
24,
18,
24,
18,
20,
261,
2316,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
3572,
25121,
353,
4232,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
3572,
25121,
288,
203,
565,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
2254,
5034,
3719,
3238,
389,
995,
329,
5157,
31,
20... |
pragma solidity ^0.4.18;
import "contracts/Interface/SchedulerInterface.sol";
import "contracts/Library/RequestScheduleLib.sol";
import "contracts/Library/SchedulerLib.sol";
/**
* @title BaseScheduler
* @dev The foundational contract which provides the API for scheduling future transactions on the Alarm Client.
*/... | * @title BaseScheduler @dev The foundational contract which provides the API for scheduling future transactions on the Alarm Client./ | contract BaseScheduler is SchedulerInterface {
using SchedulerLib for SchedulerLib.FutureTransaction;
event NewRequest(address request);
function schedule(address _toAddress,
bytes _callData,
uint[7] _uintArgs)
doReset
public payable ret... | 13,096,127 | [
1,
2171,
11870,
225,
1021,
1392,
8371,
6835,
1492,
8121,
326,
1491,
364,
21895,
3563,
8938,
603,
326,
2262,
4610,
2445,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3360,
11870,
353,
12620,
1358,
288,
203,
565,
1450,
12620,
5664,
364,
12620,
5664,
18,
4118,
3342,
31,
203,
203,
203,
565,
871,
11378,
12,
2867,
590,
1769,
203,
203,
565,
445,
4788,
12,
2867,
282,
389,
869,
1887,
16,
203,
... |
./full_match/1/0x8a1e51DFe708545D6ad080a0eBBDd18A1b6F860C/sources/contracts/Sinra.sol | * @notice Set project information when publishing a project @dev Only `_organizationId` organization can call this function Name Meaning @param _organizationId Organization ID @param _projectId Project ID @param _code Organization code - Proj... | function setProjectInfo(
uint256 _organizationId,
uint256 _projectId,
string memory _code,
uint96 _royaltyPercent
) external {
require(organizationAddressOf[_organizationId] == _msgSender(), "Caller is not organization");
organizationIdOf[_projectId] = _organizat... | 2,979,616 | [
1,
694,
1984,
1779,
1347,
23636,
279,
1984,
1377,
5098,
1375,
67,
15336,
548,
68,
6758,
848,
745,
333,
445,
1850,
1770,
10792,
21979,
310,
565,
389,
15336,
548,
540,
12046,
1599,
565,
389,
4406,
548,
2868,
5420,
1599,
565,
389,
710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25323,
966,
12,
203,
3639,
2254,
5034,
389,
15336,
548,
16,
203,
3639,
2254,
5034,
389,
4406,
548,
16,
203,
3639,
533,
3778,
389,
710,
16,
203,
3639,
2254,
10525,
389,
3800,
15006,
8410,
203,
565,
262,
3903,
288,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-01
*/
pragma solidity >=0.8.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this;
r... | return 600000000 * 10**18; | function MaxTotalSupply() private view returns (uint256) {
}
| 15,269,656 | [
1,
2463,
1666,
12648,
225,
13822,
28,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4238,
5269,
3088,
1283,
1435,
3238,
1476,
225,
1135,
261,
11890,
5034,
13,
288,
203,
565,
289,
203,
377,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that ... | ERC2981 royalty info getter fn ignored tokenId token id to get royalty info for @param salePrice sale price to get royalty percentage for | function royaltyInfo(uint256, uint256 salePrice)
external
view
override(IERC2981Upgradeable)
returns (address receiver, uint256 royaltyAmount)
{
return (royaltyConfig.payout, (salePrice * royaltyConfig.bps) / 10000);
}
| 10,374,538 | [
1,
654,
39,
5540,
11861,
721,
93,
15006,
1123,
7060,
2295,
5455,
1147,
548,
1147,
612,
358,
336,
721,
93,
15006,
1123,
364,
225,
272,
5349,
5147,
272,
5349,
6205,
358,
336,
721,
93,
15006,
11622,
364,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
721,
93,
15006,
966,
12,
11890,
5034,
16,
2254,
5034,
272,
5349,
5147,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
12,
45,
654,
39,
5540,
11861,
10784,
429,
13,
203,
3639,
1135,
261,
2867,
5971,
16,
2254,
5... |
// Abstract contract for the full ERC 20 Token standard
//@ create by m-chain jerry
pragma solidity ^0.4.8;
contract Token {
uint256 public totalSupply;
function balanceOf(address _owner) constant returns (uint256 balance);
function transfer(address _to, uint256 _value) returns (bool success);
... | Set the symbol for display purposes
| symbol = "HLCoin"; | 13,717,710 | [
1,
694,
326,
3273,
364,
2562,
13694,
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,
3639,
3273,
273,
315,
29995,
885,
14432,
27573,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IER... | * @dev See {IERC721-setApprovalForAll}./ | function setApprovalForAll(address operator, bool approved)
public
virtual
override
{
require(operator != _msgSender(), "Symbiosis: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
... | 5,716,773 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
542,
23461,
1290,
1595,
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,
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,
23461,
1290,
1595,
12,
2867,
3726,
16,
1426,
20412,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
565,
288,
203,
3639,
2583,
12,
9497,
480,
389,
3576,
12021,
9334,
315,
10876,
1627,
7441,
291,
30,
661... |
./full_match/1/0xFe37f99cd0597164BFdaBFB7c9f98E4fc44BeF52/sources/src/lender/definitions.sol | @notice calculates the net wealth in the system @param nav_ the current NAV @param reserve_ the current reserve @return assets_ the total asset value (NAV + reserve) | function calcAssets(uint256 nav_, uint256 reserve_) public pure returns (uint256 assets_) {
return safeAdd(nav_, reserve_);
}
| 16,433,420 | [
1,
12780,
815,
326,
2901,
732,
4162,
316,
326,
2619,
225,
8775,
67,
326,
783,
423,
5856,
225,
20501,
67,
326,
783,
20501,
327,
7176,
67,
326,
2078,
3310,
460,
261,
50,
5856,
397,
20501,
13,
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,
7029,
10726,
12,
11890,
5034,
8775,
67,
16,
2254,
5034,
20501,
67,
13,
1071,
16618,
1135,
261,
11890,
5034,
7176,
67,
13,
288,
203,
3639,
327,
4183,
986,
12,
11589,
67,
16,
20501,
67,
1769,
203,
565,
289,
203,
203,
2,... |
./full_match/4/0x53cD729B185c4B37c4935eD2EAE62B3D8976BB72/sources/MyNFT.sol | withdraw to owner wallet | function withdraw() external onlyOwner {
uint256 balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
| 674,116 | [
1,
1918,
9446,
358,
3410,
9230,
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,
598,
9446,
1435,
3903,
1338,
5541,
288,
203,
3639,
2254,
5034,
11013,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
3639,
8843,
429,
12,
3576,
18,
15330,
2934,
13866,
12,
12296,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./SafeMathUInt128.sol";
import "./SafeCast.sol";
import "./Utils.sol";
import "./Storage.sol";
import "./Config.sol";
import "./Events.sol";
impor... | @notice approve to decrease upgrade notice period time to zero by signatures NOTE: Can accept many signatures at a time, thus it is possible to completely cut the upgrade notice period in one transaction The Message includes a hash of the addresses of the contracts to which the upgrade will take place to prevent reuse... | function cutUpgradeNoticePeriodBySignature(bytes[] calldata signatures) external {
require(upgradeStartTimestamp != 0, "p2");
bytes32 targetsHash = getUpgradeTargetsHash();
bytes32 messageHash = keccak256(
abi.encodePacked(
"\x19Ethereum Signed Message:\n110",
... | 952,870 | [
1,
12908,
537,
358,
20467,
8400,
11690,
3879,
813,
358,
3634,
635,
14862,
5219,
30,
4480,
2791,
4906,
14862,
622,
279,
813,
16,
12493,
518,
353,
3323,
358,
14416,
6391,
326,
8400,
11690,
3879,
316,
1245,
2492,
1021,
2350,
6104,
279,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6391,
10784,
20127,
5027,
858,
5374,
12,
3890,
8526,
745,
892,
14862,
13,
3903,
288,
203,
3639,
2583,
12,
15097,
1685,
4921,
480,
374,
16,
315,
84,
22,
8863,
203,
203,
3639,
1731,
1578,
5774,
2310,
273,
336,
10784,
9432... |
/**
*Submitted for verification at Etherscan.io on 2020-07-06
*/
// File: contracts/sol6/IERC20.sol
pragma solidity 0.6.6;
interface IERC20 {
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function approve(address _spender, uint256 _value) external returns (bool success)... | * @dev call to stake more KNC for msg.sender @param amount amount of KNC to stake/ collect KNC token from staker increase delegated stake for address that staker has delegated to (if it is not staker) | function deposit(uint256 amount) external override {
require(amount > 0, "deposit: amount is 0");
uint256 curEpoch = getCurrentEpochNumber();
address staker = msg.sender;
require(
kncToken.transferFrom(staker, address(this), amount),
"deposit: can not get to... | 12,888,126 | [
1,
1991,
358,
384,
911,
1898,
1475,
10346,
364,
1234,
18,
15330,
225,
3844,
3844,
434,
1475,
10346,
358,
384,
911,
19,
3274,
1475,
10346,
1147,
628,
384,
6388,
10929,
30055,
384,
911,
364,
1758,
716,
384,
6388,
711,
30055,
358,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
11890,
5034,
3844,
13,
3903,
3849,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
323,
1724,
30,
3844,
353,
374,
8863,
203,
203,
3639,
2254,
5034,
662,
14638,
273,
5175,
14638,
1854,
5621,
203,
3639,
... |
./full_match/3/0x3a50F254622F6C80417ccE3Db3012698266036D2/sources/tests/pooltest_flat.sol | mise à jour des fonds communs
| poolBalance -= balanceOf[msg.sender]; | 8,088,573 | [
1,
81,
784,
225,
132,
259,
525,
477,
2832,
284,
4096,
8391,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2845,
13937,
3947,
11013,
951,
63,
3576,
18,
15330,
15533,
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... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import { IWETH } from "./interfaces/IWETH.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { EtherSend } from "../libraries/EtherSend.sol";
import { IEasyAuction } from "./interfaces/IEasyAuction.sol";
import { ImmutableGove... | @notice receive eth that should only allow mainnet WETH to send eth | receive() external payable {
require(msg.sender == WETHAddress, "only weth");
}
| 5,473,778 | [
1,
18149,
13750,
716,
1410,
1338,
1699,
2774,
2758,
678,
1584,
44,
358,
1366,
13750,
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,
6798,
1435,
3903,
8843,
429,
288,
203,
565,
2583,
12,
3576,
18,
15330,
422,
678,
1584,
44,
1887,
16,
315,
3700,
341,
546,
8863,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xE40782171Fd4f583c98E41bD889b702bA9574BBB/sources/contracts/Ownable.sol | * @dev Allows the current owner to transfer control of the contract to a newOwner. @param newOwner The address to transfer ownership to./ | function transferOwnership(address newOwner) public onlyOwner
{
_transferOwnership(newOwner);
}
| 3,109,619 | [
1,
19132,
326,
783,
3410,
358,
7412,
3325,
434,
326,
6835,
358,
279,
394,
5541,
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,
... | [
1,
1,
1,
1,
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,
7412,
5460,
12565,
12,
2867,
394,
5541,
13,
1071,
1338,
5541,
203,
225,
288,
203,
565,
389,
13866,
5460,
12565,
12,
2704,
5541,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/43114/0x02941a0Ffa0Bb0E41D9d96314488d2E7652EDEa6/sources/Masterchef.sol | Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all. | function updateEmissionRate(uint256 _EXPPerSec) public onlyOwner {
massUpdatePools();
EXPPerSec = _EXPPerSec;
emit UpdateEmissionRate(msg.sender, _EXPPerSec);
}
| 4,596,617 | [
1,
4069,
23780,
711,
358,
527,
5949,
9609,
16000,
316,
1019,
358,
10182,
326,
801,
19710,
16,
2674,
732,
1221,
518,
4143,
471,
17270,
358,
777,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1514,
19710,
4727,
12,
11890,
5034,
389,
16109,
2173,
2194,
13,
1071,
1338,
5541,
288,
203,
3639,
8039,
1891,
16639,
5621,
203,
3639,
22615,
2173,
2194,
273,
389,
16109,
2173,
2194,
31,
203,
3639,
3626,
2315,
1514,
... |
./full_match/43113/0x76Db3E520630A642f4a825255982c6F39252C2D6/sources/presale/FairLaunchPool.sol | define the launch token to be redeemed | function setLaunchToken(address _launchToken) public onlyOwner {
launchToken = _launchToken;
}
| 7,198,035 | [
1,
11255,
326,
8037,
1147,
358,
506,
283,
24903,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
9569,
1345,
12,
2867,
389,
20738,
1345,
13,
1071,
1338,
5541,
288,
203,
3639,
8037,
1345,
273,
389,
20738,
1345,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2021-12-15
*/
// SPDX-License-Identifier: No License (None)
pragma solidity ^0.8.0;
interface IBEP20TokenCloned {
// initialize cloned token just for BEP20TokenCloned
function initialize(address newOwner, string calldata name, string calldata symbol, uint8 d... | * @dev Delete unused pair @param toToken token address on native chain @param fromChainId foreign chain ID/ | function deletePair(address toToken, uint256 fromChainId) external onlyOwner onlySetup {
delete tokenPair[fromChainId][toToken];
}
| 2,141,383 | [
1,
2613,
10197,
3082,
225,
358,
1345,
1147,
1758,
603,
6448,
2687,
225,
628,
3893,
548,
5523,
2687,
1599,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1430,
4154,
12,
2867,
358,
1345,
16,
2254,
5034,
628,
3893,
548,
13,
3903,
1338,
5541,
1338,
7365,
288,
203,
3639,
1430,
1147,
4154,
63,
2080,
3893,
548,
6362,
869,
1345,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
/*
* Copyright 2021 ConsenSys Software Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | * Connect this ERC20 Bridge contract to an ERC20 Bridge contract on another blockchain. Requirements: - the caller must have the `MAPPING_ROLE`. @param _otherBcId Blockchain ID where the corresponding ERC 20 bridge contract resides. @param _otherErc20Bridge Address of ERC 20 Bridge contract on other bloc... | function changeBlockchainMapping(
uint256 _otherBcId,
address _otherErc20Bridge
) external {
require(
hasRole(MAPPING_ROLE, _msgSender()),
"ERC20 Bridge: Must have MAPPING role"
);
remoteErc20Bridges[_otherBcId] = _otherErc20Bridge;
}
| 12,860,368 | [
1,
5215,
333,
4232,
39,
3462,
24219,
6835,
358,
392,
4232,
39,
3462,
24219,
6835,
603,
4042,
16766,
18,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
20450,
67,
16256,
8338,
225,
389,
3011,
38,
71,
548,
5411,
3914,
5639,
1599,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2549,
1768,
5639,
3233,
12,
203,
3639,
2254,
5034,
389,
3011,
38,
71,
548,
16,
203,
3639,
1758,
389,
3011,
41,
1310,
3462,
13691,
203,
565,
262,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
28335,
12,
20450,
67,
16256,
... |
./full_match/83/0xF0Db6d3bbf2d728dF91B01018CDeE635cFCb1B9a/sources/Users/cuimiandashi/Documents/GitHub/meterio/cryptoblades/contracts/weapons.sol | if we could afford to set exploiter weapons busy, the promos check becomes redundant, saving ~4.2k gas | function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override {
if(from != address(0))
require(nftVars[tokenId][NFTVAR_BUSY] == 0 && (to == address(0) || promos.getBit(from, 4) == false));
}
| 9,558,183 | [
1,
430,
732,
3377,
7103,
517,
358,
444,
15233,
2165,
732,
438,
7008,
21697,
16,
326,
3012,
538,
866,
12724,
19530,
16,
12392,
4871,
24,
18,
22,
79,
16189,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
3849,
288,
203,
3639,
309,
12,
2080,
480,
1758,
12,
20,
3719,
203,
5411,
2583,
12,
82,
1222,
5555,
63,
2316,
548,
6362,
50,
4... |
./full_match/4/0xD44B490e1dBe41115C59c7f32A0B6AEDBF44f051/sources/Hacking/COINFLIP/CoinFlip.sol | IF side is equal to guess then side returns as true | function flip(bool _guess) public returns (bool) {
uint256 blockValue = uint256(blockhash(block.number.sub(1)));
if (lastHash == blockValue) {
revert();
}
lastHash = blockValue;
uint256 coinFlip = blockValue.div(FACTOR);
bool side = coinFlip == 1 ? true : false;
if (side == _guess... | 12,417,727 | [
1,
5501,
4889,
353,
3959,
358,
7274,
1508,
4889,
1135,
487,
638,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9668,
12,
6430,
389,
20885,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2254,
5034,
1203,
620,
273,
2254,
5034,
12,
2629,
2816,
12,
2629,
18,
2696,
18,
1717,
12,
21,
3719,
1769,
203,
203,
565,
309,
261,
2722,
2310,
... |
/*
_ _____ _ _ _____ ___ _____ __
| | / __ \| | | ||_ _| / _ \ | _ | / _|
/ __)| / \/| |_| | | | / /_\ \| | | | | |_ ___ _ __ ___ ___
\__ \| | | _ | | | | _ || | | | | _| / _ \ | '__| / __| / _ \
( /| \__/\| | | | _| |_... | set as marketing wallet
| marketingWallet = address(0x42BC308cbf38AB82a4BF8e35cC7c99d145d078c4); | 11,963,820 | [
1,
542,
487,
13667,
310,
9230,
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,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
9452,
16283,
5082,
28,
7358,
74,
7414,
2090,
11149,
69,
24,
15259,
28,
73,
4763,
71,
39,
27,
71,
2733,
72,
30379,
72,
20,
8285,
71,
24,
1769,
225,
2,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.4.21;
library SafeMath {
function mul(uint a, uint b) internal pure returns(uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function sub(uint a, uint b) internal pure returns(uint) {
assert(b <= a);
return a - b;
}
fu... | @notice will be able to mint tokens in the future @param _target {address} address to which new tokens will be assigned @parm _mintedAmount {uint256} amouont of tokens to mint | function mintToken(address _target, uint256 _mintedAmount) public onlyOwner() {
balances[_target] += _mintedAmount;
totalSupply += _mintedAmount;
emit Transfer(0, _target, _mintedAmount);
}
| 268,615 | [
1,
20194,
506,
7752,
358,
312,
474,
2430,
316,
326,
3563,
225,
389,
3299,
288,
2867,
97,
1758,
358,
1492,
394,
2430,
903,
506,
6958,
632,
1065,
81,
389,
81,
474,
329,
6275,
288,
11890,
5034,
97,
2125,
1395,
1580,
434,
2430,
358,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
1345,
12,
2867,
389,
3299,
16,
2254,
5034,
389,
81,
474,
329,
6275,
13,
1071,
1338,
5541,
1435,
288,
540,
203,
540,
203,
3639,
324,
26488,
63,
67,
3299,
65,
1011,
389,
81,
474,
329,
6275,
31,
203,
3639,
20... |
/**
*Submitted for verification at BscScan.com on 2021-11-06
*/
// SPDX-License-Identifier: MIT
//owner: 0x02de1D9A3aed5E851FD1f085B685262eE0c7a7cA
pragma solidity ^0.8.7;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint... | * @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `... | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "BEP20: transfer from the zero address");
require(recipient != address(0), "BEP20: transfer to the zero address");
require(_balances[sender] >= amount, "BEP20: transfer amo... | 5,718,040 | [
1,
19297,
2430,
1375,
8949,
68,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
353,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
5859,
1147,
1656,
281,
16,
9026,
310,
1791,
28757... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13866,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
5948,
52,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
1... |
// SPDX-License-Identifier: MIT
// https://kanon.art - K21
// https://daemonica.io
//
//
// [email protected]@@@@@@@@@@$$$
// [email protected]@@@@@$$$$$$$$$$$$$$##
// $$$$$$$$$$$$$$$$$#########***
// $$$$$... | * @notice Allows only the artist to broadcast a message @param _message Artist's message/ | function artistBroadcast(string memory _message) external onlyArtist {
emit Broadcast(msg.sender, _message);
}
| 98,049 | [
1,
19132,
1338,
326,
15469,
358,
8959,
279,
883,
282,
389,
2150,
9042,
376,
1807,
883,
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,
225,
445,
15469,
15926,
12,
1080,
3778,
389,
2150,
13,
3903,
1338,
4411,
376,
288,
203,
565,
3626,
19687,
12,
3576,
18,
15330,
16,
389,
2150,
1769,
203,
225,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.4;
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
function _msgSender() internal view virtual returns ... | * @dev checks to ensure the contract is not paused only the admin can execute methods when the contract is paused or when the contract has exited to community/ | modifier notPaused {
require(msg.sender == _admin || _paused == false, "transfer is paused");
_;
}
| 1,576,558 | [
1,
12366,
358,
3387,
326,
6835,
353,
486,
17781,
1338,
326,
3981,
848,
1836,
2590,
1347,
326,
6835,
353,
17781,
578,
1347,
326,
6835,
711,
21590,
358,
19833,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
486,
28590,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
3666,
747,
389,
8774,
3668,
422,
629,
16,
315,
13866,
353,
17781,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |
/**
* PERSONO.ID is WEB 3.0 cornerstone.
* Human first. UBI out of the box. Inevitable.
* This contract is a crowdsale of transitional GUT tokens for ETH.
* Join early. Don't miss the rise of the great, and impressive bounties.
* Open site() at GUT token address 0xbA01AfF9EF5198B5e691D2ac61E3cC126F25491d... | * @notice Overrides function applying multiple increasing price exchange rates concept/ | function _getTokenAmount(uint256 weiAmount)
internal view returns (uint256)
{
return getCurrentRate().mul(weiAmount);
}
| 980,105 | [
1,
13084,
445,
13650,
3229,
21006,
6205,
7829,
17544,
12402,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
588,
1345,
6275,
12,
11890,
5034,
732,
77,
6275,
13,
203,
565,
2713,
1476,
1135,
261,
11890,
5034,
13,
203,
225,
288,
203,
565,
327,
5175,
4727,
7675,
16411,
12,
1814,
77,
6275,
1769,
203,
225,
289,
203,
203,
2,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./IFYToken.sol";
/// @title FYToken
/// @author David Lucid <[email protecte... | * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder accou... | interface IERC20PermitUpgradeable {
function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;
function nonces(address owner) external view returns (uint256);
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
}
| 1,122,903 | [
1,
1358,
434,
326,
4232,
39,
3462,
13813,
305,
2710,
15632,
6617,
4524,
358,
506,
7165,
3970,
14862,
16,
487,
2553,
316,
15605,
326,
288,
457,
1938,
97,
707,
16,
1492,
848,
506,
1399,
358,
2549,
392,
2236,
1807,
4232,
39,
3462,
1699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
654,
39,
3462,
9123,
305,
10784,
429,
288,
203,
565,
445,
21447,
12,
2867,
3410,
16,
1758,
17571,
264,
16,
2254,
5034,
460,
16,
2254,
5034,
14096,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
3903... |
/*
Copyright [2019] - [2021], PERSISTENCE TECHNOLOGIES PTE. LTD. and the pStake-smartContracts contributors
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity >=0.7.0;
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgra... | * @dev Set 'minimum values', called from admin @param minStake: stake minimum value @param minUnstake: unstake minimum value Emits a {SetMinimumValues} event with 'minimum value' set to the stake and unstake./ | function setMinimumValues(uint256 minStake, uint256 minUnstake)
public
virtual
override
returns (bool success)
{
require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "LQ4");
require(minStake >= 1, "LQ5");
require(minUnstake >= 1, "LQ6");
_minStake = minStake;
_minUnstake = minUnstake;
emit SetMinimu... | 5,473,705 | [
1,
694,
296,
15903,
924,
2187,
2566,
628,
3981,
225,
1131,
510,
911,
30,
384,
911,
5224,
460,
225,
1131,
984,
334,
911,
30,
640,
334,
911,
5224,
460,
7377,
1282,
279,
288,
694,
13042,
1972,
97,
871,
598,
296,
15903,
460,
11,
444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
31973,
1972,
12,
11890,
5034,
1131,
510,
911,
16,
2254,
5034,
1131,
984,
334,
911,
13,
203,
202,
202,
482,
203,
202,
202,
12384,
203,
202,
202,
10601,
203,
202,
202,
6154,
261,
6430,
2216,
13,
203,
202,
95,
203,
202,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
import './interface/ComptrollerInterface.sol';
//
// Lend token contract is forked and modified from venus' VToken contract
// LendREI is not ERC20 standard !!
//
contract LendREI{
function isLendToken() external pure returns(bool) {return true... | * @notice Approve `spender` to transfer up to `amount` from `src` @dev This will overwrite the approval amount for `spender` @param spender The address of the account which may transfer tokens @param amount The number of tokens that are approved/ | function approve(address spender, uint256 amount) external{
address src = msg.sender;
transferAllowances[src][spender] = amount;
emit Approval(src, spender, amount);
}
| 12,649,139 | [
1,
12053,
537,
1375,
87,
1302,
264,
68,
358,
7412,
731,
358,
1375,
8949,
68,
628,
1375,
4816,
68,
225,
1220,
903,
6156,
326,
23556,
3844,
364,
1375,
87,
1302,
264,
68,
225,
17571,
264,
1021,
1758,
434,
326,
2236,
1492,
2026,
7412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
3844,
13,
3903,
95,
203,
3639,
1758,
1705,
273,
1234,
18,
15330,
31,
203,
3639,
7412,
7009,
6872,
63,
4816,
6362,
87,
1302,
264,
65,
273,
3844,
31,
203,
3639,
3626,
171... |
./full_match/8453/0x1Be69BA963c2D28954E7b79749475354b64b674f/sources/contracts/CryptoSwap2Pool.sol | dev: unsafe values x[0]
| require(x[0] > 10 ** 9 - 1 && x[0] < 10 ** 15 * 10 ** 18 + 1); | 11,556,917 | [
1,
5206,
30,
7127,
924,
619,
63,
20,
65,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
92,
63,
20,
65,
405,
1728,
2826,
2468,
300,
404,
597,
619,
63,
20,
65,
411,
1728,
2826,
4711,
380,
1728,
2826,
6549,
397,
404,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.4.16;
contract Token {
/* Total amount of tokens */
uint256 public totalSupply;
/*
* Events
*/
event Transfer(address indexed from, address indexed to, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
/*
*... | assert(b > 0); Solidity automatically throws when dividing by 0 assert(a == b * c + a % b); There is no case in which this doesn't hold | function div(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a / b;
return c;
}
| 884,944 | [
1,
11231,
12,
70,
405,
374,
1769,
225,
348,
7953,
560,
6635,
1216,
1347,
3739,
10415,
635,
374,
1815,
12,
69,
422,
324,
225,
276,
397,
279,
738,
324,
1769,
225,
6149,
353,
1158,
648,
316,
1492,
333,
3302,
1404,
6887,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3739,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
1377,
2254,
5034,
276,
273,
279,
342,
324,
31,
203,
1377,
327,
276,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
./partial_match/56/0x78488b0DeF582ba53d6FD56Bc361a8485862e33d/sources/AutoFarm.sol | Update reward variables of the given pool to be up-to-date. | function updatePool(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 sharesTotal = IStrategy(pool.strat).sharesTotal();
if (sharesTotal == 0) {
pool.lastRewardBlock = block.num... | 11,250,465 | [
1,
1891,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
... |
pragma solidity 0.5.16;
import "./AuthereumEnsResolver.sol";
import "../base/Owned.sol";
import "../utils/strings.sol";
/**
* @title AuthereumEnsManager
* @author Authereum Labs, Inc.
* @dev Used to manage all subdomains.
* @dev This is also known as the Authereum registrar.
* @dev The public ENS registry is use... | @dev Lets the manager assign an ENS subdomain of the root node to a target address @notice Registers both the forward and reverse ENS @param _label The subdomain label @param _owner The owner of the subdomain Forward ENS Reverse ENS | function register(
string calldata _label,
address _owner
)
external
onlyAuthereumFactory
{
bytes32 labelNode = keccak256(abi.encodePacked(_label));
bytes32 node = keccak256(abi.encodePacked(rootNode, labelNode));
address currentOwner = getEnsRegistry(... | 6,437,321 | [
1,
48,
2413,
326,
3301,
2683,
392,
512,
3156,
16242,
434,
326,
1365,
756,
358,
279,
1018,
1758,
225,
2526,
6045,
3937,
326,
5104,
471,
4219,
512,
3156,
225,
389,
1925,
1021,
16242,
1433,
225,
389,
8443,
1021,
3410,
434,
326,
16242,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
12,
203,
3639,
533,
745,
892,
389,
1925,
16,
203,
3639,
1758,
389,
8443,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
1730,
822,
379,
1733,
203,
565,
288,
203,
3639,
1731,
1578,
1433,
907,
273,
417,
24410,
5... |
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/governance/Governor.sol | * @dev See {IGovernor-hashProposal}. The proposal id is produced by hashing the ABI encoded `targets` array, the `values` array, the `calldatas` array and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id can be produced from the proposal data which is part of ... | function hashProposal(
address[] memory targets,
uint256[] memory values,
bytes[] memory calldatas,
bytes32 descriptionHash
) public pure virtual returns (uint256) {
return uint256(keccak256(abi.encode(targets, values, calldatas, descriptionHash)));
}
| 8,083,679 | [
1,
9704,
288,
3047,
1643,
29561,
17,
2816,
14592,
5496,
1021,
14708,
612,
353,
14929,
635,
24641,
326,
10336,
45,
3749,
1375,
11358,
68,
526,
16,
326,
1375,
2372,
68,
526,
16,
326,
1375,
1991,
13178,
68,
526,
471,
326,
2477,
2310,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1651,
14592,
12,
203,
3639,
1758,
8526,
3778,
5774,
16,
203,
3639,
2254,
5034,
8526,
3778,
924,
16,
203,
3639,
1731,
8526,
3778,
745,
13178,
16,
203,
3639,
1731,
1578,
2477,
2310,
203,
565,
262,
1071,
16618,
5024,
1135,
... |
./full_match/3/0x3c343872ca5f8FB3F02AF1a1221F8b7806563860/sources/browser/BCCToken.sol | * @dev See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowa... | function transferFrom(address tokenOwner, address recipient, uint256 amount) public virtual override returns (bool) {
address spender = msg.sender;
uint256 _allowance = _allowances[tokenOwner][spender];
require(_allowance > amount, "BCC1: transfer amount exceeds allowance");
... | 8,160,083 | [
1,
9704,
288,
45,
654,
39,
3462,
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,
654,
39,
346... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
12,
2867,
1147,
5541,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
1071,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
17571,
264,
273,
1234,
18,
15330,
31,
203,
3639,
2254,
5034,
389,
5965,
1359,
273,... |
pragma solidity ^0.4.21;
/*
Owned contract interface
*/
contract IOwned {
// this function isn't abstract since the compiler emits automatically generated getter functions as external
function owner() public view returns (address) {}
function transferOwnership(address _newOwner) public;
function a... | / get the contract features address from the registry iterate over the conversion path if the smart token isn't the source (from token), the converter doesn't have control over it and thus we need to approve the request make the conversion - if it's the last one, also provide the minimum return value | function convertByPath(
IERC20Token[] _path,
uint256 _amount,
uint256 _minReturn,
IERC20Token _fromToken,
address _for
) private returns (IERC20Token, uint256) {
ISmartToken smartToken;
IERC20Token toToken;
IBancorConverter converter;
ICon... | 1,222,377 | [
1,
19,
336,
326,
6835,
4467,
1758,
628,
326,
4023,
7401,
1879,
326,
4105,
589,
309,
326,
13706,
1147,
5177,
1404,
326,
1084,
261,
2080,
1147,
3631,
326,
6027,
3302,
1404,
1240,
3325,
1879,
518,
471,
12493,
732,
1608,
358,
6617,
537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
1765,
16736,
12,
203,
3639,
467,
654,
39,
3462,
1345,
8526,
389,
803,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
1154,
990,
16,
203,
3639,
467,
654,
39,
3462,
1345,
389,
2080,
1345,
16,
203,... |
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they sho... | * @title Androgynous contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ | contract Androgynous is ERC721, Ownable {
using SafeMath for uint256;
SexNFT private boys;
SexNFT private girls;
uint256 public androPrice = 80000000000000000;
uint256 public constant maxAndroPurchase = 10;
uint256 public MAX_ANDRO = 900;
uint256 public MAX_SALE_ANDRO = 800;
uint25... | 1,634,843 | [
1,
1876,
303,
75,
878,
1481,
6835,
225,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7835,
303,
75,
878,
1481,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
377,
203,
565,
348,
338,
50,
4464,
3238,
800,
1900,
31,
203,
565,
348,
338,
50,
4464,
3238,... |