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 |
|---|---|---|---|---|---|---|
/**
* @title CryptoDivert DAPP
* @dev Implementation of the CryptoDivert Smart Contract.
* @version 2018.04.05
* @copyright All rights reserved (c) 2018 Cryptology ltd, Hong Kong.
* @author Cryptology ltd, Hong Kong.
* @disclaimer CryptoDivert DAPP provided by Cryptology ltd, Hong Kong is for illustrative purpos... | used to make a receiver hashed transaction more private.
| uint256 _randomPercentage; | 429,100 | [
1,
3668,
358,
1221,
279,
5971,
14242,
2492,
1898,
3238,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
389,
9188,
16397,
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/0x9911347277a79fC4a00050DFc16afe65f2bFF852/sources/contracts/Squid.sol | * @dev String operations./ | library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
_ _____ _____ ___________ ___ _ _____ _____ _ _ ___________ _____ ___ ___ ___ _____
function toString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0"... | 8,325,380 | [
1,
780,
5295,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
8139,
288,
203,
565,
1731,
2313,
3238,
5381,
389,
20661,
67,
22093,
55,
273,
315,
26684,
28953,
14432,
203,
203,
203,
67,
377,
389,
7198,
389,
7198,
389,
12214,
972,
225,
19608,
282,
389,
4202,
389,
7198,
225,
389,
7198,
3... |
/**
*Submitted for verification at Etherscan.io on 2021-12-03
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers... | Bulk airDrop will you give tokenid and addressess to send one nft or how you want it | function airDropPenguins(address[] memory addresses, uint256[] memory tokenIds) public onlyOwner(){
for (uint256 i = 0; i < tokenIds.length; i++){
safeTransferFrom(address (msg.sender),addresses[i],tokenIds[i]);
}
}
| 10,905,276 | [
1,
13112,
23350,
7544,
903,
1846,
8492,
1147,
350,
471,
1758,
403,
358,
1366,
1245,
290,
1222,
578,
3661,
1846,
2545,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
23350,
7544,
24251,
6891,
2679,
12,
2867,
8526,
3778,
6138,
16,
2254,
5034,
8526,
3778,
1147,
2673,
13,
1071,
1338,
5541,
1435,
95,
203,
1377,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
1147,
2673,
18,
2469,
31... |
./partial_match/42/0xBA8784c2429897429b0dBA9E8D25cFE26835b088/sources/contracts/shit.sol | the amount of tokens to lock for liquidity during every transfer, i.e. 100 = 1%, 50 = 2%, 40 = 2.5% | contract ERC20TransferLiquidityLock is ERC20 {
using SafeMath for uint256;
event LockLiquidity(uint256 tokenAmount, uint256 ethAmount);
event BurnLiquidity(uint256 lpTokenAmount);
event RewardLiquidityProviders(uint256 tokenAmount);
address public uniswapV2Router;
address public uniswapV2Pair;... | 3,463,992 | [
1,
5787,
3844,
434,
2430,
358,
2176,
364,
4501,
372,
24237,
4982,
3614,
7412,
16,
277,
18,
73,
18,
2130,
273,
404,
9,
16,
6437,
273,
576,
9,
16,
8063,
273,
576,
18,
25,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
5912,
48,
18988,
24237,
2531,
353,
4232,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
3488,
48,
18988,
24237,
12,
11890,
5034,
1147,
6275,
16,
2254,
5034,
13750,
6275,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./PostDeliveryCrowdsale.sol";
contract MintASX is PostDeliveryCrowdsale, Ownable {
constructor(
uint256 _rate,
address payable _wallet,
ER... | * @title AllowanceCrowdsale @dev Extension of Crowdsale where tokens are held by a wallet, which approves an allowance to the crowdsale./ | abstract contract AllowanceCrowdsale is Crowdsale {
using SafeERC20 for IERC20;
address private _tokenWallet;
pragma solidity ^0.8.0;
constructor(address tokenWallet) {
require(
tokenWallet != address(0),
"AllowanceCrowdsale: token wallet is the zero address"
);
_tokenWallet = tokenWallet;
}
functio... | 13,926,204 | [
1,
7009,
1359,
39,
492,
2377,
5349,
225,
10021,
434,
385,
492,
2377,
5349,
1625,
2430,
854,
15770,
635,
279,
9230,
16,
1492,
6617,
3324,
392,
1699,
1359,
358,
326,
276,
492,
2377,
5349,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
7852,
1359,
39,
492,
2377,
5349,
353,
385,
492,
2377,
5349,
288,
203,
202,
9940,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
202,
2867,
3238,
389,
2316,
16936,
31,
203,
203,
683,
9454,
18035,
560,
... |
pragma solidity ^0.4.25;
/**
* Contract to store the mileage of a car
*/
contract Odometer {
event Creation(
address indexed from,
string vin
);
event Transfer(
address indexed from,
address indexed to,
string vin
);
struct Car {
str... | * Updates the current kilometers of the car. Transactions fails and burns gas if the new kilometer value is lower than the old one./ | function updateKilometers(string vin, uint kilometers) public {
Car storage transferObject = cars[vin];
assert(transferObject.owner == msg.sender);
assert(transferObject.kilometers < kilometers);
transferObject.kilometers = kilometers;
}
| 12,793,381 | [
1,
5121,
326,
783,
417,
330,
362,
1032,
434,
326,
5926,
18,
27148,
6684,
471,
18305,
87,
16189,
309,
326,
394,
417,
330,
362,
847,
460,
353,
2612,
2353,
326,
1592,
1245,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
47,
330,
362,
1032,
12,
1080,
331,
267,
16,
2254,
417,
330,
362,
1032,
13,
1071,
288,
203,
3639,
23672,
2502,
7412,
921,
273,
276,
5913,
63,
21529,
15533,
203,
3639,
1815,
12,
13866,
921,
18,
8443,
422,
1234,
18... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | only first b.length is valid
| v = v >> (8 * (32 - b.length)); | 260,828 | [
1,
3700,
1122,
324,
18,
2469,
353,
923,
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,
331,
273,
331,
1671,
261,
28,
380,
261,
1578,
300,
324,
18,
2469,
10019,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/Math.sol";
import "./libraries/boringcrypto/libraries/BoringMath.sol";
import "./libraries/boringcrypto/BoringBatchable.sol";
import "./libraries/boringcrypto/BoringOwnable.sol";
import "./l... | @notice Update reward variables for all pools and set the expire time for skipping `massUpdatePoolsNonZero()`. Be careful of gas spending! Can only be called by the owner. DO NOT use this function until `massUpdatePoolsNonZero()` reverts because of out of gas. If that is the case, try to update all pools first and the... | function massUpdatePoolsAndSet(uint256[] calldata pids) external onlyOwner {
massUpdatePools(pids);
_skipOwnerMassUpdateUntil = block.timestamp.add(3600);
}
| 12,866,037 | [
1,
1891,
19890,
3152,
364,
777,
16000,
471,
444,
326,
6930,
813,
364,
14195,
1375,
10424,
1891,
16639,
3989,
7170,
1435,
8338,
4823,
26850,
434,
16189,
272,
9561,
5,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
5467,
4269,
999,
333,
445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8039,
1891,
16639,
13152,
12,
11890,
5034,
8526,
745,
892,
20726,
13,
3903,
1338,
5541,
288,
203,
3639,
8039,
1891,
16639,
12,
84,
2232,
1769,
203,
3639,
389,
7457,
5541,
18060,
1891,
9716,
273,
1203,
18,
5508,
18,
1289,
... |
./full_match/137/0x99bD31d6c7c2cd8d801176e3612aFD665Acc44a0/sources/project_/contracts/libraries/CommonBase.sol | @dev prevents delegatecall into the modified method | modifier noDelegateCall() {
_checkNotDelegateCall();
_;
}
| 3,741,789 | [
1,
29150,
87,
7152,
1991,
1368,
326,
4358,
707,
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,
9606,
1158,
9586,
1477,
1435,
288,
203,
3639,
389,
1893,
1248,
9586,
1477,
5621,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
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 re... | If the payer is not the contract pull the collateral from the payer. If the payer is the contract, adjust the cumulativeFeeMultiplier to compensate. The final fee must be < available collateral or the fee will be larger than 100%. | function _payFinalFees(address payer, FixedPoint.Unsigned memory amount) internal {
if (amount.isEqual(0)) {
return;
}
if (payer != address(this)) {
collateralCurrency.safeTransferFrom(payer, address(this), amount.rawValue);
FixedPoint.Unsigned ... | 7,359,685 | [
1,
2047,
326,
293,
1773,
353,
486,
326,
6835,
6892,
326,
4508,
2045,
287,
628,
326,
293,
1773,
18,
971,
326,
293,
1773,
353,
326,
6835,
16,
5765,
326,
15582,
14667,
23365,
358,
1161,
773,
340,
18,
1021,
727,
14036,
1297,
506,
411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
10239,
7951,
2954,
281,
12,
2867,
293,
1773,
16,
15038,
2148,
18,
13290,
3778,
3844,
13,
2713,
288,
203,
203,
3639,
309,
261,
8949,
18,
291,
5812,
12,
20,
3719,
288,
203,
203,
5411,
327,
31,
203,
203,
3639,
289,
... |
pragma solidity ^0.5.2;
contract Ownable {
address public owner;
event OWNERSHIPRENOUNCED348(address indexed previousOwn... | inject NONSTANDARD NAMING
| event APPROVAL122(address indexed owner, address indexed spender, uint256 value); | 1,045,784 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
14410,
3373,
2669,
22266,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
5034,
460,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/5/0x5a08edfCC269505A42fd594F7a00288E4E40BF4b/sources/lib/ERC721B/contracts/extensions/ERC721BBurnable.sol | * @dev See {IERC721-ownerOf}./ | {
if (_burned[tokenId]) revert NonExistentToken();
return super.ownerOf(tokenId);
}
| 1,867,369 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
8443,
951,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
565,
309,
261,
67,
70,
321,
329,
63,
2316,
548,
5717,
15226,
3858,
4786,
319,
1345,
5621,
203,
565,
327,
2240,
18,
8443,
951,
12,
2316,
548,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
... | require(!_stringsEqual(ad.text, text), "New text is the same"); | function editAd(
uint adId,
) public {
require(adId < ads.length, "Ad id not found");
require(bytes(text).length != 0, "Text is empty");
Ad storage ad = ads[adId];
require(msg.sender == ad.user, "Sender not authorized.");
ad.text = text;
ad.updatedAt = now;
emit EventEditAd(msg.s... | 6,407,154 | [
1,
6528,
12,
5,
67,
10219,
5812,
12,
361,
18,
955,
16,
977,
3631,
315,
1908,
977,
353,
326,
1967,
8863,
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,
225,
445,
3874,
1871,
12,
203,
565,
2254,
1261,
548,
16,
203,
225,
262,
1071,
288,
203,
565,
2583,
12,
361,
548,
411,
12767,
18,
2469,
16,
315,
1871,
612,
486,
1392,
8863,
203,
565,
2583,
12,
3890,
12,
955,
2934,
2469,
480,
3... |
./full_match/80001/0xEdC32fb2f04E7436E3bC6ef926a1bc2fCB3691e8/sources/_opengsn/contracts/src/interfaces/IRelayHub.sol | * @notice A struct that contains all the parameters of the `RelayHub` that can be modified after the deployment./ maximum number of worker accounts allowed per manager Gas set aside for all relayCall() instructions to prevent unexpected out-of-gas exceptions Gas overhead to calculate gasUseWithoutPost Gas cost of all r... | struct RelayHubConfig {
uint256 maxWorkerCount;
uint256 gasReserve;
uint256 postOverhead;
uint256 gasOverhead;
uint256 minimumUnstakeDelay;
address devAddress;
uint8 devFee;
uint80 baseRelayFee;
uint16 pctRelayFee;
}
address index... | 9,466,308 | [
1,
37,
1958,
716,
1914,
777,
326,
1472,
434,
326,
1375,
27186,
8182,
68,
716,
848,
506,
4358,
1839,
326,
6314,
18,
19,
4207,
1300,
434,
4322,
9484,
2935,
1534,
3301,
31849,
444,
487,
831,
364,
777,
18874,
1477,
1435,
12509,
358,
530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
4275,
528,
8182,
809,
288,
203,
3639,
2254,
5034,
943,
6671,
1380,
31,
203,
3639,
2254,
5034,
16189,
607,
6527,
31,
203,
3639,
2254,
5034,
1603,
4851,
1978,
31,
203,
3639,
2254,
5034,
16189,
4851,
1978,
31,
203,
3639,
... |
./partial_match/1/0xA0244AfBC4d0366eEBbd4cBfcF82CE49547D8eaa/sources/TAMAG2.sol | equip -> tamag -> slot | mapping (uint256 => mapping(uint256 => uint256)) equippedToTamagSlot;
| 3,650,896 | [
1,
14298,
625,
317,
268,
301,
346,
317,
4694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
5034,
516,
2874,
12,
11890,
5034,
516,
2254,
5034,
3719,
1298,
625,
1845,
774,
56,
301,
346,
8764,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x763e361fC5118DbC226E804E351F0FcD97621D35/sources/ThinuToken.sol | uint256 centiBuyTax; uint256 centiSellTax; | struct LimitInitialParams {
address thinuWallet;
uint256 maxTxPercent;
uint256 maxWalletPercent;
}
constructor(
string memory name_,
string memory symbol_,
uint256 supply_,
uint8 decimals_,
LimitInitialParams memory parameters,
RefDivi... | 3,711,093 | [
1,
11890,
5034,
8301,
17632,
9835,
7731,
31,
2254,
5034,
8301,
77,
55,
1165,
7731,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7214,
4435,
1370,
288,
203,
3639,
1758,
286,
6860,
16936,
31,
203,
3639,
2254,
5034,
943,
4188,
8410,
31,
203,
3639,
2254,
5034,
943,
16936,
8410,
31,
203,
565,
289,
203,
203,
565,
3885,
12,
203,
3639,
533,
3778,
508,
... |
./full_match/137/0x308dC032417Bb4b9A79606A6c61Fce3c375cF6D5/sources/interfaces/IRelay.sol | @title The interface for Graviton relay contract @notice Trades native tokens for gton to start crosschain swap, trades gton for native tokens to compelete crosschain swap @author Artemij Artamonov - <array.clean@gmail.com> @author Anton Davydov - <fetsorn@gmail.com> | interface IRelay is IOracleRouterV2 {
function wnative() external view returns (IWETH);
function router() external view returns (IUniswapV2Router01);
function gton() external view returns (IERC20);
function isAllowedChain(string calldata chain) external view returns (bool);
function setIsAllowed... | 4,745,908 | [
1,
1986,
1560,
364,
10812,
90,
26949,
18874,
6835,
225,
2197,
5489,
6448,
2430,
364,
314,
1917,
358,
787,
6828,
5639,
7720,
16,
1284,
5489,
314,
1917,
364,
6448,
2430,
358,
1161,
929,
6828,
5639,
7720,
225,
1201,
874,
8302,
9042,
301,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27186,
353,
1665,
16873,
8259,
58,
22,
288,
203,
565,
445,
341,
13635,
1435,
3903,
1476,
1135,
261,
45,
59,
1584,
44,
1769,
203,
203,
565,
445,
4633,
1435,
3903,
1476,
1135,
261,
45,
984,
291,
91,
438,
58,
22,
8259,
... |
/*
Copyright 2018 dYdX Trading Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | ============ Constants ============ Address of the WETH token ============ Constructor ============ | {
using TokenInteract for address;
address public WETH;
constructor(
address weth
)
public
import { WETH9 } from "canonical-weth/contracts/WETH9.sol";
import { BucketLender } from "./BucketLender.sol";
import { MathHelpers } from "../../../lib/MathHelpers.sol";
import { TokenIntera... | 5,462,106 | [
1,
14468,
5245,
422,
1432,
631,
5267,
434,
326,
678,
1584,
44,
1147,
422,
1432,
631,
11417,
422,
1432,
631,
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,
95,
203,
565,
1450,
3155,
2465,
621,
364,
1758,
31,
203,
203,
203,
565,
1758,
1071,
678,
1584,
44,
31,
203,
203,
203,
565,
3885,
12,
203,
3639,
1758,
341,
546,
203,
565,
262,
203,
3639,
1071,
203,
203,
203,
5666,
288,
678,
15... |
./full_match/1/0x1664128DF6768c0318FCB0d044bb4ac9Dea0eF07/sources/browser/sendeth.sol | The function will throw an error since this function is not payable. | function notPayable() public {
}
| 3,053,321 | [
1,
1986,
445,
903,
604,
392,
555,
3241,
333,
445,
353,
486,
8843,
429,
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,
565,
445,
486,
9148,
429,
1435,
1071,
288,
203,
565,
289,
203,
377,
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,... |
pragma solidity ^0.5.0;
/* ABIEncoderV2 is needed to return an array from a function. */
pragma experimental ABIEncoderV2;
contract Healthchain {
/* Every user has a list of documents. */
mapping (address => string[]) public documents;
/**
* Add a medical record.
* Returns the index of the medical record... | * Returns all the patients addresses that gave the doctor access./ | function getDoctorsPermissions(address doctor) public view returns (address[] memory) {
return doctorsPermissions[doctor];
}
| 5,527,836 | [
1,
1356,
777,
326,
9670,
5828,
6138,
716,
314,
836,
326,
741,
30206,
2006,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
11165,
299,
1383,
6521,
12,
2867,
741,
30206,
13,
1071,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
565,
327,
31263,
1383,
6521,
63,
2896,
30206,
15533,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// namehash("hatch.eth")
bytes32 constant nodehashHatch = 0x54e801acbb1a4f9d2f51dae289e38bc712f13d4dca03b5321203b74e9869a091;
bytes32 constant nodehashReverse = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;
// dnsEncode("hatch.eth")
string constant dnsHatch = "\x05hatch\x03eth\x00";
interface ... | The hatch owner name and hash (e.g. ricmoo.hatch.eth => ricmoo.eth) | bytes memory ownerName = abi.encodePacked(dnsName[0: length + 1], "\x03eth\x00");
| 15,853,173 | [
1,
1986,
366,
505,
3410,
508,
471,
1651,
261,
73,
18,
75,
18,
436,
335,
81,
5161,
18,
76,
505,
18,
546,
516,
436,
335,
81,
5161,
18,
546,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1731,
3778,
3410,
461,
273,
24126,
18,
3015,
4420,
329,
12,
14926,
461,
63,
20,
30,
769,
397,
404,
6487,
1548,
92,
4630,
546,
64,
92,
713,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.9;
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "contracts/plugins/assets/abstract/CompoundOracleMixin.sol";
import "contracts/plugins/assets/CTokenFiatCollateral.sol";
/**
* @title CTokenPeggedCollateral
* @notice C... | @return {UoA/target} The price of a target unit in UoA | function pricePerTarget() public view override returns (uint192) {
return consultOracle(oracleLookupSymbol);
}
| 1,823,352 | [
1,
2463,
288,
57,
83,
37,
19,
3299,
97,
1021,
6205,
434,
279,
1018,
2836,
316,
587,
83,
37,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6205,
2173,
2326,
1435,
1071,
1476,
3849,
1135,
261,
11890,
15561,
13,
288,
203,
3639,
327,
27710,
23601,
12,
280,
16066,
6609,
5335,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
Copyright 2021 Set 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
Unless required by applicable law or agreed to in... | ============ Events ============ */ ============ Modifiers ============ */ The upgrade hash is defined by the hash of the transaction call data and sender of msg, which uniquely identifies the function, arguments, and sender. | function addComponent(address _component) external;
function removeComponent(address _component) external;
function editDefaultPositionUnit(address _component, int256 _realUnit) external;
function addExternalPositionModule(address _component, address _positionModule) external;
function removeExterna... | 280,545 | [
1,
14468,
9043,
422,
1432,
631,
342,
422,
1432,
631,
3431,
3383,
422,
1432,
631,
342,
1021,
8400,
1651,
353,
2553,
635,
326,
1651,
434,
326,
2492,
745,
501,
471,
5793,
434,
1234,
16,
1492,
30059,
25283,
326,
445,
16,
1775,
16,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15218,
12,
2867,
389,
4652,
13,
3903,
31,
203,
565,
445,
1206,
1841,
12,
2867,
389,
4652,
13,
3903,
31,
203,
565,
445,
3874,
1868,
2555,
2802,
12,
2867,
389,
4652,
16,
509,
5034,
389,
7688,
2802,
13,
3903,
31,
203,
... |
pragma solidity 0.5.0;
import "openzeppelin-eth/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-eth/contracts/math/SafeMath.sol";
import "./compound/ICErc20.sol";
import "openzeppelin-eth/contracts/ownership/Ownable.sol";
import "kleros/contracts/data-structures/SortitionSumTreeFactory.sol";
import "./UniformR... | * @notice Puts a user in a group if they've been invited and removes them from the allowed invite list. @param _groupId The group to join @author jmartinmcfly/ require the the user is in allowed WARNING: This may get funky because storage | function joinGroup(int256 _groupId) external hasEntry isSolo {
Group storage theGroup = groups[uint(_groupId)];
bool isAllowed = false;
for (uint i = 0; i < theGroup.allowedEntrants.length; i++) {
if (theGroup.allowedEntrants[i] == msg.sender) {
isAllowed = true;
_burn(i, theGroup.al... | 15,884,377 | [
1,
26804,
279,
729,
316,
279,
1041,
309,
2898,
8081,
2118,
2198,
16261,
471,
7157,
2182,
628,
225,
326,
2935,
19035,
666,
18,
225,
389,
27547,
1021,
1041,
358,
1233,
225,
28296,
485,
267,
81,
8522,
715,
19,
2583,
326,
326,
729,
353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1233,
1114,
12,
474,
5034,
389,
27547,
13,
3903,
711,
1622,
11604,
12854,
288,
203,
565,
3756,
2502,
326,
1114,
273,
3252,
63,
11890,
24899,
27547,
13,
15533,
203,
565,
1426,
21956,
273,
629,
31,
203,
565,
364,
261,
118... |
./full_match/1/0x49F137f60B5A7FbAD577D16f33cFe6Be743C8c06/sources/contracts/Market.sol | @notice Emitted when the earnings of a maturity are updated. @param timestamp current timestamp. @param maturity maturity date where the earnings were updated. @param unassignedEarnings pending unassigned earnings. | event FixedEarningsUpdate(uint256 timestamp, uint256 indexed maturity, uint256 unassignedEarnings);
| 3,005,906 | [
1,
1514,
11541,
1347,
326,
425,
1303,
899,
434,
279,
29663,
854,
3526,
18,
225,
2858,
783,
2858,
18,
225,
29663,
29663,
1509,
1625,
326,
425,
1303,
899,
4591,
3526,
18,
225,
640,
15938,
41,
1303,
899,
4634,
640,
15938,
425,
1303,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
871,
15038,
41,
1303,
899,
1891,
12,
11890,
5034,
2858,
16,
2254,
5034,
8808,
29663,
16,
2254,
5034,
640,
15938,
41,
1303,
899,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xa5F5F3803f6174C94f71419834ab91dD2eb7963a/sources/FriendsFingersCrowdsale.sol | vault finalization task, called when owner calls finalize() | function finalization() internal {
require(state == State.Active);
if (goalReached()) {
state = State.Closed;
Closed();
if (friendsFingersRatePerMille > 0) {
uint256 friendsFingersFee = weiRaised.mul(friendsFingersRatePerMille).div(1000);
... | 4,412,642 | [
1,
26983,
727,
1588,
1562,
16,
2566,
1347,
3410,
4097,
12409,
1435,
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,
445,
727,
1588,
1435,
2713,
288,
203,
3639,
2583,
12,
2019,
422,
3287,
18,
3896,
1769,
203,
203,
3639,
309,
261,
27354,
23646,
10756,
288,
203,
5411,
919,
273,
3287,
18,
7395,
31,
203,
5411,
25582,
5621,
203,
203,
5411,
309,... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silen... | 500,000,000 + Decimals
| uint256 public maxlimit = 500000000000000000; | 1,745,228 | [
1,
12483,
16,
3784,
16,
3784,
397,
3416,
11366,
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,
3639,
2254,
5034,
1071,
943,
3595,
273,
1381,
12648,
2787,
11706,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/42161/0x2b0aa0374167E8E08ee4f26077Fc9631A665439b/sources/Lottery.sol | Get the BNB balance of the contract Get the current BNB-USD price from the price feed Convert the BNB balance to its equivalent value in USD | function getBNBBalanceInUSD() public view returns (uint256) {
uint256 bnbBalance = address(this).balance;
(, int256 price,,,) = priceFeed.latestRoundData();
uint256 bnbPrice = uint256(price);
uint256 bnbValueInUSD = (bnbBalance * bnbPrice) / 1e18 * 1e10 ;
return bnbValueInUS... | 16,298,619 | [
1,
967,
326,
605,
20626,
11013,
434,
326,
6835,
968,
326,
783,
605,
20626,
17,
3378,
40,
6205,
628,
326,
6205,
4746,
4037,
326,
605,
20626,
11013,
358,
2097,
7680,
460,
316,
587,
9903,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
50,
9676,
6112,
382,
3378,
40,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
1377,
2254,
5034,
324,
6423,
13937,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
203,
3639,
261,
16,
509,
5034,
6205,
16408,
16,... |
// SPDX-License-Identifier: MIT
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... | * @dev Purchases Berlin Collection Artist Mint Pack/ === Purchases Pack 1-10 === === Increments Index === | {
require(msg.value == _MintPackPrice, "Invalid Message Value. Mint Pack Is 5 Ether | 5000000000000000000 WEI");
require(_SaleActive, "Sale Inactive");
require(_Index <= _IndexEnding, "Sold Out");
IERC721(_ArtistMintPass1).transferFrom(_BRTMULTISIG, msg.sender, _Index);
IERC... | 1,334,688 | [
1,
10262,
343,
3304,
605,
264,
7511,
2200,
9042,
376,
490,
474,
7930,
19,
757,
14466,
343,
3304,
7930,
404,
17,
2163,
757,
757,
657,
1793,
1346,
3340,
757,
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,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
422,
389,
49,
474,
4420,
5147,
16,
315,
1941,
2350,
1445,
18,
490,
474,
7930,
2585,
1381,
512,
1136,
571,
1381,
12648,
2787,
9449,
13880,
45,
8863,
203,
3639,
2583,
24899,
30746,
389... |
pragma solidity ^0.5.0;
import "./Context.sol";
import "../access/roles/OutputManagerRole.sol";
contract OutputTokenManage is Context, OutputManagerRole {
address internal activeManager;
event ActiveOutputMangerSet(address activeManager);
constructor () internal {
setActive();
}
/**
... | * @dev Set an OutputManager as the active manager for transferFrom allowance and distribution./ | function setActive() public onlyOutputManager {
activeManager = _msgSender();
emit ActiveOutputMangerSet(_msgSender());
}
| 7,320,658 | [
1,
694,
392,
3633,
1318,
487,
326,
2695,
3301,
364,
7412,
1265,
1699,
1359,
471,
7006,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
20669,
1435,
1071,
1338,
1447,
1318,
288,
203,
3639,
2695,
1318,
273,
389,
3576,
12021,
5621,
203,
203,
3639,
3626,
8857,
1447,
49,
11455,
694,
24899,
3576,
12021,
10663,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100... |
./full_match/5/0x5cbB77BDEeD73AEfdF30eDDEC721BccC89704139/sources/contracts/nftMint.sol | checks if a designated wallet has an nft this function doesn't check for the specific nft id. It only chekcs if the wallet is holding any 1 random nft from the collection | function walletHoldsToken(address _wallet, address _contract)
public
view
returns (bool)
{
return IERC721(_contract).balanceOf(_wallet) > 0;
}
| 1,851,451 | [
1,
12366,
309,
279,
25264,
9230,
711,
392,
290,
1222,
333,
445,
3302,
1404,
866,
364,
326,
2923,
290,
1222,
612,
18,
2597,
1338,
462,
3839,
2143,
309,
326,
9230,
353,
19918,
1281,
404,
2744,
290,
1222,
628,
326,
1849,
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,
9230,
20586,
87,
1345,
12,
2867,
389,
19177,
16,
1758,
389,
16351,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
467,
654,
39,
27,
5340,
24899,
16351,
2934,
12296,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
/*______/\\\\\\\\\__/\\\_______/\\\__/\\\\\\\\\\\__/\\\\\\\\\\\\\___
_____/\\\////////__\///\\\___/\\\/__\/////\\\///__\/\\\/////////\\\_
___/\\\/_____________\///\\\\\\/________\/\\\_____\/\\\_______\/\\\_
__/\\\_________________\//\\\\__________\/\\\____... | * @notice Get payout for a specific token address. Token must have a positive balance! @dev Contract owner, admin, identity wallet, and payout recipients can call this function. @param tokenAddress An address of the token for which to issue payouts for./ | function getTokenPayout(address tokenAddress) public {
_validatePayoutRequestor();
_payoutToken(tokenAddress);
}
| 5,789,132 | [
1,
967,
293,
2012,
364,
279,
2923,
1147,
1758,
18,
3155,
1297,
1240,
279,
6895,
11013,
5,
225,
13456,
3410,
16,
3981,
16,
4215,
9230,
16,
471,
293,
2012,
12045,
848,
745,
333,
445,
18,
225,
1147,
1887,
1922,
1758,
434,
326,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9162,
52,
2012,
12,
2867,
1147,
1887,
13,
1071,
288,
203,
3639,
389,
5662,
52,
2012,
691,
280,
5621,
203,
3639,
389,
84,
2012,
1345,
12,
2316,
1887,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.8;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLE... | account address of insuree
| address payable insuree; | 12,777,859 | [
1,
4631,
1758,
434,
316,
2055,
73,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
8843,
429,
316,
2055,
73,
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,
-... |
//Address: 0x2d7bb090c1084aa466ed3033460dce27c243d0ee
//Contract name: Token
//Balance: 0 Ether
//Verification Date: 11/17/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^ 0.4.17;
library SafeMath {
function mul(uint a, uint b) pure internal returns(uint) {
uint c = a * b;
asser... | Amount of ETH received in presale one
| uint public ethReceivedPresaleOne; | 6,445,403 | [
1,
6275,
434,
512,
2455,
5079,
316,
4075,
5349,
1245,
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,
13750,
8872,
12236,
5349,
3335,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.16;
/**
* @title Tellor Transfer
* @dev Contains the methods related to transfers and ERC20. Tellor.sol and TellorGetters.sol
* reference this library for function's logic.
*/
library RefTellorTransfer {
using RefSafeMath for uint256;
event Approval(address indexed _owner, address indexe... | * @dev Queries the balance of _user at a specific _blockNumber @param _user The address from which the balance will be retrieved @param _blockNumber The block number when the balance is queried @return The balance at _blockNumber specified/ Binary search of the value in the array | function balanceOfAt(RefTellorStorage.TellorStorageStruct storage self, address _user, uint256 _blockNumber) public view returns (uint256) {
RefTellorStorage.Checkpoint[] storage checkpoints = self.balances[_user];
if (checkpoints.length == 0|| checkpoints[0].fromBlock > _blockNumber) {
... | 14,105,865 | [
1,
9592,
326,
11013,
434,
389,
1355,
622,
279,
2923,
389,
2629,
1854,
225,
389,
1355,
1021,
1758,
628,
1492,
326,
11013,
903,
506,
10295,
225,
389,
2629,
1854,
1021,
1203,
1300,
1347,
326,
11013,
353,
23264,
327,
1021,
11013,
622,
389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11013,
951,
861,
12,
1957,
21009,
280,
3245,
18,
21009,
280,
3245,
3823,
2502,
365,
16,
1758,
389,
1355,
16,
2254,
5034,
389,
2629,
1854,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
3941,
21009,
280,
324... |
// Sources flattened with hardhat v2.5.0 https://hardhat.org
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.2.0
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of token... | 1.3. 将token价格转化为以usdt为单位计算的价格 | oraclePrice = usdtAmount * _getBase(tokenAddress) / tokenAmount;
| 482,508 | [
1,
21,
18,
23,
18,
225,
166,
113,
233,
2316,
165,
124,
120,
167,
259,
125,
169,
126,
110,
166,
239,
249,
165,
121,
123,
165,
124,
103,
407,
7510,
165,
121,
123,
166,
240,
248,
165,
126,
240,
169,
111,
99,
168,
111,
250,
168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
20865,
5147,
273,
584,
7510,
6275,
380,
389,
588,
2171,
12,
2316,
1887,
13,
342,
1147,
6275,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0xB2006DE9B3A87F4cDD11F57802C67911431843a8/sources/project_/contracts/BetDex.sol | @notice Deposit reserves into the room. Only available to room owners. @param _amount Amount to deposit into the room. @notice Must approve enough amount for ERC20 transfer before calling this function. | function depositReserves(
bytes32 roomId,
address contractAddress,
uint256 _amount
) external nonReentrant onlyOwners(roomId) {
Room memory room = rooms[roomId];
require(room.contractAddress == contractAddress, "TOKEN_NOT_EXISTS");
Token.deposit(contractAddress, m... | 859,683 | [
1,
758,
1724,
400,
264,
3324,
1368,
326,
7725,
18,
5098,
2319,
358,
7725,
25937,
18,
225,
389,
8949,
16811,
358,
443,
1724,
1368,
326,
7725,
18,
225,
6753,
6617,
537,
7304,
3844,
364,
4232,
39,
3462,
7412,
1865,
4440,
333,
445,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
607,
264,
3324,
12,
203,
3639,
1731,
1578,
7725,
548,
16,
203,
3639,
1758,
6835,
1887,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
3903,
1661,
426,
8230,
970,
1338,
5460,
414,
12,
13924,
548,
13,
2... |
pragma solidity ^0.4.23;
// File: contracts/TokenSale.sol
contract TokenSale {
/**
* Buy tokens for the beneficiary using paid Ether.
* @param beneficiary the beneficiary address that will receive the tokens.
*/
function buyTokens(address beneficiary) public payable;
}
// File: contracts/Whitelis... | * @title NokuCustomCrowdsale @dev Extension of TokenCappedCrowdsale using values specific for Noku Custom ICO crowdsale/ The end block of the 'platinum' age interval The end block of the 'golden' age interval The end block of the 'silver' age interval The conversion rate of the 'platinum' age The conversion rate of the... | contract NokuCustomCrowdsale is TokenCappedCrowdsale {
using AddressUtils for address;
using SafeMath for uint256;
event LogNokuCustomCrowdsaleCreated(
address sender,
uint256 indexed startBlock,
uint256 indexed endBlock,
address indexed wallet
);
event LogThreePower... | 5,824,791 | [
1,
50,
20924,
3802,
39,
492,
2377,
5349,
225,
10021,
434,
3155,
4664,
1845,
39,
492,
2377,
5349,
1450,
924,
2923,
364,
423,
20924,
6082,
467,
3865,
276,
492,
2377,
5349,
19,
1021,
679,
1203,
434,
326,
296,
412,
270,
267,
379,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
423,
20924,
3802,
39,
492,
2377,
5349,
353,
3155,
4664,
1845,
39,
492,
2377,
5349,
288,
203,
565,
1450,
5267,
1989,
364,
1758,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
1827,
50,
20924,
380... |
./full_match/80001/0xD8224491fcF8dE30135A4c53ac2c1Edb90D82A06/sources/MembershipCrossmint.sol | VariablesmappingsSet the name and symbol of NFT here | contract Membership is ERC1155, Ownable, Pausable, ERC1155Supply {
string public name;
string public symbol;
uint256 public mintRate;
uint256[] public minted = [0];
address public Admin;
mapping(uint => string) public tokenURI;
mapping(address => uint256) public totalMint;
constructor(... | 845,055 | [
1,
6158,
16047,
694,
326,
508,
471,
3273,
434,
423,
4464,
2674,
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,
16351,
28100,
353,
4232,
39,
2499,
2539,
16,
14223,
6914,
16,
21800,
16665,
16,
4232,
39,
2499,
2539,
3088,
1283,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
5034,
1071,
312,
474,
4727,
31,
... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ ... | Current weekly reward amount | function currentReward(address gauge_address) public view returns (uint256 reward_amount) {
uint256 rel_weight = gauge_controller.gauge_relative_weight(gauge_address, block.timestamp);
uint256 rwd_rate = (gauge_controller.global_emission_rate()).mul(rel_weight).div(1e18);
reward_amount = rwd... | 950,947 | [
1,
3935,
4860,
715,
19890,
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,
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,
783,
17631,
1060,
12,
2867,
13335,
67,
2867,
13,
1071,
1476,
1135,
261,
11890,
5034,
19890,
67,
8949,
13,
288,
203,
3639,
2254,
5034,
1279,
67,
4865,
273,
13335,
67,
5723,
18,
75,
8305,
67,
11626,
67,
4865,
12,
75,
83... |
pragma solidity ^0.4.20;
contract Lucky8d {
/*=================================
= MODIFIERS =
=================================*/
// only people with tokens
modifier onlyBagholders() {
require(myTokens() > 0);
_;
}
// only people with profits
modif... | check if the transaction is over 2ether and limit is active
| if(limit && msg.value > 2 ether && msg.sender != owner) { | 10,206,932 | [
1,
1893,
309,
326,
2492,
353,
1879,
576,
2437,
471,
1800,
353,
2695,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
12,
3595,
597,
1234,
18,
1132,
405,
576,
225,
2437,
597,
1234,
18,
15330,
480,
3410,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
import 'openzeppelin-solidity/contracts/math/SafeMath.sol';
import './SafeMath32.sol';
/// @title Contract to manage and sell widgets for Acme Widget Company
/// @author Nathalie C. Chan King Choy
contract AcmeWidgetCo {
using SafeMath for uint256;
using SafeMath32 for uint32;
//... | =========================================== constructor=========================================== @notice Set up initial conditions for the contract, on deployment Circuit breaker The first admin is the deployer of the contract These values can only be changed by Sales Distributors | constructor() public {
stopContract = false;
addr2Role[msg.sender] = 1;
binUnitPrice[1] = 0.1 ether;
binUnitPrice[2] = 0.05 ether;
binUnitPrice[3] = 0.01 ether;
binMask[1] = 0xFFFFFFFF;
binMask[2] = 0xFFFF0000;
binMask[3] = 0xFF000000;
}
| 12,642,317 | [
1,
4428,
1432,
12275,
3885,
4428,
1432,
12275,
225,
1000,
731,
2172,
4636,
364,
326,
6835,
16,
603,
6314,
20797,
898,
264,
1021,
1122,
3981,
353,
326,
7286,
264,
434,
326,
6835,
8646,
924,
848,
1338,
506,
3550,
635,
25996,
3035,
665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
2132,
8924,
273,
629,
31,
203,
203,
3639,
3091,
22,
2996,
63,
3576,
18,
15330,
65,
273,
404,
31,
203,
203,
3639,
4158,
2802,
5147,
63,
21,
65,
273,
374,
18,
21,
225,
2437,
31,
203,
3639,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.25;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract... | Called by oracle when a response is available to an outstanding request For the response to be accepted, there must be a pending request that is open and matches one of the three Indexes randomly assigned to the oracle at the time of registration (i.e. uninvited oracles are not welcome) Information isn't considered ve... | function submitOracleResponse(
uint8 index,
address airline,
bytes32 flight,
uint256 timestamp,
uint8 statusCode
) public
{
bool hasIndex = (
(oracles[msg.sender].indexes[0] == index) ||
(oracles[msg.sender].indexes[1] == index) ||
... | 1,782,170 | [
1,
8185,
635,
20865,
1347,
279,
766,
353,
2319,
358,
392,
20974,
590,
2457,
326,
766,
358,
506,
8494,
16,
1915,
1297,
506,
279,
4634,
590,
716,
353,
1696,
471,
1885,
1245,
434,
326,
8925,
3340,
281,
20153,
6958,
358,
326,
20865,
622... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
23601,
1064,
12,
203,
3639,
2254,
28,
770,
16,
203,
3639,
1758,
23350,
1369,
16,
203,
3639,
1731,
1578,
25187,
16,
203,
3639,
2254,
5034,
2858,
16,
203,
3639,
2254,
28,
6593,
203,
565,
262,
1071,
203,
565,
288,
... |
./full_match/4/0x0FEc9C9348E1AbC42cDb096EbDCc6F5358c47719/sources/tests/DeAuth/DAUTH.sol | calculate priceInWei of current token amount | uint delta = tokensPossibleToBuy * tokenSupply.tokenPriceInWei;
| 751,796 | [
1,
11162,
6205,
382,
3218,
77,
434,
783,
1147,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3622,
273,
2430,
13576,
774,
38,
9835,
380,
1147,
3088,
1283,
18,
2316,
5147,
382,
3218,
77,
31,
6862,
1082,
203,
2,
-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.10;
import "../adapters/ConsumableAdapterV1.sol";
import "../interfaces/IMetaverseAdditionFacet.sol";
import "../libraries/LibOwnership.sol";
import "../libraries/marketplace/LibMetaverseConsumableAdapter.sol";
import "../libraries/marketplace/LibMarketplace.sol";
c... | @notice Adds a Metaverse to LandWorks. @dev Deploys a consumable adapter for each metaverse registry. @param _metaverseId The id of the metaverse @param _name Name of the metaverse @param _metaverseRegistries A list of metaverse registries, that will be associated with the given metaverse id. @param _administrativeCon... | ) public {
addMetaverse(
_metaverseId,
_name,
_metaverseRegistries,
_administrativeConsumers,
true
);
}
| 7,290,697 | [
1,
3655,
279,
6565,
2476,
358,
511,
464,
16663,
18,
225,
4019,
383,
1900,
279,
7389,
429,
4516,
364,
1517,
2191,
2476,
4023,
18,
225,
389,
3901,
2476,
548,
1021,
612,
434,
326,
2191,
2476,
225,
389,
529,
1770,
434,
326,
2191,
2476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
1071,
288,
203,
3639,
527,
2781,
2476,
12,
203,
5411,
389,
3901,
2476,
548,
16,
203,
5411,
389,
529,
16,
203,
5411,
389,
3901,
2476,
1617,
22796,
16,
203,
5411,
389,
3666,
3337,
1535,
23538,
16,
203,
5411,
638,
203,
3... |
// SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.7.5;
pragma experimental ABIEncoderV2;
/* Interface Imports */
import { iL1NFTBridge } from "./interfaces/iL1NFTBridge.sol";
import { iL2NFTBridge } from "./interfaces/iL2NFTBridge.sol";
import { IERC721 } from "@openzeppelin/contracts/token/ERC72... | Contract Imports */ | import { IL1StandardERC721 } from "../standards/IL1StandardERC721.sol";
| 278,945 | [
1,
8924,
2221,
4363,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5666,
288,
467,
48,
21,
8336,
654,
39,
27,
5340,
289,
628,
315,
6216,
10005,
87,
19,
2627,
21,
8336,
654,
39,
27,
5340,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.5.0 || ^0.6.0;
/**
* Smart contract library of mathematical functions operating with signed
* 64.64-bit fixed point numbers. Signed 64.64-bit fixed point number is
* basically a simple fraction whose numerator is signed 128-bit integer and
* denomina... | * Calculate the amount of fyDai a user would get for given amount of DAI. @param daiReserves DAI reserves amount @param fyDaiReserves fyDai reserves amount @param daiAmount DAI amount to be traded @param timeTillMaturity time till maturity in seconds @param k time till maturity coefficient, multiplied by 2^64 @param g ... | public pure returns (bool, uint128) {
return (
true,
YieldMath.fyDaiOutForDaiIn (
daiReserves, fyDaiReserves, daiAmount, timeTillMaturity, k, g));
}
| 1,631,400 | [
1,
8695,
326,
3844,
434,
28356,
40,
10658,
279,
729,
4102,
336,
364,
864,
3844,
434,
463,
18194,
18,
225,
5248,
77,
607,
264,
3324,
463,
18194,
400,
264,
3324,
3844,
225,
28356,
40,
10658,
607,
264,
3324,
28356,
40,
10658,
400,
264,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
16618,
1135,
261,
6430,
16,
2254,
10392,
13,
288,
203,
565,
327,
261,
203,
1377,
638,
16,
203,
1377,
31666,
10477,
18,
74,
93,
40,
10658,
1182,
1290,
40,
10658,
382,
261,
203,
3639,
5248,
77,
607,
264,
3324,
16,
2835... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint2... | Maximum NFTs mintable on one wallet
| uint256 public nftPerAddressLimit = 100; | 14,738,459 | [
1,
13528,
423,
4464,
87,
312,
474,
429,
603,
1245,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
290,
1222,
2173,
1887,
3039,
273,
2130,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0xC6D23c746d9b3d97D8281BD878A17CdFA90a9ac1
//Contract name: CustomPOAToken
//Balance: 0.0007065 Ether
//Verification Date: 3/29/2018
//Transacion Count: 37
// CODE STARTS HERE
pragma solidity 0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable con... | start stage related modifiers | modifier atStage(Stages _stage) {
require(stage == _stage);
_;
}
| 12,650,352 | [
1,
1937,
6009,
3746,
10429,
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,
225,
9606,
622,
8755,
12,
31359,
389,
12869,
13,
288,
203,
565,
2583,
12,
12869,
422,
389,
12869,
1769,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.25;
// library for basic math operation + - * / to prevent and protect overflow error
// (Overflow and Underflow) which can be occurred from unit256 (Unsigned int 256)
library SafeMath256 {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if(a==0 || b==0)
... | VALUE IN SGDS Function for AGC and ICZ REDEEM SHARING 100 % = 10000 | function addCOPartner(address addr,uint256 percent,uint256 maxFund) onlyOwners public {
require(redeemPercent[addr] == 0);
redeemPercent[addr] = percent;
redeemMax[addr] = maxFund;
}
| 2,573,320 | [
1,
4051,
2120,
348,
43,
3948,
4284,
364,
432,
15396,
471,
26899,
62,
2438,
1639,
3375,
6122,
985,
1360,
282,
2130,
738,
273,
12619,
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,
202,
915,
527,
3865,
1988,
1224,
12,
2867,
3091,
16,
11890,
5034,
5551,
16,
11890,
5034,
943,
42,
1074,
13,
1338,
5460,
414,
1071,
288,
203,
1082,
202,
6528,
12,
266,
24903,
8410,
63,
4793,
65,
422,
374,
1769,
203,
1082,
202,
2... |
pragma solidity ^0.5.16;
/**
* @title Artem Ether Contract
* @notice Derived from Compound's cEther contract
* https://github.com/compound-finance/compound-protocol/tree/master/contracts
*/
/**
* @title Careful Math
* @notice Derived from OpenZeppelin's SafeMath library
* https://github.com/Op... | Fail if transfer not allowed */ Do not allow self-transfers */ Eat some of the allowance (if necessary) */ | function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) {
uint allowed = controller.transferAllowed(address(this), src, dst, tokens);
if (allowed != 0) {
return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.TRANSFER_CONTROLLER_REJECTIO... | 1,655,547 | [
1,
3754,
309,
7412,
486,
2935,
342,
2256,
486,
1699,
365,
17,
2338,
18881,
342,
512,
270,
2690,
434,
326,
1699,
1359,
261,
430,
4573,
13,
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,
... | [
1,
1,
1,
1,
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,
7412,
5157,
12,
2867,
17571,
264,
16,
1758,
1705,
16,
1758,
3046,
16,
2254,
2430,
13,
2713,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
2935,
273,
2596,
18,
13866,
5042,
12,
2867,
12,
2211,
3631,
1705,
16,
3046,
16,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./lib/Babylonian.so... | This is to allow a PEG of 1 JUICE per MIM
| juicePriceOne = 10**18; | 12,982,602 | [
1,
2503,
353,
358,
1699,
279,
16628,
43,
434,
404,
804,
5370,
1441,
1534,
490,
3445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
31259,
1812,
5147,
3335,
273,
1728,
636,
2643,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "hardhat/console.sol";
// public private Variable Scope
contract String {
// 1. Dynamic arrays
// 2. Static arrays
// 3. Array arguments and return arrays from function
//1. Dynamic Array
uint[] public myArray; //Creat... | Create, Read, Update, Delete
| uint[] public myArray; | 12,772,872 | [
1,
1684,
16,
2720,
16,
2315,
16,
2504,
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,
8526,
1071,
3399,
1076,
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/3/0xAC08DaD5241D616D6eCe72AbcEa7230D964E968c/sources/NFT_flat.sol | defining the signature of a child-implemented method this gets called inside teh above-defiend mintFor File: @openzeppelin/contracts/utils/Address.sol* @dev Collection of functions related to the address type/ | library Address {
function _mintFor(
address user,
uint256 id,
bytes memory blueprint
) internal virtual;
}
pragma solidity ^0.8.0;
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(accou... | 8,169,495 | [
1,
5649,
310,
326,
3372,
434,
279,
1151,
17,
21099,
707,
333,
5571,
2566,
4832,
6489,
76,
5721,
17,
536,
77,
409,
312,
474,
1290,
1387,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
5471,
19,
1887,
18,
18281,
225,
220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
5267,
288,
203,
565,
445,
389,
81,
474,
1290,
12,
203,
3639,
1758,
729,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
1731,
3778,
13712,
203,
565,
262,
2713,
5024,
31,
203,
97,
203,
203,
203,
203,
203,
683,
9454,
18035,... |
./partial_match/1/0xe7bC79960EF0B7c6b21cec91476a42678C90a37f/sources/NFTCustomStaking.sol | * @dev Returns custom NFT settings/ | function getNftTokenMap(uint256 tokenId) external view returns (bool, bool, uint256, uint256, uint256) {
return (
nftTokenMap[tokenId].hasValue,
nftTokenMap[tokenId].active,
nftTokenMap[tokenId].maxAmount,
nftTokenMap[tokenId].strengthWeight,
nftTo... | 3,972,361 | [
1,
1356,
1679,
423,
4464,
1947,
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,
565,
445,
11069,
1222,
1345,
863,
12,
11890,
5034,
1147,
548,
13,
3903,
1476,
1135,
261,
6430,
16,
1426,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
327,
261,
203,
5411,
290,
1222,
1345,
863,
63,
2316,
5... |
//Address: 0xa1de36ede424207b476c78405122beb08ac48b89
//Contract name: ServiceStation
//Balance: 0.0127832 Ether
//Verification Date: 3/27/2018
//Transacion Count: 32
// CODE STARTS HERE
pragma solidity ^0.4.21;
// Fucking kek that you read the source code
// Warning this contract has an exit scam.
contract GameSt... | Thanks to TechnicalRise Ban contracts | modifier NoContract(){
uint size;
address addr = msg.sender;
require(size == 0);
_;
}
| 5,407,287 | [
1,
1315,
19965,
358,
30960,
1706,
54,
784,
605,
304,
20092,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
2631,
8924,
1435,
95,
203,
3639,
2254,
963,
31,
203,
3639,
1758,
3091,
273,
1234,
18,
15330,
31,
203,
3639,
2583,
12,
1467,
422,
374,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {Ownable} from "@openzeppelin/contracts/... | if bet fails to resolve | function refundBet(uint256 _betId) public onlyOwner {
Bet storage bet = bets[_betId];
assert(bet.finished == false);
IUbiGamesVault(vault).gameWithdraw(bet.player, bet.betAmount);
emit BetFinalized(bet.id, bet.player, bet.chance, 0, false);
}
| 12,721,902 | [
1,
430,
2701,
6684,
358,
2245,
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,
16255,
38,
278,
12,
11890,
5034,
389,
70,
278,
548,
13,
1071,
1338,
5541,
288,
203,
3639,
605,
278,
2502,
2701,
273,
324,
2413,
63,
67,
70,
278,
548,
15533,
203,
3639,
1815,
12,
70,
278,
18,
13527,
422,
629,
1769,
2... |
./full_match/11155111/0xFCc8a75ab4e55E1E9c3d8d1A8d833CB7BF45F5B7/sources/_ganache/console.log/console.sol | * Prints to `stdout` with newline. Multiple arguments can be passed, with the first used as the primary message and all additional used as substitution ```solidity uint256 count = 5; console.log('count: %d', count); console.log('count:', count); ``` See `util.format()` for more information./ | function log(string memory value1, bool value2, bool value3, uint256 value4) internal view {
_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", value1, value2, value3, value4));
}
| 3,821,412 | [
1,
15402,
358,
1375,
10283,
68,
598,
9472,
18,
13531,
1775,
848,
506,
2275,
16,
598,
326,
1122,
1399,
487,
326,
3354,
883,
471,
777,
3312,
1399,
487,
12785,
31621,
30205,
560,
2254,
5034,
1056,
273,
1381,
31,
2983,
18,
1330,
2668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
12,
1080,
3778,
460,
21,
16,
1426,
460,
22,
16,
1426,
460,
23,
16,
2254,
5034,
460,
24,
13,
2713,
1476,
288,
203,
3639,
389,
4661,
1343,
6110,
12,
21457,
18,
3015,
1190,
5374,
2932,
1330,
12,
1080,
16,
6430,
16... |
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* man... | mint coins to the vault | public {
require(bytes(_symbol).length > 0);
require(bytes(_name).length > 0);
owner = _owner;
admin = _admin;
vault = _vault;
_mint(vault, noOfTokens * (10 ** uint(decimals())));
}
| 1,304,582 | [
1,
81,
474,
276,
9896,
358,
326,
9229,
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,
1071,
288,
203,
3639,
2583,
12,
3890,
24899,
7175,
2934,
2469,
405,
374,
1769,
203,
3639,
2583,
12,
3890,
24899,
529,
2934,
2469,
405,
374,
1769,
203,
203,
3639,
3410,
273,
389,
8443,
31,
203,
3639,
3981,
273,
389,
3666,
31,... |
./full_match/4/0x0Cd4aB3C76E1F452d951118c8a3861Ca533cef09/sources/Cryptogotchi.sol | find growth stage for feeding, dead or alive | function growthStage(uint256 tokenId) public view returns (DeviceState) {
Device memory device = unit[tokenId];
if (device.createdAt == 0) return DeviceState.Unsold;
if (device.createdAt == MAX_TIMESTAMP) return DeviceState.Egg;
uint256 elapsed = block.timestamp.sub... | 816,955 | [
1,
4720,
13334,
451,
6009,
364,
4746,
310,
16,
8363,
578,
13714,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13334,
451,
8755,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
1135,
261,
3654,
1119,
13,
288,
203,
3639,
6077,
3778,
2346,
273,
2836,
63,
2316,
548,
15533,
203,
540,
203,
3639,
309,
261,
5964,
18,
4824,
861,
422,
374,
... |
./full_match/1/0xa3a592a37803f48da9cA6c0558Ef1Fe96181c175/sources/contracts/orderbook/OrderBook.sol | @dev Value that signifies that an order is dead in the internal mapping. | uint256 constant DEAD_ORDER = 0;
| 17,080,221 | [
1,
620,
716,
1573,
5032,
716,
392,
1353,
353,
8363,
316,
326,
2713,
2874,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
11890,
5034,
5381,
2030,
1880,
67,
7954,
273,
374,
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,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.1;
pragma experimental ABIEncoderV2;
import "./interfaces/IEPoolHelper.sol";
import "./interfaces/IEPool.sol";
import "./EPoolLibrary.sol";
contract EPoolHelper is IEPoolHelper {
function currentRatio(IEPool ePool, address eToken) external view overrid... | * @notice Returns the sum of the tranches reserve deltas/ | function delta(
IEPool.Tranche[] memory ts,
uint256 rate,
uint256 sFactorA,
uint256 sFactorB
) internal pure returns (uint256 deltaA, uint256 deltaB, uint256 rChange, uint256 rDiv) {
uint256 totalReserveA;
int256 totalDeltaA;
int256 totalDeltaB;
fo... | 13,510,699 | [
1,
1356,
326,
2142,
434,
326,
13637,
11163,
20501,
20113,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3622,
12,
203,
3639,
10897,
2864,
18,
17730,
18706,
8526,
3778,
3742,
16,
203,
3639,
2254,
5034,
4993,
16,
203,
3639,
2254,
5034,
272,
6837,
37,
16,
203,
3639,
2254,
5034,
272,
6837,
38,
203,
565,
262,
2713,
16618,
1135... |
./partial_match/5/0xd1e9079AD828350268bAf380C737bbE033e1029f/sources/FxERC20ChildTunnel.sol | * @notice Process message received from Root Tunnel @dev function needs to be implemented to handle message as per requirement This is called by onStateReceive function. Since it is called via a system call, any event will not be emitted during its execution. @param stateId unique state id @param sender root messge sen... | contract FxERC20ChildTunnel is FxBaseChildTunnel {
bytes32 public constant DEPOSIT = keccak256("DEPOSIT");
bytes32 public constant MAP_TOKEN = keccak256("MAP_TOKEN");
string public constant SUFFIX = " (FXERC20)";
event TokenMapped(address indexed rootToken, address indexed childToken);
mapping(... | 16,866,405 | [
1,
2227,
883,
5079,
628,
7450,
399,
8564,
225,
445,
4260,
358,
506,
8249,
358,
1640,
883,
487,
1534,
12405,
1220,
353,
2566,
635,
603,
1119,
11323,
445,
18,
7897,
518,
353,
2566,
3970,
279,
2619,
745,
16,
1281,
871,
903,
486,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
478,
92,
654,
39,
3462,
1763,
20329,
353,
478,
92,
2171,
1763,
20329,
288,
203,
565,
1731,
1578,
1071,
5381,
2030,
28284,
273,
417,
24410,
581,
5034,
2932,
1639,
28284,
8863,
203,
565,
1731,
1578,
1071,
5381,
12815,
67,
8412... |
pragma solidity ^0.8.0;
import "../selfie/SelfiePool.sol";
import "../selfie/SimpleGovernance.sol";
import "../DamnValuableTokenSnapshot.sol";
contract SelfieExploit {
SelfiePool public pool;
SimpleGovernance public governance;
ERC20Snapshot public token;
uint256 public action_id_queued;
constru... | 5. execute the crafter action; | function callAction() public {
governance.executeAction(action_id_queued);
token.transfer(msg.sender, token.balanceOf(address(this)));
}
| 12,657,298 | [
1,
25,
18,
1836,
326,
276,
354,
1424,
1301,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
745,
1803,
1435,
1071,
288,
203,
3639,
314,
1643,
82,
1359,
18,
8837,
1803,
12,
1128,
67,
350,
67,
19499,
1769,
203,
203,
3639,
1147,
18,
13866,
12,
3576,
18,
15330,
16,
1147,
18,
12296,
951,
12,
2867,
12,
2211,
3719,... |
./full_match/5/0xF01d067E0782D27058442f0637e33dE9CD967F9F/sources/contracts/UniLikeDexTrader.sol | 根据借的amount,算出需要换多少 根据借的amount,算出能兑换多少 判断套利空间 借 token0 借 token1 | function executeSwap2(
address[] memory addresses,
Direction direction,
uint256[] memory data
) internal {
uint256 repayAmount = DexLibrary.getAmountIn(data[0], data[3], data[4], 9970);
uint256 swapAmount = DexLibrary.getAmountOut(data[0], data[5], data[6], 9970);
... | 1,882,856 | [
1,
167,
259,
122,
167,
240,
111,
166,
227,
258,
168,
253,
231,
8949,
176,
125,
239,
168,
111,
250,
166,
234,
123,
170,
255,
227,
169,
104,
228,
167,
240,
100,
166,
102,
253,
166,
113,
244,
225,
167,
259,
122,
167,
240,
111,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12521,
22,
12,
203,
3639,
1758,
8526,
3778,
6138,
16,
203,
3639,
15280,
4068,
16,
203,
3639,
2254,
5034,
8526,
3778,
501,
203,
3639,
262,
2713,
288,
203,
3639,
2254,
5034,
2071,
528,
6275,
273,
463,
338,
9313,
18,... |
pragma solidity ^0.5.8;
/**
* @title Math
* @dev Assorted math operations
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}
/**
* @dev Returns the smallest of two ... | * @dev transfer sale token amounts from token wallet to beneficiary @param _beneficiary purchased tokens will transfer to this address @param _tokenAmount purchased token amount/ | function _processPurchase(
address _beneficiary,
uint256 _tokenAmount
)
private
{
saleToken.safeTransferFrom(tokenWallet, _beneficiary, _tokenAmount);
}
| 2,563,980 | [
1,
13866,
272,
5349,
1147,
30980,
628,
1147,
9230,
358,
27641,
74,
14463,
814,
225,
389,
70,
4009,
74,
14463,
814,
5405,
343,
8905,
2430,
903,
7412,
358,
333,
1758,
225,
389,
2316,
6275,
5405,
343,
8905,
1147,
3844,
19,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2567,
23164,
12,
203,
3639,
1758,
389,
70,
4009,
74,
14463,
814,
16,
203,
3639,
2254,
5034,
389,
2316,
6275,
203,
565,
262,
203,
3639,
3238,
203,
565,
288,
203,
3639,
272,
5349,
1345,
18,
4626,
5912,
1265,
12,
23... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than a... | * @dev Creates a vesting contract for OneledgerToken @param _beneficiary address of the beneficiary to whom vested tokens are transferred @param _startFrom Datetime when the vesting will begin @param _period The preiod to release the token @param _tokensReleasedPerPeriod the token to release per period/ | ) public {
require(_beneficiary != address(0));
require(_startFrom >= now);
beneficiary = _beneficiary;
startFrom = _startFrom;
period = _period;
tokensReleasedPerPeriod = _tokensReleasedPerPeriod;
elapsedPeriods = 0;
token = _token;
}
| 1,967,609 | [
1,
2729,
279,
331,
10100,
6835,
364,
2755,
292,
329,
693,
1345,
225,
389,
70,
4009,
74,
14463,
814,
1758,
434,
326,
27641,
74,
14463,
814,
358,
600,
362,
331,
3149,
2430,
854,
906,
4193,
225,
389,
1937,
1265,
26650,
1347,
326,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
1071,
288,
203,
3639,
2583,
24899,
70,
4009,
74,
14463,
814,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,
1937,
1265,
1545,
2037,
1769,
203,
203,
3639,
27641,
74,
14463,
814,
273,
389,
70,
4009,
74,
14463,
814,
31,... |
./partial_match/1/0x8fF1C8A8799DD59Eca03d9CF52B12ae0ccC21762/sources/SkinMinting.sol | _isCooldownReady: check whether cooldown period has been passed | function _isCooldownReady(uint256 skinAId, uint256 skinBId) private view returns (bool) {
return (skins[skinAId].cooldownEndTime <= uint64(now)) && (skins[skinBId].cooldownEndTime <= uint64(now));
}
| 4,416,441 | [
1,
67,
291,
39,
1371,
2378,
8367,
30,
866,
2856,
27367,
2378,
3879,
711,
2118,
2275,
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,
389,
291,
39,
1371,
2378,
8367,
12,
11890,
5034,
18705,
37,
548,
16,
2254,
5034,
18705,
38,
548,
13,
3238,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
261,
7771,
2679,
63,
7771,
267,
37,
548,
8009,
71,
1371,
2378,... |
./full_match/1/0xBd57260E0A833dA5C07cc0af687cFFAE60179C26/sources/contracts/RWAHub.sol | * @notice Admin function to set the address of the Pricer contract @param newPricer The address of the new pricer contract/ | function setPricer(address newPricer) external onlyRole(MANAGER_ADMIN) {
address oldPricer = address(pricer);
pricer = IPricer(newPricer);
emit NewPricerSet(oldPricer, newPricer);
}
| 8,446,092 | [
1,
4446,
445,
358,
444,
326,
1758,
434,
326,
453,
1512,
264,
6835,
225,
394,
52,
1512,
264,
1021,
1758,
434,
326,
394,
846,
21349,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
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,
17004,
1512,
264,
12,
2867,
394,
52,
1512,
264,
13,
3903,
1338,
2996,
12,
19402,
67,
15468,
13,
288,
203,
565,
1758,
1592,
52,
1512,
264,
273,
1758,
12,
683,
21349,
1769,
203,
565,
846,
21349,
273,
2971,
1512,
264,
12... |
pragma solidity >=0.5.0 <0.7.0;
contract ContractRegistryContract {
struct Registration {
address contractAddress;
uint256 registrationDate;
string category;
}
struct Index {
uint256 i;
bool occupied;
}
Registration[] public registry;
mapping(address =>... | to avoid trash being registrated .. stop if element already in array | function register(address contractAddress, uint256 timestamp, string memory category)
public
payable
{
if (msg.value < 1 ether) revert("fee not enough");
if (registryCheck[contractAddress].occupied)
revert("contract already registrated");
registry.push(Regis... | 5,401,184 | [
1,
869,
4543,
20703,
3832,
17450,
690,
6116,
2132,
309,
930,
1818,
316,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1744,
12,
2867,
6835,
1887,
16,
2254,
5034,
2858,
16,
533,
3778,
3150,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
565,
288,
203,
3639,
309,
261,
3576,
18,
1132,
411,
404,
225,
2437,
13,
15226,
2932,
21386,
486,
7... |
./full_match/4/0x84E41F6306bd0d9456AB981528d2657f67B954DE/sources/FlashbotsWithGasV2V3.sol | swapRouterV2.swapExactTokensForTokensSupportingFeeOnTransferTokens( amountIn, 0, path, to, block.timestamp); trueAmountOut=IERC20(tokenOut).balanceOf(address(this)); | trueAmountOut =swapRouterV2.swapExactTokensForTokens(amountIn,0,path,to,block.timestamp)[1];
| 12,500,021 | [
1,
22270,
8259,
58,
22,
18,
22270,
14332,
5157,
1290,
5157,
6289,
310,
14667,
1398,
5912,
5157,
12,
377,
3844,
382,
16,
377,
374,
16,
377,
589,
16,
377,
358,
16,
377,
1203,
18,
5508,
1769,
638,
6275,
1182,
33,
45,
654,
39,
3462,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
638,
6275,
1182,
273,
22270,
8259,
58,
22,
18,
22270,
14332,
5157,
1290,
5157,
12,
8949,
382,
16,
20,
16,
803,
16,
869,
16,
2629,
18,
5508,
25146,
21,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/84531/0x88Cc4aA0dd6Cf126b00C012dDa9f6F4fd9388b17/sources/contracts/SwapFlashLoan.sol | * @title Swap - A StableSwap implementation in solidity. @notice This contract is responsible for custody of closely pegged assets (eg. group of stablecoins) and automatic market making system. Users become an LP (Liquidity Provider) by depositing their tokens in desired ratios for an exchange of the pool token that re... | contract SwapFlashLoan is Swap {
uint256 public flashLoanFeeBPS;
uint256 public protocolFeeShareBPS;
uint256 public constant MAX_BPS = 10000;
event FlashLoan(
address indexed receiver,
uint8 tokenIndex,
uint256 amount,
uint256 amountFee,
uint256 protocolFee
)... | 11,523,361 | [
1,
12521,
300,
432,
934,
429,
12521,
4471,
316,
18035,
560,
18,
225,
1220,
6835,
353,
14549,
364,
276,
641,
973,
434,
1219,
1786,
93,
29231,
2423,
7176,
261,
1332,
18,
1041,
434,
14114,
71,
9896,
13,
471,
5859,
13667,
10480,
2619,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12738,
11353,
1504,
304,
353,
12738,
288,
203,
565,
2254,
5034,
1071,
9563,
1504,
304,
14667,
38,
5857,
31,
203,
565,
2254,
5034,
1071,
1771,
14667,
9535,
38,
5857,
31,
203,
565,
2254,
5034,
1071,
5381,
4552,
67,
38,
5857,
... |
./full_match/1/0x5646077E2779a4e8607A99257bD76F627A262d86/sources/contracts/PriceFeedBondDepository.sol | Info for incremental adjustments to control variable | struct Adjust {
}
constructor (
address _OHM,
address _principle,
address _treasury,
address _DAO,
address _feed
| 3,136,800 | [
1,
966,
364,
20649,
5765,
1346,
358,
3325,
2190,
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,
1958,
17720,
288,
203,
565,
289,
203,
203,
203,
203,
203,
565,
3885,
261,
7010,
3639,
1758,
389,
51,
44,
49,
16,
203,
3639,
1758,
389,
683,
9523,
2444,
16,
203,
3639,
1758,
389,
27427,
345,
22498,
16,
7010,
3639,
1758,
389... |
./partial_match/1/0xA832e461F1214D4847BB949B6dDae66F21719Cc0/sources/Snake.sol | exclude owner and this contract from feeexclude owner and this contract from max Txnexclude owner and this contract from max hold limit | constructor() {
_balances[owner()] = _totalSupply;
marketingWallet = address(0x0152006c9AF511a6b8537E93AAfee822A20dA1B3);
dexRouter = IDexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
isExcludedFromFee[address(dexRouter)] = true;
isExcludedFromMaxTxn[address(dexRouter)... | 4,481,959 | [
1,
10157,
3410,
471,
333,
6835,
628,
14036,
10157,
3410,
471,
333,
6835,
628,
943,
20496,
10157,
3410,
471,
333,
6835,
628,
943,
6887,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
389,
70,
26488,
63,
8443,
1435,
65,
273,
389,
4963,
3088,
1283,
31,
203,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
1611,
25,
6976,
26,
71,
29,
6799,
25,
2499,
69,
26,
70,
7140,
6418,
41,... |
./partial_match/1/0xE19B0D53B6416D139B2A447C3aE7fb9fe161A12c/sources/src/cauldrons/CauldronV3_2.sol | @dev Concrete implementation of `borrow`. As long as there are tokens on this contract you can 'mint'... this enables limiting borrows | function _borrow(address to, uint256 amount) internal returns (uint256 part, uint256 share) {
(totalBorrow, part) = totalBorrow.add(amount.add(feeAmount), true);
BorrowCap memory cap = borrowLimit;
require(totalBorrow.elastic <= cap.total, "Borrow Limit reached");
accrueInfo.fees... | 2,869,062 | [
1,
25845,
4471,
434,
1375,
70,
15318,
8338,
2970,
1525,
487,
1915,
854,
2430,
603,
333,
6835,
1846,
848,
296,
81,
474,
11,
2777,
333,
19808,
1800,
310,
324,
280,
3870,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
15318,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
2713,
1135,
261,
11890,
5034,
1087,
16,
2254,
5034,
7433,
13,
288,
203,
3639,
261,
4963,
38,
15318,
16,
1087,
13,
273,
2078,
38,
15318,
18,
1289,
12,
8949,
18,
... |
/**
* Source Code first verified at https://etherscan.io on Tuesday, May 7, 2019
(UTC) */
pragma solidity >=0.4.21 <0.6.0;
contract EIP20Interface {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalS... | @notice `msg.sender` approves `_spender` to spend `_value` tokens @param _spender The address of the account able to transfer the tokens @param _value The amount of tokens to be approved for transfer @return Whether the approval was successful or not | function approve(address _spender, uint256 _value) public returns (bool success);
bool claimed_TOD30 = false;
address owner_TOD30;
uint256 reward_TOD30;
function setReward_TOD30() public {
require (!claimed_TOD30);
require(msg.sender == owner_TOD30);
owner_TOD30.transfer(reward_TOD30);
... | 6,392,901 | [
1,
68,
3576,
18,
15330,
68,
6617,
3324,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1375,
67,
1132,
68,
2430,
225,
389,
87,
1302,
264,
1021,
1758,
434,
326,
2236,
7752,
358,
7412,
326,
2430,
225,
389,
1132,
1021,
3844,
434,
2430,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
1769,
203,
6430,
7516,
329,
67,
56,
1212,
5082,
273,
629,
31,
203,
2867,
225,
3410,
67,
56,
1212,
5082,
31,
203,
1... |
pragma solidity ^0.5.8;
interface IERC20 {
function TRANSFER724(address to, uint256 value) external returns (bool); //inject NONSTANDARD NAMING
function A... | inject NONSTANDARD NAMING
| function BATCHREMOVEWITHDRAWNCHAINFACESFROMSTORAGE793(uint256 _numSlotsToCheck) external { | 2,579,040 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
605,
5858,
22122,
9147,
28446,
5665,
1792,
6964,
11300,
55,
11249,
19009,
7235,
23,
12,
11890,
5034,
389,
2107,
16266,
18126,
13,
3903,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
contract complex{
address add;
uint aa;
uint bb;
function thrower()
{
throw;
}
function toggle() returns(uint){
if (aa > 0) aa=0;
else aa =1;
if (bb > 0) bb=0;
else bb = 1;
return 0x1337;
}
}
contract proxy{
address add;
uint aa;
uint bb;
function proxy(address a){
add = a;
}
function ()... | gas needs to be uint:edAddress also needs to be maskedAlso, important, storage location must be correct sload(0) is dependant on the order of declaration aboveGet call data (method sig & params)callcode( Check return value 0 == it threw, so we do aswell by jumping to bad destination (02) return(p,s) : end execution, re... | function (){
assembly{
let g := and(gas,0xEFFFFFFF)
calldatacopy(o_code, 0, calldatasize)
let retval := call(g
jumpi(0x02,iszero(retval))
return(o_code,32)
}
}
| 2,565,336 | [
1,
31604,
4260,
358,
506,
2254,
30,
329,
1887,
2546,
4260,
358,
506,
13196,
1067,
2048,
16,
10802,
16,
2502,
2117,
1297,
506,
3434,
272,
945,
12,
20,
13,
353,
2447,
970,
603,
326,
1353,
434,
8266,
5721,
967,
745,
501,
261,
2039,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
1832,
95,
203,
202,
202,
28050,
95,
203,
203,
1082,
202,
1810,
314,
519,
471,
12,
31604,
16,
20,
17432,
18343,
42,
13,
203,
1082,
202,
1991,
892,
3530,
12,
83,
67,
710,
16,
374,
16,
745,
13178,
554,
13,
203,
1082,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "../node_modules/@openzeppelin/contracts/access/Ownable.sol";
/**
* @dev System of propositions
* This is not a poll, users can only vote YES or NO on proposals they have authorization
* Management people can create proposes and autorized peo... | user can only vote on proposal in which he was authorized
| mapping(address => mapping(uint256 => bool)) public proposalAutorizations; | 6,435,315 | [
1,
1355,
848,
1338,
12501,
603,
14708,
316,
1492,
3904,
1703,
10799,
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,
2867,
516,
2874,
12,
11890,
5034,
516,
1426,
3719,
1071,
14708,
37,
3408,
7089,
31,
225,
2,
-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
// @unsupported: ovm
pragma solidity 0.8.9;
pragma experimental ABIEncoderV2;
import "../polygon/tunnel/FxBaseRootTunnel.sol";
import "./MessengerWrapper.sol";
/**
* @dev A MessengerWrapper for Polygon - https://docs.matic.network/docs
* @notice Deployed on layer-1
*/
contract Pol... | @param item RLP encoded list in bytes/ | function toList(RLPItem memory item) internal pure returns (RLPItem[] memory) {
require(isList(item));
uint256 items = numItems(item);
RLPItem[] memory result = new RLPItem[](items);
uint256 memPtr = item.memPtr + _payloadOffset(item.memPtr);
uint256 dataLen;
for (u... | 159,463 | [
1,
1726,
534,
14461,
3749,
666,
316,
1731,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12277,
12,
54,
48,
1102,
874,
3778,
761,
13,
2713,
16618,
1135,
261,
54,
48,
1102,
874,
8526,
3778,
13,
288,
203,
3639,
2583,
12,
291,
682,
12,
1726,
10019,
203,
203,
3639,
2254,
5034,
1516,
273,
818,
3126,
12,
1726,
... |
/**
* (0x%x,2909) Solo une altro contratta che ho fatto. Nel codice ci fidiame. In crito e rifugio. Crito-difese à vita.
*
* Author: 2021 Crypto Fix Finance and Contributors. BSD 3-Clause Licensed.
* Baseate ni Putanas.
* Passed compliance checks by 0xFF4 marked XFC.
* Final version: need to change router and wa... | mandei 290.9k max transfer que da 1% do supply inicial (nao do circulante, logo isso muda com o tempo)
| uint256 private _maxTxAmount = 290900 * 10**_decimals; | 12,876,702 | [
1,
4728,
323,
77,
576,
9349,
18,
29,
79,
943,
7412,
6597,
5248,
404,
9,
741,
14467,
316,
22354,
261,
82,
6033,
741,
5886,
1934,
7974,
16,
19128,
353,
2048,
312,
13177,
532,
320,
1022,
1631,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
389,
1896,
4188,
6275,
273,
12899,
5908,
713,
380,
1728,
636,
67,
31734,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//Address: 0x0f37dd19f5bba5e4a6fb7281e1d135d8245a6ef7
//Contract name: IADTGE
//Balance: 0 Ether
//Verification Date: 4/28/2018
//Transacion Count: 14
// CODE STARTS HERE
pragma solidity 0.4.23;
/**
* @title IADOWR TGE CONTRACT
* @dev ERC-20 Token Standard Compliant Contract
*/
/**
* @title SafeMath by OpenZeppeli... | Until May 30 23:59 (PST)
| uint256 public deadline = dateTimeContract.toTimestamp(2018,5,31,6,59); | 6,368,383 | [
1,
9716,
16734,
5196,
10213,
30,
6162,
261,
52,
882,
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,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
14096,
273,
9296,
8924,
18,
869,
4921,
12,
21849,
16,
25,
16,
6938,
16,
26,
16,
6162,
1769,
225,
2,
-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;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
... | Grant referral bonus */ | _referralPayout(msg.sender, token_amount);
| 1,148,318 | [
1,
9021,
1278,
29084,
324,
22889,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1734,
29084,
52,
2012,
12,
3576,
18,
15330,
16,
1147,
67,
8949,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.24;
contract testingArarys {
struct User {
address[ARRAY_MAX_SIZE] pendingApproval; // used to keep track of what is the mapping
uint numAddresses;
mapping(address => uint) index;
}
mapping(address => User) private users;
uint consta... | Add requestor to pendingApproval
| users[_requestee].pendingApproval[index] = msg.sender; | 12,978,903 | [
1,
986,
590,
280,
358,
4634,
23461,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3677,
63,
67,
2293,
1340,
8009,
9561,
23461,
63,
1615,
65,
273,
1234,
18,
15330,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "./interface/IiToken.sol";
import "./interface/IRewardDistributorV3.sol";
import "./interface... | * @notice Hook function before iToken `redeem()` Checks if the account should be allowed to redeem the given iToken Will `revert()` if any check fails @param _iToken The iToken to check the redeem against @param _redeemer The account which would redeem iToken @param _redeemAmount The amount of iToken to redeem/ _redeem... | function beforeRedeem(
address _iToken,
address _redeemer,
uint256 _redeemAmount
) external override {
require(!markets[_iToken].redeemPaused, "Token redeem has been paused");
_redeemAllowed(_iToken, _redeemer, _redeemAmount);
IRewardDistributor(rewardDistribut... | 1,318,104 | [
1,
5394,
445,
1865,
277,
1345,
1375,
266,
24903,
20338,
13074,
309,
326,
2236,
1410,
506,
2935,
358,
283,
24903,
326,
864,
277,
1345,
9980,
1375,
266,
1097,
20338,
309,
1281,
866,
6684,
225,
389,
77,
1345,
1021,
277,
1345,
358,
866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1865,
426,
24903,
12,
203,
3639,
1758,
389,
77,
1345,
16,
203,
3639,
1758,
389,
266,
24903,
264,
16,
203,
3639,
2254,
5034,
389,
266,
24903,
6275,
203,
565,
262,
3903,
3849,
288,
203,
203,
3639,
2583,
12,
5,
3355,
241... |
./full_match/1/0xefaCa6Fc316B3B2Aa6c55FF5E02a62A85d4391e8/sources/contracts/storage/AccountRBAC.sol | * @dev Revokes a particular permission from the specified target address./ | function revokePermission(Data storage self, bytes32 permission, address target) internal {
self.permissions[target].remove(permission);
if (self.permissions[target].length() == 0) {
self.permissionAddresses.remove(target);
}
}
| 16,517,164 | [
1,
10070,
601,
281,
279,
6826,
4132,
628,
326,
1269,
1018,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18007,
5041,
12,
751,
2502,
365,
16,
1731,
1578,
4132,
16,
1758,
1018,
13,
2713,
288,
203,
3639,
365,
18,
9612,
63,
3299,
8009,
4479,
12,
9827,
1769,
203,
203,
3639,
309,
261,
2890,
18,
9612,
63,
3299,
8009,
2469,
143... |
/*
.'''''''''''.. ..''''''''''''''''.. ..'''''''''''''''..
.;;;;;;;;;;;'. .';;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;,.
.;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;,.
.;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;;,. .;;;;;;;;;;;;;;;;;;;;,.
';;;;;;;;'. .';;;;;;;;;;;;;;;;;;... | * @dev Claim all rewards/ | function claim() external distribute update(msg.sender) {
_claim(tru);
_claim(tfusd);
}
| 12,055,516 | [
1,
9762,
777,
283,
6397,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
1435,
3903,
25722,
1089,
12,
3576,
18,
15330,
13,
288,
203,
3639,
389,
14784,
12,
313,
89,
1769,
203,
3639,
389,
14784,
12,
6632,
407,
72,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/*
*visit: https://beerhouse.farm
*Telegram: https://t.me/BeerHousefarm
*Start : Block 10965437
*Bonus END: Block 11023037
*Bonus Multiplier: 3x
*Deployer: Omega Protocol Ltd.
*/
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @d... | View function to see pending BEERs on frontend. | function pendingEgg(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accEggPerShare = pool.accEggPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if... | 10,558,197 | [
1,
1767,
445,
358,
2621,
4634,
9722,
654,
87,
603,
15442,
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,
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,
4634,
41,
14253,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,... |
pragma solidity 0.4.24;
/**
* @title TECH ICO Contract
* @dev TECH is an ERC-20 Standar Compliant Token
* Contact: WorkChainCenters@gmail.com www.WorkChainCenters.io
*/
/**
* @title SafeMath by OpenZeppelin
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint25... | Sum Up Bonus(es) to base purchase
| tokenBought = tokenBought.add(bonus); | 1,513,694 | [
1,
3495,
1948,
605,
22889,
12,
281,
13,
358,
1026,
23701,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1147,
13809,
9540,
273,
1147,
13809,
9540,
18,
1289,
12,
18688,
407,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | * Get the number of claimers that will be added/removed on the next interval @return uint256 Returns the number of claimers that will be added/removed on the next interval/ | function getClaimingContractUserTotalNext(string memory _claimingContract) override public view returns(uint256) {
return getUint(keccak256(abi.encodePacked("rewards.pool.claim.interval.claimers.total.next", _claimingContract)));
}
| 12,064,633 | [
1,
967,
326,
1300,
434,
7516,
414,
716,
903,
506,
3096,
19,
14923,
603,
326,
1024,
3673,
327,
2254,
5034,
2860,
326,
1300,
434,
7516,
414,
716,
903,
506,
3096,
19,
14923,
603,
326,
1024,
3673,
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,
13674,
4581,
310,
8924,
1299,
5269,
2134,
12,
1080,
3778,
389,
14784,
310,
8924,
13,
3849,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
336,
5487,
12,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,... |
pragma solidity ^0.4.23;
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
contract ERC20Interface {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
u... | * @dev Prevent targets from sending or receiving tokens by setting Unix times @param targets Addresses to be locked funds @param unixTimes Unix times when locking up will be finished/ | function lockupAccounts(address[] targets, uint[] unixTimes) onlyOwner public {
require(targets.length > 0
&& targets.length == unixTimes.length);
for(uint j = 0; j < targets.length; j++){
require(unlockUnixTime[targets[j]] < unixTimes[j]);
unlockUnixTime[tar... | 2,081,129 | [
1,
25828,
5774,
628,
5431,
578,
15847,
2430,
635,
3637,
9480,
4124,
225,
5774,
23443,
358,
506,
8586,
284,
19156,
225,
9753,
10694,
9480,
4124,
1347,
18887,
731,
903,
506,
6708,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2176,
416,
13971,
12,
2867,
8526,
5774,
16,
2254,
8526,
9753,
10694,
13,
1338,
5541,
1071,
288,
203,
3639,
2583,
12,
11358,
18,
2469,
405,
374,
203,
7734,
597,
5774,
18,
2469,
422,
9753,
10694,
18,
2469,
1769,
203,
203,... |
./full_match/1/0x30101C09adC32B486d27fe8F6997e825a27b9FC0/sources/contracts/interfaces/core/IRenovaQuest.sol | @notice Emitted when a player deposits a token for a Quest. @param player The player who deposits the token. @param token The address of the token (0x0 for native token). @param amount The amount of token being deposited. | event DepositToken(address indexed player, address token, uint256 amount);
| 8,324,369 | [
1,
1514,
11541,
1347,
279,
7291,
443,
917,
1282,
279,
1147,
364,
279,
4783,
395,
18,
225,
7291,
1021,
7291,
10354,
443,
917,
1282,
326,
1147,
18,
225,
1147,
1021,
1758,
434,
326,
1147,
261,
20,
92,
20,
364,
6448,
1147,
2934,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
4019,
538,
305,
1345,
12,
2867,
8808,
7291,
16,
1758,
1147,
16,
2254,
5034,
3844,
1769,
203,
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.4.24;
// File: zos-lib/contracts/migrations/Migratable.sol
/**
* @title Migratable
* Helper contract to support intialization and migration schemes between
* different implementations of a contract in the context of upgradeability.
* To use it, replace the constructor with a function that has t... | * @dev transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred./ | function transfer(address _to, uint256 _value) public returns (bool) {
require(msg.sender == owner || transferLocked == false || transferWhitelist[msg.sender] == true);
bool result = super.transfer(_to , _value);
return result;
}
| 213,422 | [
1,
13866,
1147,
364,
279,
1269,
1758,
225,
389,
869,
1021,
1758,
358,
7412,
358,
18,
225,
389,
1132,
1021,
3844,
358,
506,
906,
4193,
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,
202,
915,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
202,
202,
6528,
12,
3576,
18,
15330,
422,
3410,
747,
7412,
8966,
422,
629,
747,
7412,
18927,
63,
3576,
18,
15330,
65,
422,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.4;
import "@openzeppelin/contracts/access/Ownable.sol";
// erc20 interface for mcb token transfer
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function balanceOf(address owner) external returns (uint256);
funct... | * @notice Set new mining budget. Can only called by owner. @param newBudget mining budget/ | function setMingingBudget(int256 newBudget) external onlyOwner {
require(newBudget >= 0, "negative budget");
require(_budget != newBudget, "unchanged budget");
emit MiningBudgetChange(_budget, newBudget);
_budget = newBudget;
}
| 5,345,696 | [
1,
694,
394,
1131,
310,
15051,
18,
4480,
1338,
2566,
635,
3410,
18,
565,
394,
16124,
225,
1131,
310,
15051,
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,
15430,
310,
310,
16124,
12,
474,
5034,
394,
16124,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
16124,
1545,
374,
16,
315,
13258,
15051,
8863,
203,
3639,
2583,
24899,
70,
8562,
480,
394,
16124,
16,
315,
4384,
2... |
// SPDX-License-Identifier: AGPL-3.0-only
/**
* DepositBoxEth.sol - SKALE Interchain Messaging Agent
* Copyright (C) 2019-Present SKALE Labs
* @author Artem Payvin
*
* SKALE IMA is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as publ... | * @dev Allows MessageProxy to remove extra contract, thus `extraContract` will no longer be available to transfer messages from mainnet to schain. Requirements: - Extra contract must be registered./ | function _removeExtraContract(
bytes32 chainHash,
address extraContract
)
internal
{
require(_getRegistryContracts()[chainHash].contains(extraContract), "Extra contract is not registered");
_getRegistryContracts()[chainHash].remove(extraContract);
emit ExtraCo... | 1,152,685 | [
1,
19132,
2350,
3886,
358,
1206,
2870,
6835,
16,
12493,
1375,
7763,
8924,
68,
903,
1158,
7144,
506,
2319,
358,
7412,
2743,
628,
2774,
2758,
358,
272,
5639,
18,
29076,
30,
300,
13592,
6835,
1297,
506,
4104,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4479,
7800,
8924,
12,
203,
3639,
1731,
1578,
2687,
2310,
16,
203,
3639,
1758,
2870,
8924,
203,
565,
262,
203,
3639,
2713,
203,
565,
288,
203,
3639,
2583,
24899,
588,
4243,
20723,
1435,
63,
5639,
2310,
8009,
12298,
... |
pragma solidity >=0.4.19 <0.7.0;
import "./interface/IERC20.sol";
import "./lib/safemath.sol";
/**
* The CountachToken is IERC20 contract
*/
contract CountachDemo is IERC20 {
string public constant name = "Countach Demo Token";
string public constant symbol = "CDT";
uint8 public constant decimals = 1... | * @dev check the amount of tokens that an owner aloowed to a spender. @param owner The owner account address @param spender The spender account address @return A amount which The spender account spend funds./ | function allowance(address owner,address spender)
public view returns(uint256){
return _allowed[owner][spender];
}
| 1,037,662 | [
1,
1893,
326,
3844,
434,
2430,
716,
392,
3410,
279,
383,
543,
329,
358,
279,
17571,
264,
18,
225,
3410,
1021,
3410,
2236,
1758,
225,
17571,
264,
1021,
17571,
264,
2236,
1758,
327,
432,
3844,
1492,
1021,
17571,
264,
2236,
17571,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
1699,
1359,
12,
2867,
3410,
16,
2867,
17571,
264,
13,
7010,
202,
482,
1476,
1135,
12,
11890,
5034,
15329,
203,
202,
202,
2463,
389,
8151,
63,
8443,
6362,
87,
1302,
264,
15533,
203,
202,
97,
203,
203,
2,
-100,
-100,
-1... |
./partial_match/1/0x6BFbC564e0b824A19f0C1B43368b2a51026a7275/sources/contracts/pings/IPingMetadata.sol | function setRevealed(bool revealed) external; | interface IPingMetadata is IValidatable {
function genMetadata(uint256 tokenId, PingAtts calldata atts) external view returns (string memory);
pragma solidity ^0.8.7;
} | 4,374,942 | [
1,
915,
444,
426,
537,
18931,
12,
6430,
283,
537,
18931,
13,
3903,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2971,
310,
2277,
353,
467,
1556,
8163,
288,
203,
203,
565,
445,
3157,
2277,
12,
11890,
5034,
1147,
548,
16,
18214,
3075,
87,
745,
892,
15687,
13,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
683,
9454,
18035,
560,
360... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/cryptography/ECDSA.sol";
import "../governance/Managed.sol";
import "../upgrades/GraphUpgradeable.sol";
import "./DisputeManagerStorage.sol";
... | * @dev Initialize this contract. @param _arbitrator Arbitrator role @param _minimumDeposit Minimum deposit required to create a Dispute @param _fishermanRewardPercentage Percent of slashed funds for fisherman (ppm) @param _slashingPercentage Percentage of indexer stake slashed (ppm)/ Settings EIP-712 domain separator | function initialize(
address _controller,
address _arbitrator,
uint256 _minimumDeposit,
uint32 _fishermanRewardPercentage,
uint32 _slashingPercentage
) external onlyImpl {
Managed._initialize(_controller);
_setArbitrator(_arbitrator);
_setMinimumD... | 908,944 | [
1,
7520,
333,
6835,
18,
225,
389,
297,
3682,
86,
639,
1201,
3682,
86,
639,
2478,
225,
389,
15903,
758,
1724,
23456,
443,
1724,
1931,
358,
752,
279,
3035,
2507,
225,
389,
22905,
29650,
17631,
1060,
16397,
21198,
434,
9026,
329,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
203,
3639,
1758,
389,
5723,
16,
203,
3639,
1758,
389,
297,
3682,
86,
639,
16,
203,
3639,
2254,
5034,
389,
15903,
758,
1724,
16,
203,
3639,
2254,
1578,
389,
22905,
29650,
17631,
1060,
16397,
16,
203,
3639,
2254... |
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2020 ZeroEx Intl.
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 a... | @dev Get the struct hash of a RFQ order. @param order The RFQ order. @return structHash The struct hash of the order. The struct hash is: keccak256(abi.encode( TYPE_HASH, order.makerToken, order.takerToken, order.makerAmount, order.takerAmount, order.maker, order.taker, order.txOrigin, order.pool, ... | function getRfqOrderStructHash(RfqOrder memory order)
internal
pure
returns (bytes32 structHash)
{
assembly {
let mem := mload(0x40)
mstore(mem, _RFQ_ORDER_TYPEHASH)
mstore(add(mem, 0x20), and(ADDRESS_MASK, mload(order)))
mstore(add... | 5,394,943 | [
1,
967,
326,
1958,
1651,
434,
279,
534,
23032,
1353,
18,
225,
1353,
1021,
534,
23032,
1353,
18,
327,
1958,
2310,
1021,
1958,
1651,
434,
326,
1353,
18,
1021,
1958,
1651,
353,
30,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
12,
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,
4170,
19206,
2448,
3823,
2310,
12,
54,
19206,
2448,
3778,
1353,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
3890,
1578,
1958,
2310,
13,
203,
565,
288,
203,
3639,
19931,
288,
203,
5411,
2231,
1663,
519,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.11 <0.9.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import... | * @notice Checks that the user is not banned/ | modifier notBanned() {
require(!banList[msg.sender], "you are banned");
_;
}
| 1,354,872 | [
1,
4081,
716,
326,
729,
353,
486,
324,
10041,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
486,
38,
10041,
1435,
288,
203,
3639,
2583,
12,
5,
21515,
682,
63,
3576,
18,
15330,
6487,
315,
19940,
854,
324,
10041,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |