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 |
|---|---|---|---|---|---|---|
// CryptoRabbit Source code
pragma solidity ^0.4.20;
/**
*
* @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
* @author cuilichen
*/
contract ERC721 {
// Required methods
function totalSupply() public view returns (uint total);
function balanceOf(address _owner)... | @dev Cancels an auction when the contract is paused. Only the owner may do this, and NFTs are returned to the seller. This should only be used in emergencies. @param _tokenId - ID of the NFT on auction to cancel. | function cancelAuctionByMaster(uint _tokenId)
external onlyCOO whenPaused
{
_cancelAuction(_tokenId);
}
| 2,515,423 | [
1,
6691,
87,
392,
279,
4062,
1347,
326,
6835,
353,
17781,
18,
225,
5098,
326,
3410,
2026,
741,
333,
16,
471,
423,
4464,
87,
854,
2106,
358,
225,
326,
29804,
18,
1220,
1410,
1338,
506,
1399,
316,
801,
18639,
3209,
18,
225,
389,
231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3755,
37,
4062,
858,
7786,
12,
11890,
389,
2316,
548,
13,
203,
3639,
3903,
1338,
3865,
51,
1347,
28590,
203,
565,
288,
203,
3639,
389,
10996,
37,
4062,
24899,
2316,
548,
1769,
203,
565,
289,
203,
202,
203,
377,
203,
2... |
/**
*Submitted for verification at Etherscan.io on 2019-12-03
*/
pragma solidity 0.5.13;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in suc... | inject UNINIT LOCAL/STATE VAR
| bool compressed ; | 1,819,093 | [
1,
22170,
5019,
12919,
15234,
19,
7998,
8350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1426,
8968,
274,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/3/0x16A43f5829A080F1A87D2afA2716E0539fd35846/sources/Celan.sol | Direct referer commission event | event DirectReferCommission(address indexed from, address indexed to, uint value,uint time);
| 5,288,247 | [
1,
5368,
18068,
1543,
19710,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
9908,
426,
586,
799,
3951,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
460,
16,
11890,
813,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/137/0x1e3fCa63502a7AaA6841788301Eae4AC67CF691D/sources/scripts/Learning_Projects/CheeseTouch.sol | * @dev See {IERC721-transferFrom}./solhint-disable-next-line max-line-length | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "CheeseTouch: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
| 4,755,536 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
13866,
1265,
5496,
19,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
943,
17,
1369,
17,
2469,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
5024,
3849,
288,
203,
3639,
2583,
24899,
291,
31639,
1162,
5541,
24899,
3576,
12021,
9334,
1147,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | * @dev Collection of functions related to the address type/ | library Address {
}
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize... | 15,389,813 | [
1,
2532,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
97,
203,
225,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
203,
565,
2254,
5034,
963,
31,
203,
565,
19931,
288,
203,
1377,
963,
519,
1110,
7000,
554,
12,
4631,
13,
203,
... |
//Address: 0xA4F902f57Fd9FFcedF4dE6cF7EbC86ea9F76B5d1
//Contract name: EtheraffleICO
//Balance: 7.348300000000000094 Ether
//Verification Date: 3/7/2018
//Transacion Count: 28
// CODE STARTS HERE
pragma solidity^0.4.15;
contract EtheraffleLOT {
function mint(address _to, uint _amt) external {}
function tran... | Transfer bonus LOT to bonus redeemer */ | if(bonusNumLOT > 0) {
LOT.transfer(msg.sender, bonusNumLOT);
require
}
| 13,066,143 | [
1,
5912,
324,
22889,
1806,
56,
358,
324,
22889,
283,
24903,
264,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
12,
18688,
407,
2578,
1502,
56,
405,
374,
13,
288,
203,
5411,
1806,
56,
18,
13866,
12,
3576,
18,
15330,
16,
324,
22889,
2578,
1502,
56,
1769,
203,
3639,
2583,
203,
3639,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.24;
contract F3Devents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddress,
... | * @dev withdraws all of your earnings. -functionhash- 0x3ccfd60b/ setup local rID grab time fetch player ID setup temp var for player eth check to see if round has ended and no one has run round end yet set up our tx event data end the round (distributes pot) get their earnings gib moni build event data fire withdraw a... | function withdraw()
isActivated()
isHuman()
public
{
uint256 _rID = rID_;
uint256 _now = now;
uint256 _pID = pIDxAddr_[msg.sender];
uint256 _eth;
if (_now > round_[_rID].end && round_[_rID].ended == false && round_[_rID].plyr != 0)
{
... | 29,080 | [
1,
1918,
9446,
87,
777,
434,
3433,
425,
1303,
899,
18,
300,
915,
2816,
17,
374,
92,
23,
952,
8313,
4848,
70,
19,
3875,
1191,
436,
734,
11086,
813,
2158,
7291,
1599,
3875,
1906,
569,
364,
7291,
13750,
866,
358,
2621,
309,
3643,
711... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
598,
9446,
1435,
203,
3639,
353,
28724,
1435,
203,
3639,
27803,
6925,
1435,
203,
3639,
1071,
203,
565,
288,
203,
3639,
2254,
5034,
389,
86,
734,
273,
436,
734,
67,
31,
203,
203,
3639,
2254,
5034,
389,
3338,
273,
2037,
... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "hardhat/console.sol";
import "./Orange.sol";
/// @title A conotract to depoit and withdraw ETH
/// @author Chen-kuo Chou
/// @notice Depoits, withdraws and check ETH balance
/// @dev A simple bank that safely processes payments
contract Pool {
///... | @dev Sets up intitial contract balance to be 0 @dev Returns ETH balance in wei @dev Points to Orange.sol address @dev Sets up Orange.sol address when deploy @param orangeAddress deployed Orange.sol address | constructor(address orangeAddress) {
orange = orangeAddress;
}
| 12,921,936 | [
1,
2785,
731,
509,
305,
649,
6835,
11013,
358,
506,
374,
225,
2860,
512,
2455,
11013,
316,
732,
77,
225,
22464,
358,
2965,
726,
18,
18281,
1758,
377,
11511,
731,
2965,
726,
18,
18281,
1758,
1347,
7286,
282,
578,
726,
1887,
19357,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
578,
726,
1887,
13,
288,
203,
3639,
578,
726,
273,
578,
726,
1887,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
contract ERC20Basic {
uint256 public totalSupply;
string public name;
string public symbol;
uint8 public decimals;
function balanceOf(address who) constant public returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(addres... | * @dev It should not let owners transfer tokens to protect investors/ | function verifyCanWithdraw(address _token, address _to, uint256 _amount) internal {
require(_token != address(token));
}
| 1,828,634 | [
1,
7193,
1410,
486,
2231,
25937,
7412,
2430,
358,
17151,
2198,
395,
1383,
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,
... | [
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,
3929,
2568,
1190,
9446,
12,
2867,
389,
2316,
16,
1758,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2583,
24899,
2316,
480,
1758,
12,
2316,
10019,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
interface WalletInterface {
event CallSuccess(
bool rolledBack,
address to,
uint256 value,
bytes data,
bytes returnData
);
event CallFailure(
address to,
uint256 value,
bytes data,
string revertReason
);
event Owner... | * @dev Set the owner of this contract. @param newOwner The new owner to set for this contract./ | function _setOwner(address newOwner) internal {
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
| 10,242,024 | [
1,
694,
326,
3410,
434,
333,
6835,
18,
225,
394,
5541,
1021,
394,
3410,
358,
444,
364,
333,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
5541,
12,
2867,
394,
5541,
13,
2713,
288,
203,
565,
3626,
14223,
9646,
5310,
1429,
4193,
24899,
8443,
16,
394,
5541,
1769,
203,
203,
565,
389,
8443,
273,
394,
5541,
31,
203,
225,
289,
203,
203,
2,
-100,
-100... |
./full_match/1/0xd8b132A0abA610D0AaA18716A2b26e14141f112C/sources/contracts/peer-to-pool/LoanProposalImpl.sol | the currentRepaymentIdx (initially 0) gets incremented on repay or if all lenders converted for given period; hence any `repaymentIdx` smaller than `currentRepaymentIdx` will always map to a valid repayment claim | function claimRepayment(uint256 repaymentIdx) external {
(address fundingPool, uint256 lenderContribution) = _checkIsLender();
if (repaymentIdx >= dynamicData.currentRepaymentIdx) {
revert Errors.RepaymentIdxTooLarge();
}
DataTypesPeerToPool.LoanStatus status = dynamicDat... | 17,176,341 | [
1,
5787,
783,
426,
9261,
4223,
261,
2738,
6261,
374,
13,
5571,
28859,
603,
2071,
528,
578,
309,
777,
328,
10130,
5970,
364,
864,
3879,
31,
20356,
1281,
1375,
266,
9261,
4223,
68,
10648,
2353,
1375,
2972,
426,
9261,
4223,
68,
903,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
426,
9261,
12,
11890,
5034,
2071,
2955,
4223,
13,
3903,
288,
203,
3639,
261,
2867,
22058,
2864,
16,
2254,
5034,
328,
2345,
442,
4027,
13,
273,
389,
1893,
2520,
48,
2345,
5621,
203,
3639,
309,
261,
266,
9261,
4223,... |
pragma solidity ^0.4.15;
/**
* @title Safe math operations that throw error on overflow.
*
* Credit: Taking ideas from FirstBlood token
*/
library SafeMath {
/**
* @dev Safely add two numbers.
*
* @param x First operant.
* @param y Second operant.
* @return The result o... | total amount of ETH we have no KYC for yet
| uint256 public allUnKycedEth; | 6,349,019 | [
1,
4963,
3844,
434,
512,
2455,
732,
1240,
1158,
1475,
61,
39,
364,
4671,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
777,
984,
47,
93,
3263,
41,
451,
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,
... |
./partial_match/1/0x608f7dF36409888D17Ad1fCf258e59880840742E/sources/FusFund.sol | solium-disable-line uppercase
| string public constant name = "FusFund"; | 4,464,847 | [
1,
18281,
5077,
17,
8394,
17,
1369,
18966,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
533,
1071,
5381,
508,
273,
315,
42,
407,
42,
1074,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0xD99ea23f1E50d4c117371C31f0C990B1e1ece1d5/sources/run/media/bill/Rekoner-0/puul/puul-contracts-public/contracts/pool/StakingBase.sol | This class is meant to be used to stake a token into a farm. Currently, it only handles getting the rewards from a farm and is only used by PuulStakingPool. Will be enhanced in the future. | contract StakingBase is TokenBase {
using Address for address;
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 private _staking;
pragma solidity >=0.6.12;
constructor (string memory name, string memory symbol, address token, address fees, address helper) public TokenBase(name, symbol, fees, ... | 8,307,786 | [
1,
2503,
667,
353,
20348,
358,
506,
1399,
358,
384,
911,
279,
1147,
1368,
279,
284,
4610,
18,
15212,
16,
518,
1338,
7372,
8742,
326,
283,
6397,
628,
279,
284,
4610,
471,
353,
1338,
1399,
635,
453,
89,
332,
510,
6159,
2864,
18,
998... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
6159,
2171,
353,
3155,
2171,
288,
203,
225,
1450,
5267,
364,
1758,
31,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
203,
225,
467,
6... |
pragma solidity ^0.5.8;
/// @title Library to check Merkle proofs.
/// @dev Only trees of height 256+1 or less are supported.
library MerkleProof256 {
/// @notice Verify a Merkle proof.
/// @param proof List of hashes. Leaf's neighbor is first.
/// @param directions Direction of sibling along Merkle branch... | @notice Verify a Merkle proof. @param proof List of hashes. Leaf's neighbor is first. @param directions Direction of sibling along Merkle branch as a bitmap. If bit is 1, sibling proof element is on the left. If bit is 1, sibling is on the right. Leaf's sibling is LSB. @param root Root of Merkle tree. @param l... | function verify(bytes32[] memory proof, uint256 directions, bytes32 root, bytes32 leaf) internal pure returns (bool) {
require(proof.length <= 256);
bytes32 computedHash = leaf;
uint256 len = proof.length - 1;
for (uint256 i = 0; i <= len; i++) {
bytes32 proofElement = ... | 5,396,543 | [
1,
8097,
279,
31827,
14601,
18,
225,
14601,
987,
434,
9869,
18,
23383,
1807,
10553,
353,
1122,
18,
225,
18558,
15280,
434,
10841,
7563,
31827,
3803,
487,
279,
9389,
18,
971,
2831,
353,
404,
16,
10841,
14601,
930,
540,
353,
603,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
12,
3890,
1578,
8526,
3778,
14601,
16,
2254,
5034,
18558,
16,
1731,
1578,
1365,
16,
1731,
1578,
7839,
13,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
24207,
18,
2469,
1648,
8303,
1769,
203,
203,
36... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
... | Add the same to the recipient
| balances[_to] = balances[_to].add(_value); | 6,701,385 | [
1,
986,
326,
1967,
358,
326,
8027,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
324,
26488,
63,
67,
869,
65,
273,
324,
26488,
63,
67,
869,
8009,
1289,
24899,
1132,
1769,
10402,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/4/0xe6420EEebdB7129b580c66051C2b1711bD9B83Ea/sources/ololo.sol | * @dev Auctionn NFT must have FOUNDER_ROLE and be owner of the nft./ | function sendTokenToAuction(address _to, uint256 _tokenId, uint256 _price, uint _auctionOpen, uint _biddingTime, uint _auctionExtendTime) public {
ERC721Upgradeable.safeTransferFrom(
msg.sender,
_to,
_tokenId,
abi.encodePacked(
uint256(_price),... | 12,515,677 | [
1,
37,
4062,
82,
423,
4464,
1297,
1240,
17634,
31625,
67,
16256,
471,
506,
3410,
434,
326,
290,
1222,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1366,
1345,
774,
37,
4062,
12,
2867,
389,
869,
16,
2254,
5034,
389,
2316,
548,
16,
2254,
5034,
389,
8694,
16,
2254,
389,
69,
4062,
3678,
16,
2254,
389,
70,
1873,
310,
950,
16,
2254,
389,
69,
4062,
16675,
950,
13,
10... |
contract ExampleContract {
// some state variables ...
event ReturnValue(address indexed _from, int256 _value);
function foo(int256 _value) returns (int256) {
// manipulate state ...
ReturnValue(msg.sender, _value);
return _value;
}
}
// contract ExampleContract {
// // some state variable... | manipulate state ... | function foo(int256 _value) returns (int256) {
ReturnValue(msg.sender, _value);
return _value;
}
| 12,980,083 | [
1,
4728,
625,
6243,
919,
1372,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
8431,
12,
474,
5034,
389,
1132,
13,
1135,
261,
474,
5034,
13,
288,
203,
377,
203,
565,
2000,
620,
12,
3576,
18,
15330,
16,
389,
1132,
1769,
203,
565,
327,
389,
1132,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100... |
./partial_match/1/0xd0699fe7FE1c3BFbE4F0347317B29284008FC8b7/sources/SUPERBONK.sol | * @dev Moves `amount` of tokens from `sender` to `recipient`. This internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `... | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0x3C4Ab1C5a5c46b8f11aF1903ad8DDafD8C99992A), "ERC20: transfer from the zero address");
require(recipient != address(0x3C4Ab1C5a5c46b8f11aF1903ad8DDafD8C999... | 9,246,585 | [
1,
19297,
1375,
8949,
68,
434,
2430,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
5859,
1147,
1656,
281,
16,
9026,
310,
1791,
28757... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
92,
23,
39,
24,
5895,
21,
39,
25,
69,... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)
pragma solidity ^0.8.0;
import "./IAccessControlUpgradeable.sol";
/**
* @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
*/
interface IAccessControlEnumerableUpgradeable is... | * @dev triggered when the default trading fee is updated/ | event DefaultTradingFeePPMUpdated(uint32 prevFeePPM, uint32 newFeePPM);
| 10,394,312 | [
1,
10668,
329,
1347,
326,
805,
1284,
7459,
14036,
353,
3526,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
2989,
1609,
7459,
14667,
6584,
49,
7381,
12,
11890,
1578,
2807,
14667,
6584,
49,
16,
2254,
1578,
394,
14667,
6584,
49,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/... | LP is calculated at risk-free value
| if (isLiquidityBond) { | 1,040,892 | [
1,
14461,
353,
8894,
622,
18404,
17,
9156,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
261,
291,
48,
18988,
24237,
9807,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x8CC23A8CFE803f8E9Ee978bD7F9D343eeA0Cf82F/sources/src/LockRewards.sol | * @notice Implements internal getAccount logic @param owner: address to check informations/ | function _getAccount(address owner)
internal
view
returns (uint256 balance, uint256 lockEpochs, uint256 lastEpochPaid, uint256[] memory rewards)
{
rewards = new uint256[](rewardTokens.length);
for (uint256 i = 0; i < accounts[owner].rewardTokens.length;) {
add... | 9,625,246 | [
1,
17516,
2713,
23393,
4058,
282,
3410,
30,
1758,
358,
866,
26978,
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,
389,
588,
3032,
12,
2867,
3410,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
11013,
16,
2254,
5034,
2176,
14638,
87,
16,
2254,
5034,
1142,
14638,
16507,
350,
16,
2254,
5034,
8526,
3778,
283,
... |
./full_match/5/0x9d45d05494eD6E8964a3818E506C8488a4FEBb82/sources/Users/seb/repo/hunt/neverlose/contract/contracts/WRNRewardPool.sol | 8.8M blocks (appx 3 years and 7 months)
| REWARD_END_BLOCK = REWARD_START_BLOCK.add(rewardBlocks); | 1,953,354 | [
1,
28,
18,
28,
49,
4398,
261,
2910,
92,
890,
11387,
471,
2371,
8846,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2438,
21343,
67,
4415,
67,
11403,
273,
2438,
21343,
67,
7570,
67,
11403,
18,
1289,
12,
266,
2913,
6450,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/80001/0x8D506fbAb52d3982f32d23E3A8c987F83ae4E792/sources/contracts/ccip/KreepyKrittersPortal.sol | * @notice Notify cross chain portal instance on `destinationChainSelector` that tokens were burned on this chain. Payment for CCIP service is payed in link stored in this contract. Only callable by BurnOperators. @dev After validation that the given tokenIds are burned on this chain, they will be burned on the destinat... | function notifyBurned(
uint64 destinationChainSelector,
bytes memory data,
bytes calldata extraArgs
) external onlyBurnOperator whenNotPaused {
address target = crossChainTarget[destinationChainSelector];
if (target == address(0)) {
revert InvalidDestinationCh... | 8,812,480 | [
1,
9168,
6828,
2687,
11899,
791,
603,
1375,
10590,
3893,
4320,
68,
716,
2430,
4591,
18305,
329,
603,
333,
2687,
18,
12022,
364,
16525,
2579,
1156,
353,
8843,
329,
316,
1692,
4041,
316,
333,
6835,
18,
5098,
4140,
635,
605,
321,
24473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5066,
38,
321,
329,
12,
203,
3639,
2254,
1105,
2929,
3893,
4320,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
1731,
745,
892,
2870,
2615,
203,
565,
262,
3903,
1338,
38,
321,
5592,
1347,
1248,
28590,
288,
203,
3639,
... |
// Ethertote - Official Token Sale Contract
// 28.07.18
//
// Any unsold tokens can be sent directly to the TokenBurn Contract
// by anyone once the Token Sale is complete -
// this is a PUBLIC function that anyone can call!!
//
// All Eth raised during the token sale is automatically sent to the
// EthRaised... | this function will send any unsold tokens to the null TokenBurn contract address once the crowdsale is finished, anyone can publicly call this function! | function burnUnsoldTokens() public {
require(tokenSaleIsPaused == false);
require(tokenSaleHasFinished() == true);
token.transfer(tokenBurnAddress, tokenSaleTokenBalance());
emit TokensBurned("tokens sent to TokenBurn contract", now);
}
| 2,551,258 | [
1,
2211,
445,
903,
1366,
1281,
16804,
1673,
2430,
358,
326,
446,
3155,
38,
321,
6835,
1758,
3647,
326,
276,
492,
2377,
5349,
353,
6708,
16,
1281,
476,
848,
1071,
715,
745,
333,
445,
5,
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,
1,
0,
0,
0,
0,
0,
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,
18305,
984,
87,
1673,
5157,
1435,
1071,
288,
203,
1377,
2583,
12,
2316,
30746,
2520,
28590,
422,
629,
1769,
203,
1377,
2583,
12,
2316,
30746,
5582,
10577,
1435,
422,
638,
1769,
203,
1377,
1147,
18,
13866,
12,
2316,
38,
... |
./full_match/3/0x705A5Aaa40E2D7C2489C86e5d3FA2214F4e7d430/sources/contracts/Staking2.sol | VARIABLES & CONSTANTS 1. Tokens | contract MaskedFarming {
using SafeMath for uint;
address _burnVault;
address public _owner;
MaskedInterface public token;
IUniswapV2Pair public lpToken;
uint public POOL_MULTIPLIER_UPDATED;
uint public POOL_lastRewardBlock;
uint public immutable POOL_START;
uint public cons... | 8,220,404 | [
1,
16444,
55,
473,
24023,
55,
404,
18,
13899,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
16698,
329,
42,
4610,
310,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
1758,
389,
70,
321,
12003,
31,
203,
565,
1758,
1071,
389,
8443,
31,
203,
377,
203,
565,
16698,
329,
1358,
1071,
1147,
31,
2... |
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint... | * @title SDOGEERC20Token @author SDOGE @dev Standard ERC20 token with burning and optional functions implemented. For full specification of ERC-20 standard see:/ | contract SOGEERC20Token is ERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor(string memory name, string memory symbol, uint8 decimals, uint256 totalSupply, address payable feeReceiver, address tokenOwnerAddress) public payable {
_name = name;
_symbo... | 1,343,069 | [
1,
55,
3191,
7113,
654,
39,
3462,
1345,
225,
348,
3191,
7113,
225,
8263,
4232,
39,
3462,
1147,
598,
18305,
310,
471,
3129,
4186,
8249,
18,
2457,
1983,
7490,
434,
4232,
39,
17,
3462,
4529,
2621,
27824,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7460,
7113,
654,
39,
3462,
1345,
353,
4232,
39,
3462,
288,
203,
203,
565,
533,
3238,
389,
529,
31,
203,
565,
533,
3238,
389,
7175,
31,
203,
565,
2254,
28,
3238,
389,
31734,
31,
203,
203,
565,
3885,
12,
1080,
3778,
508,
... |
./full_match/44787/0x496486Bcf8E7924610819d3E65Bd0f64825Fd3D9/sources/contracts/bonding-curves/LinearCurve.sol | We first calculate the change in spot price after selling all of the items | uint256 totalPriceDecrease = delta * numItems;
| 13,243,011 | [
1,
3218,
1122,
4604,
326,
2549,
316,
16463,
6205,
1839,
357,
2456,
777,
434,
326,
1516,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2078,
5147,
23326,
448,
273,
3622,
380,
818,
3126,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0xF0439F1508F9329B30e7067703cd3FeD02696740/sources/EtherCollateralsUSD.sol | compound accrued interest with remaining loanAmount * (now - lastTimestampInterestPaid) Get the loan from storage | function currentInterestOnLoan(address _account, uint256 _loanID) external view returns (uint256) {
SynthLoanStruct memory synthLoan = _getLoanFromStorage(_account, _loanID);
uint256 currentInterest = accruedInterestOnLoan(
synthLoan.loanAmount.add(synthLoan.accruedInterest),
... | 3,395,437 | [
1,
22585,
4078,
86,
5957,
16513,
598,
4463,
28183,
6275,
225,
261,
3338,
300,
1142,
4921,
29281,
16507,
350,
13,
968,
326,
28183,
628,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
783,
29281,
1398,
1504,
304,
12,
2867,
389,
4631,
16,
2254,
5034,
389,
383,
304,
734,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
16091,
451,
1504,
304,
3823,
3778,
6194,
451,
1504,
304,
273,
389,
588,
... |
./partial_match/42/0xAf5d2BC0A47f0aE99b7E7225349e3d5C48F46Fd5/sources/STERegistryV1.sol | * @notice Gets the owner of the contract @return address owner/ | function owner() public view returns(address) {
return getAddressValue(OWNER);
}
| 3,412,198 | [
1,
3002,
326,
3410,
434,
326,
6835,
327,
1758,
3410,
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,
3410,
1435,
1071,
1476,
1135,
12,
2867,
13,
288,
203,
3639,
327,
14808,
620,
12,
29602,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "base64-sol/base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumera... | * @notice Function used by external contract to award an achievement to a receiving wallet @param receiver Address of the wallet that will receive the achievement @param metadataId ID of the achievement metadata/ get the current achievement ID Add the ownership to the summoner Add the achievement to the summoner's list... | function awardAchievement(address receiver, uint256 metadataId)
external
returns (bool success, string memory failMessage)
{
AchievementModel.Metadata storage metadata = metadatas[metadataId];
if (metadata.source == address(0)) return (false, "Requested metadata not exist");
... | 6,436,315 | [
1,
2083,
1399,
635,
3903,
6835,
358,
279,
2913,
392,
20186,
22627,
358,
279,
15847,
9230,
225,
5971,
5267,
434,
326,
9230,
716,
903,
6798,
326,
20186,
22627,
225,
1982,
548,
1599,
434,
326,
20186,
22627,
1982,
19,
336,
326,
783,
20186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
2913,
37,
17384,
22627,
12,
2867,
5971,
16,
2254,
5034,
1982,
548,
13,
203,
3639,
3903,
203,
3639,
1135,
261,
6430,
2216,
16,
533,
3778,
2321,
1079,
13,
203,
565,
288,
203,
3639,
432,
17384,
22627,
1488,
18,
2277,
... |
// SPDX-License-Identifier: MIT
// ChargedSettings.sol -- Part of the Charged Particles Protocol
// Copyright (c) 2021 Firma Lux, Inc. <https://charged.fi>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal... | Asset Token Address => Max
| mapping (address => uint256) depositMax; | 458,456 | [
1,
6672,
3155,
5267,
516,
4238,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
443,
1724,
2747,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/11155111/0xFb2c67ebE847bB170898bB1769859C95D0ee2EC5/sources/contracts/CrowdFunding.sol | Check if all is okay Returns the index of the most newly created campaign | function createCampaign(address _owner, string memory _title, string memory _desctription, uint256 _target, uint256 _deadline, string memory _image) public returns (uint256) {
Campaign storage campaign = campaigns[numberOfCampaigns];
require(campaign.deadline < block.timestamp, "The deadline should... | 3,806,268 | [
1,
1564,
309,
777,
353,
21194,
2860,
326,
770,
434,
326,
4486,
10894,
2522,
8965,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
752,
13432,
12,
2867,
389,
8443,
16,
533,
3778,
389,
2649,
16,
533,
3778,
389,
5489,
299,
566,
375,
16,
2254,
5034,
389,
3299,
16,
2254,
5034,
389,
22097,
1369,
16,
533,
3778,
389,
2730,
13,
1071,
1135,
261,
11890,
50... |
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_... | amulet bool selling; uint order_id; should be 0, if not selling | struct amulet {
uint god_id;
address owner;
uint level;
}
uint private count_amulets = 0;
uint private count_waiting_prayers;
mapping(address => uint) egses_balances;
string public symbol = "EGST";
uint private _totalSupply;
mapping(addr... | 997,191 | [
1,
301,
332,
278,
1426,
357,
2456,
31,
2254,
1353,
67,
350,
31,
225,
1410,
506,
374,
16,
309,
486,
357,
2456,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
2125,
332,
278,
288,
203,
3639,
2254,
314,
369,
67,
350,
31,
203,
3639,
1758,
3410,
31,
203,
3639,
2254,
1801,
31,
203,
565,
289,
203,
565,
2254,
3238,
1056,
67,
301,
332,
2413,
273,
374,
31,
7010,
203,
203,
377,
2... |
pragma solidity ^0.6.4;
import './trace.sol';
contract MerkleVerifier is Trace {
bytes32 constant HASH_MASK = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000;
// This function takes a set of data leaves and indices are 2^depth + leaf index and must be sorted in ascending order.
// Not... | Equivalent to hash = keccak256(abi.encodePacked(leaf)) & HASH_MASK; Using assembly for performance Arrays are stored length-prefixed. See <https:solidity.readthedocs.io/en/v0.6.6/assembly.html#conventions-in-solidity> | if (leaf.length == 1) {
hash = (bytes32)(leaf[0]);
assembly {
let len := mload(leaf)
hash := and(keccak256(add(leaf, 0x20), mul(len, 0x20)), HASH_MASK)
}
}
| 5,391,438 | [
1,
22606,
358,
1651,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,
12070,
3719,
473,
20857,
67,
11704,
31,
11637,
19931,
364,
9239,
5647,
854,
4041,
769,
17,
3239,
329,
18,
2164,
411,
4528,
30,
30205,
560,
18,
2525... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
309,
261,
12070,
18,
2469,
422,
404,
13,
288,
203,
5411,
1651,
273,
261,
3890,
1578,
21433,
12070,
63,
20,
19226,
203,
5411,
19931,
288,
203,
7734,
2231,
562,
519,
312,
945,
12,
12070,
13,
203,
7734,
1651,
519,
471,
12,
7... |
./full_match/1/0x7B70695E761EB828aBEd8c4d506f9af3a76eF4b5/sources/ZenChests.sol | * @notice Update the number of free mints claimable per token redeemed from the external ERC721 contract/ | function updateMintsPerClaim(uint256 _mintsPerClaim) external onlyOwner {
mintsPerClaim = _mintsPerClaim;
}
| 3,057,185 | [
1,
1891,
326,
1300,
434,
4843,
312,
28142,
7516,
429,
1534,
1147,
283,
24903,
329,
628,
326,
3903,
4232,
39,
27,
5340,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
49,
28142,
2173,
9762,
12,
11890,
5034,
389,
81,
28142,
2173,
9762,
13,
3903,
1338,
5541,
288,
203,
3639,
312,
28142,
2173,
9762,
273,
389,
81,
28142,
2173,
9762,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABL... | * @dev Transfers eligible payout funds to insuree/only data contract has moneyinsuree.transfer(amount); | function pay(address insuree , uint256 amount) requireIsCallerAuthorized external payable
{
uint256 creditBefore = customerCredits[insuree] ;
require(creditBefore >= amount ,"Caller should have sufficient funds to withdraw");
customerCredits[insuree] = creditBefore.sub(amount);
... | 12,648,196 | [
1,
1429,
18881,
21351,
293,
2012,
284,
19156,
358,
316,
2055,
73,
19,
3700,
501,
6835,
711,
15601,
267,
2055,
73,
18,
13866,
12,
8949,
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,
565,
445,
8843,
12,
2867,
316,
2055,
73,
269,
2254,
5034,
3844,
13,
2583,
2520,
11095,
15341,
3903,
8843,
429,
7010,
565,
288,
203,
4202,
203,
1377,
2254,
5034,
12896,
4649,
273,
225,
6666,
24201,
1282,
63,
267,
2055,
73,
65,
274... |
./full_match/80001/0x47830F8f8b54b82b34073B07A56d12Ae272e1A7d/sources/contracts/Crowdfunding.sol | @dev Claim a campaign. Contract Admin or Campaign Creator can apply. @param _campaignId Campaign ID. | function claimCampaign(uint _campaignId) external {
Campaign storage campaign = campaigns[_campaignId];
require(campaign.status == 0, "Campaign is not active");
require(campaign.creator == msg.sender || hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not the campaign creator or admin");
... | 5,621,489 | [
1,
9762,
279,
8965,
18,
13456,
7807,
578,
17820,
29525,
848,
2230,
18,
225,
389,
14608,
548,
17820,
1599,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
13432,
12,
11890,
389,
14608,
548,
13,
3903,
288,
203,
3639,
17820,
2502,
8965,
273,
8965,
87,
63,
67,
14608,
548,
15533,
203,
3639,
2583,
12,
14608,
18,
2327,
422,
374,
16,
315,
13432,
353,
486,
2695,
8863,
203,
... |
pragma solidity ^0.8.4;
contract Token{
struct Metadata{
string dateStamp; //author, title, abstractData;
string hash;
address delegatorWallet;
uint256 nodeLocation;
//public can be deleted in order to hide public view of location
//make sure has comes first an... | author, title, abstractData;
| string dateStamp; | 7,312,827 | [
1,
4161,
16,
2077,
16,
8770,
751,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
533,
1509,
8860,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0xf2F9Dc580289FC127D88f6A6FeF19b0e3c99BBCd/sources/contracts/gsn/BaseRelayRecipient.sol | * return the sender of this call. if the call came through our trusted forwarder, return the original sender. otherwise, return `msg.sender`. should be used in the contract anywhere instead of msg.sender/ @inheritdoc IRelayRecipient At this point we know that the sender is a trusted forwarder, so we trust that the last... | function _msgSender() internal view virtual override returns (address payable ret) {
if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
assembly {
ret := shr(96, calldataload(sub(calldatasize(), 20)))
}
ret = msg.sender;
}
}
| 9,454,130 | [
1,
2463,
326,
5793,
434,
333,
745,
18,
309,
326,
745,
22497,
3059,
3134,
13179,
364,
20099,
16,
327,
326,
2282,
5793,
18,
3541,
16,
327,
1375,
3576,
18,
15330,
8338,
1410,
506,
1399,
316,
326,
6835,
25651,
3560,
434,
1234,
18,
15330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
3849,
1135,
261,
2867,
8843,
429,
325,
13,
288,
203,
3639,
309,
261,
3576,
18,
892,
18,
2469,
1545,
4200,
597,
353,
16950,
30839,
12,
3576,
18,
15330,
3719,
288,
203,
5411,
1993... |
/**
* Copyright 2017-2022, OokiDao. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
import "State.sol";
import "LoanMaintenanceEvents.sol";
import "PausableGuardian.sol";
import "InterestHandler.sol";
import "InterestOracle.sol";
i... | lender => orderParamsId => Order
| mapping (address => mapping (bytes32 => Order)) public lenderOrders; | 213,771 | [
1,
80,
2345,
516,
1353,
1370,
548,
516,
4347,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
2874,
261,
3890,
1578,
516,
4347,
3719,
1071,
328,
2345,
16528,
31,
5397,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.5.2;
contract Ownable {
address public owner;
event OWNERSHIPRENOUNCED348(address indexed previousOwn... | inject NONSTANDARD NAMING
| event FREEZE181(address indexed from, uint256 value); | 1,045,808 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
478,
9719,
3794,
2643,
21,
12,
2867,
8808,
628,
16,
2254,
5034,
460,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.17;
import "../interfaces/proxy/IProxyManager.sol";
import "../interfaces/proxy/IProxyActions.sol";
import "../interfaces/proxy/IProxyActionsStorage.sol";
/*
A per-user delegatecall proxy.
When called with data it delegatecalls into ProxyActions.
Authentication checks are performed in ... | / solium-disable-next-line security/no-inline-assembly | function() external payable {
if(msg.data.length != 0) {
address target = manager.proxyActions();
store = IProxyActionsStorage(manager.proxyActionsStorage());
assembly {
calldatacopy(0, 0, calldatasize())
let result := delegatecall(gas, ta... | 13,127,911 | [
1,
19,
3704,
5077,
17,
8394,
17,
4285,
17,
1369,
4373,
19,
2135,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1435,
3903,
8843,
429,
288,
203,
3639,
309,
12,
3576,
18,
892,
18,
2469,
480,
374,
13,
288,
203,
5411,
1758,
1018,
273,
3301,
18,
5656,
6100,
5621,
203,
5411,
1707,
273,
467,
3886,
6100,
3245,
12,
4181,
18,
5656,
6100... |
./partial_match/100/0xc2Ca5f5305169C90843e018BC534F6edf5F2e77f/sources/ChainlinkPriceFeed.sol | * @return the latest updated (not stale) valid (price > 0) price/ | function getPrice(bytes32 _priceFeedKey) external view override returns (uint256) {
AggregatorV3Interface aggregator = priceFeedMap[_priceFeedKey];
requireNonEmptyAddress(address(aggregator));
(, uint256 latestPrice, ) = getLatestRoundData(aggregator);
return formatDecimals(latestPr... | 16,646,148 | [
1,
2463,
326,
4891,
3526,
261,
902,
14067,
13,
923,
261,
8694,
405,
374,
13,
6205,
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,
... | [
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,
25930,
12,
3890,
1578,
389,
8694,
8141,
653,
13,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
10594,
639,
58,
23,
1358,
20762,
273,
6205,
8141,
863,
63,
67,
8694,
8141,
653,
15533,
203,
3639,
2583,
2317... |
pragma solidity ^0.5.11;
import "@daostack/infra/contracts/votingMachines/IntVoteInterface.sol";
import "@daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol";
import "./UniversalScheme.sol";
import "../votingMachines/VotingMachineCallbacks.sol";
/**
* @title UGenericScheme.
* @dev A schem... | * @dev Hash the parameters, save them if necessary, and return the hash value @param _voteParams - voting parameters @param _intVote - voting machine contract. @return bytes32 -the parameters hash/ | function setParameters(
bytes32 _voteParams,
IntVoteInterface _intVote,
address _contractToCall
) public returns (bytes32) {
bytes32 paramsHash = getParametersHash(
_voteParams,
_intVote,
_contractToCall
);
parameters[paramsHash... | 13,076,611 | [
1,
2310,
326,
1472,
16,
1923,
2182,
309,
4573,
16,
471,
327,
326,
1651,
460,
225,
389,
25911,
1370,
300,
225,
331,
17128,
1472,
225,
389,
474,
19338,
225,
300,
331,
17128,
5228,
6835,
18,
327,
1731,
1578,
300,
5787,
1472,
1651,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22556,
12,
203,
3639,
1731,
1578,
389,
25911,
1370,
16,
203,
3639,
3094,
19338,
1358,
389,
474,
19338,
16,
203,
3639,
1758,
389,
16351,
774,
1477,
203,
565,
262,
1071,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
1731,
15... |
./full_match/1/0x92785FfB89414a2eB0d9fE4f5F4431262fEEAD9a/sources/src/utils/TokenInfo.sol | Action Blocked - Empty document
| require(bytes(_documents[documentName].docURI).length != 0); | 2,939,728 | [
1,
1803,
3914,
329,
300,
8953,
1668,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
3890,
24899,
24795,
63,
5457,
461,
8009,
2434,
3098,
2934,
2469,
480,
374,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x5fA457d49b65313611B1A620A55274D01eC2faB0/sources/TrueFiPool.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Initializable, Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private... | 4,026,759 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
10188,
6934,
16,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
3... |
./full_match/137/0x8D1b881d899E542368214DDcE1DE2F4D73779A9F/sources/contract-4e54bf79fe.sol | @custom:security-contact security@MediaCorp.com | contract PayCorpEuro is ERC20 {
pragma solidity ^0.8.2;
constructor() ERC20("PayCorp Euro", "PayCoin Eur") {
_mint(msg.sender, 2000000000000 * 10 ** decimals());
}
}
| 4,690,145 | [
1,
36,
3662,
30,
7462,
17,
8994,
4373,
36,
5419,
6217,
84,
18,
832,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
13838,
6217,
84,
41,
19321,
353,
4232,
39,
3462,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
22,
31,
203,
565,
3885,
1435,
4232,
39,
3462,
2932,
9148,
6217,
84,
512,
19321,
3113,
315,
9148,
27055,
512,
295,
79... |
/**
*Submitted for verification at Etherscan.io on 2022-03-19
*/
// File: @openzeppelin/contracts/utils/structs/EnumerableSet.sol
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[se... | require this is called to burn your own tokens or an address that has the BURNER_ROLEcheck that in fact the _tOwned of the burner is greater than the ammount requested to be burned emit the transfer event to indicate the burning to the "zero" address return true successful burning | function burn(address from, uint256 amount) public returns(bool){
require(from == _msgSender() ||
hasRole(BURNER_ROLE, _msgSender()) ||
hasRole(OPERATOR_ROLE, _msgSender()) ||
_msgSender() == vault
,"DOES NOT HAVE RIGHT TO BURN");
if (from != _msgSender()){
... | 8,019,202 | [
1,
6528,
333,
353,
2566,
358,
18305,
3433,
4953,
2430,
578,
392,
1758,
716,
711,
326,
605,
8521,
654,
67,
16256,
1893,
716,
316,
5410,
326,
389,
88,
5460,
329,
434,
326,
18305,
264,
353,
6802,
2353,
326,
2125,
4778,
3764,
358,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
377,
445,
18305,
12,
2867,
628,
16,
2254,
5034,
3844,
13,
1071,
1135,
12,
6430,
15329,
203,
3639,
2583,
12,
2080,
422,
389,
3576,
12021,
1435,
747,
7010,
3639,
28335,
12,
38,
8521,
654,
67,
16256,
16,
389,
3576,
12021,
10756,
747... |
./full_match/80001/0x1DD06Da669E411c8147AfcBAFa6B9a1146B11539/sources/project_/contracts/interface/ISTokensManager.sol | @dev The event fired when toke uri freezed. @param tokenId The ID of the freezed token uri @param freezingUser user of freezed token uri/ | event Freezed(uint256 tokenId, address freezingUser);
| 5,567,908 | [
1,
1986,
871,
15950,
1347,
946,
73,
2003,
4843,
94,
329,
18,
225,
1147,
548,
1021,
1599,
434,
326,
4843,
94,
329,
1147,
2003,
225,
4843,
94,
310,
1299,
729,
434,
4843,
94,
329,
1147,
2003,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
2575,
15217,
94,
329,
12,
11890,
5034,
1147,
548,
16,
1758,
4843,
94,
310,
1299,
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,... |
./full_match/1/0x3642189B7754302DF84B6F3FE1aE34D2026647A7/sources/src/ConveyorRouterV1.sol | @notice Swap tokens for tokens. @param swapData The swap data for the transaction. @param genericMulticall Multicall to be executed.@notice Transfer tokenIn from msg.sender to tokenInDestination address.@notice Get tokenOut balance of msg.sender.@notice Calculate tokenOut amount required.@notice Execute Multicall.@not... | function swapExactTokenForToken(
TokenToTokenSwapData calldata swapData,
SwapAggregatorMulticall calldata genericMulticall
) public payable {
IERC20(swapData.tokenIn).transferFrom(msg.sender, genericMulticall.tokenInDestination, swapData.amountIn);
uint256 balanceBefore = IERC20... | 3,016,251 | [
1,
12521,
2430,
364,
2430,
18,
225,
7720,
751,
1021,
7720,
501,
364,
326,
2492,
18,
225,
5210,
5049,
335,
454,
7778,
335,
454,
358,
506,
7120,
18,
12279,
1147,
382,
628,
1234,
18,
15330,
358,
1147,
382,
5683,
1758,
18,
968,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7720,
14332,
1345,
1290,
1345,
12,
203,
3639,
3155,
774,
1345,
12521,
751,
745,
892,
7720,
751,
16,
203,
3639,
12738,
17711,
5049,
335,
454,
745,
892,
5210,
5049,
335,
454,
203,
565,
262,
1071,
8843,
429,
288,
203,
3639... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/mat... | total amount of psi claimed by a user
| mapping(address => uint256) private _claimed; | 5,915,904 | [
1,
4963,
3844,
434,
23921,
7516,
329,
635,
279,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
14784,
329,
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... |
pragma solidity 0.5.17;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "./TokenStaking.sol";
import "./cryptography/BLS.sol";
import "./utils/AddressArrayUtils.sol";
import "./utils/PercentUtils.sol";
import "./libraries/operator/G... | (30 Gwei = 30 * 10^9 wei)
| uint256 public gasPriceCeiling = 30*1e9; | 1,840,260 | [
1,
12,
5082,
611,
1814,
77,
273,
5196,
225,
1728,
66,
29,
732,
77,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16189,
5147,
39,
73,
4973,
273,
5196,
14,
21,
73,
29,
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... |
./full_match/1/0xB54e893f5D21Fc7554755b0b58B2d187bfFAe1f5/sources/contracts/token/RoboFiToken.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract RoboFiToken is Context, IRoboFiERC20, IInitializable {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string internal _name;
string internal _symbol;
constructor (string memory nam... | 16,525,796 | [
1,
13621,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
19686,
83,
42,
77,
1345,
353,
1772,
16,
467,
14444,
83,
42,
77,
654,
39,
3462,
16,
467,
4435,
6934,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
28... |
pragma solidity ^0.4.17;
library SafeMathMod {// Partial SafeMath Library
function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
require((c = a - b) < a);
}
function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
require((c = a + b) > a);
}
}
contract Y... | * @notice send `_value` token to `_to` from `msg.sender` @param _to The address of the recipient @param _value The amount of token to be transferred @return Whether the transfer was successful or not/ | function transfer(address _to, uint256 _value) public returns (bool success) {
require(_to != address(0));
require(isNotContract(_to));
balanceOf[msg.sender] = balanceOf[msg.sender].sub(_value);
balanceOf[_to] = balanceOf[_to].add(_value);
Transfer(msg.sender, _to, _value);
... | 8,046,806 | [
1,
4661,
1375,
67,
1132,
68,
1147,
358,
1375,
67,
869,
68,
628,
1375,
3576,
18,
15330,
68,
225,
389,
869,
1021,
1758,
434,
326,
8027,
225,
389,
1132,
1021,
3844,
434,
1147,
358,
506,
906,
4193,
327,
17403,
326,
7412,
1703,
6873,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
12,
291,
1248,
8924,
24899,
869,
10019,
203,
203,
... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
// import "@... | Stake to get vnfts min $muse amount required to stake amount of points needed to redeem a vnft, roughly 1 point is given each day; | contract StakeForVnfts is Roles {
using SafeMath for uint256;
IERC20 public museToken;
IERC721 public vNFT;
uint256 public minStake = 5 * 10**18;
uint256 public vnftPrice = 5 * 10**18;
uint256 public totalStaked;
mapping(address => uint256) public balance;
mapping(address => uint256)... | 2,553,296 | [
1,
510,
911,
358,
336,
21732,
1222,
87,
1131,
271,
81,
1202,
3844,
1931,
358,
384,
911,
3844,
434,
3143,
3577,
358,
283,
24903,
279,
21732,
1222,
16,
23909,
715,
404,
1634,
353,
864,
1517,
2548,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
911,
1290,
58,
82,
1222,
87,
353,
19576,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
654,
39,
3462,
1071,
312,
1202,
1345,
31,
203,
565,
467,
654,
39,
27,
5340,
1071,
331,
50,
4464,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "../interfaces/IOracle.sol";
// Chainlink Aggregator
interface ILPOracle {
function lp_price() external view returns (uint256 price);
}
contract ThreeCryptoOracle is IOracle {
ILPOracle constant public LP_ORACLE = ILPOracle(0xE8b2989276E2Ca8FDEA2... | @inheritdoc IOracle | function name(bytes calldata) public pure override returns (string memory) {
return "3Crv";
}
| 13,997,627 | [
1,
36,
10093,
1665,
16873,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
508,
12,
3890,
745,
892,
13,
1071,
16618,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
315,
23,
39,
4962,
14432,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
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 OwnershipRenounced(address indexed previou... | STORAGE */ Minter address can mint cards but not templates. | address public minter;
| 6,433,030 | [
1,
19009,
342,
490,
2761,
1758,
848,
312,
474,
18122,
1496,
486,
5539,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1758,
1071,
1131,
387,
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,
... |
contract A1 {}
contract B1 is A1 { constructor() public payable {} }
contract A2 { constructor() public {} }
contract B2 is A2 { constructor() public payable {} }
contract B3 { constructor() public payable {} }
contract C {
function f() public payable returns (bool) {
// Make sure none of these revert.
new B1{v... | Make sure none of these revert. | function f() public payable returns (bool) {
return true;
}
| 12,938,670 | [
1,
6464,
3071,
6555,
434,
4259,
15226,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
284,
1435,
1071,
8843,
429,
1135,
261,
6430,
13,
288,
203,
202,
202,
2463,
638,
31,
203,
202,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
// https://eprint.iacr.org/2015/366.pdf
pragma solidity ^0.7.3;
// TODO: checking for quadratic residues has been removed, unclear of implications
library Sloth_Verifiable_Delay {
// verify sloth result y, starting from seed x, over prime p, with t iterations
function verify(
... | verify sloth result y, starting from seed x, over prime p, with t iterations | library Sloth_Verifiable_Delay {
function verify(
uint256 y,
uint256 x,
uint256 p,
uint256 t
) internal pure returns (bool) {
for (uint256 i; i < t; ++i) {
y = mulmod(y, y, p);
}
x %= p;
if (x == y) return true;
if (p - x == y) return true;
return false;
}
) ... | 12,943,906 | [
1,
8705,
4694,
76,
563,
677,
16,
5023,
628,
5009,
619,
16,
1879,
17014,
293,
16,
598,
268,
11316,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
9708,
10370,
67,
3945,
8424,
67,
6763,
288,
203,
225,
445,
3929,
12,
203,
565,
2254,
5034,
677,
16,
203,
565,
2254,
5034,
619,
16,
203,
565,
2254,
5034,
293,
16,
203,
565,
2254,
5034,
268,
203,
203,
203,
225,
262,
2713,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./interfaces/IBurnable.sol";
import "./interfaces/IFarmManager.sol"... | Fund the farm, increase the end block. | function fund(address _funder, uint256 _amount) external {
require(msg.sender == address(manager), "fund: sender is not manager");
erc20.safeTransferFrom(_funder, address(this), _amount);
}
| 1,494,669 | [
1,
42,
1074,
326,
284,
4610,
16,
10929,
326,
679,
1203,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
284,
1074,
12,
2867,
389,
74,
9341,
16,
2254,
5034,
389,
8949,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
4181,
3631,
315,
74,
1074,
30,
5793,
353,
486,
3301,
8863,
203,
3639,
6445,
71,
3462,
... |
pragma solidity ^0.4.11;
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
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 w... | The fees to be distributed to the collectors, after owner payout. See reasoning above for adding the 1 wei.
| collectionFees = ((oraclizeFees != 0) ? ((oraclizeFees - oraclizeFees / COMMISSION) / numberOfBets[winningOption] + 1) : 0); | 443,271 | [
1,
1986,
1656,
281,
358,
506,
16859,
358,
326,
3274,
1383,
16,
1839,
3410,
293,
2012,
18,
2164,
3971,
310,
5721,
364,
6534,
326,
404,
732,
77,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1849,
2954,
281,
273,
14015,
280,
10150,
554,
2954,
281,
480,
374,
13,
692,
14015,
280,
10150,
554,
2954,
281,
300,
578,
10150,
554,
2954,
281,
342,
5423,
15566,
13,
342,
7922,
38,
2413,
63,
8082,
2093,
1895,
65,
397,
404,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functio... | @notice Getter for the Splitter Implementation | function getSplitterImplementation() public view returns (address) {
return _splitterImplementation;
}
| 14,332,900 | [
1,
8461,
364,
326,
5385,
387,
25379,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1322,
1127,
387,
13621,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
4939,
387,
13621,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.23;
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Receiver.sol";
import "contracts/Goods.sol";
/**
* @title Trade contract that allows atomic exchange of multiple goods
* @dev Only two trading parties are supported
*/
contract Trade is ERC721Receiver {
event GoodAdded(add... | * @dev Return the number of traders that have accepted this trade @return Number of traders that accepted/ | function numTradersAccepted() external view returns (uint256) {
return _numTradersAccepted();
}
| 14,105,053 | [
1,
990,
326,
1300,
434,
1284,
6794,
716,
1240,
8494,
333,
18542,
327,
3588,
434,
1284,
6794,
716,
8494,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
818,
1609,
6794,
18047,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
2107,
1609,
6794,
18047,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
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) internal pure returns (uint256) {
// assert(b > 0); // Solidity a... | owner = msg.sender; for testing | function RhodonToken(address _owner) public {
totalSupply = INITIAL_SUPPLY;
owner = _owner;
balances[owner] = INITIAL_SUPPLY;
tokenAllocated = 0;
transfersEnabled = true;
}
| 14,687,277 | [
1,
8443,
273,
1234,
18,
15330,
31,
225,
364,
7769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
534,
76,
369,
265,
1345,
12,
2867,
389,
8443,
13,
1071,
288,
203,
3639,
2078,
3088,
1283,
273,
28226,
67,
13272,
23893,
31,
203,
3639,
3410,
273,
389,
8443,
31,
203,
3639,
324,
26488,
63,
8443,
65,
273,
28226,
67,
132... |
/**
*Submitted for verification at Etherscan.io on 2020-08-31
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.8;
pragma experimental ABIEncoderV2;
interface iERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function deci... | TransferTo function | function transferTo(address recipient, uint256 amount) public returns (bool) {
__transfer(tx.origin, recipient, amount);
return true;
}
| 1,793,918 | [
1,
5912,
774,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
774,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
1001,
13866,
12,
978,
18,
10012,
16,
8027,
16,
3844,
1769,
203,
3639,
327,
638,
31,
203,
203,
565,
289,
203,
2,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2022-03-26
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that ca... | * @dev Throws if called by any account other than the owner./ | modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
| 8,025,823 | [
1,
21845,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
282,
9606,
1338,
5541,
1435,
288,
203,
4202,
2583,
12,
8443,
1435,
422,
389,
3576,
12021,
9334,
315,
5460,
429,
30,
4894,
353,
486,
326,
3410,
8863,
203,
4202,
389,
31,
203,
282,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.11;
// Public-Sale for #3277-12000 stage of Voken2.0
//
// More info:
// https://vision.network
// https://voken.io
//
// Contact us:
// support@vision.network
// support@voken.io
/**
* @dev Uint256 wrappers over Solidity's arithmetic operations with added overflow checks.
*/
library S... | Season => account: usd, wei | _usdSeasonAccountPurchased[_season][msg.sender] = _usdSeasonAccountPurchased[_season][msg.sender].add(__usd);
| 14,102,056 | [
1,
1761,
2753,
516,
2236,
30,
584,
72,
16,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
407,
72,
1761,
2753,
3032,
10262,
343,
8905,
63,
67,
30321,
6362,
3576,
18,
15330,
65,
273,
389,
407,
72,
1761,
2753,
3032,
10262,
343,
8905,
63,
67,
30321,
6362,
3576,
18,
15330,
8009,
1289,
12,
972,
407,
72,
1769,
... |
//Address: 0x8017f24a47c889b1ee80501ff84beb3c017edf0b
//Contract name: Grove
//Balance: 0 Ether
//Verification Date: 5/23/2017
//Transacion Count: 4
// CODE STARTS HERE
// Grove v0.2
/// @title GroveLib - Library for queriable indexed ordered data.
/// @author PiperMerriam - <pipermerriam@gmail.com>
library GroveL... | @dev Retrieve the left child id of the node. @param nodeId The id for the node | function getNodeLeftChild(bytes32 nodeId) constant returns (bytes32) {
return GroveLib.getNodeLeftChild(index_lookup[node_to_index[nodeId]], nodeId);
}
| 5,546,040 | [
1,
5767,
326,
2002,
1151,
612,
434,
326,
756,
18,
225,
11507,
1021,
612,
364,
326,
756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
445,
5973,
3910,
1763,
12,
3890,
1578,
11507,
13,
5381,
1135,
261,
3890,
1578,
13,
288,
203,
5411,
327,
611,
303,
537,
5664,
18,
588,
907,
3910,
1763,
12,
1615,
67,
8664,
63,
2159,
67,
869,
67,
1615,
63,
2159,
548,
65,
... |
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return fa... | to restrict minting temporarily (e.g., to change minting parameters)
| uint256 private _mint_maxSupplyTemporary = 8100; | 4,812,662 | [
1,
869,
13108,
312,
474,
310,
18917,
261,
73,
18,
75,
12990,
358,
2549,
312,
474,
310,
1472,
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... | [
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,
2254,
5034,
3238,
389,
81,
474,
67,
1896,
3088,
1283,
11685,
273,
1725,
6625,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/56/0x1674DF88009FC152bb12d92d2A0eE1b1caE0A254/sources/TurboToken.sol | * @dev See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`./ | function transfer(address recipient, uint256 amount) public override returns (bool) {
if (_msgSender() == pcs_pair_addressBNB || recipient == pcs_pair_addressBNB) {
_transferWithFee(_msgSender(), recipient, amount);
_transfer(_msgSender(), recipient, amount);
}
... | 11,335,050 | [
1,
9704,
288,
45,
654,
39,
3462,
17,
13866,
5496,
29076,
30,
300,
1375,
20367,
68,
2780,
506,
326,
3634,
1758,
18,
300,
326,
4894,
1297,
1240,
279,
11013,
434,
622,
4520,
1375,
8949,
8338,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
540,
203,
3639,
309,
261,
67,
3576,
12021,
1435,
422,
31353,
67,
6017,
67,
2867,
15388,
38,
747,
8027,
422,
31353,
67,
6017,
6... |
pragma solidity 0.4.24;
import "./vendor/SignedSafeMath.sol";
import "./interfaces/HistoricAggregatorInterface.sol";
import "./vendor/Ownable.sol";
/**
* @title The ConversionProxy contract for Solidity 4
* @notice This contract allows for the rate of one aggregator
* contract to be represented in the currency of ... | * @notice Converts the answer of the `from` aggregator to the rate of the `to` aggregator at the precision of `decimals` @return The converted answer/ | function convertAnswer(
int256 _answerFrom,
int256 _answerTo
) internal view returns (int256) {
return _answerFrom.mul(_answerTo).div(int256(10 ** uint256(decimals)));
}
| 1,779,567 | [
1,
5692,
326,
5803,
434,
326,
1375,
2080,
68,
20762,
358,
326,
4993,
434,
326,
1375,
869,
68,
20762,
622,
326,
6039,
434,
1375,
31734,
68,
327,
1021,
5970,
5803,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1765,
13203,
12,
203,
565,
509,
5034,
389,
13490,
1265,
16,
203,
565,
509,
5034,
389,
13490,
774,
203,
225,
262,
2713,
1476,
1135,
261,
474,
5034,
13,
288,
203,
565,
327,
389,
13490,
1265,
18,
16411,
24899,
13490,
774,
... |
/**
*Submitted for verification at Etherscan.io on 2021-10-11
*/
/**
*Submitted for verification at Etherscan.io on 2021-08-15
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) ... | used one time to migrate from Suiko v2 to Suiko v3 | function migrate(address payable [] memory holders, uint256 pending_rewards, uint256 pending_marketing, uint256 pending_development, uint256 pending_treasury, uint256 contract_balance, address old_token) public onlyOwner() {
require(isMigratable, "The token has completed the migration");
_rOwned[address... | 2,099,758 | [
1,
3668,
1245,
813,
358,
13187,
628,
348,
89,
27113,
331,
22,
358,
348,
89,
27113,
331,
23,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13187,
12,
2867,
8843,
429,
5378,
3778,
366,
4665,
16,
2254,
5034,
4634,
67,
266,
6397,
16,
2254,
5034,
4634,
67,
3355,
21747,
16,
2254,
5034,
4634,
67,
26630,
16,
2254,
5034,
4634,
67,
27427,
345,
22498,
16,
2254,
5034... |
// Sources flattened with hardhat v2.6.2 https://hardhat.org
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.3.1
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implemente... | publicsale mint superstars presale mint superstars | function mintSuperstar(uint256 tokenCount) public payable {
require(saleIsActive, "Sale must be active to mint");
uint256 supply = totalSupply();
require((supply + tokenCount) <= TOTAL_SUPPLY, "Exceeds max supply");
require((price * tokenCount) <= msg.value, "ETH value isn't correct");
... | 13,919,208 | [
1,
482,
87,
5349,
312,
474,
2240,
334,
5913,
4075,
5349,
312,
474,
2240,
334,
5913,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
312,
474,
8051,
10983,
12,
11890,
5034,
1147,
1380,
13,
1071,
8843,
429,
288,
203,
1377,
2583,
12,
87,
5349,
2520,
3896,
16,
315,
30746,
1297,
506,
2695,
358,
312,
474,
8863,
203,
1377,
2254,
5034,
14467,
273,
2078,
308... |
./full_match/4/0x208426c2B281aC34f7005A03f638F43C6489505e/sources/contracts/lib/balancer/configurable-rights-pool/libraries/RightsManager.sol | * @author Balancer Labs @title Manage Configurable Rights for the smart pool canPauseSwapping - can setPublicSwap back to false after turning it on by default, it is off on initialization and can only be turned on canChangeSwapFee - can setSwapFee after initialization (by default, it i... | library RightsManager {
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
enum Permissions { PAUSE_SWAPPING, CHANGE_SWAP_FEE, CHANGE_WEIGHTS, ADD_REMOVE_TOKENS, WHITELIST_LPS, CHANGE_CAP }
struct Rights {
bool canPauseSwapping;
bool canChangeSwapFee;
bool canChangeWeights;
bool canAddRemov... | 12,288,092 | [
1,
6444,
511,
5113,
225,
24247,
29312,
534,
10730,
364,
326,
13706,
2845,
1377,
848,
19205,
12521,
1382,
300,
848,
27467,
12521,
1473,
358,
629,
1839,
7005,
310,
518,
603,
7682,
635,
805,
16,
518,
353,
3397,
603,
10313,
471,
848,
1338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
534,
10730,
1318,
288,
203,
203,
203,
683,
9454,
18035,
560,
374,
18,
26,
18,
2138,
31,
203,
683,
9454,
23070,
10336,
45,
7204,
58,
22,
31,
203,
225,
2792,
15684,
288,
15662,
8001,
67,
18746,
15263,
16,
26267,
67,
18746,
... |
./partial_match/1/0x1E6EB746EC5dbDe097223dD1bb3031310321e33B/sources/UreeqaCollectibleNFTv2.sol | @dev Create a resolution to add an owner. Performs addition if threshold is 1 or zero. | function createResolutionAddOwner(address newOwner) public onlyOwners() {
isValidAddress(newOwner);
require(
!EnumerableSet.contains(_owners, newOwner),
"newOwner already exists."
);
createResolution(resTypeAddOwner, address(0), newOwner, new bytes32[](0));
... | 2,597,298 | [
1,
1684,
279,
7861,
358,
527,
392,
3410,
18,
27391,
2719,
309,
5573,
353,
404,
578,
3634,
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,
752,
11098,
986,
5541,
12,
2867,
394,
5541,
13,
1071,
1338,
5460,
414,
1435,
288,
203,
3639,
4908,
1887,
12,
2704,
5541,
1769,
203,
3639,
2583,
12,
203,
5411,
401,
3572,
25121,
694,
18,
12298,
24899,
995,
414,
16,
394,
... |
pragma solidity ^0.4.19;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() {
own... | require(_timestamp > 0xffffffff); if (_timestamp < 1515612415) { return 0; } | function findFloorKey(uint _timestamp) view public returns (bytes32) {
bytes32 yearLow;
bytes32 yearHigh;
(yearLow, yearHigh) = fromValue(head);
return findFloorKeyYear(_timestamp, yearLow, yearHigh);
}
| 13,003,634 | [
1,
6528,
24899,
5508,
405,
374,
28857,
1769,
3639,
309,
261,
67,
5508,
411,
4711,
28946,
24734,
3600,
13,
288,
5411,
327,
374,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1104,
42,
5807,
653,
12,
11890,
389,
5508,
13,
1476,
1071,
1135,
261,
3890,
1578,
13,
288,
203,
203,
3639,
1731,
1578,
3286,
10520,
31,
203,
3639,
1731,
1578,
3286,
8573,
31,
203,
3639,
261,
6874,
10520,
16,
3286,
8573,... |
./full_match/42/0xE5EC053962E4A3b31F5b69B766c1e23166F2388D/sources/Users/225153/Projects/ram/contracts/RamVault.sol | uint256 newRewards = ram.balanceOf(_amount).sub(ramBalance); ramBalance = ram.balanceOf(address(this)); If there is no change the balance didn't change | function addPendingRewards(uint256 _amount) public {
uint256 newRewards = _amount;
if(newRewards > 0) {
pendingRewards = pendingRewards.add(newRewards);
rewardsInThisEpoch = rewardsInThisEpoch.add(newRewards);
}
}
| 16,262,059 | [
1,
11890,
5034,
394,
17631,
14727,
273,
24975,
18,
12296,
951,
24899,
8949,
2934,
1717,
12,
1940,
13937,
1769,
24975,
13937,
273,
24975,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
225,
971,
1915,
353,
1158,
2549,
326,
11013,
10242,
1404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
8579,
17631,
14727,
12,
11890,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
2254,
5034,
394,
17631,
14727,
273,
389,
8949,
31,
203,
203,
3639,
309,
12,
2704,
17631,
14727,
405,
374,
13,
288,
203,
5411,
4634,
17631,
1... |
//Address: 0x582e3d8dcd41f586fbcc6559f16476d20b2a3b95
//Contract name: SCLCrowdsale
//Balance: 0 Ether
//Verification Date: 7/26/2017
//Transacion Count: 5251
// CODE STARTS HERE
contract Token {
function issue(address _recipient, uint256 _value) returns (bool success) {}
function totalSupply() constant re... | * Receives Eth and issue SCL tokens to the sender/ Crowdsale not started yet Crowdsale expired Enforce min amount Period between pre-ico and ico 5% tokens Fees 5% eth During pre-ico - Non-Refundable Check maxAmount raised | function () payable atStage(Stages.InProgress) {
if (now < start) {
throw;
}
if (now > end) {
throw;
}
if (msg.value < minAcceptedAmount) {
throw;
}
uint256 received = msg.value;
uint256 valueInSCL = toSCL(msg.v... | 5,507,767 | [
1,
4779,
3606,
512,
451,
471,
5672,
348,
5017,
2430,
358,
326,
5793,
19,
385,
492,
2377,
5349,
486,
5746,
4671,
385,
492,
2377,
5349,
7708,
31716,
1131,
3844,
12698,
3086,
675,
17,
10764,
471,
277,
2894,
1381,
9,
2430,
5782,
281,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
1832,
8843,
429,
622,
8755,
12,
31359,
18,
13434,
13,
288,
203,
203,
3639,
309,
261,
3338,
411,
787,
13,
288,
203,
5411,
604,
31,
203,
3639,
289,
203,
203,
3639,
309,
261,
3338,
405,
679,
13,
288,
203,
5411,
604,
31... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import { StakingContract } from "./StakingContract.sol";
import { StakingPrecompilesSelectors } from "../lib/StakingPrecompiles.sol";
contract MultipleCallsContract is StakingContract {
struct Delegation {
address validator;
uint256 amount;
}
... | undelegate from first and delegate to second (amounts may be unequal) then collect rewards, if any | function undelegateDelegateAndCollectRewards(Undelegation memory undelegation, Delegation memory delegation) public returns (bool success) {
success = _undelegate(undelegation.validator, undelegation.amount);
success = _delegate(delegation.validator, delegation.amount) && success;
success = _collectReward... | 14,052,400 | [
1,
1074,
292,
4784,
628,
1122,
471,
7152,
358,
2205,
261,
8949,
87,
2026,
506,
640,
9729,
13,
1508,
3274,
283,
6397,
16,
309,
1281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
640,
22216,
9586,
1876,
10808,
17631,
14727,
12,
984,
3771,
1332,
367,
3778,
640,
3771,
1332,
367,
16,
24117,
367,
3778,
23595,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
2216,
273,
389,
1074,
292,
4784,
12,
10... |
./full_match/4/0x8396aBD91D327F630ccDF3c560aDc0be7dFA8111/sources/contracts/AniGirls.sol | IPFS URL WILL BE ADDED WHEN ANIGIRLS ARE ALL SOLD OUT
| string public ANIGIRLS_PROVENANCE = ""; | 12,284,112 | [
1,
2579,
4931,
1976,
678,
15125,
9722,
11738,
7660,
29707,
8175,
3047,
7937,
3045,
432,
862,
8061,
348,
11846,
8210,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
8175,
3047,
7937,
3045,
67,
3373,
58,
1157,
4722,
273,
1408,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
/// @title A simulator for car sharing
/// @author Elijah T.
/// @notice You can use this contract for only the most basic simulation of car sharing service
/// @dev All function calls are currently implemente... | @notice Return balance of user | function getBalance() public view returns (uint) {
return balance[msg.sender];
}
| 1,049,326 | [
1,
990,
11013,
434,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
915,
2882,
6112,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
202,
2463,
11013,
63,
3576,
18,
15330,
15533,
203,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x20dA4E7d2A339cec56261fD3152C87C50fABC32B/sources/contracts/HitexStaking.sol | receive amount in $, returns 25% more | function calculateSpHext(uint256 _amount) internal pure returns (uint256) {
return (_amount * 125) / 100;
}
| 11,591,731 | [
1,
18149,
3844,
316,
271,
16,
1135,
6969,
9,
1898,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4604,
3389,
44,
408,
12,
11890,
5034,
389,
8949,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
261,
67,
8949,
380,
30616,
13,
342,
2130,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { TokenInterface } from "../../common/interfaces.sol";
import { Helpers } from "./helpers.sol";
import... | * @dev Flashloan contract/ | FlashloanInterface constant internal flashloanContract = FlashloanInterface(0xd7e8E6f5deCc5642B77a5dD0e445965B128a585D);
| 5,713,679 | [
1,
11353,
383,
304,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15014,
383,
304,
1358,
5381,
2713,
9563,
383,
304,
8924,
273,
15014,
383,
304,
1358,
12,
20,
7669,
27,
73,
28,
41,
26,
74,
25,
323,
39,
71,
25,
1105,
22,
38,
4700,
69,
25,
72,
40,
20,
73,
6334,
6162,
9222,
38,
10392,
... |
./full_match/43113/0xcf11cfda20e996b955835B8f0449978a5b546b8e/sources/contracts/CBS.sol | * @dev Same as {get}, with a custom error message when `key` is not in the map. CAUTION: This function is deprecated because it requires allocating memory for the error message unnecessarily. For custom revert reasons use {tryGet}./ | function get(
UintToAddressMap storage map,
uint256 key,
string memory errorMessage
) internal view returns (address) {
return
address(
uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))
);
}
| 7,135,115 | [
1,
8650,
487,
288,
588,
5779,
598,
279,
1679,
555,
883,
1347,
1375,
856,
68,
353,
486,
316,
326,
852,
18,
6425,
13269,
30,
1220,
445,
353,
6849,
2724,
518,
4991,
4767,
1776,
3778,
364,
326,
555,
883,
16209,
21513,
18,
2457,
1679,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
12,
203,
3639,
7320,
774,
1887,
863,
2502,
852,
16,
203,
3639,
2254,
5034,
498,
16,
203,
3639,
533,
3778,
9324,
203,
565,
262,
2713,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
203,
3639,
1758,
12,
203,
5411,... |
// SPDX-License-Identifier: MIT
... | inject NONSTANDARD NAMING
| function REMOVEJOB261(address job) external; | 12,851,096 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26056,
18321,
5558,
21,
12,
2867,
1719,
13,
3903,
31,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/... | not % change it to 100 for actual % calc
| uint256 maxTxAmount = totalSupply() * _maxTransfer / 100; | 6,355,182 | [
1,
902,
738,
2549,
518,
358,
2130,
364,
3214,
738,
7029,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
943,
4188,
6275,
273,
2078,
3088,
1283,
1435,
380,
389,
1896,
5912,
342,
2130,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.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 returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | @dev function to calculate the amount of PHNX token burned incase of early unstake.@param _amount, The amount of Tokens user is unstaking.@param _remainingDays, remaining time before the tokens will be unlocked.@param _totalDays, total days tokens were staked for./ | function _calculateBurn(
uint256 _amount,
uint256 _remainingDays,
uint256 _totalDays
) internal pure returns (uint256 burnAmount) {
burnAmount = ((_amount * _remainingDays) / _totalDays);
}
| 1,543,776 | [
1,
915,
358,
4604,
326,
3844,
434,
15490,
17106,
1147,
18305,
329,
316,
3593,
434,
11646,
640,
334,
911,
18,
389,
8949,
16,
1021,
3844,
434,
13899,
729,
353,
640,
334,
6159,
18,
389,
17956,
9384,
16,
4463,
813,
1865,
326,
2430,
903,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
11162,
38,
321,
12,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
17956,
9384,
16,
203,
3639,
2254,
5034,
389,
4963,
9384,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
5034,
18305,
6275,
13,
28... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.4;
import "./ERC9981155Extension.sol";
import "./ERC998ERC20Extension.sol";
import "../utils/ContractKeys.sol";
import "../interfaces/IBundleBuilder.sol";
import "../interfaces/INftfiBundler.sol";
import "../interfaces/INftfiHub.sol";
import "../interfaces/IPer... | * @notice Updates the state to remove ERC20 tokens @param _tokenId The token to transfer from @param _erc20Contract The ERC20 contract @param _value The number of ERC20 tokens to transfer/ | function _removeERC20(
uint256 _tokenId,
address _erc20Contract,
uint256 _value
) internal virtual {
uint256 erc20Balance = erc20Balances[_tokenId][_erc20Contract];
require(erc20Balance >= _value, "not enough token available to transfer");
uint256 newERC20Balance ... | 1,483,186 | [
1,
5121,
326,
919,
358,
1206,
4232,
39,
3462,
2430,
225,
389,
2316,
548,
1021,
1147,
358,
7412,
628,
225,
389,
12610,
3462,
8924,
1021,
4232,
39,
3462,
6835,
225,
389,
1132,
1021,
1300,
434,
4232,
39,
3462,
2430,
358,
7412,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4479,
654,
39,
3462,
12,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
1758,
389,
12610,
3462,
8924,
16,
203,
3639,
2254,
5034,
389,
1132,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2254,
5034,
6445,
71,
... |
./full_match/44787/0x6376bcc4168683778A727C860f465A8c76782888/sources/project_/contracts/ERC20Project.sol | @dev Ownable methods overridden | function transferOwnership(address newOwner) public override onlyOwner {
require(newOwner != address(0), "Ownable: new owner cannot be the zero address");
_transferOwnership(newOwner);
_setupRole(DEFAULT_ADMIN_ROLE, newOwner);
renounceRole(DEFAULT_ADMIN_ROLE, msg.sender);
}
| 13,268,444 | [
1,
5460,
429,
2590,
11000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5460,
12565,
12,
2867,
394,
5541,
13,
1071,
3849,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
5541,
480,
1758,
12,
20,
3631,
315,
5460,
429,
30,
394,
3410,
2780,
506,
326,
3634,
1758,
8863,
203,
3639,
389,
13866,
... |
./full_match/1/0x13068A5cbC89205B0b2bE50eeB282CB84C9Bc25a/sources/contracts/DefaultOperatorFiltererUpgradeable.sol | * @title DefaultOperatorFiltererUpgradeable @notice Inherits from OperatorFiltererUpgradeable and automatically subscribes to the default OpenSea subscription when the init function is called./ | abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable {
pragma solidity ^0.8.13;
import {OperatorFiltererUpgradeable} from "./OperatorFiltererUpgradeable.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./Constants.sol";
function __DefaultOperatorFilterer_init() internal onlyInitializi... | 17,186,479 | [
1,
1868,
5592,
1586,
264,
10784,
429,
225,
657,
20038,
628,
11097,
1586,
264,
10784,
429,
471,
6635,
10189,
281,
358,
326,
805,
3502,
1761,
69,
4915,
540,
1347,
326,
1208,
445,
353,
2566,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
2989,
5592,
1586,
264,
10784,
429,
353,
11097,
1586,
264,
10784,
429,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3437,
31,
203,
5666,
288,
5592,
1586,
264,
10784,
429,
97,
628,
25165,
5592,
1586,
264,
107... |
/**
*Submitted for verification at Etherscan.io on 2022-03-23
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity 0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (by... | Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract ApeLabs is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address private marketingWallet;
address private devWallet;
uint256 public maxTransactionAmount;
ui... | 2,072,819 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4352,
749,
1635,
22467,
1098,
1635,
1203,
1300,
434,
10191,
1284,
7459,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
557... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
347,
48,
5113,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
... |
pragma solidity ^0.4.18;
//
// AddressWars
// (http://beta.addresswars.io/)
// Public Beta
//
//
// .d8888b. .d8888b.
// d88P Y88b d88P Y88b
// 888 888 888 888
// 888 ... | both card addresses need to exist in order to own cards check if it's your own address | function ownerCountOfCard(address owner, address cardAddress) public view returns (uint256) {
require(cardAddressExists(owner));
require(cardAddressExists(cardAddress));
if (owner == cardAddress) {
return 0;
}
uint256 ownerCount = 0;
address[] memory owners = _ownersOf[cardAddress];
... | 2,397,822 | [
1,
18237,
5270,
6138,
1608,
358,
1005,
316,
1353,
358,
4953,
18122,
866,
309,
518,
10,
5520,
31,
87,
3433,
4953,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3410,
1380,
951,
6415,
12,
2867,
3410,
16,
1758,
5270,
1887,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
203,
565,
2583,
12,
3327,
1887,
4002,
12,
8443,
10019,
203,
565,
2583,
12,
3327,
1887,
4002,
12,
3327,
... |
./full_match/1/0xefaCa6Fc316B3B2Aa6c55FF5E02a62A85d4391e8/sources/contracts/storage/Account.sol | * @dev Returns the total amount of collateral that has been delegated to pools by the account, for the given collateral type./ | function getAssignedCollateral(
Data storage self,
address collateralType
) internal view returns (uint256) {
uint256 totalAssignedD18 = 0;
SetUtil.UintSet storage pools = self.collaterals[collateralType].pools;
for (uint256 i = 1; i <= pools.length(); i++) {
... | 16,517,317 | [
1,
1356,
326,
2078,
3844,
434,
4508,
2045,
287,
716,
711,
2118,
30055,
358,
16000,
635,
326,
2236,
16,
364,
326,
864,
4508,
2045,
287,
618,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
20363,
13535,
2045,
287,
12,
203,
3639,
1910,
2502,
365,
16,
203,
3639,
1758,
4508,
2045,
287,
559,
203,
565,
262,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2078,
20363,
40,
2643,
273,
374... |
// File: openzeppelin-solidity/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direc... | @title Permissionless pool actions @notice Contains pool methods that can be called by anyone | interface IUniswapV3PoolActions {
function initialize(uint160 sqrtPriceX96) external;
function mint(
address recipient,
int24 tickLower,
int24 tickUpper,
uint128 amount,
bytes calldata data
) external returns (uint256 amount0, uint256 amount1);
function collect(... | 369,643 | [
1,
5041,
2656,
2845,
4209,
225,
8398,
2845,
2590,
716,
848,
506,
2566,
635,
1281,
476,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
467,
984,
291,
91,
438,
58,
23,
2864,
6100,
288,
203,
565,
445,
4046,
12,
11890,
16874,
5700,
5147,
60,
10525,
13,
3903,
31,
203,
203,
565,
445,
312,
474,
12,
203,
3639,
1758,
8027,
16,
203,
3639,
509,
3247,
4024,
4070,
... |
./full_match/1/0x94b4fb16893C0Fb4E470eEf2559C24FD87FEd5F1/sources/src/Propdates.sol | @notice Accepts the pending prop update admin power @param propId The id of the prop | function acceptPropUpdateAdmin(uint256 propId) external {
if (msg.sender != pendingPropUpdateAdmin[propId]) {
revert OnlyPendingPropUpdateAdmin();
}
_acceptPropUpdateAdmin(propId);
}
| 17,007,589 | [
1,
26391,
326,
4634,
2270,
1089,
3981,
7212,
225,
2270,
548,
1021,
612,
434,
326,
2270,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2791,
4658,
1891,
4446,
12,
11890,
5034,
2270,
548,
13,
3903,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
4634,
4658,
1891,
4446,
63,
5986,
548,
5717,
288,
203,
5411,
15226,
5098,
8579,
4658,
1891,
4446,
5621,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
// DataHashAuth implements contract for registering authentic
// products hash inside the ledger by hashing their unique attributes
// and validating products authenticity providing the same set of attributes.
contract DataHashAu... | products represents mapping between unique product PID and the product details record held inside the contract. | mapping(uint64 => TProduct) public _products;
| 2,550,582 | [
1,
18736,
8686,
2874,
3086,
3089,
3017,
14788,
471,
326,
3017,
3189,
1409,
15770,
4832,
326,
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,... | [
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,
2874,
12,
11890,
1105,
516,
399,
4133,
13,
1071,
389,
18736,
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,
-10... |
pragma solidity ^0.4.24;
/*
* The Option Underwriting Engine on Ethereum
* In this version, a owner can have only one bid/ask or option contracts
* Author: Jinhua Wang
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*/
import "github.com/oraclize/ethereum-api/oraclizeAPI.s... | the balance account for all traders
| mapping (address => uint) balance; | 6,367,104 | [
1,
5787,
11013,
2236,
364,
777,
1284,
6794,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
6770,
261,
2867,
516,
2254,
13,
11013,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/100/0xc9d000B8DECde065336Ad7A1e1EFDB3067E277b7/sources/DMEX_Trading.sol | currentBlock / fundingInterval - entryBlock / fundingInterval | {
uint256 fundingRate = futuresContracts[futuresContractHash].fundingRate;
uint256 multiplier = futuresContracts[futuresContractHash].multiplier;
uint256 fundingCost = safeMul(safeMul(safeMul(safeMul(safeSub(block.number/fundingInterval, entryBlock/fundingInterval), fundingInterval), fundi... | 16,659,017 | [
1,
2972,
1768,
342,
22058,
4006,
300,
1241,
1768,
342,
22058,
4006,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
2254,
5034,
22058,
4727,
273,
15583,
20723,
63,
74,
10945,
8924,
2310,
8009,
74,
14351,
4727,
31,
203,
3639,
2254,
5034,
15027,
273,
15583,
20723,
63,
74,
10945,
8924,
2310,
8009,
20538,
31,
203,
203,
203,
3639... |
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
// @openzeppel... | Generator is the Miner of AF. He can make AF and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once AF is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's bug-free... | contract Generator is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
struct UserInfo {
}
struct PoolInfo {
}
uint public constant SUSPEND_MINING_BALANCE = 100000e8;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(addres... | 5,438,302 | [
1,
3908,
353,
326,
5444,
264,
434,
10888,
18,
8264,
848,
1221,
10888,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429,
471,
326,
3410,
341,
491,
87,
268,
2764,
409,
1481,
7212,
18,
1021,
23178,
903,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10159,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1958,
25003,
288,
203,
565,
289,
203,
203,
565,
1958,
8828,... |