file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/8453/0xaB2708ac44D567064Bc91b7f44f0447812a9431b/sources/project:/contracts/MiniChefV2.sol | @notice The (older) MasterChef contract gives out a constant number of SAM tokens per block. It is the only address with minting rights for SAM. The idea for this MasterChef V2 (MCV2) contract is therefore to be the owner of a dummy token that is deposited into the MasterChef V1 (MCV1) contract. The allocation point f... | contract MiniChefV2 is BoringOwnable, BoringBatchable {
using BoringMath for uint256;
using BoringMath128 for uint128;
using BoringERC20 for IERC20;
using SignedSafeMath for int256;
struct UserInfo {
uint256 amount;
int256 rewardDebt;
uint256 releaseTime;
uint256 loc... | 11,554,862 | [
1,
1986,
261,
1498,
13,
13453,
39,
580,
74,
6835,
14758,
596,
279,
5381,
1300,
434,
30712,
2430,
1534,
1203,
18,
2597,
353,
326,
1338,
1758,
598,
312,
474,
310,
14989,
364,
30712,
18,
1021,
21463,
364,
333,
13453,
39,
580,
74,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27987,
39,
580,
74,
58,
22,
353,
605,
6053,
5460,
429,
16,
605,
6053,
4497,
429,
288,
203,
565,
1450,
605,
6053,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
605,
6053,
10477,
10392,
364,
2254,
10392,
31,
203,
565,
1450,
... |
./full_match/1/0xef165820dEa2c24C2A61675d7B183b36255e10c8/sources/contracts/Awakened.sol | * @notice Set the maximum presale mints allowed per a given transaction/ | function setPresaleMintsAllowedPerTransaction(
uint256 _mintsAllowed
) external onlyOwner {
presaleMintsAllowedPerTransaction = _mintsAllowed;
}
| 2,910,216 | [
1,
694,
326,
4207,
4075,
5349,
312,
28142,
2935,
1534,
279,
864,
2492,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
12236,
5349,
49,
28142,
5042,
2173,
3342,
12,
203,
3639,
2254,
5034,
389,
81,
28142,
5042,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
4075,
5349,
49,
28142,
5042,
2173,
3342,
273,
389,
81,
28142,
5042,
31,
20... |
/**
*Submitted for verification at Etherscan.io on 2021-01-18
*/
// Dependency file: /Users/present/code/super-sett/deps/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined... | Modified the harvest function and called it rebalance This function is called by Keepers post rebase to evaluate what to do with the trade A percent of wbtc earned during expansion goes to rewards pool and stabilize vault Rebase has taken place, act on it Price is still positive We will sell digg for wbtc Our formula ... | function rebalance() external whenNotPaused {
_onlyAuthorizedActors();
uint256 currentTotalSupply = tokenList[0].token.totalSupply();
if(currentTotalSupply != lastDiggTotalSupply){
int256 currentPrice = int256(getDiggPrice());
int256 percentChange = (currentPrice - in... | 12,547,743 | [
1,
4575,
326,
17895,
26923,
445,
471,
2566,
518,
283,
12296,
1220,
445,
353,
2566,
635,
10498,
414,
1603,
283,
1969,
358,
5956,
4121,
358,
741,
598,
326,
18542,
432,
5551,
434,
17298,
5111,
425,
1303,
329,
4982,
17965,
13998,
358,
283... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
283,
12296,
1435,
3903,
1347,
1248,
28590,
288,
203,
3639,
389,
3700,
15341,
2459,
1383,
5621,
203,
3639,
2254,
5034,
783,
5269,
3088,
1283,
273,
1147,
682,
63,
20,
8009,
2316,
18,
4963,
3088,
1283,
5621,
203,
3639,
309,
... |
pragma solidity ^0.4.23;
// File: contracts/WhitelistableConstraints.sol
/**
* @title WhitelistableConstraints
* @dev Contract encapsulating the constraints applicable to a Whitelistable contract.
*/
contract WhitelistableConstraints {
/**
* @dev Check if whitelist with specified parameters is... | * @return true if subscriber is whitelisted, false otherwise/ | function isWhitelisted(address _subscriber) public view returns(bool isReallyWhitelisted) {
return whitelist[_subscriber];
}
| 887,500 | [
1,
2463,
638,
309,
9467,
353,
26944,
16,
629,
3541,
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,
353,
18927,
329,
12,
2867,
389,
26410,
13,
1071,
1476,
1135,
12,
6430,
28627,
1230,
18927,
329,
13,
288,
203,
3639,
327,
10734,
63,
67,
26410,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//Address: 0x14fbca95be7e99c15cc2996c6c9d841e54b79425
//Contract name: MatchingMarket
//Balance: 0 Ether
//Verification Date: 12/18/2017
//Transacion Count: 171303
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract DSAuthority {
function canCall(
address src, address dst, bytes4 sig
) public view... | return the next worse offer in the sorted list the worse offer is the higher one if its an ask, a lower one if its a bid offer, and in both cases the newer one if they're equal. | function getWorseOffer(uint id) public constant returns(uint) {
return _rank[id].prev;
}
| 2,494,720 | [
1,
2463,
326,
1024,
14591,
307,
10067,
316,
326,
3115,
666,
1377,
326,
14591,
307,
10067,
353,
326,
10478,
1245,
309,
2097,
392,
6827,
16,
1377,
279,
2612,
1245,
309,
2097,
279,
9949,
10067,
16,
1377,
471,
316,
3937,
6088,
326,
16069,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13876,
23035,
10513,
12,
11890,
612,
13,
1071,
5381,
1135,
12,
11890,
13,
288,
203,
3639,
327,
389,
11500,
63,
350,
8009,
10001,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2022-01-14
*/
/**
*Submitted for verification at Etherscan.io on 2022-01-13
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
... | * @dev Approve `to` to operate on `tokenId` Emits a {Approval} event./ | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
| 101,880 | [
1,
12053,
537,
1375,
869,
68,
358,
20829,
603,
1375,
2316,
548,
68,
7377,
1282,
279,
288,
23461,
97,
871,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
12908,
537,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
5024,
288,
203,
565,
389,
2316,
12053,
4524,
63,
2316,
548,
65,
273,
358,
31,
203,
565,
3626,
1716,
685,
1125,
12,
654,
39,
27,
5340,
18,
8443,
95... |
./full_match/3/0x1213164Ae8EAc01051213bC6232f2E3e5f967080/sources/irc.sol | * @dev Initializes the contract setting the deployer as the initial owner./ | constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
| 14,131,644 | [
1,
9685,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
565,
3885,
1832,
2713,
288,
203,
202,
3639,
1758,
1234,
12021,
273,
389,
3576,
12021,
5621,
203,
202,
3639,
389,
8443,
273,
1234,
12021,
31,
203,
202,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
12,
2867,
12,
20,
3631,
1234,
... |
./full_match/1/0xdca0641e507709FFE7e1e532533aC84e2c27c4bF/sources/localhost/staking/libs/LibFixedMath.sol | @dev Compute the natural exponent for a fixed-point number EXP_MIN_VAL <= `x` <= 1 Saturate to zero below EXP_MIN_VAL. e ^ -32 e ^ -16 e ^ -8 e ^ -4 e ^ -2 e ^ -1 e ^ -0.5 e ^ -0.25 e ^ -0.125 | function exp(int256 x) internal pure returns (int256 r) {
if (x < EXP_MIN_VAL) {
return 0;
}
if (x == 0) {
return FIXED_1;
}
if (x > EXP_MAX_VAL) {
LibRichErrors.rrevert(LibFixedMathRichErrors.SignedValueError(
LibFixedMathR... | 3,221,455 | [
1,
7018,
326,
15145,
9100,
364,
279,
5499,
17,
1153,
1300,
22615,
67,
6236,
67,
2669,
1648,
1375,
92,
68,
1648,
404,
25793,
295,
340,
358,
3634,
5712,
22615,
67,
6236,
67,
2669,
18,
425,
3602,
300,
1578,
425,
3602,
300,
2313,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1329,
12,
474,
5034,
619,
13,
2713,
16618,
1135,
261,
474,
5034,
436,
13,
288,
203,
3639,
309,
261,
92,
411,
22615,
67,
6236,
67,
2669,
13,
288,
203,
5411,
327,
374,
31,
203,
3639,
289,
203,
3639,
309,
261,
92,
422,... |
// SPDX-License-Identifier:MIT
pragma solidity >=0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/GsnTypes.sol";
import "./interfaces/IPaymaster.sol";
import "./interfaces/IRelayHub.sol";
import "./utils/GsnEip712Library.sol";
import "./forwarder/IForwarder.sol";
/**
*... | Nonces of senders, used to prevent replay attacks solhint-disable-next-line no-empty-blocks | contract Forwarder is IForwarder {
using ECDSA for bytes32;
string public constant GENERIC_PARAMS = "address from,address to,uint256 value,uint256 gas,uint256 nonce,bytes data,uint256 validUntil";
string public constant EIP712_DOMAIN_TYPE = "EIP712Domain(string name,string version,uint256 chainId,address ... | 45,701 | [
1,
3989,
764,
434,
1366,
414,
16,
1399,
358,
5309,
16033,
28444,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
5531,
17,
7996,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2457,
20099,
353,
467,
30839,
288,
203,
565,
1450,
7773,
19748,
364,
1731,
1578,
31,
203,
203,
565,
533,
1071,
5381,
18421,
67,
16785,
273,
315,
2867,
628,
16,
2867,
358,
16,
11890,
5034,
460,
16,
11890,
5034,
16189,
16,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "./ERC721ABurnable.sol";
import "./ERC721AOwnersExplicit.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract SelfImprovementSociety is ERC721ABurnable, ERC721AOwnersExplicit, ... | Use with caution may run out of gas | function walletOfOwner(address _owner) public view returns (uint256[] memory) {
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
uint256 currentTokenId = 0;
uint256 ownedTokenIndex = 0;
while (ownedTokenIndex < own... | 14,829,085 | [
1,
3727,
598,
3474,
1421,
2026,
1086,
596,
434,
16189,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9230,
951,
5541,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
3410,
1345,
1380,
273,
11013,
951,
24899,
8443,
1769,
203,
3639,
2254,
5034,
8526,
3778,
16199,
134... |
./full_match/1/0x2a8b06562A455A79f7027cEd093f1E9dC0fC53B2/sources/contracts/Converter.sol | * @dev Calculate the energy for specific staked token @param history The staking history for the staked token @param multiplier The multiplier for staked token @param periodEndTime Only calculate energy generated before periodEndTime @return total energy amount for the token/ | function _calculateEnergyForToken(
Stake[] memory history,
uint256 multiplier,
uint256 periodEndTime
) internal view returns (uint256) {
uint256 total = 0;
uint256 _time = currentTime() < periodEndTime ? currentTime() : periodEndTime;
for (uint256 i = history.len... | 2,906,643 | [
1,
8695,
326,
12929,
364,
2923,
384,
9477,
1147,
225,
4927,
1021,
384,
6159,
4927,
364,
326,
384,
9477,
1147,
225,
15027,
1021,
15027,
364,
384,
9477,
1147,
225,
3879,
25255,
5098,
4604,
12929,
4374,
1865,
3879,
25255,
327,
2078,
12929,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11162,
664,
31920,
1290,
1345,
12,
203,
3639,
934,
911,
8526,
3778,
4927,
16,
203,
3639,
2254,
5034,
15027,
16,
203,
3639,
2254,
5034,
3879,
25255,
203,
565,
262,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable... | By default, there is a withdrawal fee applied on users This flag allows us to exempt withdrawal fees on certain addresses This is useful for protocol collaboration | mapping(address => bool) public noWithdrawalFee;
| 276,837 | [
1,
858,
805,
16,
1915,
353,
279,
598,
9446,
287,
14036,
6754,
603,
3677,
1220,
2982,
5360,
584,
358,
431,
5744,
598,
9446,
287,
1656,
281,
603,
8626,
6138,
1220,
353,
5301,
364,
1771,
21326,
22226,
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,
2874,
12,
2867,
516,
1426,
13,
1071,
1158,
1190,
9446,
287,
14667,
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,
-10... |
pragma solidity ^0.4.23;
/*** @title SafeMath
* @dev https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol */
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c... | изменение даты начала предварительной распродажи | function setStartOneSale(uint256 newStart1Sale) public onlyOwner {
start1StageSale = newStart1Sale;
}
| 5,496,748 | [
1,
145,
121,
145,
120,
145,
125,
145,
118,
145,
126,
145,
118,
145,
126,
145,
121,
145,
118,
225,
145,
117,
145,
113,
146,
229,
146,
238,
225,
145,
126,
145,
113,
146,
234,
145,
113,
145,
124,
145,
113,
225,
145,
128,
146,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18171,
3335,
30746,
12,
11890,
5034,
394,
1685,
21,
30746,
13,
1071,
1338,
5541,
288,
203,
3639,
787,
21,
8755,
30746,
273,
394,
1685,
21,
30746,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/73799/0xb5fF083230fa8f6241Bc17F5ca8cc1D3FB3fDBD7/sources/contracts/libraries/LibReward.sol | * @notice Error message thrown when trying to pay rewards while rewards are disabled/ | error RewardsDisabled();
| 16,362,037 | [
1,
668,
883,
6718,
1347,
8374,
358,
8843,
283,
6397,
1323,
283,
6397,
854,
5673,
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,
565,
555,
534,
359,
14727,
8853,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/******************************************/
/* KeeperCompatibleInterface starts here */
/******************************************/
interface KeeperCompatibleInterface {
/**
* @notice checks if the contract requires work to be done.
* @param checkDa... | * @notice Creates a Chainlink request to the specified oracle address @dev Generates and stores a request ID, increments the local nonce, and uses `transferAndCall` to send LINK which creates a request on the target oracle contract. Emits ChainlinkRequested event. @param oracleAddress The address of the oracle for the ... | function sendChainlinkRequestTo(
address oracleAddress,
Chainlink.Request memory req,
uint256 payment
)
internal
returns (
bytes32 requestId
)
{
return rawRequest(oracleAddress, req, payment, ORACLE_ARGS_VERSION, oracle.oracleRequest.selector);
}
| 487,322 | [
1,
2729,
279,
7824,
1232,
590,
358,
326,
1269,
20865,
1758,
225,
31902,
471,
9064,
279,
590,
1599,
16,
17071,
326,
1191,
7448,
16,
471,
4692,
1375,
13866,
1876,
1477,
68,
358,
1366,
22926,
1492,
3414,
279,
590,
603,
326,
1018,
20865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1366,
3893,
1232,
691,
774,
12,
203,
565,
1758,
20865,
1887,
16,
203,
565,
7824,
1232,
18,
691,
3778,
1111,
16,
203,
565,
2254,
5034,
5184,
203,
225,
262,
203,
565,
2713,
203,
565,
1135,
261,
203,
1377,
1731,
1578,
14... |
pragma solidity ^0.4.18;
/**
* Math operations with safety checks that throw on error
*/
contract SafeMath {
function safeMul(uint256 a, uint256 b) public pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function safeDiv(uint256 a, uint256 b) public pure returns (uint25... | * permission checker/ | modifier onlyContractOwner() {
if(msg.sender != contractOwner){
revert();
}
_;
}
| 6,212,630 | [
1,
9827,
12489,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
20597,
1338,
8924,
5541,
1435,
288,
203,
202,
202,
430,
12,
3576,
18,
15330,
480,
6835,
5541,
15329,
203,
1082,
202,
266,
1097,
5621,
203,
202,
202,
97,
203,
202,
202,
67,
31,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import 'openzeppelin-solidity/contracts/math/SafeMath.sol';
import 'openzeppelin-solidity/contracts/math/Math.sol';
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol';
import 'openzeppelin-solidity/contracts/lifecycle/Pausable.sol';
import 'openzeppelin-solidity/contracts/lifecycle... | * @dev Content creator getter @param addressInput The content creator address. @return nickname The content creator name. @return description Content creator description. @return creationTimestamp Creation timestamp @return payday Next content creator payday date @return balance Current content creator balance @return ... | function getContentCreator(address addressInput) public view returns (
bytes32 nickname,
string description,
uint256 creationTimestamp,
uint256 payday,
uint256 balance,
string ipfsAvatar,
uint256 totalMecenas,
address contentCreatorAddress,
uint256 wage
) {
... | 7,284,490 | [
1,
1350,
11784,
7060,
225,
1758,
1210,
1021,
913,
11784,
1758,
18,
327,
19570,
1021,
913,
11784,
508,
18,
327,
2477,
3697,
11784,
2477,
18,
327,
6710,
4921,
18199,
2858,
327,
8843,
2881,
4804,
913,
11784,
8843,
2881,
1509,
327,
11013,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5154,
10636,
12,
2867,
1758,
1210,
13,
1071,
1476,
1135,
261,
203,
1377,
1731,
1578,
19570,
16,
203,
1377,
533,
2477,
16,
203,
1377,
2254,
5034,
6710,
4921,
16,
203,
1377,
2254,
5034,
8843,
2881,
16,
203,
1377,
2254,
50... |
pragma solidity >=0.8.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract WagmiContract is ReentrancyGuard {
using S... | * Allow people to sign up as promoters on the Wagmi marketplace./ | function promoterSignUp() external {
promoters[msg.sender] = true;
}
| 15,794,862 | [
1,
7009,
16951,
358,
1573,
731,
487,
3012,
352,
414,
603,
326,
678,
346,
9197,
29917,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3012,
20005,
2766,
1211,
1435,
3903,
288,
203,
565,
3012,
352,
414,
63,
3576,
18,
15330,
65,
273,
638,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
/// @author jpegmint.xyz
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
/**
*/
contract ERC721Virtual is ERC721, IERC721Enumerable {
mapping(uint256 => bool) priva... | * @dev See {IERC721Enumerable-totalSupply}./ | function totalSupply() public view virtual override returns (uint256) {
return type(uint160).max;
}
| 997,995 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
3572,
25121,
17,
4963,
3088,
1283,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
3088,
1283,
1435,
1071,
1476,
5024,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
618,
12,
11890,
16874,
2934,
1896,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/*
Copyright 2017-2018 RigoBlock, Rigo Investment Sagl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | @dev Finds details of a drago pool @return String name of a drago @return String symbol of a drago @return Value of the share price in wei @return Value of the share price in wei | function getData()
external view
returns (
string name,
string symbol,
uint sellPrice,
uint buyPrice
)
{
name = data.name;
symbol = data.symbol;
sellPrice = data.sellPrice;
buyPrice = data.buyPrice;
}
| 5,492,672 | [
1,
8947,
3189,
434,
279,
8823,
83,
2845,
327,
514,
508,
434,
279,
8823,
83,
327,
514,
3273,
434,
279,
8823,
83,
327,
1445,
434,
326,
7433,
6205,
316,
732,
77,
327,
1445,
434,
326,
7433,
6205,
316,
732,
77,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4303,
1435,
203,
3639,
3903,
1476,
203,
3639,
1135,
261,
203,
5411,
533,
508,
16,
203,
5411,
533,
3273,
16,
203,
5411,
2254,
357,
80,
5147,
16,
203,
5411,
2254,
30143,
5147,
203,
3639,
262,
203,
565,
288,
203,
3639,
5... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/u... | DeLorean Interest -- It's coming back from the future! EL PSY CONGROO Author: Zefram Lou Contact: [email protected] Constants User deposit data Each deposit has an ID used in the depositNFT, which is equal to its index in `deposits` plus 1 | contract DInterestWithDepositFee is ReentrancyGuard, Ownable {
using SafeMath for uint256;
using DecMath for uint256;
using SafeERC20 for ERC20;
using Address for address;
uint256 internal constant PRECISION = 10**18;
uint256 internal constant ONE = 10**18;
struct Deposit {
bool fi... | 1,202,152 | [
1,
758,
48,
479,
304,
5294,
395,
1493,
2597,
1807,
19283,
1473,
628,
326,
3563,
5,
14801,
453,
7474,
3492,
43,
1457,
51,
6712,
30,
2285,
10241,
1940,
511,
1395,
13329,
30,
306,
3652,
131,
259,
1117,
65,
5245,
2177,
443,
1724,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
29281,
1190,
758,
1724,
14667,
353,
868,
8230,
12514,
16709,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
3416,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
346... |
// A Ponzi scheme where old investors are payed with the funds received from new investors.
// Unlike what is out there in the market, the contract creator received no funds - if you
// don't do work, you cannot expect to be paid. People who put in the funds receive all the
// returns. Owners can particiapte the... | single entry point, add entry & pay what we can we only accept values in range send payouts while we can afford to do so | function() {
if ((msg.value < MIN_VALUE) || (msg.value > MAX_VALUE)) {
throw;
}
payouts.length += 1;
payouts[entryIndex].addr = msg.sender;
payouts[entryIndex].yield = (msg.value * RET_MUL) / RET_DIV;
while (payouts[payoutIndex].yield < this.balance) {
payoutTotal += payouts[payo... | 12,765,100 | [
1,
7526,
1241,
1634,
16,
527,
1241,
473,
8843,
4121,
732,
848,
732,
1338,
2791,
924,
316,
1048,
1366,
293,
2012,
87,
1323,
732,
848,
7103,
517,
358,
741,
1427,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1435,
288,
203,
565,
309,
14015,
3576,
18,
1132,
411,
6989,
67,
4051,
13,
747,
261,
3576,
18,
1132,
405,
4552,
67,
4051,
3719,
288,
203,
1377,
604,
31,
203,
565,
289,
203,
203,
565,
293,
2012,
87,
18,
2469,
1011,
40... |
pragma solidity ^0.4.23;
// File: contracts\utils\SafeMath.sol
/**
* @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 ... | must from girl owner or the owner of contract.
| require(girlBasicToken.ownerOf(_GirlId) == _from || owner == _from); | 12,669,200 | [
1,
11926,
628,
314,
481,
80,
3410,
578,
326,
3410,
434,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
75,
481,
80,
8252,
1345,
18,
8443,
951,
24899,
43,
481,
80,
548,
13,
422,
389,
2080,
747,
3410,
422,
389,
2080,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0xd0878207b6c70961DB534C7a53C9F29c590c1AA6/sources/contracts/module/UserStorage.sol | Structure that represents a staked team. | struct StakeTeam {
}
Stake Item Storage
| 9,522,424 | [
1,
6999,
716,
8686,
279,
384,
9477,
5927,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
934,
911,
8689,
288,
203,
565,
289,
203,
203,
203,
7682,
934,
911,
4342,
5235,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/4/0xF34f7a9a4280c7B05AaE067147aF9D92369988CF/sources/GovTreasurer.sol | WITHDRAW | FARMING ASSETS (TOKENS) | RE-ENTRANCY DEFENSE | function withdraw(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
uint256 pending = user.amount.mul(pool.accGDAOPerShar... | 8,628,777 | [
1,
9147,
40,
10821,
571,
478,
26120,
1360,
5355,
28092,
261,
8412,
55,
13,
571,
2438,
17,
2222,
54,
1258,
16068,
25957,
23396,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Lockable.sol";
/**
* @title A contract to track a whitelist of addresses.
*/
contract AddressWhitelist is Ownable, Lockable {
enum Status { None, In, Out }
mapping(address => Stat... | * @notice Forwards a commit to Voting. @param identifier uniquely identifies the feed for this vote. EG BTC/USD price pair. @param time specifies the unix timestamp of the price being voted on. @param hash the keccak256 hash of the price you want to vote for and a random integer salt value./ | function commitVote(
bytes32 identifier,
uint256 time,
bytes32 hash
) external onlyRoleHolder(uint256(Roles.Voter)) {
_getVotingAddress().commitVote(identifier, time, hash);
}
| 591,493 | [
1,
1290,
6397,
279,
3294,
358,
776,
17128,
18,
225,
2756,
30059,
25283,
326,
4746,
364,
333,
12501,
18,
512,
43,
605,
15988,
19,
3378,
40,
6205,
3082,
18,
225,
813,
11470,
326,
9753,
2858,
434,
326,
6205,
3832,
331,
16474,
603,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
3294,
19338,
12,
203,
3639,
1731,
1578,
2756,
16,
203,
3639,
2254,
5034,
813,
16,
203,
3639,
1731,
1578,
1651,
203,
565,
262,
3903,
1338,
2996,
6064,
12,
11890,
5034,
12,
6898,
18,
58,
20005,
3719,
288,
203,
3639,
389,
... |
./full_match/80001/0xF8a9362bA0f4F61D7a32D1e2e32113228Cf938cB/sources/StakingContract.sol | remainingBalance = (remainingBalance * 90) / 100;address payable uown = payable(msg.sender); | splitter.transfer(remainingBalance);
| 835,870 | [
1,
17956,
13937,
273,
261,
17956,
13937,
225,
8566,
13,
342,
2130,
31,
2867,
8843,
429,
582,
995,
273,
8843,
429,
12,
3576,
18,
15330,
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,
... | [
1,
1,
1,
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,
3639,
21553,
18,
13866,
12,
17956,
13937,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.8.0;
import "./AccessControlEnumerable.sol";
interface PuppyToken {
function transfer(address _to, uint _amount) external returns(bool);
function transferFrom(address _from, address _to, uint _amount) external returns(bool);
function balanceOf(address _user) external returns(uint);
}
c... | 2 years + 1 month for lockup
| teamEnd = block.timestamp + 30 days + 730 days; | 335,140 | [
1,
22,
11387,
397,
404,
3138,
364,
2176,
416,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5927,
1638,
273,
1203,
18,
5508,
397,
5196,
4681,
397,
2371,
5082,
4681,
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,
-1... |
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "./CryptoArcadeGame.sol";
import "./RewardSplitter.sol";
/**
* @title CryptoArcade
* @dev This contract is as a game factory and acts as a proxy between pl... | * @dev This methods enables all operations for a given game. Games can be deactivated without being removed, in case an issue is detected. @param _gameId The id of the game to activate/ | function activateGame(uint256 _gameId)
external
onlyOwner()
whenNotPaused()
{
games[_gameId].activateGame();
}
| 14,113,116 | [
1,
2503,
2590,
19808,
777,
5295,
364,
279,
864,
7920,
18,
611,
753,
848,
506,
443,
18836,
2887,
3832,
3723,
16,
316,
648,
392,
5672,
353,
8316,
18,
225,
389,
13957,
548,
1021,
612,
434,
326,
7920,
358,
10235,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10235,
12496,
12,
11890,
5034,
389,
13957,
548,
13,
203,
3639,
3903,
203,
3639,
1338,
5541,
1435,
203,
3639,
1347,
1248,
28590,
1435,
203,
565,
288,
203,
3639,
28422,
63,
67,
13957,
548,
8009,
10014,
12496,
5621,
203,
565... |
./full_match/1/0xf832b7cCa1BA656C48a789Ca474f62876b0AEbC6/sources/contracts/Governance.sol | @notice Validate token id (must be less than or equal to total tokens amount) @param _tokenId Token id @return bool flag that indicates if token id is less than or equal to total tokens amount | function isValidTokenId(uint16 _tokenId) external view returns (bool) {
return _tokenId <= totalTokens;
}
| 3,151,045 | [
1,
4270,
1147,
612,
261,
11926,
506,
5242,
2353,
578,
3959,
358,
2078,
2430,
3844,
13,
225,
389,
2316,
548,
3155,
612,
327,
1426,
2982,
716,
8527,
309,
1147,
612,
353,
5242,
2353,
578,
3959,
358,
2078,
2430,
3844,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4908,
1345,
548,
12,
11890,
2313,
389,
2316,
548,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
2316,
548,
1648,
2078,
5157,
31,
203,
565,
289,
203,
202,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x75AfbEf84bF6FF8Cafe08872Db2CB77cabebF53f/sources/phopox.sol | Update burnPercent by the previous dev. | function getBurnPercent() external view returns (uint256){
return burnPercent;
}
| 840,420 | [
1,
1891,
18305,
8410,
635,
326,
2416,
4461,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
321,
8410,
1435,
3903,
1476,
1135,
261,
11890,
5034,
15329,
203,
3639,
327,
18305,
8410,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/10/0xf9cFB8a62f50e10AdDE5Aa888B44cF01C5957055/sources/contracts/VeloPositionManager.sol | @notice Callback functions called by the vault to pay protocol fee. The caller to this function must be the vault contract | function payFeeToTreasuryCallback(
uint256 vaultId,
address asset,
uint256 amount,
uint256 feeType
) external {
address vaultAddress = IVaultFactory(vaultFactory).vaults(vaultId);
require(vaultAddress != address(0), Errors.VL_ADDRESS_CANNOT_ZERO);
require(... | 3,780,645 | [
1,
2428,
4186,
2566,
635,
326,
9229,
358,
8843,
1771,
14036,
18,
1021,
4894,
358,
333,
445,
1297,
506,
326,
9229,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8843,
14667,
774,
56,
266,
345,
22498,
2428,
12,
203,
3639,
2254,
5034,
9229,
548,
16,
203,
3639,
1758,
3310,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
14036,
559,
203,
565,
262,
3903,
288,
203,
3639,
... |
pragma solidity ^0.4.23;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner,... | receiving ETH and sending KRS | function () payable {
if(block.number >= icoRounds[rNo].rStartBlock && block.number <= icoRounds[rNo].rEndBlock && !icoInProgress) {
icoInProgress = true;
}
uint krowns4eth;
krowns4eth = safeDiv(safeMul(safeMul(msg.value, ethUsd), uint(100)), icoRounds[rNo].rKrsUsdFixed);
krow... | 6,979,732 | [
1,
8606,
9288,
512,
2455,
471,
5431,
1475,
13225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1832,
8843,
429,
288,
203,
1377,
309,
12,
2629,
18,
2696,
1545,
277,
2894,
54,
9284,
63,
86,
2279,
8009,
86,
1685,
1768,
597,
1203,
18,
2696,
1648,
277,
2894,
54,
9284,
63,
86,
2279,
8009,
86,
1638,
1768,
597,
401,
... |
pragma solidity ^0.4.24;
contract EthGods {
// imported contracts
EthGodsName private eth_gods_name;
function set_eth_gods_name_contract_address(address eth_gods_name_contract_address) public returns (bool) {
require(msg.sender == admin);
eth_gods_name = EthGodsName(eth_gods_... | to calculate how many pages | function get_amulet_orders_overview () public view returns(uint){
uint count_amulets_selling = 0;
for (uint i = 1; i <= count_amulets; i++){
if (add(amulets[i].start_selling_block, order_duration) > block.number && amulets[i].owner != msg.sender){
count_amulets_selling ++... | 997,255 | [
1,
869,
4604,
3661,
4906,
4689,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
67,
301,
332,
278,
67,
9972,
67,
26081,
1832,
1071,
1476,
1135,
12,
11890,
15329,
203,
3639,
2254,
1056,
67,
301,
332,
2413,
67,
87,
1165,
310,
273,
374,
31,
203,
3639,
364,
261,
11890,
277,
273,
404,
31,
277,
... |
./partial_match/1/0x5F49E1b5Ee9A34A9aD553Ac2CcA1f908C62c776a/sources/Anima.sol | set as marketing wallet
| marketingWallet = address(0xBdf1a531983c815956FB9756dABe9Dcd03C89A4D); | 15,703,021 | [
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,
20029,
2180,
21,
69,
8643,
3657,
10261,
71,
28,
24872,
4313,
22201,
10580,
4313,
72,
37,
1919,
29,
40,
4315,
4630,
39,
6675,
37,
24,
40,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
//Address: 0x6e34d8d84764d40f6d7b39cd569fd017bf53177d
//Contract name: Skraps
//Balance: 0 Ether
//Verification Date: 1/8/2018
//Transacion Count: 6
// CODE STARTS HERE
pragma solidity 0.4.19;
contract Owned {
address public owner;
address public candidate;
function Owned() internal {
owner = m... | Functions for safe operation with input values (subtraction and addition) | library SafeMath {
function sub(uint a, uint b) internal pure returns (uint) {
assert(b <= a);
return a - b;
}
function add(uint a, uint b) internal pure returns (uint) {
uint c = a + b;
assert(c >= a);
return c;
}
}
| 5,377,768 | [
1,
7503,
364,
4183,
1674,
598,
810,
924,
261,
1717,
25693,
471,
2719,
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,
... | [
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,
12083,
14060,
10477,
288,
203,
565,
445,
720,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
1815,
12,
70,
1648,
279,
1769,
203,
3639,
327,
279,
300,
324,
31,
203,
565,
289,
203,
203,
565,... |
// SPDX-License-Identifier: MIT
/*
* MIT License
* ===========
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | first time getting XYT | function _calcDueInterests(
uint256 principal,
address _underlyingAsset,
uint256 _expiry,
address _account
) internal override returns (uint256 dueInterests) {
uint256 ix = lastNormalisedIncome[_underlyingAsset][_expiry][_account];
uint256 normalizedIncome;
... | 12,860,194 | [
1,
3645,
813,
8742,
18774,
56,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12448,
30023,
2465,
25563,
12,
203,
3639,
2254,
5034,
8897,
16,
203,
3639,
1758,
389,
9341,
6291,
6672,
16,
203,
3639,
2254,
5034,
389,
22409,
16,
203,
3639,
1758,
389,
4631,
203,
565,
262,
2713,
3849,
1135,
261,
1... |
./full_match/1/0x77337dEEA78720542f0A1325394Def165918D562/sources/src/SplitSwapRouter.sol | @notice Identical to swapExactTokensForETH, but succeeds for tokens that take a fee on transfer. @dev Require has been replaced with revert for gas optimization. Attempt to back-run swaps. @param amountIn Amount of input tokens to send. @param amountOutMin Minimum amount of ETH that must be received @param path Array ... | function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external virtual {
ensure(deadline);
address weth = WETH09;
if (path[_dec(path.length)] != ... | 16,513,968 | [
1,
6106,
1706,
358,
7720,
14332,
5157,
1290,
1584,
44,
16,
1496,
21933,
364,
2430,
716,
4862,
279,
14036,
603,
7412,
18,
225,
12981,
711,
2118,
8089,
598,
15226,
364,
16189,
14850,
18,
12864,
358,
1473,
17,
2681,
1352,
6679,
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,
7720,
14332,
5157,
1290,
1584,
44,
6289,
310,
14667,
1398,
5912,
5157,
12,
203,
3639,
2254,
5034,
3844,
382,
16,
203,
3639,
2254,
5034,
3844,
1182,
2930,
16,
203,
3639,
1758,
8526,
745,
892,
589,
16,
203,
3639,
1758,
35... |
./full_match/1/0x73217eE72fDedf763BACd83Acf60b4218f6ff8Af/sources/Users/ivannikov/work/snake-jungle/cosmo-farming/contracts/FarmUniswap.sol | * @notice updates pool information to be up to date to the current block/ | function updatePool() public {
if (block.number <= farmInfo.lastRewardBlock) {
return;
}
uint256 lpSupply = farmInfo.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
farmInfo.lastRewardBlock = block.number < farmInfo.endBlock
? block.numb... | 4,880,082 | [
1,
14703,
2845,
1779,
358,
506,
731,
358,
1509,
358,
326,
783,
1203,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
1435,
1071,
288,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
284,
4610,
966,
18,
2722,
17631,
1060,
1768,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
3639,
2254,
5034,
12423,
3088,
1283,
273,
284,
4610,... |
pragma solidity ^0.4.21;
contract Owned {
/// 'owner' is the only address that can call a function with
/// this modifier
address public owner;
address internal newOwner;
///@notice The constructor assigns the message sender to be 'owner'
function Owned() public {
... | convert units from ether to wei
| msg.sender.transfer(_ether); | 10,745,311 | [
1,
6283,
4971,
628,
225,
2437,
358,
732,
77,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1234,
18,
15330,
18,
13866,
24899,
2437,
1769,
565,
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/0x8C6AdC849Ffc03C96FA16F3d58220A6BD30D3602/sources/MasterChefLP.sol | View function to see pending LPs on frontend. | function pendingLP(address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo;
UserInfo storage user = userInfo[_user];
uint256 accLPPerShare = pool.accLPPerShare;
uint256 lpSupply = totalLPStaked;
if (block.number > pool.lastRewardBlock && lpSupply != ... | 9,220,898 | [
1,
1767,
445,
358,
2621,
4634,
511,
18124,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4634,
14461,
12,
2867,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
31,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
1355,
15533,
203,
3639,
2254,
503... |
pragma solidity ^0.4.11;
/*******************************************************************************
* ERC Token Standard #20 Interface
* https://github.com/ethereum/EIPs/issues/20
*******************************************************************************/
contract ERC20Interface {
// Get the tot... | Transfer an amount from the owner's account to an indicated account */ | function transfer(address _to, uint256 _amount) returns (bool success) {
if (balances[msg.sender] >= _amount
&& _amount > 0
&& balances[_to] + _amount > balances[_to]
&& (! accountHasCurrentVote(msg.sender))) {
balances[msg.sender] -= _amount;
balances[_to] += _amount;
Tr... | 5,511,732 | [
1,
5912,
392,
3844,
628,
326,
3410,
1807,
2236,
358,
392,
17710,
2236,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1135,
261,
6430,
2216,
13,
288,
203,
565,
309,
261,
70,
26488,
63,
3576,
18,
15330,
65,
1545,
389,
8949,
203,
3639,
597,
389,
8949,
405,
374,
203,
3639,
597,
... |
// SPDX-License-Identifier: BUSL-1.1 AND Unlicense AND MIT AND GPL-2.0-or-later
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: GPL-2.0-or-later
pragma solidity >=0.5.0;
/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
/// @notice E... | / Burn liquidity Collect amount owed | function _burnLiquidity(
int24 tickLower,
int24 tickUpper,
uint128 liquidity,
address to,
bool collectAll
) internal returns (uint256 amount0, uint256 amount1) {
if (liquidity > 0) {
(uint256 owed0, uint256 owed1) = IUniswapV3Pool(pool).burn(
... | 1,119,772 | [
1,
19,
605,
321,
4501,
372,
24237,
9302,
3844,
2523,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
48,
18988,
24237,
12,
203,
3639,
509,
3247,
4024,
4070,
16,
203,
3639,
509,
3247,
4024,
5988,
16,
203,
3639,
2254,
10392,
4501,
372,
24237,
16,
203,
3639,
1758,
358,
16,
203,
3639,
1426,
3274,
1595,
203,
... |
./full_match/1/0x39Ac1AC1B7c45b3E78f1290a542D428E7aB8E59C/sources/browser/XTrinity_flat.sol | 3-pool DAI/USDC/USDT
| address constant CURVE_ADDRESS = 0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7; | 4,980,394 | [
1,
23,
17,
6011,
463,
18194,
19,
3378,
5528,
19,
3378,
9081,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
5381,
4706,
3412,
67,
15140,
273,
374,
6114,
41,
13459,
6334,
8285,
22,
39,
27,
72,
38,
20,
69,
21,
37,
4848,
15237,
26,
3030,
10580,
72,
20,
70,
8875,
5082,
1578,
2246,
21,
39,
27,
31,
225,
2,
-100,
-100,
-100,
... |
./full_match/1/0xed0941e5dC9141A2b029C65862044A4Cac9e56E9/sources/src/Vault.sol | @dev do not touch debt outside of _lend(), _collect() and _report() | function _report(Strategy _strategy, uint256 _harvested) internal {
uint256 assets = _strategy.totalAssets();
uint256 debt = strategies[_strategy].debt;
uint256 gain;
uint256 loss;
uint256 lockedProfitBefore = lockedProfit();
if (assets > debt) {
unche... | 3,219,485 | [
1,
2896,
486,
6920,
18202,
88,
8220,
434,
389,
80,
409,
9334,
389,
14676,
1435,
471,
389,
6006,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
6006,
12,
4525,
389,
14914,
16,
2254,
5034,
389,
30250,
90,
3149,
13,
2713,
288,
203,
3639,
2254,
5034,
7176,
273,
389,
14914,
18,
4963,
10726,
5621,
203,
3639,
2254,
5034,
18202,
88,
273,
20417,
63,
67,
14914,
800... |
// File: @openzeppelin/contracts/access/IAccessControl.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitt... | File: @openzeppelin/contracts/token/ERC721/ERC721.sol OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)* the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address t... | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
string private _name;
string private _symbol;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => address) private _... | 12,104,736 | [
1,
812,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
654,
39,
27,
5340,
18,
18281,
3502,
62,
881,
84,
292,
267,
30131,
331,
24,
18,
24,
18,
21,
261,
2316,
19,
654,
39,
27,
5340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4232,
39,
27,
5340,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
2277,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
565,
533,
3238... |
pragma solidity ^0.5.0;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(a... | Sets the bit at index n to 0 in a | function clearBit16(bytes16 a, uint16 n) private pure returns (bytes16) {
uint128 mask = uint128(2) ** n;
mask = mask ^ uint128(-1);
return a & bytes16(mask);
}
| 5,431,630 | [
1,
2785,
326,
2831,
622,
770,
290,
358,
374,
316,
279,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2424,
5775,
2313,
12,
3890,
2313,
279,
16,
2254,
2313,
290,
13,
3238,
16618,
1135,
261,
3890,
2313,
13,
288,
203,
3639,
2254,
10392,
3066,
273,
2254,
10392,
12,
22,
13,
2826,
290,
31,
203,
3639,
3066,
273,
3066,
3602,
... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view retu... | -------------------- Change the staking address -------------------- | function startChangeStakingPool(address _address) external onlyGovernance {
_timelockStart = now;
_timelockType = 3;
_timelock_address = _address;
}
| 5,721,397 | [
1,
1271,
553,
7576,
326,
384,
6159,
1758,
12146,
6062,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
787,
3043,
510,
6159,
2864,
12,
2867,
389,
2867,
13,
3903,
1338,
43,
1643,
82,
1359,
288,
203,
3639,
389,
8584,
292,
975,
1685,
273,
2037,
31,
203,
3639,
389,
8584,
292,
975,
559,
273,
890,
31,
203,
3639,
389,
8584,
... |
pragma solidity ^0.4.24;
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
con... | F u n c t i o n s/* @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) canMint public {
require(totalSupply_.add(_amount) <= TOTAL_COUPON_SUPPLY);
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amo... | 1,612,941 | [
1,
42,
582,
290,
276,
268,
277,
320,
290,
272,
19,
225,
4284,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
848,
49,
474,
1071,
288,
203,
540,
203,
3639,
2583,
12,
4963,
3088,
1283,
27799,
1289,
24899,
8949,
13,
1648,
399,
19851,
67,
3865,
3079,
673,
67,
13272,
23... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppel... | wallet -> finished request ids list | mapping(address => uint256[]) public walletFinishedRequests;
| 911,503 | [
1,
19177,
317,
6708,
590,
3258,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2254,
5034,
63,
5717,
1071,
9230,
10577,
6421,
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,
-1... |
./full_match/1/0x06903cC35c37f90B4A9ef38B0b037262a327F83B/sources/contracts/Light.sol | code below expects that integer overflows will revert
| pragma solidity ^0.8.15; | 16,586,329 | [
1,
710,
5712,
10999,
716,
3571,
9391,
87,
903,
15226,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3600,
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,
... |
pragma solidity ^0.4.18;
interface token {
function transferFrom(address _from, address _to, uint256 _value) public;
}
contract RetailSale {
address public beneficiary;
uint public actualPrice;
uint public nextPrice;
uint public nextPriceDate = 0;
uint public periodStart;
uint public perio... | * Set the next price @param _price The next eth price in wei @param _priceDate The date in second when the next price start/ | function setNextPrice(uint _price, uint _priceDate)
isOwner
public {
actualPrice = nextPrice;
nextPrice = _price;
nextPriceDate = _priceDate;
}
| 373,622 | [
1,
694,
326,
1024,
6205,
225,
389,
8694,
1021,
1024,
13750,
6205,
316,
732,
77,
225,
389,
8694,
1626,
1021,
1509,
316,
2205,
1347,
326,
1024,
6205,
787,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27674,
5147,
12,
11890,
389,
8694,
16,
2254,
389,
8694,
1626,
13,
203,
565,
353,
5541,
203,
565,
1071,
288,
203,
3639,
3214,
5147,
273,
1024,
5147,
31,
203,
3639,
1024,
5147,
273,
389,
8694,
31,
203,
3639,
1024,
5147,
... |
./partial_match/1/0xA0d1345244C89b5574ba50bd6530d4EBd237e826/sources/DigitalaxLPStaking.sol | @dev Updates the amount of rewards owed for each user before any tokens are moved | function updateReward(
address _user
)
public
{
rewardsContract.updateRewards();
uint256 lpRewards = rewardsContract.LPRewards(lastUpdateTime,
block.timestamp);
if (stakedLPTotal > 0) {
rewardsPer... | 4,298,332 | [
1,
5121,
326,
3844,
434,
283,
6397,
2523,
329,
364,
1517,
729,
1865,
1281,
2430,
854,
10456,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
17631,
1060,
12,
203,
3639,
1758,
389,
1355,
203,
565,
262,
7010,
3639,
1071,
7010,
565,
288,
203,
203,
3639,
283,
6397,
8924,
18,
2725,
17631,
14727,
5621,
203,
3639,
2254,
5034,
12423,
17631,
14727,
273,
283,
6397... |
./full_match/5/0x52cbE67E81C61549Dc7115CE1A26D39Ef39f0793/sources/contracts/IMasStaking1155Upgradeable.sol | * @notice Set time unit. Set as a number of seconds. Could be specified as -- x 1 hours, x 1 days, etc. @dev Only admin/authorized-account can call it. @param _tokenId ERC1155 token Id. @param _timeUnit New time unit./ | function setTimeUnit(uint256 _tokenId, uint256 _timeUnit) external virtual {
if (!_canSetStakeConditions()) {
revert("Not authorized");
}
uint256 _nextConditionId = nextConditionId[_tokenId];
StakingCondition memory condition = _nextConditionId == 0
? default... | 7,047,538 | [
1,
694,
813,
2836,
18,
1000,
487,
279,
1300,
434,
3974,
18,
6647,
14312,
506,
1269,
487,
1493,
619,
225,
404,
7507,
16,
619,
225,
404,
4681,
16,
5527,
18,
4202,
5098,
3981,
19,
8434,
17,
4631,
848,
745,
518,
18,
282,
389,
2316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
11195,
2802,
12,
11890,
5034,
389,
2316,
548,
16,
2254,
5034,
389,
957,
2802,
13,
3903,
5024,
288,
203,
3639,
309,
16051,
67,
4169,
694,
510,
911,
8545,
10756,
288,
203,
5411,
15226,
2932,
1248,
10799,
8863,
203,
3639,
... |
./full_match/4/0xf749B509E209107cee2B013FCC93046F46409EE2/sources/UUUU.sol | * @title VVVV contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ | contract WWWW is ERC721, ERC721Enumerable, Ownable {
using Strings for uint256;
string public PROVENANCE = "";
uint public constant maxTokenPurchase = 15;
uint256 public MAX_TOKENS = 100;
bool public saleIsActive = false;
bool public revealed = false;
uint public presaleMaxMint = 7;
... | 659,437 | [
1,
58,
58,
58,
58,
6835,
225,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
678,
19989,
59,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
288,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
377,
203,
565,
533,
1071,
4629,
58,
1157,
4722,
273,
1408,
31,
203,
203,... |
./partial_match/3/0xb622C2d63b258d9515e87f8051A37b58e87f2CDB/sources/CircleSwapPair.sol | bytes32 private constant PairCodeHash = keccak256(type(InitializableProductProxy).creationCode); it will be changed when deploy because of Swarm bzzrbytes32 private constant PairCodeHash = hex'9e3d176cd7b9504eb5f6b77283eeba7ad886f58601c2a02d5adcb699159904b4';bytes32 private constant PairCodeHash = hex'493e805a012... | library UniswapV2Library {
using SafeMath for uint;
bytes32 private constant PairCodeHash = hex'fedbb088ef498755e9141b5dd7d391cda1cccf1803cda25f76bfc0c3d685474a';
function pairCodeHash() internal pure returns (bytes32) {
return PairCodeHash;
}
function sortTokens(address tokenA, ad... | 5,158,891 | [
1,
3890,
1578,
3238,
5381,
8599,
1085,
2310,
273,
417,
24410,
581,
5034,
12,
723,
12,
4435,
6934,
4133,
3886,
2934,
17169,
1085,
1769,
4202,
518,
903,
506,
3550,
1347,
7286,
2724,
434,
348,
13113,
324,
6378,
86,
3890,
1578,
3238,
5381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
1351,
291,
91,
438,
58,
22,
9313,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1731,
1578,
3238,
5381,
8599,
1085,
2310,
273,
3827,
11,
31835,
9897,
20,
5482,
10241,
7616,
11035,
2539,
73,
29,
3461,
21,
70,
... |
pragma solidity ^0.4.24;
import "./UserEscrow.sol";
import "contracts/NuCypherToken.sol";
import "contracts/MinersEscrow.sol";
import "contracts/PolicyManager.sol";
/**
* @notice Proxy to access main contracts from the UserEscrow contract
* @dev All methods must be stateless because this code will execute by delega... | * @notice Get contract which stores state @dev Assume that `this` is the UserEscrow contract/ | function getStateContract() internal view returns (UserEscrowProxy) {
UserEscrowLibraryLinker linker = UserEscrow(address(this)).linker();
return UserEscrowProxy(linker.target());
}
| 5,474,810 | [
1,
967,
6835,
1492,
9064,
919,
225,
15983,
716,
1375,
2211,
68,
353,
326,
2177,
6412,
492,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8997,
8924,
1435,
2713,
1476,
1135,
261,
1299,
6412,
492,
3886,
13,
288,
203,
3639,
2177,
6412,
492,
9313,
2098,
264,
28058,
273,
2177,
6412,
492,
12,
2867,
12,
2211,
13,
2934,
1232,
264,
5621,
203,
3639,
327,
2177,
641... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.4.9 <0.9.0;
library HederaResponseCodes {
// response codes
int32 public constant OK = 0; // The transaction passed the precheck validations.
int32 public constant INVALID_TRANSACTION = 1; // For any error not handled by specific error codes liste... | The API is not currently supported
| int32 public constant NOT_SUPPORTED = 13; | 14,068,795 | [
1,
1986,
1491,
353,
486,
4551,
3260,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
1578,
1071,
5381,
4269,
67,
21134,
273,
5958,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 _a, uint256 _b) internal pure returns (uint256) {
if (_a == 0) {
return 0;
}
uint256 c = _a * _b;
assert(c / _a == _b);
return c;
}
... | * @dev Get the balance of the specified `_owner` address. @return balance The token balance of the given address./ | function balanceOf(address _owner) public view returns (uint256 balance) {
return dataStorage.balances(_owner);
}
| 12,954,027 | [
1,
967,
326,
11013,
434,
326,
1269,
1375,
67,
8443,
68,
1758,
18,
327,
11013,
1021,
1147,
11013,
434,
326,
864,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
11013,
951,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
11890,
5034,
11013,
13,
288,
203,
202,
202,
2463,
501,
3245,
18,
70,
26488,
24899,
8443,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0xA13E43d299dd822677f3Cc62d3E77b84DC3665c3/sources/project_/contracts/base/MetawinMinterManager.sol | * @dev Contract defining Metawin NFT minting environments Rules: Max 10 mints per transaction (editable by the admin) Price: Dutch auction The ContractStates module facilitates setting time-based state transitions. With {mint} permitted only during state "1", minting can be time-bound and divided in... | contract MetawinMinterManager is Roles, MintingEvents, ReentrancyGuard {
using Clones for address;
mapping(uint8 => MetawinMinterProxy) public minterProxy;
MetawinMinterProxy private immutable _MINTER_IMPLEMENTATION;
event NewMinter(address indexed minterAddress, uint8 indexed minterId, uint64[2] ind... | 1,942,857 | [
1,
8924,
9364,
6565,
8082,
423,
4464,
312,
474,
310,
15900,
15718,
30,
377,
4238,
1728,
312,
28142,
1534,
2492,
261,
19653,
635,
326,
3981,
13,
377,
20137,
30,
463,
322,
343,
279,
4062,
377,
1021,
13456,
7629,
1605,
5853,
330,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6565,
8082,
49,
2761,
1318,
353,
19576,
16,
490,
474,
310,
3783,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
1450,
3905,
5322,
364,
1758,
31,
203,
203,
565,
2874,
12,
11890,
28,
516,
6565,
8082,
49,
2761,
3886,
13,
... |
./full_match/44787/0xaBbefF52D9F1cE1d1Cd10bEfC7e0F7DE0AdEb7C7/sources/contracts/StarFarm.sol | Deposit LP tokens to MasterChef for STAR allocation.require (_pid != 0, 'withdraw STAR by unstaking');if (_pid == 0) require(userNFTs[_msgSender()].length == 0, "nft user"); | function deposit(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_msgSender()];
updatePool(_pid);
(uint256 _selfGain, uint256 _parentGain) = starNode.nodeGain();
uint256 _useramount = user.amount.sub(user... | 13,269,042 | [
1,
758,
1724,
511,
52,
2430,
358,
13453,
39,
580,
74,
364,
21807,
13481,
18,
6528,
261,
67,
6610,
480,
374,
16,
296,
1918,
9446,
21807,
635,
640,
334,
6159,
8284,
430,
261,
67,
6610,
422,
374,
13,
2583,
12,
1355,
50,
4464,
87,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
67,
... |
pragma solidity ^0.4.25;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
... | @notice Retrieves the bond amount of a darknode in 10^-18 REN. @param _darknodeID The ID of the darknode to retrieve the bond for. | function getDarknodeBond(address _darknodeID) external view returns (uint256) {
return store.darknodeBond(_darknodeID);
}
| 13,800 | [
1,
6960,
326,
8427,
3844,
434,
279,
23433,
2159,
316,
1728,
66,
17,
2643,
534,
1157,
18,
225,
389,
25045,
2159,
734,
1021,
1599,
434,
326,
23433,
2159,
358,
4614,
326,
8427,
364,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2343,
1313,
2159,
9807,
12,
2867,
389,
25045,
2159,
734,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
1707,
18,
25045,
2159,
9807,
24899,
25045,
2159,
734,
1769,
203,
565,
289,
203,
203,
2,
-100,
-10... |
./full_match/11155111/0xe9BF8462eA32893661bA3Ab1739ED3e0e68856f8/sources/src/lending/Lender.sol | solhint-disable-line not-rely-on-time
| lastReportTimestamp = block.timestamp; | 3,794,524 | [
1,
18281,
11317,
17,
8394,
17,
1369,
486,
17,
266,
715,
17,
265,
17,
957,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
1142,
4820,
4921,
273,
1203,
18,
5508,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.13;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "./interfaces/IAccounts.sol";
import "../common/Initializable.sol";
import "../common/interfaces/ICeloVersionedContract.sol";
import "../common/Signatures.sol";
... | * @notice Setter for the wallet address for an account @param walletAddress The wallet address to set for the account @param v The recovery id of the incoming ECDSA signature. @param r Output value r of the ECDSA signature. @param s Output value s of the ECDSA signature. @dev Wallet address can be zero. This means that... | function setWalletAddress(address walletAddress, uint8 v, bytes32 r, bytes32 s) public {
require(isAccount(msg.sender), "Unknown account");
if (!(walletAddress == msg.sender || walletAddress == address(0x0))) {
address signer = Signatures.getSignerOfAddress(msg.sender, v, r, s);
require(signer == ... | 1,012,271 | [
1,
8465,
364,
326,
9230,
1758,
364,
392,
2236,
225,
9230,
1887,
1021,
9230,
1758,
358,
444,
364,
326,
2236,
225,
331,
1021,
11044,
612,
434,
326,
6935,
7773,
19748,
3372,
18,
225,
436,
3633,
460,
436,
434,
326,
7773,
19748,
3372,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
444,
16936,
1887,
12,
2867,
9230,
1887,
16,
2254,
28,
331,
16,
1731,
1578,
436,
16,
1731,
1578,
272,
13,
1071,
288,
203,
565,
2583,
12,
291,
3032,
12,
3576,
18,
15330,
3631,
315,
4874,
2236,
8863,
203,
565,
309,
16051... |
pragma solidity 0.4.21;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets ... | * @dev to get the time bonus Percentage based on the no. of sale day(s) @param _days no of sale day to calculate the time bonus/ | function getTimeBonusPercent(uint _days) private pure returns (uint) {
if (_days <= 20)
return 50;
return 0;
}
| 993,028 | [
1,
869,
336,
326,
813,
324,
22889,
21198,
410,
2511,
603,
326,
1158,
18,
434,
272,
5349,
2548,
12,
87,
13,
225,
389,
9810,
1158,
434,
272,
5349,
2548,
358,
4604,
326,
813,
324,
22889,
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,
1,
0,
0,
0,
0,
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,
6135,
38,
22889,
8410,
12,
11890,
389,
9810,
13,
3238,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
309,
261,
67,
9810,
1648,
4200,
13,
203,
5411,
327,
6437,
31,
203,
3639,
327,
374,
31,
203,
565,
289,
203,
203,
2,
... |
./partial_match/56/0xb50a7dBCef6BDA5a35e27EdC9334f87736e142dB/sources/MasterChefV2.sol | Deposit LP tokens to MasterChef for PEGA allocation. | function deposit(uint256 _pid, uint256 _amount) public nonReentrant {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accPegaPerShare).div(1e12).sub... | 11,242,776 | [
1,
758,
1724,
511,
52,
2430,
358,
13453,
39,
580,
74,
364,
16628,
25043,
13481,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
1661,
426,
8230,
970,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
... |
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) i... | * @title Basic token @dev Basic version of StandardToken, with no allowances./ | contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) balances;
function transfer(address _to, uint256 _value) public returns (bool) {
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
emit Transfer(msg.sender, _... | 241,008 | [
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,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
2874,
12,
2867,
516,
2254,
5034,
13,
324,
26488,
31,
203,
203,
225,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5... |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: Apache-2.0
import "../include/IERC165.sol";
import "../include/IERC721.sol";
import "../include/IERC721Metadata.sol";
import "../include/IERC721TokenReceiver.sol";
import "../lib/Address.sol";
abstract contract ERC721 is IERC165, IERC721, IERC721Metadata {
usi... | ensure everything is ok before call it | function _addTokenTo(address to, uint256 tokenId) internal {
uint256[] storage tokens = ownerTokens[to];
tokenIndexs[tokenId] = tokens.length;
tokens.push(tokenId);
tokenOwners[tokenId] = to;
}
| 15,841,606 | [
1,
15735,
7756,
353,
1529,
1865,
745,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1289,
1345,
774,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
288,
203,
3639,
2254,
5034,
8526,
2502,
2430,
273,
3410,
5157,
63,
869,
15533,
203,
3639,
1147,
1016,
87,
63,
2316,
548,
65,
273,
2430,
18,
246... |
./full_match/1/0xf607014406bc3Fa7aAB224a85A0318b4556e9C28/sources/browser/CryptographInitiator.sol | The third party cut out of 100k
| uint256 public thirdPartyCut; | 3,151,986 | [
1,
1986,
12126,
18285,
6391,
596,
434,
2130,
79,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
12126,
17619,
15812,
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,
-10... |
./full_match/137/0xdF848a8eE0c36d8A44cfC23270E4342E3802c040/sources/contracts/Locker.sol | The ownership share is minted to the creator. It should be noted that anyone can unlock the lock if they own the share. | _mint(msg.sender, lockId);
| 4,676,556 | [
1,
1986,
23178,
7433,
353,
312,
474,
329,
358,
326,
11784,
18,
2597,
1410,
506,
486,
329,
716,
1281,
476,
848,
7186,
326,
2176,
309,
2898,
4953,
326,
7433,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
2176,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0xc6ceDdA94aa5938f8377e0D1E34B22fE01b0d575/sources/inariHelper.sol | **** COMPOUND/CREAM | function toCompound(ICompoundHelper cToken, uint256 underlyingAmount) external view returns (uint256 result) {
result = underlyingAmount / cToken.exchangeRateStored() / 10**18;
}
| 4,860,908 | [
1,
4208,
2419,
5240,
19,
5458,
2192,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
16835,
12,
45,
16835,
2276,
276,
1345,
16,
2254,
5034,
6808,
6275,
13,
3903,
1476,
1135,
261,
11890,
5034,
563,
13,
288,
7010,
3639,
563,
273,
6808,
6275,
225,
342,
276,
1345,
18,
16641,
4727,
18005,
1435,
342,
172... |
/**
*Submitted for verification at Etherscan.io on 2022-03-09
*/
// SPDX-License-Identifier: UNLICENSED
// File: contracts/abstract/FundDistribution.sol
pragma solidity 0.8.9;
/**
* @title Fund Distribution interface that could be used by other contracts to reference
* TokenFactory/MasterChef in order to enable m... | * @dev Claim reward for current wallet from designated Liquidity Pool/ | function harvest(IERC20 _lpAddress) public {
withdraw(_lpAddress, 0);
}
| 14,983,733 | [
1,
9762,
19890,
364,
783,
9230,
628,
25264,
511,
18988,
24237,
8828,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17895,
26923,
12,
45,
654,
39,
3462,
389,
9953,
1887,
13,
1071,
288,
203,
3639,
598,
9446,
24899,
9953,
1887,
16,
374,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0x2B4562D92845e05b8Db39C82E887b7Ce71b1e4f5/sources/ERC721/LNKDNS.sol | 披露你的秘密竞拍出价。 对于所有正确披露的无效出价以及除最高出价以外的所有出价,你都将获得退款。 出价未能正确披露 不返还订金 | function reveal(
address _bidder,
uint[] memory _values,
bool[] memory _fakes,
bytes32[] memory _secrets
) public onlyAfter(biddingEnd) onlyBefore(revealEnd)
onlyWhitelisted nonReentrant returns(bool){
uint length = bids[_bidder].length;
require(_values.leng... | 16,278,326 | [
1,
167,
237,
109,
170,
255,
115,
165,
126,
259,
168,
253,
231,
168,
105,
251,
166,
112,
233,
168,
109,
257,
167,
238,
240,
166,
234,
123,
165,
124,
120,
164,
227,
229,
225,
166,
112,
122,
165,
123,
241,
167,
236,
227,
167,
255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
24293,
12,
203,
3639,
1758,
389,
19773,
765,
16,
203,
3639,
2254,
8526,
3778,
389,
2372,
16,
203,
3639,
1426,
8526,
3778,
389,
507,
79,
281,
16,
203,
3639,
1731,
1578,
8526,
3778,
389,
5875,
87,
203,
565,
262,
10... |
./partial_match/1/0x149001FEd7EDC44c5A7aE7e4281Ad64aF7A02f01/sources/contracts/core/abstract/PendleForgeBase.sol | Can only be called by the respective XYT contract, before transferring XYTs/ | function updateDueInterests(
address _underlyingAsset,
uint256 _expiry,
address _user
) external override onlyXYT(_underlyingAsset, _expiry) nonReentrant {
checkNotPaused(_underlyingAsset, _expiry);
PendleTokens memory tokens = _getTokens(_underlyingAsset, _expiry);
... | 3,893,887 | [
1,
2568,
1338,
506,
2566,
635,
326,
17613,
18774,
56,
6835,
16,
1865,
906,
74,
20245,
18774,
17218,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
30023,
2465,
25563,
12,
203,
3639,
1758,
389,
9341,
6291,
6672,
16,
203,
3639,
2254,
5034,
389,
22409,
16,
203,
3639,
1758,
389,
1355,
203,
565,
262,
3903,
3849,
1338,
8546,
56,
24899,
9341,
6291,
6672,
16,
389,
2... |
/*
-----------------------------------------------------------------
FILE INFORMATION
-----------------------------------------------------------------
file: Owned.sol
version: 1.1
author: Anton Jurisevic
Dominic Romanowski
date: 2018-2-26
----------------------------------------------... | * @notice Set whether the specified can issue nomins or not./ | function setIssuer(address account, bool value)
external
optionalProxy_onlyOwner
{
isIssuer[account] = value;
emitIssuersUpdated(account, value);
}
| 2,140,172 | [
1,
694,
2856,
326,
1269,
848,
5672,
12457,
2679,
578,
486,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
16667,
12,
2867,
2236,
16,
1426,
460,
13,
203,
3639,
3903,
203,
3639,
3129,
3886,
67,
3700,
5541,
203,
565,
288,
203,
3639,
353,
16667,
63,
4631,
65,
273,
460,
31,
203,
3639,
3626,
7568,
27307,
7381,
12,
4631,
16... |
pragma solidity ^0.4.18;
/**
* @title Owned contract with safe ownership pass.
*
* Note: all the non constant functions return false instead of throwing in case if state change
* didn't happen yet.
*/
contract Owned {
/**
* Contract owner address
*/
address public contractOwner;
/**
* ... | TODO need additional check: not clear check of country limit: | function _isValidDepositCountry(uint _balance, uint _currentHolderCount, uint _maxHolderNumber) private pure returns (bool) {
return !(_balance == 0 && _currentHolderCount == _maxHolderNumber);
}
| 1,265,499 | [
1,
6241,
1608,
3312,
866,
30,
486,
2424,
866,
434,
5251,
1800,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
26810,
758,
1724,
8142,
12,
11890,
389,
12296,
16,
2254,
389,
2972,
6064,
1380,
16,
2254,
389,
1896,
6064,
1854,
13,
3238,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
401,
24899,
12296,
422,
374,
597,
389,
297... |
pragma solidity ^0.4.25;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function balanceOf(address _owner) external view returns (uint256);
function allowance(address _owner, address spender) external view returns (uint256);
function transfer(... | Subtract from the sender's allowance
| allowed[account][msg.sender] -= value; | 12,698,071 | [
1,
27904,
628,
326,
5793,
1807,
1699,
1359,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
2935,
63,
4631,
6362,
3576,
18,
15330,
65,
3947,
460,
31,
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,
-1... |
./full_match/61/0xfF84678ebEa9d981f3D507A4d456feA261E6D262/sources/contracts/Contract.sol | pool name address of sell token address of buy token total amount of token0 total amount of token1 the timestamp in seconds the pool will open the timestamp in seconds the pool will be closed the delay timestamp in seconds when buyers can claim after pool filled whitelist merkle root | struct CreateReq {
string name;
address token0;
address token1;
uint256 amountTotal0;
uint256 amountTotal1;
uint48 openAt;
uint48 closeAt;
uint48 claimAt;
uint256 maxAmount1PerWallet;
bytes32 whitelistRoot;
}
| 13,229,370 | [
1,
6011,
508,
1758,
434,
357,
80,
1147,
1758,
434,
30143,
1147,
2078,
3844,
434,
1147,
20,
2078,
3844,
434,
1147,
21,
326,
2858,
316,
3974,
326,
2845,
903,
1696,
326,
2858,
316,
3974,
326,
2845,
903,
506,
4375,
326,
4624,
2858,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
1788,
6113,
288,
203,
3639,
533,
508,
31,
203,
3639,
1758,
1147,
20,
31,
203,
3639,
1758,
1147,
21,
31,
203,
3639,
2254,
5034,
3844,
5269,
20,
31,
203,
3639,
2254,
5034,
3844,
5269,
21,
31,
203,
3639,
2254,
8875,
169... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);
// getRoundData and latestRoundData should both raise... | * @notice Allows the safe transfer of ETH @param _to account to transfer ETH @param _value amount of ETH/ | function safeTransferETH(address _to, uint256 _value) internal {
require(success, "ETHVaultHandler::safeTransferETH: ETH transfer failed");
}
| 172,372 | [
1,
19132,
326,
4183,
7412,
434,
512,
2455,
225,
389,
869,
2236,
358,
7412,
512,
2455,
225,
389,
1132,
3844,
434,
512,
2455,
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,
225,
445,
4183,
5912,
1584,
44,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
2713,
288,
203,
565,
2583,
12,
4768,
16,
315,
1584,
44,
12003,
1503,
2866,
4626,
5912,
1584,
44,
30,
512,
2455,
7412,
2535,
8863,
203,
225,
289,... |
./full_match/4/0x8D91e9A6f34169E04e49a63E0215a239c98f6Baf/sources/src/PriceFeedConsumer.sol | * @title The PriceConsumerV3 contract @notice Acontract that returns latest price from Chainlink Price Feeds/ | contract PriceFeedConsumer {
AggregatorV3Interface internal immutable priceFeed;
pragma solidity ^0.8.7;
constructor(address _priceFeed) {
priceFeed = AggregatorV3Interface(_priceFeed);
}
function getLatestPrice() public view returns (int256) {
(
uint80 roundID,
... | 12,297,643 | [
1,
1986,
20137,
5869,
58,
23,
6835,
225,
432,
16351,
716,
1135,
4891,
6205,
628,
7824,
1232,
20137,
5782,
9765,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
20137,
8141,
5869,
288,
203,
565,
10594,
639,
58,
23,
1358,
2713,
11732,
6205,
8141,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
27,
31,
203,
565,
3885,
12,
2867,
389,
8694,
8141,
13,
288,
203,
3639,
6205,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.3;
import "./Storage.sol";
// This library is an assembly optimized storage library which is designed
// to track timestamp history in a struct which uses hash derived pointers.
// WARNING - Developers using it should not access the underlying storage
// dir... | The index we push to, note - we use this pattern to not branch the assembly | uint256 index = length;
| 5,506,027 | [
1,
1986,
770,
732,
1817,
358,
16,
4721,
300,
732,
999,
333,
1936,
358,
486,
3803,
326,
19931,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2254,
5034,
770,
273,
769,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2020-10-17
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because prog... | This class implements IValueLiquidPool to support Value Vault's strategies Will implement UniswapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens for some rare cases which takes fee for token transfer (eg. Dego.finance) | contract UniswapRouterSupportingFeeOnTransferTokens is IValueLiquidPool, IUniswapRouter {
using SafeMath for uint256;
address public governance;
IUniswapRouter public unirouter = IUniswapRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uint256 public constant FEE_DENOMINATOR = 10000;
constru... | 885,778 | [
1,
2503,
667,
4792,
467,
620,
48,
18988,
350,
2864,
358,
2865,
1445,
17329,
1807,
20417,
9980,
2348,
1351,
291,
91,
438,
8259,
18,
22270,
14332,
5157,
1290,
5157,
6289,
310,
14667,
1398,
5912,
5157,
364,
2690,
25671,
6088,
1492,
5530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1351,
291,
91,
438,
8259,
6289,
310,
14667,
1398,
5912,
5157,
353,
467,
620,
48,
18988,
350,
2864,
16,
467,
984,
291,
91,
438,
8259,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1758,
1071,
314,
... |
./full_match/5/0x21517abae577dDC59Ac6945C501F36AF085d97A7/sources/contracts/CrowdFunding.sol | we want to get a campaign from the storage named item and put it in campaign i .
| Campaign storage item = campaigns[i]; | 1,856,076 | [
1,
1814,
2545,
358,
336,
279,
8965,
628,
326,
2502,
4141,
761,
471,
1378,
518,
316,
8965,
277,
263,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
13432,
2502,
761,
273,
8965,
87,
63,
77,
15533,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.18;
import './deps/MintableToken.sol';
import './deps/ERC20Interface.sol';
import './deps/Ownable.sol';
import './deps/ApproveAndCallFallBack.sol';
contract Fr8NetworkToken is ERC20Interface, Ownable {
using SafeMath for uint;
// standard ERC20 stuff
string public symbol;
string public ... | * Transfer `tokens` from the `from` account to the `to` account The calling account must already have sufficient tokens approve(...)-d for spending from the `from` account and - From account must have sufficient balance to transfer - Spender must have sufficient allowance to transfer - 0 value transfers are allowed/ | function transferFrom(address from, address to, uint tokens) public returns (bool success) {
balances[from] = balances[from].sub(tokens);
allowed[from][msg.sender] = allowed[from][msg.sender].sub(tokens);
balances[to] = balances[to].add(tokens);
Transfer(from, to, tokens);
return true;
}
| 13,017,472 | [
1,
5912,
1375,
7860,
68,
628,
326,
1375,
2080,
68,
2236,
358,
326,
1375,
869,
68,
2236,
1021,
4440,
2236,
1297,
1818,
1240,
18662,
2430,
6617,
537,
5825,
24950,
72,
364,
272,
9561,
628,
326,
1375,
2080,
68,
2236,
471,
300,
6338,
223... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
2430,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
324,
26488,
63,
2080,
65,
273,
324,
26488,
63,
2080,
8009,
1717,
12,
7860,
1769,
203,
565,
2935,
63,
2080,
... |
./partial_match/1/0x8d371f713A9126C89211F1006E38b9e2665c140A/sources/LAIKAGF.sol | Create a uniswap pair for this new token exclude from paying fees or having max transaction amount | constructor(address _owner) ERC20("LAIKA GF", "LAIKA GF") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
... | 4,067,503 | [
1,
1684,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3885,
12,
2867,
389,
8443,
13,
4232,
39,
3462,
2932,
2534,
45,
47,
37,
611,
42,
3113,
315,
2534,
45,
47,
37,
611,
42,
7923,
288,
203,
377,
202,
45,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
2... |
// Author: Alex Roan
pragma solidity ^0.5.5;
import "@openzeppelin/contracts/token/ERC721/ERC721Enumerable.sol";
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/SafeCast.sol";
// TennisPlayer ERC721 Token
contract Tennis... | List of all players | Player[] public players;
| 12,573,212 | [
1,
682,
434,
777,
18115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
12148,
8526,
1071,
18115,
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.8.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
/* Internal Imports */
import ... | All intents in a block have been executed. The state transition disputer Asset and strategy registry Pending queues All the blocks (prepared and/or executed). Track pending withdraws arriving from L2 then done on L1 across 2 phases. A separate mapping is used for each phase: (1) pendingWithdrawCommits: commitBlock() -... | contract RollupChain is Ownable, Pausable {
using SafeERC20 for IERC20;
uint32 public constant BLOCK_EXEC_COUNT_DONE = 2**32 - 1;
TransitionDisputer public immutable transitionDisputer;
Registry public immutable registry;
PriorityOperations public immutable priorityOperations;
dt.Block[] publ... | 15,856,699 | [
1,
1595,
509,
4877,
316,
279,
1203,
1240,
2118,
7120,
18,
1021,
919,
6007,
1015,
458,
264,
10494,
471,
6252,
4023,
16034,
11897,
4826,
326,
4398,
261,
9366,
72,
471,
19,
280,
7120,
2934,
11065,
4634,
598,
9446,
87,
2454,
9288,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
31291,
416,
3893,
353,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
2254,
1578,
1071,
5381,
14073,
67,
15271,
67,
7240,
67,
26875,
273,
576,
636,
157... |
./full_match/4/0xc91810B7F984213857717fd1894be374f982bbc3/sources/sampleNFT.sol | Adding Furniture Token Coin | contract PicpleRewardToken is ERC20PresetMinterPauser {
using Counters for Counters.Counter;
Counters.Counter private _tokenCounter;
mapping(string => uint256) tokenID;
pragma solidity ^0.8.0;
constructor() ERC20PresetMinterPauser("PicpleRewardToken", "PRT"){}
function addToken(uint256 init_amount... | 12,280,956 | [
1,
13962,
478,
321,
305,
594,
3155,
28932,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
453,
335,
1802,
17631,
1060,
1345,
353,
4232,
39,
3462,
18385,
49,
2761,
16507,
1355,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
2316,
4789,
31,
203,
203,
565,
28... |
pragma solidity ^0.5.0;
contract Game {
struct Player{
address payable addressOfPlayer;
uint8 serialNo;
bytes32[100] choiceHash;
uint8[100] choice;
uint8 bet;
}
Player public player1;
Player public player2;
bool bothHaveLockedChoices = false;
uint8 cou... | Both have to register and then only play | countForLockingChoice = 0;
| 12,923,662 | [
1,
20240,
1240,
358,
1744,
471,
1508,
1338,
6599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1056,
1290,
2531,
310,
10538,
273,
374,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
file: Base.sol
ver: 0.2.1
updated:18-Nov-2016
author: Darryl Morris (o0ragman0o)
email: o0ragman0o AT gmail.com
An basic contract furnishing inheriting contracts with ownership, reentry
protection and safe sending functions.
This software is distributed in the hope that it will be useful,
but WITH... | Returns the link of a node `n` in direction `d`. | function step(CLL storage self, int n, bool d)
internal constant returns (int)
{
return self.cll[n][d];
}
| 1,055,317 | [
1,
1356,
326,
1692,
434,
279,
756,
1375,
82,
68,
316,
4068,
1375,
72,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2235,
12,
39,
4503,
2502,
365,
16,
509,
290,
16,
1426,
302,
13,
203,
3639,
2713,
225,
5381,
1135,
261,
474,
13,
203,
565,
288,
203,
3639,
327,
365,
18,
830,
80,
63,
82,
6362,
72,
15533,
203,
565,
289,
203,
203,
2,... |
/**
*Submitted for verification at Etherscan.io on 2020-03-04
*/
pragma solidity 0.5.10;
/**
* Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*/
library SafeMath {
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart t... | * @title Pausable token ERC20 modified with pausable transfers./ | contract ERC20Pausable is ERC20, Pausable {
function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
return super.transfer(to, value);
}
function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
return super.transferFrom(f... | 5,467,839 | [
1,
16507,
16665,
1147,
225,
4232,
39,
3462,
4358,
598,
6790,
16665,
29375,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
16507,
16665,
353,
4232,
39,
3462,
16,
21800,
16665,
288,
203,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2240,
18,
13866,
12,... |
pragma solidity ^0.5.16;
//Slightly modified SafeMath library - includes a min and max function, removes useless div function
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
function add(int256 a... | * @dev Updates balance for from and to on the current block number via doTransfer @param checkpoints gets the mapping for the balances[owner] @param _value is the new balance/ | function updateBalanceAtNow(TellorStorage.Checkpoint[] storage checkpoints, uint256 _value) public {
if (checkpoints.length == 0 || checkpoints[checkpoints.length - 1].fromBlock != block.number) {
checkpoints.push(TellorStorage.Checkpoint({
fromBlock : uint128(block.number),
... | 1,434,061 | [
1,
5121,
11013,
364,
628,
471,
358,
603,
326,
783,
1203,
1300,
3970,
741,
5912,
225,
26402,
5571,
326,
2874,
364,
326,
324,
26488,
63,
8443,
65,
225,
389,
1132,
353,
326,
394,
11013,
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,
1089,
13937,
861,
8674,
12,
21009,
280,
3245,
18,
14431,
8526,
2502,
26402,
16,
2254,
5034,
389,
1132,
13,
1071,
288,
203,
3639,
309,
261,
1893,
4139,
18,
2469,
422,
374,
747,
26402,
63,
1893,
4139,
18,
2469,
300,
404,
... |
./full_match/1/0x3362229de7d2C1AF21BCa907626CE9ED84AE2928/sources/contracts/common/ERC2981.sol | * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. Royalty ... | abstract contract ERC2981 is IERC2981, ERC165, Math {
struct RoyaltyInfo {
address receiver;
uint96 royaltyFraction;
}
RoyaltyInfo private _defaultRoyaltyInfo;
mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;
function supportsInterface(bytes4 interfaceId) public view vir... | 9,635,898 | [
1,
13621,
434,
326,
423,
4464,
534,
13372,
15006,
8263,
16,
279,
4529,
1235,
4031,
358,
4614,
721,
93,
15006,
5184,
1779,
18,
534,
13372,
15006,
1779,
848,
506,
1269,
25654,
364,
777,
1147,
3258,
3970,
288,
67,
542,
1868,
54,
13372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
5540,
11861,
353,
467,
654,
39,
5540,
11861,
16,
4232,
39,
28275,
16,
2361,
288,
203,
203,
565,
1958,
534,
13372,
15006,
966,
288,
203,
3639,
1758,
5971,
31,
203,
3639,
2254,
10525,
721,
93,
15006,
13724,
3... |
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | @dev This is a function that will reenter the current contract. @return True if successful. | function exploitive()
external
returns (bool)
{
return this.guarded(true);
}
| 15,804,028 | [
1,
2503,
353,
279,
445,
716,
903,
283,
2328,
326,
783,
6835,
18,
327,
1053,
309,
6873,
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,
... | [
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,
15233,
3720,
1435,
203,
3639,
3903,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
333,
18,
6891,
17212,
12,
3767,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
r... | ******************/ Owner Function **/******************/ @dev Update Contract Configuration */ | function ownerUpdateToken(ERC20 _token, address _wallet) public onlyOwner{
token = _token;
wallet = _wallet;
}
| 10,810,211 | [
1,
19,
16837,
4284,
368,
225,
2315,
13456,
4659,
225,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1891,
1345,
12,
654,
39,
3462,
389,
2316,
16,
1758,
389,
19177,
13,
1071,
1338,
5541,
95,
203,
3639,
1147,
273,
389,
2316,
31,
203,
3639,
9230,
273,
389,
19177,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
/**
* Copyright 2017-2021, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
import "../PriceFeeds.sol";
/**
* @title Price Feeds Local contract.
*
* @notice This contract code comes from bZx. bZx is a protocol for tokenized
* margin trading and len... | Hack for testnet; only returns price in rBTC. | } else if (destToken == protocolTokenAddress) {
| 5,537,644 | [
1,
44,
484,
364,
1842,
2758,
31,
1338,
1135,
6205,
316,
436,
38,
15988,
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,
5411,
289,
469,
309,
261,
10488,
1345,
422,
1771,
1345,
1887,
13,
288,
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,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-12-15
*/
// SPDX-License-Identifier: No License (None)
pragma solidity ^0.8.0;
interface IBEP20TokenCloned {
// initialize cloned token just for BEP20TokenCloned
function initialize(address newOwner, string calldata name, string calldata symbol, uint8 d... | Only owner can manually unfreeze contract | function unfreeze() external onlyOwner onlySetup {
frozen = false;
emit Frozen(false);
}
| 2,141,372 | [
1,
3386,
3410,
848,
10036,
640,
29631,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
640,
29631,
1435,
3903,
1338,
5541,
1338,
7365,
288,
203,
3639,
12810,
273,
629,
31,
203,
3639,
3626,
478,
9808,
12,
5743,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.18;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
... | @return tokenAddresses Underlying token addresses | function tokenAddresses() external view returns (address[]){
address[] memory tokenAddresses = new address[](tokens.length);
for (uint8 i = 0; i < tokens.length; i++) {
tokenAddresses[i] = tokens[i].addr;
}
return tokenAddresses;
}
| 10,974,428 | [
1,
2463,
1147,
7148,
21140,
6291,
1147,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
7148,
1435,
3903,
1476,
1135,
261,
2867,
63,
5717,
95,
203,
3639,
1758,
8526,
3778,
1147,
7148,
273,
394,
1758,
8526,
12,
7860,
18,
2469,
1769,
203,
3639,
364,
261,
11890,
28,
277,
273,
374,
31,
277,
411,
2430,
... |
./partial_match/1/0x929aE527A74a0C6927b46A9747190FfE2c38D0a1/sources/BANKOFMEMES.sol | set as Marketing wallet
| marketingWallet = address(0xd5c9Ad8bf1D30AFCF7fB5a5954FDcd6368c1481B); | 16,054,851 | [
1,
542,
487,
6622,
21747,
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,
377,
202,
3355,
21747,
16936,
273,
1758,
12,
20,
7669,
25,
71,
29,
1871,
28,
17156,
21,
40,
5082,
37,
4488,
42,
27,
74,
38,
25,
69,
6162,
6564,
16894,
4315,
4449,
9470,
71,
3461,
11861,
38,
1769,
225,
2,
-100,
-100,
-100,
-10... |
pragma solidity ^0.6.0;
import "../interface/ITokenDelegate.sol";
import "./STransferData.sol";
import "../TokenStorage.sol";
import "../TokenProxy.sol";
/**
* @title Base Token Delegate
* @dev Base Token Delegate
*
* @author Cyril Lapinte - <cyril.lapinte@openfiz.com>
* SPDX-License-Identifier: MIT
*
* Error... | * @dev decrease approval/ | function decreaseApproval(address _sender, address _spender, uint _subtractedValue)
virtual override public returns (bool)
{
TokenData storage token = tokens[msg.sender];
uint oldValue = token.allowances[_sender][_spender];
if (_subtractedValue > oldValue) {
token.allowances[_sender][_spender]... | 12,773,578 | [
1,
323,
11908,
23556,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
20467,
23461,
12,
2867,
389,
15330,
16,
1758,
389,
87,
1302,
264,
16,
2254,
389,
1717,
1575,
329,
620,
13,
203,
565,
5024,
3849,
1071,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
3155,
751,
2502,
1147,
273,
2430,
63... |