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/4/0xe153650f20B339D35e45bc40A0ca18D4A28F3d97/sources/contracts/Arena.sol | Check Monster killTime | function calcKillTime(uint256 _tokenID) public view returns (uint256) {
Stats memory stats = rock.tokenStats(_tokenID);
Enemy memory enemyStats = getCurrentTarget(_tokenID);
uint256 emaxHit = (((enemyStats.strength + 11) * 64 + 320) / 640);
uint256 eattackRoll = (enemyStats.attack + ... | 655,437 | [
1,
1564,
9041,
8190,
8673,
950,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7029,
19045,
950,
12,
11890,
5034,
389,
2316,
734,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
11486,
3778,
3177,
273,
23486,
18,
2316,
4195,
24899,
2316,
734,
1769,
203,
3639,
1374,
351,
93,
3778,
570,
... |
./full_match/1/0x184e48FA8B332D3D3FB08eDa535Fd7591e340Bb2/sources/contracts/NFT/NFTByMetadrop.sol | * ____________________________________________________________________________________________________________________ -->GETTER @dev (function) metadropCustom Returns if this contract is a custom NFT (true) or ... | function metadropCustom() external pure returns (bool isMetadropCustom_) {
return (false);
}
| 4,935,065 | [
1,
21157,
21157,
21157,
21157,
21157,
21157,
21157,
7198,
28524,
4766,
2398,
15431,
7113,
11976,
225,
261,
915,
13,
312,
1167,
1764,
3802,
225,
2860,
309,
333,
6835,
353,
279,
1679,
423,
4464,
261,
3767,
13,
578,
353,
279,
4529,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
1167,
1764,
3802,
1435,
3903,
16618,
1135,
261,
6430,
15707,
1167,
1764,
3802,
67,
13,
288,
203,
565,
327,
261,
5743,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/3/0x5C90d5EF81617C0928c28DB999Ab5eF8361bF383/sources/Bizzcoin.sol | * Token information/ Token distribution Total token supply: 1M Public tokens: 67% Founders: 10% Advisors: 1% Team: 2% Partners, Bounties Reserves: 20% (belongs to token owner)/ Token unlock datetime: 1. Founder, Advisor and Team Thursday, 31 December 2020 12:00:00 GMT 2. All other Users Thursday, 31 December 2020 12:00... | constructor() public {
totalSupply_ = INITIAL_SUPPLY;
}
| 5,163,438 | [
1,
1345,
1779,
19,
3155,
7006,
10710,
1147,
14467,
30,
404,
49,
7224,
2430,
30,
21017,
9,
10750,
414,
30,
1728,
9,
4052,
3516,
1383,
30,
404,
9,
10434,
30,
576,
9,
6393,
9646,
16,
605,
592,
606,
1124,
264,
3324,
30,
4200,
9,
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,
565,
3885,
1435,
1071,
288,
203,
3639,
2078,
3088,
1283,
67,
273,
28226,
67,
13272,
23893,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x9259746Be26f8Bd66D12D13671Dddc3561AD970d/sources/contracts/Solid.sol | Extract price from the first 80 bits Extract billingPeriod from the following 48 bits Extract timestamp from the next 48 bits Extract discount from the last 16 bits | function _getPlan(address _vendor, uint256 _planId) internal view returns(uint256, uint256, uint256, uint256) {
uint256 _planUint = plan[_getPlanKey(_vendor, _planId)];
uint256 price = uint256(uint80(_planUint));
uint256 billingPeriod = uint256(uint48(_planUint>>128));
uint256 timestamp = uint256(uint... | 2,972,123 | [
1,
4976,
6205,
628,
326,
1122,
8958,
4125,
8152,
10709,
5027,
628,
326,
3751,
9934,
4125,
8152,
2858,
628,
326,
1024,
9934,
4125,
8152,
12137,
628,
326,
1142,
2872,
4125,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
588,
5365,
12,
2867,
389,
10645,
16,
2254,
5034,
389,
7088,
548,
13,
2713,
1476,
1135,
12,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
5034,
13,
288,
203,
565,
2254,
5034,
389,
7088,
5487,
273,
4995,
6... |
// File: @openzeppelin/contracts/math/Math.sol
pragma solidity ^0.6.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= ... | @dev Takes Weth collateral from user into the Treasury Maker vault User needs to have approved Treasury to take the Weth. This function can only be called by other Yield contracts, not users directly. @param from Wallet to take Weth from. @param wethAmount Weth quantity to take. All added collateral should be locked i... | function pushWeth(address from, uint256 wethAmount)
public override
onlyOrchestrated("Treasury: Not Authorized")
onlyLive
{
require(weth.transferFrom(from, address(this), wethAmount));
vat.frob(
WETH,
address(this),
address(this),
... | 1,532,542 | [
1,
11524,
678,
546,
4508,
2045,
287,
628,
729,
1368,
326,
399,
266,
345,
22498,
490,
6388,
9229,
2177,
4260,
358,
1240,
20412,
399,
266,
345,
22498,
358,
4862,
326,
678,
546,
18,
1220,
445,
848,
1338,
506,
2566,
635,
1308,
31666,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1817,
59,
546,
12,
2867,
628,
16,
2254,
5034,
341,
546,
6275,
13,
203,
3639,
1071,
3849,
203,
3639,
1338,
1162,
23386,
690,
2932,
56,
266,
345,
22498,
30,
2288,
6712,
1235,
7923,
203,
3639,
1338,
12328,
203,
565,
288,
... |
./partial_match/1/0x874B936cc69A68D4cb6f5f24aB90ba60eb376AD6/sources/BitmassExchangeToken.sol | CHANGE THIS. Update the contract name.
| contract BitmassExchangeToken is StandardToken { | 3,979,375 | [
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,
6539,
10424,
11688,
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,
-1... |
./partial_match/1/0xa94310AeeD50687f7c39ACdAA5FCd311AEDB25f8/sources/contracts/erc721/interfaces/IERC721EditionsDFS.sol | * @notice Core creation interface @author ishan@highlight.xyz/ | interface IERC721EditionsDFS {
function createEdition(
string memory _editionUri,
uint256 _editionSize,
address _editionTokenManager,
IRoyaltyManager.Royalty memory editionRoyalty
) external returns (uint256);
function getEditionStartIds() external view returns (uint256[] me... | 3,645,494 | [
1,
4670,
6710,
1560,
225,
353,
25842,
36,
15978,
18,
17177,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
41,
1460,
87,
31999,
288,
203,
565,
445,
25184,
1460,
12,
203,
3639,
533,
3778,
389,
329,
608,
3006,
16,
203,
3639,
2254,
5034,
389,
329,
608,
1225,
16,
203,
3639,
1758,
389,
329,
608,
1345,
1318,
... |
pragma solidity >=0.6.0;
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/ownership/Ownable.sol';
import "@openzeppelin/contracts/drafts/Counters.sol";
/**
* @author LordOfTheBees
* @notice Workplace with Market
*/
contract MarketPool is Ownable {
using SafeMath for uint256;
... | * @notice Renouncing ownership will leave the contract without an market owner, thereby removing any functionality that is only available to the market owner (e.g. creating new Item Types)./ | function renounceMarketOwnership(uint256 marketId) public onlyMarketOwner(marketId) {
emit MarketOwnershipTransferred(marketId, marketToOwner[marketId], address(0));
addressToMarketCount[msg.sender].decrement();
marketToOwner[marketId] = address(0);
}
| 1,045,711 | [
1,
16290,
465,
2822,
23178,
903,
8851,
326,
6835,
2887,
392,
13667,
3410,
16,
1915,
1637,
9427,
1281,
14176,
716,
353,
1338,
2319,
358,
326,
13667,
3410,
261,
73,
18,
75,
18,
4979,
394,
4342,
7658,
2934,
19,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
1654,
8386,
3882,
278,
5460,
12565,
12,
11890,
5034,
13667,
548,
13,
1071,
1338,
3882,
278,
5541,
12,
27151,
548,
13,
288,
203,
3639,
3626,
6622,
278,
5460,
12565,
1429,
4193,
12,
27151,
548,
16,
13667,
774,
5541,
63,
2... |
// full contract sources : https://github.com/DigixGlobal/dao-contracts
pragma solidity 0.4.25;
// File: @digix/solidity-collections/contracts/abstract/AddressIteratorInteractive.sol
/**
@title Address Iterator Interactive
@author DigixGlobal Pte Ltd
*/
contract AddressIteratorInteractive {
/**
... | IPFS doc hash of this version of the proposal UTC timestamp at which this version was created The number of milestones in the proposal as per this version The final reward asked by the proposer for completion of the entire proposal List of fundings required by the proposal as per this version The numbers are in wei Wh... | struct ProposalVersion {
bytes32 docIpfsHash;
uint256 created;
uint256 milestoneCount;
uint256 finalReward;
uint256[] milestoneFundings;
bytes32[] moreDocs;
}
| 6,489,460 | [
1,
2579,
4931,
997,
1651,
434,
333,
1177,
434,
326,
14708,
9951,
2858,
622,
1492,
333,
1177,
1703,
2522,
1021,
1300,
434,
312,
14849,
5322,
316,
326,
14708,
487,
1534,
333,
1177,
1021,
727,
19890,
19279,
635,
326,
450,
5607,
364,
8364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
19945,
1444,
288,
203,
3639,
1731,
1578,
997,
5273,
2556,
2310,
31,
203,
203,
3639,
2254,
5034,
2522,
31,
203,
203,
3639,
2254,
5034,
28664,
1380,
31,
203,
203,
3639,
2254,
5034,
727,
17631,
1060,
31,
203,
203,
3639,
2... |
./partial_match/1/0xe37009F6A756e8997FaC8da44Da7B5B87731fc22/sources/MUNGER.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./ Editable End editable | constructor() {
_name = "Munger Coin";
_symbol = "MUNGER";
uint e_totalSupply = 1_000_000_000_000 ether;
_mint(msg.sender, e_totalSupply);
}
| 4,081,141 | [
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,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
389,
529,
273,
315,
49,
318,
693,
28932,
14432,
203,
3639,
389,
7175,
273,
315,
49,
2124,
3101,
14432,
203,
3639,
2254,
425,
67,
4963,
3088,
1283,
273,
404,
67,
3784,
67,
3784,
67,
3784,
67,
378... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-upg... | Record lp index in pool 1-based | mapping (address => uint256) public poolIndex;
| 994,687 | [
1,
2115,
12423,
770,
316,
2845,
225,
404,
17,
12261,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
2845,
1016,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.5.17;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() public {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner, "permission denied");
_;
... | --- ERC20 Data --- --- Math --- | contract YFKING is Ownable {
string public constant name = "yfking.network";
string public constant symbol = "YFKG";
string public constant version = "1";
uint8 public constant decimals = 18;
uint256 public totalSupply;
mapping (address => uint256) public balanc... | 515,346 | [
1,
6062,
4232,
39,
3462,
1910,
9948,
9948,
2361,
9948,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
1624,
13121,
1360,
353,
14223,
6914,
288,
203,
565,
533,
225,
1071,
5381,
508,
377,
273,
315,
93,
23120,
310,
18,
5185,
14432,
203,
565,
533,
225,
1071,
5381,
3273,
282,
273,
315,
61,
13121,
43,
14432,
203,
565,
533,
225,
... |
pragma solidity >= 0.5.0;
import "./IF_EAS_artworks.sol";
import "./IF_EAS_types.sol";
import "./IF_EAS.sol";
import "./IF_EAS_mission.sol";
import "./IF_EAS_platform.sol";
import "./IF_EAO.sol";
import "./IF_EAM.sol";
import "./strings.sol";
import "./SafeMath.sol";
import "./Ownable.sol";
contract... | select 1 from all range, 1 from recent recentRangeOffset cards. | winnerType2 = (totalTypes - 1) - rn2.mod(missionRange);
| 5,360,125 | [
1,
4025,
404,
628,
777,
1048,
16,
404,
628,
8399,
8399,
2655,
2335,
18122,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
5657,
1224,
559,
22,
273,
261,
4963,
2016,
300,
404,
13,
300,
20594,
22,
18,
1711,
12,
3951,
2655,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.24;
/*
* ZETHR PRESENTS: SLOTS
*
* Written August 2018 by the Zethr team for zethr.io.
*
* Code framework written by Norsefire.
* EV calculations written by TropicalRogue.
* Audit and edits written by Klob.
*
* Rolling Odds:
* 49.31% Lose
* 35.64% Two Matching Icons
* - 10.00% : 2x... | * @dev Adds two numbers, throws on overflow./ | function add(uint a, uint b) internal pure returns (uint) {
uint c = a + b;
assert(c >= a);
return c;
}
| 145,357 | [
1,
3655,
2795,
5600,
16,
1216,
603,
9391,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
276,
273,
279,
397,
324,
31,
203,
3639,
1815,
12,
71,
1545,
279,
1769,
203,
3639,
327,
276,
31,
203,
565,
289,
203,
2,... |
pragma ton-solidity ^0.42.0;
contract HexadecimalNumberUtil {
/*************
* CONSTANTS *
*************/
uint8 private constant FIRST_INDEX = 2;
uint8 private constant MIN_MESSAGE_LENGTH = 3; // "0x1" - example of one of the shortest numbers
uint8 private constant MAX_MESSAGE_LENGTH ... | "0x1" - example of one of the shortest numbers
| uint8 private constant MIN_MESSAGE_LENGTH = 3; | 13,059,006 | [
1,
6,
20,
92,
21,
6,
300,
3454,
434,
1245,
434,
326,
20579,
5600,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
3238,
5381,
6989,
67,
8723,
67,
7096,
273,
890,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
// Latino Token - Latinos Unidos Impulsando la CriptoEconomía - latinotoken.com
/**
* @title ERC20Basic interface
* @dev Basic version of ERC20 interface
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) constant returns (uint256);
function t... | 700MM tokens hard cap
| uint256 public constant MAX_SUPPLY = 700000000 * (10 ** uint256(decimals)); | 2,038,588 | [
1,
26874,
8206,
2430,
7877,
3523,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
5381,
4552,
67,
13272,
23893,
273,
2371,
12648,
380,
261,
2163,
2826,
2254,
5034,
12,
31734,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
import "./ERC20.sol";
import "./MerkleTree.sol";
/// @title ERC20 snapshot contract
/// @author Jochem Brouwer
/// @notice This contract is not audited
/// @dev ERC20 snapshot to setup a copy of any ERC20 token where the snapshot is taken at a certain block.
/// A Merkle Tree is used to prove... | * @dev Contract constructor @param _rootHash The bytes32 rootHash of the Merkle Tree @param _cap The token supply cap @param _name The name of the token @param _symbol The symbol of the token @param _decimals The decimals of the token/ | {
rootHash = _rootHash;
_balances[msg.sender] = 0;
}
| 1,079,520 | [
1,
8924,
3885,
225,
389,
3085,
2310,
1021,
1731,
1578,
1365,
2310,
434,
326,
31827,
4902,
225,
389,
5909,
1021,
1147,
14467,
3523,
225,
389,
529,
1021,
508,
434,
326,
1147,
225,
389,
7175,
1021,
3273,
434,
326,
1147,
225,
389,
31734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
7010,
3639,
1365,
2310,
273,
389,
3085,
2310,
31,
203,
3639,
389,
70,
26488,
63,
3576,
18,
15330,
65,
273,
374,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
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 applica... | * @notice Get the most recent item that was stored in the circular buffer. @return head_ The most recently stored item./ | function head() internal view returns(uint256 head_) {
head_ = items[index];
}
| 12,986,614 | [
1,
967,
326,
4486,
8399,
761,
716,
1703,
4041,
316,
326,
15302,
1613,
18,
327,
910,
67,
1021,
4486,
19907,
4041,
761,
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,
910,
1435,
2713,
1476,
1135,
12,
11890,
5034,
910,
67,
13,
288,
203,
3639,
910,
67,
273,
1516,
63,
1615,
15533,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0x07308A32c96F4ce4967370F1D4046E11509ab990/sources/contracts/Game.sol | TODO: check that msg.sender is the owner of the NFT | function CreateOffer(uint nft, NFTType nfttype, uint bet) public
{
IERC20(token).transferFrom(msg.sender, address(this), bet);
uint128 id = lastOfferId + 1;
lastOfferId++;
offers[msg.sender].push( GameOffer(id, msg.sender, nfttype, nft, bet) );
emit Offer(msg.sender, id, nft... | 3,776,325 | [
1,
6241,
30,
866,
716,
1234,
18,
15330,
353,
326,
3410,
434,
326,
423,
4464,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
1788,
10513,
12,
11890,
290,
1222,
16,
423,
4464,
559,
290,
1222,
723,
16,
2254,
2701,
13,
1071,
203,
565,
288,
203,
3639,
467,
654,
39,
3462,
12,
2316,
2934,
13866,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../base/ISWLToken.sol";
import "../base/ERC20.sol";
import "../base/ERC20Capped.sol";
import "../base/ERC20PresetMinterPauser.sol";
import "../erc/utils/SafeMath.sol";
import "../erc/access/Ownable.sol";
/**
* SWL is Sweet Love Token which will used to... | * @notice Define a modifier to validate staker amount/ | modifier isTokenEnoughModifier(address sender, uint256 amount) {
require(balanceOf(sender) >= amount, "address bigger than it's balance amount");
_;
}
| 15,830,964 | [
1,
11644,
279,
9606,
358,
1954,
384,
6388,
3844,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
9606,
353,
1345,
664,
4966,
9829,
12,
2867,
5793,
16,
2254,
5034,
3844,
13,
288,
203,
540,
2583,
12,
12296,
951,
12,
15330,
13,
1545,
3844,
16,
315,
2867,
18983,
2353,
518,
1807,
11013,
3844,
8863,
203,
540,
389,
31,
203,
... |
./full_match/5/0x8a44aF939D25C17f55088ea06bFCD43A80dB4f85/sources/src/lib/MembraneAuth.sol | @notice A generic contract which provides custom auth logic to Membrane operations. @author Membrane Labs | abstract contract MembraneAuth {
mapping(address => bool) private _isOperator;
pragma solidity ^0.8.0;
constructor() {
_isOperator[msg.sender] = true;
}
modifier requiresAuth() virtual {
if (!_isOperator[msg.sender]) revert Unauthorized();
_;
}
function setAccountAcce... | 7,090,474 | [
1,
37,
5210,
6835,
1492,
8121,
1679,
1357,
4058,
358,
5890,
70,
2450,
73,
5295,
18,
225,
5890,
70,
2450,
73,
511,
5113,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
5890,
70,
2450,
73,
1730,
288,
203,
565,
2874,
12,
2867,
516,
1426,
13,
3238,
389,
291,
5592,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
3885,
1435,
288,
203,
3639,
389,
291,
559... |
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.7;
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn mo... | * @notice Set the limitAmount by only admin @param collection The collection address @param newLimitRate New LimitRate/ | function setLimitRate(address collection, uint256 newLimitRate)
external
onlyAdmin
{
limitRate[collection] = newLimitRate;
}
| 13,035,528 | [
1,
694,
326,
1800,
6275,
635,
1338,
3981,
225,
1849,
1021,
1849,
1758,
225,
394,
3039,
4727,
1166,
7214,
4727,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
444,
3039,
4727,
12,
2867,
1849,
16,
2254,
5034,
394,
3039,
4727,
13,
203,
3639,
3903,
203,
3639,
1338,
4446,
203,
565,
288,
203,
3639,
1800,
4727,
63,
5548,
65,
273,
394,
3039,
4727,
31,
203,
565,
289,
203,
203,
2,
... |
pragma solidity 0.4.24;
import "zeppelin-solidity/contracts/math/SafeMath.sol";
import "./MintableBurnableERC20Token.sol";
contract BackedERC20Token is MintableBurnableERC20Token {
address public counter;
uint256 public precision;
/**
* Public constructor that requires all arguments are specified.
... | * Convert X tokens to Y counter/ | function tokensToCounter(uint256 anAmount) public view returns(uint256) {
if(totalSupply() == 0){
return anAmount;
}
return SafeMath.div(SafeMath.mul(SafeMath.div(SafeMath.mul(totalSupply(), precision), counterBalance()), anAmount),precision);
}
| 1,029,394 | [
1,
2723,
1139,
2430,
358,
1624,
3895,
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,
2430,
774,
4789,
12,
11890,
5034,
392,
6275,
13,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
309,
12,
4963,
3088,
1283,
1435,
422,
374,
15329,
203,
5411,
327,
392,
6275,
31,
203,
3639,
289,
203,
3639,
327,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
// Adaptado de https://docs.soliditylang.org/en/latest/solidity-by-example.html al español, para explicar herencia en Solidity
// Subasta simple que permite que varias direcciones pujen por un premio (no se tiene en cuenta)
contract SimpleAuction {
addr... | Función para devolver el dinero a los pujantes previos, debe ser llamada por el pujante en cuestión Enviar monto | function withdraw() public returns (bool) {
if (amount > 0) {
if (!payable(msg.sender).send(amount)) {
pendingReturns[msg.sender] = amount;
return false;
}
}
return true;
}
| 15,821,835 | [
1,
2622,
77,
132,
116,
82,
12602,
4461,
10521,
415,
302,
267,
2439,
279,
22148,
293,
11501,
970,
281,
675,
522,
538,
16,
443,
2196,
703,
6579,
301,
16524,
22471,
415,
293,
11501,
7974,
570,
15985,
395,
77,
132,
116,
82,
1374,
522,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1435,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
8949,
405,
374,
13,
288,
203,
203,
5411,
309,
16051,
10239,
429,
12,
3576,
18,
15330,
2934,
4661,
12,
8949,
3719,
288,
203,
7734,
4634,
1356,
63,
3... |
// to test issue with nodes breaking with large clients over WS
// fixed in web3 with fragmentationThreshold: 8192
pragma solidity ^0.4.17;
contract BigFreakingContract {
event Transfer(address indexed from, address indexed to, uint value);
event Approval( address indexed owner, address indexed spender, uint valu... | TODO: should increase instead | function approve_900(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,613 | [
1,
6241,
30,
1410,
10929,
3560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
67,
29,
713,
12,
2867,
17571,
264,
16,
2254,
460,
13,
1071,
1135,
261,
6430,
1529,
13,
288,
203,
565,
389,
12908,
4524,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
460,
31,
203,
565,
3626,
1716,
68... |
pragma solidity ^0.4.25;
contract Richer3D {
using SafeMath for *;
//************
//Game Setting
//************
string constant public name = "Richer3D";
string constant public symbol = "R3D";
address constant private sysAdminAddress = 0x4A3913ce9e8882b418a0Be5A43d2C319c3F0a7... | ******************** Method need Gas******************** | function joinGameWithBalance(uint256 _amount) public payable {
require(_amount >= 0.01 ether,"You need to pay 0.01 eth at least");
require(now.sub(rInfoXrID[roundNumber].lastCalculateTime) < cycleTime,"Waiting for settlement");
uint256 balance = getUserBalance(msg.sender);
require(ba... | 2,474,056 | [
1,
1305,
1608,
31849,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1233,
12496,
1190,
13937,
12,
11890,
5034,
389,
8949,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
24899,
8949,
1545,
374,
18,
1611,
225,
2437,
10837,
6225,
1608,
358,
8843,
374,
18,
1611,
13750,
622,
4520,
8863,
203,
3639,... |
./full_match/97/0x0a82f2822b57047775E12b87524e85E13Cf6A0c2/sources/project_/contracts/Router1.sol | Add the following events to your contract Add 'swapAndLiquifyEnabled' and 'inSwapAndLiquify' bool variables | contract Router1 is Context, IBEP20, Ownable, ReentrancyGuard {
using Address for address;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _tOwned;
mapping (address => mapping (address => uint256)) private _allowances;
mapping (address => bool) private _isExc... | 5,031,289 | [
1,
986,
326,
3751,
2641,
358,
3433,
6835,
1436,
296,
22270,
1876,
48,
18988,
1164,
1526,
11,
471,
296,
267,
12521,
1876,
48,
18988,
1164,
11,
1426,
3152,
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,
16351,
9703,
21,
353,
1772,
16,
467,
5948,
52,
3462,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
225,
288,
202,
203,
565,
1450,
5267,
364,
1758,
31,
202,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
86,
5460,
32... |
./full_match/1/0x6a2Df7Fd15612079D1a72001F3a921Db792B2738/sources/src/bonding/Power.sol | * The values below depend on MAX_PRECISION. If you choose to change it: Apply the same change in file 'PrintIntScalingFactors.py', run it and paste the results below./* Auto-generated via 'PrintLn2ScalingFactors.py'/* Auto-generated via 'PrintFunctionOptimalLog.py' and 'PrintFunctionOptimalExp.py'/* The values below de... | work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge... | 17,178,905 | [
1,
1986,
924,
5712,
2447,
603,
4552,
67,
3670,
26913,
18,
971,
1846,
9876,
358,
2549,
518,
30,
5534,
326,
1967,
2549,
316,
585,
296,
5108,
1702,
8471,
23535,
18,
2074,
2187,
1086,
518,
471,
19401,
326,
1686,
5712,
18,
19,
8064,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
1252,
2132,
2433,
16,
26579,
5166,
578,
27431,
915,
16,
578,
1281,
471,
777,
203,
3011,
1543,
12610,
649,
302,
301,
1023,
578,
24528,
3631,
5456,
309,
4123,
735,
19293,
203,
5332,
2118,
1261,
26779,
434,
326,
25547,
434,
4123,
302,... |
./full_match/43113/0x69F959ed5d4c8f922b4866F6fb39D6f7f567cF0D/sources/airdrop.sol | 声明合约 AirDrop 继承 Ownable block.timestamp 定义一个用户结构体 | contract AirDrop is Ownable {
struct User {
}
function distribute(IERC20 token, address userAddress,uint256 amount) public {
require(false,"11111111111111111111");
require(token.approve(userAddress, amount));
require(token.transferFrom(owner(), userAddress, amount));
}
}
| 13,186,586 | [
1,
166,
101,
113,
167,
251,
241,
166,
243,
235,
168,
123,
104,
432,
481,
7544,
225,
168,
124,
105,
167,
236,
128,
14223,
6914,
1203,
18,
5508,
225,
166,
111,
253,
165,
122,
236,
165,
121,
227,
165,
121,
108,
168,
247,
106,
167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
481,
7544,
353,
14223,
6914,
288,
203,
203,
565,
1958,
2177,
288,
203,
565,
289,
203,
203,
203,
203,
203,
203,
565,
445,
25722,
12,
45,
654,
39,
3462,
1147,
16,
1758,
729,
1887,
16,
11890,
5034,
3844,
13,
1071,
288,... |
./partial_match/1/0x23c9e48F7E9fCa487bd0c4f41EE1445812d871fd/sources/Hat.sol | * Irreversably unlock buying./ | function unlock() public onlyOwner {
require(locked, 'Contract is already unlocked');
locked = false;
}
| 2,848,832 | [
1,
45,
86,
266,
2496,
6906,
7186,
30143,
310,
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,
7186,
1435,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
15091,
16,
296,
8924,
353,
1818,
25966,
8284,
203,
3639,
8586,
273,
629,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.6.0;
import "../node_modules/@openzeppelin/contracts/access/AccessControl.sol";
import "../node_modules/@openzeppelin/contracts/GSN/Context.sol";
import "../node_modules/@openzeppelin/contracts/math/SafeMath.sol";
import "./VoteNFT.sol";
contract Elections is Context, AccessControl, VoteNFT {
u... | * @dev Gets current state of a voter @return uint TODO @param electionID ID of election @param voter voter address/ | function getVoterInfo(uint electionID, address voter) public view returns (uint, bool, bool, bool, address, uint) {
Election storage e = elections[electionID];
return (e.voters[voter].weight, e.voters[voter].voted, e.voters[voter].registered,
e.voters[voter].hasChangedVote, e.voters[voter].d... | 12,604,973 | [
1,
3002,
783,
919,
434,
279,
331,
20005,
327,
2254,
2660,
225,
25526,
734,
1599,
434,
25526,
225,
331,
20005,
331,
20005,
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... | [
1,
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,
11031,
20005,
966,
12,
11890,
25526,
734,
16,
1758,
331,
20005,
13,
1071,
1476,
1135,
261,
11890,
16,
1426,
16,
1426,
16,
1426,
16,
1758,
16,
2254,
13,
288,
203,
3639,
512,
942,
2502,
425,
273,
25526,
87,
63,
292,
794... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity >=0.8.0 <0.9.0;
/// @notice Based on https://github.com/madler/zlib/blob/master/contrib/puff
library InflateLib {
// Maximum bits in a code
uint256 constant MAXBITS = 15;
// Maximum number of literal/length codes
uint256 constant MAXLCODES = 286;
... | Build fixed Huffman tables TODO this is all a compile-time constant Literal/length table Distance table | function _build_fixed(State memory s) private pure returns (ErrorCode) {
uint256 symbol;
uint256[] memory lengths = new uint256[](FIXLCODES);
for (symbol = 0; symbol < 144; symbol++) {
lengths[symbol] = 8;
}
for (; symbol < 256; symbol++) {
lengths[sy... | 2,474,003 | [
1,
3116,
5499,
670,
28581,
4606,
2660,
333,
353,
777,
279,
4074,
17,
957,
5381,
14392,
19,
2469,
1014,
20335,
1014,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
3510,
67,
12429,
12,
1119,
3778,
272,
13,
3238,
16618,
1135,
261,
12012,
13,
288,
203,
3639,
2254,
5034,
3273,
31,
203,
3639,
2254,
5034,
8526,
3778,
10917,
273,
394,
2254,
5034,
8526,
12,
4563,
48,
17070,
1769,
20... |
./full_match/80001/0x0646F208cb4B8567433df07405CE5163670A25d2/sources/project_/contracts/Pools.sol | require(msg.sender == owner); | function createPool(
string memory _name,
bool _buyable,
bool _owned,
uint256 _value,
uint256 _income,
uint256 _family,
uint256 _serie,
uint256 _level
) private {
pools[poolId] = Pool(
poolId,
_name,
... | 5,596,027 | [
1,
6528,
12,
3576,
18,
15330,
422,
3410,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
2864,
12,
203,
540,
203,
3639,
533,
3778,
389,
529,
16,
203,
3639,
1426,
389,
70,
9835,
429,
16,
203,
3639,
1426,
389,
995,
329,
16,
203,
3639,
2254,
5034,
389,
1132,
16,
203,
3639,
2254,
5034,
389,
267,
5624,
... |
// File: https://github.com/RAT-TECHNOLOGIES/evm-contracts/blob/9820f1acbb53d4411ba120fb8af805bf519fb8a3/contracts/misc/opensea/ProxyRegistry.sol
pragma solidity ^0.8.4;
contract OwnableDelegateProxy {}
contract ProxyRegistry {
mapping(address => OwnableDelegateProxy) public proxies;
}
// File: @openzeppelin/... | File: https:github.com/RAT-TECHNOLOGIES/evm-contracts/blob/9820f1acbb53d4411ba120fb8af805bf519fb8a3/contracts/collections/ERC721/extensions/ERC721BulkifyExtension.sol* @dev Extension to add bulk operations to a standard ERC721 contract./ | abstract contract ERC721BulkifyExtension is Context, ERC721 {
function transferFromBulk(
address from,
address to,
uint256[] memory tokenIds
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
function _afterTokenTransfer(
address... | 1,119,026 | [
1,
812,
30,
2333,
30,
6662,
18,
832,
19,
54,
789,
17,
1448,
1792,
3417,
4842,
8805,
19,
73,
3489,
17,
16351,
87,
19,
10721,
19,
10689,
3462,
74,
21,
1077,
9897,
8643,
72,
6334,
2499,
12124,
22343,
19192,
28,
1727,
3672,
25,
17156,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27,
5340,
13112,
1164,
3625,
353,
1772,
16,
4232,
39,
27,
5340,
288,
203,
565,
445,
7412,
1265,
13112,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
3778,
1147,
2673,
... |
pragma solidity ^0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint... | * @dev Checks whether the crowdsale has ended. @return Whether the crowdsale has ended/ | function hasEnded() public view returns (bool) {
return now > endTime || capReached();
}
| 119,866 | [
1,
4081,
2856,
326,
276,
492,
2377,
5349,
711,
16926,
18,
327,
17403,
326,
276,
492,
2377,
5349,
711,
16926,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
711,
28362,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
565,
327,
2037,
405,
13859,
747,
3523,
23646,
5621,
203,
225,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0xa33ba513Be08f822BDC2806bde89A9e0727Fd670/sources/contracts/mojito/onchain/OnchainBuy.sol | @notice The details to be provided to buy the token @param saleId the Id of the created sale @param tokenOwner the owner of the nft token @param tokenId the token Id of the owner owns @param tokenQuantity the token Quantity only required if minting @param quantity the quantity of tokens for 1155 only @param buyer the ... | struct BuyList {
string saleId;
address tokenOwner;
uint256 tokenId;
uint64 tokenQuantity;
uint64 quantity;
address buyer;
address paymentToken;
uint256 paymentAmount;
address gatedColletion;
uint256 gatedTokenId;
}
| 17,022,111 | [
1,
1986,
3189,
358,
506,
2112,
358,
30143,
326,
1147,
225,
272,
5349,
548,
326,
3124,
434,
326,
2522,
272,
5349,
225,
1147,
5541,
326,
3410,
434,
326,
290,
1222,
1147,
225,
1147,
548,
326,
1147,
3124,
434,
326,
3410,
29065,
225,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
605,
9835,
682,
288,
203,
3639,
533,
272,
5349,
548,
31,
203,
3639,
1758,
1147,
5541,
31,
203,
3639,
2254,
5034,
1147,
548,
31,
203,
3639,
2254,
1105,
1147,
12035,
31,
203,
3639,
2254,
1105,
10457,
31,
203,
3639,
1758,... |
./partial_match/1/0xDB8367c2cB51532951C570857832AebD4D72Ece7/sources/contracts/wtf20230607.sol | time stamp of curr' intervals START (ends at + intSpendInterval)
| intSpendCurrInterval = block.timestamp; | 15,636,724 | [
1,
957,
14429,
434,
4306,
11,
10389,
10485,
261,
5839,
622,
397,
509,
27223,
4006,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
509,
27223,
20143,
4006,
273,
1203,
18,
5508,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
... | * @dev Unlock tokens for the address @param _address address The address you want to unlock tokens/ | function unlock(address _address) onlyOwnerOrAdmin public {
locks[_address] = false;
delete locksMeta[_address];
emit UnLock(_address);
}
| 6,655,476 | [
1,
7087,
2430,
364,
326,
1758,
225,
389,
2867,
1758,
1021,
1758,
1846,
2545,
358,
7186,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7186,
12,
2867,
389,
2867,
13,
1338,
5541,
1162,
4446,
1071,
288,
203,
565,
13046,
63,
67,
2867,
65,
273,
629,
31,
203,
565,
1430,
13046,
2781,
63,
67,
2867,
15533,
203,
565,
3626,
1351,
2531,
24899,
2867,
1769,
203,
... |
./full_match/4/0xA97Cbe3C41B7f4a7a3D7e4c087d9B1DE2A53424F/sources/contracts/finalshit.sol | * Uses ERC721Enumerable _beforeTokenTransfer() implementation./ | function _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC721, ERC721Enumerable){
ERC721Enumerable._beforeTokenTransfer(from, to, amount);
}
| 675,880 | [
1,
15128,
4232,
39,
27,
5340,
3572,
25121,
389,
5771,
1345,
5912,
1435,
4471,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
3849,
12,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
15329,
203,
3639,
4232,
39,
27,
5340,
3572,
25121,
6315,
5771,
134... |
./full_match/80001/0x9EE4Ae31D7aCF2Ac546fe7daDF64c7C766163C56/sources/contracts/FractionalNft.sol | require amount <= remaining supply | function mintToken(uint24 amount) public {
transferFrom(address(this), msg.sender, amount);
}
| 5,687,164 | [
1,
6528,
3844,
1648,
4463,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
1345,
12,
11890,
3247,
3844,
13,
1071,
288,
203,
3639,
7412,
1265,
12,
2867,
12,
2211,
3631,
1234,
18,
15330,
16,
3844,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0x04794c64d720A77809FC2826d4EdEF551D266f7d/sources/tests/price_Oracle.sol | library with helper methods for oracles that are concerned with computing average prices helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1] | library UniswapV2OracleLibrary {
using FixedPoint for *;
pragma solidity ^0.6.12;
function currentBlockTimestamp() internal view returns (uint32) {
return uint32(block.timestamp % 2 ** 32);
}
function currentCumulativePrices(
address pair
) internal view returns (uint price0Cumulat... | 16,231,239 | [
1,
12083,
598,
4222,
2590,
364,
578,
69,
9558,
716,
854,
356,
2750,
11748,
598,
20303,
8164,
19827,
4222,
445,
716,
1135,
326,
783,
1203,
2858,
3470,
326,
1048,
434,
2254,
1578,
16,
277,
18,
73,
18,
306,
20,
16,
576,
1578,
300,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
1351,
291,
91,
438,
58,
22,
23601,
9313,
288,
203,
565,
1450,
15038,
2148,
364,
380,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
26,
18,
2138,
31,
203,
565,
445,
30610,
4921,
1435,
2713,
1476,
1135,
261,
11890,
15... |
./full_match/1/0xe261B138cfd46FdC12A039cF6690645f35DCFA37/sources/contracts/DropFactory/DropFactory.sol | * ____________________________________________________________________________________________________________________ -->VRF @dev (function) requestVRFRandomness Get the metadata start position for use on re... | function requestVRFRandomness() external payable {
if (deployedNFTContracts[msg.sender] = true) {
if (vrfMode == 0) {
addressForChainlinkVRFRequestId[
vrfCoordinatorInterface.requestRandomWords(
vrfKeyHash,
vrfSubscriptionId,
vrfRequestConfirmations,
... | 3,107,483 | [
1,
21157,
21157,
21157,
21157,
21157,
21157,
21157,
7198,
28524,
4766,
7734,
15431,
10986,
42,
225,
261,
915,
13,
590,
10986,
42,
8529,
4496,
225,
968,
326,
1982,
787,
1754,
364,
999,
603,
283,
24293,
434,
326,
4440,
1849,
389,
21157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
590,
10986,
42,
8529,
4496,
1435,
3903,
8843,
429,
288,
203,
565,
309,
261,
12411,
329,
50,
4464,
20723,
63,
3576,
18,
15330,
65,
273,
638,
13,
288,
203,
1377,
309,
261,
16825,
2309,
422,
374,
13,
288,
203,
3639,
1758... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
import "../helpers/LiquityHelper.sol";
import "../../../utils/TokenUtils.sol";
import "../../ActionBase.sol";
contract LiquityOpen is ActionBase, LiquityHelper {
using TokenUtils for address;
struct Params {
ui... | @notice Opens up a trove | function _liquityOpen(Params memory _params) internal returns (uint256) {
if (_params.collAmount == type(uint256).max) {
_params.collAmount = TokenUtils.WETH_ADDR.getBalance(_params.from);
}
TokenUtils.WETH_ADDR.pullTokensIfNeeded(_params.from, _params.collAmount);
TokenU... | 5,390,612 | [
1,
17778,
731,
279,
23432,
537,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
549,
372,
560,
3678,
12,
1370,
3778,
389,
2010,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
67,
2010,
18,
12910,
6275,
422,
618,
12,
11890,
5034,
2934,
1896,
13,
288,
203,
5411,
389,
2010,
18,... |
pragma solidity 0.5.11;
import {
InitializeGovernedUpgradeabilityProxy
} from "./InitializeGovernedUpgradeabilityProxy.sol";
/**
* @notice OUSDProxy delegates calls to an OUSD implementation
*/
contract OUSDProxy is InitializeGovernedUpgradeabilityProxy {
}
/**
* @notice VaultProxy delegates calls to a Vault... | * @notice OUSDProxy delegates calls to an OUSD implementation/ | contract OUSDProxy is InitializeGovernedUpgradeabilityProxy {
}
| 12,835,591 | [
1,
21667,
40,
3886,
22310,
4097,
358,
392,
531,
3378,
40,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
531,
3378,
40,
3886,
353,
9190,
43,
1643,
11748,
10784,
2967,
3886,
288,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IMerkleDistributor.sol";
contract MerkleDistributor ... | dev add modifier to check that it is only Prize Distribution Contract | function setMerkleRootPerEpoch(bytes32 _merkleRoot, uint256 _epoch) external {
merkleRootInEpoch[_epoch] = _merkleRoot;
}
| 13,140,561 | [
1,
5206,
527,
9606,
358,
866,
716,
518,
353,
1338,
2301,
554,
17547,
13456,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
8478,
15609,
2375,
2173,
14638,
12,
3890,
1578,
389,
6592,
15609,
2375,
16,
2254,
5034,
389,
12015,
13,
3903,
288,
203,
3639,
30235,
2375,
382,
14638,
63,
67,
12015,
65,
273,
389,
6592,
15609,
2375,
31,
203,
565,
2... |
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗█... | / get lp tokens Transfer tokens | function ZapOut(
address swapAddress,
uint256 incomingCrv,
address intermediateToken,
address toToken,
uint256 minToTokens,
address _swapTarget,
bytes calldata _swapCallData,
address affiliate,
bool shouldSellEntireBalance
) external stopIn... | 1,839,036 | [
1,
19,
336,
12423,
2430,
12279,
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,
2285,
438,
1182,
12,
203,
3639,
1758,
7720,
1887,
16,
203,
3639,
2254,
5034,
6935,
39,
4962,
16,
203,
3639,
1758,
12110,
1345,
16,
203,
3639,
1758,
358,
1345,
16,
203,
3639,
2254,
5034,
1131,
774,
5157,
16,
203,
3639,
... |
./full_match/80001/0x1BcB8966c6D624447E97f5006c6538AB87233D49/sources/contracts/DeFiLabs.sol | Important to get a count of all the Transaction that belong to the user before we can make an array for them | function getSubmitedTransactions() public view returns (Transaction[] memory) {
uint256 itemCount = 0;
uint256 currentIndex = 0;
for(uint256 i=0;i<transactionCount;i++)
{
if(confirmations[i][msg.sender] && !transactions[i].executed && !transactions[i].deleted){
... | 843,941 | [
1,
5010,
970,
358,
336,
279,
1056,
434,
777,
326,
5947,
716,
10957,
358,
326,
729,
1865,
732,
848,
1221,
392,
526,
364,
2182,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7040,
1938,
329,
14186,
1435,
1071,
1476,
1135,
261,
3342,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
761,
1380,
273,
374,
31,
203,
3639,
2254,
5034,
17032,
273,
374,
31,
203,
3639,
364,
12,
11890,
5034,
277,
33,
20,
... |
pragma solidity ^0.4.22;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed p... | @notice 新たに生み出します @param _rocId @param _dna 支払いを確認します。 超過分を買い手に返す | function giveProduce(uint _rocId, string _dna)
external
payable
whenNotPaused
returns(uint)
{
require(msg.value >= eggPrice);
uint createRocId = _createRoc(
_rocId,
_dna,
0,
msg.sender
);
uint256 bi... | 5,500,369 | [
1,
167,
249,
113,
164,
228,
258,
164,
228,
109,
168,
247,
258,
164,
228,
128,
166,
234,
123,
164,
228,
250,
164,
228,
127,
164,
228,
252,
225,
389,
303,
71,
548,
225,
389,
5176,
69,
225,
167,
247,
112,
167,
236,
248,
164,
228,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8492,
25884,
12,
11890,
389,
303,
71,
548,
16,
533,
389,
5176,
69,
13,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
1347,
1248,
28590,
203,
3639,
1135,
12,
11890,
13,
203,
565,
288,
203,
3639,
2583,
12,
3576,
18,... |
pragma solidity ^0.4.24;
import "zeppelin-solidity/contracts/math/SafeMath.sol";
import "zeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "./IDaico.sol";
contract Daico is IDaico {
using SafeMath for uint;
event InvestEvent(uint _amount, address _sender, uint _total, uint _tapSum, uint _startedAt);
even... | * @param _from – start time of this time interval @param _long – duration of this time interval @return is current moment in this time interval/ | function at(uint _from, uint _long) public view returns(bool) {
return ((now >= _from + startedAt) && (now < startedAt + _from + _long));
}
| 1,836,709 | [
1,
67,
2080,
225,
163,
227,
246,
787,
813,
434,
333,
813,
3673,
225,
389,
5748,
225,
163,
227,
246,
3734,
434,
333,
813,
3673,
327,
353,
783,
10382,
316,
333,
813,
3673,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
622,
12,
11890,
389,
2080,
16,
2254,
389,
5748,
13,
1071,
1476,
1135,
12,
6430,
13,
288,
203,
202,
202,
2463,
14015,
3338,
1545,
389,
2080,
397,
5746,
861,
13,
597,
261,
3338,
411,
5746,
861,
397,
389,
2080,
397,
389,... |
./full_match/97/0x64d20d5FD54Ef80DFBa073868503307CAF8De046/sources/project_/contracts/AfntyMigrator.sol | FOR USER NEED APPROVE FROM UI | function migrate() external {
uint legacyTokenBalance = legacyToken.balanceOf(msg.sender);
uint newTokenBalance = newToken.balanceOf(msg.sender);
legacyToken.transferFrom(msg.sender, address(this), legacyTokenBalance);
uint contractTokenBalance = legacyToken.balanceOf(address(this));
legacyToken.d... | 5,032,102 | [
1,
7473,
7443,
12901,
2056,
14410,
3373,
3412,
4571,
6484,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
13187,
1435,
3903,
288,
203,
565,
2254,
8866,
1345,
13937,
273,
8866,
1345,
18,
12296,
951,
12,
3576,
18,
15330,
1769,
203,
565,
2254,
394,
1345,
13937,
273,
394,
1345,
18,
12296,
951,
12,
3576,
18,
15330,
1769,
203,
56... |
./full_match/1/0xf7BCc16f5Ccf1c7Fa195C22dda8a88329E528649/sources/browser/CUSD.sol | 成都链安 声明常量symbol,存储代币简称为CUSD
| string public constant symbol = "CUSD"; | 16,396,285 | [
1,
167,
235,
243,
170,
230,
126,
170,
246,
127,
166,
111,
236,
225,
225,
166,
101,
113,
167,
251,
241,
166,
121,
121,
170,
234,
242,
7175,
176,
125,
239,
166,
260,
251,
166,
229,
106,
165,
124,
101,
166,
121,
228,
168,
111,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
5381,
3273,
273,
315,
39,
3378,
40,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/3/0x254fb06F4f5b42B612C33b2e27Fd810C1800A721/sources/Formula.sol | src/Formula.sol pragma solidity ^0.6.7; */ import "zeppelin-solidity/proxy/Initializable.sol"; */ import "ds-auth/auth.sol"; */ import "./interfaces/IFormula.sol"; */ import "./interfaces/ISettingsRegistry.sol"; */ import "./FurnaceSettingIds.sol"; */ | contract Formula is Initializable, DSAuth, FurnaceSettingIds, IFormula {
event SetStrength(
uint256 indexed inde,
uint112 baseRate,
uint112 enhanceRate
);
event SetLimits(uint256 indexed index, uint256[] limits);
FormulaEntry[] public formulas;
function insert(
bytes32 _name,
bytes calldata _meta,
... | 5,272,079 | [
1,
4816,
19,
14972,
18,
18281,
10878,
18035,
560,
3602,
20,
18,
26,
18,
27,
31,
342,
1930,
315,
94,
881,
84,
292,
267,
17,
30205,
560,
19,
5656,
19,
4435,
6934,
18,
18281,
14432,
342,
1930,
315,
2377,
17,
1944,
19,
1944,
18,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26758,
353,
10188,
6934,
16,
8678,
1730,
16,
478,
321,
623,
5568,
2673,
16,
467,
14972,
288,
203,
202,
2575,
1000,
27624,
12,
203,
202,
202,
11890,
5034,
8808,
316,
323,
16,
203,
202,
202,
11890,
17666,
1026,
4727,
16,
203... |
./full_match/28/0x6e95118f381F60B09FA8Ba750470DA6136d872F9/sources/contracts/DAO/governance/GovernorBravoInterfaces.sol | proposalId to tokenId to receipt | contract GovernorBravoDelegateStorageV2 is GovernorBravoDelegateStorageV1 {
VeInterface public ve;
mapping (uint => mapping (uint => Receipt)) public veReceipts;
}
| 16,364,941 | [
1,
685,
8016,
548,
358,
1147,
548,
358,
16030,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
611,
1643,
29561,
38,
354,
12307,
9586,
3245,
58,
22,
353,
611,
1643,
29561,
38,
354,
12307,
9586,
3245,
58,
21,
288,
203,
565,
776,
73,
1358,
1071,
10489,
31,
203,
565,
2874,
261,
11890,
516,
2874,
261,
11890,
516,
29787,... |
pragma solidity ^0.5.2;
/*
ETICA: a type1 civilization neutral protocol for medical research
KEVIN WAD OSSENI
*/
/*
MIT License
Copyright © 26/08/2019, KEVIN WAD OSSENI
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), t... | can vote for proposal only if default vote has changed prestatus of Proposal. Thus can vote only if default vote occured as supposed to
| require(proposaldata.prestatus != ProposalStatus.Pending); | 13,003,960 | [
1,
4169,
12501,
364,
14708,
1338,
309,
805,
12501,
711,
3550,
675,
2327,
434,
19945,
18,
22073,
848,
12501,
1338,
309,
805,
12501,
16206,
487,
18405,
358,
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,
2583,
12,
685,
8016,
892,
18,
1484,
2327,
480,
19945,
1482,
18,
8579,
1769,
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,
-10... |
/**
*Submitted for verification at Etherscan.io on 2020-05-04
*/
pragma solidity ^0.6.2;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in suc... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| return (certs[_certId].certHash,certs[_certId].certExpires,certs[_certId].issuedOn); | 12,653,358 | [
1,
22170,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
261,
24596,
63,
67,
7593,
548,
8009,
7593,
2310,
16,
24596,
63,
67,
7593,
548,
8009,
7593,
14449,
16,
24596,
63,
67,
7593,
548,
8009,
1054,
5957,
1398,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x174AbAC55809AD53287292e80400fcbb74c95e2F/sources/project_/contracts/HADappCommunityPool.sol | Community.Pool mints | function communityPoolMint(uint _count) public payable {
uint totalMinted = _tokenIds.current();
uint dappTreasurySale = 0.05 ether;
require(totalMinted.add(_count) <= MAX_SUPPLY, "Not enough NFTs left!");
require(msg.value >= dappTreasurySale.mul(_count), "Not enough ether t... | 5,647,831 | [
1,
12136,
13352,
18,
2864,
312,
28142,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19833,
2864,
49,
474,
12,
11890,
389,
1883,
13,
1071,
8843,
429,
288,
203,
3639,
2254,
2078,
49,
474,
329,
273,
389,
2316,
2673,
18,
2972,
5621,
203,
3639,
2254,
302,
2910,
56,
266,
345,
22498,
30746,
273,
374,
18,
62... |
pragma solidity ^0.4.24;
/*
@title Provides support and utilities for contract ownership
*/
contract Ownable {
address public owner;
address public newOwnerCandidate;
event OwnerUpdate(address prevOwner, address newOwner);
/*
@dev constructor
*/
constructor() public {
owner = m... | @dev Grant tokens to a specified address. @param _to address The address to grant tokens to. @param _value uint256 The amount of tokens to be granted. @param _start uint256 The beginning of the vesting period. @param _cliff uint256 Duration of the cliff period. @param _end uint256 The end of the vesting period. @param... | function grant(address _to, uint256 _value, uint256 _start, uint256 _cliff, uint256 _end, bool _revokable)
public ownerOnly {
require(_to != address(0));
require(_value > 0);
require(grants[_to].value == 0);
require(_start <= _cliff && _cliff <= _end);
require(tota... | 6,476,293 | [
1,
9021,
2430,
358,
279,
1269,
1758,
18,
225,
389,
869,
1758,
1021,
1758,
358,
7936,
2430,
358,
18,
225,
389,
1132,
2254,
5034,
1021,
3844,
434,
2430,
358,
506,
17578,
18,
225,
389,
1937,
2254,
5034,
1021,
8435,
434,
326,
331,
10100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7936,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
16,
2254,
5034,
389,
1937,
16,
2254,
5034,
389,
830,
3048,
16,
2254,
5034,
389,
409,
16,
1426,
389,
9083,
601,
429,
13,
203,
3639,
1071,
3410,
3386,
288,
203,
3639,... |
./full_match/1/0x1be1De9fdC22bF0716b12006e4092634DC4a2fc0/sources/contracts/Marketplace.sol | * @dev See {ISimpleMarketplace-buyBundle}./ | function buyBundle(uint256 bundleId) external payable override {
require(_bundleExists(bundleId), "Bundle does not exist");
Bundle memory bundle = _bundleIdToBundle[bundleId];
uint256 msgValue = msg.value;
address senderAddress = _msgSender();
address creatorAddress = bundl... | 4,857,622 | [
1,
9704,
288,
5127,
2052,
3882,
24577,
17,
70,
9835,
3405,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3405,
12,
11890,
5034,
3440,
548,
13,
3903,
8843,
429,
3849,
288,
203,
3639,
2583,
24899,
9991,
4002,
12,
9991,
548,
3631,
315,
3405,
1552,
486,
1005,
8863,
203,
203,
3639,
8539,
3778,
3440,
273,
389,
9991,
28803,
... |
./partial_match/3/0x634e8beDF1db594565B41ED0F56B49561EB0f001/sources/LiquidDemocracy.sol | add a new address 如果是0地址,返回0 如果是新地址,生成一个编号 | function getAddrNum(address addr) onlyOwner public returns(uint32){
if(addr == address(0x0))
return 0;
else if (mAddr_number[addr] == 0) {
++node_count;
mAddr_number[addr] = node_count;
vfather.push(0);
vtag.push(0);
vchild.push... | 5,213,990 | [
1,
1289,
279,
394,
1758,
225,
166,
104,
229,
167,
257,
255,
167,
251,
112,
20,
166,
255,
113,
166,
256,
227,
176,
125,
239,
169,
128,
247,
166,
254,
257,
20,
225,
166,
104,
229,
167,
257,
255,
167,
251,
112,
167,
249,
113,
166... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
336,
3178,
2578,
12,
2867,
3091,
13,
1338,
5541,
1071,
1135,
12,
11890,
1578,
15329,
203,
3639,
309,
12,
4793,
422,
1758,
12,
20,
92,
20,
3719,
203,
5411,
327,
374,
31,
203,
3639,
469,
309,
261,
81,
3178,
67,
2696,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.2;
import "./HedgerParty.sol";
import "./SafeMath.sol";
contract OpenHedge1200
{
// OpenHedgeProtocol Version
string public constant OpenHedgeProtocol = "0.12.0";
enum HedgeStatus {AVAILABLE, RESERVED, FUNDED, CANCELLED, ACTIVE, FINISHED}
HedgeSta... | Open Hedger Constructor | constructor() {
ownerAddr = msg.sender;
deployedOn = block.timestamp;
seller = new HedgerParty(address(this));
buyer = new HedgerParty(address(this));
}
| 1,085,509 | [
1,
3678,
670,
329,
693,
11417,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
3410,
3178,
273,
1234,
18,
15330,
31,
203,
3639,
19357,
1398,
273,
1203,
18,
5508,
31,
203,
3639,
29804,
273,
394,
670,
329,
693,
17619,
12,
2867,
12,
2211,
10019,
203,
3639,
27037,
273,
394,
670,... |
./partial_match/4/0x91b9dBc41850963CD5195e937f6E924f288B2980/sources/RoseToken.sol | Update reward variables of the given pool to be up-to-date. | function updatePool1(uint256 _pid) public {
PoolInfo1 storage pool = poolInfo1[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.totalAmount;
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
retur... | 8,514,081 | [
1,
1891,
19890,
3152,
434,
326,
864,
2845,
358,
506,
731,
17,
869,
17,
712,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2864,
21,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
21,
2502,
2845,
273,
2845,
966,
21,
63,
67,
6610,
15533,
203,
3639,
309,
261,
2629,
18,
2696,
1648,
2845,
18,
2722,
17631,
1060,
1768,
1... |
pragma solidity >=0.4.0;
/**
* Interface for managing Secure Native authorizations.
* @dev This interface describes the functions exposed by the native permissions layer in burrow.
* @dev These functions can be accessed as if this contract were deployed at a special address (0x0A758FEB535243577C1A79AE55BED8CA03E226EC... | * Interface for managing Secure Native authorizations. @dev This interface describes the functions exposed by the native permissions layer in burrow. @dev These functions can be accessed as if this contract were deployed at a special address (0x0A758FEB535243577C1A79AE55BED8CA03E226EC). @dev This special address is def... | contract Permissions {
function addRole(address Account, string memory Role) public view returns (bool Result);
function removeRole(address Account, string memory Role) public view returns (bool Result);
function hasRole(address Account, string memory Role) public view returns (bool Result);
function... | 12,745,194 | [
1,
1358,
364,
30632,
15653,
16717,
2869,
7089,
18,
225,
1220,
1560,
19605,
326,
4186,
16265,
635,
326,
6448,
4371,
3018,
316,
324,
295,
492,
18,
225,
8646,
4186,
848,
506,
15539,
487,
309,
333,
6835,
4591,
19357,
622,
279,
4582,
1758,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
15684,
288,
203,
565,
445,
527,
2996,
12,
2867,
6590,
16,
533,
3778,
6204,
13,
1071,
1476,
1135,
261,
6430,
3438,
1769,
203,
203,
565,
445,
1206,
2996,
12,
2867,
6590,
16,
533,
3778,
6204,
13,
1071,
1476,
1135,
261,
6430,
... |
./partial_match/3/0xD13e3c3fFEFC7668Cc145286B1527f39e52dCfb9/sources/STARS.sol | * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is forwarded in {IERC721Receiver-onERC721Received} to contract recipients./ | function _safeMint(address to, uint256 tokenId, bytes memory _data ) internal virtual {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
| 5,051,333 | [
1,
8650,
487,
288,
22044,
17,
654,
39,
27,
5340,
17,
67,
4626,
49,
474,
17,
2867,
17,
11890,
5034,
17,
20294,
68,
67,
4626,
49,
474,
68,
6487,
598,
392,
3312,
1375,
892,
68,
1569,
1492,
353,
19683,
316,
288,
45,
654,
39,
27,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
389,
4626,
49,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
16,
1731,
3778,
389,
892,
262,
2713,
5024,
288,
203,
3639,
389,
81,
474,
12,
869,
16,
1147,
548,
1769,
203,
3639,
2583,
24899,
1893,
1398,
654,
39,
27,
5... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
interface ERC20 {
function totalSupply() external view returns (uint _totalSupply);
function balanceOf(address _owner) external view returns (uint balance);
function transfer(address _to, uint _value) external returns (bool success);
functi... | Defining source of funds and checking availability | function sell(address token, uint qty, bool self) public onlyAuth {
address source;
if(self) {
source = address(this);
if(qty==0) {
qty = ERC20(token).balanceOf(source);
require(ERC20(token).balanceOf(source) >= qty, "No tokens");
... | 1,545,429 | [
1,
6443,
310,
1084,
434,
284,
19156,
471,
6728,
13395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
357,
80,
12,
2867,
1147,
16,
2254,
26667,
16,
1426,
365,
13,
1071,
1338,
1730,
288,
203,
540,
203,
3639,
1758,
1084,
31,
203,
3639,
309,
12,
2890,
13,
288,
203,
5411,
1084,
273,
1758,
12,
2211,
1769,
203,
5411,
309,
... |
pragma solidity ^0.5.0;
contract CogScience_project {
int public max_score;
int public min_score;
uint public totalNum_transactions; // it's used as transaction's ID too.
uint public totalNum_proposals;
uint public lecture_tokens; // it keeps a fixed number of tokens.
uint public current_l... | check if the the sender of the feedback is one of the parties involded in the transaction and has not already left any feedback yet.
| (bool can, uint res) = canLeave_feedback(msg.sender, transaction_id); | 12,760,869 | [
1,
1893,
309,
326,
326,
5793,
434,
326,
10762,
353,
1245,
434,
326,
1087,
606,
29876,
785,
316,
326,
2492,
471,
711,
486,
1818,
2002,
1281,
10762,
4671,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
261,
6430,
848,
16,
2254,
400,
13,
273,
848,
21300,
67,
12571,
12,
3576,
18,
15330,
16,
2492,
67,
350,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//Address: 0x8515ee7b050b62e99444f235fe92cdf1aac6bcff
//Contract name: RaceSmart4h
//Balance: 0 Ether
//Verification Date: 2/27/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* How addresses of non ERC20 coins were defined:
* address(web3.sha3(coin_symbol_in_upper_case))
*
* Exampl... | The main account that holds all tokens at the beginning and during tokensale.
| address public seller; | 1,015,469 | [
1,
1986,
2774,
2236,
716,
14798,
777,
2430,
622,
326,
8435,
471,
4982,
2430,
5349,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
1071,
29804,
31,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: LGPL-3.0
pragma solidity ^0.8.9;
import "./BDERC1155Tradable.sol";
import "./IWarrior.sol";
import "./IRegion.sol";
//Import ERC1155 standard for utilizing FAME tokens
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Ho... | *@notice Insufficient Chests of type: `chestType`, you only have `balance` chests of that type!@param chestType The type of chest (1=Bronze,2=Silver,3=Gold,4=Diamond)@param balance The number of chests the user currently has of the specified type/ | error InsufficientChests(uint8 chestType, uint256 balance);
| 13,683,490 | [
1,
5048,
11339,
1680,
25563,
434,
618,
30,
1375,
343,
395,
559,
9191,
1846,
1338,
1240,
1375,
12296,
68,
462,
25563,
434,
716,
618,
5,
462,
395,
559,
1021,
618,
434,
462,
395,
261,
21,
33,
38,
1949,
8489,
16,
22,
33,
19740,
502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
555,
22085,
11339,
782,
25563,
12,
11890,
28,
462,
395,
559,
16,
2254,
5034,
11013,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xC18a125eF42F780d4DFDcc666012aDa2b62a6c2C/sources/browser/advancessd.sol | approve ESDS contract to move ESD (needed to stage and bond) (Not needed to redeem coupons but is nice to have if you want to use this contract as an ESD wallet) | constructor() {
IERC20(esd).approve(address(esds), uint256(uint128(-1)));
}
| 4,854,570 | [
1,
12908,
537,
14054,
3948,
6835,
358,
3635,
512,
9903,
261,
17471,
358,
6009,
471,
8427,
13,
261,
1248,
3577,
358,
283,
24903,
1825,
30324,
1496,
353,
13752,
358,
1240,
309,
1846,
2545,
358,
999,
333,
6835,
487,
392,
512,
9903,
9230,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
467,
654,
39,
3462,
12,
281,
72,
2934,
12908,
537,
12,
2867,
12,
281,
2377,
3631,
2254,
5034,
12,
11890,
10392,
19236,
21,
3719,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0xbBE062BfBffBE75e6f8DE1a64250F8F71380DA48/sources/contracts/MarsbaseMarketplace.sol | cancel all other bids return $ALICE tokens to Alice if (offer.params.tokenAlice == address(0)) sendEth(offer.aliceAddress, offer.params.amountAlice); else IERC20(offer.params.tokenAlice).safeTransfer(offer.aliceAddress, offer.params.amountAlice); emit offer closed event | function _cancelOffer(uint256 offerId, BidCancelReason bidReason, OfferCloseReason offerReason) private
{
offers[offerId].active = false;
BBOffer memory offer = offers[offerId];
_cancelAllBids(offerId, bidReason);
delete offers[offerId];
activeOffersCount--;
emit OfferClosed({
id: offerId,
... | 8,389,311 | [
1,
10996,
777,
1308,
30534,
225,
327,
271,
1013,
11774,
2430,
358,
432,
2008,
309,
261,
23322,
18,
2010,
18,
2316,
37,
2008,
422,
1758,
12,
20,
3719,
225,
202,
4661,
41,
451,
12,
23322,
18,
287,
1812,
1887,
16,
10067,
18,
2010,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
389,
10996,
10513,
12,
11890,
5034,
10067,
548,
16,
605,
350,
6691,
8385,
9949,
8385,
16,
25753,
4605,
8385,
10067,
8385,
13,
3238,
203,
202,
95,
203,
202,
202,
3674,
414,
63,
23322,
548,
8009,
3535,
273,
629,
31,
203,
... |
/**
* Note for the truffle testversion:
* DragonKingTest inherits from DragonKing and adds one more function for testing the volcano from truffle.
* For deployment on ropsten or mainnet, just deploy the DragonKing contract and remove this comment before verifying on
* etherscan.
* */
/**
* Dragonking is a bloc... | * is fired when a knight fights a dragon **/ | event NewFight(uint32 winnerID, uint32 loserID, uint256 value);
| 15,202,264 | [
1,
291,
15950,
1347,
279,
15516,
750,
284,
10730,
279,
8823,
265,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
2575,
1166,
42,
750,
12,
11890,
1578,
5657,
1224,
734,
16,
2254,
1578,
437,
550,
734,
16,
2254,
5034,
460,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x3c6d9EFC7bE32C00caAEa6F89763ae58A8F74Db0/sources/contracts/CallToken.sol | * @dev See {IERC721-safeTransferFrom}./ | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override(IERC721, ERC721) {
uint256 endTime = ICallPoolState(Ownable.owner()).getEndTime(tokenId);
require(block.timestamp <= endTime, "token is expired");
ERC721.safeTransferFro... | 3,004,628 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
4626,
5912,
1265,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4183,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
5024,
3849,
12,
45,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
13,
288,
203,
3639,
225... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* ... | @notice Token URI resolver | ITokenUriResolver public tokenUriResolver;
| 105,773 | [
1,
1345,
3699,
5039,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
1345,
3006,
4301,
1071,
1147,
3006,
4301,
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,
... |
pragma solidity ^0.4.24;
import "./Partnership.sol";
/**
* @title Permissions contract.
* @author Talao, Polynomial.
* @notice See ../identity/KeyHolder.sol as well.
*/
contract Permissions is Partnership {
// Foundation contract.
Foundation foundation;
// Talao token contract.
TalaoToken public... | * @title Permissions contract. @author Talao, Polynomial. @notice See ../identity/KeyHolder.sol as well./ Foundation contract. Talao token contract. | contract Permissions is Partnership {
Foundation foundation;
TalaoToken public token;
constructor(
address _foundation,
address _token,
uint16 _category,
uint16 _asymetricEncryptionAlgorithm,
uint16 _symetricEncryptionAlgorithm,
bytes _asymetricEncryptionPu... | 13,112,298 | [
1,
6521,
6835,
18,
225,
399,
287,
6033,
16,
6730,
13602,
18,
225,
2164,
6116,
19,
10781,
19,
653,
6064,
18,
18281,
487,
5492,
18,
19,
31289,
6835,
18,
399,
287,
6033,
1147,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
15684,
353,
6393,
9646,
5310,
288,
203,
203,
565,
31289,
1392,
367,
31,
203,
203,
565,
399,
287,
6033,
1345,
1071,
1147,
31,
203,
203,
565,
3885,
12,
203,
3639,
1758,
389,
30493,
16,
203,
3639,
1758,
389,
2316,
16,
203,
... |
//Address: 0x8037a3e0d864b1f332e52cf60f999990a9780c54
//Contract name: Airdropper
//Balance: 0 Ether
//Verification Date: 1/26/2018
//Transacion Count: 16
// CODE STARTS HERE
pragma solidity ^0.4.11;
// File: contracts/zeppelin/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has ... | * @title Ownable @dev The Ownable contract has an owner address, and provides basic authorization control functions, this simplifies the implementation of "user permissions"./ | contract Ownable {
address public owner;
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner {
require(newOwner != address(0));
owner = newOwner;
}
}
| 12,701,229 | [
1,
5460,
429,
225,
1021,
14223,
6914,
6835,
711,
392,
3410,
1758,
16,
471,
8121,
5337,
6093,
3325,
4186,
16,
333,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
6914,
288,
203,
225,
1758,
1071,
3410,
31,
203,
203,
203,
203,
203,
203,
225,
445,
14223,
6914,
1435,
288,
203,
565,
3410,
273,
1234,
18,
15330,
31,
203,
225,
289,
203,
203,
203,
225,
9606,
1338,
5541,
1435,
288,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Time is ERC20 {
uint256 constant DAY_IN_SECONDS = 86400;
uint256 lastTimeClaim;
uint256 timeFrequency;
address timeGuardian;
address timeBank; // exchange address
eve... | Time Distributor recieves 5 seconds
| _mint(msg.sender, reward); | 13,744,216 | [
1,
950,
3035,
19293,
1950,
1385,
3324,
1381,
3974,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
81,
474,
12,
3576,
18,
15330,
16,
19890,
1769,
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,
-10... |
/*
Copyright 2017-2019 Phillip A. Elsasser
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | @title TestMarketToken @author Phil Elsasser <phil@marketprotcol.io> | contract TestMarketToken {
Copyright 2017-2019 Phillip A. Elsasser
function testInitialBalance() public {
MarketToken marketToken = new MarketToken();
Assert.equal(
marketToken.balanceOf(address(this)),
marketToken.INITIAL_SUPPLY(),
"init supply allocated to ... | 15,796,845 | [
1,
4709,
3882,
278,
1345,
225,
4360,
330,
512,
3251,
428,
264,
411,
844,
330,
36,
27151,
11815,
1293,
18,
1594,
34,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
7766,
3882,
278,
1345,
288,
203,
565,
25417,
11015,
17,
6734,
29,
4360,
330,
3169,
432,
18,
512,
3251,
428,
264,
203,
203,
565,
445,
1842,
4435,
13937,
1435,
1071,
288,
203,
3639,
6622,
278,
1345,
13667,
1345,
273,
394,
66... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessCont... | price per box - Pawn | {
using StringsUpgradeable for uint256;
using SafeMathUpgradeable for uint256;
using CountersUpgradeable for CountersUpgradeable.Counter;
using EnumerableSetUpgradeable for EnumerableSetUpgradeable.UintSet;
CountersUpgradeable.Counter private _tokenIds;
uint16[] private _stockLocations;
ui... | 11,639,369 | [
1,
8694,
1534,
3919,
300,
453,
9533,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
95,
203,
565,
1450,
8139,
10784,
429,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
565,
1450,
9354,
87,
10784,
429,
364,
9354,
87,
10784,
429,
18,
4789,
31,
203,
565,
1450,
6057,
25121,... |
pragma solidity 0.6.6;
// ----------------------------------------------------------------------------
// 'boot' token contract
//
// Deployed to : 0xE1A425b2726D92Bc5178e7F5Ed30256481F5337f
// Symbol : boot
// Name : boot
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c) by Ahiwe Onyeb... | ------------------------------------------------------------------------ Token owner can approve for spender to transferFrom(...) tokens from the token owner's account https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md recommends that there are no checks for the approval double-spend attack as th... | function approve(address spender, uint tokens) public override returns (bool success) {
allowed[msg.sender][spender] = tokens;
emit Approval(msg.sender, spender, tokens);
return true;
}
| 30,920 | [
1,
29461,
3155,
3410,
848,
6617,
537,
364,
17571,
264,
358,
7412,
1265,
5825,
13,
2430,
628,
326,
1147,
3410,
1807,
2236,
2333,
30,
6662,
18,
832,
19,
546,
822,
379,
19,
41,
18246,
19,
10721,
19,
7525,
19,
41,
2579,
55,
19,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
2430,
13,
1071,
3849,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2935,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
2430,
31,
203,
3639,
3626,
1716,
685,
1125,
12,
3576... |
pragma solidity >= 0.6.2 < 0.7.0;
//设置代币控制合约的管理员
contract Owned {
// modifier(条件),表示必须是权力所有者才能do something,类似administrator的意思
modifier onlyOwner() {
require(msg.sender == owner);
_; //do something
}
//权力所有者
address public owner;
//合约创建的时候执行,执行合约的人是第一个owner
constructor() publi... | 新的owner,初始为空地址,类似null | address newOwner = address(0);
| 14,081,747 | [
1,
167,
249,
113,
168,
253,
231,
8443,
16,
166,
235,
256,
166,
105,
238,
165,
121,
123,
168,
107,
123,
166,
255,
113,
166,
256,
227,
176,
125,
239,
168,
114,
124,
165,
125,
125,
2011,
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,
565,
1758,
394,
5541,
273,
1758,
12,
20,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/access/Roles.sol";
import "openzeppelin-solidity/contracts/access/roles/PauserRole.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
//import "github.com/OpenZeppelin/openzeppelin-solidity/contracts/access/Roles.sol";
//import "github... | Mappint to track all classes available for this University
| mapping (uint => Course) courses; | 5,493,410 | [
1,
863,
84,
474,
358,
3298,
777,
3318,
2319,
364,
333,
1351,
6760,
560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2874,
261,
11890,
516,
385,
3117,
13,
17224,
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,
... |
// SPDX-License-Identifier:MIT
pragma solidity >=0.7.0;
import "./SafeMathTyped.sol";
// The MIT License
//
// Copyright (c) 2017-2018 0xcert, d.o.o. https://0xcert.org
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softw... | @notice Allow the owner to change the symbol of the token. @param _newSymbol The new symbol for the token. | function changeSymbol(string calldata _newSymbol)
external
onlyOwner()
{
tokenSymbol = _newSymbol;
emit SymbolChange(_newSymbol);
}
| 1,522,217 | [
1,
7009,
326,
3410,
358,
2549,
326,
3273,
434,
326,
1147,
18,
225,
389,
2704,
5335,
1021,
394,
3273,
364,
326,
1147,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
5335,
12,
1080,
745,
892,
389,
2704,
5335,
13,
203,
1377,
3903,
203,
1377,
1338,
5541,
1435,
203,
565,
288,
203,
1377,
1147,
5335,
273,
389,
2704,
5335,
31,
203,
1377,
3626,
8565,
3043,
24899,
2704,
5335,
1769,
20... |
./partial_match/1/0x03CB4438d015B9646d666316b617a694410C216d/sources/src/contracts/LinearRewardsErc4626.sol | @notice The ```deposit``` function allows a user to mint shares by depositing underlying @param _assets The amount of underlying to deposit @param _receiver The address to send the shares to @return _shares The amount of shares minted | function deposit(uint256 _assets, address _receiver) public override returns (uint256 _shares) {
distributeRewards();
_syncRewards();
}
| 4,463,955 | [
1,
1986,
31621,
323,
1724,
10335,
68,
445,
5360,
279,
729,
358,
312,
474,
24123,
635,
443,
1724,
310,
6808,
225,
389,
9971,
1021,
3844,
434,
6808,
358,
443,
1724,
225,
389,
24454,
1021,
1758,
358,
1366,
326,
24123,
358,
327,
389,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
11890,
5034,
389,
9971,
16,
1758,
389,
24454,
13,
1071,
3849,
1135,
261,
11890,
5034,
389,
30720,
13,
288,
203,
3639,
25722,
17631,
14727,
5621,
203,
3639,
389,
8389,
17631,
14727,
5621,
203,
565,
289,
203,... |
pragma solidity >=0.5.16;
contract ModelDatabase {
function getModelOwner(string memory _ipfsHash) public view returns(address) {}
}
contract DatasetDatabase {
function getDatasetOwner(string memory _ipfsHash) public view returns(address) {}
}
contract Jobs {
uint public jobsCreated = 0;
DatasetDat... | Called by dataset owners to register their willingness to join a jobs Owners registers a particular dataset and Check user is not model owner Check if user is dataset owner Check job is still in registration period Check if already registered | function registerDatasetOwner(uint _id, string memory _datasetIpfsHash) public payable {
require(msg.sender != jobs[_id].owner, "Job owner cannot sign up as a client");
require(isSenderDatasetOwner(_datasetIpfsHash), "Need to be owner of this dataset");
if (registrationPeriodOver(_id)){
... | 1,805,159 | [
1,
8185,
635,
3709,
25937,
358,
1744,
3675,
903,
310,
4496,
358,
1233,
279,
6550,
14223,
9646,
10285,
279,
6826,
3709,
471,
2073,
729,
353,
486,
938,
3410,
2073,
309,
729,
353,
3709,
3410,
2073,
1719,
353,
4859,
316,
7914,
3879,
2073,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1744,
10656,
5541,
12,
11890,
389,
350,
16,
533,
3778,
389,
8682,
5273,
2556,
2310,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
480,
6550,
63,
67,
350,
8009,
8443,
16,
315,
2278,
3410,
2780,
1573,
... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'Harambe Commemorative Token' token contract
//
// Deployed to : 0x60552CcD932618C77dAc018B238FbDF9e0EFa126
// Symbol : HRMBE
// Name : DEEZNUTZ
// Total supply: 40
// Decimals : 4
//
// Enjoy.
//... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract HarambeCommemorativeToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbo... | 13,651,652 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
670,
439,
2196,
799,
3917,
280,
1535,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
... |
/**************************************************************************
* ____ _
* / ___| | | __ _ _ _ ___ _ __
* | | _____ | | / _` || | | | / _ \| '__|
* | |___|_____|| |___| (_| || |_| || __/| |
* ... | * @title TimeLock @dev Time locked contract Error messages TL01: Contract is locked TL02: Target must be defined TL03: Cannot be locked in the past TL04: Execution must be successfull/ | contract TimeLock is Ownable {
address payable public target;
uint64 public lockedUntil;
modifier whenUnlocked() {
require(lockedUntil < currentTime(), "TL01");
_;
}
constructor(address payable _target, uint64 _lockedUntil) public {
require(_target != address(0), "TL02");
require(_lockedUn... | 1,387,090 | [
1,
950,
2531,
225,
2647,
8586,
6835,
1068,
2743,
282,
14418,
1611,
30,
13456,
353,
8586,
282,
14418,
3103,
30,
5916,
1297,
506,
2553,
282,
14418,
4630,
30,
14143,
506,
8586,
316,
326,
8854,
282,
14418,
3028,
30,
8687,
1297,
506,
2216,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
2647,
2531,
353,
14223,
6914,
288,
203,
203,
225,
1758,
8843,
429,
1071,
1018,
31,
203,
225,
2254,
1105,
1071,
8586,
9716,
31,
203,
203,
203,
225,
9606,
1347,
7087,
329,
1435,
288,
203,
565,
2583,
12,
15091,
9716,
411,
668... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./ABDKMath64x64.sol";
... | * @dev Lets a user withdraw all their tokens from this smart contract @dev A fee is charged on all withdrawals @dev We make sure to track the state of [totalPrincipal, numUsersWithDeposits]/ | function withdrawTokens() external {
require(_balances[msg.sender] > 0, "TokenBalance: no tokens available to be withdrawn");
uint totalBalance = 0;
if(block.number <= compound.depositEndBlock) {
totalBalance = _balances[msg.sender];
totalBalance = compoundInterestByBlock(_balances[msg.sende... | 13,714,908 | [
1,
48,
2413,
279,
729,
598,
9446,
777,
3675,
2430,
628,
333,
13706,
6835,
225,
432,
14036,
353,
1149,
2423,
603,
777,
598,
9446,
1031,
225,
1660,
1221,
3071,
358,
3298,
326,
919,
434,
306,
4963,
9155,
16,
818,
6588,
1190,
758,
917,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
5157,
1435,
3903,
288,
203,
565,
2583,
24899,
70,
26488,
63,
3576,
18,
15330,
65,
405,
374,
16,
315,
1345,
13937,
30,
1158,
2430,
2319,
358,
506,
598,
9446,
82,
8863,
203,
203,
565,
2254,
2078,
13937,
273,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
/**
* @title PartnersVesting
* @... | * @dev Calculates the index that has already vested but hasn't been released yet./ | function _releasableIdx(uint256 ts) private view returns (int8) {
for (uint8 i = 0; i < _schedule.length; i++) {
if (ts > _schedule[i] && _percent[i] > 0) {
return int8(i);
}
}
return -1;
}
| 579,791 | [
1,
10587,
326,
770,
716,
711,
1818,
331,
3149,
1496,
13342,
1404,
2118,
15976,
4671,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16599,
345,
429,
4223,
12,
11890,
5034,
3742,
13,
3238,
1476,
1135,
261,
474,
28,
13,
288,
203,
3639,
364,
261,
11890,
28,
277,
273,
374,
31,
277,
411,
389,
10676,
18,
2469,
31,
277,
27245,
288,
203,
5411,
309,
... |
./full_match/80001/0x6EE00Ee32e9158B285dD6E5736cd8c438d7Ec2c2/sources/src/VaultFactory.sol | * @notice Controller is set when event is emitted @param newController Address for new controller/ | event controllerSet(address indexed newController);
| 5,613,142 | [
1,
2933,
353,
444,
1347,
871,
353,
17826,
225,
394,
2933,
5267,
364,
394,
2596,
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,
871,
2596,
694,
12,
2867,
8808,
394,
2933,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x5c2443fcD9A59E51d454B9b375F07C25B5C5582D/sources/contracts/referral/ReferralTier.sol | @title ReferralTier @dev Struct for referral tiers @param totalRebate the total rebate for the tier (affiliate reward + trader discount) @param discountShare the share of the totalRebate for traders | library ReferralTier {
struct Props {
uint256 totalRebate;
uint256 discountShare;
}
}
| 3,150,596 | [
1,
1957,
29084,
15671,
225,
7362,
364,
1278,
29084,
11374,
414,
225,
2078,
426,
70,
340,
326,
2078,
283,
70,
340,
364,
326,
17742,
261,
7329,
330,
3840,
19890,
397,
1284,
765,
12137,
13,
225,
12137,
9535,
326,
7433,
434,
326,
2078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
3941,
29084,
15671,
288,
203,
203,
565,
1958,
1186,
1121,
288,
203,
3639,
2254,
5034,
2078,
426,
70,
340,
31,
203,
3639,
2254,
5034,
12137,
9535,
31,
203,
565,
289,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x08e74274e494266c8EDfE74F3BC59deC1badC65d/sources/contracts/NaughtyGiraffes_.sol | @notice initial royalties value is 6.0% | constructor() ERC721A("Naughty Giraffes", "GIRAFFE") {}
| 12,386,003 | [
1,
6769,
721,
93,
2390,
606,
460,
353,
1666,
18,
20,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
4232,
39,
27,
5340,
37,
2932,
50,
16510,
93,
611,
11547,
1403,
281,
3113,
315,
13797,
2849,
2246,
41,
7923,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/97/0x300E15C130db65e238b2E1F4C309C251B3026C45/sources/project_/contracts/StakeMaster.sol | require(_days >= 1 && _days <= 30,"Distribution cycle can only be between 1 to 30 days"); | function setDistributionCycle(uint256 _days) external onlyOwner{
distributionCycle = _days;
}
| 3,285,932 | [
1,
6528,
24899,
9810,
1545,
404,
597,
389,
9810,
1648,
5196,
10837,
9003,
8589,
848,
1338,
506,
3086,
404,
358,
5196,
4681,
8863,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
9003,
13279,
12,
11890,
5034,
389,
9810,
13,
3903,
1338,
5541,
95,
203,
3639,
7006,
13279,
273,
389,
9810,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/80001/0x6B902344B61be408Ec2cb16Bdf9Cd63908FAc413/sources/contracts/TokenERC721.sol | @dev Mints an NFT to `to` | function _mintTo(address _to, string calldata _uri, uint8 _series, RarityType _rarity) internal returns (uint256 tokenIdToMint) {
tokenIdToMint = nextTokenIdToMint;
nextTokenIdToMint += 1;
require(bytes(_uri).length > 0, "empty uri.");
uri[tokenIdToMint] = _uri;
_safeMint(_... | 5,670,367 | [
1,
49,
28142,
392,
423,
4464,
358,
1375,
869,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
81,
474,
774,
12,
2867,
389,
869,
16,
533,
745,
892,
389,
1650,
16,
2254,
28,
389,
10222,
16,
534,
20498,
559,
389,
86,
20498,
13,
2713,
1135,
261,
11890,
5034,
1147,
28803,
49,
474,
13,
288,
203,
3639,
1147,
2... |
./full_match/4/0xB7CaaE896Dd04a1348770dd8F78AcB73b606E676/sources/TokenFarm.sol | answer chosen by user
| uint8 answerId; | 12,443,317 | [
1,
13490,
10447,
635,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28,
5803,
548,
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,
... |
pragma solidity ^0.4.24;
import "./SafeMath.sol";
import "./AuctionityLibraryDecodeRawTx.sol";
contract AuctionityTreasurerEth {
using SafeMath for uint256;
string public version = 'treasurer-eth-v1';
address public owner;
address public oracle;
uint8 public ethereumChainId;
uint8 public a... | * endorse @dev : endorse (set to 0) locked deposit to a called smart contract msg.sender : smart contract of parent smart contract/ | function endorse(uint256 _amount, address _user) external returns (bool) {
if(depotEth[_user].locked[msg.sender].amount == _amount){
depotEth[_user].locked[msg.sender].amount = uint256(0);
emit LogEndorse(msg.sender, _user, _amount);
return true;
}
retur... | 6,392,565 | [
1,
5227,
307,
225,
294,
679,
23035,
261,
542,
358,
374,
13,
8586,
443,
1724,
358,
279,
2566,
13706,
6835,
1234,
18,
15330,
294,
13706,
6835,
434,
982,
13706,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
679,
23035,
12,
11890,
5034,
389,
8949,
16,
1758,
389,
1355,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
309,
12,
323,
13130,
41,
451,
63,
67,
1355,
8009,
15091,
63,
3576,
18,
15330,
8009,
8949,
422,
389,
8949,
153... |
./partial_match/42/0x67Cc42f040491E8fae9F165f7B87a22B9ca3ce68/sources/EthersocksCrowdsale.sol | * @dev Override for extensions that require an internal state to check for validity (current user contributions, etc.) @param _beneficiary Address receiving the tokens @param _tokens Number of tokens purchased/ | function _updatePurchasingState(
address _beneficiary,
uint256 _tokens
)
internal
{
tokensSold += _tokens;
}
| 3,447,312 | [
1,
6618,
364,
4418,
716,
2583,
392,
2713,
919,
358,
866,
364,
13800,
261,
2972,
729,
13608,
6170,
16,
5527,
12998,
225,
389,
70,
4009,
74,
14463,
814,
5267,
15847,
326,
2430,
225,
389,
7860,
3588,
434,
2430,
5405,
343,
8905,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
2725,
10262,
343,
11730,
1119,
12,
203,
565,
1758,
389,
70,
4009,
74,
14463,
814,
16,
203,
565,
2254,
5034,
389,
7860,
203,
225,
262,
203,
565,
2713,
203,
225,
288,
203,
565,
2430,
55,
1673,
1011,
389,
7860,
31,
... |
pragma solidity ^0.5.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be aplied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there... | * @dev get ethereum address for trade/ | function getAddressETH() public pure returns (address eth) {
eth = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
}
| 5,428,377 | [
1,
588,
13750,
822,
379,
1758,
364,
18542,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14808,
1584,
44,
1435,
1071,
16618,
1135,
261,
2867,
13750,
13,
288,
203,
3639,
13750,
273,
374,
17432,
1340,
1340,
41,
1340,
73,
41,
73,
41,
1340,
41,
73,
41,
73,
41,
1340,
9383,
41,
1340,
1340,
41,
1340,
1340,
1340,... |
./full_match/137/0x11A573D0EA9517DF68D65D272A442c1B2acC8A75/sources/contracts/UniV2AndV3PriceGetter.sol | 0x6B175474E89094C44Da98b954EedeAC495271d0F;
| address constant DAI = 0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063; | 4,688,413 | [
1,
20,
92,
26,
38,
4033,
6564,
5608,
41,
6675,
5908,
24,
39,
6334,
40,
69,
10689,
70,
29,
6564,
41,
73,
323,
2226,
7616,
25,
5324,
21,
72,
20,
42,
31,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
5381,
463,
18194,
273,
374,
92,
28,
74,
23,
39,
74,
27,
361,
4366,
19728,
23,
23508,
4331,
40,
10580,
4763,
6799,
74,
29,
8204,
3103,
1578,
5520,
71,
26,
37,
20,
4449,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/4/0x92dF0BB26ec5e5B6389124dB51CE6269187aDe6C/sources/REFLECT.sol | tFee = 1% burnFee = 1% liquidityFee = 1% | function _transferStandard(
address sender,
address recipient,
uint256 tAmount
) private {
uint256 currentRate = _getRate();
debugCurrentRate = currentRate;
uint256 rAmount = tAmount.mul(currentRate);
uint256 tFee = tAmount.div(100);
uint256 burnFe... | 8,762,277 | [
1,
88,
14667,
273,
404,
9,
18305,
14667,
273,
404,
9,
4501,
372,
24237,
14667,
273,
404,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
8336,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
268,
6275,
203,
565,
262,
3238,
288,
203,
3639,
2254,
5034,
783,
4727,
273,
389,
588,
4727,
5621,
203,
3639,
1198,
3935,... |
./full_match/4/0xc1CC801664E348E0bC448162A3Ec35AaD665a147/sources/StrainContract.sol | * @dev Returns the Strain for the given strainId/ | function getStrain(uint256 _strainId)
public
view
returns (
uint256 strainId,
uint256 rarityScore,
uint dna,
uint[15] memory Genes,
uint64 createdTime,
uint8 stage,
address owner
)
{
requi... | 652,018 | [
1,
1356,
326,
3978,
530,
364,
326,
864,
16853,
548,
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,
1322,
9754,
12,
11890,
5034,
389,
27568,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
16853,
548,
16,
203,
5411,
2254,
5034,
436,
20498,
7295,
16,
203,
5411,
2254,
31702,
16,
2... |
// File: contracts/base/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be a... | @notice This function is used to unstake the staked tokens. PS: tokens which are locked cannot be unstaked within lockoutTime of locking period@param uint token-ids are taken in an array format. | function unstakeTokens(uint[] memory tokenIds) external isNotPaused{
claimRewards(tokenIds);
for (uint i; i< tokenIds.length; i++) {
stake storage currentToken = stakedTokens[tokenIds[i]];
userStaked[msg.sender][currentToken.arrayPosition] = userStaked[msg.sender][userStaked[... | 6,293,572 | [
1,
2503,
445,
353,
1399,
358,
640,
334,
911,
326,
384,
9477,
2430,
18,
26320,
30,
2430,
1492,
854,
8586,
2780,
506,
640,
334,
9477,
3470,
2176,
659,
950,
434,
18887,
3879,
2254,
1147,
17,
2232,
854,
9830,
316,
392,
526,
740,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
640,
334,
911,
5157,
12,
11890,
8526,
3778,
1147,
2673,
13,
3903,
8827,
28590,
95,
203,
3639,
7516,
17631,
14727,
12,
2316,
2673,
1769,
203,
3639,
364,
261,
11890,
277,
31,
277,
32,
1147,
2673,
18,
2469,
31,
277,
27245,... |