file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/5/0x63e7d8F73B95511B9EeE2792b133F9B5587c959e/sources/PupeV2.sol | burns the total amount lost, then mints 50% of that to the message sender | function adopt(address _ownerAddress) public nonReentrant {
require(block.timestamp > abandonTime(_ownerAddress), "address not abandoned");
uint256 adoptAmount = balanceOf(_ownerAddress);
_burn(_ownerAddress, adoptAmount);
_mint(msg.sender, adoptAmount / 2);
emit Adopted(_ow... | 1,896,758 | [
1,
70,
321,
87,
326,
2078,
3844,
13557,
16,
1508,
312,
28142,
6437,
9,
434,
716,
358,
326,
883,
5793,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1261,
3838,
12,
2867,
389,
8443,
1887,
13,
1071,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
1223,
464,
265,
950,
24899,
8443,
1887,
3631,
315,
2867,
486,
1223,
29807,
8863,
203,
203,
3639,
2254... |
./partial_match/1/0x5Dc58f812b2e244DABA2fabd33f399cD699D7Ddc/sources/GammaFarm.sol | Swap "malBurnPct"% of received WETH for MAL (via WETH/MAL/3000): | uint256 wethAmountToBuyMal = wethAmountOut * malBurnPct / 10000;
| 2,686,375 | [
1,
12521,
315,
81,
287,
38,
321,
52,
299,
28385,
434,
5079,
678,
1584,
44,
364,
490,
1013,
261,
21985,
678,
1584,
44,
19,
49,
1013,
19,
23,
3784,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2254,
5034,
341,
546,
6275,
774,
38,
9835,
49,
287,
273,
341,
546,
6275,
1182,
380,
27431,
38,
321,
52,
299,
342,
12619,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.1;
pragma experimental ABIEncoderV2;
contract productContract {
Product[] public supplyChain; //stores all of the products created.
mapping(string => Transaction) public transactionDetail; // uses the trackingID as the key to view current custodian and their address.
mapping(strin... | calls an internal function and appends the custodian to the product using the trackingID
| addCounterParties(_trackingID,_custodian); | 950,903 | [
1,
12550,
392,
2713,
445,
471,
8144,
326,
276,
641,
369,
2779,
358,
326,
3017,
1450,
326,
11093,
734,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
527,
4789,
1988,
606,
24899,
6440,
734,
16,
67,
71,
641,
369,
2779,
1769,
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... |
pragma solidity ^0.5.16;
/**
* @title Careful Math
* @author Compound
* @notice Derived from OpenZeppelin's SafeMath library
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
*/
contract CarefulMath {
/**
* @dev Possible error codes that we can return... | * @dev Divide an Exp by a scalar, returning a new Exp./ | function divScalar(Exp memory a, uint256 scalar)
internal
pure
returns (MathError, Exp memory)
{
(MathError err0, uint256 descaledMantissa) = divUInt(
a.mantissa,
scalar
);
if (err0 != MathError.NO_ERROR) {
}
}
| 1,271,124 | [
1,
7244,
831,
392,
7784,
635,
279,
4981,
16,
5785,
279,
394,
7784,
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... | [
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,
3739,
13639,
12,
2966,
3778,
279,
16,
2254,
5034,
4981,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
10477,
668,
16,
7784,
3778,
13,
203,
565,
288,
203,
3639,
261,
10477,
668,
393,
20,
16,
2254,
5034,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-27
*/
////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
/* pragma solidity ^0.8.0; */
/**
* @dev Provides information about the current execution context, including the
* sender of the trans... | todo ensure the following two blocks work as intended | function _transfer(
address sender,
address recipient,
uint256 amount
) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
require(blacklist[sender] !=... | 4,815,187 | [
1,
9012,
3387,
326,
3751,
2795,
4398,
1440,
487,
12613,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
3631,
315,
654,
39,
3462,
30,
7412,
628... |
/**
******************************************************************************************************************************************************************************************
$$$$$$$\ $$\ $$\ $... | luck ticket buyers amount
| uint256 tckBuyerNum; | 13,123,077 | [
1,
80,
9031,
9322,
30143,
414,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
268,
363,
38,
16213,
2578,
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,
... |
./full_match/100/0x62D007D4c4Db781C24FF6ac19279B9A9Ec32b344/sources/contracts/recover/recover.sol | * @dev To be emitted when a party pays or reimburses the other. @param _claimID The index of the claim. @param _party The party that paid. @param _amount The amount paid./ | event Fund(uint indexed _claimID, Party _party, uint _amount);
| 14,273,891 | [
1,
774,
506,
17826,
1347,
279,
18285,
293,
8271,
578,
283,
381,
70,
295,
2420,
326,
1308,
18,
282,
389,
14784,
734,
1021,
770,
434,
326,
7516,
18,
282,
389,
21214,
1021,
18285,
716,
30591,
18,
282,
389,
8949,
1021,
3844,
30591,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
478,
1074,
12,
11890,
8808,
389,
14784,
734,
16,
6393,
93,
389,
21214,
16,
2254,
389,
8949,
1769,
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
pragma solidity 0.8.0;
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/cont... | * @dev Redeems acsBTC+ to BTCB. @param _amount Amount of acsTCB+ to redeem./ | function redeemAcsBTCBPlus(uint256 _amount) public {
require(_amount > 0, "zero amount");
IERC20Upgradeable(ACS_BTCB_PLUS).safeTransferFrom(msg.sender, address(this), _amount);
ISinglePlus(ACS_BTCB_PLUS).redeem(_amount);
uint256 _acsBtcb = IERC20Upgradeable(ACS_BTCB).balanceOf(addr... | 5,536,493 | [
1,
426,
323,
7424,
1721,
87,
38,
15988,
15,
358,
605,
56,
8876,
18,
225,
389,
8949,
16811,
434,
1721,
87,
56,
8876,
15,
358,
283,
24903,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
24903,
37,
2143,
38,
56,
8876,
13207,
12,
11890,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
7124,
3844,
8863,
203,
203,
3639,
467,
654,
39,
3462,
10784,
429,
12,
2226,
55,
67... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.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 re... | * @return The result of safely multiplying x and y, interpreting the operands as fixed-point decimals of a standard unit. @dev The operands should be in the standard unit factor which will be divided out after the product of x and y is evaluated, so that product must be less than 2256. Unlike multiplyDecimal, this func... | function multiplyDecimalRound(uint256 x, uint256 y) internal pure returns (uint256) {
return _multiplyDecimalRound(x, y, UNIT);
}
| 10,242,151 | [
1,
2463,
1021,
563,
434,
15303,
10194,
310,
619,
471,
677,
16,
10634,
310,
326,
14883,
487,
5499,
17,
1153,
15105,
434,
279,
4529,
2836,
18,
225,
1021,
14883,
1410,
506,
316,
326,
4529,
2836,
5578,
1492,
903,
506,
26057,
596,
1839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
10194,
5749,
11066,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
389,
7027,
1283,
5749,
11066,
12,
92,
16,
677,
16,
28721,
1769,
203,
225,
289,
203,
203,
... |
pragma solidity ^0.4.18;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of... | Locking period for team's supply, release 1/4 per 6 months
| uint256 public TeamLockingPeriod12Months; | 366,306 | [
1,
2531,
310,
3879,
364,
5927,
1807,
14467,
16,
3992,
404,
19,
24,
1534,
1666,
8846,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
10434,
2531,
310,
5027,
2138,
19749,
31,
10402,
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... |
pragma solidity 0.4.16;
library CommonLibrary {
struct Data {
mapping (uint => Node) nodes;
mapping (string => uint) nodesID;
mapping (string => uint16) nodeGroups;
uint16 nodeGroupID;
uint nodeID;
uint ownerNotationId;
uint addNodeAddressId;
}
struct Node {
string nodeName;
address producer;
... | ----------------------------------------------------Starmid exchange | contract Starmid {
address public owner;
Nodes public nodesVars;
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
StarCoinLibrary.Data public sCVars;
event Transfer(address indexed from, address indexed to, uint256 value);
event BuyOrder(address indexed from, uint ... | 2,114,765 | [
1,
9634,
553,
510,
4610,
350,
7829,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
4610,
350,
288,
203,
202,
2867,
1071,
3410,
31,
203,
202,
3205,
1071,
2199,
5555,
31,
203,
202,
1080,
1071,
508,
31,
203,
202,
1080,
1071,
3273,
31,
203,
202,
11890,
28,
1071,
15105,
31,
203,
202,
11890,
5034,
1071,
... |
./partial_match/1/0xF8d48D0404C74fEa55E9868f0D17e1108238982c/sources/RoboToken.sol | CHANGE THIS. Update the contract name.
| contract RoboToken is StandardToken { | 15,584,387 | [
1,
14473,
20676,
18,
2315,
326,
6835,
508,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19686,
83,
1345,
353,
8263,
1345,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
// Project: High Reward Coin
// v4, 2017-12-31
// This code is the property of CryptoB2B.io
// Copying in whole or in part is prohibited.
// Authors: Ivan Fedorov and Dmitry Borodin
// Do you want the same ICO platform? www.cryptob2b.io
// (A1)
// The main contract for the sale an... | We check whether we collected the necessary minimum funds. Constant. | function goalReached() public constant returns (bool) {
return token.totalSupply().add(tokenReserved) >= softCap;
}
| 12,598,854 | [
1,
3218,
866,
2856,
732,
12230,
326,
4573,
5224,
284,
19156,
18,
10551,
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,
565,
445,
17683,
23646,
1435,
1071,
5381,
1135,
261,
6430,
13,
288,
203,
3639,
327,
1147,
18,
4963,
3088,
1283,
7675,
1289,
12,
2316,
10435,
13,
1545,
8971,
4664,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "./CounterControllerV1.sol";
contract CounterControllerV2 is CounterControllerV1 {
// controller version number
uint256 public constant VERSION_V2 = 2;
// state for previous value of counter
uint256 private _previousVal... | controller version number state for previous value of counter additional business logic for this version | contract CounterControllerV2 is CounterControllerV1 {
uint256 public constant VERSION_V2 = 2;
uint256 private _previousValue;
pragma solidity ^0.8.0;
function previousValue() public view returns (uint256) {
return _previousValue;
}
function upgradeToV2(uint256 value) external upgrad... | 6,476,707 | [
1,
5723,
1177,
1300,
919,
364,
2416,
460,
434,
3895,
3312,
13160,
4058,
364,
333,
1177,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
9354,
2933,
58,
22,
353,
9354,
2933,
58,
21,
288,
203,
203,
565,
2254,
5034,
1071,
5381,
8456,
67,
58,
22,
273,
576,
31,
203,
203,
565,
2254,
5034,
3238,
389,
11515,
620,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
... |
./partial_match/1/0xD803Bb955AfBf9b66CfC6DF64A629ffE798BB599/sources/PSHARK.sol | set as buyBackWallet
| buyBackWallet = address(0xA776aBea31a0374C01C12eaeB2AC7598950875C3); | 9,395,495 | [
1,
542,
487,
30143,
2711,
16936,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
30143,
2711,
16936,
273,
1758,
12,
20,
21703,
4700,
26,
69,
1919,
69,
6938,
69,
4630,
5608,
39,
1611,
39,
2138,
73,
8906,
38,
22,
2226,
5877,
29,
6675,
3361,
28,
5877,
39,
23,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
//
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, whi... | After reducing the redeem fee, the remaining pool tokens are burned! | IERC20MintableBurnable(poolToken).burn(msg.sender, _amount);
| 6,812,694 | [
1,
4436,
9299,
2822,
326,
283,
24903,
14036,
16,
326,
4463,
2845,
2430,
854,
18305,
329,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
654,
39,
3462,
49,
474,
429,
38,
321,
429,
12,
6011,
1345,
2934,
70,
321,
12,
3576,
18,
15330,
16,
389,
8949,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xF895B67031670F4b2D00a08a67a7A5c80F8E829f/sources/contracts/integrationInterface/IntegrationInterface.sol | @title Protocol Integration Interface | abstract contract IntegrationInterface {
@dev The function must deposit assets to the protocol.
@param entryTokenAddress Token to be transfered to integration contract from caller
@param entryTokenAmount Token amount to be transferes to integration contract from caller
@param \ Pool/Vault address to deposit fun... | 8,417,172 | [
1,
5752,
22936,
6682,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
22936,
1358,
288,
203,
225,
632,
5206,
1021,
445,
1297,
443,
1724,
7176,
358,
326,
1771,
18,
203,
225,
632,
891,
1241,
1345,
1887,
3155,
358,
506,
7412,
329,
358,
12040,
6835,
628,
4894,
203,
225,
632,
891,
1241,
134... |
./partial_match/4/0x64fD3aea4Df3b76348a8cC9F2A18930fD6927738/sources/RAYv2.sol | invalid index, we didn't find a single coverage opportunity, so this will tell the process to default to its normal procedure | return opportunitiesTokenValues.length;
| 8,750,898 | [
1,
5387,
770,
16,
732,
10242,
1404,
1104,
279,
2202,
11196,
1061,
655,
13352,
16,
1427,
333,
903,
9276,
326,
1207,
358,
805,
358,
2097,
2212,
12131,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
327,
1061,
655,
318,
1961,
1345,
1972,
18,
2469,
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,
-10... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
//using SafeMath for uint;
using SafeMath for uint256;
/********************************************************************************************/
/* ... | * @dev Check passenger insurance/ | function isInsured(address passenger, string flight) public view requireIsOperational returns(bool) {
return insurance[passenger][flight].isInsured;
}
| 12,989,623 | [
1,
1564,
1342,
14348,
2763,
295,
1359,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8048,
2055,
72,
12,
2867,
1342,
14348,
16,
533,
25187,
13,
1071,
1476,
2583,
2520,
2988,
287,
1135,
12,
6430,
13,
288,
203,
3639,
327,
2763,
295,
1359,
63,
5466,
14348,
6362,
19131,
8009,
291,
382,
2055,
72,
31,
203,
... |
./partial_match/3/0x14C7DFf4780df04D3847FC7D11ad7623e74583C8/sources/Marathon.sol | Lay ds vdv theo don vi | function getDsVDVTheoDoi(uint _doiThi) public view returns(VanDongVien [] memory) {
VanDongVien[] memory result = new VanDongVien[](soLuongVdvDoiThi[_doiThi]);
uint count = 0;
for(uint i=0; i<dsVDV.length; i++)
{
if(keccak256(abi.encodePacked(dsVDV[i].doiThi)) == keccak25... | 5,165,015 | [
1,
48,
528,
3780,
331,
15679,
326,
83,
2727,
13206,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2343,
87,
21544,
58,
1986,
83,
3244,
77,
12,
11890,
389,
27150,
1315,
77,
13,
1071,
1476,
1135,
12,
58,
304,
40,
932,
58,
77,
275,
5378,
3778,
13,
288,
203,
3639,
776,
304,
40,
932,
58,
77,
275,
8526,
3778,
563,
2... |
/* ==================================================================== */
/* Copyright (c) 2018 The CryptoRacing Project. All rights reserved.
/*
/* The first idle car race game of blockchain
/* ==================================================================== */
pragma solidity ^0.4.20;
... | Maximum number of vehicles per class | function CarsPresell(address _nftAddr) public {
addrAdmin = msg.sender;
addrService = msg.sender;
addrFinance = msg.sender;
tokenContract = RaceToken(_nftAddr);
carCountsLimit = 500;
carPresellCounter[10001] = 100;
carPresellCounter[10002] = 100;
carPre... | 5,406,374 | [
1,
13528,
1300,
434,
10489,
76,
8383,
1534,
667,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
385,
5913,
12236,
1165,
12,
2867,
389,
82,
1222,
3178,
13,
1071,
288,
203,
3639,
3091,
4446,
273,
1234,
18,
15330,
31,
203,
3639,
3091,
1179,
273,
1234,
18,
15330,
31,
203,
3639,
3091,
6187,
1359,
273,
1234,
18,
15330,
... |
/**
*/
/*
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
function symbol() external view returns (string memory);
function name() external view returns (string memory);... | Removes Liquidity once unlock Time is over,Only callable if liquidity Unlock time is over | function TeamRemoveLiquidity(bool addToStaking) public onlyTeam {
require(block.timestamp >= _liquidityUnlockTime, "Not yet unlocked");
_liquidityUnlockTime=block.timestamp+DefaultLiquidityLockTime;
IuniswapERC20 liquidityToken = IuniswapERC20(_uniswapPairAddress);
uint256 amount = l... | 14,526,654 | [
1,
6220,
511,
18988,
24237,
3647,
7186,
2647,
353,
1879,
16,
3386,
4140,
309,
4501,
372,
24237,
3967,
813,
353,
1879,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10434,
3288,
48,
18988,
24237,
12,
6430,
9604,
510,
6159,
13,
1071,
1338,
8689,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
1545,
389,
549,
372,
24237,
7087,
950,
16,
315,
1248,
4671,
25966,
8863,
203,
3639,
389,
549,
372... |
./partial_match/3/0x95E5925D0256602aaDC5201EcB17d1cF05e02906/sources/Fortuna.sol | uint public developerFee = 50;uint public tradingCompFee = 50;uint public stakerFee = 100;uint public liqproviderFee = 75;onetwothree | function _transfer(address _from, address _to, uint _value) internal {
require(_to != address(0x0));
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value >= balanceOf[_to]);
uint256 tenthousandthofamonut = _value.div(10000);
uint256 _bnum = (block.number - gen... | 5,108,111 | [
1,
11890,
1071,
8751,
14667,
273,
6437,
31,
11890,
1071,
1284,
7459,
2945,
14667,
273,
6437,
31,
11890,
1071,
384,
6388,
14667,
273,
2130,
31,
11890,
1071,
4501,
85,
6778,
14667,
273,
18821,
31,
265,
278,
91,
10370,
992,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
2713,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
92,
20,
10019,
203,
3639,
2583,
12,
12296,
951,
63,
67,
2080,
65,
1545,
389,
1... |
./full_match/8453/0x169C06b4cfB09bFD73A81e6f2Bb1eB514D75bB19/sources/src/dex/v2/LeetSwapV2Pair.sol | Accrue fees on token0 | function _update0(uint256 amount) internal {
uint256 _protocolFeesShare = ILeetSwapV2Factory(factory)
.protocolFeesShare();
address _protocolFeesRecipient = ILeetSwapV2Factory(factory)
.protocolFeesRecipient();
uint256 _protocolFeesAmount = (amount * _protocolFeesShar... | 11,542,429 | [
1,
8973,
86,
344,
1656,
281,
603,
1147,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2725,
20,
12,
11890,
5034,
3844,
13,
2713,
288,
203,
3639,
2254,
5034,
389,
8373,
2954,
281,
9535,
273,
467,
1682,
278,
12521,
58,
22,
1733,
12,
6848,
13,
203,
5411,
263,
8373,
2954,
281,
9535,
5621,
203,
3639,
1... |
/*
* Copyright 2021 ConsenSys Software Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Jump to the function | index = index + offset;
| 12,916,926 | [
1,
26743,
358,
326,
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... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
770,
273,
770,
397,
1384,
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,
-... |
./full_match/1/0x4c207f4acE27B9F29F7A2C9e4ECf8eb7dFe1cf7e/sources/contracts/NuCyberStaking.sol | * @notice Returns the list of tokens owned by `tokenOwner_`. @param tokenOwner_ address owning tokens/ | function stakedTokens(address tokenOwner_) public view returns (StakedToken[] memory) {
return _stakedTokens[tokenOwner_];
}
| 17,123,956 | [
1,
1356,
326,
666,
434,
2430,
16199,
635,
1375,
2316,
5541,
67,
8338,
225,
1147,
5541,
67,
1758,
25022,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
9477,
5157,
12,
2867,
1147,
5541,
67,
13,
1071,
1476,
1135,
261,
510,
9477,
1345,
8526,
3778,
13,
288,
203,
1377,
327,
389,
334,
9477,
5157,
63,
2316,
5541,
67,
15533,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-10... |
./full_match/43113/0x01a38735A7b4E0f3338bf96F46b5E60Edc668CD9/sources/contracts/drawax.sol | create new instance of GuessGame | function newGame() private {
_launchDay = block.timestamp;
resetGameGrid();
_randomResult = 0;
_winner = _START_ADDRESS;
_seed = 0;
_poolPrice = 0;
}
| 7,112,366 | [
1,
2640,
394,
791,
434,
30282,
12496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
394,
12496,
1435,
3238,
288,
203,
3639,
389,
20738,
4245,
273,
1203,
18,
5508,
31,
203,
540,
203,
3639,
2715,
12496,
6313,
5621,
203,
540,
203,
3639,
389,
9188,
1253,
273,
374,
31,
203,
540,
203,
3639,
389,
91,
7872,
... |
./full_match/1/0x471580a65c098E0344c812b6dB292347e0208B67/sources/contracts/UpEthereum.sol | wallet marketing bnb
| uint256 marketing; | 3,147,371 | [
1,
19177,
13667,
310,
324,
6423,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
13667,
310,
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,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.16;
contract chiToken {
/// @notice EIP-20 token name for this token
string public constant name = "DragonDAO";
/// @notice EIP-20 token symbol for this token
string public constant symbol = "CHI";
/// @notice EIP-20 token decimals for this tok... | * @notice Construct a new TT token @param account The initial account to grant all the tokens/ | constructor(address account) public {
balances[account] = uint128(_totalSupply);
emit Transfer(address(0), account, _totalSupply);
}
| 10,145,276 | [
1,
7249,
279,
394,
19912,
1147,
225,
2236,
1021,
2172,
2236,
358,
7936,
777,
326,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
2236,
13,
1071,
288,
203,
3639,
324,
26488,
63,
4631,
65,
273,
2254,
10392,
24899,
4963,
3088,
1283,
1769,
203,
3639,
3626,
12279,
12,
2867,
12,
20,
3631,
2236,
16,
389,
4963,
3088,
1283,
1769,
203,
565,
289,... |
./full_match/1/0x2ea6B54759170f8E68fae947ED9AbD2F8B290eB1/sources/contracts/ZXNProtocol.sol | PROD: 60 * 60 * 24 == 1 days; TEST: 2 * 60 == 2 min;
| cycleDuration = _cycleDuration; | 16,540,037 | [
1,
8025,
1212,
30,
4752,
225,
4752,
225,
4248,
422,
404,
4681,
31,
22130,
30,
576,
225,
4752,
422,
576,
1131,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
8589,
5326,
273,
389,
13946,
5326,
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,
... |
pragma solidity ^0.4.19;
/* Interface for ERC20 Tokens */
contract Token {
bytes32 public standard;
bytes32 public name;
bytes32 public symbol;
uint256 public totalSupply;
uint8 public decimals;
bool public allowTransactions;
mapping (address => uint256) public balanceOf;
map... | set last activity block number for maker
| lastActiveTransaction[t.maker] = block.number; | 2,554,823 | [
1,
542,
1142,
5728,
1203,
1300,
364,
312,
6388,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
1142,
3896,
3342,
63,
88,
18,
29261,
65,
1850,
273,
1203,
18,
2696,
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,
... |
./full_match/1/0x73cD8626b3cD47B009E68380720CFE6679A3Ec3D/sources/contracts/LockupPlans/VotingTokenLockupPlans.sol | @notice function for a beneficiary to redeem unlocked tokens from a group of plans @dev this will call an internal function for processing the actual redemption of tokens, which will withdraw unlocked tokens and deliver them to the beneficiary @dev this function will redeem only a partial amount of tokens based on a r... | function partialRedeemPlans(uint256[] calldata planIds, uint256 redemptionTime) external nonReentrant {
require(redemptionTime < block.timestamp, '!future');
_redeemPlans(planIds, redemptionTime);
}
| 4,922,647 | [
1,
915,
364,
279,
27641,
74,
14463,
814,
358,
283,
24903,
25966,
2430,
628,
279,
1041,
434,
21440,
225,
333,
903,
745,
392,
2713,
445,
364,
4929,
326,
3214,
283,
19117,
375,
434,
2430,
16,
1492,
903,
598,
9446,
25966,
2430,
471,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
4702,
426,
24903,
22846,
12,
11890,
5034,
8526,
745,
892,
4995,
2673,
16,
2254,
5034,
283,
19117,
375,
950,
13,
3903,
1661,
426,
8230,
970,
288,
203,
565,
2583,
12,
266,
19117,
375,
950,
411,
1203,
18,
5508,
16,
11817,
... |
pragma solidity ^0.5.0;
/// @title Provides helper functions to determine the validity of passed signatures.
/// @author Noah Zinsmeister
/// @dev Supports both prefixed and un-prefixed signatures.
contract SignatureVerifier {
/// @notice Determines whether the passed signature of `messageHash` was made by the pri... | @notice Allows providers to remove resolvers from an Identity. @param ein The EIN to remove resolvers from. @param resolvers A list of resolvers. | function removeResolversFor(uint ein, address[] memory resolvers) public _isProviderFor(ein) {
removeResolvers(ein, resolvers, true);
}
| 5,497,706 | [
1,
19132,
9165,
358,
1206,
24170,
628,
392,
7808,
18,
225,
16315,
1021,
512,
706,
358,
1206,
24170,
628,
18,
225,
24170,
432,
666,
434,
24170,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
28715,
1290,
12,
11890,
16315,
16,
1758,
8526,
3778,
24170,
13,
1071,
389,
291,
2249,
1290,
12,
13685,
13,
288,
203,
3639,
1206,
28715,
12,
13685,
16,
24170,
16,
638,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
./full_match/11155111/0x79C49737f6C7b7C0119316488812d6d4351d0a35/sources/contracts/Contract.sol | a mappingg of all wallet address that purchase entries for raffle, the number tracks the number of entries purchased per wallet
| mapping(address => uint256) public entryCount; | 3,800,092 | [
1,
69,
2874,
75,
434,
777,
9230,
1758,
716,
23701,
3222,
364,
767,
1403,
298,
16,
326,
1300,
13933,
326,
1300,
434,
3222,
5405,
343,
8905,
1534,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
1241,
1380,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: BSD-2-Clause
// SwingingMarketMaker.sol
// Copyright (c) 2021 Giry SAS. All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain ... | at this stage contract has `received` amount in token0 computing how much inbound_tkn one should ask for `gives` amount of outbound tokens NB p_10 has inbound_tkn.decimals() number of decimals ! p_10 has the decimals of inbound_tkn | function repostOffer(
address outbound_tkn,
address inbound_tkn,
) internal returns (bool) {
uint p_10 = price[inbound_tkn][outbound_tkn];
if (p_10 == 0) {
emit MissingPriceConverter(inbound_tkn, outbound_tkn);
return false;
}
uint wants = div_(
10**(IERC20(outbound_tkn).de... | 12,865,244 | [
1,
270,
333,
6009,
6835,
711,
1375,
15213,
68,
3844,
316,
1147,
20,
20303,
3661,
9816,
13357,
67,
16099,
82,
1245,
1410,
6827,
364,
1375,
75,
3606,
68,
3844,
434,
11663,
2430,
20096,
293,
67,
2163,
711,
13357,
67,
16099,
82,
18,
317... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
2071,
669,
10513,
12,
203,
565,
1758,
11663,
67,
16099,
82,
16,
203,
565,
1758,
13357,
67,
16099,
82,
16,
203,
225,
262,
2713,
1135,
261,
6430,
13,
288,
203,
565,
2254,
293,
67,
2163,
273,
6205,
63,
267,
3653,
67,
1... |
./partial_match/1313161554/0x964630b8327A6EB8730e3addcB8563d1e61b0100/sources/Comptroller.sol | * @title Exponential module for storing fixed-precision decimals @author Compound @dev Legacy contract for compatibility reasons with existing contracts that still use MathError @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places. Thus, if we wanted to store the 5.1, mantis... | contract Exponential is CarefulMath, ExponentialNoError {
function getExp(uint num, uint denom) internal pure returns (MathError, Exp memory) {
(MathError err0, uint scaledNumerator) = mulUInt(num, expScale);
if (err0 != MathError.NO_ERROR) {
}
(MathError err1, uint rational) = di... | 16,918,980 | [
1,
17972,
649,
1605,
364,
15729,
5499,
17,
14548,
15105,
225,
21327,
225,
22781,
6835,
364,
8926,
14000,
598,
2062,
20092,
716,
4859,
999,
2361,
668,
225,
7784,
353,
279,
1958,
1492,
9064,
15105,
598,
279,
5499,
6039,
434,
6549,
6970,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29770,
649,
353,
385,
834,
2706,
10477,
16,
29770,
649,
2279,
668,
288,
203,
203,
203,
565,
445,
336,
2966,
12,
11890,
818,
16,
2254,
10716,
13,
2713,
16618,
1135,
261,
10477,
668,
16,
7784,
3778,
13,
288,
203,
3639,
261,
... |
pragma solidity ^0.5.0;
// Copyright 2019 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applic... | * @notice Sets symbol. @dev Function requires: - msg.sender is a worker @param _symbol The value to which symbol is set. @return success_ True./ | function setSymbol(
string calldata _symbol
)
external
onlyWorker
returns (bool success_)
{
tokenSymbol = _symbol;
emit SymbolSet(tokenSymbol);
return true;
}
| 2,504,326 | [
1,
2785,
3273,
18,
225,
4284,
4991,
30,
1850,
300,
1234,
18,
15330,
353,
279,
4322,
225,
389,
7175,
1021,
460,
358,
1492,
3273,
353,
444,
18,
327,
2216,
67,
1053,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5335,
12,
203,
3639,
533,
745,
892,
389,
7175,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
6671,
203,
3639,
1135,
261,
6430,
2216,
67,
13,
203,
565,
288,
203,
3639,
1147,
5335,
273,
389,
7175,
31,
203,
203,
... |
./full_match/1/0x9f60a931c50596632E220384Ad7e90D2e9Eb7031/sources/Dorkland.sol | * @dev Indicates a failure with the token `receiver`. Used in transfers. @param receiver Address to which tokens are being transferred./ | constructor() ERC20("Shib20", "SHIB20") Ownable(_msgSender()) {
_totalSupply = 10 ** 9 * 10 ** decimals();
_isExcludedFromMaxWallet[owner()] = true;
_isExcludedFromMaxWallet[address(this)] = true;
_isExcludedFromMaxWallet[address(0)] = true;
_mint(owner(), _totalSupply);
... | 2,940,555 | [
1,
23741,
279,
5166,
598,
326,
1147,
1375,
24454,
8338,
10286,
316,
29375,
18,
225,
5971,
5267,
358,
1492,
2430,
854,
3832,
906,
4193,
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... | [
1,
1,
1,
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,
3885,
1435,
4232,
39,
3462,
2932,
1555,
495,
3462,
3113,
315,
2664,
13450,
3462,
7923,
14223,
6914,
24899,
3576,
12021,
10756,
288,
203,
3639,
389,
4963,
3088,
1283,
273,
1728,
2826,
2468,
380,
1728,
2826,
15105,
5621,
203,
203,... |
./full_match/5/0x3F8df76F2FF3E427b1A66c67f3291F2C29b3D971/sources/contracts/crowdFundingDapp.sol | this will allow campaigns to be indexed like campaigns[0]
| mapping(uint256 => Campaign) public campaigns; | 1,928,047 | [
1,
2211,
903,
1699,
8965,
87,
358,
506,
8808,
3007,
8965,
87,
63,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
17820,
13,
1071,
8965,
87,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.8 <0.7.0;
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "./shared/libraries/Percentages.sol";
import "./shared/modules/GranteeConstructor.sol";
import "./shared/storage/Funding.sol";
import "./shared/storage/BaseGrant.sol";
/**
* @tit... | * @title Grant for Eth2. @dev Managed (n) Funding Deadline (n) Contract expiry (n) With Token (n) Percentage based allocation (y) Withdraw (pull payment) (n) This is a simplified grant which behaves as a simple payment splitte... | contract UnmanagedStream is ReentrancyGuard, BaseGrant, GranteeConstructor, Funding {
constructor(
address[] memory _grantees,
uint256[] memory _amounts,
address _currency,
bytes memory _uri,
bytes memory _extraData
)
GranteeConstructor(_grantees, _amounts, tru... | 12,825,489 | [
1,
9021,
364,
512,
451,
22,
18,
225,
10024,
5397,
261,
82,
13,
1377,
478,
14351,
23967,
1369,
5411,
261,
82,
13,
1377,
13456,
10839,
2398,
261,
82,
13,
1377,
3423,
3155,
5375,
261,
82,
13,
1377,
21198,
410,
2511,
13481,
261,
93,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1351,
19360,
1228,
353,
868,
8230,
12514,
16709,
16,
3360,
9021,
16,
611,
2450,
22579,
6293,
16,
478,
14351,
288,
203,
203,
203,
203,
565,
3885,
12,
203,
3639,
1758,
8526,
3778,
389,
75,
2450,
736,
281,
16,
203,
3639,
2254... |
./full_match/80001/0x8c9F2c3B36939583Ecd3511aC8826aE258eD6f8E/sources/contracts/smart-wallet/utils/Helpers.sol | * keccak function over calldata. @dev copy calldata into memory, do keccak and drop allocated memory. Strangely, this is more efficient than letting solidity do it./ | function calldataKeccak(bytes calldata data) pure returns (bytes32 ret) {
function _packValidationData(
bool sigFailed,
uint48 validUntil,
uint48 validAfter
}
assembly {
let mem := mload(0x40)
let len := data.length
calldatacopy(mem, data.offset, len)
ret := keccak256(me... | 5,560,852 | [
1,
79,
24410,
581,
445,
1879,
745,
892,
18,
225,
1610,
745,
892,
1368,
3778,
16,
741,
417,
24410,
581,
471,
3640,
11977,
3778,
18,
3978,
539,
2357,
16,
333,
353,
1898,
14382,
2353,
2231,
1787,
18035,
560,
741,
518,
18,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
745,
892,
47,
24410,
581,
12,
3890,
745,
892,
501,
13,
16618,
1135,
261,
3890,
1578,
325,
13,
288,
203,
915,
389,
2920,
4354,
751,
12,
203,
565,
1426,
3553,
2925,
16,
203,
565,
2254,
8875,
923,
9716,
16,
203,
565,
2254,
... |
// This is a social media smart contract that allows people to publish strings of text in short formats with a focus on hashtags so that they can follow, read and be in touch with the latest content regarding those hashtags. There will be a mapping os top hashtags. A struct for each piece of content with the date, auth... | @notice To get the contents for a particular hashtag. It returns the ids because we can't return arrays of strings and we can't return structs so the user has to manually make a new request for each piece of content using the function below. @param _hashtag The hashtag from which get content @param _amount The quantit... | function getContentIdsByHashtag(bytes32 _hashtag, uint256 _amount) public view returns(uint256[] memory) {
uint256[] memory ids = new uint256[](_amount);
for(uint256 i = 0; i < _amount; i++) {
ids[i] = contentByHashtag[_hashtag][i].id;
}
return ids;
}
| 1,797,527 | [
1,
774,
336,
326,
2939,
364,
279,
6826,
711,
647,
346,
18,
2597,
1135,
326,
3258,
2724,
732,
848,
1404,
327,
5352,
434,
2064,
471,
732,
848,
1404,
327,
8179,
1427,
326,
729,
711,
358,
10036,
1221,
279,
394,
590,
364,
1517,
11151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5154,
2673,
858,
5582,
647,
346,
12,
3890,
1578,
389,
5332,
647,
346,
16,
2254,
5034,
389,
8949,
13,
1071,
1476,
1135,
12,
11890,
5034,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
8526,
3778,
3258,
273,
394,
2254,
5034,... |
pragma solidity ^0.6.3;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract SecureAuction is ERC721 {
using SafeMath for uint256;
/**** STATE VARIABLES ***** */
//static and constant state variables
mapping(uint256 =... | check if item exists | modifier auctionItemExist(uint256 id) {
require(_auctionItems[id].exists, "Not Found");
_;
}
| 5,442,823 | [
1,
1893,
309,
761,
1704,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
279,
4062,
1180,
4786,
12,
11890,
5034,
612,
13,
288,
203,
3639,
2583,
24899,
69,
4062,
3126,
63,
350,
8009,
1808,
16,
315,
1248,
10750,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
27699,
2,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
/// @title defined the interface that will handle black list
contract BlackInterface {
/// 验证,防止错误设置合约地址
function isIBlack() public pure returns (bool);
function validAddress(address _user) public view returns (bool);
} | @title defined the interface that will handle black list | contract BlackInterface {
function isIBlack() public pure returns (bool);
function validAddress(address _user) public view returns (bool);
} | 12,788,885 | [
1,
2178,
326,
1560,
716,
903,
1640,
7721,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22467,
1358,
288,
203,
203,
565,
445,
353,
45,
13155,
1435,
1071,
16618,
1135,
261,
6430,
1769,
203,
203,
565,
445,
923,
1887,
12,
2867,
389,
1355,
13,
1071,
1476,
1135,
261,
6430,
1769,
203,
97,
2,
-100,
-100,
-100,
-100,... |
./full_match/1/0x4f4c93E269eba98f7CEF6f1Ca9BBEC3F4145eD0A/sources/contracts/nfts/lz/NonblockingReceiver.sol | only internal transaction handle incoming message | function onLzReceive(
uint16 _srcChainId,
bytes memory _srcAddress,
uint64 _nonce,
bytes memory _payload
) external {
require(
msg.sender == address(this),
"NBR: caller must be Bridge."
);
_lzReceive(_srcChainId, _srcAddress, _nonc... | 2,907,755 | [
1,
3700,
2713,
2492,
1640,
6935,
883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
603,
48,
94,
11323,
12,
203,
3639,
2254,
2313,
389,
4816,
3893,
548,
16,
203,
3639,
1731,
3778,
389,
4816,
1887,
16,
203,
3639,
2254,
1105,
389,
12824,
16,
203,
3639,
1731,
3778,
389,
7648,
203,
565,
262,
3903,
288,
2... |
./full_match/137/0xD12345Cd15352ef5d4259BD2a918Fcb6943ce7a4/sources/contracts/core/connext/libraries/SwapUtilsExternal.sol | * @notice Return A in its raw precision @dev See the StableSwap paper for details @param self Swap struct to read from @return A parameter in its raw precision form/ a0 + (a1 - a0) * (block.timestamp - t0) / (t1 - t0) a0 - (a0 - a1) * (block.timestamp - t0) / (t1 - t0) | function _getAPrecise(Swap storage self) internal view returns (uint256) {
if (block.timestamp < t1) {
if (a1 > a0) {
return a0 + ((a1 - a0) * (block.timestamp - t0)) / (t1 - t0);
return a0 - ((a0 - a1) * (block.timestamp - t0)) / (t1 - t0);
}
return a1;
}
}
| 4,729,566 | [
1,
990,
432,
316,
2097,
1831,
6039,
225,
2164,
326,
934,
429,
12521,
15181,
364,
3189,
225,
365,
12738,
1958,
358,
855,
628,
327,
432,
1569,
316,
2097,
1831,
6039,
646,
19,
279,
20,
397,
261,
69,
21,
300,
279,
20,
13,
225,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
588,
37,
1386,
30708,
12,
12521,
2502,
365,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
203,
565,
309,
261,
2629,
18,
5508,
411,
268,
21,
13,
288,
203,
1377,
309,
261,
69,
21,
405,
279,
20,
13,
288,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @notice Gets the TotalHarvestData for a specified reward token @param _rewardToken The reward token @return totalHarvestData_ The TotalHarvestData | function getTotalHarvestDataForRewardToken(address _rewardToken)
public
view
override
returns (TotalHarvestData memory totalHarvestData_)
{
return rewardTokenToTotalHarvestData[_rewardToken];
}
| 6,114,889 | [
1,
3002,
326,
10710,
44,
297,
26923,
751,
364,
279,
1269,
19890,
1147,
225,
389,
266,
2913,
1345,
1021,
19890,
1147,
327,
2078,
44,
297,
26923,
751,
67,
1021,
10710,
44,
297,
26923,
751,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
44,
297,
26923,
751,
1290,
17631,
1060,
1345,
12,
2867,
389,
266,
2913,
1345,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
5269,
44,
297,
26923,
751,
3778,
2078,
44,
297,
26923,
75... |
/**
*Submitted for verification at Etherscan.io on 2021-10-07
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arith... | * @dev Implementation of the {IERC165} interface. Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual overri... | abstract contract ERC165 is IERC165 {
}
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
| 1,977 | [
1,
13621,
434,
326,
288,
45,
654,
39,
28275,
97,
1560,
18,
30131,
716,
2545,
358,
2348,
4232,
39,
28275,
1410,
6811,
628,
333,
6835,
471,
3849,
288,
28064,
1358,
97,
358,
866,
364,
326,
3312,
1560,
612,
716,
903,
506,
3260,
18,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
28275,
353,
467,
654,
39,
28275,
288,
203,
97,
203,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
1560,
548,
422,
618,
12,
45,
654,
... |
//Address: 0x1e1e933ca258e41d15061c39f70358f009605282
//Contract name: ProgressiveToken
//Balance: 0 Ether
//Verification Date: 6/4/2018
//Transacion Count: 4
// CODE STARTS HERE
pragma solidity 0.4.21;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraDa... | Public variables of the token */ This creates an array with all balances */ mappping to store allowances. */ This generates a public event on the blockchain that will notify clients */ This generates a public event on the blockchain that will notify clients */ Initializes contract with initial supply tokens to the cre... | ) public {
}
| 958,331 | [
1,
4782,
3152,
434,
326,
1147,
342,
1220,
3414,
392,
526,
598,
777,
324,
26488,
342,
852,
84,
1382,
358,
1707,
1699,
6872,
18,
342,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
342,
1220,
6026,
279,
1071,
871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1082,
1377,
262,
1071,
288,
203,
202,
97,
203,
203,
203,
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... |
pragma solidity ^0.5.10;
/** @title Relay */
/** @author Summa (https://summa.one) */
import {SafeMath} from "@summa-tx/bitcoin-spv-sol/contracts/SafeMath.sol";
import {TypedMemView} from "@summa-tx/bitcoin-spv-sol/contracts/TypedMemView.sol";
import {ViewBTC} from "@summa-tx/bitcoin-spv-sol/contracts/ViewBTC.sol";
i... | @notice Adds headers to storage, performs additional validation of retarget @dev Checks the retarget, the heights, and the linkage @param _oldStart The first header in the difficulty period being closed @param _oldEnd The last header in the dif... | function _addHeadersWithRetarget(
bytes29 _oldStart,
bytes29 _oldEnd,
bytes29 _headers
) internal returns (bool) {
uint256 _startHeight = _findHeight(_oldStart.hash256());
uint256 _endHeight = _findHeight(_oldEnd.hash256());
require(
_endHeight % 201... | 6,484,875 | [
1,
3655,
1607,
358,
2502,
16,
11199,
3312,
3379,
434,
325,
826,
21821,
13074,
326,
325,
826,
16,
326,
24779,
16,
471,
326,
1692,
410,
282,
389,
1673,
1685,
2398,
1021,
1122,
1446,
316,
326,
3122,
21934,
3879,
3832,
4375,
282,
389,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
3121,
1190,
7055,
826,
12,
203,
3639,
1731,
5540,
389,
1673,
1685,
16,
203,
3639,
1731,
5540,
389,
1673,
1638,
16,
203,
3639,
1731,
5540,
389,
2485,
203,
565,
262,
2713,
1135,
261,
6430,
13,
288,
203,
203,
... |
pragma solidity 0.4.24;
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the s... | @dev Validation: ensure that the toAddress is not set to the empty address./ | function validateToAddress(address toAddress)
internal pure returns (bool)
{
return toAddress != 0x0;
}
| 1,732,013 | [
1,
4354,
30,
3387,
716,
326,
358,
1887,
353,
486,
444,
358,
326,
1008,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1954,
774,
1887,
12,
2867,
358,
1887,
13,
203,
3639,
2713,
16618,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
358,
1887,
480,
374,
92,
20,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x7902a4929d9Ae3eEcC147556BC113B953c0e1b18/sources/contracts/bases/ToucanCarbonOffsetsBase.sol | @dev Internal function retire and mint certificates Retire provided amount Mint certificateslither-disable-next-line unused-return | function _retireAndMintCertificate(
address retiringEntity,
string calldata retiringEntityString,
address beneficiary,
string calldata beneficiaryString,
string calldata retirementMessage,
uint256 amount
) internal virtual whenNotPaused {
uint256 retiremen... | 869,991 | [
1,
3061,
445,
325,
577,
471,
312,
474,
12522,
17100,
577,
2112,
3844,
490,
474,
12522,
80,
2927,
17,
8394,
17,
4285,
17,
1369,
10197,
17,
2463,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1349,
577,
1876,
49,
474,
4719,
12,
203,
3639,
1758,
325,
11256,
1943,
16,
203,
3639,
533,
745,
892,
325,
11256,
1943,
780,
16,
203,
3639,
1758,
27641,
74,
14463,
814,
16,
203,
3639,
533,
745,
892,
27641,
74,
144... |
// produced by the Solididy File Flattener (c) David Appleton 2018
// contact : dave@akomba.com
// released under Apache 2.0 licence
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimizati... | note: the price of 1 GTA is in wei, but the token transfer expects the amount in 'token wei'so we're missing 10*18happy discount! | function buy() payable public returns (uint256){
uint256 value = msg.value.mul(1 ether);
uint256 _buyPrice = tokenBuyPrice;
if (buyDiscount > 0) {
_buyPrice = _buyPrice.sub(_buyPrice.mul(buyDiscount).div(100));
}
uint256 amount = value.div(_buyPrice);
requ... | 13,002,847 | [
1,
7652,
30,
326,
6205,
434,
404,
611,
9833,
353,
316,
732,
77,
16,
1496,
326,
1147,
7412,
10999,
326,
3844,
316,
296,
2316,
732,
77,
1807,
83,
732,
4565,
3315,
13822,
28,
76,
438,
2074,
12137,
5,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1435,
8843,
429,
1071,
1135,
261,
11890,
5034,
15329,
203,
3639,
2254,
5034,
460,
273,
1234,
18,
1132,
18,
16411,
12,
21,
225,
2437,
1769,
203,
3639,
2254,
5034,
389,
70,
9835,
5147,
273,
1147,
38,
9835,
5147,
31... |
./full_match/8453/0xB89c125b433b854390Fddb22E8a1bDA4281e2946/sources/contracts/farms/BasetasticStaking.sol | handle the transfer of reward tokens via `transferFrom` to reduce the number of transactions required and ensure correctness of the reward amount | function notifyRewardAmount(address _rewardsToken, uint256 reward) external updateReward(address(0)) {
require(rewardDistributors[_rewardsToken][msg.sender], "MultiFeeDistribution::notifyRewardAmount: Only reward distributors allowed");
require(reward > 0, "MultiFeeDistribution::notifyRewardAmount: ... | 11,553,895 | [
1,
4110,
326,
7412,
434,
19890,
2430,
3970,
1375,
13866,
1265,
68,
358,
5459,
326,
1300,
434,
8938,
1931,
471,
3387,
3434,
4496,
434,
326,
19890,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5066,
17631,
1060,
6275,
12,
2867,
389,
266,
6397,
1345,
16,
2254,
5034,
19890,
13,
3903,
1089,
17631,
1060,
12,
2867,
12,
20,
3719,
288,
203,
3639,
2583,
12,
266,
2913,
1669,
665,
13595,
63,
67,
266,
6397,
1345,
6362,
... |
pragma solidity 0.4.26;
import "./interfaces/IConsumerPriceOracle.sol";
import "./Owned.sol";
import "./SafeMath.sol";
interface Medianizer {
function peek() external view returns (bytes32, bool);
}
contract MocUSDToBTCOracle is IConsumerPriceOracle, Owned {
using SafeMath for uint256;
uint256 public constant DE... | * @dev initializes a ne MoC oracle @param _mocOracleAddress MoC oracle address/ | constructor(address _mocOracleAddress) public {
setMoCOracleAddress(_mocOracleAddress);
}
| 2,531,630 | [
1,
6769,
3128,
279,
1073,
14987,
39,
20865,
225,
389,
81,
504,
23601,
1887,
14987,
39,
20865,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
12316,
12,
2867,
389,
81,
504,
23601,
1887,
13,
1071,
288,
203,
202,
202,
542,
16727,
3865,
16873,
1887,
24899,
81,
504,
23601,
1887,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/4/0x82b902E5F8C52b1025b4cB400fB54657708a950f/sources/contracts/evaluator.sol | Retrieving a random signature and associated address Checking that student contract is able to extract the address from the signature Incrementing next value store rank ERC721 points | function ex3_extractAddressFromSignature()
public
{
address signatureSender = extractAddress(randomBytes32ToSign[nextValueStoreRank] , associatedSignatures[nextValueStoreRank]);
address retrievedAddressByExerciceSolution = studentExerciceSolution[msg.sender].getAddressFromSignatur... | 12,305,923 | [
1,
3848,
6282,
279,
2744,
3372,
471,
3627,
1758,
24471,
716,
18110,
6835,
353,
7752,
358,
2608,
326,
1758,
628,
326,
3372,
17883,
310,
1024,
460,
1707,
6171,
4232,
39,
27,
5340,
3143,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
431,
23,
67,
8004,
1887,
1265,
5374,
1435,
7010,
565,
1071,
7010,
565,
288,
540,
203,
3639,
1758,
3372,
12021,
273,
2608,
1887,
12,
9188,
2160,
1578,
774,
2766,
63,
4285,
620,
2257,
12925,
65,
269,
3627,
23918,
63,
4285... |
pragma solidity ^ 0.5.17;
import "./SafeMath.sol";
import "./Iupgradable.sol";
contract ClaimsData is Iupgradable {
using SafeMath for uint;
struct Claim {
uint coverId;
uint dateUpd;
}
struct Vote {
address voter;
uint tokens;
uint claimId;
int8 verdi... | * @dev Gets the status number of a given claim. @param _claimId Claim id. @return statno Status Number./ | function getClaimStatusNumber(uint _claimId) external view returns(uint claimId, uint statno) {
return (_claimId, claimsStatus[_claimId]);
}
| 5,407,128 | [
1,
3002,
326,
1267,
1300,
434,
279,
864,
7516,
18,
225,
389,
14784,
548,
18381,
612,
18,
327,
610,
2135,
2685,
3588,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13674,
4581,
1482,
1854,
12,
11890,
389,
14784,
548,
13,
3903,
1476,
1135,
12,
11890,
7516,
548,
16,
2254,
610,
2135,
13,
288,
203,
3639,
327,
261,
67,
14784,
548,
16,
11955,
1482,
63,
67,
14784,
548,
19226,
203,
565,
... |
./full_match/1/0x8627e113715D6E5E6d59d8f34414160bac2415E4/sources/contracts/producers/crowdfunds/crowdfund-with-editions/CrowdfundWithEditionsStorage.sol | @notice Current reentrancy status -- used by the modifier. | uint256 internal reentrancy_status;
| 4,921,257 | [
1,
3935,
283,
8230,
12514,
1267,
1493,
1399,
635,
326,
9606,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2713,
283,
8230,
12514,
67,
2327,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// ERC721URIStorage allows you to set tokenURI after minting
// ERC721Holder ensures that a smart contract can hold NFTs
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder... | used to get the msg.value for secondary sales
| uint256 public latestReceived; | 1,783,572 | [
1,
3668,
358,
336,
326,
1234,
18,
1132,
364,
9946,
272,
5408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
4891,
8872,
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,
... |
./full_match/80001/0xBc42BC505C68B3D015C900223536D1ddd4caE152/sources/contracts/Contract.sol | uint256 tokenIdToMint = _currentIndex; Verify and process payload. address receiver = _req.to; | function mintWithSignature1(
MintRequest calldata _req,
bytes calldata _signature
) external returns (address signer) {
signer = _processRequest(_req, _signature);
return signer;
}
| 5,622,324 | [
1,
11890,
5034,
1147,
28803,
49,
474,
273,
389,
2972,
1016,
31,
8553,
471,
1207,
2385,
18,
1758,
5971,
273,
389,
3658,
18,
869,
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,
... | [
1,
1,
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,
312,
474,
1190,
5374,
21,
12,
203,
3639,
490,
474,
691,
745,
892,
389,
3658,
16,
203,
3639,
1731,
745,
892,
389,
8195,
203,
565,
262,
3903,
1135,
261,
2867,
10363,
13,
288,
203,
203,
3639,
10363,
273,
389,
2567,
691,
... |
./partial_match/1/0x5d2F6c3bEFAe73276baCC8017cCb907EE921149F/sources/CypherShia.sol | * @dev Sets the values for {name} and {symbol}. The default value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction./ | constructor() Ownable(msg.sender) {
_mint(msg.sender, 100_000_000 * 10 ** decimals());
feeAddress = msg.sender;
}
| 4,214,712 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
1021,
805,
460,
434,
288,
31734,
97,
353,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
97,
1846,
1410,
30402,
518,
18,
4826,
2795,
434,
4259,
924,
854,
11732,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
14223,
6914,
12,
3576,
18,
15330,
13,
288,
203,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
2130,
67,
3784,
67,
3784,
380,
1728,
2826,
15105,
10663,
203,
3639,
14036,
1887,
273,
1234,
18,
15330,
31,
203,
565,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-06
*/
// File: NFT_project/DEPLOYED_CONTRACTS/DEPLOYED_v2/Kami_MAINNET_deployed/For_publishing_etherscan/SpaceMonContract/ERC165/IERC165.sol
pragma solidity ^0.7.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org... | * @dev When accumulated SpaceMon tokens have last been claimed for a Kami index/ | function lastClaim(uint256 tokenIndex) public view returns (uint256) {
require(IKami(_kamiAddress).ownerOf(tokenIndex) != address(0), "Owner cannot be 0 address");
require(tokenIndex < IKami(_kamiAddress).totalSupply(), "NFT at index has not been minted yet");
uint256 lastClaimed = uint256(... | 15,204,758 | [
1,
9434,
24893,
14059,
11415,
2430,
1240,
1142,
2118,
7516,
329,
364,
279,
25188,
77,
770,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1142,
9762,
12,
11890,
5034,
1147,
1016,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
45,
47,
26223,
24899,
79,
26223,
1887,
2934,
8443,
951,
12,
2316,
1016,
13,
480,
1758,
12,
20,
3631,
315,
... |
./full_match/3/0x063FE4544C683B0AFcf7b2Fba4648313E35CA3aE/sources/browser/KeyStoreHRMSUpdated.sol | Modifier Check for Adding and Getting Individual (Own) Data from Blockchain/ | ) {
require(
access[_address] == true,
"No Access"
);
bytes32 keyCheck;
keyCheck = keyAddr[_address];
require(
keyCheck == keccak256(abi.encode(_smartkey)),
"Smart key is incorrect"
);
_;
}
| 14,131,431 | [
1,
9829,
2073,
364,
21240,
471,
26602,
24147,
261,
5460,
13,
1910,
628,
3914,
5639,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
288,
203,
3639,
2583,
12,
203,
5411,
2006,
63,
67,
2867,
65,
422,
638,
16,
203,
5411,
315,
2279,
5016,
6,
203,
3639,
11272,
203,
3639,
1731,
1578,
225,
498,
1564,
31,
203,
3639,
498,
1564,
273,
498,
3178,
63,
67,
28... |
/**
* Kleros Liquid
* https://contributing.kleros.io/smart-contract-workflow
* @reviewers: [@clesaege]
* @auditors: []
* @bounties: [{duration: 14days, link: https://github.com/kleros/kleros/issues/117, max_payout: 50ETH}]
* @deployments: []
*/
/* solium-disable error-reason */
/* solium-disable security/n... | * @dev Changes the `RNGenerator` storage variable. @param _RNGenerator The new value for the `RNGenerator` storage variable./ | function changeRNGenerator(RNG _RNGenerator) external onlyByGovernor {
RNGenerator = _RNGenerator;
if (phase == Phase.generating) {
RNBlock = block.number + 1;
RNGenerator.requestRN(RNBlock);
}
}
| 5,495,841 | [
1,
7173,
326,
1375,
54,
50,
3908,
68,
2502,
2190,
18,
282,
389,
54,
50,
3908,
1021,
394,
460,
364,
326,
1375,
54,
50,
3908,
68,
2502,
2190,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2549,
54,
50,
3908,
12,
54,
4960,
389,
54,
50,
3908,
13,
3903,
1338,
858,
43,
1643,
29561,
288,
203,
3639,
534,
50,
3908,
273,
389,
54,
50,
3908,
31,
203,
3639,
309,
261,
13961,
422,
19459,
18,
3441,
1776,
13,
288,
... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contrac... | * @notice Return mint price./ | function getMintPrice() public view returns (uint64) {
return conf.price;
}
| 10,053,782 | [
1,
990,
312,
474,
6205,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2108,
474,
5147,
1435,
1071,
1476,
1135,
261,
11890,
1105,
13,
288,
203,
3639,
327,
2195,
18,
8694,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x34D8e6DEF2dBB1973887aD22d0903713C27602DF/sources/MITRO.sol | * @dev Standard ERC20 token with burning and optional functions implemented. For full specification of ERC-20 standard see:/ | contract MITRO is ERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
pragma solidity ^0.5.6;
constructor(string memory name, string memory symbol, uint8 decimals, uint256 totalSupply, address payable feeReceiver, address tokenOwnerAddress) public payable {
_name = nam... | 9,310,906 | [
1,
8336,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
1285,
1457,
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,
683,
9454,
18035,
560,
3602,
20,
18,
25,
18,
26... |
./partial_match/1/0xaF1f5e1c19cB68B30aAD73846eFfDf78a5863319/sources/VaultRegistry.sol | get the latest vault for a token and type. legacy is type 0. type 0 are legacy, not from this registry | function _latestVaultOfType(
address _token,
uint256 _type
) internal view returns (address) {
if (_type == 0) {
return _fetchFromLegacy(_token);
}
uint256 length = _numVaults(_token);
if (length == 0) {
return address(0);
}
... | 2,622,048 | [
1,
588,
326,
4891,
9229,
364,
279,
1147,
471,
618,
18,
8866,
353,
618,
374,
18,
618,
374,
854,
8866,
16,
486,
628,
333,
4023,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13550,
12003,
18859,
12,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
2254,
5034,
389,
723,
203,
565,
262,
2713,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
309,
261,
67,
723,
422,
374,
13,
288,
203,
5411,
327,
389,... |
// Copyright 2018 Parity Technologies Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | EVENTS STATE System address, used by the block sealer. Address of the inner validator set contract MODIFIERS | contract RelaySet is Owned, ValidatorSet {
event NewRelayed(address indexed old, address indexed current);
address public systemAddress;
RelayedOwnedSet public relayedSet;
modifier onlySystem() {
require(msg.sender == systemAddress);
_;
}
modifier onlyRelayed() {
require(msg.sender == address(relayedS... | 12,604,763 | [
1,
29221,
7442,
2332,
1758,
16,
1399,
635,
326,
1203,
695,
6774,
18,
5267,
434,
326,
3443,
4213,
444,
6835,
8663,
10591,
55,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4275,
528,
694,
353,
14223,
11748,
16,
9150,
694,
288,
203,
202,
2575,
1166,
27186,
329,
12,
2867,
8808,
1592,
16,
1758,
8808,
783,
1769,
203,
203,
203,
202,
2867,
1071,
2619,
1887,
31,
203,
202,
27186,
329,
5460,
329,
694... |
/// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.0;
contract TimeRestricted {
uint immutable public timeRestrictionEnds;
/// @notice deploy `TimeRestricted` contract.
/// @param _timeRestrictionEnds Unix time for restriction to lift.
constructor(uint _timeRestrictionEnds) {
... | @notice deploy `TimeRestricted` contract. @param _timeRestrictionEnds Unix time for restriction to lift. | constructor(uint _timeRestrictionEnds) {
timeRestrictionEnds = _timeRestrictionEnds;
}
| 1,823,765 | [
1,
12411,
1375,
950,
18784,
68,
6835,
18,
225,
389,
957,
11670,
24980,
9480,
813,
364,
9318,
358,
28080,
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,
3885,
12,
11890,
389,
957,
11670,
24980,
13,
288,
203,
3639,
813,
11670,
24980,
273,
389,
957,
11670,
24980,
31,
21281,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-02-02
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overf... | utility to burn network tokens | function burnNetworkTokens(IConverterAnchor _poolAnchor, uint256 _amount) private {
networkTokenGovernance.burn(_amount);
systemStore.decNetworkTokensMinted(_poolAnchor, _amount);
}
| 2,294,322 | [
1,
1367,
560,
358,
18305,
2483,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
3906,
5157,
12,
45,
5072,
11605,
389,
6011,
11605,
16,
2254,
5034,
389,
8949,
13,
3238,
288,
203,
3639,
2483,
1345,
43,
1643,
82,
1359,
18,
70,
321,
24899,
8949,
1769,
203,
3639,
2619,
2257,
18,
4924,
3906,
5157,... |
./full_match/1/0x65BCe046253f7B644a062252E89a8C2337F08A3d/sources/RewardEscrowV2.sol | Views Restricted functions Inheritance Internal references https:docs.peri.finance/contracts/RewardEscrow | contract RewardEscrowV2 is BaseRewardEscrowV2 {
mapping(address => uint256) public totalBalancePendingMigration;
bytes32 private constant CONTRACT_PERIFINANCE_BRIDGE_OPTIMISM = "PeriFinanceBridgeToOptimism";
bytes32 private constant CONTRACT_REWARD_ESCROW = "RewardEscrow";
bytes32 private constant CO... | 16,510,740 | [
1,
9959,
29814,
4186,
25953,
1359,
3186,
5351,
2333,
30,
8532,
18,
457,
77,
18,
926,
1359,
19,
16351,
87,
19,
17631,
1060,
6412,
492,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
534,
359,
1060,
6412,
492,
58,
22,
353,
3360,
17631,
1060,
6412,
492,
58,
22,
288,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
2078,
13937,
8579,
10224,
31,
203,
203,
203,
203,
565,
1731,
1578,
3238,
5381,
8020,
... |
./full_match/44787/0xFc4feC9521556b3ee5CB696CEB9A16C40297194d/sources/src/vaults/SpiralsCeloImpactVault.sol | * @dev Returns StableToken contract (cUSD)./ | function getStableToken() internal view returns (IERC20Upgradeable) {
address stableTokenAddr = IRegistry(c_celoRegistry)
.getAddressForStringOrDie("StableToken");
return IERC20Upgradeable(stableTokenAddr);
}
| 13,280,225 | [
1,
1356,
934,
429,
1345,
6835,
261,
71,
3378,
40,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21491,
429,
1345,
1435,
2713,
1476,
1135,
261,
45,
654,
39,
3462,
10784,
429,
13,
288,
203,
3639,
1758,
14114,
1345,
3178,
273,
467,
4243,
12,
71,
67,
2183,
83,
4243,
13,
203,
5411,
263,
588,
1887,
1290,
780,
28850,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
/**
* @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 o... | * @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 Context, IERC20, IERC20Metadata {
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
}
constructor (string memory name_, string m... | 6,836 | [
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,
1772,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import './IERC777Token.sol';
import './IMintableToken.sol';
import './Ownable.sol';
import './SafeMath.sol';
/**
* @dev Implementation of the IERC777 Token Interface.
*/
contract DaoToken is IERC777Token, IMintableToken, Ownable {
// Token name
string ... | * @dev Destroys amount of tokens from the sender’s account (caller's address), reducing the total supply. @param amount number of tokens to burn @param data data generated by the holder/ | function burn(uint256 amount, bytes calldata data) external override {}
| 2,522,103 | [
1,
9378,
28599,
3844,
434,
2430,
628,
326,
5793,
163,
227,
252,
87,
2236,
261,
16140,
1807,
1758,
3631,
9299,
2822,
326,
2078,
14467,
18,
225,
3844,
1300,
434,
2430,
358,
18305,
225,
501,
501,
4374,
635,
326,
10438,
19,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
11890,
5034,
3844,
16,
1731,
745,
892,
501,
13,
3903,
3849,
2618,
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... |
/**
* Copyright 2016 Everex https://everex.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Sets configuration option | function setConfig(string _key, uint256 _value) onlyOwner {
chainyConfig[_key] = _value;
}
| 12,723,723 | [
1,
2785,
1664,
1456,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15517,
12,
1080,
389,
856,
16,
2254,
5034,
389,
1132,
13,
1338,
5541,
288,
203,
3639,
2687,
93,
809,
63,
67,
856,
65,
273,
389,
1132,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/11155111/0x260C2D98c4c14845d3B9283A0D2B21C150b2e766/sources/contracts/ERC1410Standard.sol | Declare the RedeemedByPartition event Declare the IssuedByPartition event | contract ERC1410Standard is ERC1410Operator {
using SafeMath for uint256;
event RedeemedByPartition(
bytes32 indexed partition,
address indexed operator,
address indexed from,
uint256 value
);
event IssuedByPartition(
bytes32 indexed partition,
address i... | 3,791,819 | [
1,
3456,
834,
326,
868,
24903,
18696,
7003,
871,
16110,
834,
326,
9310,
5957,
858,
7003,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3461,
2163,
8336,
353,
4232,
39,
3461,
2163,
5592,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
868,
24903,
18696,
7003,
12,
203,
3639,
1731,
1578,
8808,
3590,
16,
203,
3639,
1758,
... |
pragma solidity ^0.4.15;
import './SafeMath.sol';
import './ERC20.sol';
import './EnjinReceivingContract.sol';
/**
* @title Enjin Coin Custom Tokens (Mint) Contract
* @dev Handles minting of custom game tokens
* todo DRAFT / Work in progress, monolithic design version
* todo Economy of scale curve needs... | * @dev Liquidate a custom token into ENJ. The Mint contract gains ownership of the liquidated custom tokens until re-minting by the creator @param _customTokenId The ID number of the Custom Token @param _value How many tokens to liquidate/ todo: We may want another function signature that liquidates and transfers to a ... | function liquidateToken(uint256 _customTokenId, uint256 _value) {
require(types[_customTokenId].balances[msg.sender] >= _value);
transferInternal(_customTokenId, msg.sender, this, _value);
Liquidate(_customTokenId, msg.sender, _value);
}
| 15,824,848 | [
1,
48,
18988,
350,
340,
279,
1679,
1147,
1368,
6693,
46,
18,
1021,
490,
474,
6835,
314,
4167,
23178,
434,
326,
4501,
26595,
690,
1679,
2430,
3180,
283,
17,
81,
474,
310,
635,
326,
11784,
225,
389,
3662,
1345,
548,
1021,
1599,
1300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4501,
26595,
340,
1345,
12,
11890,
5034,
389,
3662,
1345,
548,
16,
2254,
5034,
389,
1132,
13,
288,
203,
3639,
2583,
12,
2352,
63,
67,
3662,
1345,
548,
8009,
70,
26488,
63,
3576,
18,
15330,
65,
1545,
389,
1132,
1769,
2... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name... | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() ex... | 12,749,264 | [
1,
1358,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
654,
39,
3462,
288,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
460,
1769,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
460,
1769,
203,
203... |
/**
*Submitted for verification at Etherscan.io on 2021-03-11
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
// File: @openzeppelin/contracts/math/SafeMath.sol
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity ... | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library SafeMath {
pragma solidity 0.6.11;
function tryAdd(uint a, uint b) internal pure returns (bool, uint) {
uint c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
function trySub(uint a, uint b) internal pure returns (bool, uint) {
if (b > a) return (false, ... | 6,656,191 | [
1,
24114,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
81,
414,
11234,
6750,
716,
392,
9391,
14183,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14060,
10477,
288,
203,
203,
683,
9454,
18035,
560,
374,
18,
26,
18,
2499,
31,
203,
203,
565,
445,
775,
986,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
6430,
16,
2254,
13,
288,
203,
3639,
2254,
276,
273,
... |
pragma solidity ^0.4.26;
// INTERFACE
interface ERC20 {
function transferFrom(address _from, address _to, uint256 _value)
external returns (bool);
function transfer(address _to, uint256 _value)
external returns (bool);
function balanceOf(address _owner)
external constant returns (uint256);
function allowance(address ... | CONSTRUCTOR CONTRACT | contract ODS_Coin is ERC20 {
uint256 public totalSupply;
uint public decimals;
string public symbol;
string public name;
mapping (address => mapping (address => uint256)) approach;
mapping (address => uint256) holders;
constructor() public {
name = "Operational Data Store";
symbol = "ODS";
decimals... | 12,558,485 | [
1,
26935,
916,
8020,
2849,
1268,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
531,
3948,
67,
27055,
353,
4232,
39,
3462,
288,
203,
11890,
5034,
1071,
2078,
3088,
1283,
31,
203,
11890,
1071,
15105,
31,
203,
1080,
1071,
3273,
31,
203,
1080,
1071,
508,
31,
203,
6770,
261,
2867,
516,
2874,
261,
2867,
51... |
./partial_match/1/0x4f33B1FE407b4C0F57059a9Fd01f2739d313007C/sources/basarMarketPlace.sol | * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability of all the token ids in the contract as well as all token ids owned by each account./ | abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable {
function __ERC721Enumerable_init() internal onlyInitializing {
}
function __ERC721Enumerable_init_unchained() internal onlyInitializing {
}
mapping(address => mapping(uint256 => u... | 2,882,062 | [
1,
2503,
4792,
392,
3129,
2710,
434,
288,
654,
39,
27,
5340,
97,
2553,
316,
326,
512,
2579,
716,
4831,
3557,
2967,
434,
777,
326,
1147,
3258,
316,
326,
6835,
487,
5492,
487,
777,
1147,
3258,
16199,
635,
1517,
2236,
18,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
27,
5340,
3572,
25121,
10784,
429,
353,
10188,
6934,
16,
4232,
39,
27,
5340,
10784,
429,
16,
467,
654,
39,
27,
5340,
3572,
25121,
10784,
429,
288,
203,
203,
203,
565,
445,
1001,
654,
39,
27,
5340,
3572,
2... |
./full_match/43114/0x12ED2771c849C29ff3413099DDEf6dC987624144/sources/contracts/mac.sol | Contract implementation We will set a minimum amount of tokens to be swaped => 5M | contract MicrochainFinance is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
... | 4,623,236 | [
1,
8924,
4471,
1660,
903,
444,
279,
5224,
3844,
434,
2430,
358,
506,
1352,
5994,
516,
1381,
49,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6835,
18284,
5639,
6187,
1359,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
3639,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
3639,
1450,
5267,
364,
1758,
31,
203,
203,
3639,
2874,
261,
2867,
516,
2254,
50... |
./full_match/1/0x15062659dfDf3709De009a8f5c4ca48b0a888f0F/sources/IERC20.sol | * @dev Interface of the ERC20 standard as defined in the EIP./ | interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
... | 2,970,960 | [
1,
1358,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
654,
39,
3462,
288,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
460,
1769,
203,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
5034,
46... |
contract LockMyEther {
//Author: General_Illus
//Date: 3/6/2016
//Version: LockMyEther v1.0
address owner;
mapping (address => uint) fees;
struct User
{
uint balance; // user balance
uint expiration_block; // block ether is unlocked
bool trickle; // turn trickle on/off
... | Check balance of fee account | function getFeeBalance() constant returns (uint FeeBalance) {
if (msg.sender == owner)
return fees[owner];
}
| 6,456,029 | [
1,
1564,
11013,
434,
14036,
2236,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
2812,
1340,
13937,
1435,
5381,
1135,
261,
11890,
30174,
13937,
13,
288,
203,
202,
202,
430,
261,
3576,
18,
15330,
422,
3410,
13,
203,
4202,
202,
202,
2463,
1656,
281,
63,
8443,
15533,
203,
565,
289,
203,
202,
203,
2,
... |
./full_match/5/0x18C68B3adacE08C934408c343BC50a7EDe3F4aD7/sources/project_/contracts/EchoooERC721.sol | * @dev Returns true if the two strings are equal./ | function equal(string memory a, string memory b) internal pure returns (bool) {
return keccak256(bytes(a)) == keccak256(bytes(b));
}
| 1,859,728 | [
1,
1356,
638,
309,
326,
2795,
2064,
854,
3959,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3959,
12,
1080,
3778,
279,
16,
533,
3778,
324,
13,
2713,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
417,
24410,
581,
5034,
12,
3890,
12,
69,
3719,
422,
417,
24410,
581,
5034,
12,
3890,
12,
70,
10019,
203,
565,
... |
./full_match/1/0x66d97FD4DefEcD79904B3D3587dC4f8ed66Cf4Ab/sources/src/LSSVMRouter.sol | * @notice Buys NFTs with ETH and sells them for tokens in one transaction @param params All the parameters for the swap (packed in struct to avoid stack too deep), containing: - ethToNFTSwapList The list of NFTs to buy - nftToTokenSwapList The list of NFTs to sell - inputAmount The max amount of tokens to send (if ERC2... | function robustSwapETHForSpecificNFTsAndNFTsToToken(RobustPairNFTsFoTokenAndTokenforNFTsTrade calldata params)
external
payable
virtual
returns (uint256 remainingValue, uint256 outputAmount)
{
{
remainingValue = msg.value;
uint256 pairCost;
... | 8,297,851 | [
1,
38,
89,
1900,
423,
4464,
87,
598,
512,
2455,
471,
357,
3251,
2182,
364,
2430,
316,
1245,
2492,
225,
859,
4826,
326,
1472,
364,
326,
7720,
261,
2920,
329,
316,
1958,
358,
4543,
2110,
4885,
4608,
3631,
4191,
30,
300,
13750,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27920,
12521,
1584,
44,
1290,
9969,
50,
4464,
87,
1876,
50,
4464,
11634,
1345,
12,
14444,
641,
4154,
50,
4464,
87,
42,
83,
1345,
1876,
1345,
1884,
50,
4464,
87,
22583,
745,
892,
859,
13,
203,
3639,
3903,
203,
3639,
88... |
pragma solidity ^0.5.2;
import "./Ownable.sol";
import "asn1-decode/contracts/Asn1Decode.sol";
import "@ensdomains/dnssec-oracle/contracts/algorithms/Algorithm.sol";
import "ens-namehash/contracts/ENSNamehash.sol";
import "ethereum-datetime/contracts/DateTime.sol";
/*
* @dev Stores validated X.509 certific... | Add reference from sha256 fingerprint | toCertId[sha256(cert)] = certId;
| 5,374,515 | [
1,
986,
2114,
628,
6056,
5034,
12115,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
5461,
548,
63,
7819,
5034,
12,
7593,
25887,
273,
3320,
548,
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,... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
interface IToken is IERC20{
function decimals() external view returns (uint);
}
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Interface of the ERC20 standard as def... | * @notice Sets swap router to swap underlying into USDC to pay for the protection @param newRouter address of swapRouter contract/ | function setRouter(address newRouter) external onlyOwner {
router = newRouter;
}
| 5,416,082 | [
1,
2785,
7720,
4633,
358,
7720,
6808,
1368,
11836,
5528,
358,
8843,
364,
326,
17862,
225,
394,
8259,
1758,
434,
7720,
8259,
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,
... | [
1,
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,
444,
8259,
12,
2867,
394,
8259,
13,
3903,
1338,
5541,
288,
203,
3639,
4633,
273,
394,
8259,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | поместиться в мешке
| rus_verbs:поместиться{}, | 5,481,752 | [
1,
145,
128,
145,
127,
145,
125,
145,
118,
146,
228,
146,
229,
145,
121,
146,
229,
146,
239,
146,
228,
146,
242,
225,
145,
115,
225,
145,
125,
145,
118,
146,
235,
145,
123,
145,
118,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
128,
145,
127,
145,
125,
145,
118,
146,
228,
146,
229,
145,
121,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.6.12;
// SPDX-License-Identifier: BSD-3-Clause
//BSD Zero Clause License: "SPDX-License-Identifier: <SPDX-License>"
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
... | token contract addresses reward rate % per yearfarming fee in percentageunfarming fee in percentageunfarming possible Time | contract VAPEPOOL1 is Ownable {
using SafeMath for uint;
using EnumerableSet for EnumerableSet.AddressSet;
event RewardsTransferred(address holder, uint amount);
address public VAPEAddress;
uint public rewardRate = 36000;
uint public rewardInterval = 365 days;
uint public... | 369,330 | [
1,
2316,
6835,
6138,
19890,
4993,
738,
1534,
3286,
74,
4610,
310,
14036,
316,
11622,
318,
74,
4610,
310,
14036,
316,
11622,
318,
74,
4610,
310,
3323,
2647,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
776,
37,
1423,
20339,
21,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
377,
203,
565,
871,
534,
359,
14727,
1429,
4193... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import "hardhat/console.sol";
import "../utils/AdminRole.sol";
import "./IFight.sol";
import "./IRandom.sol";
import "./NFT.sol";
contract GameFight is IFight, AdminRole {
uint256 constant DECIMALS = 10**18;
uint256 constant REWARD_R... | uint256 quote = getFightQuoteNum(_tokenId); last fight, setup next fight interval, reset the fight num lose! as the fight ratio is out of win% | function fightMonster(uint256 _tokenId, uint256 _monsterId) external override onlyBattlefield returns (uint256) {
uint8 _rare = nft.rare(_tokenId);
require(_rare > 0, "wrong nft id");
require(_monsterId < monsters.length, "wrong monster id");
uint256 remainingFightNum = getRemaining... | 12,816,736 | [
1,
11890,
5034,
3862,
273,
2812,
750,
10257,
2578,
24899,
2316,
548,
1769,
1142,
284,
750,
16,
3875,
1024,
284,
750,
3673,
16,
2715,
326,
284,
750,
818,
29612,
5,
487,
326,
284,
750,
7169,
353,
596,
434,
5657,
9,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
284,
750,
11415,
8190,
12,
11890,
5034,
389,
2316,
548,
16,
2254,
5034,
389,
2586,
8190,
548,
13,
3903,
3849,
1338,
38,
4558,
298,
1518,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
28,
389,
354,
266,
273,
290,
1... |
./partial_match/4/0x91b9dBc41850963CD5195e937f6E924f288B2980/sources/RoseToken.sol | Update the given pool's ROSE allocation point. Can only be called by the owner. | function set2(
uint256 _pid,
uint256 _allocPoint,
bool _withUpdate
) public onlyOwner {
if (_withUpdate) {
massUpdatePool2s();
}
allocPointPool2 = allocPointPool2.sub(poolInfo2[_pid].allocPoint).add(
_allocPoint
);
poolInfo2... | 8,514,071 | [
1,
1891,
326,
864,
2845,
1807,
6525,
1090,
13481,
1634,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
22,
12,
203,
3639,
2254,
5034,
389,
6610,
16,
203,
3639,
2254,
5034,
389,
9853,
2148,
16,
203,
3639,
1426,
389,
1918,
1891,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
309,
261,
67,
1918,
1891,
13,
288,
203,... |
pragma solidity 0.4.24;
//Truffle Imports
import "@chainlink/contracts/src/v0.4/ChainlinkClient.sol";
import "./strings.sol";
contract TeslaConsumer is ChainlinkClient {
using strings for *;
uint odometer;
uint chargeState;
int vehicleLongitude;
int vehicleLatitude;
address priva... | * Network: Kovan Oracle: Chainlink - 0x2f90A6D021db21e1B2A077c5a37B3C7E75D15b7e Job ID: Chainlink - 29fa9aa13bf1468788b7cc4a500a45b8 Fee: 0.1 LINK/ | constructor() public {
setChainlinkToken(0xa36085F69e2889c224210F603D836748e7dC0088);
setChainlinkOracle(0x4accF1064d662eBC5341D418B0656552B7385500);
jobId = "d3f74dc2467e42ebb96f496ef731ebec";
}
| 5,395,765 | [
1,
3906,
30,
1475,
1527,
304,
28544,
30,
7824,
1232,
300,
374,
92,
22,
74,
9349,
37,
26,
40,
3103,
21,
1966,
5340,
73,
21,
38,
22,
37,
20,
4700,
71,
25,
69,
6418,
38,
23,
39,
27,
41,
5877,
40,
3600,
70,
27,
73,
3956,
1599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
1435,
1071,
288,
203,
3639,
444,
3893,
1232,
1345,
12,
20,
6995,
29751,
7140,
42,
8148,
73,
22,
5482,
29,
71,
23622,
22,
2163,
42,
26,
4630,
40,
28,
5718,
5608,
28,
73,
27,
72,
39,
713,
5482,
1769,
203,
3639,
444,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import 'hardhat/console.sol';
import './GearToken.sol';
contract GearFactory is GearToken {
//FIXME event NewGear();
uint256 private randNonce = 0;
function mintRandomGear(address owner) external returns (uint256) {
uint256 gearData = 0;
// Generate rari... | FIXME event NewGear(); | contract GearFactory is GearToken {
uint256 private randNonce = 0;
pragma solidity ^0.8.0;
function mintRandomGear(address owner) external returns (uint256) {
uint256 gearData = 0;
gearData = (gearData * 10) + (_generateRandomData() % 5) + 1;
gearData = (gearData * 10) + 1;
gearData = (gearData * 100) + (_g... | 12,737,988 | [
1,
25810,
871,
1166,
43,
2091,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
611,
2091,
1733,
353,
611,
2091,
1345,
288,
203,
203,
202,
11890,
5034,
3238,
5605,
13611,
273,
374,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
202,
915,
312,
474,
8529,
43,
2091,
12,
2867,
... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.dat... | solhint-disable-next-line no-inline-assembly | function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
return (codehash != accountHash && codehash != 0x0);
}
| 1,422,800 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
203,
3639,
1731,
1578,
981,
2816,
31,
203,
3639,
1731,
1578,
2236,
2310,
273,
374,
6511,
25,
72,
3247,
26,
1611,
5292,
74,
9060,
3707,
71... |
pragma solidity ^0.5.17;
/**
* Biblioteca para auxiliar com o tratamento de strings
*
* @dev Odeio o solidity =D
*/
library StringUtils {
/**
* Retorna verdadeiro ou falso para comparacao de duas strings
* @param _strA primeira string para comparacao
* @param _strB segunda string para compara... | * Retorna verdadeiro ou falso para comparacao de duas strings @param _strA primeira string para comparacao @param _strB segunda string para comparacao @dev Copiei este codigo de um github qualquer, de tanta raiva que fiquei tentando nao precisar disso. :-( @return true se as strings forem consideradas iguais e false se... | function equal(string memory _strA, string memory _strB) public pure returns (bool) {
return compare(_strA, _strB) == 0;
}
| 978,564 | [
1,
7055,
280,
6582,
1924,
2414,
323,
11373,
16694,
284,
31144,
12602,
532,
1065,
1077,
6033,
443,
9978,
345,
2064,
225,
389,
701,
37,
17014,
11547,
533,
12602,
532,
1065,
1077,
6033,
225,
389,
701,
38,
2291,
1074,
69,
533,
12602,
532,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3959,
12,
1080,
3778,
389,
701,
37,
16,
533,
3778,
389,
701,
38,
13,
1071,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
327,
3400,
24899,
701,
37,
16,
389,
701,
38,
13,
422,
374,
31,
203,
565,
289,
203,
377,
203,
2... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/introspection/IERC165.sol
/**
* @title IERC165
* @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
*/
interface IERC165 {
/**
* @notice Query if a contract implements an interface
* @param interfaceId The interfa... | * @dev Function to burn a specific token Reverts if the token does not exist @param _owner owner of the token to burn @param _tokenId uint256 ID of the token being burned by the msg.sender/ Clear metadata (if any) | function burn(ERC721Data storage self, address _owner, uint256 _tokenId) external {
_clearApproval(self, _owner, _tokenId);
_removeTokenFrom(self, _owner, _tokenId);
emit Transfer(_owner, address(0), _tokenId);
if (bytes(self.tokenURIs[_tokenId]).length != 0) {
delete se... | 7,284,011 | [
1,
2083,
358,
18305,
279,
2923,
1147,
868,
31537,
309,
326,
1147,
1552,
486,
1005,
225,
389,
8443,
3410,
434,
326,
1147,
358,
18305,
225,
389,
2316,
548,
2254,
5034,
1599,
434,
326,
1147,
3832,
18305,
329,
635,
326,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
654,
39,
27,
5340,
751,
2502,
365,
16,
1758,
389,
8443,
16,
2254,
5034,
389,
2316,
548,
13,
3903,
288,
203,
3639,
389,
8507,
23461,
12,
2890,
16,
389,
8443,
16,
389,
2316,
548,
1769,
203,
3639,
389,
4479,
... |
// Sources flattened with hardhat v2.4.1 https://hardhat.org
// File contracts/Interfaces/ERC20.sol
pragma solidity ^0.8.0;
interface ERC20 {
function balanceOf(address) external view returns (uint256);
function transfer(address, uint256) external returns (bool);
function allowance(address, address) ex... | Claim the rewards Cooldown the rewards so we can harvest | {
safe.execute(
address(incentives),
abi.encodeWithSelector(
incentives.claimRewards.selector,
assets,
incentives.getRewardsBalance(assets, address(safe)),
address(safe)
)
);
safe.execute(
... | 12,227,421 | [
1,
9762,
326,
283,
6397,
385,
1371,
2378,
326,
283,
6397,
1427,
732,
848,
17895,
26923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
4183,
18,
8837,
12,
203,
5411,
1758,
12,
267,
2998,
3606,
3631,
203,
5411,
24126,
18,
3015,
1190,
4320,
12,
203,
7734,
316,
2998,
3606,
18,
14784,
17631,
14727,
18,
9663,
16,
203,
7734,
7176,
16,
203,
7734,
... |
./partial_match/80001/0x062292e464fc5A7dC1D00CC5dd214bC0efB65a1C/sources/Users/famousbirthdays/Sites/mb-contracts/contracts/MetaBoards.sol | * @notice Callback function used by VRF Coordinator @dev Important! Add a modifier to only allow this function to be called by the VRFCoordinator @dev The VRF Coordinator will only send this function verified responses. @dev The VRF Coordinator will not pass randomness that could not be verified. @dev Get a number betw... | function fulfillRandomWords(
uint256 requestId,
uint256[] memory randomWords
) internal override {
uint256 _die1 = randomWords[0]%6 + 1;
uint256 _die2 = randomWords[1]%6 + 1;
address _player = rollQueue[requestId];
_doRoll(_die1,_die2,payable(_pla... | 8,804,576 | [
1,
2428,
445,
1399,
635,
776,
12918,
10320,
4240,
225,
6164,
970,
5,
1436,
279,
9606,
358,
1338,
1699,
333,
445,
358,
506,
2566,
635,
326,
776,
12918,
25307,
225,
1021,
776,
12918,
10320,
4240,
903,
1338,
1366,
333,
445,
13808,
7220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1377,
445,
22290,
8529,
7363,
12,
203,
3639,
2254,
5034,
14459,
16,
203,
3639,
2254,
5034,
8526,
3778,
2744,
7363,
203,
1377,
262,
2713,
3849,
288,
203,
203,
3639,
2254,
5034,
389,
72,
1385,
21,
273,
2744,
7363,
63,
20,
65,
9,
... |
./partial_match/1/0x3374988227c650B062D04Be94f5e0B1bCE2d6A3b/sources/ChinesePepe.sol | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amountblacklist store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract ChinesePepe is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public immutable uniswapV2Pair;
bool private swapping;
address public marketingWallet;
uint256 public maxTransactionAmount;
uint256 public swapTokensAtAmount;
... | 4,447,361 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
22491,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
1680,
25331,
11227,
347,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
640,
291,
91,
438,
58,
22,
8259,
31,... |