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 |
|---|---|---|---|---|---|---|
/**
*Submitted for verification at Etherscan.io on 2021-09-24
*/
/**
TEKASHI 6IX9INE
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg... | @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 when dealing with meta-transactions the account sending and paying for executi... | abstract contract Context {
TEKASHI 6IX9INE
pragma solidity ^0.8.0;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 6,816,203 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
203,
399,
11325,
10793,
45,
1666,
12507,
29,
3740,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
2... |
pragma solidity ^0.4.22;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed p... | @dev Markets入札 十分な量のEtherが供給されればNFTの所有権を移転する。 @param _rocId マーケットへの出品構造体への参照を取得する 入札額が価格以上である事を確認する。 msg.valueはweiの数 マーケットへの出品構造体が削除される前に、販売者への参照を取得します。 マーケットへの出品を削除します。 競売人のカットを計算します。 売り手に送金する | function bid(uint _rocId) external payable whenNotPaused {
uint checkTokenId = getRocIdToTokenId(_rocId);
Markets storage markets = tokenIdToMarkets[checkTokenId];
uint128 sellingPrice = uint128(markets.marketsPrice);
require(msg.value >= sellingPrice);
address seller = mark... | 5,500,381 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6622,
2413,
166,
232,
103,
167,
255,
260,
225,
225,
166,
240,
228,
166,
235,
233,
164,
228,
108,
170,
234,
242,
164,
228,
111,
41,
1136,
164,
228,
239,
165,
127,
254,
168,
118,
104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
9949,
12,
11890,
389,
303,
71,
548,
13,
3903,
8843,
429,
1347,
1248,
28590,
288,
203,
3639,
2254,
866,
1345,
548,
273,
4170,
504,
28803,
1345,
548,
24899,
303,
71,
548,
1769,
203,
3639,
6622,
2413,
2502,
2267,
2413,
273... |
// SPDX-License-Identifier: MIT-open-group
pragma solidity ^0.8.0;
import "lib/ds-test/test.sol";
import "src/tokens/StakeNFT.sol";
import "lib/openzeppelin/token/ERC20/ERC20.sol";
import "lib/openzeppelin/token/ERC721/IERC721Receiver.sol";
uint256 constant ONE_MADTOKEN = 10**18;
contract MadTokenMock is ERC20 {
... | Minting a lot depositing and collecting some burning some amount of Positionsmint more tokens again collecting all the existing tokens burning all token expect 1 | function test_MintCollectBurnALot() public {
(StakeNFT stakeNFT, MadTokenMock madToken,,) = getFixtureData();
UserAccount donator = newUserAccount(madToken, stakeNFT);
madToken.transfer(address(donator), 10000000 * ONE_MADTOKEN);
donator.approve(address(stakeNFT), 10000000 * ONE_MADT... | 6,424,609 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
474,
310,
279,
17417,
443,
1724,
310,
471,
30160,
2690,
18305,
310,
2690,
3844,
434,
11010,
4808,
474,
1898,
2430,
3382,
30160,
777,
326,
2062,
2430,
18305,
310,
777,
1147,
4489,
404,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
49,
474,
10808,
38,
321,
1013,
352,
1435,
1071,
288,
203,
3639,
261,
510,
911,
50,
4464,
384,
911,
50,
4464,
16,
490,
361,
1345,
9865,
312,
361,
1345,
16408,
13,
273,
2812,
697,
10970,
751,
5621,
203,
3639,
... |
./full_match/100/0xeCBc49C06180F28d355052E686320424AD482581/sources/contracts/citrus-vaults/src/VaultLens.sol | @dev Instead of updating this, consider versioning it | contract VaultLens {
pragma solidity 0.8.15;
struct StableVaultMetadataV1 {
address vault;
address asset;
int256 apy;
uint256 totalAssets;
}
struct VaultMetadata {
address vault;
address asset;
int256 apy;
uint8 decimals;
uint256 withd... | 14,279,179 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
17561,
434,
9702,
333,
16,
5260,
1177,
310,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
16351,
17329,
48,
773,
288,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
3600,
31,
203,
565,
1958,
934,
429,
12003,
2277,
58,
21,
288,
203,
3639,
1758,
9229,
31,
203,
3639,
1758,
3310,
31,
203,
3639,
509,
5034,
513,
93,
31,
2... |
./partial_match/1/0xBFcc973A3662c91cd2C28F575Ff201927479b1D8/sources/contracts/Fund.sol | * @notice Rejects Grant Recommendation and emits a `GrantRejected` event. @param grantId UUID representing this grant/ | function rejectGrant(string calldata grantId)
public
onlyAddressOrAdminOrRole(
manager,
fundFactoryContract.endaomentAdmin(),
IEndaomentAdmin.Role.REVIEWER
)
{
require(!isEqual(grantId, ""), "Fund: Must provide a grantId");
require(pendingGrants[grantId].recipient != address(0)... | 2,650,346 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
20159,
87,
19689,
25546,
18782,
471,
24169,
279,
1375,
9021,
19902,
68,
871,
18,
632,
891,
225,
7936,
548,
5866,
5123,
333,
7936,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
4925,
9021,
12,
1080,
745,
892,
7936,
548,
13,
203,
565,
1071,
203,
565,
1338,
1887,
1162,
4446,
1162,
2996,
12,
203,
1377,
3301,
16,
203,
1377,
284,
1074,
1733,
8924,
18,
18883,
7970,
4446,
9334,
203,
1377,
467,
1638,
... |
./partial_match/3/0xFf8aC46598e0143DB05e704c9E1B3812C408a952/sources/_HERTZ.sol | ------------------------------------------------------------------------ Transfer `tokens` from the `from` account to the `to` account The calling account must already have sufficient tokens approved - From account must have sufficient balance to transfer - Spender must have sufficient allowance to transfer - 0 value ... | function transferFrom(address from, address to, uint tokens) override public returns(bool) {
require(balances[from] >= tokens && allowed[from][msg.sender] >= tokens && tokens > 0, "Zero transfer or not enough (allowed) funds");
require(address(to) != address(0), "No burning allowed");
requir... | 5,162,177 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
12279,
1375,
7860,
68,
628,
326,
1375,
2080,
68,
2236,
358,
326,
1375,
869,
68,
2236,
1021,
4440,
2236,
1297,
1818,
1240,
18662,
2430,
20412,
300,
6338,
2236,
1297,
1240,
18662,
11013,
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,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
2430,
13,
3849,
1071,
1135,
12,
6430,
13,
288,
203,
3639,
2583,
12,
70,
26488,
63,
2080,
65,
1545,
2430,
597,
2935,
63,
2080,
6362,
3576,
18,
15330,
65,
1545,
2430,
... |
./partial_match/4/0xb11Bc8F6358368004206AF1ac2FA8aA4e68dFD2D/sources/BooBankerResearchAgreement.sol | Sell half of burned tokens, provides liquidity and locks it away forever can only be called when balance is > 1 and last lock is more than 2 hours ago bbra balance caller rewards subtract caller fee - 1% always only reward caller after trade to prevent any possible reentrancy check balance is still available in case L... | function lockLiquidity() public isHuman() {
uint256 _bal = balanceOf(address(this));
require(_bal >= 1e18, "Minimum of 1 BBRA before we can lock liquidity");
require(balanceOf(msg.sender) >= 5e18, "You must own at least 50 BBra to call lock");
require(block.timestamp >= lastLiquidity... | 8,524,765 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
1165,
8816,
434,
18305,
329,
2430,
16,
8121,
4501,
372,
24237,
471,
13046,
518,
10804,
21238,
848,
1338,
506,
2566,
1347,
11013,
353,
405,
404,
471,
1142,
2176,
353,
1898,
2353,
576,
7507,
20325,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48,
18988,
24237,
1435,
1071,
27803,
6925,
1435,
288,
203,
3639,
2254,
5034,
389,
70,
287,
273,
11013,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
2583,
24899,
70,
287,
1545,
404,
73,
2643,
16,
315,
13042,
434,
404... |
/// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
contract AccessControlToken is AccessControlEnumerable {
bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
... | * @dev Overload {revokeRole} to track enumerable memberships./ | function revokeRole(bytes32 _role, address _account)
public
override(AccessControlEnumerable)
onlyRole(ADMIN_ROLE)
{
super.revokeRole(_role, _account);
}
| 916,533 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10752,
945,
288,
9083,
3056,
2996,
97,
358,
3298,
14873,
12459,
87,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18007,
2996,
12,
3890,
1578,
389,
4615,
16,
1758,
389,
4631,
13,
203,
3639,
1071,
203,
3639,
3849,
12,
16541,
3572,
25121,
13,
203,
3639,
1338,
2996,
12,
15468,
67,
16256,
13,
203,
565,
288,
203,
3639,
2240,
18,
9083,
... |
./full_match/421613/0x65A6cFF0264c210cCf25C6ef6c9bA48BA2D82725/sources/project_/contracts/Spacestation.sol | tokenId => fatigue
| mapping(uint256 => uint256) private dogeFatigue; | 11,579,664 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
548,
516,
284,
270,
360,
344,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
13,
3238,
302,
717,
73,
42,
270,
360,
344,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.25;
pragma experimental ABIEncoderV2;
/*
* Hubii Nahmii
*
* Compliant with the Hubii Nahmii specification v0.12.
*
* Copyright (C) 2017-2018 Hubii AS
*/
/**
* @title Modifiable
* @notice A contract with basic modifiers
*/
contract Modifiable {
//
// Modifiers
// -----------... | @notice Get number of minimum payment fee block number tiers for given currency @param currencyCt The address of the concerned currency contract (address(0) == ETH) @param currencyId The ID of the concerned currency (0 for ETH and ERC20) | function currencyPaymentMinimumFeesCount(address currencyCt, uint256 currencyId)
public
view
returns (uint256)
{
return currencyPaymentMinimumFeeByBlockNumber[currencyCt][currencyId].count();
}
| 415,268 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
1300,
434,
5224,
5184,
14036,
1203,
1300,
11374,
414,
364,
864,
5462,
632,
891,
5462,
39,
88,
1021,
1758,
434,
326,
356,
2750,
11748,
5462,
6835,
261,
2867,
12,
20,
13,
422,
512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5462,
6032,
13042,
2954,
281,
1380,
12,
2867,
5462,
39,
88,
16,
2254,
5034,
5462,
548,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
5462,
6032,
13042,
14667,
... |
./partial_match/1/0x0890B12E9f7cc6219b3668Bf2CfcC852964CAaB4/sources/EmojiRalleyGame.sol | Tracks ERC20 wagered since last reward for each player
| mapping(address => mapping(address => uint256)) public erc20WageredSinceLastReward; | 4,320,482 | [
1,
4625,
348,
7953,
560,
30,
225,
11065,
87,
4232,
39,
3462,
341,
6817,
329,
3241,
1142,
19890,
364,
1517,
7291,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
2254,
5034,
3719,
1071,
6445,
71,
3462,
59,
6817,
329,
9673,
3024,
17631,
1060,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
interface ConflictResolutionInterface {
function minHouseStake(uint activeGames) external pure returns(uint);
function maxBalance() external pure returns(int);
function conflictEndFine() external pure returns(int);
function isValidBet(uint8 _gameType, uint _betNum, uint _bet... | * @dev Used by server if user does not end game session. @param _roundId Round id of bet. @param _gameType Game type of bet. @param _num Number of bet. @param _value Value of bet. @param _balance Balance before this bet. @param _serverHash Hash of server seed for this bet. @param _userHash Hash of user seed for this be... | function serverEndGameConflict(
uint32 _roundId,
uint8 _gameType,
uint _num,
uint _value,
int _balance,
bytes32 _serverHash,
bytes32 _userHash,
uint _gameId,
address _contractAddress,
bytes _userSig,
address _userAddress,
... | 10,632,778 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10286,
635,
1438,
309,
729,
1552,
486,
679,
7920,
1339,
18,
632,
891,
389,
2260,
548,
11370,
612,
434,
2701,
18,
632,
891,
389,
13957,
559,
14121,
618,
434,
2701,
18,
632,
891,
389,
210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
1638,
12496,
10732,
12,
203,
3639,
2254,
1578,
389,
2260,
548,
16,
203,
3639,
2254,
28,
389,
13957,
559,
16,
203,
3639,
2254,
389,
2107,
16,
203,
3639,
2254,
389,
1132,
16,
203,
3639,
509,
389,
12296,
16,
203,
3... |
pragma solidity ^0.5.10;
import "./SomeInterface.sol";
import "./DependentInterface.sol";
//import "./DependentInterface2.sol";
contract SomeImpl is SomeInterface {
enum SomeEnum { Yes, No, Maybe }
enum lowerCaseEnum { What, The }
SomeEnum someEnum = SomeEnum.Yes;
uint256 public somePublicNumber;
... | SomeInterface has a Storage reference type and a realization | contract SomeImpl is SomeInterface {
SomeEnum someEnum = SomeEnum.Yes;
uint256 public somePublicNumber;
bool public somePublicBool;
string public somePublicString;
uint256[] public somePublicIntArray;
uint256 private somePrivateNumber;
bool private somePrivateBool;
string private som... | 6,461,956 | [
1,
4625,
348,
7953,
560,
30,
225,
10548,
1358,
711,
279,
5235,
2114,
618,
471,
279,
2863,
1588,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
10548,
2828,
353,
10548,
1358,
288,
203,
203,
203,
565,
10548,
3572,
2690,
3572,
273,
10548,
3572,
18,
22352,
31,
203,
203,
565,
2254,
5034,
1071,
2690,
4782,
1854,
31,
203,
565,
1426,
1071,
2690,
4782,
7464,
31,
203,
565,
... |
./full_match/4/0x79F19b0E0DF501dB96F8B9790bdfb7d78e95A96A/sources/contracts/Timelock.sol | NOTE: THESE VALUES ARE FOR TESTING ONLY! | contract Timelock {
using SafeMath for uint256;
event NewAdmin(address indexed newAdmin);
event NewPendingAdmin(address indexed newPendingAdmin);
event NewDelay(uint256 indexed newDelay);
event CancelTransaction(
bytes32 indexed txHash,
address indexed target,
uint256 value,... | 12,403,931 | [
1,
4625,
348,
7953,
560,
30,
225,
5219,
30,
12786,
1090,
13477,
432,
862,
12108,
22130,
1360,
20747,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12652,
292,
975,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
1166,
4446,
12,
2867,
8808,
394,
4446,
1769,
203,
565,
871,
1166,
8579,
4446,
12,
2867,
8808,
394,
8579,
4446,
1769,
203,
565,
87... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
contract EncryptedSender {
struct TopicData {
// An (optional) public key used to encrypt messages for this topic. This is only necessary if the sender will
// not have access to the public key offchain.
bytes publicKey;
//... | * @notice Computes what the stored round id would be if it were updated right now, but this method does not commit the update./ | function computeCurrentRoundId(Data storage data, uint currentTime) internal view returns (uint roundId) {
(roundId,) = _getCurrentRoundIdAndStartTime(data, currentTime);
}
| 1,827,119 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14169,
281,
4121,
326,
4041,
3643,
612,
4102,
506,
309,
518,
4591,
3526,
2145,
2037,
16,
1496,
333,
707,
1552,
486,
3294,
326,
1089,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3671,
3935,
11066,
548,
12,
751,
2502,
501,
16,
2254,
6680,
13,
2713,
1476,
1135,
261,
11890,
3643,
548,
13,
288,
203,
3639,
261,
2260,
548,
16,
13,
273,
389,
588,
3935,
11066,
548,
1876,
13649,
12,
892,
16,
6680,
176... |
pragma solidity ^0.5.0;
import '../interfaces/IERC20.sol';
import '../access/roles/MinterRole.sol';
import '../math/SafeMath.sol';
import './SafeERC20.sol';
/**
* @title Token
* @dev Contract that implements ERC20 token standard
* Is deployed by `Crowdsale.sol`, keeps track of gBalances, etc.
*/
contract Token... | * @dev Internal function that burns an amount of the token of a given account. @param account_ The account whose tokens will be burnt. @param value_ The amount that will be burnt./ | function _burn(address account_, uint256 value_) internal {
require(account_ != address(0));
gTotalSupply = gTotalSupply.sub(value_);
gBalances[account_] = gBalances[account_].sub(value_);
emit Transfer(account_, address(0), value_);
}
| 14,114,716 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
716,
18305,
87,
392,
3844,
434,
326,
1147,
434,
279,
864,
2236,
18,
632,
891,
2236,
67,
1021,
2236,
8272,
2430,
903,
506,
18305,
88,
18,
632,
891,
460,
67,
1021,
3844,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
67,
16,
2254,
5034,
460,
67,
13,
2713,
288,
203,
3639,
2583,
12,
4631,
67,
480,
1758,
12,
20,
10019,
203,
203,
3639,
314,
5269,
3088,
1283,
273,
314,
5269,
3088,
1283,
18,
1717,
12,
113... |
pragma solidity >=0.4.21 <0.6.0;
import "../node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
contract StarNotary is ERC721 {
struct Star {
string name;
}
// Add a name and a symbol for your starNotary tokens
string public name = "Abdulaziz Token";
string public symbol = ... | _removeTokenFrom(starOwner, _tokenId); _addTokenTo(msg.sender, _tokenId); | function buyStar(uint256 _tokenId) public payable {
require(starsForSale[_tokenId] > 0);
uint256 starCost = starsForSale[_tokenId];
address starOwner1 = ownerOf(_tokenId);
uint160 starOwner2 = uint160(starOwner1);
address payable starOwner = address(starOwner2);
requ... | 6,369,815 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
4479,
1345,
1265,
12,
10983,
5541,
16,
389,
2316,
548,
1769,
389,
1289,
1345,
774,
12,
3576,
18,
15330,
16,
389,
2316,
548,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
18379,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
334,
5913,
1290,
30746,
63,
67,
2316,
548,
65,
405,
374,
1769,
203,
203,
3639,
2254,
5034,
10443,
8018,
273,
24084,
1290,
307... |
./full_match/80001/0x0B83D09485de46Da435C51122D5aCE9E79eF781F/sources/project_/contracts/KeyHolder.sol | * @dev See {IERC734-keyHasPurpose}. @notice Returns true if the key has MANAGEMENT purpose or the specified purpose./ | ) public view virtual override returns (bool result) {
Key memory keyBase = _keys[key];
if (keyBase.key == 0) return false;
for (
uint256 keyPurposeIndex = 0;
keyPurposeIndex < keyBase.purposes.length;
keyPurposeIndex++
function keyHasPurpose(
... | 5,643,632 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5026,
17,
856,
5582,
10262,
4150,
5496,
632,
20392,
2860,
638,
309,
326,
498,
711,
20972,
2833,
3212,
13115,
578,
326,
1269,
13115,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1071,
1476,
5024,
3849,
1135,
261,
6430,
563,
13,
288,
203,
3639,
1929,
3778,
498,
2171,
273,
389,
2452,
63,
856,
15533,
203,
3639,
309,
261,
856,
2171,
18,
856,
422,
374,
13,
327,
629,
31,
203,
203,
3639,
364,
261,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-09
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While the... | Add a user to the whitelist | function whitelistUser(address _users) public onlyOwner {
whitelistedAddresses.push(_users);
}
| 10,611,609 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
729,
358,
326,
10734,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10734,
1299,
12,
2867,
389,
5577,
13,
1071,
1338,
5541,
288,
203,
3639,
26944,
7148,
18,
6206,
24899,
5577,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xD8782BB636294f6894fB5B9b0F5d7E44F1b7CD2E/sources/BTCKimpl.sol | * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to f... | function approve(address spender, uint256 value) public whenNotPaused returns (bool) {
_approve(msg.sender, spender, value);
return true;
}
| 15,491,139 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
326,
2275,
1758,
358,
17571,
326,
1269,
3844,
434,
2430,
603,
12433,
6186,
434,
1234,
18,
15330,
18,
605,
359,
834,
716,
12770,
392,
1699,
1359,
598,
333,
707,
5186,
899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
460,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
389,
12908,
537,
12,
3576,
18,
15330,
16,
17571,
264,
16,
460,
1769,
203,
3639,
327,
638,
31,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC20/SafeERC20.sol";
import "./ClaimConfig.sol";
import "./interfaces/ICoverPool.sol";
import "./interfaces/ICoverPoolFactory.sol";
import "./interfaces/IClaimManagement.sol";
/**
* @title Claim Management for claims filed for a COVER supported cover... | @notice Add CVC groups for multiple coverPools | function addCVCForPools(address[] calldata _coverPools, address[] calldata _cvcs) external override onlyOwner {
require(_coverPools.length == _cvcs.length, "CC: lengths don't match");
for (uint256 i = 0; i < _coverPools.length; i++) {
_addCVCForPool(_coverPools[i], _cvcs[i]);
}
}
| 11,690,137 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1436,
385,
13464,
3252,
364,
3229,
5590,
16639,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
527,
39,
13464,
1290,
16639,
12,
2867,
8526,
745,
892,
389,
3165,
16639,
16,
1758,
8526,
745,
892,
389,
71,
18982,
13,
3903,
3849,
1338,
5541,
288,
203,
565,
2583,
24899,
3165,
16639,
18,
2469,
422,
389,
71,
18982,
18,
... |
./full_match/1/0x7c28387D8eF791daB0F2C4E18440a11672B45E6a/sources/deploy/Contract.sol | * @dev Returns the name of the token./ | function name() public view virtual override returns (string memory) {
return deer;
}
| 3,168,029 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
508,
434,
326,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
508,
1435,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
443,
264,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contrac... | * @notice Make New 0xBatz @param amount Amount of 0xBatz to mint @dev Utilize unchecked {} and calldata for gas savings./ | function mint(uint256 amount) public payable {
if ((psupply + amount > 666) && (psupply + amount < 669)) {
require(mintPrice * (psupply + amount - 666) <= msg.value, "Ether value sent is not correct.");
}
require(mintEnabled, "Minting is disabled.");
require(psupply + amount <= maxSupp... | 311,212 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4344,
1166,
374,
20029,
270,
94,
632,
891,
3844,
16811,
434,
374,
20029,
270,
94,
358,
312,
474,
632,
5206,
3564,
554,
22893,
2618,
471,
745,
892,
364,
16189,
4087,
899,
18,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
312,
474,
12,
11890,
5034,
3844,
13,
1071,
8843,
429,
288,
203,
1377,
309,
14015,
1121,
416,
1283,
397,
3844,
405,
1666,
6028,
13,
597,
261,
1121,
416,
1283,
397,
3844,
411,
1666,
8148,
3719,
288,
203,
3639,
2583,
12,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "@gif-interface/contracts/Product.sol";
import "./FireOracle.sol";
contract FireInsurance is Product {
// constants
bytes32 public constant VERSION = "0.0.1";
bytes32 public constant POLICY_FLOW = "PolicyFlowDefault";
uint256 pub... | Get policy data for oracle response Validate input parameter Get oracle response data Claim handling based on reponse to greeting provided by oracle | function oracleCallback(uint256 requestId, bytes32 policyId, bytes calldata response)
external
onlyOracle
{
(address payable policyHolder, string memory objectName, uint256 premium) = abi.decode(
_getApplicationData(policyId), (address, string, uint256));
require(act... | 12,760,566 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
3329,
501,
364,
20865,
766,
3554,
810,
1569,
968,
20865,
766,
501,
18381,
5057,
2511,
603,
283,
575,
358,
5174,
21747,
2112,
635,
20865,
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,
565,
445,
20865,
2428,
12,
11890,
5034,
14459,
16,
1731,
1578,
3329,
548,
16,
1731,
745,
892,
766,
13,
203,
3639,
3903,
203,
3639,
1338,
23601,
203,
565,
288,
203,
3639,
261,
2867,
8843,
429,
3329,
6064,
16,
533,
3778,
12282,
16,... |
./full_match/71401/0xc8e2f76e427Ebd2bde6d602ca9765bb4f5117D7E/sources/contracts/Demo.sol | * @dev 逻辑合约,执行被委托的调用/ | contract Logic is Initializable, ERC721Upgradeable{
uint256 public value;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
event ValueChanged(uint256 value);
function initialize() public virtual initializer {
__ERC721_init("NiHao01", "NH");
_mint(msg.... | 7,099,963 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
170,
227,
124,
169,
127,
244,
166,
243,
235,
168,
123,
104,
176,
125,
239,
167,
236,
105,
169,
99,
239,
169,
100,
109,
166,
105,
247,
167,
236,
251,
168,
253,
231,
169,
113,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
16351,
10287,
353,
10188,
6934,
16,
4232,
39,
27,
5340,
10784,
429,
95,
203,
565,
2254,
5034,
1071,
460,
31,
7010,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
2316,
548,
4789,
31,
... |
// First, a simple Bank contract
// Allows deposits, withdrawals, and balance checks
// simple_bank.sol (note .sol extension)
/* **** START EXAMPLE **** */
// Declare the source file compiler version
pragma solidity ^0.4.19;
// Start with Natspec comment (the three slashes)
// used for documentation - and as descri... | @notice Deposit ether into bank @return The balance of the user after the deposit is made Use 'require' to test user inputs, 'assert' for internal invariants Here we are making sure that there isn't an overflow issue no "this." or "self." required with state variable all values set to data type's initial value by defa... | function deposit() public payable returns (uint) {
require((balances[msg.sender] + msg.value) >= balances[msg.sender]);
balances[msg.sender] += msg.value;
return balances[msg.sender];
}
| 12,554,160 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4019,
538,
305,
225,
2437,
1368,
11218,
632,
2463,
1021,
11013,
434,
326,
729,
1839,
326,
443,
1724,
353,
7165,
2672,
296,
6528,
11,
358,
1842,
729,
4540,
16,
296,
11231,
11,
364,
2713,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
1435,
1071,
8843,
429,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
12443,
70,
26488,
63,
3576,
18,
15330,
65,
397,
1234,
18,
1132,
13,
1545,
324,
26488,
63,
3576,
18,
15330,
19226,
203,
203,
3639,
324,
26488,... |
pragma solidity ^0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c ... | Contains restricted tokens that cannot be sold before graphenDeadLine This array contains the list of address to be used by DAO contract | contract Token77G is Claimable, StandardToken {
string constant public name = "GraphenTech";
string constant public symbol = "77G";
uint256 public graphenRestrictedDate;
mapping (address => uint256) private restrictedTokens;
address[] private addList;
address private icoadd;
@dev this ev... | 8,081,063 | [
1,
4625,
348,
7953,
560,
30,
8398,
15693,
2430,
716,
2780,
506,
272,
1673,
1865,
2667,
275,
11852,
1670,
1220,
526,
1914,
326,
666,
434,
1758,
358,
506,
1399,
635,
463,
20463,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
4700,
43,
353,
18381,
429,
16,
8263,
1345,
288,
203,
203,
565,
533,
5381,
1071,
508,
273,
315,
4137,
275,
56,
8987,
14432,
203,
565,
533,
5381,
1071,
3273,
273,
315,
4700,
43,
14432,
203,
203,
565,
2254,
5034,
1071,
... |
pragma solidity ^0.4.18;
/**
* @title EvmStack
* @author Nathanael Esayeas (github.com/nathane)
* @dev Stack implementation written in solidity.
*/
contract EvmStack {
/**
* @dev The contract owners address
*/
address public owner;
/**
* @dev The stack
*/
string[] pub... | * @dev Kills the contract and returns remaining funds back to the creator @return bool/ | function rip() public returns(bool success){
require(msg.sender == owner);
selfdestruct(owner);
return true;
}
| 1,754,231 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20520,
87,
326,
6835,
471,
1135,
4463,
284,
19156,
1473,
358,
326,
11784,
632,
2463,
1426,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
436,
625,
1435,
1071,
1135,
12,
6430,
2216,
15329,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
1769,
203,
3639,
365,
5489,
8813,
12,
8443,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
377,
203,
377,
203,
37... |
./full_match/420/0x84C71140bf315a9caC00D76Bf31418745e1fFeB1/sources/contracts/core/connext/facets/BridgeFacet.sol | * @notice Initiates a cross-chain transfer of funds, calldata, and/or various named properties using the nomad network. @dev For ERC20 transfers, this contract must have approval to transfer the input (transacting) assets. The adopted assets will be swapped for their local nomad asset counterparts (i.e. bridgeable toke... | function xcall(XCallArgs calldata _args) external payable nonReentrant whenNotPaused returns (bytes32) {
bytes32 remoteInstance;
{
if (_args.transactingAsset == address(0)) {
revert BridgeFacet__xcall_nativeAssetNotSupported();
}
if (_args.params.originDomain != s.domain) {
... | 13,228,544 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4378,
16020,
279,
6828,
17,
5639,
7412,
434,
284,
19156,
16,
745,
892,
16,
471,
19,
280,
11191,
4141,
1790,
1450,
326,
12457,
361,
2483,
18,
632,
5206,
2457,
4232,
39,
3462,
29375,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
619,
1991,
12,
60,
1477,
2615,
745,
892,
389,
1968,
13,
3903,
8843,
429,
1661,
426,
8230,
970,
1347,
1248,
28590,
1135,
261,
3890,
1578,
13,
288,
203,
565,
1731,
1578,
2632,
1442,
31,
203,
565,
288,
203,
1377,
309,
26... |
./full_match/97/0x8B4032b71C804517D54878d78730c230F768Ad57/sources/tests/BSC ChainLinkTests/PW.sol | * Charity Payment function/ inState(State.Completed) Non-native token (transfer tokens) | function payCharity()
internal
onlyAuthorized */
nonReentrant
{
uint256 tokenBalance = pumptoken.balanceOf(address(this));
address payable charity = payable(pumpWalletStrings.charityAddress);
if (address(pumptoken) != ROUTER.WETH()) {
uint256 charityP... | 5,018,752 | [
1,
4625,
348,
7953,
560,
30,
380,
3703,
560,
12022,
445,
19,
316,
1119,
12,
1119,
18,
9556,
13,
3858,
17,
13635,
1147,
261,
13866,
2430,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
2156,
560,
1435,
203,
3639,
2713,
203,
3639,
1338,
15341,
1195,
203,
3639,
1661,
426,
8230,
970,
203,
565,
288,
203,
3639,
2254,
5034,
1147,
13937,
273,
293,
379,
337,
969,
18,
12296,
951,
12,
2867,
12,
2211,
1001... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | the token's transfer hook does not get triggered here since the bridge already triggers a hook | function mintAndCall(
IArbToken token,
uint256 amount,
address sender,
address dest,
bytes memory data
) external {
require(msg.sender == address(this), "Mint can only be called by self");
token.bridgeMint(dest, amount, "");
bool success = ITransf... | 12,697,081 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1147,
1807,
7412,
3953,
1552,
486,
336,
10861,
2674,
3241,
326,
10105,
1818,
11752,
279,
3953,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
474,
1876,
1477,
12,
203,
3639,
467,
686,
70,
1345,
1147,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
1570,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
3903,
288,
203,
3639... |
pragma solidity ^0.5.17;
interface IERC20 {
function TOTALSUPPLY3() external view returns (uint256); //inject NONSTANDARD NAMING
function BALANCEOF367(address account) external view returns (uint256); //inject NONSTANDARD NAMING
function TR... | inject NONSTANDARD NAMING
| function QUIT464(uint, address) external; | 12,996,826 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10110,
1285,
24,
1105,
12,
11890,
16,
1758,
13,
3903,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import {IWETH} from '../ERC20/IWETH.sol';
import {IERC20} from '../ERC20/IERC20.sol';
import {SafeMath} from '../utils/math/SafeMath.sol';
import {TransferHelper} from '../Uniswap/TransferHelper.sol';
import {UniswapV2Library} f... | * State variables./* Modifier./ | modifier ensure(uint256 deadline) {
require(deadline >= block.timestamp, 'UniswapLiquidityRouter: EXPIRED');
_;
}
constructor(
address arthxAddr_,
IUniswapV2Factory factory,
IWETH weth
| 13,128,920 | [
1,
4625,
348,
7953,
560,
30,
380,
3287,
3152,
18,
20308,
12832,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
3387,
12,
11890,
5034,
14096,
13,
288,
203,
3639,
2583,
12,
22097,
1369,
1545,
1203,
18,
5508,
16,
296,
984,
291,
91,
438,
48,
18988,
24237,
8259,
30,
31076,
5879,
8284,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
5... |
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since t... | File: coven/vapes.solSPDX-License-Identifier: MITContract based on [https:docs.openzeppelin.com/contracts/3.x/erc721](https:docs.openzeppelin.com/contracts/3.x/erc721) ============ ACCESS CONTROL/SANITY MODIFIERS ============ | contract BMCC is ERC721, IERC2981, Ownable, ReentrancyGuard {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private tokenCounter;
address private openSeaProxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
bool private isOpenSeaProxyActive = true;
... | 15,252,259 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
10613,
275,
19,
90,
7315,
18,
18281,
3118,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
8924,
2511,
603,
306,
4528,
30,
8532,
18,
3190,
94,
881,
84,
292,
267,
18,
832,
19,
16351,
87,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
605,
49,
6743,
353,
4232,
39,
27,
5340,
16,
467,
654,
39,
5540,
11861,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
... |
pragma solidity 0.5.8;
import "./ITRC20.sol";
import "./TRC20.sol";
import "./GDXToken.sol";
import "./Pausable.sol";
import "./Rank.sol";
import './Refer.sol';
////////////////////////////////////////////
// ┏┓ ┏┓
// ┏┛┻━━━┛┻┓
// ┃ ┃
// ┃ ━ ┃
// ┃ > < ┃
// ┃ ┃
// ┃ . ⌒ .. ┃
//... | 解除矿池质押的GDX 检查是否为矿主 分配矿池收益 结算矿主收益 更新用户信息 更新矿池排名 | function unstakingGDX(uint256 amount) public returns (bool) {
address sender = msg.sender;
uint256 pid;
bool isPoolOwner;
(pid, isPoolOwner) = getUserMinePoolID(sender);
require(pid != 0 && isPoolOwner, "no pool or not pool owner");
MinePool storage pool = minePool... | 5,386,503 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
169,
105,
101,
170,
252,
102,
168,
258,
128,
167,
114,
259,
169,
117,
106,
167,
237,
125,
168,
253,
231,
27338,
60,
225,
167,
101,
227,
167,
258,
103,
167,
251,
112,
166,
243,
104,
165,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
334,
6159,
27338,
60,
12,
11890,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
5793,
273,
1234,
18,
15330,
31,
203,
203,
3639,
2254,
5034,
4231,
31,
203,
3639,
1426,
353,
2864,
5541,
31,
203,
3... |
./partial_match/8453/0xBcFF559E85791cEDcF2541d1f20c9471801D1f02/sources/contracts/Libraries/LibPayments.sol | @dev Fetch local storage solhint-disable-next-line no-inline-assembly | function paymentStorage() internal pure returns (PaymentStorage storage payStor) {
bytes32 position = NAMESPACE;
assembly {
payStor.slot := position
}
}
| 16,713,696 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
8065,
1191,
2502,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5184,
3245,
1435,
2713,
16618,
1135,
261,
6032,
3245,
2502,
8843,
510,
280,
13,
288,
203,
3639,
1731,
1578,
1754,
273,
18494,
31,
203,
3639,
19931,
288,
203,
5411,
8843,
510,
280,
18,
14194,
519,
1754,
203,
3639,
289,
2... |
pragma solidity >=0.4.24;
contract SupplyChain{
//model a landlord
struct Landlord{
uint landlordID;
string landlordName;
uint landlordContact;
string landlordAddress;
address laddr;
bool isValue;
}
//model a seed dealer
struct SeedDealer{
u... | purchase crop by consumer | function consumerAddCrop(
uint _cropID,
uint quantity
) public {
Crop storage _newcrop = mcrop[_cropID];
Crop storage _newconscrop = conscrop[_cropID];
_newcrop.caddr = msg.sender;
_newcrop.isBoughtByConsumer = true;
_newcrop.quantity = _newcrop.quantity... | 15,796,782 | [
1,
4625,
348,
7953,
560,
30,
23701,
7987,
635,
4765,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4765,
986,
19729,
12,
203,
3639,
2254,
389,
13758,
734,
16,
203,
3639,
2254,
10457,
203,
377,
262,
1071,
288,
7010,
3639,
385,
1764,
2502,
389,
2704,
13758,
273,
6108,
1764,
63,
67,
13758,
734,
15533,
203,
3639,
385,
17... |
./partial_match/97/0x6c03C06c63c8631e517f4cC232A6054b2b95C5A8/sources/noname2.sol | * @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 (uint256)
{
require(blockNumber < block.number, "noname2::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
retu... | 11,376,065 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10229,
326,
6432,
1300,
434,
19588,
364,
392,
2236,
487,
434,
279,
1203,
1300,
632,
5206,
3914,
1300,
1297,
506,
279,
727,
1235,
1203,
578,
469,
333,
445,
903,
15226,
358,
5309,
7524,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
12,
2629,
1854,
411,
1203,
18,
2696,
16,
315,
5836,
... |
pragma solidity ^0.4.21;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the ... | * @title BasicERC20 token. @dev Basic version of ERC20 token with allowances./ | contract BasicERC20Token is Ownable {
using SafeMath for uint256;
uint256 public totalSupply;
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address index... | 1,065,236 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7651,
654,
39,
3462,
1147,
18,
632,
5206,
7651,
1177,
434,
4232,
39,
3462,
1147,
598,
1699,
6872,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7651,
654,
39,
3462,
1345,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
324,
26488,
31,
20... |
/**
*Submitted for verification at Etherscan.io on 2021-06-05
*/
pragma solidity ^0.6.6;
/**
*
*
*
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract NFTS is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping (add... | 8,074,177 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
423,
4464,
55,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
2648... |
./partial_match/1/0xAF5078bCEE5B9DE9Bb9394207Ca48ac32648C45f/sources/Workspace.sol | * @dev Let the owner set the marketplace address once minting is over Possible to do it more than once to ensure maintainability @param theMarketplace the marketplace address/ | function setMarketplace(address theMarketplace)
public
onlyMintingFinished
onlyOwner
{
marketplace = theMarketplace;
}
| 3,939,156 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10559,
326,
3410,
444,
326,
29917,
1758,
3647,
312,
474,
310,
353,
1879,
1377,
25433,
358,
741,
518,
1898,
2353,
3647,
358,
3387,
17505,
2967,
632,
891,
326,
3882,
24577,
326,
29917,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
3882,
24577,
12,
2867,
326,
3882,
24577,
13,
203,
1377,
1071,
203,
1377,
1338,
49,
474,
310,
10577,
203,
1377,
1338,
5541,
203,
225,
288,
203,
1377,
29917,
273,
326,
3882,
24577,
31,
203,
225,
289,
203,
203,
2,
-... |
./full_match/43114/0x4e13f37db9c8BDe41B34Ef1528C71E332AcBAf56/sources/Exchange.sol | deals with potential transfer tax
| _outputAmount = Math._min(_outputAmount, Transfers._getBalance(_to)); | 4,549,902 | [
1,
4625,
348,
7953,
560,
30,
225,
443,
1031,
598,
8555,
7412,
5320,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
67,
2844,
6275,
273,
2361,
6315,
1154,
24899,
2844,
6275,
16,
2604,
18881,
6315,
588,
13937,
24899,
869,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xb688801cadb4Ddb6980bb777d42972C24f920855/sources/solidity/contracts/core/VaultController.sol | the raw price is simply the oracle price of the token | _rawPrice = _safeu192(_collateral.oracle.currentValue());
| 9,678,022 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1831,
6205,
353,
8616,
326,
20865,
6205,
434,
326,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
389,
1899,
5147,
273,
389,
4626,
89,
15561,
24899,
12910,
2045,
287,
18,
280,
16066,
18,
2972,
620,
10663,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/42220/0x7ef2EA0939Fa35f3fA78616E3E12246324739203/sources/lib/staked-celo/contracts/Manager.sol | * @notice An instance of the StakedCelo contract this Manager manages./ | IStakedCelo internal stakedCelo;
| 3,497,640 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1922,
791,
434,
326,
934,
9477,
39,
24214,
6835,
333,
8558,
20754,
281,
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,
467,
510,
9477,
39,
24214,
2713,
384,
9477,
39,
24214,
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,
-10... |
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper ... | * @notice Update the rank of token. Can only be called by owner. @param token The token contract address. @param rank The rank to be assigned./ | function updateTokenRank(address token, uint256 rank) external {
require(token != address(0));
require(rank != 0);
require(tokenRanks[token] != 0);
require(tokenRanks[token] != rank);
tokenRanks[token] = rank;
}
| 15,834,860 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
326,
6171,
434,
1147,
18,
4480,
1338,
506,
2566,
635,
3410,
18,
632,
891,
1147,
1021,
1147,
6835,
1758,
18,
632,
891,
6171,
1021,
6171,
358,
506,
6958,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1345,
12925,
12,
2867,
1147,
16,
2254,
5034,
6171,
13,
3903,
288,
203,
3639,
2583,
12,
2316,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
12,
11500,
480,
374,
1769,
203,
3639,
2583,
12,
2316,
12925,
87,
63,
2316,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./libraries/PoolDepositable.sol";
import "./libraries/Tierable.sol";
import "./libraries/Suspendable.sol";
import "./libraries/PoolVestingDepositable.sol";
/** @title Loc... | * @dev returns the vested amount of a pool deposit/ this schedule is reached, calculate its amount add it to vested amount | function __PoolVestingDepositable_init_unchained()
internal
onlyInitializing
function _vestedAmountOf(address account, uint256 poolIndex)
private
view
returns (uint256 vestedAmount)
{
VestingPool memory pool = getVestingPool(poolIndex);
for (uint256 i... | 11,945,854 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1135,
326,
331,
3149,
3844,
434,
279,
2845,
443,
1724,
19,
333,
4788,
353,
8675,
16,
4604,
2097,
3844,
527,
518,
358,
331,
3149,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1001,
2864,
58,
10100,
758,
1724,
429,
67,
2738,
67,
4384,
8707,
1435,
203,
3639,
2713,
203,
3639,
1338,
29782,
203,
203,
565,
445,
389,
90,
3149,
6275,
951,
12,
2867,
2236,
16,
2254,
5034,
2845,
1016,
13,
203,
3639,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
/******************************************/
/* SyncDEX starts here */
/******************************************/
abstract contract SyncDEX
{
function sync() external virtual;
}
/******************************************/
/* ... | * @dev Remove a Liquidity Pool. @param _index Index of Liquidity Pool./ | function removeSyncPool (uint256 _index) public isOwner {
delete SyncPools[_index];
}
| 389,081 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3581,
279,
511,
18988,
24237,
8828,
18,
632,
891,
389,
1615,
3340,
434,
511,
18988,
24237,
8828,
18,
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,
565,
445,
1206,
4047,
2864,
261,
11890,
5034,
389,
1615,
13,
1071,
353,
5541,
288,
203,
3639,
1430,
9721,
16639,
63,
67,
1615,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma ton-solidity >= 0.38.2;
/// @title LiquiSOR\DEX
/// @author laugan
library DEX {
/* Constants */
uint128 constant INITIAL_GAS = 1.0 ton;
uint64 constant QUERY_FEE = 0.05 ton;
uint64 constant WALLET_DEPLOY_FEE = 1 ton; // for new token wallet
uint64 consta... | This token is not imported to DEX
| uint16 constant ERROR_UNKNOWN_TOKEN = 506; | 12,760,583 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
1147,
353,
486,
9101,
358,
2030,
60,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
2313,
5381,
5475,
67,
14737,
67,
8412,
2398,
273,
6437,
26,
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... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/math/SignedSafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20... | @notice Get the amounts of the given numbers of liquidity tokens @param tickLower The lower tick of the position @param tickUpper The upper tick of the position @param liquidity The amount of liquidity tokens @return Amount of token0 and token1 | function _amountsForLiquidity(
int24 tickLower,
int24 tickUpper,
uint128 liquidity
) internal view returns (uint256, uint256) {
(uint160 sqrtRatioX96, , , , , , ) = pool.slot0();
return
LiquidityAmounts.getAmountsForLiquidity(
sqrtRatioX96,
... | 17,151 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
326,
30980,
434,
326,
864,
5600,
434,
4501,
372,
24237,
2430,
632,
891,
4024,
4070,
1021,
2612,
4024,
434,
326,
1754,
632,
891,
4024,
5988,
1021,
3854,
4024,
434,
326,
1754,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
389,
8949,
28388,
48,
18988,
24237,
12,
203,
3639,
509,
3247,
4024,
4070,
16,
203,
3639,
509,
3247,
4024,
5988,
16,
203,
3639,
2254,
10392,
4501,
372,
24237,
203,
565,
262,
2713,
1476,
1135,
261,
11890,
5034,
16,
2254,
... |
pragma solidity ^0.4.18;
contract Custodian {
// fallback for loancoin
function tokenFallback(address _address, uint256 _value, bytes _data) public {
}
}
contract RatelExampleToken {
// locked
mapping (address => uint256) public lockedValue;
// ERC20 State
mapping (address => uint256) public balances... | check if address is contract or not | function isContract(address _address) private view returns (bool is_contract) {
uint length;
assembly {
length := extcodesize(_address)
}
if (length > 0) {
return true;
return false;
}
}
| 14,024,744 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
309,
1758,
353,
6835,
578,
486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
353,
8924,
12,
2867,
389,
2867,
13,
3238,
1476,
1135,
261,
6430,
353,
67,
16351,
13,
288,
203,
565,
2254,
769,
31,
203,
565,
19931,
288,
203,
1377,
769,
519,
1110,
7000,
554,
24899,
2867,
13,
203,
565,
289,
203,
565,
... |
./full_match/1/0x5de58BF4ef40e923797aFF1767F8ed4143e6c032/sources/contracts/rate_oracles/OracleBuffer.sol | @title OracleBuffer @notice Provides the value history needed by multiple oracle contracts @dev Instances of stored oracle data, "observations", are collected in the oracle array Every pool is initialized with an oracle array length of 1. Anyone can pay the SSTOREs to increase the maximum length of the oracle array. N... | library OracleBuffer {
uint256 public constant MAX_BUFFER_LENGTH = 65535;
pragma solidity =0.8.9;
struct Observation {
uint32 blockTimestamp;
uint216 observedValue;
bool initialized;
}
function observation(uint32 blockTimestamp, uint256 observedValue)
private
pu... | 16,410,663 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
28544,
1892,
632,
20392,
28805,
326,
460,
4927,
3577,
635,
3229,
20865,
20092,
632,
5206,
18357,
434,
4041,
20865,
501,
16,
315,
31513,
3113,
854,
12230,
316,
326,
20865,
526,
16420,
2845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28544,
1892,
288,
203,
565,
2254,
5034,
1071,
5381,
4552,
67,
11302,
67,
7096,
273,
10147,
31,
203,
203,
683,
9454,
18035,
560,
273,
20,
18,
28,
18,
29,
31,
203,
565,
1958,
27177,
367,
288,
203,
3639,
2254,
1578,
1203,
4... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/access/AccessControl.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
/**
* @title VestingInstance
* @dev Implements a vesting ... | * @dev Calculate when the vesting contract completes vesting./ | function calc_end_timestamp() public view returns(uint) {
return (vesting_start_time + delay + pause_delay + period_time*num_periods + paused_delay());
}
| 5,354,868 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9029,
1347,
326,
331,
10100,
6835,
7218,
331,
10100,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7029,
67,
409,
67,
5508,
1435,
1071,
1476,
1135,
12,
11890,
13,
288,
203,
3639,
327,
261,
90,
10100,
67,
1937,
67,
957,
397,
4624,
397,
11722,
67,
10790,
397,
3879,
67,
957,
14,
2107,
67,
20659,
397,
17781,
67,
10790,... |
./full_match/4/0xcF9C5EA1373f233F323156C2249662Cf9c60386d/sources/contracts/AbstractToken.sol | * Allow given spender to transfer given number of tokens from message sender. @param _spender address to allow the owner of to transfer tokens from message sender @param _value number of tokens to allow to transfer @return success true if token transfer was successfully approved, false otherwise/ | function approve (address _spender, uint256 _value)
public override virtual returns (bool success) {
allowances [msg.sender][_spender] = _value;
emit Approval (msg.sender, _spender, _value);
return true;
}
| 755,039 | [
1,
4625,
348,
7953,
560,
30,
380,
7852,
864,
17571,
264,
358,
7412,
864,
1300,
434,
2430,
628,
883,
5793,
18,
632,
891,
389,
87,
1302,
264,
1758,
358,
1699,
326,
3410,
434,
358,
7412,
2430,
628,
3639,
883,
5793,
632,
891,
389,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
261,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
203,
225,
1071,
3849,
5024,
1135,
261,
6430,
2216,
13,
288,
203,
565,
1699,
6872,
306,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
273,
389,
... |
./full_match/43113/0xCff1Ea16293C8F074A5d15A6c8171400925Dc714/sources/contracts/SavingGroups.sol | amount to be payed as commitment at the begining of the saving circle
| uint256 public cashIn; | 7,120,572 | [
1,
4625,
348,
7953,
560,
30,
3844,
358,
506,
8843,
329,
487,
23274,
622,
326,
2376,
310,
434,
326,
12392,
12470,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
276,
961,
382,
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,
-... |
./full_match/97/0xec51816BFE26468dec6931baF37a168637b6D3f5/sources/staking/Staking.sol | there is no any delegations at al, lets create the first one | delegation.delegateQueue.push(DelegationOpDelegate({epoch : sinceEpoch, amount : uint112(amount / BALANCE_COMPACT_PRECISION)}));
| 5,034,334 | [
1,
4625,
348,
7953,
560,
30,
225,
1915,
353,
1158,
1281,
11158,
1012,
622,
524,
16,
14557,
752,
326,
1122,
1245,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
5411,
23595,
18,
22216,
3183,
18,
6206,
12,
26945,
3817,
9586,
12590,
12015,
294,
3241,
14638,
16,
3844,
294,
2254,
17666,
12,
8949,
342,
605,
1013,
4722,
67,
4208,
4066,
1268,
67,
3670,
26913,
13,
6792,
1769,
203,
2,
-100,
-100,
... |
./partial_match/1/0xd40cADE3f71C20Ba6FE940E431c890dC100E97d6/sources/Rewards.sol | File: @openzeppelin/contracts/GSN/Context.sol @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 when dealing with GSN meta-trans... | contract Context {
constructor() {
}
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
return msg.data;
}
}
| 2,786,395 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
43,
13653,
19,
1042,
18,
18281,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
565,
3885,
1435,
288,
203,
565,
289,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
1135,
261,
2867,
8843,
429,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
565,
44... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
import "./Objects.sol";
import "../mixins/EnumerableBytes32Set.sol";
import "../openzeppelin/ReentrancyGuard.sol";
import "../openzeppelin/Ownable.sol";
import "../openzeppelin/... | total borrowing fees received and not withdrawn per asset
| mapping(address => uint256) public borrowingFeeTokensHeld; | 5,472,608 | [
1,
4625,
348,
7953,
560,
30,
225,
2078,
29759,
310,
1656,
281,
5079,
471,
486,
598,
9446,
82,
1534,
3310,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
6770,
12,
2867,
516,
2254,
5034,
13,
1071,
29759,
310,
14667,
5157,
44,
488,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
* SPDX-License-Identitifer: GPL-3.0-or-later
*/
pragma solidity 0.4.24;
import "@aragon/apps-agent/contracts/SignatureValidator.sol";
import "@aragon/apps-agent/contracts/standards/IERC165.sol";
import "@aragon/apps-agent/contracts/standards/ERC1271.sol";
import "@aragon/apps-agent/contracts/standards/IERC721... | * @notice Tells whether this contract supports a given ERC-165 interface @dev Implements conformance to ERC-165 @param _interfaceId Interface bytes to check @return True if this contract supports the interface/ | function supportsInterface(bytes4 _interfaceId) external pure returns (bool) {
return
_interfaceId == ERC1271_INTERFACE_ID ||
_interfaceId == ERC721_RECEIVED_INTERFACE_ID ||
_interfaceId == ERC165_INTERFACE_ID;
}
| 1,757,250 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
29860,
87,
2856,
333,
6835,
6146,
279,
864,
4232,
39,
17,
28275,
1560,
632,
5206,
29704,
20156,
1359,
358,
4232,
39,
17,
28275,
632,
891,
389,
5831,
548,
6682,
1731,
358,
866,
632,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6146,
1358,
12,
3890,
24,
389,
5831,
548,
13,
3903,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
203,
5411,
389,
5831,
548,
422,
4232,
39,
2138,
11212,
67,
18865,
67,
734,
747,
203,
5411,
389,
5831,
548,
422,
4232... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/* INHERITANCE IMPORTS */
import "./proxy/ERC1967Proxy.sol";
contract XenoERC20Proxy is ERC1967Proxy {
constructor(address logic) ERC1967Proxy(logic, "") {}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/* INHERITANCE IMPORTS */
import "./P... | * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. Emits an {Upgraded} event./ Initial upgrade and setup call Trigger rollback using upgradeTo from the new implementation Check rollback was effective Finally reset to the new implementation and log the upgrade | function _upgradeToAndCallSecure(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
address oldImplementation = _getImplementation();
_setImplementation(newImplementation);
if (data.length > 0 || forceCall) {
Address.functionDe... | 121,219 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11217,
4471,
8400,
598,
4373,
4271,
364,
587,
3079,
55,
13263,
16,
471,
3312,
3875,
745,
18,
7377,
1282,
392,
288,
1211,
19305,
97,
871,
18,
19,
10188,
8400,
471,
3875,
745,
11321,
8006,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15097,
774,
1876,
1477,
12834,
12,
203,
3639,
1758,
394,
13621,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
1426,
2944,
1477,
203,
565,
262,
2713,
288,
203,
3639,
1758,
1592,
13621,
273,
389,
588,
13621,
5621,
2... |
// Copyright (C) 2020 Christian Felde
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in w... | Instantiate AKAP from address Claim a new node using this contracts address as a random seed. The node will use the root node at id 0 as it's parent. Approve msg.sender as operator on the node, so that the contract creator can operate on the node. We will use features from ERC-721 to do this. | constructor(address _akapAddress) public {
akapAddress = _akapAddress;
IAKAP akap = IAKAP(akapAddress);
uint parent = 0;
require(akap.claim(parent, abi.encode(address(this))) > 0, "Unable to claim node");
node = akap.hashOf(parent, abi.encode(address(this)));
IERC7... | 5,460,341 | [
1,
4625,
348,
7953,
560,
30,
225,
26492,
432,
47,
2203,
628,
1758,
18381,
279,
394,
756,
1450,
333,
20092,
1758,
487,
279,
2744,
5009,
18,
1021,
756,
903,
999,
326,
1365,
756,
622,
612,
374,
487,
518,
1807,
982,
18,
1716,
685,
537... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
2867,
389,
581,
438,
1887,
13,
1071,
288,
203,
3639,
20952,
438,
1887,
273,
389,
581,
438,
1887,
31,
203,
203,
3639,
467,
14607,
2203,
20952,
438,
273,
467,
14607,
2203,
12,
581,
438,
1887,
1769,
203,
203,
3639,
... |
./full_match/8453/0x7D691e6b03b46B5A5769299fC9a32EaC690B7abc/sources/contracts/utils/Multicall.sol | * @title Multicall @author Hysland Finance @notice Receives and executes a batch of function calls on this contract. A more efficient version of OpenZeppelin's multicall./ | abstract contract Multicall {
pragma solidity 0.8.19;
import { Errors } from "./../libraries/Errors.sol";
function multicall(bytes[] calldata data) external returns (bytes[] memory results) {
results = new bytes[](data.length);
for (uint256 i = 0; i < data.length; i++) {
results[i] = _s... | 11,557,838 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7778,
335,
454,
632,
4161,
670,
1900,
15733,
9458,
1359,
632,
20392,
9797,
3606,
471,
11997,
279,
2581,
434,
445,
4097,
603,
333,
6835,
18,
432,
1898,
14382,
1177,
434,
3502,
62,
881,
84,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17801,
6835,
7778,
335,
454,
288,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
3657,
31,
203,
5666,
288,
9372,
289,
628,
25165,
6216,
31417,
19,
4229,
18,
18281,
14432,
203,
565,
445,
1778,
335,
454,
12,
3890,
8526,
745,
8... |
./partial_match/1/0xb17c618ed53B4A3536D2AF3Af73c6b303DbfAb5B/sources/UniswapV3xPYT.sol | @notice Updates the protocol fee and/or the protocol fee recipient. Only callable by the owner. @param protocolFeeInfo_ The new protocol fee info | function ownerSetProtocolFee(ProtocolFeeInfo calldata protocolFeeInfo_)
external
virtual
onlyOwner
{
if (
protocolFeeInfo_.fee != 0 &&
protocolFeeInfo_.recipient == address(0)
) {
revert Error_ProtocolFeeRecipientIsZero();
}
... | 3,679,951 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
15419,
326,
1771,
14036,
471,
19,
280,
326,
1771,
14036,
8027,
18,
5098,
4140,
635,
326,
3410,
18,
632,
891,
1771,
14667,
966,
67,
1021,
394,
1771,
14036,
1123,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
694,
5752,
14667,
12,
5752,
14667,
966,
745,
892,
1771,
14667,
966,
67,
13,
203,
3639,
3903,
203,
3639,
5024,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
309,
261,
203,
5411,
1771,
14667,
966,
27799,
21386,
4... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is che... | @dev An atomic txn optimization for calling resetDiscounts and then setDiscounts, so we don't have to experience any moment of not having any items under discount. @param _tokenIds the IDs of the new items to discount @param _discountPrices the discounted prices of the new items to discount | function resetOldAndSetNewDiscounts(uint256[] _tokenIds, uint256[] _discountPrices) public onlyOperator {
resetDiscounts();
setDiscounts(_tokenIds, _discountPrices);
}
| 1,789,935 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1922,
7960,
7827,
14850,
364,
4440,
2715,
1669,
8008,
471,
1508,
444,
1669,
8008,
16,
1427,
732,
2727,
1404,
1240,
358,
31207,
1281,
10382,
434,
486,
7999,
1281,
1516,
3613,
12137,
18,
632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2715,
7617,
13152,
1908,
1669,
8008,
12,
11890,
5034,
8526,
389,
2316,
2673,
16,
2254,
5034,
8526,
389,
23650,
31862,
13,
1071,
1338,
5592,
288,
203,
3639,
2715,
1669,
8008,
5621,
203,
3639,
444,
1669,
8008,
24899,
2316,
... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* ... | * @dev Initial funding for the insurance. Unless there are too many delayed flights resulting in insurance payouts, the contract should be self-sustaining/ | function fund(address sender) external payable isCallerAuthorized{
require(msg.value > 0, "No funds are not allowed");
funds[sender] = funds[sender].add(msg.value);
}
| 15,859,700 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10188,
22058,
364,
326,
2763,
295,
1359,
18,
1351,
2656,
1915,
854,
4885,
4906,
15278,
1183,
10730,
1377,
8156,
316,
2763,
295,
1359,
293,
2012,
87,
16,
326,
6835,
1410,
506,
365,
17,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
1074,
12,
2867,
5793,
13,
3903,
8843,
429,
353,
11095,
15341,
95,
203,
3639,
2583,
12,
3576,
18,
1132,
405,
374,
16,
315,
2279,
284,
19156,
854,
486,
2935,
8863,
203,
3639,
284,
19156,
63,
15330,
65,
273,
284,
19... |
./full_match/80001/0x7261caC5F1Fe5B3f0A5A5c37B5a77F0d79F387d7/sources/packages/paymasters/contracts/WhitelistPaymaster.sol | A sample paymaster that has whitelists for senders, targets and methods. - if at least one sender is whitelisted, then ONLY whitelisted senders are allowed. - if at least one target is whitelisted, then ONLY whitelisted targets are allowed. | contract WhitelistPaymaster is BasePaymaster {
bool public useSenderWhitelist;
bool public useTargetWhitelist;
bool public useMethodWhitelist;
bool public useRejectOnRecipientRevert;
mapping(address => bool) public senderWhitelist;
mapping(address => bool) public targetWhitelist;
mapping(ad... | 5,553,920 | [
1,
4625,
348,
7953,
560,
30,
225,
432,
3296,
8843,
7525,
716,
711,
600,
305,
292,
1486,
364,
1366,
414,
16,
5774,
471,
2590,
18,
300,
309,
622,
4520,
1245,
5793,
353,
26944,
16,
1508,
20747,
26944,
1366,
414,
854,
2935,
18,
300,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
16351,
3497,
7523,
9148,
7525,
353,
3360,
9148,
7525,
288,
203,
203,
565,
1426,
1071,
999,
12021,
18927,
31,
203,
565,
1426,
1071,
999,
2326,
18927,
31,
203,
565,
1426,
1071,
999,
1305,
18927,
31,
203,
565,
1426,
1071,
999,
21705,
... |
./partial_match/4/0x8C6b30b20Dc90102911dBa89d73724569794df97/sources/LiquidityMine.sol | set this to zero to start
| earnedRewards = 0; | 8,531,409 | [
1,
4625,
348,
7953,
560,
30,
444,
333,
358,
3634,
358,
787,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
425,
1303,
329,
17631,
14727,
273,
374,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^ 0.4.25;
// -----------------------------------------------------------------------------------------------------------------
//
// Recon® Token Teleportation Service v1.10
//
// of BlockReconChain®
// for ReconBank®
//
/... | Recon Central Securities Depository (Recon Vault PrivatStock)
| _teamTransfer(0x0bD212e88522b7F4C673fccBCc38558829337f71, 4000000000 * ReconToMicro); | 918,223 | [
1,
4625,
348,
7953,
560,
30,
225,
868,
591,
385,
12839,
3232,
295,
1961,
4019,
538,
305,
630,
261,
426,
591,
17329,
28274,
270,
17821,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
10035,
5912,
12,
20,
92,
20,
70,
40,
22,
2138,
73,
5482,
25,
3787,
70,
27,
42,
24,
39,
26,
9036,
74,
952,
16283,
71,
7414,
2539,
5482,
5540,
3707,
27,
74,
11212,
16,
1059,
2787,
11706,
380,
868,
591,
774,
13617,
... |
./full_match/8453/0xF3c78143983A2C4755E21c128aAa3d766C44EBc5/sources/project:/contracts/BayVelodromeV2Zap.sol | File: contracts/BIFI/zaps/libs/Babylonian.sol computes square roots using the babylonian method https:en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method credit for this implementation goes to https:github.com/abdk-consulting/abdk-libraries-solidity/blob/5e1e7c11b35f8313d3f7ce11c1b86320d7c0b554/A... | library Babylonian {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
pragma solidity ^0.8.0;
}
pragma solidity ^0.8.0;
}
pragma solidity >=0.8.0;
functio... | 11,558,160 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
38,
5794,
19,
94,
6679,
19,
21571,
19,
38,
24383,
9379,
2779,
18,
18281,
15881,
8576,
12876,
1450,
326,
324,
24383,
9379,
2779,
707,
2333,
30,
275,
18,
11999,
13744,
18,
3341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
24383,
9379,
2779,
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,
12,
203,
3639,
1758,
628,
... |
./full_match/1/0x710107831b01fa168fFE892F65ED9aA1E9FBd714/sources/LiquiShieldRouter.sol | Get the total supply of the non-WETH token | address nonWethToken = (wethToken == tokenA) ? tokenB : tokenA;
| 9,750,647 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
326,
2078,
14467,
434,
326,
1661,
17,
59,
1584,
44,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1758,
1661,
59,
546,
1345,
273,
261,
91,
546,
1345,
422,
1147,
37,
13,
692,
1147,
38,
294,
1147,
37,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Dependency file: @openzeppelin/as/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external v... | Dependency file: as/lib/AddressArrayUtils.sol/ pragma solidity 0.6.10;* @title AddressArrayUtils @author Set Protocol Utility functions to handle Address Arrays/ | library AddressArrayUtils {
function addComponent(address _component) external;
function removeComponent(address _component) external;
function editDefaultPositionUnit(address _component, int256 _realUnit) external;
function addExternalPositionModule(address _component, address _positionModule) externa... | 15,870,989 | [
1,
4625,
348,
7953,
560,
30,
225,
11993,
585,
30,
487,
19,
2941,
19,
1887,
1076,
1989,
18,
18281,
19,
10878,
18035,
560,
374,
18,
26,
18,
2163,
31,
14,
632,
2649,
5267,
1076,
1989,
632,
4161,
1000,
4547,
13134,
4186,
358,
1640,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
5267,
1076,
1989,
288,
203,
203,
565,
445,
15218,
12,
2867,
389,
4652,
13,
3903,
31,
203,
565,
445,
1206,
1841,
12,
2867,
389,
4652,
13,
3903,
31,
203,
565,
445,
3874,
1868,
2555,
2802,
12,
2867,
389,
4652,
16,
509,
5034... |
pragma solidity 0.7.4;
pragma experimental ABIEncoderV2;
import "./Ownable.sol";
import "@0xsequence/erc-1155/contracts/utils/SafeMath.sol";
/**
* @dev This contract allows an owner to execute registered calls after an expiration
* delay has passed. This contract can then be the owner of another contract to
*... | * @notice Register a transaction to execute post delay @param _tx Transaction to execute/ Set trigger time and mark transaction as pending Store transaction | function register(Transaction memory _tx) onlyOwner() public {
require(txHashes[_tx.id] == 0x0, "DelayedOwner#register: TX_ALREADY_REGISTERED");
_tx.triggerTime = block.timestamp.add(EXECUTION_DELAY);
_tx.status = Status.Pending;
txHashes[_tx.id] = keccak256(abi.encode(_tx));
emit TransactionReg... | 5,366,694 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5433,
279,
2492,
358,
1836,
1603,
4624,
632,
891,
389,
978,
5947,
358,
1836,
19,
1000,
3080,
813,
471,
2267,
2492,
487,
4634,
4994,
2492,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1744,
12,
3342,
3778,
389,
978,
13,
1338,
5541,
1435,
1071,
288,
203,
565,
2583,
12,
978,
14455,
63,
67,
978,
18,
350,
65,
422,
374,
92,
20,
16,
315,
29527,
5541,
7,
4861,
30,
23211,
67,
1013,
20305,
67,
27511,
2056... |
./full_match/5/0xAfDaEBBA15e3bc06fea71c78BB033d00EB24511C/sources/contracts/tradesynth.sol | Inventory Management | struct Product {
uint256 id;
string name;
uint256 quantity;
uint256 reorderThreshold;
}
mapping(uint256 => Product) public products;
uint256 public totalProducts;
event ProductAdded(uint256 indexed productId, string name, uint256 quantity, uint256 reorderThreshold);... | 1,930,255 | [
1,
4625,
348,
7953,
560,
30,
225,
24835,
13303,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
8094,
288,
203,
3639,
2254,
5034,
612,
31,
203,
3639,
533,
508,
31,
203,
3639,
2254,
5034,
10457,
31,
203,
3639,
2254,
5034,
19427,
7614,
31,
203,
565,
289,
203,
203,
565,
2874,
12,
11890,
5034,
516,
8094,
13,
1071,
... |
./partial_match/1/0x9A3fB36bF72a387fCC821A38eE9F50f1A0eb8Cbd/sources/derpman.sol | Internal functions if sell if buy | function _transfer(address sender, address recipient, uint256 amount) internal virtual {
_beforeTransfer(sender, recipient, amount);
uint256 burnFee = 0;
uint256 devFee = 0;
if (sender != owner() && recipient != owner()) {
if (!_isExcludedFromFees[sender] && !_isExcluded... | 2,698,888 | [
1,
4625,
348,
7953,
560,
30,
225,
3186,
4186,
309,
357,
80,
309,
30143,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
389,
5771,
5912,
12,
15330,
16,
8027,
16,
3844,
1769,
203,
3639,
2254,
5034,
18305,
14667,
273,
374,
31,
203,
3639,
2254,... |
./full_match/43113/0x101061ac181FEca52A69c569c0601dB6e4dd7098/sources/home/pedro/Documents/projects/avalabs/party-swap/party-pinatas/contracts/LiquidityPoolManager.sol | * Adds a new whitelisted liquidity pool pair. Generates a staking contract. Liquidity providers may stake this liquidity provider reward token and claim PARTY rewards proportional to their stake. Pair must contain either AVAX or PARTY. Associates a weight with the pair. Rewards are distributed to the pair proportionall... | function addWhitelistedPool(address pair, uint256 weight)
external
onlyOwner
{
require(
!readyToDistribute,
"LPM::addWhitelistedPool: Cannot add pool between calculating and distributing returns"
);
require(
pair != address(0),
... | 13,165,194 | [
1,
4625,
348,
7953,
560,
30,
380,
15605,
279,
394,
26944,
4501,
372,
24237,
2845,
3082,
18,
31902,
279,
384,
6159,
6835,
18,
511,
18988,
24237,
9165,
2026,
384,
911,
333,
4501,
372,
24237,
2893,
19890,
1147,
471,
7516,
3939,
5538,
283... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
18927,
329,
2864,
12,
2867,
3082,
16,
2254,
5034,
3119,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
401,
1672,
774,
1669,
887,
16,
203,
5411,
315,
48,
12728,
2866,
1... |
pragma solidity 0.4.24;
/**
* @title ERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface ERC165 {
/**
* @notice Query if a contract implements an interface
* @param _interfaceId The interface identifier, as specified in ERC-165
* @dev Interface identification is speci... | * @dev Internal function to clear current approval of a given token ID Reverts if the given address is not indeed the owner of the token @param _owner owner of the token @param _tokenId uint256 ID of the token to be transferred/ | function clearApproval(address _owner, uint256 _tokenId) internal {
require(ownerOf(_tokenId) == _owner);
if (tokenApprovals[_tokenId] != address(0)) {
tokenApprovals[_tokenId] = address(0);
}
}
| 6,500,504 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
2424,
783,
23556,
434,
279,
864,
1147,
1599,
868,
31537,
309,
326,
864,
1758,
353,
486,
316,
323,
329,
326,
3410,
434,
326,
1147,
632,
891,
389,
8443,
3410,
434,
326,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
2424,
23461,
12,
2867,
389,
8443,
16,
2254,
5034,
389,
2316,
548,
13,
2713,
288,
203,
3639,
2583,
12,
8443,
951,
24899,
2316,
548,
13,
422,
389,
8443,
1769,
203,
3639,
309,
261,
2316,
12053,
4524,
63,
67,
2316,
548,
6... |
./partial_match/1/0xA5F04949bD6713F007006eDAcd9b4BAB314654EA/sources/SeigniorageShares.sol | governance storage var ================================================================================================ | mapping (address => address) internal _delegates2;
| 3,574,236 | [
1,
4625,
348,
7953,
560,
30,
225,
314,
1643,
82,
1359,
2502,
569,
422,
9917,
2429,
26678,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
261,
2867,
516,
1758,
13,
2713,
389,
3771,
1332,
815,
22,
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,
... |
./partial_match/42/0xAfbBFf19E163078242dB71Aff355EFAA25799B26/sources/CompoundLeverageModule.sol | * Invoke enter markets from SetToken/ Compound's enter market function signature is: enterMarkets(address[] _cTokens) | function _enterMarket(ISetToken _setToken, ICErc20 _cToken) internal {
address[] memory marketsToEnter = new address[](1);
marketsToEnter[0] = address(_cToken);
uint256[] memory returnValues = abi.decode(
_setToken.invoke(address(comptroller), 0, abi.encodeWithSignature("enterMa... | 8,833,773 | [
1,
4625,
348,
7953,
560,
30,
380,
14373,
6103,
2267,
2413,
628,
1000,
1345,
19,
21327,
1807,
6103,
13667,
445,
3372,
353,
30,
6103,
3882,
2413,
12,
2867,
8526,
389,
71,
5157,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
2328,
3882,
278,
12,
45,
694,
1345,
389,
542,
1345,
16,
467,
1441,
1310,
3462,
389,
71,
1345,
13,
2713,
288,
203,
3639,
1758,
8526,
3778,
2267,
2413,
774,
10237,
273,
394,
1758,
8526,
12,
21,
1769,
203,
3639,
226... |
./full_match/44787/0x31aa5951100e11b8A34Bc9D98a44De152Dc5d3a2/sources/contracts/vm/ops/token/IERC1155Ops.sol | @dev Number of provided opcodes for `IERC1155Ops`. | uint256 constant IERC1155_OPS_LENGTH = 2;
| 13,255,977 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3588,
434,
2112,
1061,
7000,
364,
1375,
45,
654,
39,
2499,
2539,
8132,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11890,
5034,
5381,
467,
654,
39,
2499,
2539,
67,
3665,
55,
67,
7096,
273,
576,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x3b49ec0769D461FDFD2ed18dd69b3B8cb7788597/sources/MonsterMash.sol | Setup the value to swap in for the selected IDSelect a random ID, swap it out with an unselected one then shorten the selection range by 1 | function genID() private returns(uint256) {
uint256 scope = MAX_Supply-scopeIndex;
uint256 swap;
uint256 result;
uint256 i = randomNumber() % scope;
if (swappedIDs[scope-1] == 0){
swap = scope-1;
swap = swappedIDs[scope-1];
}
if (swa... | 8,433,138 | [
1,
4625,
348,
7953,
560,
30,
10939,
326,
460,
358,
7720,
316,
364,
326,
3170,
1599,
3391,
279,
2744,
1599,
16,
7720,
518,
596,
598,
392,
640,
8109,
1245,
1508,
19651,
326,
4421,
1048,
635,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3157,
734,
1435,
3238,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2146,
273,
4552,
67,
3088,
1283,
17,
4887,
1016,
31,
203,
3639,
2254,
5034,
7720,
31,
203,
3639,
2254,
5034,
563,
31,
203,
203,
3639,
2254,
... |
/// @title Store lederboards in the Blockchain
/// @author Marcel Scherello blockscores@scherello.de
/// @notice Create a custom leaderboard and start counting the scores
/// @dev All function calls are currently implement without side effects
/// @dev v1.1.0
contract BlockScores {
struct Player {
bytes32 ... | @notice Get the metadata of a leaderboard @param boardHash The hash of the leaderboard @return Leaderboard name, description and number of players | function getBoardByHash(bytes32 boardHash) constant public returns(bytes32,string,uint){
return (boards[boardHash].boardName, boards[boardHash].boardDescription, boards[boardHash].numPlayers);
}
| 4,814,319 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
326,
1982,
434,
279,
30052,
632,
891,
11094,
2310,
1021,
1651,
434,
326,
30052,
632,
2463,
26048,
3752,
508,
16,
2477,
471,
1300,
434,
18115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
83,
1060,
858,
2310,
12,
3890,
1578,
11094,
2310,
13,
5381,
1071,
1135,
12,
3890,
1578,
16,
1080,
16,
11890,
15329,
203,
3639,
327,
261,
3752,
87,
63,
3752,
2310,
8009,
3752,
461,
16,
11094,
87,
63,
3752,
2310,
... |
./partial_match/1/0x521DF2a0D6cfeb304f488237d2C97Ef70e232055/sources/StdReferenceTick.sol | storage 31|3|(timeOffset(18)+tick(19))*6| | mapping(uint256 => uint256) public refs;
| 4,460,136 | [
1,
4625,
348,
7953,
560,
30,
225,
2502,
8231,
96,
23,
96,
12,
957,
2335,
12,
2643,
27921,
6470,
12,
3657,
3719,
14,
26,
96,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
1071,
9047,
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... |
pragma solidity ^0.8.0;
import "../vendor/v0.8/Ownable.sol";
import "../vendor/v0.8/IERC20.sol";
import "../vendor/v0.8/SafeERC20.sol";
import "../vendor/v0.8/ReentrancyGuard.sol";
import "../vendor/v0.8/SafeMath.sol";
import "../vendor/v0.8/Initializable.sol";
import "../vendor/v0.8/OwnableUpgradeable.sol";
import ".... | helper for addr2str split a bytes1 into its two 4 bit utf8 char ints | function byte2UtfInts(bytes1 _b) internal pure returns (uint8 _x, uint8 _y) {
_x = checkUtfUint8(0x30 + ((uint8(_b) >> 4) & 0x0f));
_y = checkUtfUint8(0x30 + ((uint8(_b)) & 0x0f));
}
| 12,807,092 | [
1,
4625,
348,
7953,
560,
30,
225,
4222,
364,
3091,
22,
701,
1416,
279,
1731,
21,
1368,
2097,
2795,
1059,
2831,
7718,
28,
1149,
15542,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1160,
22,
15230,
24712,
12,
3890,
21,
389,
70,
13,
2713,
16618,
1135,
261,
11890,
28,
389,
92,
16,
2254,
28,
389,
93,
13,
288,
203,
3639,
389,
92,
273,
866,
15230,
5487,
28,
12,
20,
92,
5082,
397,
14015,
11890,
28,
... |
pragma solidity ^0.4.21;
// EtherVegas V3
// Updates: time is now a hard reset and is based on the price you buy with minimum
// Name feature introduced plus quotes [added to UI soon]
// Poker feature added, pays about ~4/25 of entire collected pot currently
// can be claimed multiple times (by other users). ... | full house tripple low
| output[2] = suit; | 7,307,423 | [
1,
4625,
348,
7953,
560,
30,
225,
1983,
23867,
20654,
1802,
4587,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
876,
63,
22,
65,
273,
1597,
305,
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,
... |
./full_match/4/0xf09b986f6D4E9929d22885b6035deCBb86A01C15/sources/browser/Untitled.sol | to use anyother token(coin) for payment in-out that must be allowed by superadmin (owner) in other words if that coin address contains > 0 value in ether will be allowed means if validStableCoin[address] > 0 then can be used here network tree information ( user, parent, child-count, ref-count etc) | {
mapping(address => uint256) public validStableCoin;
struct userInfo
{
address payable user;
uint32 parentId;
uint32 referrerId;
uint8 childCount;
uint8 lastBoughtLevel;
uint16 referralCount;
uint128 levelExpiry;
uint32[] childIds;
... | 12,288,772 | [
1,
4625,
348,
7953,
560,
30,
225,
358,
999,
1281,
3011,
1147,
12,
12645,
13,
364,
5184,
316,
17,
659,
716,
1297,
506,
2935,
635,
2240,
3666,
261,
8443,
13,
316,
1308,
4511,
309,
716,
13170,
1758,
1914,
405,
374,
460,
316,
225,
243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
27699,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
923,
30915,
27055,
31,
7010,
203,
565,
1958,
16753,
203,
203,
565,
288,
203,
3639,
1758,
8843,
429,
729,
31,
203,
3639,
2254,
1578,
11582,
31,
203,
3639,
2254,
... |
./full_match/5/0xA8e4f7319EA2D5bf51Be1dfc9fD7D9E7Cad207fD/sources/project_/contracts/HedgeX.sol | emit InitialLiquidityProvided(tokenId,liquidity,amount0,amount1); | function provideLiquidity() internal{
require(initialLiquidityProvided == false, "Initial liquidity has already been provided." );
require(protocol_earnings >= initialLiqThreshold, "Threshold to provide liquidity not yet met." );
TransferHelper.safeApprove(WETH9, hedgexLiqManagerAddress , ... | 1,944,950 | [
1,
4625,
348,
7953,
560,
30,
225,
3626,
10188,
48,
18988,
24237,
19254,
12,
2316,
548,
16,
549,
372,
24237,
16,
8949,
20,
16,
8949,
21,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5615,
48,
18988,
24237,
1435,
2713,
95,
203,
3639,
2583,
12,
6769,
48,
18988,
24237,
19254,
422,
629,
16,
315,
4435,
4501,
372,
24237,
711,
1818,
2118,
2112,
1199,
11272,
203,
3639,
2583,
12,
8373,
67,
73,
1303,
899,
15... |
./partial_match/1/0xDB8367c2cB51532951C570857832AebD4D72Ece7/sources/contracts/wtf20230607.sol | check for user to be "wtfManager"
| require((wtfManAddr2==msg.sender), "Not authorized. error3"); | 15,636,759 | [
1,
4625,
348,
7953,
560,
30,
866,
364,
729,
358,
506,
315,
6046,
74,
1318,
6,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
27573,
2583,
12443,
6046,
74,
5669,
3178,
22,
631,
3576,
18,
15330,
3631,
315,
1248,
10799,
18,
555,
23,
8863,
282,
2,
-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
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
// import {
// UniswapV2OracleLibrary as UniV2Oracle
// } from "./lib/UniswapV2OracleLibrary.sol";
import "./lib/FixedPoint.sol";
import { PriceLibrary as Prices } from "./lib/PriceLibrary.sol";
import { IERC20 } from "@ope... | * @dev Gets the latest price observation which is at least half a period older than `timestamp` and at most 2 periods older. @param token Token to get the latest price for @param timestamp Reference timestamp for comparison/ Before looking at the current observation period, check if it is possible for an observation in... | function _getLatestUsableObservation(address token, uint32 timestamp)
internal
view
returns (Prices.PriceObservation memory observation)
{
uint256 observationIndex = observationIndexOf(timestamp);
uint256 periodTimeElapsed = timestamp % OBSERVATION_PERIOD;
if (periodTimeElapsed >= MINIMUM_OB... | 2,524,507 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
326,
4891,
6205,
13853,
1492,
353,
622,
4520,
8816,
279,
3879,
12156,
2353,
1375,
5508,
68,
471,
622,
4486,
576,
12777,
12156,
18,
632,
891,
1147,
3155,
358,
336,
326,
4891,
6205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
588,
18650,
27682,
26199,
367,
12,
2867,
1147,
16,
2254,
1578,
2858,
13,
203,
565,
2713,
203,
565,
1476,
203,
565,
1135,
261,
31862,
18,
5147,
26199,
367,
3778,
13853,
13,
203,
225,
288,
203,
565,
2254,
5034,
13853... |
pragma solidity >=0.4.21 <0.7.0;
// @title Will Work for Dai: Self-enforcing smart contracts avoid project work disputes
// @author Jerry Fireman
contract WillWorkForDai {
// @dev The person providing the service
address payable public serviceProvider;
// @dev Used to track the numbers of project phases... | this goes to service provider when client approves phase; to client if service provider or client cancels
| uint discretionaryPayment; | 12,908,283 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
13998,
358,
1156,
2893,
1347,
1004,
6617,
3324,
6855,
31,
358,
1004,
309,
1156,
2893,
578,
1004,
3755,
87,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
19169,
1349,
26502,
6032,
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,
-10... |
pragma solidity >= 0.4.24;
import "../coffeeaccesscontrol/ConsumerRole.sol";
import "../coffeeaccesscontrol/DistributorRole.sol";
import "../coffeeaccesscontrol/FarmerRole.sol";
import "../coffeeaccesscontrol/RetailerRole.sol";
import "../coffeecore/Ownable.sol";
// Define a contract 'Supplychain'
//
contract SupplyC... | Metamask-Ethereum address of the Consumer
| address consumerID; | 2,555,369 | [
1,
4625,
348,
7953,
560,
30,
225,
21604,
301,
835,
17,
41,
18664,
379,
1758,
434,
326,
9326,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1377,
1758,
4765,
734,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
contract F3Devents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddress,
... | * @dev ends the round. manages paying out winner/splitting up pot/ setup local rID grab our winning player and team id's grab our pot amount calculate our winner share, community rewards, gen share, p3d share, and amount reserved for next pot calculate ppt for round mask | function endRound(F3Ddatasets.EventReturns memory _eventData_)
private
returns (F3Ddatasets.EventReturns)
{
uint256 _rID = rID_;
uint256 _winPID = round_[_rID].plyr;
uint256 _winTID = round_[_rID].team;
uint256 _pot = round_[_rID].pot;
uint256 _win = (_... | 5,726,421 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3930,
326,
3643,
18,
20754,
281,
8843,
310,
596,
5657,
1224,
19,
4939,
1787,
731,
5974,
19,
3875,
1191,
436,
734,
11086,
3134,
5657,
2093,
7291,
471,
5927,
612,
1807,
11086,
3134,
5974,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
679,
11066,
12,
42,
23,
40,
21125,
18,
1133,
1356,
3778,
389,
2575,
751,
67,
13,
203,
3639,
3238,
203,
3639,
1135,
261,
42,
23,
40,
21125,
18,
1133,
1356,
13,
203,
565,
288,
203,
3639,
2254,
5034,
389,
86,
734,
273,... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
pragma abicoder v2;
import "./interfaces/HandleToken.sol";
import "./Bridge.sol";
/* *\
* ,.-"""-., *
* / === \ *
* / ... | * @dev Retrieves an unsigned withdrawal message. @param recipient The account to withdraw. @param token The token address to be withdrawn. @param amount The amount to be withdrawn. @param nonce The deposit bridge's deposit nonce. @param fromId The deposit bridge's ID. @param toId The withdrawal bridge's ID./ | function getWithdrawMessage(
address recipient,
address token,
uint256 amount,
uint256 nonce,
uint256 fromId,
uint256 toId
) public pure returns (bytes32) {
return
keccak256(
abi.encodePacked(recipient, token, amount, nonce, fro... | 5,820,112 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20507,
392,
9088,
598,
9446,
287,
883,
18,
632,
891,
8027,
1021,
2236,
358,
598,
9446,
18,
632,
891,
1147,
1021,
1147,
1758,
358,
506,
598,
9446,
82,
18,
632,
891,
3844,
1021,
3844,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
336,
1190,
9446,
1079,
12,
203,
3639,
1758,
8027,
16,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
7448,
16,
203,
3639,
2254,
5034,
628,
548,
16,
203,
3639,
2254,
5034,
358,
548,
... |
./full_match/97/0x7989A152Cd6E7530ac7F341eF016e04B9688D361/sources/project_/contracts/diamond/libraries/LibLimitBook.sol | todo: 下单前的校验 todo: 从用户那里收钱 IERC20(odi.tokenIn).safeTransferFrom(user, address(this), odi.amountIn); | function openLimitOrder(IBook.OpenDataInput calldata odi) internal {
LimitBookStorage storage lbs = limitBookStorage();
address user = msg.sender;
bytes32[] storage orderHashes = lbs.userOpenOrderHashes[user];
OpenOrder memory order = OpenOrder(
user, uint32(orderHashes.l... | 3,263,357 | [
1,
4625,
348,
7953,
560,
30,
225,
10621,
30,
225,
165,
121,
238,
166,
240,
248,
166,
236,
240,
168,
253,
231,
167,
259,
99,
170,
108,
239,
10621,
30,
225,
165,
124,
241,
168,
247,
106,
167,
235,
120,
170,
229,
101,
170,
234,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1696,
3039,
2448,
12,
45,
9084,
18,
3678,
751,
1210,
745,
892,
320,
3211,
13,
2713,
288,
203,
3639,
7214,
9084,
3245,
2502,
328,
2038,
273,
1800,
9084,
3245,
5621,
203,
3639,
1758,
729,
273,
1234,
18,
15330,
31,
203,
... |
// SPDX-License-Identifier: MIT
// SOME STANDARD LIBRARIES FROM OPENZEPPELIN AND THEN KLOOT
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these ar... | IPFS URL WILL BE ADDED WHEN KLOOT ARE ALL SOLD OUT
| string public KLOOT_PROVENANCE = ""; | 13,398,555 | [
1,
4625,
348,
7953,
560,
30,
225,
2971,
4931,
1976,
678,
15125,
9722,
11738,
7660,
29707,
1475,
1502,
1974,
432,
862,
8061,
348,
11846,
8210,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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,
533,
1071,
1475,
1502,
1974,
67,
3373,
58,
1157,
4722,
273,
1408,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42/0x4F6EbddBF9C29756D31E78Ef0F99F141ffb84051/sources/UnitTest/PreachersCompFiLqdtKyberSwapKovanAM.sol | ************************************************************************** KyberSwap functions/ Swap from srcToken to destToken (including ether) If the source token is not ETH (ie. an ERC20 token), the user is required to first call the ERC20 approve function to give an allowance to the smart contract executing the tr... | function executeKyberSwap( address SrcToken, uint256 srcQty, address DestToken,
address payable destAddress )
public returns ( uint256 ) {
ISimpleKyberProxy cSimpleKyberProxy = ISimpleKyberProxy( kKyberNetworkProxy );
IKyberNetworkProxy cKyberProxy = IKyberNetworkProxy( ... | 16,219,751 | [
1,
4625,
348,
7953,
560,
30,
19756,
1644,
14,
1475,
93,
744,
12521,
4186,
19,
12738,
628,
1705,
1345,
358,
1570,
1345,
261,
31348,
225,
2437,
13,
971,
326,
1084,
1147,
353,
486,
512,
2455,
261,
1385,
18,
392,
4232,
39,
3462,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1836,
47,
93,
744,
12521,
12,
1758,
26632,
1345,
16,
2254,
5034,
1705,
53,
4098,
16,
1758,
28510,
1345,
16,
7010,
3639,
1758,
8843,
429,
1570,
1887,
262,
7010,
5411,
1071,
225,
1135,
261,
2254,
5034,
262,
288,
203,
203,... |
./full_match/1/0xe9c37E156319881B294c49006b67B372E2a7caE7/sources/project_/contracts/ERC721Snapshot.sol | Update balance and/or total supply snapshots before the values are modified. This is implemented in the _beforeTokenTransfer hook, which is executed for _mint, _burn, and _transfer operations. mint burn transfer | function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize) internal virtual override(ERC721, ERC721Enumerable) {
super._beforeTokenTransfer(from, to, tokenId, batchSize);
if (from == address(0)) {
_updateAccountSnapshot(to);
_updateTotalSupplySnapshot();
_up... | 4,952,808 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
11013,
471,
19,
280,
2078,
14467,
12808,
1865,
326,
924,
854,
4358,
18,
1220,
353,
8249,
316,
326,
389,
5771,
1345,
5912,
3953,
16,
1492,
353,
7120,
364,
389,
81,
474,
16,
389,
70,
321,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
5771,
1345,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
16,
2254,
5034,
16494,
13,
2713,
5024,
3849,
12,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
13,
288,
203,
565,
2240,
6315,
... |
./full_match/100/0xb091087E865d200c622241D1BC00A67Dd465e083/sources/contracts/rari-fuse/src/core/RewardsDistributorStorage.sol | @notice Rewards per block that each market currently receives | mapping(address => uint256) public compBorrowSpeeds;
| 14,286,975 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
534,
359,
14727,
1534,
1203,
716,
1517,
13667,
4551,
17024,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
1161,
38,
15318,
16562,
87,
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,... |
/**
*Submitted for verification at Etherscan.io on 2022-01-18
*/
pragma solidity 0.6.12;
// SPDX-License-Identifier: GPL-3.0-only
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, bec... | Receive a ether withdrawal Only accepts calls from the StafiEther contract | function receiveEtherWithdrawal() override external payable onlyLatestContract("stafiUserDeposit", address(this)) onlyLatestContract("stafiEther", msg.sender) {}
| 10,724,405 | [
1,
4625,
348,
7953,
560,
30,
225,
17046,
279,
225,
2437,
598,
9446,
287,
5098,
8104,
4097,
628,
326,
934,
1727,
77,
41,
1136,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6798,
41,
1136,
1190,
9446,
287,
1435,
3849,
3903,
8843,
429,
1338,
18650,
8924,
2932,
334,
1727,
77,
1299,
758,
1724,
3113,
1758,
12,
2211,
3719,
1338,
18650,
8924,
2932,
334,
1727,
77,
41,
1136,
3113,
1234,
18,
15330,
... |
pragma solidity ^0.4.9;
contract Obitcoin{
//events for all actions made by the contract. They are fired by the contract, then catched and processed by the web application
//once an event is fired, it will always stay in the blockchain. This is the why our application can load all transactions that ever o... | what is left to split for this iteration of the loop
| leftToSplit = amount - totalSent; | 1,008,397 | [
1,
4625,
348,
7953,
560,
30,
4121,
353,
2002,
358,
1416,
364,
333,
6532,
434,
326,
2798,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
202,
3639,
2002,
774,
5521,
273,
3844,
300,
2078,
7828,
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,
-... |
pragma solidity 0.6.5;
pragma experimental ABIEncoderV2;
import "../common/Libraries/SafeMathWithRequire.sol";
import "../common/Interfaces/ERC20.sol";
import "../common/BaseWithStorage/MetaTransactionReceiver.sol";
import "../common/Interfaces/Medianizer.sol";
import "../common/BaseWithStorage/Admin.sol";
import "../... | @notice Purchase StarterPacks with Ether @param buyer The destination address for the purchased Catalysts and Gems and the address that will pay for the purchase; if not metaTx then buyer must be equal to msg.sender @param message A message containing information about the Catalysts and Gems to be purchased @param sig... | function purchaseWithETH(
address buyer,
Message calldata message,
bytes calldata signature
) external payable {
require(msg.sender == buyer || _metaTransactionContracts[msg.sender], "INVALID_SENDER");
require(_etherEnabled, "ETHER_IS_NOT_ENABLED");
require(buyer ... | 12,972,188 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
26552,
934,
14153,
4420,
87,
598,
512,
1136,
632,
891,
27037,
1021,
2929,
1758,
364,
326,
5405,
343,
8905,
385,
3145,
1094,
87,
471,
23524,
471,
326,
1758,
716,
903,
8843,
364,
326,
2370... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23701,
1190,
1584,
44,
12,
203,
3639,
1758,
27037,
16,
203,
3639,
2350,
745,
892,
883,
16,
203,
3639,
1731,
745,
892,
3372,
203,
565,
262,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
27037,
747,
3... |
./full_match/56/0x7c51AdC6A74Fbd5D4821035168371722aFA1FF9f/sources/USDT.sol | 1.0002 in smallest unit (wei or equivalent)
| uint256 private _fixedValue = 10002; | 3,231,887 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
18,
17954,
316,
13541,
2836,
261,
1814,
77,
578,
7680,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
389,
12429,
620,
273,
2130,
3103,
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,
... |