file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.7.0;
// SPDX-License-Identifier: MIT
import "../Registry.sol";
import "../Module.sol";
import "../interfaces/IBank.sol";
import "../interfaces/IMember.sol";
import "../../guards/ModuleGuard.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20... | * Internal utility/ no overflow in multiplication above? | function fairShare(
uint256 balance,
uint256 shares,
uint256 _totalShares
) internal pure returns (uint256) {
require(_totalShares != 0, "total shares should not be 0");
if (balance == 0) {
return 0;
}
uint256 prod = balance * shares;
i... | 15,805,049 | [
1,
3061,
12788,
19,
1158,
9391,
316,
23066,
5721,
35,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
284,
1826,
9535,
12,
203,
3639,
2254,
5034,
11013,
16,
203,
3639,
2254,
5034,
24123,
16,
203,
3639,
2254,
5034,
389,
4963,
24051,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
24899,
4963,
... |
pragma solidity ^0.4.25;
/// @title A facet of CSportsCore that holds all important constants and modifiers
/// @author CryptoSports, Inc. (https://cryptosports.team))
/// @dev See the CSportsCore contract documentation to understand how the various CSports contract facets are arranged.
contract CSportsConstants ... | @notice Enumerate NFTs assigned to an owner @dev Throws if `index` >= `balanceOf(owner)` or if `owner` is the zero address, representing invalid NFTs. @param owner An address where we are interested in NFTs owned by them @param index A counter less than `balanceOf(owner)` @return The token identifier for the `index`t... | function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 _tokenId) {
require(owner != address(0));
require(index < balanceOf(owner));
return ownedTokens[owner][index];
}
| 6,426,270 | [
1,
3572,
12600,
423,
4464,
87,
6958,
358,
392,
3410,
225,
22435,
309,
1375,
1615,
68,
1545,
1375,
12296,
951,
12,
8443,
22025,
578,
309,
225,
1375,
8443,
68,
353,
326,
3634,
1758,
16,
5123,
2057,
423,
4464,
87,
18,
225,
3410,
1922,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1147,
951,
5541,
21268,
12,
2867,
3410,
16,
2254,
5034,
770,
13,
3903,
1476,
1135,
261,
11890,
5034,
389,
2316,
548,
13,
288,
203,
1377,
2583,
12,
8443,
480,
1758,
12,
20,
10019,
203,
1377,
2583,
12,
1615,
411,
11013,
... |
/**
EXAMPLE: pragma
*/
pragma ton-solidity >=0.35.5; // Check compiler version is at least 0.35.5
pragma ton-solidity ^ 0.35.5; // Check compiler version is at least 0.35.5 and less 0.36.0
pragma ton-solidity < 0.35.5; // Check compiler version is less 0.35.5
pragma ton-solidity >= 0.35.5 < 0.35.7; // Check compiler ve... | this function receives only external messages also
| function ff() external externalMsg { | 15,790,524 | [
1,
2211,
445,
17024,
1338,
3903,
2743,
2546,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
915,
6875,
1435,
3903,
3903,
3332,
288,
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/43114/0x7f3BB8dB336ff50120E290e5C8eC78B20f619D01/sources/contracts/SuStrategyV2.sol | * @notice Calculate Snowball tokens for a given amount of LP tokens @dev If contract is empty, use 1:1 ratio @dev Could return zero shares for very low amounts of LP tokens @param amount LP tokens @return Snowball tokens/ | function getSharesForLPTokens(uint amount) public view returns (uint) {
if (totalSupply.mul(totalDeposits) == 0) {
return amount;
}
return amount.mul(totalSupply).div(totalDeposits);
}
| 4,589,303 | [
1,
8695,
31040,
19067,
2430,
364,
279,
864,
3844,
434,
511,
52,
2430,
225,
971,
6835,
353,
1008,
16,
999,
404,
30,
21,
7169,
225,
14312,
327,
3634,
24123,
364,
8572,
4587,
30980,
434,
511,
52,
2430,
225,
3844,
511,
52,
2430,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
445,
1322,
3395,
455,
1290,
48,
1856,
3573,
12,
11890,
3844,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
565,
309,
261,
4963,
3088,
1283,
18,
16411,
12,
4963,
758,
917,
1282,
13,
422,
374,
13,
288,
203,
1377,
327,
3844... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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
* manner, since w... | FARMAFINANCE: MintablePool.sol telegram: TBA/ | contract UsdtEthGrowBurst is LPTokenWrapper, Ownable {
using SafeERC20 for ERC20PresetMinterPauser;
using SafeERC20 for IERC20;
ERC20PresetMinterPauser public rewardToken;
IERC20 public multiplierToken;
uint256 public DURATION;
uint256 public periodFinish;
uint256 public rewardRate;
uin... | 1,448,590 | [
1,
42,
985,
5535,
7263,
4722,
30,
490,
474,
429,
2864,
18,
18281,
282,
268,
19938,
30,
399,
12536,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
587,
6427,
88,
41,
451,
30948,
38,
18593,
353,
511,
52,
1345,
3611,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
4232,
39,
3462,
18385,
49,
2761,
16507,
1355,
31,
203,
565,
1450,
14060,
654,
39,
3462,
... |
./full_match/80001/0xB447B59d547Ba4BCD85269d6b700a84A01bb381f/sources/contracts/Battle.sol | Populate the CharacterProxy for player 1 | createCharacterProxies(_characterTokenId, msg.sender, battleId);
| 852,419 | [
1,
19097,
326,
6577,
3886,
364,
7291,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
7069,
21488,
24899,
11560,
1345,
548,
16,
1234,
18,
15330,
16,
324,
4558,
298,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xf2709c559785CF4D1AA9C9a0ad6E0BB413afdF7a/sources/DarkNyanV2.sol | * @notice Swaps an amount dNyan for dNyanV2. @param _amount Amount of dNyanV1 to swap./DNyanV2 swap event | function swapDNyanV1(uint256 _amount) public delegatedOnly {
IERC20(dNyanV1).safeTransferFrom(msg.sender, address(this), _amount);
uint256 bonus = _amount.mul(2000).div(10000);
_mint(msg.sender, _amount.add(bonus));
totalDNyanSwapped = totalDNyanSwapped.add(_amount);
}
... | 11,031,610 | [
1,
6050,
6679,
392,
3844,
302,
50,
93,
304,
364,
302,
50,
93,
304,
58,
22,
18,
225,
389,
8949,
16811,
434,
302,
50,
93,
304,
58,
21,
358,
7720,
18,
19,
8609,
93,
304,
58,
22,
7720,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7720,
8609,
93,
304,
58,
21,
12,
11890,
5034,
389,
8949,
13,
1071,
30055,
3386,
288,
203,
3639,
467,
654,
39,
3462,
12,
72,
50,
93,
304,
58,
21,
2934,
4626,
5912,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,... |
./full_match/4/0x14a733278d2C792d1b93DEF58C30CC16AED0DcCD/sources/Squries.sol | check allowed Contracts | function checkAllowedContracts(address addr) public view returns (bool) {
return allowedContracts[addr];
}
| 729,072 | [
1,
1893,
2935,
30131,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
5042,
20723,
12,
2867,
3091,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
1377,
327,
2935,
20723,
63,
4793,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x9dc3beC75bd375E1a64279894F780ba7634ea53e/sources/Ethermaze.sol | * @dev Close old contract interaction/ | function oldETHMazeSyncClosed() external {
require(address(oldETHMaze) != address(0), "Initialize already closed");
require(msg.sender == ownerAddress, "Access denied");
oldETHMaze = Ethermaze(0);
}
| 2,834,708 | [
1,
4605,
1592,
6835,
13581,
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,
1592,
1584,
44,
49,
1561,
73,
4047,
7395,
1435,
3903,
288,
203,
3639,
2583,
12,
2867,
12,
1673,
1584,
44,
49,
1561,
73,
13,
480,
1758,
12,
20,
3631,
315,
7520,
1818,
4375,
8863,
203,
3639,
2583,
12,
3576,
18,
15330,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
/**
* ################################################################################
* ################################################################################
* ################################################################################
* ##... | * @dev Unlocks a mutation for the token. @param force unlocks mutation even if it can't be mutated to./ | function safeCatalystUnlockMutation(
uint256 tokenId,
uint256 mutationId,
bool force
) external override tokenExists(tokenId) mutationExists(mutationId) {
require(
!_isMutationUnlocked(tokenId, mutationId),
"ERC721GeneticData: unlock to unlocked mutation"
... | 257,003 | [
1,
7087,
87,
279,
11934,
364,
326,
1147,
18,
225,
2944,
7186,
87,
11934,
5456,
309,
518,
848,
1404,
506,
27414,
358,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
39,
3145,
1094,
7087,
20028,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
11934,
548,
16,
203,
3639,
1426,
2944,
203,
565,
262,
3903,
3849,
1147,
4002,
12,
2316,
548,
13,
11934,
4002,
12,
28868... |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.6.12;
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./BancorBondingCurve.sol";
import "./Vision.sol";
/// @notice Controlling bon... | @notice Event capturing burned vision, cost, and address. | event VisionBurned(uint burned, uint cost, address addr);
| 6,463,105 | [
1,
1133,
28789,
18305,
329,
331,
1951,
16,
6991,
16,
471,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
776,
1951,
38,
321,
329,
12,
11890,
18305,
329,
16,
2254,
6991,
16,
1758,
3091,
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 .4;
/*
This is the smart contract for the ERC 20 standard Tratok token.
During development of the smart contract, active attention was paid to make the contract as simple as possible.
As the majority of functions are simple addition and subtraction of existing balances, we have been able to ... | the total supply of tokens@return Returns the total amount of Tratok tokens in existence. The amount remains capped at the pre-created 100 Billion. | contract ERC20 {
uint public totalSupply;
@param _owner The address of the wallet which needs to be queried for the amount of Tratok held.
@return Returns the balance of Tratok tokens for the relevant address.
function balanceOf(address who) constant returns(uint);
The transfer function w... | 13,074,228 | [
1,
5787,
2078,
14467,
434,
2430,
2463,
2860,
326,
2078,
3844,
434,
840,
270,
601,
2430,
316,
15782,
18,
1021,
3844,
22632,
3523,
1845,
622,
326,
675,
17,
4824,
2130,
605,
737,
285,
18,
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,
16351,
4232,
39,
3462,
288,
203,
565,
2254,
1071,
2078,
3088,
1283,
31,
203,
203,
203,
1377,
632,
891,
389,
8443,
1021,
1758,
434,
326,
9230,
1492,
4260,
358,
506,
23264,
364,
326,
3844,
434,
840,
270,
601,
15770,
18,
7010,
1377,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functio... | @title ERC721WithRoles @author Simon Fremaux (@dievardump) | abstract contract ERC721WithRoles {
using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;
event RoleGranted(bytes32 indexed role, address indexed user);
event RoleRevoked(bytes32 indexed role, address indexed user);
mapping(bytes32 => EnumerableSetUpgradeable.AddressSet)
pri... | 1,626,357 | [
1,
654,
39,
27,
5340,
1190,
6898,
225,
9587,
265,
478,
266,
2540,
2616,
261,
36,
72,
1385,
90,
1060,
2801,
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... | [
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,
17801,
6835,
4232,
39,
27,
5340,
1190,
6898,
288,
203,
565,
1450,
6057,
25121,
694,
10784,
429,
364,
6057,
25121,
694,
10784,
429,
18,
1887,
694,
31,
203,
203,
565,
871,
6204,
14570,
12,
3890,
1578,
8808,
2478,
16,
1758,
8808,
72... |
./full_match/1/0x5D30dCD259651d44978F20CBD88AaEd3b7Eee9cA/sources/src/periphery/StrategyExecutor.sol | useful when the previous function calls adds back strategy token to rebalance | function _run(
BaseStrategy strategy,
uint256 maxBentoBoxAmountIncreaseInBips,
uint256 maxBentoBoxChangeAmountInBips,
bytes[] calldata calls,
bool postRebalanceEnabled
) private {
IBentoBoxV1 bentoBox = strategy.bentoBox();
IERC20 strategyToken = strategy.... | 3,045,020 | [
1,
1202,
2706,
1347,
326,
2416,
445,
4097,
4831,
1473,
6252,
1147,
358,
283,
12296,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2681,
12,
203,
3639,
3360,
4525,
6252,
16,
203,
3639,
2254,
5034,
943,
38,
29565,
3514,
6275,
382,
11908,
382,
38,
7146,
16,
203,
3639,
2254,
5034,
943,
38,
29565,
3514,
3043,
6275,
382,
38,
7146,
16,
203,
3639,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
// IERC721 is the ERC721 interface that we´ll use to make Maniac´s NFT ERC721
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// IERC721Receiver must be implemented to accept safe transfers
// It is included on the ERC721 standard
import "@openzeppel... | Returns approved address for specific Artwork | function getApproved(uint256 _NFTmaniacId)
public
override
view
returns (address operator)
{
require(_exists(_NFTmaniacId), "Artwork does not exist.");
return NFTmaniacApprovals[_NFTmaniacId];
}
| 12,536,977 | [
1,
1356,
20412,
1758,
364,
2923,
9042,
1252,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
31639,
12,
11890,
5034,
389,
50,
4464,
4728,
77,
1077,
548,
13,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
3726,
13,
203,
565,
288,
203,
3639,
2583,
24899,
1808,
24899,
50,
4464,... |
./full_match/1/0x2CF4abb70f2732B522DC59cb644b560eE2BF43e6/sources/foraging-contracts/Nom.sol | Base reward per block of time.
| uint256 _baseReward; | 3,029,787 | [
1,
2171,
19890,
1534,
1203,
434,
813,
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,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
389,
1969,
17631,
1060,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/100/0xFDC429d598676580814563B405F6c866DEbfBeBc/sources/BattleMtnData.sol | array featuring all connections.
| Node[65] ValidPaths; | 16,669,093 | [
1,
1126,
11002,
4017,
777,
5921,
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,
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,
2029,
63,
9222,
65,
2364,
4466,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity =0.4.24;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 6;
// 18 decimals is th... | * Constructor function Initializes contract with initial supply tokens to the creator of the contract/ | ) public {
emit Transfer(address(0), _initAddr, totalSupply);
}
| 1,447,697 | [
1,
6293,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
288,
203,
3639,
3626,
12279,
12,
2867,
12,
20,
3631,
389,
2738,
3178,
16,
2078,
3088,
1283,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at FtmScan.com on 2021-10-26
*/
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
... | WARNING. manipulatable and simple routing. Only use for safe functions | function priceCheck(
address start,
address end,
uint256 _amount
) public view returns (uint256) {
if (_amount == 0) {
return 0;
}
if (start == end) {
return _amount;
}
uint256[] memory amounts = currentRouter.getAmountsOut... | 12,945,583 | [
1,
9511,
18,
13441,
332,
8163,
471,
4143,
7502,
18,
5098,
999,
364,
4183,
4186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6205,
1564,
12,
203,
3639,
1758,
787,
16,
203,
3639,
1758,
679,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
67,
8949,
422,
374,
13,
288,
203,
... |
./full_match/11155111/0x298F37fFd4B31d216B8954968cEe7EC5273CB891/sources/src/Drips.sol | @notice Transfers withdrawable funds to an address. The withdrawable funds are held by the Drips contract, but not used in the protocol, so they are free to be transferred out. Anybody can call `withdraw`, so all withdrawable funds should be withdrawn or used in the protocol before any 3rd parties have a chance to do ... | function withdraw(IERC20 erc20, address receiver, uint256 amt) public {
(uint128 streamsBalance, uint128 splitsBalance) = balances(erc20);
uint256 withdrawable = _tokenBalance(erc20) - streamsBalance - splitsBalance;
require(amt <= withdrawable, "Withdrawal amount too high");
emit Wi... | 3,819,332 | [
1,
1429,
18881,
598,
9446,
429,
284,
19156,
358,
392,
1758,
18,
1021,
598,
9446,
429,
284,
19156,
854,
15770,
635,
326,
463,
566,
1121,
6835,
16,
1496,
486,
1399,
316,
326,
1771,
16,
1427,
2898,
854,
4843,
358,
506,
906,
4193,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
598,
9446,
12,
45,
654,
39,
3462,
6445,
71,
3462,
16,
1758,
5971,
16,
2254,
5034,
25123,
13,
1071,
288,
203,
3639,
261,
11890,
10392,
8205,
13937,
16,
2254,
10392,
11019,
13937,
13,
273,
324,
26488,
12,
12610,
3462,
176... |
// SPDX-License-Identifier: MIT
import { Ownable } from "./abstract/Ownable.sol";
pragma solidity 0.8.6;
contract Parameterized is Ownable {
uint256 internal constant WEEK = 7 days;
uint256 internal constant MONTH = 30 days;
struct StakeParameters {
uint256 value;
uint256 lastChange;
... | @notice LP token stakes storage | mapping(address => Stake) public liquidityStake;
| 10,143,483 | [
1,
14461,
1147,
384,
3223,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
934,
911,
13,
1071,
4501,
372,
24237,
510,
911,
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,
... |
./partial_match/1/0x53466a575fE1beba1F49F557d9817a6996f25694/sources/Pool.sol | Info of each period. | Period[] public periods;
| 9,344,277 | [
1,
966,
434,
1517,
3879,
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,
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,
202,
5027,
8526,
1071,
12777,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2022-04-20
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
// File: contracts/Ownable.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
* s... | * @dev Collection of functions related to the address type/ | library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function isContract(address account) internal view returns (bool) {
uint256 size;
a... | 2,344,407 | [
1,
2532,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
19931,
288,
203,
5411,
963,
519,
1110,
7000,
554,
12,
4631,
13,
203... |
./partial_match/3/0xF01A67842dAc71d2E515352E38783e45D7e4F639/sources/Alchemy.sol | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Alchemy";
symbol = "AM";
decimals = 18;
_totalSupply = 100000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 5,199,822 | [
1,
442,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
1067,
17192,
14432,
203,
3639,
3273,
273,
315,
2192,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
12648,
31,
203,
203,
3639... |
// File: @openzeppelin\contracts-ethereum-package\contracts\utils\Address.sol
pragma solidity ^0.5.5;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume t... | * @dev Sets the calculated vesting amount per interval. @param vestedAmount The total amount that is to be vested. @param duration_ The total duration in which the veted tokens will be released. @param interval_ The intervals at which the token will be released. @param stamp_ The intervals mentioned are in Minutes(MIN)... | function setCalculatedVestedAmountPerInterval(
uint256 vestedAmount,
uint256 duration_,
uint256 interval_,
string memory stamp_
) private {
uint256 diff = vestedAmount;
if (keccak256(abi.encodePacked(stamp_)) == keccak256("MIN")) {
_intervalVested = (... | 485,365 | [
1,
2785,
326,
8894,
331,
10100,
3844,
1534,
3673,
18,
225,
331,
3149,
6275,
1021,
2078,
3844,
716,
353,
358,
506,
331,
3149,
18,
225,
3734,
67,
1021,
2078,
3734,
316,
1492,
326,
331,
278,
329,
2430,
903,
506,
15976,
18,
225,
3673,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4844,
690,
58,
3149,
6275,
2173,
4006,
12,
203,
3639,
2254,
5034,
331,
3149,
6275,
16,
203,
3639,
2254,
5034,
3734,
67,
16,
203,
3639,
2254,
5034,
3673,
67,
16,
203,
3639,
533,
3778,
14429,
67,
203,
565,
262,
323... |
./full_match/4/0xc746b7136B97AdAB08EeDe526345cCeaf554D4F3/sources/node_modules/_thirdweb-dev/contracts/feature/Royalty.sol | @dev Lets a contract admin update the default royalty recipient and bps. | function _setupDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps) internal {
if (_royaltyBps > 10_000) {
revert Royalty__ExceedsMaxBps(_royaltyBps);
}
royaltyRecipient = _royaltyRecipient;
royaltyBps = uint16(_royaltyBps);
emit DefaultRoyalty(_ro... | 726,469 | [
1,
48,
2413,
279,
6835,
3981,
1089,
326,
805,
721,
93,
15006,
8027,
471,
324,
1121,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8401,
1868,
54,
13372,
15006,
966,
12,
2867,
389,
3800,
15006,
18241,
16,
2254,
5034,
389,
3800,
15006,
38,
1121,
13,
2713,
288,
203,
3639,
309,
261,
67,
3800,
15006,
38,
1121,
405,
1728,
67,
3784,
13,
288,
203,
... |
./partial_match/3/0xaA3ac1c6c6c2938a607df7A7761C54D44DBC40c8/sources/UniswapV2Locker.sol | * @notice migrates liquidity to uniswap v3/ clean user storage | function migrate (address _lpToken, uint256 _index, uint256 _lockID, uint256 _amount) public {
require(address(migrator) != address(0), "NOT SET");
require(_amount > 0, 'ZERO MIGRATION');
uint256 lockID = users[msg.sender].locksForToken[_lpToken][_index];
TokenLock storage userLock = tokenLocks[_... | 5,120,274 | [
1,
81,
2757,
815,
4501,
372,
24237,
358,
640,
291,
91,
438,
331,
23,
19,
2721,
729,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
13187,
261,
2867,
389,
9953,
1345,
16,
2254,
5034,
389,
1615,
16,
2254,
5034,
389,
739,
734,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
565,
2583,
12,
2867,
12,
81,
2757,
639,
13,
480,
1758,
12,
20,
3631,
315,
4... |
pragma solidity ^0.4.13;
interface RiskMgmtInterface {
// METHODS
// PUBLIC VIEW METHODS
/// @notice Checks if the makeOrder price is reasonable and not manipulative
/// @param orderPrice Price of Order
/// @param referencePrice Reference price obtained through PriceFeed contract
/// @param s... | PUBLIC VIEW METHODS | contract NoRiskMgmt is RiskMgmtInterface {
function isMakePermitted(
uint orderPrice,
uint referencePrice,
address sellAsset,
address buyAsset,
uint sellQuantity,
uint buyQuantity
)
view
returns (bool)
}
{
}
function isTakePermitted(... | 14,888,630 | [
1,
14939,
21794,
10152,
55,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
2631,
54,
10175,
49,
7714,
353,
534,
10175,
49,
7714,
1358,
288,
203,
203,
203,
565,
445,
353,
6464,
31465,
12,
203,
3639,
2254,
1353,
5147,
16,
203,
3639,
2254,
2114,
5147,
16,
203,
3639,
1758,
357,
80,
6672,
16,
203,
3... |
/**
*Submitted for verification at Etherscan.io on 2022-03-26
*/
// SPDX-License-Identifier: MIT
// File: contracts/DateTime.sol
pragma solidity ^0.8.0;
// ----------------------------------------------------------------------------
// DateTime Library v2.0
//
// A gas-efficient Solidity date and time library
//
/... | ------------------------------------------------------------------------ Calculate the number of days from 1970/01/01 to year/month/day using the date conversion algorithm from http:aa.usno.navy.mil/faq/docs/JD_Formula.php and subtracting the offset 2440588 so that 1970/01/01 is day 0 days = day - 32075 + ... | library DateTime {
uint256 constant SECONDS_PER_DAY = 24 * 60 * 60;
uint256 constant SECONDS_PER_HOUR = 60 * 60;
uint256 constant SECONDS_PER_MINUTE = 60;
int256 constant OFFSET19700101 = 2440588;
uint256 constant DOW_MON = 1;
uint256 constant DOW_TUE = 2;
uint256 constant DOW_WED = 3;
... | 2,208,267 | [
1,
29461,
9029,
326,
1300,
434,
4681,
628,
5342,
7301,
19,
1611,
19,
1611,
358,
3286,
19,
7496,
19,
2881,
1450,
326,
1509,
4105,
4886,
628,
282,
1062,
30,
7598,
18,
407,
2135,
18,
11589,
93,
18,
81,
330,
19,
507,
85,
19,
8532,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
3716,
288,
203,
565,
2254,
5034,
5381,
17209,
67,
3194,
67,
10339,
273,
4248,
380,
4752,
380,
4752,
31,
203,
565,
2254,
5034,
5381,
17209,
67,
3194,
67,
21372,
273,
4752,
380,
4752,
31,
203,
565,
2254,
5034,
5381,
17209,
6... |
./full_match/80001/0x8D2C372317524a8Af5313883434411fd3DAE55d9/sources/contracts/lib/OrderFulfiller.sol | * @dev Internal pure function to convert an order to an advanced order with numerator and denominator of 1 and empty extraData. @param order The order to convert. @return advancedOrder The new advanced order./ Convert to partial order (1/1 or full fill) and return new value. | function _convertOrderToAdvanced(Order calldata order)
internal
pure
returns (AdvancedOrder memory advancedOrder)
{
advancedOrder = AdvancedOrder(
order.parameters,
1,
1,
order.signature,
""
);
}
| 878,373 | [
1,
3061,
16618,
445,
358,
1765,
392,
1353,
358,
392,
16111,
1353,
598,
1377,
16730,
471,
15030,
434,
404,
471,
1008,
2870,
751,
18,
225,
1353,
1021,
1353,
358,
1765,
18,
327,
16111,
2448,
1021,
394,
16111,
1353,
18,
19,
4037,
358,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6283,
2448,
774,
23618,
12,
2448,
745,
892,
1353,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
23618,
2448,
3778,
16111,
2448,
13,
203,
565,
288,
203,
3639,
16111,
2448,
273,
27451,
2448,
12,
203,
5... |
./full_match/1/0x70588Eb4626600e6b9cD49b140E39e5a814D9535/sources/erc721bo/contracts/ERC721BO.sol | * @dev Same as `_safeReMint`, with an additional `data` parameter which is forwarded in IERC721Receiver.onERC721Received to contract recipients./ | function _safeReMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_remint(to, tokenId);
if (!_checkOnERC721Received(address(0), to, tokenId, _data))
revert TransferToNonERC721ReceiverImplementer();
}
| 3,053,407 | [
1,
8650,
487,
1375,
67,
4626,
426,
49,
474,
9191,
598,
392,
3312,
1375,
892,
68,
1569,
1492,
353,
19683,
316,
467,
654,
39,
27,
5340,
12952,
18,
265,
654,
39,
27,
5340,
8872,
358,
6835,
12045,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
4626,
426,
49,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731,
3778,
389,
892,
203,
565,
262,
2713,
5024,
288,
203,
3639,
389,
2764,
474,
12,
869,
16,
1147,
548,
1769,
... |
./full_match/80001/0x921331433c9167F0EcD95F5E6841C032843Ce130/sources/project_/contracts/STokenV1.sol | @notice Locks `_amountToLock` of tokens on `_account` address for the `_daysToLock` quantity of days @dev Allowed only for FinancialManager. Function blocked when contract is paused. The proper pair of data: ([0]timestamp when tokens can be unlocked & [1]`_amountToLock`) is written to the parame... | function lockUpTokensOnAddress(
address _account,
uint256 _amountToLock,
uint256 _daysToLock
) external whenNotPaused onlyFinancialManager returns (bool) {
_lockTokens(
_account,
_checkAmountToLock(_account, _amountToLock),
_daysToLock
... | 5,596,194 | [
1,
19159,
1375,
67,
8949,
774,
2531,
68,
434,
2430,
603,
1375,
67,
4631,
68,
1758,
540,
364,
326,
1375,
67,
9810,
774,
2531,
68,
10457,
434,
4681,
225,
16740,
1338,
364,
9458,
19292,
649,
1318,
18,
1377,
4284,
14547,
1347,
6835,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2176,
1211,
5157,
1398,
1887,
12,
203,
3639,
1758,
389,
4631,
16,
203,
3639,
2254,
5034,
389,
8949,
774,
2531,
16,
203,
3639,
2254,
5034,
389,
9810,
774,
2531,
203,
565,
262,
3903,
1347,
1248,
28590,
1338,
6187,
19292,
... |
./partial_match/3/0xd454B7aa75654b8718A9279879aD165703d7fE68/sources/TestCoin0.sol | /Connect /fix => Crypto Block Mine Token to => Mainnet => "CBM" Coin
| tokenSymbol = "TC0"; | 5,095,791 | [
1,
19,
5215,
342,
904,
516,
15629,
3914,
490,
558,
3155,
358,
516,
12740,
2758,
225,
516,
315,
8876,
49,
6,
28932,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
1147,
5335,
282,
273,
315,
15988,
20,
14432,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.21;
// ----------------------------------------------------------------------------
// @Name SafeMath
// @Desc Math operations with safety checks that throw on error
// https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
// ------------------------------------... | ---------------------------------------------------------------------------- @Name YouRyuCoin (YRC) @Desc Cutie Ryu ---------------------------------------------------------------------------- Admin Ryu Address | contract SaromsaryCoin is SaromsaryCoinBase {
string public name;
uint8 public decimals;
string public symbol;
address public owner;
modifier isOwner {
require(owner == msg.sender);
_;
}
event EventBurnCoin(address a_burnAddress, uint a_amount);
event EventAddCoin(... | 1,805,146 | [
1,
5802,
7620,
632,
461,
4554,
54,
93,
89,
27055,
261,
61,
11529,
13,
632,
4217,
385,
322,
1385,
534,
93,
89,
8879,
13849,
7807,
534,
93,
89,
5267,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
297,
25390,
814,
27055,
353,
348,
297,
25390,
814,
27055,
2171,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
533,
1071,
3273,
31,
203,
203,
565,
1758,
1071,
3410,
31,
203,
203,
5... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contrac... | * @dev This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain./ SPDX-License-Identifier: MIT OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)* @dev This is a base contract to aid in writing upgradeable co... | abstract contract Initializable {
bool private _initialized;
bool private _initializing;
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
uint256[45] priv... | 6,231,968 | [
1,
2503,
1008,
8735,
3476,
353,
1378,
316,
3166,
358,
1699,
3563,
5244,
358,
527,
394,
3152,
2887,
699,
430,
1787,
2588,
2502,
316,
326,
16334,
2687,
18,
19,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
3502,
62,
881,
84,
292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
10188,
6934,
288,
203,
565,
1426,
3238,
389,
13227,
31,
203,
203,
565,
1426,
3238,
389,
6769,
6894,
31,
203,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
... |
pragma solidity 0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256... | Only increase total funders when we have a new funder | function fund() public payable onlyWhenLive {
require(msg.value >= minimumFundingAmount);
if(!isFunder(msg.sender)) {
funders[msg.sender] = Funder({
exists: true,
balance: msg.value,
contribution: 0,
contributionClaimed: 0
});
}
else {
consolidateFu... | 7,211,559 | [
1,
3386,
10929,
2078,
284,
26843,
1347,
732,
1240,
279,
394,
284,
9341,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
284,
1074,
1435,
1071,
8843,
429,
1338,
9434,
12328,
288,
203,
565,
2583,
12,
3576,
18,
1132,
1545,
5224,
42,
14351,
6275,
1769,
203,
203,
565,
309,
12,
5,
291,
42,
9341,
12,
3576,
18,
15330,
3719,
288,
203,
203,
1377... |
./full_match/1/0xC383372e5B69fc487374b91298D124820132c567/sources/src/token/erc721/LazyMintAdventureERC721.sol | @notice Similar to {IERC721-setApprovalForAll}, but for special in-game adventures only | function setAdventuresApprovedForAll(address operator, bool approved) external {
address tokenOwner = _msgSender();
if(tokenOwner == operator) {
revert LazyMintAdventureBase__AdventureApprovalToCaller();
}
operatorAdventureApprovals[tokenOwner][operator] = approved;
... | 8,311,107 | [
1,
16891,
358,
288,
45,
654,
39,
27,
5340,
17,
542,
23461,
1290,
1595,
5779,
1496,
364,
4582,
316,
17,
13957,
1261,
616,
1823,
1338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
1871,
616,
1823,
31639,
1290,
1595,
12,
2867,
3726,
16,
1426,
20412,
13,
3903,
288,
203,
3639,
1758,
1147,
5541,
273,
389,
3576,
12021,
5621,
203,
203,
3639,
309,
12,
2316,
5541,
422,
3726,
13,
288,
203,
5411,
1522... |
// SPDX-License-Identifier: MIT
// Creator: Chiru Labs
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
import '@openzeppelin/contracts/tok... | * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. The call is not executed if the target address is not a contract. @param from address representing the previous ownefr of the given token ID @param to target address that will receive the tokens @param tokenId uint256 ID of the t... | function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
... | 11,721,184 | [
1,
3061,
445,
358,
4356,
288,
45,
654,
39,
27,
5340,
12952,
17,
265,
654,
39,
27,
5340,
8872,
97,
603,
279,
1018,
1758,
18,
1021,
745,
353,
486,
7120,
309,
326,
1018,
1758,
353,
486,
279,
6835,
18,
225,
628,
1758,
5123,
326,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
1893,
1398,
654,
39,
27,
5340,
8872,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731,
3778,
389,
892,
203,
565,
262,
3238,
1135,
261,
6430,
13,
288,
... |
pragma solidity =0.6.6;
import "@openzeppelin/contracts/proxy/BeaconProxy.sol";
import "@openzeppelin/contracts/proxy/UpgradeableBeacon.sol";
contract OwnedBeaconProxy is BeaconProxy {
bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
event AdminChange... | * @dev This contract implements a proxy that gets the implementation address for each call from a {UpgradeableBeacon}. The beacon address is stored in storage slot `uint256(keccak256('eip1967.proxy.beacon')) - 1`, so that it doesn't conflict with the storage layout of the implementation behind the proxy. _Available sin... | contract BeaconProxy is Proxy {
bytes32 private constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
}
constructor(address beacon, bytes memory data) public payable {
assert(_BEACON_SLOT == bytes32(uint256(keccak256("eip1967.proxy.beacon")) - 1));
_setBea... | 14,737,149 | [
1,
2503,
6835,
4792,
279,
2889,
716,
5571,
326,
4471,
1758,
364,
1517,
745,
628,
279,
288,
10784,
429,
1919,
16329,
5496,
1021,
29203,
1758,
353,
4041,
316,
2502,
4694,
1375,
11890,
5034,
12,
79,
24410,
581,
5034,
2668,
73,
625,
3657,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4823,
16329,
3886,
353,
7659,
288,
203,
565,
1731,
1578,
3238,
5381,
389,
5948,
2226,
673,
67,
55,
1502,
56,
273,
374,
6995,
23,
74,
20,
361,
5608,
73,
6564,
4366,
8906,
70,
8313,
3672,
72,
23,
10241,
24,
5026,
9222,
828... |
pragma solidity ^0.4.24;
contract PriceOracleInterface {
/**
* @notice Gets the price of a given asset
* @dev fetches the price of a given asset
* @param asset Asset to get the price of
* @return the price scaled by 10**18, or zero if the price is not available
*/
function assetPr... | save for use in event
| localResults.startingSupplyBalance_LiquidatorCollateralAsset = supplyBalance_LiquidatorCollateralAsset.principal; | 2,476,539 | [
1,
5688,
364,
999,
316,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1191,
3447,
18,
18526,
3088,
1283,
13937,
67,
48,
18988,
350,
639,
13535,
2045,
287,
6672,
273,
14467,
13937,
67,
48,
18988,
350,
639,
13535,
2045,
287,
6672,
18,
26138,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/84531/0xb02B34c48138464888A477a6F0CC96d8Ce2Fe3F0/sources/contracts/Cafe.sol | * Check each assert in each test to see if any failed. Note: The check is here instead of setting a `passed` bool in `TestResult` to reduce the amount of code in each unit test./ | function checkIfAllPassed(
TestResult[] memory _testResults
) public pure returns (bool) {
for (uint i = 0; i < _testResults.length; i++) {
for (uint k = 0; k < _testResults[i].assertResults.num; k++) {
if (!_testResults[i].assertResults.elements[k].passed) {
... | 11,511,082 | [
1,
1564,
1517,
1815,
316,
1517,
1842,
358,
2621,
309,
1281,
2535,
18,
3609,
30,
225,
1021,
866,
353,
2674,
3560,
434,
3637,
279,
1375,
23603,
68,
1426,
316,
1375,
4709,
1253,
68,
358,
5459,
326,
3844,
434,
981,
316,
1517,
2836,
1842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19130,
1595,
22530,
12,
203,
3639,
7766,
1253,
8526,
3778,
389,
3813,
3447,
203,
565,
262,
1071,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
389,
3813,
3447,
18,
2469,
31,
... |
./full_match/1/0x37af0fBBe45dbFC40b63956c1e7bBd2D22C63eEa/sources/contracts/Zauction.sol | Create a bid object hashed with the current contract address @param auctionId unique per address auction identifier chosen by seller @param bid token amount bid @param nftAddress address of the nft contract @param tokenId token id we are transferring @param minbid minimum bid allowed @param startBlock block number at ... | function createBid(
uint256 auctionId,
uint256 bid,
address nftAddress,
uint256 tokenId,
uint256 minbid,
uint256 startBlock,
uint256 expireBlock
) public view returns (bytes32 data) {
data = keccak256(
abi.encode(
auctionId,
address(this),
block.chainid,... | 17,125,725 | [
1,
1684,
279,
9949,
733,
14242,
598,
326,
783,
6835,
1758,
225,
279,
4062,
548,
3089,
1534,
1758,
279,
4062,
2756,
10447,
635,
29804,
225,
9949,
1147,
3844,
9949,
225,
290,
1222,
1887,
1758,
434,
326,
290,
1222,
6835,
225,
1147,
548,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
752,
17763,
12,
203,
565,
2254,
5034,
279,
4062,
548,
16,
203,
565,
2254,
5034,
9949,
16,
203,
565,
1758,
290,
1222,
1887,
16,
203,
565,
2254,
5034,
1147,
548,
16,
203,
565,
2254,
5034,
1131,
19773,
16,
203,
565,
2254... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./RobiToken.sol";
/// @dev RobiToken interface containing only needed methods
inter... | @notice votes mapping maps proposal id (uint256) to its Votes | mapping(uint256 => Votes) private votes;
| 879,510 | [
1,
27800,
2874,
7565,
14708,
612,
261,
11890,
5034,
13,
358,
2097,
776,
6366,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
11890,
5034,
516,
776,
6366,
13,
3238,
19588,
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,
-1... |
./full_match/5/0x4125F21293b86B0F951859D535312E9E62570B33/sources/project_/contracts/Horae.sol | Name of the tokenSymbol of the tokenOwner of the tokenbaseURI of tokens Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvalsMapping from token ID to token URIWatch attributes | contract MyToken {
string public _name = "Horae";
string public _symbol = "HOR";
address public _owner;
string public _baseURI;
mapping(uint256 => address) public _owners;
mapping(address => uint256) public _balances;
mapping(uint256 => address) public _tokenApprovals;
mapping(addre... | 1,936,405 | [
1,
461,
434,
326,
1147,
5335,
434,
326,
1147,
5541,
434,
326,
1147,
1969,
3098,
434,
2430,
9408,
628,
1147,
1599,
358,
3410,
1758,
9408,
3410,
1758,
358,
1147,
1056,
9408,
628,
1147,
1599,
358,
20412,
1758,
9408,
628,
3410,
358,
3726,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8005,
1345,
288,
203,
203,
565,
533,
1071,
389,
529,
273,
315,
44,
280,
8906,
14432,
203,
565,
533,
1071,
389,
7175,
273,
315,
44,
916,
14432,
203,
565,
1758,
1071,
389,
8443,
31,
203,
565,
533,
1071,
389,
1969,
3098,
31... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import {StableDebtToken} from '../protocol/tokenization/StableDebtToken.sol';
import {VariableDebtToken} from '../protocol/tokenization/VariableDebtToken.sol';
import {LendingRateOracle} from '../mocks/oracle/LendingRateOrac... | * @title VariableDebtToken @notice Implements a variable debt token to track the borrowing positions of users at variable rate mode @author Aave/ | contract VariableDebtToken is DebtTokenBase, IVariableDebtToken {
using WadRayMath for uint256;
uint256 public constant DEBT_TOKEN_REVISION = 0x1;
ILendingPool internal _pool;
address internal _underlyingAsset;
IAaveIncentivesController internal _incentivesController;
function initialize(
ILendingPoo... | 135,601 | [
1,
3092,
758,
23602,
1345,
225,
29704,
279,
2190,
18202,
88,
1147,
358,
3298,
326,
29759,
310,
6865,
434,
3677,
622,
2190,
4993,
1965,
225,
432,
836,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7110,
758,
23602,
1345,
353,
1505,
23602,
1345,
2171,
16,
467,
3092,
758,
23602,
1345,
288,
203,
225,
1450,
678,
361,
54,
528,
10477,
364,
2254,
5034,
31,
203,
203,
225,
2254,
5034,
1071,
5381,
2030,
38,
56,
67,
8412,
67,
... |
// Наречия, которые могут предварять предложение без отбивки запятой
wordentry_set AdvAsClausePrefix =
{
eng_adverb:Finally{}, // Finally I would like to express my debt to my personal heroes.
eng_adverb:In all likelihood{}, // In all likelihood we are headed for war.
eng_adverb:Hopefully{}, // Hopefully the weathe... | Thereafter he never called again.
| eng_adverb:Thereafter{}, | 13,045,048 | [
1,
9828,
5205,
3904,
5903,
2566,
3382,
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,
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,
24691,
67,
361,
16629,
30,
9828,
5205,
2916,
16,
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,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.11;
import './ArrayInterface.sol';
/// @notice "normal" array implementation used as base case for comparison
/// @dev light wrapper around uint8[] array
/// @author Adapted by @devtooligan from https://solidity-by-example.org/array/
contract NormalAr... | @dev delete element and replace it with a popped element @param index of element to remove | function remove(uint256 index) public {
arr[index] = pop();
}
| 15,806,298 | [
1,
3733,
930,
471,
1453,
518,
598,
279,
30766,
930,
225,
770,
434,
930,
358,
1206,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1206,
12,
11890,
5034,
770,
13,
1071,
288,
203,
3639,
2454,
63,
1615,
65,
273,
1843,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/42/0x0A1826b2C8dB24Fe9F18ADe9fd717E8B3DE2DB68/sources/NANJCOIN.sol | * 彡(゚)(゚) @title NANJCOIN @author Tsuchinoko & NanJ people @dev NANJCOIN is an ERC223 Token with ERC20 functions and events Fully backward compatible with ERC20/ | contract NANJCOIN is ERC223, Ownable {
using SafeMath for uint256;
string public name = "NANJCOIN";
string public symbol = "NANJ";
string public constant AAcontributors = "sybit & クリプたん";
uint8 public decimals = 8;
uint256 public totalSupply = 30e9 * 1e8;
uint256 public distributeAmount = 0... | 3,308,037 | [
1,
166,
126,
99,
12,
176,
127,
258,
21433,
176,
127,
258,
13,
225,
21600,
46,
3865,
706,
225,
24709,
2648,
267,
601,
83,
473,
23294,
46,
16951,
225,
21600,
46,
3865,
706,
353,
392,
4232,
39,
3787,
23,
3155,
598,
4232,
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,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
16351,
21600,
46,
3865,
706,
353,
4232,
39,
3787,
23,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
1071,
508,
273,
315,
50,
1258,
46,
3865,
706,
14432,
203,
565,
533,
1071,
3273,
... |
/**
* Copyright 2017-2019, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.3;
pragma experimental ABIEncoderV2;
import "../openzeppelin-solidity/Math.sol";
import "../proxy/BZxProxiable.sol";
import "../shared/OrderClosingFunctions.sol";
import "../BZxVa... | @dev Called to close a loan in full for someone else @param loanOrderHash A unique hash representing the loan order @param borrower The borrower whose loan to close in full (for margin trades, this has to equal the sender) @return True on success | function closeLoanForBorrower(
bytes32 loanOrderHash,
address borrower)
external
nonReentrant
tracksGas
returns (bool)
{
return _closeLoan(
loanOrderHash,
borrower,
);
}
| 7,227,986 | [
1,
8185,
358,
1746,
279,
28183,
316,
1983,
364,
18626,
469,
225,
28183,
2448,
2310,
432,
3089,
1651,
5123,
326,
28183,
1353,
225,
29759,
264,
1021,
29759,
264,
8272,
28183,
358,
1746,
316,
1983,
261,
1884,
7333,
1284,
5489,
16,
333,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
1504,
304,
1290,
38,
15318,
264,
12,
203,
3639,
1731,
1578,
28183,
2448,
2310,
16,
203,
3639,
1758,
29759,
264,
13,
203,
3639,
3903,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
13933,
27998,
203,
3639,
1135,
261,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-06
*/
/* The internet is full of trolls, and in the realm of crypto, the population is especially concentrated. Come visit us at t.me/TrollsOfTelegram and see what type of troll you are and get rewarded with Ethereum. The Trolls token has a special wallet to... | price impact limit
| require(amount <= balanceOf(uniswapV2Pair).mul(_priceImpact).div(100)); | 2,441,257 | [
1,
8694,
15800,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
10792,
2583,
12,
8949,
1648,
11013,
951,
12,
318,
291,
91,
438,
58,
22,
4154,
2934,
16411,
24899,
8694,
22683,
621,
2934,
2892,
12,
6625,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xa943F863fA69ff4F6D9022843Fb861BBEe45B2ce/sources/TangleBundle0.sol | @notice Returns the amount of a Tangle holder's Tangle a spender is allowed to spend @param _owner The Tangle token holder's address @param _spender The spender's address @return The amount that can be spent | function allowance(address _owner, address _spender)
external
view
returns
(uint)
{
return SLib.getS().allowances[_owner][_spender];
}
| 17,007,029 | [
1,
1356,
326,
3844,
434,
279,
399,
4341,
10438,
1807,
399,
4341,
279,
17571,
264,
353,
2935,
358,
17571,
225,
389,
8443,
1021,
399,
4341,
1147,
10438,
1807,
1758,
225,
389,
87,
1302,
264,
1021,
17571,
264,
1807,
1758,
327,
1021,
3844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
203,
3639,
261,
11890,
13,
203,
565,
288,
203,
3639,
327,
348,
5664,
18,
588,
55,
7675,
5965,
6872,... |
./partial_match/1/0xF66C6fDBDD7d57dD14D23d0C8A4E58Cc4869bBfa/sources/SaferERC20.sol | * @title SaferERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SaferERC20 for IERC... | library SaferERC20 {
using Address for address;
function safeTransferToSelf(IERC20 token, uint256 value) internal returns (uint256) {
if(address(token) == address(0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF)) {
require(msg.value >= value, "insuff.eth");
uint256 dust = msg.value ... | 3,949,113 | [
1,
55,
69,
586,
654,
39,
3462,
225,
4266,
10422,
6740,
4232,
39,
3462,
5295,
716,
604,
603,
5166,
261,
13723,
326,
1147,
6835,
1135,
629,
2934,
13899,
716,
327,
1158,
460,
261,
464,
3560,
15226,
578,
604,
603,
5166,
13,
854,
2546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
348,
69,
586,
654,
39,
3462,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
203,
565,
445,
4183,
5912,
774,
10084,
12,
45,
654,
39,
3462,
1147,
16,
2254,
5034,
460,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
... |
./full_match/1/0x9eE4530EE122E82c700Ef355CC9b8F11079AE636/sources/contracts/protocol/libraries/helpers/Errors.sol | * @title Errors library @author Sturdy, inspiration from Aave @notice Defines the error messages emitted by the different contracts of the Sturdy protocol @dev Error messages prefix glossary: - VL = ValidationLogic - MATH = Math libraries - CT = Common errors between tokens (AToken, VariableDebtToken and StableDebtT... | library Errors {
string internal constant LP_INCONSISTENT_FLASHLOAN_PARAMS = '28';
string internal constant MATH_MULTIPLICATION_OVERFLOW = '48';
string internal constant MATH_ADDITION_OVERFLOW = '49';
string internal constant MATH_DIVISION_BY_ZERO = '50';
string internal constant LP_FAILED_REPAY_WITH_COLLATE... | 3,217,715 | [
1,
4229,
5313,
225,
934,
295,
15680,
16,
316,
1752,
5447,
628,
432,
836,
225,
18003,
281,
326,
555,
2743,
17826,
635,
326,
3775,
20092,
434,
326,
934,
295,
15680,
1771,
225,
1068,
2743,
1633,
30256,
30,
225,
300,
776,
48,
273,
5684,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
9372,
288,
203,
203,
225,
533,
2713,
5381,
511,
52,
67,
706,
2248,
28175,
67,
42,
16504,
1502,
1258,
67,
16785,
273,
296,
6030,
13506,
203,
225,
533,
2713,
5381,
28394,
67,
24683,
11154,
67,
12959,
17430,
273,
296,
8875,
1... |
/* ==================================================================== */
/* Copyright (c) 2018 The ether.online Project. All rights reserved.
/*
/* https://ether.online The first RPG game of blockchain
/*
/* authors <span class="__cf_email__" data-cfemail="1c6e757f7774697268796e326f7479725c7b717d7570327f7371">[... | @dev Equipment token ID vs owner address | mapping (uint256 => address) fashionIdToOwner;
| 2,160,045 | [
1,
13142,
11568,
1147,
1599,
6195,
3410,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
261,
11890,
5034,
516,
1758,
13,
30957,
28803,
5541,
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,
... |
./full_match/1/0x3d12d0edC8f0284A49FfAc3196Ee1f796b454757/sources/contracts/dandyducks.sol | Reserve 125 Ducks for team - Giveaways/Prizes etc | contract DandyDucks is ERC721, Ownable {
using SafeMath for uint256;
uint public constant maxDuckPurchase = 20;
uint256 public constant MAX_DUCKS = 9999;
bool public saleIsActive = false;
mapping(uint => string) public duckNames;
uint public duckReserve = 125;
event duckNameChange... | 8,464,423 | [
1,
607,
6527,
30616,
463,
9031,
87,
364,
5927,
300,
22374,
69,
3052,
19,
2050,
3128,
5527,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
463,
464,
93,
40,
9031,
87,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
203,
203,
203,
565,
2254,
1071,
5381,
943,
40,
9031,
23164,
273,
4200,
31,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IStrategyV2.sol";
import "../../ValueVaultMaster.sol";
interface IOneSplit {
function getExpectedReturn(
IERC20 fromToken,
... | Sometime the balance could be slightly changed (due to the pool, or because we call xxxByGov methods) | function setPoolBalance(uint256 _poolId, uint256 _balance) external {
require(msg.sender == governance || msg.sender == strategist, "!governance && !strategist");
poolMap[_poolId].balance = _balance;
}
| 5,504,759 | [
1,
55,
362,
2374,
326,
11013,
3377,
506,
21980,
3550,
261,
24334,
358,
326,
2845,
16,
578,
2724,
732,
745,
23354,
858,
43,
1527,
2590,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
2864,
13937,
12,
11890,
5034,
389,
6011,
548,
16,
2254,
5034,
389,
12296,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
314,
1643,
82,
1359,
747,
1234,
18,
15330,
422,
609,
1287,
376,
16,
17528,
75,
1... |
pragma solidity ^0.4.24;
interface PlayerBookInterface {
function getPlayerID(address _addr) external returns (uint256);
function getPlayerName(uint256 _pID) external view returns (bytes32);
function getPlayerLAff(uint256 _pID) external view returns (uint256);
function getPlayerAddr(uint256 _pID) exter... | * @dev calculates unmasked earnings (just calculates, does not update mask) @return earnings in wei format/ | function calcUnMaskedEarnings(uint256 _pID, uint256 _rIDlast)
private
view
returns(uint256)
{
return( (((round_[_rIDlast].mask).mul(plyrRnds_[_pID][_rIDlast].keys)) / (1000000000000000000)).sub(plyrRnds_[_pID][_rIDlast].mask) );
}
| 1,205,455 | [
1,
12780,
815,
640,
23455,
425,
1303,
899,
261,
3732,
17264,
16,
1552,
486,
1089,
3066,
13,
327,
425,
1303,
899,
316,
732,
77,
740,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7029,
984,
5796,
329,
41,
1303,
899,
12,
11890,
5034,
389,
84,
734,
16,
2254,
5034,
389,
86,
734,
2722,
13,
203,
565,
3238,
203,
565,
1476,
203,
565,
1135,
12,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
12,
225... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
contract ArrayExample {
// dynamic length array
bytes32[] public names;
// fixed length array
bytes[4] public fNames;
function arrTest() public returns(uint) {
// assign inline
string[4] memory _inlineArray =... | dynamic length array fixed length array | contract ArrayExample {
bytes32[] public names;
bytes[4] public fNames;
function arrTest() public returns(uint) {
string[4] memory _inlineArray = ["sam","mike","peter","mckay"];
uint[3][] memory multiArray;
fNames[0] = "Matt";
names.push... | 14,070,323 | [
1,
14507,
769,
526,
5499,
769,
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,
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,
16351,
1510,
10908,
288,
203,
203,
565,
1731,
1578,
8526,
1071,
1257,
31,
203,
377,
203,
565,
1731,
63,
24,
65,
1071,
284,
1557,
31,
203,
377,
203,
203,
565,
445,
2454,
4709,
1435,
1071,
1135,
12,
11890,
13,
288,
203,
3639,
533... |
./full_match/56/0x3Fd3C966381b668EFc5A5Efbc55BFAEd652Bb1AE/sources/project:/contracts/shard_warriors.sol | start time of construction
| uint256 startTs; | 3,234,504 | [
1,
1937,
813,
434,
16171,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
787,
17218,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint2... | minimum funding amount for 30% volume bonus | uint256 public constant VOLUME_BONUS_CONDITION = 7 ether;
| 5,910,217 | [
1,
15903,
22058,
3844,
364,
5196,
9,
3940,
324,
22889,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
776,
1741,
24027,
67,
38,
673,
3378,
67,
22017,
273,
2371,
225,
2437,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File: @openzeppelin/contracts/security/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* availab... | * @dev Returns the total amount of tokens stored by the contract./* @dev Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens./* @dev Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {tot... | abstract contract ERC165 is IERC165 {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
!Disclaimer!
These contracts have been used to create tutorials,
... | 1,259,662 | [
1,
1356,
326,
2078,
3844,
434,
2430,
4041,
635,
326,
6835,
18,
19,
225,
2860,
279,
1147,
1599,
16199,
635,
1375,
8443,
68,
622,
279,
864,
1375,
1615,
68,
434,
2097,
1147,
666,
18,
2672,
7563,
598,
288,
12296,
951,
97,
358,
4241,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
28275,
353,
467,
654,
39,
28275,
288,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
... |
./partial_match/1/0xEb0C29Cb76E673dAA6fc24822909968E27BE41a2/sources/ETHStakingContract0xBoost41.sol | 0.042857142857143%
| currentInterestRate = 42857142857143; | 15,467,933 | [
1,
20,
18,
3028,
6030,
10321,
3461,
6030,
10321,
28643,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
783,
29281,
4727,
273,
1059,
6030,
10321,
3461,
6030,
10321,
28643,
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... |
./partial_match/1/0x33E82253e8b84e7Ea95B7eDC710Be3bF576A975E/sources/AccessControlledAggregator.sol | * @notice get data about the latest round. Consumers are encouraged to check that they're receiving fresh data by inspecting the updatedAt and answeredInRound return values. Consumers are encouraged to use this more fully featured method over the "legacy" getAnswer/ latestAnswer/getTimestamp/latestTimestamp functions. ... | function latestRoundData()
public
view
override
checkAccess()
returns (
uint256 roundId,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint256 answeredInRound
)
{
return super.latestRoundData();
}
| 4,154,589 | [
1,
588,
501,
2973,
326,
4891,
3643,
18,
22210,
414,
854,
2446,
477,
11349,
358,
866,
716,
2898,
4565,
15847,
12186,
501,
635,
5334,
310,
326,
31944,
471,
5803,
329,
382,
11066,
327,
924,
18,
22210,
414,
854,
2446,
477,
11349,
358,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
4891,
11066,
751,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
3849,
203,
565,
28484,
1435,
203,
565,
1135,
261,
203,
1377,
2254,
5034,
3643,
548,
16,
203,
1377,
509,
5034,
5803,
16,
203,
1377,
2254,
5034,
5746,
861,... |
pragma solidity ^0.4.13;
/**
* 10X contract
* Copyright 2017, TheWolf
*
* An infinite crowdfunding lottery token
* Using a permanent delivery of tokens as a reward to the lost bids.
* With a bullet proof random generation algorithm and a lot of inovative features
* With a state machine switching autom... | take the last byte and extract a number between 1-9 (drawn number) | function lastChar(string _x) internal constant returns (uint8) {
bytes memory a=stringToBytes(_x);
if (a.length<=1) revert();
uint8 b=uint8(a[a.length-1])-48;
b=b%10;
if (b<0) {
LogMsg(msg.sender, "tochar: Impossible, address logged");
if (msg.sender!... | 12,609,358 | [
1,
22188,
326,
1142,
1160,
471,
2608,
279,
1300,
3086,
404,
17,
29,
261,
9446,
82,
1300,
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,... | [
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,
23914,
12,
1080,
389,
92,
13,
225,
2713,
5381,
1135,
261,
11890,
28,
13,
288,
203,
3639,
1731,
3778,
279,
33,
1080,
21033,
24899,
92,
1769,
203,
3639,
309,
261,
69,
18,
2469,
32,
33,
21,
13,
15226,
5621,
203,
3639,
... |
./full_match/1/0x8f07ABE7FA18a56930889a7FFEB9d78D8361DFd7/sources/contracts/BeardGangLandNFTICO.sol | * @title Crowdsale @dev Crowdsale is a base contract for managing a token crowdsale, allowing investors to purchase tokens with ether. This contract implements such functionality in its most fundamental form and can be extended to provide additional functionality and/or custom behavior. The external interface represent... | contract Crowdsale is Context, ReentrancyGuard {
using SafeMath for uint256;
IBeardGangLandNFTToken private _token;
uint256 private _weiRaised;
address payable private _wallet;
uint256 internal _rate = 50000000000000000;
event TokensPurchased(address indexed purchaser, address indexed bene... | 9,605,295 | [
1,
39,
492,
2377,
5349,
225,
385,
492,
2377,
5349,
353,
279,
1026,
6835,
364,
30632,
279,
1147,
276,
492,
2377,
5349,
16,
15632,
2198,
395,
1383,
358,
23701,
2430,
598,
225,
2437,
18,
1220,
6835,
4792,
4123,
14176,
316,
2097,
4486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
492,
2377,
5349,
353,
1772,
16,
868,
8230,
12514,
16709,
225,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
1919,
1060,
43,
539,
29398,
50,
4464,
1345,
3238,
389,
2316,
31,
203,
203,
565,... |
/**
*Submitted for verification at Etherscan.io on 2021-08-29
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
/**
* @dev Interface for discreet in addition to the standard ERC721 interface.
*/
interface discreetNFTInterface {
/**
* @dev Mint token with the supplied tokenId if it is currently av... | * @dev Interface for discreet in addition to the standard ERC721 interface./ | interface discreetNFTInterface {
function mint(uint256 tokenId) external;
function mint(address to, uint256 tokenId) external;
function burn(uint256 tokenId) external;
function reclaimableThreshold(uint256 tokenId) external view returns (uint256);
pragma solidity 0.8.7;
}
| 7,702,837 | [
1,
1358,
364,
1015,
1793,
278,
316,
2719,
358,
326,
4529,
4232,
39,
27,
5340,
1560,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
1015,
1793,
278,
50,
4464,
1358,
288,
203,
565,
445,
312,
474,
12,
11890,
5034,
1147,
548,
13,
3903,
31,
203,
203,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
3903,
31,
203,
203,
565,
445,
18305,
1... |
// SPDX-License-Identifier: NONE
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
/**
* @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 ... | * @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ... | function getPriorVotes(address account, uint blockNumber) external view returns (uint96) {
require(blockNumber < block.number, "DAWG::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return 0;
}
if (che... | 59,205 | [
1,
8519,
326,
6432,
1300,
434,
19588,
364,
392,
2236,
487,
434,
279,
1203,
1300,
225,
3914,
1300,
1297,
506,
279,
727,
1235,
1203,
578,
469,
333,
445,
903,
15226,
358,
5309,
7524,
13117,
18,
225,
2236,
1021,
1758,
434,
326,
2236,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1689,
2432,
29637,
12,
2867,
2236,
16,
2254,
1203,
1854,
13,
3903,
1476,
1135,
261,
11890,
10525,
13,
288,
203,
3639,
2583,
12,
2629,
1854,
411,
1203,
18,
2696,
16,
315,
9793,
59,
43,
2866,
588,
25355,
29637,
30,
486,
... |
./full_match/80001/0xE4ED7dc465A367F8a1A58526Da407dDD5a232E0C/sources/contracts/SonicaERC721DelayedReveal.sol | @dev Checks whether platform fee info can be set in the given execution context. | function _canSetClaimConditions()
internal
view
virtual
returns (bool)
{
return msg.sender == owner();
}
| 5,574,061 | [
1,
4081,
2856,
4072,
14036,
1123,
848,
506,
444,
316,
326,
864,
4588,
819,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4169,
694,
9762,
8545,
1435,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
1234,
18,
15330,
422,
3410,
5621,
203,
565,
289,
203,
203,
2,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.4;
import {IOracle} from "./interfaces/IOracle.sol";
import "./interfaces/IButtonToken.sol";
import {
OwnableUpgradeable
} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import {SafeERC20} from "@openzeppelin/contracts/toke... | @inheritdoc IRebasingERC20 | function scaledTotalSupply() external view override returns (uint256) {
return _bitsToUAmount(_activeBits());
}
| 86,031 | [
1,
36,
10093,
467,
426,
9157,
310,
654,
39,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12304,
5269,
3088,
1283,
1435,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
6789,
774,
57,
6275,
24899,
3535,
6495,
10663,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-01-14
*/
/**
*Submitted for verification at Etherscan.io on 2022-01-13
*/
// 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
... | * @dev See {IERC721-balanceOf}./ | function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
| 101,859 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
12296,
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,
445,
11013,
951,
12,
2867,
3410,
13,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
27,
5340,
30,
11013,
843,
364,
326,
3634,
1758,
8863,
203,
565,... |
pragma solidity ^0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
// Gas optimization: this is ... | if the sender is not in the list add the sender to the list | function addToList(address sender) private {
addedToList[sender] = true;
if (indexes[sender] == 0) {
_totalTokens = _totalTokens.add(contributionsToken[sender]);
_totalWei = _totalWei.add(contributionsEth[sender]);
lastIndex++;
addresses[lastIndex] = sender;
indexes[sender] = la... | 2,501,394 | [
1,
430,
326,
5793,
353,
486,
316,
326,
666,
527,
326,
5793,
358,
326,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9604,
682,
12,
2867,
5793,
13,
3238,
288,
203,
565,
3096,
25772,
63,
15330,
65,
273,
638,
31,
203,
565,
309,
261,
11265,
63,
15330,
65,
422,
374,
13,
288,
203,
1377,
389,
4963,
5157,
273,
389,
4963,
5157,
18,
1289,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view ret... | * @dev Reclaim all IERC20 compatible tokens @param _token IERC20 The address of the token contract/ | function reclaimERC20Token(IERC20 _token) external onlyRoot {
uint256 balance = _token.balanceOf(this);
_token.safeTransfer(root, balance);
}
| 12,780,369 | [
1,
426,
14784,
777,
467,
654,
39,
3462,
7318,
2430,
225,
389,
2316,
467,
654,
39,
3462,
1021,
1758,
434,
326,
1147,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
14784,
654,
39,
3462,
1345,
12,
45,
654,
39,
3462,
389,
2316,
13,
3903,
1338,
2375,
288,
203,
3639,
2254,
5034,
11013,
273,
389,
2316,
18,
12296,
951,
12,
2211,
1769,
203,
3639,
389,
2316,
18,
4626,
5912,
12,
308... |
pragma solidity >=0.4.21<0.6.0;
// ---------------------------------------------
// CryptoVote.sol
// ---------------------------------------------
// Copyright (c) 2018 PLUSPLUS CO.,LTD.
// Released under the MIT license
// https://www.plusplus.jp/
// ---------------------------------------------
contract CryptoVote... | *********************************** 投票結果参照 ----------------------------------- 【条件】 なし *********************************** | function getResult(bytes32 _campaignId) public view returns (uint[]) {
require(isExist(_campaignId) == true);
return RecordList[_campaignId];
}
| 12,642,130 | [
1,
167,
237,
248,
168,
103,
106,
168,
118,
243,
167,
257,
255,
166,
242,
229,
168,
232,
105,
19134,
413,
225,
164,
227,
243,
167,
256,
99,
165,
124,
119,
164,
227,
244,
225,
164,
228,
108,
164,
228,
250,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8601,
12,
3890,
1578,
389,
14608,
548,
13,
1071,
1476,
1135,
261,
11890,
63,
5717,
288,
203,
3639,
2583,
12,
291,
4786,
24899,
14608,
548,
13,
422,
638,
1769,
203,
3639,
327,
5059,
682,
63,
67,
14608,
548,
15533,
203,
... |
pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint25... | Установить торгуемый токен | function setToken (ERC20 _token) public onlyOwner {
token = _token;
}
| 10,577,123 | [
1,
145,
101,
146,
228,
146,
229,
145,
113,
145,
126,
145,
127,
145,
115,
145,
121,
146,
229,
146,
239,
225,
146,
229,
145,
127,
146,
227,
145,
116,
146,
230,
145,
118,
145,
125,
146,
238,
145,
122,
225,
146,
229,
145,
127,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22629,
261,
654,
39,
3462,
389,
2316,
13,
1071,
1338,
5541,
288,
203,
3639,
1147,
273,
389,
2316,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/4/0xC428d51F3FA9DB2E6F9a7c57af3456e53512251b/sources/browser/GlacierProtocol.sol | * @dev Send token holding bonus to account/ | function _sendBonus(address account) internal {
if (account == address(0) || account == address(this) || isContract(account)) {
return;
}
User storage u = _users[account];
if (!u.holdFlag) {
return;
uint256 tNow = now;
uint256 bal = _ba... | 670,008 | [
1,
3826,
1147,
19918,
324,
22889,
358,
2236,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4661,
38,
22889,
12,
2867,
2236,
13,
2713,
288,
203,
3639,
309,
261,
4631,
422,
1758,
12,
20,
13,
747,
2236,
422,
1758,
12,
2211,
13,
747,
353,
8924,
12,
4631,
3719,
288,
203,
5411,
327,
31,
203,
3639,
289,
203... |
pragma solidity ^0.4.18;
/**
* Overflow aware uint math functions.
*
* Inspired by https://github.com/MakerDAO/maker-otc/blob/master/contracts/simple_market.sol
*/
contract SafeMath {
//internals
function safeMul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / ... | unit: block count, estimate: 95 days, July 20, 0:00, UTC-7
| uint totalPeriod = 256 * 24 * 95; | 2,484,428 | [
1,
4873,
30,
1203,
1056,
16,
11108,
30,
16848,
4681,
16,
804,
332,
93,
4200,
16,
374,
30,
713,
16,
9951,
17,
27,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
2078,
5027,
273,
8303,
380,
4248,
380,
16848,
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,
... |
./full_match/1/0x54253de6f4119b99FB507bE99d87EF5C94c343E6/sources/localhost/contracts/FLReceiver.sol | address private constant DAI_ADDRESS = 0x6B175474E89094C44Da98b954EedeAC495271d0F; | IERC20 private constant enterToken = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F);
| 9,746,162 | [
1,
2867,
3238,
5381,
463,
18194,
67,
15140,
273,
374,
92,
26,
38,
4033,
6564,
5608,
41,
6675,
5908,
24,
39,
6334,
40,
69,
10689,
70,
29,
6564,
41,
73,
323,
2226,
7616,
25,
5324,
21,
72,
20,
42,
31,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
654,
39,
3462,
3238,
5381,
6103,
1345,
273,
467,
654,
39,
3462,
12,
20,
92,
26,
38,
4033,
6564,
5608,
41,
6675,
5908,
24,
39,
6334,
40,
69,
10689,
70,
29,
6564,
41,
73,
323,
2226,
7616,
25,
5324,
21,
72,
20,
42,
... |
./full_match/1/0x6c51041A91C91C86f3F08a72cB4D3F67f1208897/sources/src/base/Cellar.sol | * @notice Simulate the effects of redeeming shares at the current block, given current on-chain conditions. @param shares amount of shares to redeem @return assets that will be returned/ | function previewRedeem(uint256 shares) public view override returns (uint256 assets) {
(uint256 _totalAssets, uint256 _totalSupply) = _getTotalAssetsAndTotalSupply(false);
assets = _convertToAssets(shares, _totalAssets, _totalSupply);
}
| 5,008,865 | [
1,
7993,
6243,
326,
16605,
434,
283,
24903,
310,
24123,
622,
326,
783,
1203,
16,
864,
783,
603,
17,
5639,
4636,
18,
225,
24123,
3844,
434,
24123,
358,
283,
24903,
327,
7176,
716,
903,
506,
2106,
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,
10143,
426,
24903,
12,
11890,
5034,
24123,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
7176,
13,
288,
203,
3639,
261,
11890,
5034,
389,
4963,
10726,
16,
2254,
5034,
389,
4963,
3088,
1283,
13,
273,
389,
588,
5269,
10726,... |
./full_match/3/0xEA541B886E3Dd7c3557ecFA23845Cc8644efC250/sources/JOKE.sol | * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. This internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero add... | function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "JOKE: approve from the zero address");
require(spender != address(0), "JOKE: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, s... | 8,220,710 | [
1,
2785,
1375,
8949,
68,
487,
326,
1699,
1359,
434,
1375,
87,
1302,
264,
68,
1879,
326,
1375,
8443,
68,
272,
2430,
18,
1220,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
9191,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
444,
5859,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
12908,
537,
12,
2867,
3410,
16,
1758,
17571,
264,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
46,
3141,
41,
30,
6617,
537,
628,
326,
3634,
1758,
8863,
203,
... |
pragma solidity ^0.4.23;
// File: contracts/Owned.sol
// ----------------------------------------------------------------------------
// Ownership functionality for authorization controls and user permissions
// ----------------------------------------------------------------------------
contract Owned {
... | Function to burn all unsold tokens after sale has ended All unsold tokens that are held by this contract get burned | function burnUnsoldTokens() public afterEnd onlyOwner {
uint256 tokensToBurn = token.balanceOf(address(this));
token.burn(tokensToBurn);
}
| 12,639,801 | [
1,
2083,
358,
18305,
777,
16804,
1673,
2430,
1839,
272,
5349,
711,
16926,
4826,
16804,
1673,
2430,
716,
854,
15770,
635,
333,
6835,
336,
18305,
329,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
984,
87,
1673,
5157,
1435,
1071,
1839,
1638,
1338,
5541,
288,
203,
377,
202,
11890,
5034,
2430,
774,
38,
321,
273,
1147,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
377,
202,
2316,
18,
70,
321,
12,
7860,
77... |
pragma solidity >=0.5.0;
contract PiggyBank {
// State variables:
address payable owner; // contract owner's address;
uint limit; // piggybank's minimal limit to withdraw;
uint128 balance; // piggybank's deposit balance;
uint version = 1; // version of the PiggyBank.
// Modifier that allows public functi... | Function that can be called only by the owner after reaching the limit. | function withdraw() public checkBalance checkOwnerAndAccept {
msg.sender.transfer(balance);
balance = 0;
}
| 15,840,074 | [
1,
2083,
716,
848,
506,
2566,
1338,
635,
326,
3410,
1839,
9287,
310,
326,
1800,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
598,
9446,
1435,
1071,
866,
13937,
866,
5541,
1876,
5933,
288,
203,
202,
202,
3576,
18,
15330,
18,
13866,
12,
12296,
1769,
203,
202,
202,
12296,
273,
374,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/42220/0x5c421066EbA9E1387f8BEa709c08C8425F0E1350/sources/contracts/PriceFeedFactory.sol | sliding window oracle that uses observations collected over a window to provide moving price averages in the past `windowSize` with a precision of `windowSize / granularity` note this is a singleton oracle and only needs to be deployed once per desired parameters, which differs from the simple oracle which must be dep... | contract SlidingWindowOracle {
using FixedPoint for *;
struct Observation {
uint timestamp;
uint price0Cumulative;
uint price1Cumulative;
}
address public immutable factory;
address public immutable feedFactory;
uint public immutable windowSize;
uint8 public immut... | 16,323,744 | [
1,
2069,
10415,
2742,
20865,
716,
4692,
16477,
12230,
1879,
279,
2742,
358,
5615,
12499,
6205,
23713,
1023,
316,
326,
8854,
1375,
5668,
1225,
68,
598,
279,
6039,
434,
1375,
5668,
1225,
342,
25380,
68,
4721,
333,
353,
279,
6396,
20865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9708,
10415,
3829,
23601,
288,
203,
565,
1450,
15038,
2148,
364,
380,
31,
203,
203,
565,
1958,
27177,
367,
288,
203,
3639,
2254,
2858,
31,
203,
3639,
2254,
6205,
20,
39,
11276,
31,
203,
3639,
2254,
6205,
21,
39,
11276,
31,... |
./full_match/100/0xcd2D99b1bf2cBa504CDff5A33e65Daa3e00E1e88/sources/compilationTests/gnosis/Tokens/OutcomeToken.sol | @title Outcome token contract - Issuing and revoking outcome tokens @author Stefan George - <stefan@gnosis.pm> | contract OutcomeToken is StandardToken {
using Math for *;
event Issuance(address indexed owner, uint amount);
event Revocation(address indexed owner, uint amount);
address public eventContract;
modifier isEventContract () {
require(msg.sender == eventContract);
_;
}
cons... | 14,288,520 | [
1,
19758,
1147,
6835,
300,
9310,
22370,
471,
5588,
601,
310,
12884,
2430,
225,
7780,
74,
304,
15391,
280,
908,
300,
411,
334,
10241,
304,
36,
1600,
538,
291,
18,
7755,
34,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2976,
5624,
1345,
353,
8263,
1345,
288,
203,
565,
1450,
2361,
364,
380,
31,
203,
203,
565,
871,
9310,
89,
1359,
12,
2867,
8808,
3410,
16,
2254,
3844,
1769,
203,
565,
871,
14477,
4431,
12,
2867,
8808,
3410,
16,
2254,
3844,
... |
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a ... | overriding Crowdsale#hasEnded to add tokens cap logic @return true if crowdsale event has ended | function hasEnded() public constant returns(bool) {
bool capReached = token.totalSupply() >= tokensCap;
return super.hasEnded() || capReached;
}
| 6,555,974 | [
1,
83,
1107,
10415,
385,
492,
2377,
5349,
5332,
28362,
358,
527,
2430,
3523,
4058,
327,
638,
309,
276,
492,
2377,
5349,
871,
711,
16926,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
711,
28362,
1435,
1071,
5381,
1135,
12,
6430,
13,
288,
203,
3639,
1426,
3523,
23646,
273,
1147,
18,
4963,
3088,
1283,
1435,
1545,
2430,
4664,
31,
203,
3639,
327,
2240,
18,
5332,
28362,
1435,
747,
3523,
23646,
31,
203,
5... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
/*
___ ___ ___ ___
/\ \ /\ \ /\ \ ___ /\ \
\:\ \ /::\ \ /::\ \ /\ \ /::\ \
\:\ \... | pool -> account -> withdrawn history | contract VaultRelayer is WhitelistUpgradeable {
using SafeMath for uint256;
using SafeBEP20 for IBEP20;
bytes32 public constant DOMAIN_TYPEHASH =
keccak256("EIP712Domain(string name,address verifyingContract)");
bytes32 public constant DEPOSIT_TYPEHASH =
keccak256(
"Deposit... | 12,632,919 | [
1,
6011,
317,
2236,
317,
598,
9446,
82,
4927,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
17329,
1971,
1773,
353,
3497,
7523,
10784,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
5948,
52,
3462,
364,
467,
5948,
52,
3462,
31,
203,
203,
203,
565,
1731,
1578,
1071,
5381,
27025,
... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/presets/ERC20PresetMinterPauser.sol)
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/exte... | * @dev {ERC20} token, including: - ability for holders to burn (destroy) their tokens - a minter role that allows for token minting (creation) - a pauser role that allows to stop all token transfers NOTE: Modified from OZ ERC20PresetMinterPauser to add Snapshot extension This contract uses {AccessControl} to lock p... | contract FitcoinToken is Context, AccessControlEnumerable, ERC20Burnable, ERC20Pausable, ERC20Snapshot {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");
bytes32 public constant SNAPSHOT_ROLE = keccak256("SNAPSHOT_ROLE");
c... | 6,149,090 | [
1,
95,
654,
39,
3462,
97,
1147,
16,
6508,
30,
225,
300,
7123,
364,
366,
4665,
358,
18305,
261,
11662,
13,
3675,
2430,
225,
300,
279,
1131,
387,
2478,
716,
5360,
364,
1147,
312,
474,
310,
261,
17169,
13,
225,
300,
279,
6790,
1355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30504,
12645,
1345,
353,
1772,
16,
24349,
3572,
25121,
16,
4232,
39,
3462,
38,
321,
429,
16,
4232,
39,
3462,
16507,
16665,
16,
4232,
39,
3462,
4568,
288,
203,
565,
1731,
1578,
1071,
5381,
6989,
2560,
67,
16256,
273,
417,
2... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;
pragma abicoder v2;
import '@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol';
import '@uniswap/lib/contracts/libraries/SafeERC20Namer.sol';
import './libraries/ChainId.sol';
import './interfaces/INonfungiblePositionManager.sol';
import './i... | @title Describes NFT token positions @notice Produces a string containing the data URI for a JSON metadata string | contract NonfungibleTokenPositionDescriptor is INonfungibleTokenPositionDescriptor {
address private constant DAI = 0x6B175474E89094C44Da98b954EedeAC495271d0F;
address private constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;
address private constant USDT = 0xdAC17F958D2ee523a2206206994597C13D831e... | 12,901,836 | [
1,
4217,
24322,
423,
4464,
1147,
6865,
225,
22934,
279,
533,
4191,
326,
501,
3699,
364,
279,
1796,
1982,
533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
3858,
12125,
75,
1523,
1345,
2555,
3187,
353,
2120,
265,
12125,
75,
1523,
1345,
2555,
3187,
288,
203,
565,
1758,
3238,
5381,
463,
18194,
273,
374,
92,
26,
38,
4033,
6564,
5608,
41,
6675,
5908,
24,
39,
6334,
40,
69,
10689,
... |
./partial_match/137/0x6Cc13dB0B67a2A29c210D4A4638DA51E8cD8b139/sources/BlackErc20.sol | This variable should never be directly accessed by users of the library: interactions must be restricted to the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add this feature: see https:github.com/ethereum/solidity/issues/4637 | function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
struct Counter {
}
| 3,516,319 | [
1,
2503,
2190,
1410,
5903,
506,
5122,
15539,
635,
3677,
434,
326,
5313,
30,
23877,
1297,
506,
15693,
358,
326,
5313,
1807,
445,
18,
2970,
434,
348,
7953,
560,
331,
20,
18,
25,
18,
22,
16,
333,
2780,
506,
570,
19778,
16,
11376,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,... |
./full_match/4/0x734cd09a8e204f946b588D5c470b2a940e2Dbbf2/sources/contracts/2_Owner.sol | * @title Owner @dev Set & change owner/ event for EVM logging modifier to check if caller is owner | contract ReCoinToken {
address private owner;
event OwnerSet(address indexed oldOwner, address indexed newOwner);
modifier isOwner() {
require(msg.sender == owner, "Caller is not owner");
_;
}
constructor() {
emit OwnerSet(address(0), owner);
}
funct... | 12,374,463 | [
1,
5541,
225,
1000,
473,
2549,
3410,
19,
871,
364,
512,
7397,
2907,
9606,
358,
866,
309,
4894,
353,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
868,
27055,
1345,
288,
203,
203,
565,
1758,
3238,
3410,
31,
203,
377,
203,
565,
871,
16837,
694,
12,
2867,
8808,
1592,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
377,
203,
203,
565,
9606,
353,
5541,
1435,
288,
203,
3639,
... |
./full_match/1/0x154DAc76755d2A372804a9C409683F2eeFa9e5e9/sources/lib/tl-sol-tools/src/upgradeable/royalties/EIP2981TLUpgradeable.sol | @inheritdoc ERC165Upgradeable | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable) returns (bool) {
return interfaceId == type(IEIP2981).interfaceId || ERC165Upgradeable.supportsInterface(interfaceId);
}
External View Functions
| 4,979,380 | [
1,
36,
10093,
4232,
39,
28275,
10784,
429,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
1071,
1476,
5024,
3849,
12,
654,
39,
28275,
10784,
429,
13,
1135,
261,
6430,
13,
288,
203,
3639,
327,
1560,
548,
422,
618,
12,
8732,
2579,
5540,
11861,
2934,
5831,
548,
747,
42... |
//Address: 0xcf2f1d0ae77b7d6ec1e5961978dbfdcce6f007f7
//Contract name: CrowdsaleProxyFactory
//Balance: 0 Ether
//Verification Date: 1/19/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* ERC20 compatible token interface
*
* - Implements ERC 20 Token standard
* - Implements short add... | * Invest received ether in target crowdsale/ | function invest() public {
targetCrowdsale.contribute.value(this.balance)();
}
| 909,111 | [
1,
3605,
395,
5079,
225,
2437,
316,
1018,
276,
492,
2377,
5349,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2198,
395,
1435,
1071,
288,
203,
3639,
1018,
39,
492,
2377,
5349,
18,
591,
887,
18,
1132,
12,
2211,
18,
12296,
13,
5621,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/42/0xdD09fD24f5a00E1047681DF5404a38504d4793a5/sources/contracts/buy.sol | address cryptoToken = 0x9695e0114e12C0d3A3636fAb5A18e6b737529023; dfyn address1 gwei = .000000001 ETH. So 0.1 ETH would be 10000000 gwei. Try this.so i'm trying to trade 0.1 ETH for at least 150 DAI, here. 400 = about 5 minutes msg.value, I THINK, is what we put into the VALUE box and is the number of eth to swap for t... | function buyTokenWithExactEth() public payable returns(uint256) {
return 1000;
}
| 16,233,053 | [
1,
2867,
8170,
1345,
273,
374,
92,
29,
8148,
25,
73,
1611,
3461,
73,
2138,
39,
20,
72,
23,
37,
23,
4449,
26,
74,
5895,
25,
37,
2643,
73,
26,
70,
9036,
5877,
5540,
3103,
23,
31,
3013,
878,
1758,
21,
314,
1814,
77,
273,
263,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30143,
1345,
1190,
14332,
41,
451,
1435,
1071,
8843,
429,
1135,
12,
11890,
5034,
13,
288,
203,
2398,
203,
377,
203,
377,
203,
5411,
327,
4336,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.4;
import "./ReserveStabilizer.sol";
import "./ITribeReserveStabilizer.sol";
import "../dao/ITribeMinter.sol";
import "../utils/Timed.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
/// @title implementation for a TRIBE Reserve Stabilizer
/... | @notice exchange FEI for tokens from the reserves @param feiAmount of FEI to sell | function exchangeFei(uint256 feiAmount) public virtual override whenNotPaused returns (uint256 amountOut) {
updateOracle();
fei().transferFrom(msg.sender, address(this), feiAmount);
_burnFeiHeld();
amountOut = getAmountOut(feiAmount);
_transfer(msg.sender, amountOut);
... | 10,003,102 | [
1,
16641,
16439,
45,
364,
2430,
628,
326,
400,
264,
3324,
225,
1656,
77,
6275,
434,
16439,
45,
358,
357,
80,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7829,
2954,
77,
12,
11890,
5034,
1656,
77,
6275,
13,
1071,
5024,
3849,
1347,
1248,
28590,
1135,
261,
11890,
5034,
3844,
1182,
13,
288,
203,
3639,
1089,
23601,
5621,
203,
203,
3639,
1656,
77,
7675,
13866,
1265,
12,
3576,
... |
./partial_match/56/0xD567f218D0a4151Ae2Bc08B969AA90B0D9401fD7/sources/StrategyGg1LPV2.sol | * @dev Implementation of a strategy to get yields from farming LP Pools in PancakeSwap. PancakeSwap is an automated market maker (“AMM”) that allows two tokens to be exchanged on the Binance Smart Chain. It is fast, cheap, and allows anyone to participate. PancakeSwap is aiming to be the #1 liquidity provider on BSC. T... | contract StrategyGg1LPV2 is Ownable, Pausable {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
mapping(address => bool) public odioList;
IERC20 flp = IERC20(address(0x87ff96aba480f1813aF5c780387d8De7cf7D8261));
address public constant gg1 =
address(... | 11,335,175 | [
1,
13621,
434,
279,
6252,
358,
336,
16932,
628,
284,
4610,
310,
511,
52,
453,
8192,
316,
12913,
23780,
12521,
18,
12913,
23780,
12521,
353,
392,
18472,
690,
13667,
312,
6388,
261,
163,
227,
255,
2192,
49,
163,
227,
256,
13,
716,
536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19736,
43,
75,
21,
14461,
58,
22,
353,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
... |
pragma solidity 0.5.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b... | * @dev Burns a specific amount of tokens. @param _value The amount of token to be burned./ no need to require value <= totalSupply, since that would imply the sender's balance is greater than the totalSupply, which *should* be an assertion failure | function burn(address burner, uint256 _value) internal {
require(_value > 0);
require(_value <= balances[burner]);
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
emit Transfer(burner, address(0), _value);
emit Burn(burner, _va... | 2,279,691 | [
1,
38,
321,
87,
279,
2923,
3844,
434,
2430,
18,
225,
389,
1132,
1021,
3844,
434,
1147,
358,
506,
18305,
329,
18,
19,
1158,
1608,
358,
2583,
460,
1648,
2078,
3088,
1283,
16,
3241,
716,
4102,
709,
1283,
326,
5793,
1807,
11013,
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,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
2867,
18305,
264,
16,
2254,
5034,
389,
1132,
13,
2713,
288,
203,
3639,
2583,
24899,
1132,
405,
374,
1769,
203,
3639,
2583,
24899,
1132,
1648,
324,
26488,
63,
70,
321,
264,
19226,
203,
203,
3639,
324,
26488,
6... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that ... | safety check that iteration is finished
| require(topicsIter == logIter); | 7,027,139 | [
1,
87,
1727,
14369,
866,
716,
6532,
353,
6708,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
2583,
12,
17905,
2360,
422,
613,
2360,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x7Bd6062a2056Ba6b9775EfF89fdAa507Ba4B9E14/sources/baal.sol | @notice Baal-only function to set flash fee numerator. | function setFlashFeeNumerator(uint32 _flashFeeNumerator) external baalOnly {
flashFeeNumerator = _flashFeeNumerator;
}
| 12,297,305 | [
1,
38,
69,
287,
17,
3700,
445,
358,
444,
9563,
14036,
16730,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27059,
14667,
2578,
7385,
12,
11890,
1578,
389,
13440,
14667,
2578,
7385,
13,
3903,
9846,
287,
3386,
288,
203,
3639,
9563,
14667,
2578,
7385,
273,
389,
13440,
14667,
2578,
7385,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.7.0 <0.9.0;
contract Query {
address public serviceContractAddress;
// Initializing service contract address in constructor
constructor() {
serviceContractAddress = 0xA6Abc17819738299B3B2c1CE46d55c74f04E290C;
}
// Queries peers d... | Queries permissions of a role | function getRolePermissions(string memory role) public returns (bytes memory result) {
bytes memory payload = abi.encodeWithSignature(
"getRolePermissions(string)",
role);
(bool success, bytes memory ret) = address(serviceContractAddress).delegatecall(payload);
requir... | 1,830,129 | [
1,
9592,
4371,
434,
279,
2478,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15673,
6521,
12,
1080,
3778,
2478,
13,
1071,
1135,
261,
3890,
3778,
563,
13,
288,
203,
3639,
1731,
3778,
2385,
273,
24126,
18,
3015,
1190,
5374,
12,
203,
5411,
315,
588,
2996,
6521,
12,
1080,
2225,
16,
203,
5411,
2478,
... |
pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg
interface DharmaUpgradeBeaconControllerManagerInterface {
// Fire an event whenever the Adharma Contingency is activated or exited.
event AdharmaContingencyActivated();
event AdharmaContingencyExited();
// Store timestamp and last imp... | * @dev Initialize contract by setting transaction submitter as initial owner./ | constructor() internal {
_owner = tx.origin;
emit OwnershipTransferred(address(0), _owner);
}
| 1,759,356 | [
1,
7520,
6835,
635,
3637,
2492,
4879,
387,
487,
2172,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
2713,
288,
203,
565,
389,
8443,
273,
2229,
18,
10012,
31,
203,
565,
3626,
14223,
9646,
5310,
1429,
4193,
12,
2867,
12,
20,
3631,
389,
8443,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.3;
import {SafeMath} from "./SafeMath.sol";
import {Wallet} from "./Wallet.sol";
import {Identity} from "./Identity.sol";
import {Disbursement} from "./Disbursement.sol";
contract Campaigns {
Wallet internal token;
Identity internal id;
Disbursement internal disb;
using SafeMath fo... | mapping donors to campaigns id
| mapping(address => uint[]) internal donor2campaigns; | 1,056,922 | [
1,
6770,
2727,
1383,
358,
8965,
87,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2254,
63,
5717,
2713,
2727,
280,
22,
14608,
87,
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,
... |