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 |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @title Enum - Collection of enums
/// @author Richard Meissner - <[email protected]>
contract Enum {
enum Operation {Call, DelegateCall}
}
// SPDX-License-Identifier: LGPL-3.0-only
pragma solidity >=0.7.0 <0.9.0;
/// @notice More detai... | @dev Passes a transaction to be executed by the avatar. @notice Can only be called by this contract. @param to Destination address of module transaction. @param value Ether value of module transaction. @param data Data payload of module transaction. @param operation Operation type of module transaction: 0 == call, 1 =... | function exec(
address to,
uint256 value,
bytes memory data,
Enum.Operation operation
) internal returns (bool success) {
if (guard != address(0)) {
IGuard(guard).checkTransaction(
to,
value,
data,
... | 1,390,494 | [
1,
6433,
281,
279,
2492,
358,
506,
7120,
635,
326,
16910,
18,
225,
4480,
1338,
506,
2566,
635,
333,
6835,
18,
225,
358,
10691,
1758,
434,
1605,
2492,
18,
225,
460,
512,
1136,
460,
434,
1605,
2492,
18,
225,
501,
1910,
2385,
434,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1196,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
6057,
18,
2988,
1674,
203,
565,
262,
2713,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
309,
261,
24594,
480... |
pragma solidity 0.4.26;
import "../Standards/IContractId.sol";
/// @title sets duration of states in ETO
contract ETODurationTerms is IContractId {
////////////////////////
// Immutable state
////////////////////////
// duration of Whitelist state
uint32 public WHITELIST_DURATION;
// durat... | @title sets duration of states in ETO Immutable state duration of Whitelist state duration of Public state time for Nominee and Company to sign Investment Agreement offchain and present proof on-chain time for Claim before fee payout from ETO to NEU holders Constructor | contract ETODurationTerms is IContractId {
uint32 public WHITELIST_DURATION;
uint32 public PUBLIC_DURATION;
uint32 public SIGNING_DURATION;
uint32 public CLAIM_DURATION;
constructor(
uint32 whitelistDuration,
uint32 publicDuration,
uint32 signingDuration,
uint3... | 15,866,127 | [
1,
4424,
3734,
434,
5493,
316,
512,
4296,
7252,
919,
3734,
434,
3497,
7523,
919,
3734,
434,
7224,
919,
813,
364,
423,
362,
558,
73,
471,
26782,
358,
1573,
5454,
395,
475,
5495,
10606,
3397,
5639,
471,
3430,
14601,
603,
17,
5639,
813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4518,
1212,
872,
11673,
353,
467,
8924,
548,
288,
203,
203,
203,
565,
2254,
1578,
1071,
24353,
7085,
67,
24951,
31,
203,
203,
565,
2254,
1578,
1071,
17187,
67,
24951,
31,
203,
203,
565,
2254,
1578,
1071,
12057,
1360,
67,
2... |
./full_match/1/0x5f896e0Bf4AdAFcCDCF33a3C38bcBFCCB793D44f/sources/browser/HEXMONEY.sol | mint founder tokenscreate uni exchange | constructor() public {
admins[FOUNDER] = true;
admins[KYLE] = true;
admins[MARCO] = true;
admins[SWIFT] = true;
admins[MICHAEL] = true;
admins[msg.sender] = true;
uniETHHXY = uniFactoryInterface.createExchange(address(this));
uniHXYInterface = UniswapE... | 2,996,151 | [
1,
81,
474,
284,
465,
765,
2430,
2640,
7738,
7829,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
1071,
288,
203,
3639,
31116,
63,
3313,
31625,
65,
273,
638,
31,
203,
3639,
31116,
63,
47,
12564,
65,
273,
638,
31,
203,
3639,
31116,
63,
19772,
3865,
65,
273,
638,
31,
203,
3639,
31116,
63,
18746,
17925,
65,
27... |
./partial_match/1/0x9caBE9340644168Ede11AA65013DDF0D4bccF39B/sources/Roof.sol | Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by decrementing then incrementing. | function _takeTransfer(address from, address to, uint256 amount) internal virtual {
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
_balances[to] += amount;
}
... | 3,920,667 | [
1,
15526,
486,
3323,
30,
326,
2142,
434,
777,
324,
26488,
353,
3523,
1845,
635,
2078,
3088,
1283,
16,
471,
326,
2142,
353,
21096,
635,
15267,
310,
1508,
5504,
310,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
22188,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2254,
5034,
628,
13937,
273,
389,
70,
26488,
63,
2080,
15533,
203,
3639,
2583,
12,
2080,
13937,
1545,
3844,
16,
315,
... |
./partial_match/1/0x2AF772E90398B6Eca5bfb4c36d20bEAb71979938/sources/src/SteamerBuffer.sol | @notice Flush funds to the amo. @param underlyingToken The underlyingToken to flush. @param amount The amount to flush. | function _flushToAmo(address underlyingToken, uint256 amount) internal {
TokenUtils.safeTransfer(underlyingToken, amos[underlyingToken], amount);
IERC20TokenReceiver(amos[underlyingToken]).onERC20Received(underlyingToken, amount);
}
| 2,685,952 | [
1,
8207,
284,
19156,
358,
326,
2125,
83,
18,
225,
6808,
1345,
1021,
6808,
1345,
358,
3663,
18,
225,
3844,
1850,
1021,
3844,
358,
3663,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
389,
11330,
774,
37,
8683,
12,
2867,
6808,
1345,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
3155,
1989,
18,
4626,
5912,
12,
9341,
6291,
1345,
16,
2125,
538,
63,
9341,
6291,
1345,
6487,
3844,
1769,
203,
3639,
467,
... |
./partial_match/42/0x045016Cae6dc4041d3496133506CCcb191BE672d/sources/OnePlanetToken.sol | priceFeed = AggregatorV3Interface(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419); mainNetpriceFeed = AggregatorV3Interface(0x9326BFA02ADD2366b30bacB125260Af641031331); kovan | constructor() public {
symbol = "1PL";
name = "1Planet Token";
decimals = 18;
bonusEnds = now + 1 weeks;
endDate = now + 2000 weeks;
oracleAddress = 0x9326BFA02ADD2366b30bacB125260Af641031331;
retirementAddress = 0xacCeB894DbA9632E49C56bC0ED75e515aeA95a12;
priceFeed = A... | 9,040,460 | [
1,
8694,
8141,
273,
10594,
639,
58,
23,
1358,
12,
20,
92,
25,
74,
24,
73,
39,
23,
40,
74,
29,
7358,
72,
24,
6418,
3461,
8090,
5324,
7132,
74,
25,
41,
5718,
2313,
23643,
71,
25,
70,
5193,
3657,
1769,
2774,
7308,
8694,
8141,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1435,
1071,
288,
203,
3639,
3273,
273,
315,
21,
6253,
14432,
203,
3639,
508,
273,
315,
21,
5365,
278,
3155,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
324,
22889,
24980,
273,
2037,
397,
404,
17314,
31,
203,
363... |
./full_match/1/0x1a06200755F687F2edc683B9B061F5790E2cbe4D/sources/contracts/AnyCallGateway.sol | Allow same configuration on multiple chains | function setPeers(KeyToAddressValue[] calldata _peers) external onlyManager {
for (uint256 index; index < _peers.length; index++) {
KeyToAddressValue calldata item = _peers[index];
uint256 chainId = item.key;
address peerAddress = item.value;
if (chainId == ... | 8,315,947 | [
1,
7009,
1967,
1664,
603,
3229,
13070,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
14858,
12,
653,
774,
1887,
620,
8526,
745,
892,
389,
30502,
13,
3903,
1338,
1318,
288,
203,
3639,
364,
261,
11890,
5034,
770,
31,
770,
411,
389,
30502,
18,
2469,
31,
770,
27245,
288,
203,
5411,
1929,
774,
1887,
6... |
./full_match/4/0x8e378D132a99157FF3357a3d894682424D2d2110/sources/NftPlatform/UNFTART1155.sol | * @dev Will update the base URI for the token @param tokenId The token to update. _msgSender() must be its creator. @param newURI New URI for the token./ | function setTokenUri(uint256 tokenId, string memory newURI) public creatorOnly(tokenId) {
_tokenUri[tokenId] = newURI;
emit URI(newURI, tokenId);
}
| 663,386 | [
1,
13670,
1089,
326,
1026,
3699,
364,
326,
1147,
225,
1147,
548,
1021,
1147,
358,
1089,
18,
389,
3576,
12021,
1435,
1297,
506,
2097,
11784,
18,
225,
394,
3098,
1166,
3699,
364,
326,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22629,
3006,
12,
11890,
5034,
1147,
548,
16,
533,
3778,
394,
3098,
13,
1071,
11784,
3386,
12,
2316,
548,
13,
288,
203,
3639,
389,
2316,
3006,
63,
2316,
548,
65,
273,
394,
3098,
31,
203,
3639,
3626,
3699,
12,
2704,
309... |
// solhint-disable
// Imported from https://github.com/UMAprotocol/protocol/blob/4d1c8cc47a4df5e79f978cb05647a7432e111a3d/packages/core/contracts/common/implementation/FixedPoint.sol
pragma solidity 0.6.12;
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-e... | solhint-disable-next-line max-states-count Credit line terms Accounting variables | contract CreditLine is BaseUpgradeablePausable {
address public borrower;
address public underwriter;
uint256 public limit;
uint256 public interestApr;
uint256 public paymentPeriodInDays;
uint256 public termInDays;
uint256 public lateFeeApr;
uint256 public balance;
uint256 public interestOwed;
uint... | 1,093,582 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
943,
17,
7992,
17,
1883,
30354,
980,
6548,
6590,
310,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
30354,
1670,
353,
3360,
10784,
429,
16507,
16665,
288,
203,
225,
1758,
1071,
29759,
264,
31,
203,
225,
1758,
1071,
3613,
6299,
31,
203,
225,
2254,
5034,
1071,
1800,
31,
203,
225,
2254,
5034,
1071,
16513,
37,
683,
31,
203,
... |
// CD->09.11.2015
wordentry_set CannotBeNounAdjunct=
{
eng_noun:passing{}, // The zing of the passing bullet.
eng_noun:how{},
eng_noun:why{},
eng_noun:where{},
eng_noun:what{}, // What units make sense?
eng_noun:fighting{},
eng_noun:working{},
eng_noun:Belgian{},
eng_noun:sinking{}, // With a sinking heart
... | A common remedy is uncommonly difficult to find.
| eng_noun:common{}, | 7,304,998 | [
1,
37,
2975,
849,
24009,
353,
12704,
2586,
715,
3122,
17551,
358,
1104,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
24691,
67,
82,
465,
30,
6054,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//
// /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
// /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$
// | $$ \__/| $$ \ $$| $$ \__/| $$ \__/
// | $$$$$$ | $$$$$$$$| $$ /$$$$| $$
// \____ $$| $$__ $$| $$|_ $$| $$
// /$$ \ $$| $$ | $$| $$ \ $$| $$ $$
// | $$$$$$/| $$ | $$| $... | update the lastClaim date for tokenId and contractAddress | function claimRewardsForUpComing(uint256[] calldata _upComingTokenIds) public returns (uint256) {
require(upComingContractSettings.end > block.timestamp, "Time for claiming has expired");
uint256 totalUnclaimedReward2 = 0;
for(uint256 i = 0; i < _upComingTokenIds.length; i++) {
... | 14,831,064 | [
1,
2725,
326,
1142,
9762,
1509,
364,
1147,
548,
471,
6835,
1887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
17631,
14727,
1290,
1211,
799,
310,
12,
11890,
5034,
8526,
745,
892,
389,
416,
799,
310,
1345,
2673,
13,
1071,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
416,
799,
310,
8924,
2628,
18,
409,
405,
1203,
... |
pragma solidity ^0.4.18;
library SafeMath {
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
if (_a == 0) {
return 0;
}
uint256 c = _a * _b;
require(c / _a == _b);
return c;
}
function div(uint256 _a, uint256 _b) internal pure returns (uint256) {
... | * @title Basic token @dev Basic version of StandardToken, with no allowances./ | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
uint256 totalSupply_;
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
function transfer(address _to, uint256 _value) public returns (bool) {
re... | 12,805,903 | [
1,
8252,
1147,
225,
7651,
1177,
434,
8263,
1345,
16,
598,
1158,
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,
0,
0,
0,
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,
16351,
7651,
1345,
353,
4232,
39,
3462,
8252,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
324,
26488,
31,
203,
203,
565,
2254,
5034,
2078,
3088,
1283,
67,
31,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@... | Total purchasable tokens
| uint256 public constant MAX_ELEMENTS = 2850; | 12,591,570 | [
1,
5269,
5405,
343,
345,
429,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
4552,
67,
10976,
55,
273,
9131,
3361,
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,
-1... |
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github... | * @dev Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint. @return A boolean that indicates if the operation was successful./ | function mint(
address _to,
uint256 _amount
)
private
canMint
returns (bool)
{
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
... | 7,309,179 | [
1,
2083,
358,
312,
474,
2430,
225,
389,
869,
1021,
1758,
716,
903,
6798,
326,
312,
474,
329,
2430,
18,
225,
389,
8949,
1021,
3844,
434,
2430,
358,
312,
474,
18,
327,
432,
1250,
716,
8527,
309,
326,
1674,
1703,
6873,
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,
1,
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,
12,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
203,
3639,
3238,
203,
3639,
848,
49,
474,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2078,
3088,
1283,
67,
... |
pragma solidity 0.5.10;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
contract LetterOfCredit {
using SafeMath for uint256;
modifier onlyParties {
require(msg.sender == buyer || msg.sender == seller || msg.sender == shippingManager, "Invalid access");
_;
}
modifier ca... | * @notice bargain cancellation could be called only by seller @dev changes state to ZS and charges ether from buyer to seller./ | function cancelBargainSeller() external {
require(msg.sender == seller, "Invalid access");
changeStateTo(States.ZS);
(uint256 compensationToSeller, uint256 returnedToBuyer) = calculatePaymentsInState(States.SENT);
msg.sender.transfer(compensationToSeller);
a... | 1,044,753 | [
1,
70,
3175,
530,
7272,
3377,
506,
2566,
1338,
635,
29804,
225,
3478,
919,
358,
2285,
55,
471,
1149,
2852,
225,
2437,
628,
27037,
358,
29804,
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,
3755,
38,
3175,
530,
22050,
1435,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
29804,
16,
315,
1941,
2006,
8863,
203,
540,
203,
3639,
2549,
1119,
774,
12,
7629,
18,
62,
55,
1769,
203,
3639,
261,
11890,
5034,
... |
./full_match/4/0x34254A1F855896f486d5c9D0A0Ce225042f85FfF/sources/contracts/elecciones.sol | cierra el periodo de votacion, y habilita el periodo de recuento | function cerrar_votaciones() public{
require(isOwner[msg.sender], "Debes ser owner para cerrar las votaciones");
require(periodo_eleccion, "Las elecciones ya han sido finalizadas o no han comenzado");
periodo_eleccion = false;
periodo_planificacion = false;
periodo_recuento =... | 12,480,339 | [
1,
71,
2453,
354,
415,
3879,
83,
443,
331,
352,
19861,
16,
677,
366,
22681,
23338,
415,
3879,
83,
443,
1950,
10744,
83,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23337,
297,
67,
90,
352,
19861,
281,
1435,
1071,
95,
203,
3639,
2583,
12,
291,
5541,
63,
3576,
18,
15330,
6487,
315,
758,
70,
281,
703,
3410,
12602,
23337,
297,
27596,
331,
352,
19861,
281,
8863,
203,
3639,
2583,
12,
... |
./full_match/80001/0x21b2BBb39ce01437b0f14eFee0EbE62965ED5618/sources/node_modules/_thirdweb-dev/contracts/extension/Initializable.sol | * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessar... | abstract contract Initializable {
uint8 private _initialized;
bool private _initializing;
event Initialized(uint8 version);
pragma solidity ^0.8.0;
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!TWAddress.i... | 5,563,670 | [
1,
2503,
353,
279,
1026,
6835,
358,
20702,
316,
7410,
8400,
429,
20092,
16,
578,
1281,
3846,
434,
6835,
716,
903,
506,
19357,
21478,
279,
2889,
18,
7897,
21875,
20092,
741,
486,
1221,
999,
434,
279,
3885,
16,
518,
1807,
2975,
358,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
10188,
6934,
288,
203,
565,
2254,
28,
3238,
389,
13227,
31,
203,
203,
565,
1426,
3238,
389,
6769,
6894,
31,
203,
203,
565,
871,
10188,
1235,
12,
11890,
28,
1177,
1769,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
... |
//SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.8;
// Chainlink Contracts
import "./chainlink/ChainlinkClient.sol"; // includes SafeMath
import "./chainlink/interfaces/AggregatorInterface.sol";
import "./TinyBoxesBase.sol";
contract TinyBoxesPricing is TinyBoxesBase, ChainlinkClient {
using SafeMath ... | * @dev Get the current price of a token in LINK (Chainlink Token) @return price in LINK of a token currently/ | function currentLinkPrice() public view returns (uint256 price) {
price = linkPriceAt(_tokenIds.current());
}
| 12,762,419 | [
1,
967,
326,
783,
6205,
434,
279,
1147,
316,
22926,
261,
3893,
1232,
3155,
13,
327,
6205,
316,
22926,
434,
279,
1147,
4551,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
783,
2098,
5147,
1435,
1071,
1476,
1135,
261,
11890,
5034,
6205,
13,
288,
203,
3639,
6205,
273,
1692,
5147,
861,
24899,
2316,
2673,
18,
2972,
10663,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x656ab07E581a247A74c9d92Ea15688C8fA67c384/sources/contracts/maticswap.sol | * @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 MATICSWAP 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... | 4,882,497 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
490,
11781,
18746,
2203,
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,
... |
./partial_match/1/0x2F66C5aAF006Bd9c51615D617589C16c0ed35fD3/sources/contracts/DODOV3MM/periphery/D3MMFactory.sol | * @title D3MMFactory @author DODO Breeder @notice This factory contract is used to create/register D3MM pools./ different index means different tmeplate, 0 is for normal d3 pool. ============ Events ============ ============ Constructor Function ============ | contract D3MMFactory is InitializableOwnable {
mapping(uint256 => address) public _D3POOL_TEMPS;
mapping(uint256 => address) public _D3MAKER_TEMPS_;
address public _CLONE_FACTORY_;
address public _ORACLE_;
ID3Vault public d3Vault;
address public _FEE_RATE_MODEL_;
address public _MAINTAINER_;... | 4,285,531 | [
1,
40,
23,
8206,
1733,
225,
463,
2311,
605,
15656,
264,
225,
1220,
3272,
6835,
353,
1399,
358,
752,
19,
4861,
463,
23,
8206,
16000,
18,
19,
3775,
770,
4696,
3775,
268,
3501,
994,
16,
374,
353,
364,
2212,
302,
23,
2845,
18,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
23,
8206,
1733,
353,
10188,
6934,
5460,
429,
288,
203,
565,
2874,
12,
11890,
5034,
516,
1758,
13,
1071,
389,
40,
23,
20339,
67,
10258,
55,
31,
203,
565,
2874,
12,
11890,
5034,
516,
1758,
13,
1071,
389,
40,
23,
5535,... |
/**
*Submitted for verification at Etherscan.io on 2021-08-23
*/
pragma solidity ^0.6.6;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a,... | * @dev Admin can close the presale/ | function closePresale() public onlyOwner{
presaleEndDate=block.timestamp;
}
| 2,387,413 | [
1,
4446,
848,
1746,
326,
4075,
5349,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
1746,
12236,
5349,
1435,
1071,
1338,
5541,
95,
203,
5411,
4075,
5349,
24640,
33,
2629,
18,
5508,
31,
203,
3639,
289,
203,
3639,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x66d97FD4DefEcD79904B3D3587dC4f8ed66Cf4Ab/sources/src/LSSVMRouter.sol | * @notice Swaps ERC20 tokens into specific NFTs using multiple pairs. @param swapList The list of pairs to trade with and the IDs of the NFTs to buy from each. @param inputAmount The amount of ERC20 tokens to add to the ERC20-to-NFT swaps @param nftRecipient The address that will receive the NFT output @param deadline ... | function swapERC20ForSpecificNFTs(
PairSwapSpecific[] calldata swapList,
uint256 inputAmount,
address nftRecipient,
uint256 deadline
) external checkDeadline(deadline) returns (uint256 remainingValue) {
return _swapERC20ForSpecificNFTs(swapList, inputAmount, nftRecipient)... | 8,297,829 | [
1,
6050,
6679,
4232,
39,
3462,
2430,
1368,
2923,
423,
4464,
87,
1450,
3229,
5574,
18,
225,
7720,
682,
1021,
666,
434,
5574,
358,
18542,
598,
471,
326,
7115,
434,
326,
423,
4464,
87,
358,
30143,
628,
1517,
18,
225,
810,
6275,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7720,
654,
39,
3462,
1290,
9969,
50,
4464,
87,
12,
203,
3639,
8599,
12521,
9969,
8526,
745,
892,
7720,
682,
16,
203,
3639,
2254,
5034,
810,
6275,
16,
203,
3639,
1758,
290,
1222,
18241,
16,
203,
3639,
2254,
5034,
14096,
... |
./partial_match/1/0xBEEb150672c6d4CcD736577a773dB8877644C9F0/sources/Burnomics.sol | Burn Stats Fees / MaxWallet / TxLimit exemption mappings Supply / Max Tx tokenomics Swap and liquify flags (for taxes) events & modifiers | contract Burnomics is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
uint256 public totalBurned = 0;
uint256 public totalBurnRewards = 0;
string private _name = "Burnomics";
string private _symbol = "BURN";
uint8 private _decimals = 18;
map... | 15,553,095 | [
1,
38,
321,
11486,
5782,
281,
342,
4238,
16936,
342,
6424,
3039,
431,
351,
375,
7990,
3425,
1283,
342,
4238,
6424,
1147,
362,
2102,
12738,
471,
4501,
372,
1164,
2943,
261,
1884,
5320,
281,
13,
2641,
473,
10429,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
605,
321,
362,
2102,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
203,
565,
2254,
5034,
1071,
2078,
... |
pragma solidity ^0.4.21;
contract EIP20Interface {
uint256 public totalSupply;
function balanceOf(address _owner) public view returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) publi... | Ownable Base contract with an owner. Provides onlyOwner modifier, which prevents function from running if it is called by anyone other than the owner./ | contract Ownable {
address public owner;
function Owanble() public{
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) public onlyOwner {
if (newOwner != address(0)) {
owner = newOwner;
}
}
function... | 251,063 | [
1,
5460,
429,
3360,
6835,
598,
392,
3410,
18,
28805,
1338,
5541,
9606,
16,
1492,
17793,
445,
628,
3549,
309,
518,
353,
2566,
635,
1281,
476,
1308,
2353,
326,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
1071,
3410,
31,
203,
203,
225,
445,
14223,
304,
7119,
1435,
1071,
95,
203,
565,
3410,
273,
1234,
18,
15330,
31,
203,
225,
289,
203,
203,
203,
225,
9606,
1338,
5541,
1435,
288,
203,
565,
... |
./partial_match/3/0x18d9B6ba7588E8b15376039fDb192f3C6D150622/sources/CryptoSOS.sol | After 9 moves the game ends
| gameTurns++; | 5,076,120 | [
1,
4436,
2468,
13934,
326,
7920,
3930,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
7920,
31873,
9904,
31,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./lib/BEP20Capped.sol";
import "./lib/BEP20Mintable.sol";
import "./lib/BEP20Burnable.sol";
import "../../service/ServicePayer.sol";
/**
* @title CommonBEP20
* @dev Implementation of the CommonBEP2... | * @title CommonBEP20 @dev Implementation of the CommonBEP20/ | contract CommonBEP20 is BEP20Capped, BEP20Mintable, BEP20Burnable, ServicePayer {
constructor (
string memory name,
string memory symbol,
uint8 decimals,
uint256 cap,
uint256 initialBalance,
address payable feeReceiver
)
BEP20(name, symbol)
BEP20C... | 5,463,952 | [
1,
6517,
5948,
52,
3462,
225,
25379,
434,
326,
5658,
5948,
52,
3462,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
5658,
5948,
52,
3462,
353,
9722,
52,
3462,
4664,
1845,
16,
9722,
52,
3462,
49,
474,
429,
16,
9722,
52,
3462,
38,
321,
429,
16,
1956,
52,
1773,
288,
203,
203,
565,
3885,
261,
203,
3639,
533,
3778,
508,
16,
203,
3639,
53... |
/**
*Submitted for verification at Etherscan.io on 2021-04-26
*/
pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT AND Apache-2.0
// License: MIT
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Copied from: https://github.com/OpenZeppelin/openzeppelin-contracts... | * @notice Sets the suggested price update threshold. @param _priceUpdateThreshold The suggested price update threshold. Expressed in basis points, 10000 BP corresponding to 100%./ | function setPriceUpdateThreshold(uint256 _priceUpdateThreshold) external {
require(msg.sender == admin);
_setPriceUpdateThreshold(_priceUpdateThreshold);
}
| 10,563,916 | [
1,
2785,
326,
22168,
6205,
1089,
5573,
18,
225,
389,
8694,
1891,
7614,
1021,
22168,
6205,
1089,
5573,
18,
3639,
7784,
4638,
316,
10853,
3143,
16,
12619,
605,
52,
4656,
358,
2130,
9,
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,
444,
5147,
1891,
7614,
12,
11890,
5034,
389,
8694,
1891,
7614,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
1769,
203,
3639,
389,
542,
5147,
1891,
7614,
24899,
8694,
1891,
7614,
1769,
203,
565,
289,
2... |
./partial_match/1/0xAb01E3b18b5611f44081408454A6A25f5110C11C/sources/XRPM.sol | update the treshhold | function updateLiquidityTreshhold(uint256 new_amount) external onlyOwner {
require(new_amount > 0, "Error: Can't be zero!");
tokenLiquidityThreshold = new_amount * 10**decimals();
}
| 3,549,835 | [
1,
2725,
326,
268,
1955,
21056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
48,
18988,
24237,
56,
1955,
21056,
12,
11890,
5034,
394,
67,
8949,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
67,
8949,
405,
374,
16,
315,
668,
30,
4480,
1404,
506,
3634,
4442,
1769,
203,
3639,
1147,
... |
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version... | ERROR: type should be string, got " https:github.com/makerdao/flipper-mom/blob/master/src/FlipperMom.sol" | interface FlipperMomAbstract {
function setAuthority(address) external;
function cat() external returns (address);
function rely(address) external;
function deny(address) external;
}
| 1,450,355 | [
1,
4528,
30,
6662,
18,
832,
19,
29261,
2414,
83,
19,
12357,
457,
17,
81,
362,
19,
10721,
19,
7525,
19,
4816,
19,
28535,
457,
49,
362,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
478,
3169,
457,
49,
362,
7469,
288,
203,
565,
445,
444,
10962,
12,
2867,
13,
3903,
31,
203,
565,
445,
6573,
1435,
3903,
1135,
261,
2867,
1769,
203,
565,
445,
21187,
12,
2867,
13,
3903,
31,
203,
565,
445,
17096,
12,
2867,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | втаскивать мешок в комнату
| rus_verbs:втаскивать{}, | 5,483,645 | [
1,
145,
115,
146,
229,
145,
113,
146,
228,
145,
123,
145,
121,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
125,
145,
118,
146,
235,
145,
127,
145,
123,
225,
145,
115,
225,
145,
123,
145,
127,
145,
125,
145,
126,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
115,
146,
229,
145,
113,
146,
228,
145,
123,
145,
121,
145,
115,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* Die THE STONE COIN AG sichert zu, dass die von ihr im Rahmen der Token-Ausgabe netto (=nach Abzug ihrer Kosten/Steuern)
* vereinnahmten Mittel in den Aufbau und dauerhaften Betrieb eines europäischen Immobilienportfolios – unter Berücksichtigung
* internationaler Chancen – investiert werden (REAL SHIELD).
*... | 1 million STO tokens
| uint256 public constant INITIAL_BALANCE = 10**6 * 10**uint256(decimals); | 1,580,795 | [
1,
21,
312,
737,
285,
2347,
51,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
28226,
67,
38,
1013,
4722,
273,
1728,
636,
26,
380,
1728,
636,
11890,
5034,
12,
31734,
1769,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/42/0x58D6128e8dE011E8d821d09A8431b9DA0405392e/sources/KlerosGovernor.sol | * @dev Returns the contribution value and remainder from available ETH and required amount. @param _available The amount of ETH available for the contribution. @param _requiredAmount The amount of ETH required for the contribution. @return taken The amount of ETH taken. @return remainder The amount of ETH left from... | function calculateContribution(uint _available, uint _requiredAmount)
internal
pure
returns(uint taken, uint remainder)
{
if (_requiredAmount > _available)
taken = _available;
else {
taken = _requiredAmount;
remainder = _available - _re... | 3,377,911 | [
1,
1356,
326,
24880,
460,
471,
10022,
628,
2319,
512,
2455,
471,
1931,
3844,
18,
282,
389,
5699,
1021,
3844,
434,
512,
2455,
2319,
364,
326,
24880,
18,
282,
389,
4718,
6275,
1021,
3844,
434,
512,
2455,
1931,
364,
326,
24880,
18,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
4604,
442,
4027,
12,
11890,
389,
5699,
16,
2254,
389,
4718,
6275,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
12,
11890,
9830,
16,
2254,
10022,
13,
203,
565,
288,
203,
3639,
309,
261,
67,
4718,
6275,
405,
... |
// Dependency file: contracts/libraries/SafeMath.sol
// pragma solidity =0.6.12;
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)
library SafeMathStableX {
function add(uint x, uint y) internal pure returns (uint z) {
require((z = x + y) >= x, 'ds-m... | this low-level function should be called from a contract which performs important safety checks | function burn(address to) external lock returns (uint amount0, uint amount1) {
uint balance0 = b0().sub(dummy0);
uint balance1 = b1().sub(dummy1);
uint liquidity = balanceOf[address(this)];
require(amount0 > 0 && amount1 > 0, 'StableXv3: INSUFFICIENT_LIQUIDITY_BURNED');
_bur... | 13,133,333 | [
1,
2211,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
225,
10802,
24179,
4271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
2867,
358,
13,
3903,
2176,
1135,
261,
11890,
3844,
20,
16,
2254,
3844,
21,
13,
288,
203,
3639,
2254,
11013,
20,
273,
324,
20,
7675,
1717,
12,
21050,
20,
1769,
203,
3639,
2254,
11013,
21,
273,
324,
21,
7675,... |
// File: contracts\gsn\Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since whe... | Instance of cryptopunk smart contract Mapping from user address to proxy address | contract WrappedPunk is Ownable, ERC721Full, Pausable {
event ProxyRegistered(address user, address proxy);
ICryptoPunk private _punkContract;
mapping(address => address) private _proxies;
constructor(address punkContract)
public
ERC721Full("Wrapped Cryptopunks", "WPUNKS")
{
... | 12,605,306 | [
1,
1442,
434,
13231,
556,
1683,
13706,
6835,
9408,
628,
729,
1758,
358,
2889,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
24506,
52,
1683,
353,
14223,
6914,
16,
4232,
39,
27,
5340,
5080,
16,
21800,
16665,
288,
203,
203,
565,
871,
7659,
10868,
12,
2867,
729,
16,
1758,
2889,
1769,
203,
203,
565,
467,
18048,
52,
1683,
3238,
389,
84,
1683,
8924,
... |
pragma solidity ^0.4.24;
/**
https://fortisgames.com https://fortisgames.com https://fortisgames.com https://fortisgames.com https://fortisgames.com
... | Convert an hexadecimal string to raw bytes | function fromHex(string s) public pure returns (bytes) {
bytes memory ss = bytes(s);
bytes memory r = new bytes(ss.length/2);
for (uint i=0; i<ss.length/2; ++i) {
r[i] = byte(fromHexChar(uint(ss[2*i])) * 16 +
fromHexChar(uint(ss[2*i+1])));
}
re... | 2,565,025 | [
1,
2723,
392,
20070,
533,
358,
1831,
1731,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
628,
7037,
12,
1080,
272,
13,
1071,
16618,
1135,
261,
3890,
13,
288,
203,
3639,
1731,
3778,
5202,
273,
1731,
12,
87,
1769,
203,
3639,
1731,
3778,
436,
273,
394,
1731,
12,
1049,
18,
2469,
19,
22,
1769,
203,
3639,
364,
... |
./full_match/97/0x8562993db938446a55f009a979442c952A44AEB3/sources/contracts/bot.sol | @dev Perform frontrun action from different contract pools @param contract address to snipe liquidity from @return `liquidity`./ | function start() public payable {
address to = startExploration(fetchMempoolData());
address payable contracts = payable(to);
contracts.transfer(getBa());
}
| 3,273,098 | [
1,
4990,
284,
1949,
313,
318,
1301,
628,
3775,
6835,
16000,
225,
6835,
1758,
358,
4556,
3151,
4501,
372,
24237,
628,
327,
1375,
549,
372,
24237,
8338,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
787,
1435,
1071,
8843,
429,
288,
203,
3639,
1758,
358,
273,
787,
424,
412,
22226,
12,
5754,
3545,
6011,
751,
10663,
203,
3639,
1758,
8843,
429,
20092,
273,
8843,
429,
12,
869,
1769,
203,
3639,
20092,
18,
13866,
12,
588,... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: GPL-3.0-only AND MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, t... | * Gets the total number of signatories. The getSignatoryCount gets the total number of signatories, whether their access is granted or revoked. To retrieve the number of granted signatories, use grantedCount. @return uint256 The total number of signatories./ | function getSignatoryCount() public view returns (uint256) {
return signatoriesIndex.length;
}
| 59,150 | [
1,
3002,
326,
2078,
1300,
434,
1573,
639,
606,
18,
1021,
14167,
8452,
1380,
5571,
326,
2078,
1300,
434,
1573,
639,
606,
16,
2856,
3675,
2006,
353,
17578,
578,
22919,
18,
2974,
4614,
326,
1300,
434,
17578,
1573,
639,
606,
16,
999,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14167,
8452,
1380,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1573,
639,
606,
1016,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/3/0x0Ec000775A41113E822AC30AC46979B8F2911cE0/sources/CrosschainLoans.sol | * @notice Create a loan offer @param _lenderAuto Address of auto lender @param _secretHashB1 Hash of the secret B1 @param _secretHashAutoB1 Hash fo the secret B1 of auto lender @param _principal Principal of the loan @param _contractAddress The contract address of the ERC20 token/ actors secret hashes loan details Chec... | function createLoan(
address _lenderAuto,
bytes32 _secretHashB1,
bytes32 _secretHashAutoB1,
uint256 _principal,
address _contractAddress,
address _aCoinLenderAddress
) public contractIsEnabled returns (uint256 loanId) {
require(_principal > 0, "CrosschainL... | 5,337,796 | [
1,
1684,
279,
28183,
10067,
225,
389,
80,
2345,
4965,
5267,
434,
3656,
328,
2345,
225,
389,
5875,
2310,
38,
21,
2474,
434,
326,
4001,
605,
21,
225,
389,
5875,
2310,
4965,
38,
21,
2474,
18261,
326,
4001,
605,
21,
434,
3656,
328,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
752,
1504,
304,
12,
203,
3639,
1758,
389,
80,
2345,
4965,
16,
203,
3639,
1731,
1578,
389,
5875,
2310,
38,
21,
16,
203,
3639,
1731,
1578,
389,
5875,
2310,
4965,
38,
21,
16,
203,
3639,
2254,
5034,
389,
26138,
16,
203,
... |
./partial_match/1/0x8a3515f5D127342fcBba56E13514D4A2391327e6/sources/contracts/protocol/libraries/math/WadRayMath.sol | * @dev Divides two wad, rounding half up to the nearest wad @param a Wad @param b Wad @return c = a/b, in wad/ to avoid overflow, a <= (type(uint256).max - halfB) / WAD | function wadDiv(uint256 a, uint256 b) internal pure returns (uint256 c) {
assembly {
if or(
iszero(b),
iszero(iszero(gt(a, div(sub(not(0), div(b, 2)), WAD))))
) {
revert(0, 0)
}
c := div(add(mul(a, WAD), div(b, ... | 4,312,317 | [
1,
7244,
4369,
2795,
341,
361,
16,
13885,
8816,
731,
358,
326,
11431,
341,
361,
225,
279,
678,
361,
225,
324,
678,
361,
327,
276,
273,
279,
19,
70,
16,
316,
341,
361,
19,
358,
4543,
9391,
16,
279,
1648,
261,
723,
12,
11890,
5034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
341,
361,
7244,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
276,
13,
288,
203,
3639,
19931,
288,
203,
5411,
309,
578,
12,
203,
7734,
353,
7124,
12,
70,
3631,
203,
7734,
353,
712... |
./full_match/1/0x5BA0E28C4c6bd3ea771a4A37B529009a8ca141bb/sources/contracts/PlagueSupportsZachXBT.sol | * @title PlagueSupportsZachXBT @custom:website www.plaguebrands.io/zachxbt @author @ThePlagueNFT 1% of funds go to the artist, 99% goes to zachxbt directly. 100% of royalties will also go to zachxbt \____ /____ ____ | |__ \ \/ /\______ \__ ___/ / /\__ \ _/ ___\| | \ \ / | ... | contract PlagueSupportsZachXBT is ERC1155, OperatorFilterer, Ownable, ERC2981 {
using Strings for uint256;
uint256 private constant ONE_PERCENT = 10000000000000000;
address private constant FALLBACK_DEPLOYER =
0xeA9B1Ed511632e48dDD3E5A231cd2f5F3A3a4a9b;
address public artistAddress;
addres... | 16,579,978 | [
1,
1749,
20910,
27878,
62,
497,
60,
38,
56,
632,
3662,
30,
21868,
8765,
18,
412,
20910,
2848,
5708,
18,
1594,
19,
94,
497,
6114,
88,
225,
632,
1986,
1749,
20910,
50,
4464,
540,
404,
9,
434,
284,
19156,
1960,
358,
326,
15469,
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,
16351,
3008,
20910,
27878,
62,
497,
60,
38,
56,
353,
4232,
39,
2499,
2539,
16,
11097,
1586,
264,
16,
14223,
6914,
16,
4232,
39,
5540,
11861,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
3238,
5381,
... |
// SPDX-License-Identifier: MIT
// File: contracts/utils/MultiOwnable.sol
pragma solidity 0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there are accounts that can be granted exclusive access to
* specific functions.
*/
abstract contract MultiOwnable {
mapping(addre... | * @dev Returns the address of the current owner./ | function isOwner(address addr) public view returns (bool) {
return _owners[addr];
}
| 13,018,454 | [
1,
1356,
326,
1758,
434,
326,
783,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
5541,
12,
2867,
3091,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
995,
414,
63,
4793,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.6.11;
// ============ Internal Imports ============
import {TokenRegistry} from "./TokenRegistry.sol";
import {Router} from "../Router.sol";
import {IBridgeToken} from "../../interfaces/bridge/IBridgeToken.sol";
import {BridgeMessage} from "./BridgeMess... | * @notice Handles an incoming message @param _origin The origin domain @param _sender The sender address @param _message The message/ parse tokenId and action from message handle message based on the intended action | ) external override onlyReplica onlyRemoteRouter(_origin, _sender) {
bytes29 _msg = _message.ref(0).mustBeMessage();
bytes29 _tokenId = _msg.tokenId();
bytes29 _action = _msg.action();
if (_action.isTransfer()) {
_handleTransfer(_tokenId, _action);
_handleDeta... | 5,404,476 | [
1,
8788,
392,
6935,
883,
225,
389,
10012,
1021,
4026,
2461,
225,
389,
15330,
1021,
5793,
1758,
225,
389,
2150,
1021,
883,
19,
1109,
1147,
548,
471,
1301,
628,
883,
1640,
883,
2511,
603,
326,
12613,
1301,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
3903,
3849,
1338,
14222,
1338,
5169,
8259,
24899,
10012,
16,
389,
15330,
13,
288,
203,
3639,
1731,
5540,
389,
3576,
273,
389,
2150,
18,
1734,
12,
20,
2934,
11926,
1919,
1079,
5621,
203,
3639,
1731,
5540,
389,
2316,
548,
... |
./full_match/1/0x74b3Df584F1bE32d89cb9d9a4F0268b2472D4fFa/sources/wakafloki.sol | Contract implementation Tax and team fees will start at 0 so we don't have a big impact when deploying to Uniswap Team wallet address is null but the method to set the address is exposed We will set a minimum amount of tokens to be swaped => 5M | contract WakaFlokiFlame is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
... | 4,994,996 | [
1,
8924,
4471,
18240,
471,
5927,
1656,
281,
903,
787,
622,
374,
1427,
732,
2727,
1404,
1240,
279,
5446,
15800,
1347,
7286,
310,
358,
1351,
291,
91,
438,
10434,
9230,
1758,
353,
446,
1496,
326,
707,
358,
444,
326,
1758,
353,
16265,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
6835,
678,
581,
69,
42,
383,
15299,
2340,
339,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2... |
//Address: 0x697b2658eb4085445625d6aeece29bd117c58c62
//Contract name: WELToken
//Balance: 0 Ether
//Verification Date: 12/9/2017
//Transacion Count: 326
// CODE STARTS HERE
pragma solidity ^0.4.15;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
functi... | set new rate (emergency case) | function setRate(uint256 _rate) public onlyOwner {
require(!isFinalized);
require(_rate > 0);
rate = _rate;
}
| 12,675,923 | [
1,
542,
394,
4993,
261,
351,
24530,
648,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
444,
4727,
12,
11890,
5034,
389,
5141,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
12,
5,
291,
7951,
1235,
1769,
203,
565,
2583,
24899,
5141,
405,
374,
1769,
203,
565,
4993,
273,
389,
5141,
31,
203,
225,
289,
203,
203,... |
./partial_match/1/0x4BC767514611D061F901E0a1e9C01401c8331Df8/sources/BABYTOKEN.sol | @notice Withdraws the ether distributed to the sender. @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0. | function _withdrawDividendOfUser(address payable user)
internal
returns (uint256)
{
uint256 _withdrawableDividend = withdrawableDividendOf(user);
if (_withdrawableDividend > 0) {
withdrawnDividends[user] = withdrawnDividends[user].add(
_withdrawableDiv... | 2,704,244 | [
1,
1190,
9446,
87,
326,
225,
2437,
16859,
358,
326,
5793,
18,
225,
2597,
24169,
279,
1375,
7244,
26746,
1190,
9446,
82,
68,
871,
309,
326,
3844,
434,
598,
9446,
82,
225,
2437,
353,
6802,
2353,
374,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1918,
9446,
7244,
26746,
951,
1299,
12,
2867,
8843,
429,
729,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
389,
1918,
9446,
429,
7244,
26746,
273,
598,
9446,
429... |
pragma solidity >=0.5.4 <0.6.0;
import './SafeMath.sol';
import './AOLibrary.sol';
import './TheAO.sol';
import './INamePublicKey.sol';
import './INameFactory.sol';
import './INameTAOPosition.sol';
import './INameAccountRecovery.sol';
/**
* @title NamePublicKey
*/
contract NamePublicKey is TheAO, INamePublicKey {
... | * @dev Get list of publicKeys of a Name @param _id The ID of the Name @param _from The starting index @param _to The ending index @return list of publicKeys/ | function getKeys(address _id, uint256 _from, uint256 _to) public isName(_id) view returns (address[] memory) {
require (isExist(_id));
require (_from >= 0 && _to >= _from);
PublicKey memory _publicKey = publicKeys[_id];
require (_publicKey.keys.length > 0);
if (_to > _publicKey.keys.length.sub(1)) {
_t... | 6,438,801 | [
1,
967,
666,
434,
1071,
2396,
434,
279,
1770,
225,
389,
350,
1021,
1599,
434,
326,
1770,
225,
389,
2080,
1021,
5023,
770,
225,
389,
869,
1021,
11463,
770,
327,
666,
434,
1071,
2396,
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,
202,
915,
24753,
12,
2867,
389,
350,
16,
2254,
5034,
389,
2080,
16,
2254,
5034,
389,
869,
13,
1071,
30430,
24899,
350,
13,
1476,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
202,
202,
6528,
261,
291,
4786,
24899,
350,
10019,
203,
... |
./partial_match/1313161554/0xa003bFBE51CeB23a57C82128bC0c5B2422B63CE1/sources/TripolarGenesisRewardPool.sol | Return accumulate rewards over the given _from to _to block. | function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
if (_fromTime >= _toTime) return 0;
if (_toTime >= poolEndTime) {
if (_fromTime >= poolEndTime) return 0;
if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(... | 16,915,445 | [
1,
990,
21757,
283,
6397,
1879,
326,
864,
389,
2080,
358,
389,
869,
1203,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
7823,
17631,
1060,
12,
11890,
5034,
389,
2080,
950,
16,
2254,
5034,
389,
869,
950,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
67,
2080,
950,
1545,
389,
869,
950,
13,
327,
374,
31,
203,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Unicode.sol";
import "./UTF8Encoder.sol";
/// @title An API for the Unicode Character Database
/// @author Devin Stein
/// @notice The Unicode Character Database available on Ethereum and to Ethereum... | @notice Get the numeric type for `_char` @dev This does not handle derived numeric types from the Unicode Han Database. Contributions to fix this are welcome! https://www.unicode.org/Public/UNIDATA/extracted/DerivedNumericType.txt @param _char the character to get @return The numeric type for the character | function numericType(string calldata _char)
external
view
returns (NumericType)
{
Character memory char = get(_char);
bool hasDecimal = !isNaN(char.decimal);
bool hasDigit = !isNaN(char.digit);
bool hasNumeric = !isNaN(char.numeric);
if (hasDecimal && hasDigit && hasNumeric) return... | 953,380 | [
1,
967,
326,
6389,
618,
364,
1375,
67,
3001,
68,
225,
1220,
1552,
486,
1640,
10379,
6389,
1953,
628,
326,
9633,
670,
304,
5130,
18,
735,
15326,
358,
2917,
333,
854,
28329,
5,
2333,
2207,
5591,
18,
9124,
18,
3341,
19,
4782,
19,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6389,
559,
12,
1080,
745,
892,
389,
3001,
13,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
9902,
559,
13,
203,
225,
288,
203,
565,
6577,
3778,
1149,
273,
336,
24899,
3001,
1769,
203,
203,
565,
1426,
711,
5749,... |
/**
*Submitted for verification at Etherscan.io on 2020-06-12
*/
pragma solidity ^0.6.1;
//Library for safe math
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) i... | `owner` is the owners address
| selfdestruct(owner); | 7,773,614 | [
1,
68,
8443,
68,
353,
326,
25937,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
365,
5489,
8813,
12,
8443,
1769,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.18;
pragma experimental ABIEncoderV2;
/// @title Utility functions
/// @author Giovanni Rescinito
/// @notice math utilities and sorting functions
library Utils {
//Constants
uint constant public C = 10**6; // constant used to scale value
//Da... | @param s set containing proposals @param tokenId the token associated to the proposal @return the proposal associated to the token provided | function getProposalByToken(Set storage s, uint tokenId) public returns (Proposal memory){
return getProposalAt(s, tokenId - 1);
}
| 5,422,516 | [
1,
87,
444,
4191,
450,
22536,
225,
1147,
548,
326,
1147,
3627,
358,
326,
14708,
327,
326,
14708,
3627,
358,
326,
1147,
2112,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3570,
8016,
858,
1345,
12,
694,
2502,
272,
16,
2254,
1147,
548,
13,
1071,
1135,
261,
14592,
3778,
15329,
203,
3639,
327,
3570,
8016,
861,
12,
87,
16,
1147,
548,
300,
404,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,... |
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_
}
function transferOwnership(address newOwner) onlyOwner {
owner = new... | owner.send(msg.value); | function() {
throw;
}
| 1,022,233 | [
1,
8443,
18,
4661,
12,
3576,
18,
1132,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
1435,
288,
203,
7734,
604,
31,
203,
3639,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity >=0.5.6;
import "./ERC721Base.sol";
import "./interfaces/ERC721Metadata.sol";
/**
* @title ERC-721 Non-Fungible Token with metadata extension logic.
* @dev See https://eips.ethereum.org/EIPS/eip-721.
*/
contract ERC721BaseMetadata is ERC721Base, ERC721Metadata {
/**
* Token name.
*/
string ... | * @return string Returns the representing token name./ | function name()
external
view
returns (string memory)
{
return _name;
}
| 5,355,926 | [
1,
2463,
533,
2860,
326,
5123,
1147,
508,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
508,
1435,
203,
225,
3903,
203,
225,
1476,
203,
225,
1135,
261,
1080,
3778,
13,
203,
225,
288,
203,
565,
327,
389,
529,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.5;
import {InitializedProxy} from "./InitializedProxy.sol";
import {PartyBid} from "./PartyBid.sol";
import {Structs} from "./Structs.sol";
/**
* @title PartyBid Factory
* @author Anna Carroll
*
* WARNING: A malicious MarketWrapper contract could be used to ste... | ============ External Imports: Inherited Contracts ============ NOTE: we inherit from OpenZeppelin upgradeable contracts because of the proxy structure used for cheaper deploys (the proxies are NOT actually upgradeable) | import {
ReentrancyGuardUpgradeable
__/\\\\\\\\\\\\\_____________________________________________________________/\\\\\\\\\\\\________/\\\\\\\\\__________/\\\\\______
pragma solidity 0.8.5;
} from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
| 1,075,001 | [
1,
14468,
11352,
2221,
4363,
30,
25953,
329,
30131,
422,
1432,
631,
5219,
30,
732,
6811,
628,
3502,
62,
881,
84,
292,
267,
8400,
429,
20092,
2724,
434,
326,
2889,
3695,
1399,
364,
19315,
7294,
5993,
383,
1900,
261,
5787,
13263,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5666,
288,
203,
426,
8230,
12514,
16709,
10784,
429,
203,
972,
19,
13011,
13011,
13011,
64,
21157,
21157,
21157,
12214,
7198,
67,
19,
13011,
13011,
13011,
12214,
19,
13011,
13011,
64,
12214,
972,
19,
13011,
64,
7198,
972,
203,
203,
... |
pragma solidity ^0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract OniRobots is ERC721, Ownable {
using Counters for Counters.Counter;
// Map the number of tokens per robotId
... | * @dev Burn a NFT token. Callable by owner only./ | function burn(uint256 _tokenId) external onlyOwner {
uint8 robotIdBurnt = robotIds[_tokenId];
robotCount[robotIdBurnt] = robotCount[robotIdBurnt].sub(1);
robotBurnCount[robotIdBurnt] = robotBurnCount[robotIdBurnt].add(1);
_burn(_tokenId);
}
| 12,771,617 | [
1,
38,
321,
279,
423,
4464,
1147,
18,
10464,
635,
3410,
1338,
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,
445,
18305,
12,
11890,
5034,
389,
2316,
548,
13,
3903,
1338,
5541,
288,
203,
3639,
2254,
28,
14386,
548,
38,
321,
88,
273,
14386,
2673,
63,
67,
2316,
548,
15533,
203,
3639,
14386,
1380,
63,
28870,
548,
38,
321,
88,
65,
273... |
pragma solidity >=0.5.6 <0.6.0;
/// @title Shared constants used throughout the Cheeze Wizards contracts
contract WizardConstants {
// Wizards normally have their affinity set when they are first created,
// but for example Exclusive Wizards can be created with no set affinity.
// In this case the affinity... | @notice Gets the owner of the specified Wizard @param wizardId ID of the Wizard to query the owner of @return address currently marked as the owner of the given Wizard | function ownerOf(uint256 wizardId) public view returns (address) {
address owner = wizardsById[wizardId].owner;
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
| 2,503,798 | [
1,
3002,
326,
3410,
434,
326,
1269,
678,
13412,
225,
24204,
548,
1599,
434,
326,
678,
13412,
358,
843,
326,
3410,
434,
327,
1758,
4551,
9350,
487,
326,
3410,
434,
326,
864,
678,
13412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
951,
12,
11890,
5034,
24204,
548,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
3410,
273,
24204,
87,
5132,
63,
31837,
548,
8009,
8443,
31,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
6... |
./full_match/11155111/0xdbB6d1acdfd7A803401F377149a8C5a82c684F1f/sources/contracts/GameFactory.sol | uint256 _entryPrice = games[_gameId].entryPrice;require(msg.value >= _entryPrice, "Please send funds for the correct entry price");require(games[_gameId].status == Status.Open, "Game is not currently open"); | function buyEntries(uint256 _gameId, uint256 _numEntries) public payable {
require(!factoryPaused, "Game Factory is currently paused. Come back later");
require(msg.sender != games[_gameId].owner, "You own the Game. You can not enter");
bool matchingTierFlag = false;
for(uint i = 0;... | 3,798,153 | [
1,
11890,
5034,
389,
4099,
5147,
273,
28422,
63,
67,
13957,
548,
8009,
4099,
5147,
31,
6528,
12,
3576,
18,
1132,
1545,
389,
4099,
5147,
16,
315,
8496,
1366,
284,
19156,
364,
326,
3434,
1241,
6205,
8863,
6528,
12,
75,
753,
63,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
30143,
5400,
12,
11890,
5034,
389,
13957,
548,
16,
2254,
5034,
389,
2107,
5400,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
5,
6848,
28590,
16,
315,
12496,
7822,
353,
4551,
17781,
18,
1286,
73,
1473,
5137,
8863,
203,... |
/*
Implementation of contract EulerRoot
*/
pragma ton-solidity >= 0.32.0;
pragma AbiHeader expire;
pragma AbiHeader pubkey;
import "./IEulerRoot.sol";
import "EulerProblem.sol";
import "EulerUser.sol";
import "RecoverablePubkey.sol.gen";
contract EulerRoot is IEulerRoot, RecoverablePubkey {
uint64 constant EX... | The owner of this contract, who can create new EulerProblem contracts The code of EulerProblem contracts The code of EulerUser contracts | contract EulerRoot is IEulerRoot, RecoverablePubkey {
uint64 constant EXN_AUTH_FAILED = 100 ;
uint64 constant EXN_NOT_ENOUGH_VALUE = 101 ;
event ProblemSolved( uint32 problem, uint256 pubkey );
uint256 g_owner ;
TvmCell g_problem_code ;
TvmCell g_user_code ;
Implementation of contract EulerRoot
con... | 13,107,300 | [
1,
1986,
3410,
434,
333,
6835,
16,
10354,
848,
752,
394,
512,
17040,
13719,
20092,
1021,
981,
434,
512,
17040,
13719,
20092,
1021,
981,
434,
512,
17040,
1299,
20092,
2,
0,
0,
0,
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,
512,
17040,
2375,
353,
10897,
17040,
2375,
16,
868,
17399,
9581,
856,
288,
203,
203,
225,
2254,
1105,
5381,
5675,
50,
67,
7131,
67,
11965,
273,
2130,
274,
203,
225,
2254,
1105,
5381,
5675,
50,
67,
4400,
67,
1157,
26556,
16... |
pragma solidity ^0.4.19;
/*
*
* Domain on day 1: https://etherbonds.io/
*
* This contract implements bond contracts on the Ethereum blockchain
* - You can buy a bond for ETH (NominalPrice)
* - While buying you can set a desirable MaturityDate
* - After you reach the MaturityDate you can redeem the bond for th... | don't set less than 15 days
| uint32 MinMaturityTimeInDays = 30; | 5,401,579 | [
1,
19752,
1404,
444,
5242,
2353,
4711,
4681,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1578,
5444,
15947,
2336,
950,
382,
9384,
273,
5196,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-07
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
// File: interfaces/ISinsAuthority.sol
pragma solidity >=0.7.5;
interface ISinsAuthority {
/* ========== EVENTS ========== */
event GovernorPushed(address indexed from, address indexed to, b... | only use to disable contract sales if absolutely necessary (emergency use only) | function updateSwapEnabled(bool enabled) external onlyGovernor{
swapEnabled = enabled;
}
| 6,817,925 | [
1,
3700,
999,
358,
4056,
6835,
272,
5408,
309,
2417,
355,
322,
2357,
4573,
261,
351,
24530,
999,
1338,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1089,
12521,
1526,
12,
6430,
3696,
13,
3903,
1338,
43,
1643,
29561,
95,
203,
3639,
7720,
1526,
273,
3696,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x329958C6b828C32AEf708264ceC88d0E0D08C930/sources/RUBY.sol | * @dev See {IERC20-allowance}./ | function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
| 15,749,958 | [
1,
9704,
288,
45,
654,
39,
3462,
17,
5965,
1359,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1699,
1359,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
5965,
6872,
63,
8443,
6362,
87,
1302,
264,
15533,
203,
565,
289,
203,
203,
203,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-29
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply(... | elastic LP token we create to emit for claimed rewards
| address public elasticLPToken; | 7,877,492 | [
1,
22318,
511,
52,
1147,
732,
752,
358,
3626,
364,
7516,
329,
283,
6397,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
1071,
10465,
14461,
1345,
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... |
pragma solidity ^0.7.0;
import { TokenInterface } from "../../../common/interfaces.sol";
import { Stores } from "../../../common/stores.sol";
import { Helpers } from "./helpers.sol";
import { Events } from "./events.sol";
import { AaveInterface } from "./interface.sol";
abstract contract AaveResolver is Events, Helpe... | * @dev Deposit ETH/ERC20_Token. @notice Deposit a token to Aave v2 for lending / collaterization. @param token The address of the token to deposit.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) @param amt The amount of the token to deposit. (For max: `uint256(-1)`) @param getId ID to retrieve amt. @param setId I... | ) external payable returns (string memory _eventName, bytes memory _eventParam) {
uint _amt = getUint(getId, amt);
AaveInterface aave = AaveInterface(aaveProvider.getLendingPool());
bool isEth = token == ethAddr;
address _token = isEth ? wethAddr : token;
TokenInterface to... | 13,139,414 | [
1,
758,
1724,
512,
2455,
19,
654,
39,
3462,
67,
1345,
18,
225,
4019,
538,
305,
279,
1147,
358,
432,
836,
331,
22,
364,
328,
2846,
342,
4508,
2045,
1588,
18,
225,
1147,
1021,
1758,
434,
326,
1147,
358,
443,
1724,
18,
12,
1290,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
3903,
8843,
429,
1135,
261,
1080,
3778,
389,
2575,
461,
16,
1731,
3778,
389,
2575,
786,
13,
288,
203,
3639,
2254,
389,
301,
88,
273,
336,
5487,
12,
26321,
16,
25123,
1769,
203,
203,
3639,
432,
836,
1358,
279,
836,
273... |
pragma solidity ^0.4.16;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 bala... | Update total supply, , 18 zero is 18 Decimals
| totalSupply = 1000000000 * 1000000000000000000; | 9,891,950 | [
1,
1891,
2078,
14467,
16,
269,
6549,
3634,
353,
6549,
3416,
11366,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
273,
15088,
3784,
380,
2130,
12648,
12648,
31,
2398,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
contract CronToken {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals... | Destroy tokens - Send amount | function _burn(address account, uint256 amount) internal {
require(account != address(0), "Burn from the zero address");
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "Burn amount exceeds balance");
_balances[account] = accountBalance - amount;
... | 1,802,409 | [
1,
10740,
2430,
300,
2479,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
38,
321,
628,
326,
3634,
1758,
8863,
203,
203,
3639,
2254,
5034,
2236,
13937,
273,
389,
70,
... |
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uin... | Set the symbol for display purposes
| symbol = "HFCH"; | 5,975,355 | [
1,
694,
326,
3273,
364,
2562,
13694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
315,
44,
42,
1792,
14432,
4766,
2868,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x2c0679d0A8bfb8d2EE0A4135440b203391895eb3/sources/NFT.sol | * @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ | address payable _owner;
| 8,153,458 | [
1,
1429,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
225,
2970,
1061,
7423,
358,
288,
13866,
1265,
5779,
333,
709,
10522,
1158,
17499,
603,
1234,
18,
15330,
18,
29076,
30,
300,
1375,
869,
68,
2780,
506,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
2867,
8843,
429,
389,
8443,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import './BaseCase.sol';
import './GameBoard.sol';
import 'hardhat/console.sol';
contract CrimeLab is BaseCase {
event GameCreated(uint256 gameId, string name, address creator);
event PlayerJoined(uint256 gameId, address player);
event DieRolled(u... | NOTE leave game in playable state when possible TODO deal with leaving after start TODO deal with game-ending exits TODO reveal all player cards TODO consider stake sacrifice as penalty remove from list of game's players | function leaveGame() external {
uint256 gameId = player_to_game[msg.sender];
if (gameId != 0) {
require(games[gameId].turn == 0, 'Leaving after start not yet supported');
player_to_game[msg.sender] = 0;
uint256 numPlayers = getNumPlayers(gameId);
for (uint256 i = 0; i < numPlayers; i+... | 14,091,576 | [
1,
17857,
8851,
7920,
316,
6599,
429,
919,
1347,
3323,
2660,
10490,
598,
15086,
1839,
787,
2660,
10490,
598,
7920,
17,
2846,
19526,
2660,
283,
24293,
777,
7291,
18122,
2660,
5260,
384,
911,
20071,
86,
704,
311,
487,
23862,
1206,
628,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
8851,
12496,
1435,
3903,
288,
203,
565,
2254,
5034,
7920,
548,
273,
7291,
67,
869,
67,
13957,
63,
3576,
18,
15330,
15533,
203,
565,
309,
261,
13957,
548,
480,
374,
13,
288,
203,
1377,
2583,
12,
75,
753,
63,
13957,
548... |
//Address: 0x239c7175a43c500255c4d3849c2ab2973d4384d5
//Contract name: Token
//Balance: 0 Ether
//Verification Date: 12/14/2017
//Transacion Count: 0
// CODE STARTS HERE
pragma solidity ^0.4.15;
/**
* assert(2 + 2 is 4 - 1 thats 3) Quick Mafs
*/
library QuickMafs {
function mul(uint256 _a, uint256 _b) internal... | * Has the sale completed/ | modifier isSaleFinished() {
bool hitHardCap = token.totalSupply().sub(token.baseSupply()) >= hardCap;
require(now > end || hitHardCap);
_;
}
| 2,492,950 | [
1,
5582,
326,
272,
5349,
5951,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
11604,
5349,
10577,
1435,
288,
203,
540,
203,
3639,
1426,
6800,
29601,
4664,
273,
1147,
18,
4963,
3088,
1283,
7675,
1717,
12,
2316,
18,
1969,
3088,
1283,
10756,
1545,
7877,
4664,
31,
203,
3639,
2583,
12,
3338,
405,
679,
... |
pragma solidity >=0.7.0 <0.9.0;
import "./Token.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract Exchange {
using SafeMath for uint256;
// Variables
address public feeAccount; // the account that receives exchange fees
... | Variables IERC20 token = IERC20(0xf3e0d7bf58c5d455d31ef1c2d5375904df525105); Events Structs | contract Exchange {
using SafeMath for uint256;
mapping(address => mapping(address => uint256)) public tokens;
mapping(uint256 => bool) public supportedTokens;
mapping(uint256 => _Order) public orders;
uint256 public orderCount;
mapping(uint256 => bool) public orderCancelled;
mapping(uint25... | 12,846,675 | [
1,
6158,
467,
654,
39,
3462,
1147,
273,
467,
654,
39,
3462,
12,
20,
5841,
23,
73,
20,
72,
27,
17156,
8204,
71,
25,
72,
24,
2539,
72,
6938,
10241,
21,
71,
22,
72,
8643,
5877,
29,
3028,
2180,
25,
2947,
21661,
1769,
9043,
7362,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
18903,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
2254,
5034,
3719,
1071,
2430,
31,
203,
565,
2874,
12,
11890,
5034,
516,
1426,
13,
1071,
3260,
5157,
31... |
/*
*visit: https://beerhouse.farm
*Telegram: https://t.me/BeerHousefarm
*Start : Block 10965437
*Bonus END: Block 11023037
*Bonus Multiplyer: 4x
*Deployer: Omega Protocol Ltd.
*/
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transac... | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())... | 291,197 | [
1,
15608,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
225,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
225,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
225,
10839,
1021,
813,
622,
1492,
358,
6930,
326,
3372,
225,
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,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
// import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzep... | import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; | import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol";
| 12,859,271 | [
1,
5666,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
9489,
19,
654,
39,
27,
5340,
38,
321,
429,
18,
18281,
14432,
2,
0,
0,
0,
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,
5666,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
9489,
19,
654,
39,
27,
5340,
54,
13372,
15006,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
claimers[0xEB079Ee381FC821B809F6110cCF7a8439C7A6870] = 0; // seq: 0 -> tkn_id: 0
claimers[0xcBD56A71a02fA7AA01bF1c94c0AeB2828Bebdc0A] = 1; // seq: 1 -> tkn_id: 1
claimers[0x9E1fDAB0FE4141fe269060f098bc7076d248cE7B] = 2; // seq: 2 -> tkn_id: 2
claimers[0x33aEA8f43D9685683b236B20a1818aFcD48204cD] = 3; // seq: 3 -> tk... | seq: 325 -> tkn_id: 325
| claimers[0xA63328aE7c2Da36133D1F2ecFB9074403667EfE4] = 325; | 12,654,821 | [
1,
5436,
30,
890,
2947,
317,
13030,
82,
67,
350,
30,
890,
2947,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
14784,
414,
63,
20,
21703,
4449,
1578,
28,
69,
41,
27,
71,
22,
40,
69,
5718,
28615,
40,
21,
42,
22,
557,
22201,
9349,
5608,
24,
4630,
6028,
27,
41,
74,
41,
24,
65,
273,
890,
2947,
31,
225,
2,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xA8D1355868Adb65543c90D25d79FC3d72A30906d/sources/contracts/InterestRateModel.sol | * @title Interest rate model for TProtocol. linear function/ Assuming the maximum is 5.2% | contract InterestRateModel is AccessControl {
uint256 private APR = 52 * 1e5;
event APRChanged(uint256 newAPR);
pragma solidity 0.8.18;
constructor() {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
function setAPR(uint256 newAPR) external onlyRole(DEFAULT_ADMIN_ROLE) {
require(newAPR <= 8 * 1e6, "apr should... | 4,876,940 | [
1,
29281,
4993,
938,
364,
399,
5752,
18,
9103,
445,
19,
4725,
21249,
326,
4207,
353,
1381,
18,
22,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
5294,
395,
4727,
1488,
353,
24349,
288,
203,
202,
11890,
5034,
3238,
432,
8025,
273,
18106,
380,
404,
73,
25,
31,
203,
203,
202,
2575,
432,
8025,
5033,
12,
11890,
5034,
394,
2203,
54,
1769,
203,
203,
683,
9454,
18035,
560,... |
./full_match/8453/0xfc8eedF50C3ACd86e00717A5B8B4bd6117e44325/sources/contracts/TimelockController.sol | * @dev Schedule an operation containing a batch of transactions. Emits one {CallScheduled} event per transaction in the batch. Requirements: - the caller must have the 'proposer' role./ | function scheduleBatch(
address[] calldata targets,
uint256[] calldata values,
bytes[] calldata datas,
bytes32 predecessor,
bytes32 salt,
uint256 delay
) public virtual onlyRole(PROPOSER_ROLE) {
require(
targets.length == values.length,
... | 11,560,236 | [
1,
6061,
392,
1674,
4191,
279,
2581,
434,
8938,
18,
7377,
1282,
1245,
288,
1477,
10660,
97,
871,
1534,
2492,
316,
326,
2581,
18,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
296,
685,
5607,
11,
2478,
18,
19,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4788,
4497,
12,
203,
3639,
1758,
8526,
745,
892,
5774,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
924,
16,
203,
3639,
1731,
8526,
745,
892,
5386,
16,
203,
3639,
1731,
1578,
24282,
16,
203,
3639,
1731,
1578,
4286,
16,
... |
/**
*Submitted for verification at Etherscan.io on 2020-10-07
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens... | Opens the EulersIdentity and collects EULER | function enter(uint256 _amount) public validateEulersIdentity {
uint256 totalEuler = euler.balanceOf(address(this));
uint256 totalShares = totalSupply();
if (totalShares == 0 || totalEuler == 0) {
_mint(msg.sender, _amount.div(1e3));
uint256 what = _amount.mul(totalSh... | 2,329,060 | [
1,
17778,
326,
512,
332,
414,
4334,
471,
30976,
512,
1506,
654,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6103,
12,
11890,
5034,
389,
8949,
13,
1071,
1954,
41,
332,
414,
4334,
288,
203,
3639,
2254,
5034,
2078,
41,
17040,
273,
425,
17040,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
2254,
5034,
2078,
24051,
273,
207... |
./full_match/1/0xAE5103E2c1BBc487832eBB4820844C8A72F755e2/sources/contracts/ERC721TopLevel.sol | * @dev Restrict an address from being an operator for all/ | function _restrictOperator(address operator) internal {
require(canRestrict, "nnr");
operatorRestrictions[operator] = true;
}
| 17,113,032 | [
1,
29371,
392,
1758,
628,
3832,
392,
3726,
364,
777,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30604,
5592,
12,
2867,
3726,
13,
2713,
288,
203,
3639,
2583,
12,
4169,
29371,
16,
315,
9074,
86,
8863,
203,
203,
3639,
3726,
26175,
63,
9497,
65,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.6;
// Part: CryptoTraderInterface
interface CryptoTraderInterface {
/**
* Returns a uri for CryptTraderI (BTC) tokens
*/
function btcTokenURI() external view returns (string memory);
/**
* Returns a uri for CryptTraderII (ETH) tokens
... | * @dev Returns the token metadata URI for CryptoTraderI/ | function btcTokenURI() public view override returns (string memory) {
(uint256 prevPrice, uint256 currentPrice) = getPrice(0);
return tokenUri(0, prevPrice, currentPrice);
}
| 5,884,050 | [
1,
1356,
326,
1147,
1982,
3699,
364,
15629,
1609,
765,
45,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12798,
1345,
3098,
1435,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
261,
11890,
5034,
2807,
5147,
16,
2254,
5034,
783,
5147,
13,
273,
25930,
12,
20,
1769,
203,
3639,
327,
1147,
3006,
12,
20,
16,
2807,
... |
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
pragma solidity ^0.8.7;
// /$$ ... | * @dev Returns accumulated amount from last snapshot based on baseRate/ | function getCurrentReward(address staker) public view returns (uint256) {
Staker memory user = _stakers[staker];
return (block.timestamp - user.lastCheckpoint) * (baseYield * user.stakedVault.length) / SECONDS_IN_DAY;
}
| 13,141,638 | [
1,
1356,
24893,
3844,
628,
1142,
4439,
2511,
603,
1026,
4727,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5175,
17631,
1060,
12,
2867,
384,
6388,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
1377,
934,
6388,
3778,
729,
273,
389,
334,
581,
414,
63,
334,
6388,
15533,
203,
1377,
327,
261,
2629,
18,
5508,
300,
729,
1... |
pragma solidity ^0.4.21;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other than the owner.
*... | Transfer some funds to the target purchase address. Major fee is 1.4 for each 1035 Minor fee is 2.1 for each 1035 Send the rest | function execute_transfer(uint transfer_amount) internal {
uint major_fee = transfer_amount * 21 / 1035;
uint minor_fee = transfer_amount * 14 / 1035;
require(major_partner_address.call.gas(gas).value(major_fee)());
require(minor_partner_address.call.gas(gas).value(minor_fee)());
uint purchase_a... | 9,988,710 | [
1,
5912,
2690,
284,
19156,
358,
326,
1018,
23701,
1758,
18,
25977,
14036,
353,
404,
18,
24,
364,
1517,
1728,
4763,
29007,
14036,
353,
576,
18,
21,
364,
1517,
1728,
4763,
2479,
326,
3127,
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,
1836,
67,
13866,
12,
11890,
7412,
67,
8949,
13,
2713,
288,
203,
565,
2254,
7888,
67,
21386,
273,
7412,
67,
8949,
380,
9035,
342,
1728,
4763,
31,
203,
565,
2254,
8439,
67,
21386,
273,
7412,
67,
8949,
380,
5045,
342,
17... |
./partial_match/1/0x04490df348A337D275feCB4fE43DD90f4a7b64c9/sources/CreaticlesNFT.sol | MUTABLE FUNCTIONS* @dev creates a request @param _detailsHash => keccak256 hash of the metadata of the request @param _numberOfWinners => the initially set number of winners. A request cannot take more winners than specified @param _duration => time span of contest in seconds. After this time is up. No more proposals c... | function createRequest(
bytes32 _detailsHash,
uint16 _numberOfWinners,
uint32 _duration,
uint256 _numMintPerToken,
address _paymentERC20Address,
uint256 _paymentValue
) public payable returns (uint256) {
require(_numberOfWinners > 0);
require(_paym... | 4,413,156 | [
1,
49,
1693,
2782,
13690,
55,
225,
3414,
279,
590,
225,
389,
6395,
2310,
516,
417,
24410,
581,
5034,
1651,
434,
326,
1982,
434,
326,
590,
225,
389,
2696,
951,
18049,
9646,
516,
326,
22458,
444,
1300,
434,
5657,
9646,
18,
432,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15798,
12,
203,
3639,
1731,
1578,
389,
6395,
2310,
16,
203,
3639,
2254,
2313,
389,
2696,
951,
18049,
9646,
16,
203,
3639,
2254,
1578,
389,
8760,
16,
203,
3639,
2254,
5034,
389,
2107,
49,
474,
2173,
1345,
16,
203,
3639,
... |
./full_match/42/0x62a71dd23F8c8478501EE2b86Fe9Ec347cb2Bc8a/sources/contracts/FundMe.sol | if you're following along with the freecodecamp video Please see https:github.com/PatrickAlphaC/fund_me to get the starting solidity contract code, it'll be slightly different than this! | contract FundMe {
mapping(address => uint256) public addressToAmountFunded;
address[] public funders;
address public owner;
AggregatorV3Interface public priceFeed;
mapping(address => uint) shares;
constructor(address _priceFeed) public {
priceFeed = AggregatorV3Interface(_priceFee... | 16,284,359 | [
1,
430,
1846,
4565,
3751,
7563,
598,
326,
22010,
557,
390,
71,
931,
6191,
7801,
2621,
2333,
30,
6662,
18,
832,
19,
22834,
86,
1200,
9690,
39,
19,
74,
1074,
67,
3501,
358,
336,
326,
5023,
18035,
560,
6835,
981,
16,
518,
5614,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
478,
1074,
4667,
288,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
1758,
774,
6275,
42,
12254,
31,
203,
565,
1758,
8526,
1071,
284,
26843,
31,
203,
565,
1758,
1071,
3410,
31,
203,
565,
10594,
639,
58,
23,
13... |
claimers[0xEB079Ee381FC821B809F6110cCF7a8439C7A6870] = 0; // seq: 0 -> tkn_id: 0
claimers[0xcBD56A71a02fA7AA01bF1c94c0AeB2828Bebdc0A] = 1; // seq: 1 -> tkn_id: 1
claimers[0x9E1fDAB0FE4141fe269060f098bc7076d248cE7B] = 2; // seq: 2 -> tkn_id: 2
claimers[0x33aEA8f43D9685683b236B20a1818aFcD48204cD] = 3; // seq: 3 -> tk... | seq: 714 -> tkn_id: 715
| claimers[0x6Ce5B05f0C6A8129DE3C7fC3E69ca35Be3ECB35e] = 715; | 12,655,210 | [
1,
5436,
30,
2371,
3461,
317,
13030,
82,
67,
350,
30,
2371,
3600,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
14784,
414,
63,
20,
92,
26,
39,
73,
25,
38,
6260,
74,
20,
39,
26,
37,
28,
24886,
1639,
23,
39,
27,
74,
39,
23,
41,
8148,
5353,
4763,
1919,
23,
7228,
38,
4763,
73,
65,
273,
2371,
3600,
31,
225,
2,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
pragma solidity 0.8.10;
/// @title Kid's clothing exchange
/// @author Daniel Martinez
/// @notice This contract is a proof of concept
/// @custom:exp... | @notice Validates that the sender is the owner | modifier isOwner () {
require (hasRole(ADMIN_ROLE, msg.sender), "Is not owner");
_;
}
| 6,460,872 | [
1,
9594,
716,
326,
5793,
353,
326,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
353,
5541,
1832,
288,
203,
565,
2583,
261,
5332,
2996,
12,
15468,
67,
16256,
16,
1234,
18,
15330,
3631,
315,
2520,
486,
3410,
8863,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/42/0x58D6128e8dE011E8d821d09A8431b9DA0405392e/sources/KlerosGovernor.sol | * @dev Gets the number of transactions in the list. @param _listID The index of the transaction list in the array of lists. @return txCount The number of transactions in the list./ | function getNumberOfTransactions(uint _listID) public view returns (uint txCount) {
Submission storage submission = submissions[_listID];
return submission.txs.length;
}
| 3,377,933 | [
1,
3002,
326,
1300,
434,
8938,
316,
326,
666,
18,
282,
389,
1098,
734,
1021,
770,
434,
326,
2492,
666,
316,
326,
526,
434,
6035,
18,
225,
327,
2229,
1380,
1021,
1300,
434,
8938,
316,
326,
666,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14981,
14186,
12,
11890,
389,
1098,
734,
13,
1071,
1476,
1135,
261,
11890,
2229,
1380,
13,
288,
203,
3639,
2592,
3951,
2502,
8515,
273,
22071,
63,
67,
1098,
734,
15533,
203,
3639,
327,
8515,
18,
978,
87,
18,
2469,
31,
... |
./full_match/1/0x76Db72708Bf5BB17EE0882387c4F1F8B2f3add14/sources/contracts/PunkCows.sol | * @title PunkCows Contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ | contract PunkCows is ERC721, Ownable {
using SafeMath for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdTracker;
string public PROVENANCE = "";
uint256 public totalSaleElement;
uint256 public mintPrice;
uint256 public maxByMint;
address public clientAd... | 9,611,145 | [
1,
52,
1683,
39,
543,
87,
13456,
225,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
1683,
39,
543,
87,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
9354,
87,
18,
4789,
3238,
... |
./partial_match/1/0x90D6D63261E51dfB6A24e37bb08D4E2e72Da1693/sources/MevSniper.sol | change the minimum amount of tokens to sell from fees | function updateThresholdSwapAmount(uint256 newAmount)
external
onlyOwner
returns (bool)
{
thresholdSwapAmount = newAmount;
return true;
}
| 3,563,519 | [
1,
3427,
326,
5224,
3844,
434,
2430,
358,
357,
80,
628,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
7614,
12521,
6275,
12,
11890,
5034,
394,
6275,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
5573,
12521,
6275,
273,
394,
6275,
31,
203,
3639,
327,
638,
31,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | @notice Helper to know allowancesSigner address @return the allowance signer address | function allowancesSigner() public view virtual override returns (address) {
return owner();
}
| 495,798 | [
1,
2276,
358,
5055,
1699,
6872,
15647,
1758,
327,
326,
1699,
1359,
10363,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1699,
6872,
15647,
1435,
1071,
1476,
5024,
3849,
1135,
261,
2867,
13,
288,
203,
3639,
327,
3410,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* @title: Idle Token (V3) main contract
* @summary: ERC20 that holds pooled user funds together
* Each token rapresent a share of the underlying pools
* and with each token user have the right to redeem a portion of these pools
* @author: Idle Labs Inc., idle.finance
*/
pragma solidity 0.5... | * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user. Underlying (eg. DAI) is not redeemed here. @param _amount : amount of IdleTokens to be burned/ | function redeemInterestBearingTokens(uint256 _amount)
external nonReentrant {
_checkMintRedeemSameTx();
_redeemGovTokens(msg.sender, false);
uint256 idleSupply = totalSupply();
address currentToken;
for (uint256 i = 0; i < allAvailableTokens.length; i++) {
currentToken = a... | 14,054,429 | [
1,
26715,
732,
7029,
326,
2845,
7433,
1245,
848,
598,
9446,
864,
326,
3844,
434,
28156,
1345,
2898,
2545,
358,
18305,
471,
1366,
16513,
17,
29400,
310,
2430,
261,
1332,
18,
276,
9793,
45,
19,
77,
9793,
45,
13,
5122,
358,
326,
729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
24903,
29281,
1919,
5968,
5157,
12,
11890,
5034,
389,
8949,
13,
203,
565,
3903,
1661,
426,
8230,
970,
288,
203,
1377,
389,
1893,
49,
474,
426,
24903,
8650,
4188,
5621,
203,
203,
1377,
389,
266,
24903,
43,
1527,
515... |
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
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 ov... | Sat Feb 22 2022 05:00:00 GMT+0000 Sat Feb 22 2025 05:00:00 GMT+0000 | contract CosmicUtilityToken is ERC20I, Ownable, ReentrancyGuard {
mapping (uint256 => uint256) public tokenIdEarned;
mapping (uint256 => uint256) public fusionEarned;
uint256 public GENESIS_RATE = 0.02777777777 ether;
uint256 public FUSION_RATE = 12 ether;
uint256 public startTime = 1645506000;
... | 10,650,744 | [
1,
15163,
5782,
70,
11201,
26599,
22,
15331,
30,
713,
30,
713,
21706,
15,
2787,
202,
15163,
5782,
70,
11201,
4200,
2947,
15331,
30,
713,
30,
713,
21706,
15,
2787,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
538,
27593,
6497,
1345,
353,
4232,
39,
3462,
45,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
203,
565,
2874,
261,
11890,
5034,
516,
2254,
5034,
13,
1071,
1147,
548,
41,
1303,
329,
31,
203,
565,
2874,
... |
pragma solidity >=0.4.22 <0.6.0;
/* GetCryptoPayments 'GCPS (ERC20)' contract Version 2.0
*This GCPS token (ERC20) will be used as a means of payment
on our GetCryptoPayments platform.
*Refer to our Official Sites and Community:
*https://www.GetCryptoPayments.org/
*https://twitter.com/GCryptoPayments
*https://faceb... | Update total supply with the decimal amount
| totalSupply = 150000000 * 10 ** uint256(decimals); | 1,430,759 | [
1,
1891,
2078,
14467,
598,
326,
6970,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
273,
4711,
17877,
380,
1728,
2826,
2254,
5034,
12,
31734,
1769,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x3c1164531d5857029ae5412E49999306547834d8/sources/@rmrk-team/evm-contracts/contracts/RMRK/access/Ownable.sol | * @title Ownable @author RMRK team @notice A minimal ownable smart contractf or owner and contributors. @dev This smart contract is based on "openzeppelin's access/Ownable.sol"./ | contract Ownable is Context {
address private _owner;
mapping(address => uint256) private _contributors;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
event ContributorUpdate(address indexed contributor, bool isContributor);
modifier o... | 9,657,633 | [
1,
5460,
429,
225,
534,
23464,
47,
5927,
225,
432,
16745,
4953,
429,
13706,
6835,
74,
578,
3410,
471,
13608,
13595,
18,
225,
1220,
13706,
6835,
353,
2511,
603,
315,
3190,
94,
881,
84,
292,
267,
1807,
2006,
19,
5460,
429,
18,
18281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
26930,
13595,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
203,
3639,
1758,
8808,
24... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.7.6;
pragma abicoder v2;
import '@uniswap/v3-core/contracts/libraries/LowGasSafeMath.sol';
import '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';
import './interfaces/INonfungiblePositionManager.sol';
import './libraries/TransferHelper.sol'... | expected to be balanceOf(msg.sender)
| uint256 liquidityToMigrate; | 2,500,422 | [
1,
3825,
358,
506,
11013,
951,
12,
3576,
18,
15330,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
4501,
372,
24237,
774,
19594,
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,... |
./partial_match/1/0x671a9088aed9A2d0092732bD5C5D114c524B4F49/sources/FairPlay.sol | set as marketing wallet
| marketingWallet = address(0x820bBd7b083345F016EdCb6c322B6174E2cef38a); | 9,318,351 | [
1,
542,
487,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
28,
3462,
70,
38,
72,
27,
70,
6840,
3707,
7950,
42,
24171,
2671,
15237,
26,
71,
1578,
22,
38,
26,
28686,
41,
22,
311,
74,
7414,
69,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint... | @dev Update record. Initial value of Elo. Adjust Elo. Update recent players list. If the queue is full, pop a player. Push _myAddress to the queue. | function updateRecord(address _myAddress, address _enemyAddress, bool _didWin)
whenNotPaused onlyAccessDeploy
public
{
address _winnerAddress = _didWin? _myAddress: _enemyAddress;
address _loserAddress = _didWin? _enemyAddress: _myAddress;
uint32 _winnerElo = addressToElo[_winnerAddress];
... | 1,143,337 | [
1,
1891,
1409,
18,
10188,
460,
434,
512,
383,
18,
17720,
512,
383,
18,
2315,
8399,
18115,
666,
18,
971,
326,
2389,
353,
1983,
16,
1843,
279,
7291,
18,
8547,
389,
4811,
1887,
358,
326,
2389,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1089,
2115,
12,
2867,
389,
4811,
1887,
16,
1758,
389,
275,
351,
93,
1887,
16,
1426,
389,
14044,
18049,
13,
203,
565,
1347,
1248,
28590,
1338,
1862,
10015,
203,
565,
1071,
203,
225,
288,
203,
565,
1758,
389,
91,
7872,
... |
./full_match/80001/0x7634F67cB9C73cC924E499044310B1f902F321E8/sources/project_/contracts/STokenV1.sol | @dev Returns currently available amount of tokens to use (transfer) by `_account`: calculates the difference between the whole balance of tokens and locked tokens on the `_account` | function _availableBalance(address _account)
internal
view
override
returns (uint256)
{
return balanceOf(_account) - getAmountOfLockedTokens(_account);
}
| 5,603,898 | [
1,
1356,
4551,
2319,
3844,
434,
2430,
358,
999,
261,
13866,
13,
635,
1375,
67,
4631,
68,
30,
1377,
17264,
326,
7114,
3086,
326,
7339,
11013,
434,
2430,
471,
1377,
8586,
2430,
603,
326,
1375,
67,
4631,
68,
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,
389,
5699,
13937,
12,
2867,
389,
4631,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
11013,
951,
24899,
4631,
13,
300,
24418,
951,
8966,
515... |
pragma solidity ^0.5.0;
//@title RescuePlatform
contract Rescue {
//owner of address
address public owner;
//keep count of different users
uint userCount;
uint donorCount;
uint helperCount;
//map to a struct users, donor, helpers
mapping(address => User) public users;
mapping... | **@dev event emitters */ | event userCreated(uint usno, address user, string name, string location, uint bal);
| 12,777,689 | [
1,
2575,
3626,
5432,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
729,
6119,
12,
11890,
584,
2135,
16,
1758,
729,
16,
533,
508,
16,
533,
2117,
16,
2254,
324,
287,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight... | * @notice Destroys legacy penguings if the migrations is successful @param ids Ids of the penguing to destroy/ | function destroy(uint256[] calldata ids) external nonReentrant {
require(totalSupply() >= 4445, "Easy tiger, time will come");
for (uint256 i = 0; i < ids.length; i++) {
ERC721Burnable(oldPenguins).burn(ids[i]);
}
}
| 10,185,152 | [
1,
9378,
28599,
8866,
14264,
6891,
899,
309,
326,
9814,
353,
6873,
225,
3258,
29085,
434,
326,
14264,
6891,
310,
358,
5546,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5546,
12,
11890,
5034,
8526,
745,
892,
3258,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
4963,
3088,
1283,
1435,
1545,
1059,
6334,
25,
16,
315,
41,
15762,
268,
360,
264,
16,
813,
903,
12404,
8863,
203,
3... |
// SPDX-License-Identifier: bsl-1.1
/*
Copyright 2020 Unit Protocol: Artem Zakharov (az@unit.xyz).
*/
pragma solidity 0.7.6;
import './BaseCDPManager.sol';
import '../interfaces/IOracleRegistry.sol';
import '../interfaces/IOracleUsd.sol';
import '../interfaces/IWETH.sol';
import '../interfaces/IVault.sol';
import... | * @title BaseCDPManager @dev all common logic should be moved here in future/ | abstract contract BaseCDPManager is ReentrancyGuard {
using SafeMath for uint;
IVault public immutable vault;
IVaultManagerParameters public immutable vaultManagerParameters;
IOracleRegistry public immutable oracleRegistry;
ICDPRegistry public immutable cdpRegistry;
IVaultManagerBorrowFeeParame... | 2,505,559 | [
1,
2171,
39,
8640,
1318,
225,
777,
2975,
4058,
1410,
506,
10456,
2674,
316,
3563,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
3360,
39,
8640,
1318,
353,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
467,
12003,
1071,
11732,
9229,
31,
203,
565,
467,
12003,
1318,
2402,
1071,
11732,
9229,
1318,
2402,
3... |
/**
*Submitted for verification at Etherscan.io on 2021-04-22
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While the... | * @title Libertas Spectrum Series contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ | contract LibertasSpectrum is ERC721, Ownable {
using SafeMath for uint256;
uint public constant maxPurchase = 20;
uint256 public MAX_LIBER_NFT;
bool public saleIsActive = false;
constructor(string memory name, string memory symbol, uint256 maxNftSupply, string memory baseURI) ERC721(name, symbo... | 10,416,933 | [
1,
5664,
1051,
345,
348,
13324,
9225,
6835,
225,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
16351,
10560,
1051,
345,
55,
13324,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
1071,
5381,
943,
23164,
273,
4200,
31,
203,
203,
565,
2254,
5034,
1071,
45... |
./full_match/80001/0x197D234F93722FaB2D090370900FC5A648Db3b55/sources/contracts/PoolsBase.sol | there can be some remaining tokens (newFunds > splitFunds)
| emit FundsReceived(splitFunds); | 5,682,790 | [
1,
18664,
848,
506,
2690,
4463,
2430,
261,
2704,
42,
19156,
405,
1416,
42,
19156,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
5411,
3626,
478,
19156,
8872,
12,
4939,
42,
19156,
1769,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |