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/7700/0x6efd43c49dA92f77d890FD8c27F1f23f7Aa0970A/sources/src/CidNFT.sol | @notice Data that is associated with a subprotocol name -> subprotocol NFT ID combination (for reverse lookups) | struct CIDNFTSubprotocolData {
uint256 cidNFTID;
uint256 position;
| 4,650,703 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1910,
716,
353,
3627,
598,
279,
720,
8373,
508,
317,
720,
8373,
423,
4464,
1599,
10702,
261,
1884,
4219,
20286,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
385,
734,
50,
4464,
1676,
8373,
751,
288,
203,
3639,
2254,
5034,
7504,
50,
4464,
734,
31,
203,
3639,
2254,
5034,
1754,
31,
203,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x8ffE0eE5aBAc631e41C38c0Cbc9A6a35A3912eCa/sources/ecycontract.sol | for 18 decimal 6 000 000 + 18 x 0
| uint256 TokeninitialSupply = 6000000000000000000000000; | 8,194,873 | [
1,
4625,
348,
7953,
560,
30,
225,
364,
6549,
6970,
1666,
20546,
20546,
397,
6549,
619,
374,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
3155,
6769,
3088,
1283,
273,
1666,
12648,
12648,
12648,
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... |
// contracts/BadgeTokenFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../node_modules/@openzeppelin/contracts/utils/Counters.sol";
import "./BadgeDefinitionFactory.sol";
import "./BadgeQueryOracle.sol";
/**
* @title BadgeTokenFactory
* @author Geoffrey Garcia
* @notice Contract to use ... | the number of conditions that have to be evaluated through as many queries
| uint numberOfConditions; | 15,821,753 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1300,
434,
4636,
716,
1240,
358,
506,
12697,
3059,
487,
4906,
6218,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2254,
7922,
8545,
31,
13491,
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,
-10... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functio... | * @notice Public Mint @param _mintAmount Amount that is minted @dev Stage 3: Public Mint/ | function publicMint(uint8 _mintAmount) public payable {
require(!paused, "FuDaoVerseDAN: Contract is paused");
require(stage == 3, "FuDaoVerseDAN: Public Sale Closed!");
require(
msg.value == _mintAmount * publicSalePrice,
"FuDaoVerseDAN: Insufficient ETH!"
)... | 13,707,990 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7224,
490,
474,
632,
891,
389,
81,
474,
6275,
16811,
716,
353,
312,
474,
329,
632,
5206,
16531,
890,
30,
7224,
490,
474,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1071,
49,
474,
12,
11890,
28,
389,
81,
474,
6275,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
5,
8774,
3668,
16,
315,
42,
89,
11412,
3945,
307,
40,
1258,
30,
13456,
353,
17781,
8863,
203,
3639,
2583,
12,
12869,
4... |
/**
*Submitted for verification at Etherscan.io on 2020-10-22
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
//
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() ext... | * @dev Updates the swap fee./ | function setSwapFee(uint256 _swapFee) external {
require(msg.sender == governance, "not governance");
swapFee = _swapFee;
}
| 12,730,987 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15419,
326,
7720,
14036,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
12521,
14667,
12,
11890,
5034,
389,
22270,
14667,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
314,
1643,
82,
1359,
16,
315,
902,
314,
1643,
82,
1359,
8863,
203,
3639,
7720,
14667,
273,
389,
22270,
146... |
pragma solidity ^0.5.3;
import "contracts/AnchorRepository.sol";
/**
* @title MockAnchorRepository
* This mock is for easy testing purposes of an anchor Repository
* that goes hand in hand with a mintable ERC721 contract
*/
contract MockAnchorRepository {
// A simplistic representation of a document anchor
s... | * @dev Gets the anchor details for a document. @param id bytes32 The document anchor identifier @return identifier bytes32 The document anchor identifier as found @return merkleRoot bytes32 The document's root hash value/ | function getAnchorById (uint256 id)
public
view
returns (
uint256 identifier,
bytes32 merkleRoot,
uint32 anchoredBlock
)
{
return (
id,
_anchors[id].documentRoot,
_anchors[id].anchoredBlock
);
}
| 12,749,747 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
326,
6984,
3189,
364,
279,
1668,
18,
632,
891,
612,
1731,
1578,
1021,
1668,
6984,
2756,
632,
2463,
2756,
1731,
1578,
1021,
1668,
6984,
2756,
487,
1392,
632,
2463,
30235,
2375,
1731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
336,
11605,
5132,
261,
11890,
5034,
612,
13,
203,
225,
1071,
203,
225,
1476,
203,
225,
1135,
261,
203,
565,
2254,
5034,
2756,
16,
203,
565,
1731,
1578,
30235,
2375,
16,
203,
565,
2254,
1578,
392,
343,
7653,
1768,
203,
... |
// SPDX-License-Identifier: CC-BY-4.0
pragma solidity >=0.4.22 <0.9.0;
import "../../common/Version.sol";
import "../../common/Owned.sol";
contract ExemptDebtOffering is Version, Owned {
bytes32 constant private ZERO_BYTES = bytes32(0);
address constant private ZERO_ADDRESS = address(0);
address[] internal sta... | uint256 available_liquidity; | function bondIsRedeemable(uint256 class, uint256 nonce, uint256 epoch)
public
view
returns (bool)
{
if(uint(_info[class][nonce][1]) < epoch) {
uint256 total_liquidity;
uint256 needed_liquidity;
for (uint i = 0; i <= last_bond_nonce[class]; i++) {
total_liquidity += _activeS... | 12,957,906 | [
1,
4625,
348,
7953,
560,
30,
2254,
5034,
2319,
67,
549,
372,
24237,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
8427,
2520,
426,
24903,
429,
12,
11890,
5034,
667,
16,
2254,
5034,
7448,
16,
2254,
5034,
7632,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
309,
12,
11890,
24899,
1376,
6... |
./full_match/84531/0x3CC6ba057f394B00aC1fF48707d5C04DE29504C6/sources/src/token/types/TokenTypesV1.sol | @notice The founder type @param wallet The address where tokens are sent @param ownershipPct The percentage of token ownership @param vestExpiry The timestamp when vesting ends | struct Founder {
address wallet;
uint8 ownershipPct;
uint32 vestExpiry;
}
| 14,322,927 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
284,
465,
765,
618,
632,
891,
9230,
1021,
1758,
1625,
2430,
854,
3271,
632,
891,
23178,
52,
299,
1021,
11622,
434,
1147,
23178,
632,
891,
331,
395,
14633,
1021,
2858,
1347,
331,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
478,
465,
765,
288,
203,
3639,
1758,
9230,
31,
203,
3639,
2254,
28,
23178,
52,
299,
31,
203,
3639,
2254,
1578,
331,
395,
14633,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
<link rel="dns-prefetch" href="h... | github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol","user_id":null}}" data-hydro-click-hmac="30070e2749118f4864b7d78e3f52a418e2b1c0644bc49acaf9e8db41664de66d" data-analytics-event="{"category":"Header dropdown (logged out), Why GitHub?","actio... | <a class="lh-condensed-ultra d-block no-underline position-relative Link--secondary py-2" data-hydro-click="{"event_type":"analytics.event","payload":{"category":"Header dropdown (logged out), Why GitHub?","action":"click to go to Issues","l... | 1,780,553 | [
1,
4625,
348,
7953,
560,
30,
6133,
18,
832,
19,
3678,
62,
881,
84,
292,
267,
19,
3190,
94,
881,
84,
292,
267,
17,
16351,
87,
19,
10721,
19,
7525,
19,
16351,
87,
19,
3860,
19,
5460,
429,
18,
18281,
10,
9270,
31,
16,
10,
9270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
411,
69,
667,
1546,
80,
76,
17,
10013,
28003,
17,
332,
2033,
302,
17,
2629,
1158,
17,
9341,
1369,
1754,
17,
11626,
4048,
413,
19674,
2395,
17,
22,
6,
501,
17,
18112,
9005,
17,
7475,
21928,
10,
9270,
31,
2575,
67,
723,
10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title StringConversions.sol - A utility solidity library for converting various things into a string format
* @author Karsh Sinha <karsh@hey.com>
*/
library StringConversions {
/**
* @dev Converts a decimal number to a string. The decimal num... | * @dev Converts a wallet address to its string representation @param _address The wallet address to convert to a string @return result The string representation of the wallet address/ | function addressToString(address _address) external pure returns (string memory result) {
bytes memory s = new bytes(40);
for (uint i = 0; i < 20; i++) {
bytes1 b = bytes1(uint8(uint(uint160(_address)) / (2**(8*(19 - i)))));
bytes1 hi = bytes1(uint8(b) / 16);
byte... | 1,014,583 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
20377,
279,
9230,
1758,
358,
2097,
533,
4335,
632,
891,
389,
2867,
1021,
9230,
1758,
358,
1765,
358,
279,
533,
632,
2463,
563,
1021,
533,
4335,
434,
326,
9230,
1758,
19,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1758,
5808,
12,
2867,
389,
2867,
13,
3903,
16618,
1135,
261,
1080,
3778,
563,
13,
288,
203,
3639,
1731,
3778,
272,
273,
394,
1731,
12,
7132,
1769,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
4200,
31,
277... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol";
// Inheritance
import "./Owned.sol";
import "./MixinSystemSettings.sol";
import "./interfaces/ICollateralLoan.sol";
// Libraries
import "./SafeDecimalMath.sol";
// Internal reference... | 14. Emit event for the newly opened loan. | emit LoanCreated(msg.sender, id, amount, collateral, currency, issueFee);
| 6,456,514 | [
1,
4625,
348,
7953,
560,
30,
225,
5045,
18,
16008,
871,
364,
326,
10894,
10191,
28183,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3626,
3176,
304,
6119,
12,
3576,
18,
15330,
16,
612,
16,
3844,
16,
4508,
2045,
287,
16,
5462,
16,
5672,
14667,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x3220034C7B2365f35BbD92D9f512B5c78eb5951B/sources/ETHGuru.sol | owner.transfer(msg.value); | function upgradeTier() external payable {
User storage user = users[msg.sender];
require(user.refLink != 0);
require(user.tier < 2);
require(msg.value == tierPrices[user.tier + 1]);
checkout(msg.sender);
user.tier++;
}
| 2,652,058 | [
1,
4625,
348,
7953,
560,
30,
3410,
18,
13866,
12,
3576,
18,
1132,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
8400,
15671,
1435,
3903,
8843,
429,
288,
203,
202,
202,
1299,
2502,
729,
273,
3677,
63,
3576,
18,
15330,
15533,
203,
202,
202,
6528,
12,
1355,
18,
1734,
2098,
480,
374,
1769,
203,
202,
202,
6528,
12,
1355,
18,
88,
245... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
... | 10% increase daily
| for (uint index = 0; index < timePower; index++) { | 10,613,134 | [
1,
4625,
348,
7953,
560,
30,
225,
1728,
9,
10929,
18872,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
1884,
261,
11890,
770,
273,
374,
31,
770,
411,
813,
13788,
31,
770,
27245,
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,
... |
/*
Copyright 2017-2018 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... | @dev allows calls only from the oracle hub. | modifier onlyOracleHub() {
require(msg.sender == ORACLE_HUB_ADDRESS);
_;
}
| 1,040,584 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5360,
4097,
1338,
628,
326,
20865,
11891,
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... | [
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,
9606,
1338,
23601,
8182,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
4869,
2226,
900,
67,
44,
3457,
67,
15140,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xBe195aC3Ac406579cccCd8ab778A22BC9AEDD9e5/sources/MasterChef.sol | The block number when distribution to the DAO starts | uint256 public daoStartBlock;
| 4,208,444 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
1203,
1300,
1347,
7006,
358,
326,
463,
20463,
2542,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
15229,
1685,
1768,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x8281f2bECfF37326Eb6cBE33527434611558B031/sources/BundleController.sol | burn corresponding nft -> as a result bundle looses its owner | function burn(uint256 bundleId)
external override
onlyRiskpoolService
{
Bundle storage bundle = _bundles[bundleId];
require(bundle.state == BundleState.Closed, "ERROR:BUC-016:BUNDLE_NOT_CLOSED");
require(bundle.balance == 0, "ERROR:BUC-017:BUNDLE_HAS_BALANCE");
... | 4,153,805 | [
1,
4625,
348,
7953,
560,
30,
225,
18305,
4656,
290,
1222,
317,
487,
279,
563,
3440,
437,
538,
281,
2097,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
18305,
12,
11890,
5034,
3440,
548,
13,
377,
203,
3639,
3903,
3849,
203,
3639,
1338,
54,
10175,
6011,
1179,
203,
565,
288,
203,
3639,
8539,
2502,
3440,
273,
389,
22773,
63,
9991,
548,
15533,
203,
3639,
2583,
12,
9991,
18... |
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
// ============ External Imports ============
import {TypedMemView} from "@summa-tx/memview-sol/contracts/TypedMemView.sol";
library GovernanceMessage {
using TypedMemView for bytes;
using TypedMemView for b... | Read the message identifer (first byte) of a message | function identifier(bytes29 _view) internal pure returns (uint8) {
return uint8(_view.indexUint(0, 1));
}
| 12,881,821 | [
1,
4625,
348,
7953,
560,
30,
225,
2720,
326,
883,
3390,
21549,
261,
3645,
1160,
13,
434,
279,
883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2756,
12,
3890,
5540,
389,
1945,
13,
2713,
16618,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
2254,
28,
24899,
1945,
18,
1615,
5487,
12,
20,
16,
404,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/4/0xCFDad4CeB8a9135FF18FC850031208B2c0024b25/sources/Pawnshop.sol | * @dev Returns true if the key is in the map. O(1)./ | function contains(AddressToSupportStateMap storage map, address key) internal view returns (bool) {
return _contains(map._inner, bytes32(uint256(key)));
}
| 8,690,295 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
638,
309,
326,
498,
353,
316,
326,
852,
18,
531,
12,
21,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
1914,
12,
1887,
774,
6289,
1119,
863,
2502,
852,
16,
1758,
498,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
12298,
12,
1458,
6315,
7872,
16,
1731,
1578,
12,
11890,
5034,
12,
856,
3719,
1769,
203,
56... |
./full_match/42220/0x6Fbd4a4A602c8B564028a10D16e1deA8E67eD11e/sources/project_/contracts/ReserveController.sol | Calculate supplied token value | uint256 myShare = _amountIn / totalSupply;
| 16,325,178 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
4580,
1147,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
3399,
9535,
273,
389,
8949,
382,
342,
2078,
3088,
1283,
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,
-... |
./full_match/1/0x114d647B099D53237be9E03A540DFFaa24351E87/sources/contracts/interfaces/IParallaxOrbital.sol | * @notice Withdraw params with compoundAmountsOutMin./ | struct WithdrawAndCompoundParams {
bool toMakeCompound;
uint256[] compoundAmountsOutMin;
WithdrawParams withdrawParams;
}
| 3,107,557 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
859,
598,
11360,
6275,
87,
1182,
2930,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
3423,
9446,
1876,
16835,
1370,
288,
203,
3639,
1426,
358,
6464,
16835,
31,
203,
3639,
2254,
5034,
8526,
11360,
6275,
87,
1182,
2930,
31,
203,
3639,
3423,
9446,
1370,
598,
9446,
1370,
31,
203,
565,
289,
203,
203,
2,
-10... |
./full_match/137/0x5F6d37E9ae4004a9B7426d4CF99fa44949Ee3653/sources/contracts/NewRoll.sol | Settle bet. Function can only be called by fulfillRandomness function, which in turn can only be called by Chainlink VRF. Validation checks. Fetch bet parameters into local variables (to save gas). Do a roll by taking a modulo of random number. Win amount if gambler wins this bet Roll reward if gambler loses this bet ... | function settleBet(bytes32 requestId, uint randomNumber) internal nonReentrant {
uint betId = betMap[requestId];
Bet storage bet = bets[betId];
uint amount = bet.amount;
require(amount > 0, "Bet does not exist");
require(bet.isSettled == false, "Bet is settl... | 4,678,917 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
5929,
2701,
18,
4284,
848,
1338,
506,
2566,
635,
22290,
8529,
4496,
445,
16,
1492,
316,
7005,
848,
1338,
506,
2566,
635,
7824,
1232,
776,
12918,
18,
5684,
4271,
18,
8065,
2701,
1472,
1368,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
5929,
38,
278,
12,
3890,
1578,
14459,
16,
2254,
2744,
1854,
13,
2713,
1661,
426,
8230,
970,
288,
203,
540,
203,
3639,
2254,
2701,
548,
273,
2701,
863,
63,
2293,
548,
15533,
203,
3639,
605,
278,
2502,
2701,
273,
3... |
./full_match/1/0x3642189B7754302DF84B6F3FE1aE34D2026647A7/sources/src/ConveyorRouterV1.sol | @notice Current Nonce for affiliate addresses. | uint16 public affiliateNonce;
| 3,016,243 | [
1,
4625,
348,
7953,
560,
30,
632,
20392,
6562,
25261,
364,
7103,
330,
3840,
6138,
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,
2254,
2313,
1071,
7103,
330,
3840,
13611,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
contract IERC223Token {
function name() public view returns (string);
function symbol() public view returns (string);
function decimals() public view returns (uint8);
function totalSupply() public view returns (uint256);
function balanceOf(address _holder) public view retur... | , "Can't repropose a project which had not INVESTED!"
| require(getBUU(_projectStatus_, projectID) == PROJECT_STATUS_INVESTED); | 12,732,820 | [
1,
4625,
348,
7953,
560,
30,
269,
315,
2568,
1404,
283,
685,
4150,
279,
1984,
1492,
9323,
486,
2120,
3412,
882,
2056,
4442,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1082,
202,
6528,
12,
588,
3000,
57,
24899,
4406,
1482,
67,
16,
1984,
734,
13,
422,
22489,
67,
8608,
67,
706,
3412,
882,
2056,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0xA70e346Ca3825b46EB4c8d0d94Ff204DB76BC289/sources/browser/saave.sol | max approve `sushiSwapRouter` spender to swap SUSHI into ETH from this contract
| sushiToken.approve(address(sushiSwapRouter), type(uint256).max); | 8,371,526 | [
1,
4625,
348,
7953,
560,
30,
225,
943,
6617,
537,
1375,
87,
1218,
77,
12521,
8259,
68,
17571,
264,
358,
7720,
11726,
2664,
45,
1368,
512,
2455,
628,
333,
6835,
203,
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,
3639,
272,
1218,
77,
1345,
18,
12908,
537,
12,
2867,
12,
87,
1218,
77,
12521,
8259,
3631,
618,
12,
11890,
5034,
2934,
1896,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/3/0x8aE19df1A7ACB73C9AA93E0a9315056422136AEe/sources/LoanManager.sol | / / Events / Model interface selector / Meta / / Getters / / Metadata / / State interface / / Utils / | abstract contract Model is IERC165, IDebtStatus {
@dev This emits when create a new debt.
event Created(bytes32 indexed _id);
@dev This emits when the status of debt change.
@param _timestamp Timestamp of the registry
@param _status New status of the registry
event ChangedStat... | 5,087,870 | [
1,
4625,
348,
7953,
560,
30,
342,
342,
9043,
342,
3164,
1560,
3451,
342,
6565,
342,
342,
968,
5432,
342,
342,
6912,
342,
342,
3287,
1560,
342,
342,
6091,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
3164,
353,
467,
654,
39,
28275,
16,
467,
758,
23602,
1482,
288,
203,
203,
3639,
632,
5206,
1220,
24169,
1347,
752,
279,
394,
18202,
88,
18,
203,
565,
871,
12953,
12,
3890,
1578,
8808,
389,
350,
1769,
203,
203,
3639,
... |
// Copyright 2021 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// 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 ... | @notice Asks the worker to work for the sender. Sender needs to pay something. @param workerAddress address of the worker | function hire(address payable workerAddress)
external
payable
override
onlyOwner
{
workerManager.authorize(workerAddress, address(pos));
}
| 2,576,920 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2970,
7904,
326,
4322,
358,
1440,
364,
326,
5793,
18,
15044,
4260,
358,
8843,
5943,
18,
632,
891,
4322,
1887,
1758,
434,
326,
4322,
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,
0,
0,
0,
0,
0,
0,
0,
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,
366,
577,
12,
2867,
8843,
429,
4322,
1887,
13,
203,
3639,
3903,
203,
3639,
8843,
429,
203,
3639,
3849,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
4322,
1318,
18,
22488,
12,
10124,
1887,
16,
1758,
12,
917,
10019,
... |
// File: @openzeppelin\contracts\token\ERC20\IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @... | SushiToken with Governance. START OF Pigsty SUSHI SPECIFIC CODE Pigsty sushi is an exact copy of sushi except for the https:etherscan.io/token/0x6b3595068778dd592e39a122f4f5a5cf09c90fe2 every transfer 1% gets burned and % gets transfered to vault | contract PigstyToken is ERC20("PigstyToken", "STY"), Ownable {
using SafeMath for uint256;
address public vaultAddress = 0xac66953a0163594194b1b42fB734222feb46E7Ae;
bool public hardCapReached = false;
function transfer(address recipient, uint256 amount)
public
virtual
override
... | 639,775 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
1218,
77,
1345,
598,
611,
1643,
82,
1359,
18,
10485,
15932,
453,
360,
334,
93,
11726,
2664,
45,
22872,
22183,
11128,
453,
360,
334,
93,
272,
1218,
77,
353,
392,
5565,
1610,
434,
272,
1218,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
360,
334,
93,
1345,
353,
4232,
39,
3462,
2932,
52,
360,
334,
93,
1345,
3113,
315,
882,
61,
6,
3631,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1758,
1071,
9229,
1887,
273,
374,
92... |
/**
* PERSONO.ID is WEB 3.0 cornerstone.
* Human first. UBI out of the box. Inevitable.
* This contract is a crowdsale of transitional GUT tokens for ETH.
* Join early. Don't miss the rise of the great, and impressive bounties.
* Open site() at GUT token address 0xbA01AfF9EF5198B5e691D2ac61E3cC126F25491d... | * @title Helps contracts guard against reentrancy attacks. @author Remco Bloemen <remco@2π.com>, Eenae <alexey@mixbytes.io> @dev If you mark a function `nonReentrant`, you should also mark it `external`./ | contract ReentrancyGuard {
uint256 private _guardCounter;
constructor() internal {
_guardCounter = 1;
}
modifier nonReentrant() {
_guardCounter += 1;
uint256 localCounter = _guardCounter;
_;
require(localCounter == _guardCounter);
}
}
| 980,071 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
670,
292,
1121,
20092,
11026,
5314,
283,
8230,
12514,
28444,
18,
632,
4161,
2663,
2894,
605,
383,
351,
275,
411,
2764,
2894,
36,
22,
144,
227,
18,
832,
20401,
512,
275,
8906,
411,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
868,
8230,
12514,
16709,
288,
203,
203,
225,
2254,
5034,
3238,
389,
24594,
4789,
31,
203,
203,
225,
3885,
1435,
2713,
288,
203,
565,
389,
24594,
4789,
273,
404,
31,
203,
225,
289,
203,
203,
225,
9606,
1661,
426,
8230,
970,... |
./full_match/43113/0x9624CA52F22cD8dac0674F20c760Db330aFDE833/sources/contracts/Presale.sol | * Presale Contract Distribute a token that is priced on base currency of a network Set distributed amount, price, Withdrawal unlocks at a certain timestamp Depositing locks at a certain timestamp Finish ends the sale and transfers the gathered amount Finish unlocks at a certain timestamp/ | constructor(address acceptedToken) {
require(acceptedToken.isContract(), "The accepted token address must be a deployed contract!");
max_base_allocated = 5 ether;
withdrawal_unlock_time = 1634380815;
finish_unlock_time = 1634381415;
deposit_lock_time = 1634380215;
start_time = 0;
max_allow... | 7,123,956 | [
1,
4625,
348,
7953,
560,
30,
380,
18346,
5349,
13456,
3035,
887,
279,
1147,
716,
353,
6205,
72,
603,
1026,
5462,
434,
279,
2483,
1000,
16859,
3844,
16,
6205,
16,
3423,
9446,
287,
7186,
87,
622,
279,
8626,
2858,
4019,
538,
305,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
12,
2867,
8494,
1345,
13,
288,
203,
565,
2583,
12,
23847,
1345,
18,
291,
8924,
9334,
315,
1986,
8494,
1147,
1758,
1297,
506,
279,
19357,
6835,
4442,
1769,
203,
565,
943,
67,
1969,
67,
28172,
273,
1381,
225,
2437,
31,
... |
./full_match/43113/0x9B21EB2E30D8320c3c1b8d8465284D78E58cB971/sources/contracts/PriceOracle/PriceOracleV1.sol | * @dev emitted when a pending anchor is set @param asset Asset for which to set a pending anchor @param oldScaledPrice if an unused pending anchor was present, its value; otherwise 0. @param newScaledPrice the new scaled pending anchor price/ | event NewPendingAnchor(address anchorAdmin, address asset, uint256 oldScaledPrice, uint256 newScaledPrice);
| 7,198,131 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17826,
1347,
279,
4634,
6984,
353,
444,
632,
891,
3310,
10494,
364,
1492,
358,
444,
279,
4634,
6984,
632,
891,
1592,
55,
12825,
5147,
309,
392,
10197,
4634,
6984,
1703,
3430,
16,
2097,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
871,
1166,
8579,
11605,
12,
2867,
6984,
4446,
16,
1758,
3310,
16,
2254,
5034,
1592,
55,
12825,
5147,
16,
2254,
5034,
30826,
12825,
5147,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/137/0x675c241A921E3C966e0BE5acAA22d57643282F1D/sources/contract-a58c1ca99b.sol | @custom:security-contact hello@peacemen.com | contract PeacemenCollection is ERC721, ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, EIP712, ERC721Votes {
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
constructor()
ERC721("Peacemen Collection", "PCM")
EIP712("Peacemen Collection", "1")
pragma s... | 3,737,174 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
3662,
30,
7462,
17,
8994,
19439,
36,
347,
623,
27617,
18,
832,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19622,
623,
27617,
2532,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
3098,
3245,
16,
21800,
16665,
16,
14223,
6914,
16,
512,
2579,
27,
2138,
16,
4232,
39,
27,
5340,
29637,
288,
2... |
//Address: 0xFA1Bcd27Da169C69bfbeda681c2A8277b8E08171
//Contract name: Documents
//Balance: 0 Ether
//Verification Date: 5/21/2017
//Transacion Count: 40
// CODE STARTS HERE
pragma solidity ^0.4.2;
/* Родительский контракт */
contract Owned {
/* Адрес владельца контракта*/
address owner;
/* Конструкто... | Событие при подписи документа участником, параметры - адрес участника, ID документа */ | event DocumentSigned(uint id, address member);
| 7,326,142 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
99,
145,
127,
145,
114,
146,
238,
146,
229,
145,
121,
145,
118,
225,
145,
128,
146,
227,
145,
121,
225,
145,
128,
145,
127,
145,
117,
145,
128,
145,
121,
146,
228,
145,
121,
225,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
4319,
12294,
12,
11890,
612,
16,
1758,
3140,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.2;
pragma experimental ABIEncoderV2;
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import { AirswapBase } from '../utils/AirswapBase.sol';
import { RollOverBase } from '../utils/RollOverBase.sol';
import { SwapTypes } from '../librari... | * @dev funtion to add some custom logic to check the next otoken is valid to this strategy this hook is triggered while action owner calls "commitNextOption" so accessing otoken will give u the current otoken./ Can override or replace this. | function _customOTokenCheck(address _nextOToken) internal view override {
IOToken otokenToCheck = IOToken(_nextOToken);
require(_isValidStrike(otokenToCheck.strikePrice()), 'Strike Price Too Low');
require (_isValidExpiry(otokenToCheck.expiryTimestamp()), 'Invalid expiry');
| 574,382 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9831,
24252,
358,
527,
2690,
1679,
4058,
358,
866,
326,
1024,
320,
2316,
353,
923,
358,
333,
6252,
333,
3953,
353,
10861,
1323,
1301,
3410,
4097,
315,
7371,
2134,
1895,
6,
1427,
19531,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
225,
445,
389,
3662,
51,
1345,
1564,
12,
2867,
389,
4285,
51,
1345,
13,
2713,
1476,
3849,
288,
203,
377,
1665,
1345,
320,
2316,
18126,
273,
1665,
1345,
24899,
4285,
51,
1345,
1769,
203,
377,
2583,
24899,
26810,
1585,
2547,
12,
35... |
./full_match/5/0xe679bd4247C507AA0c1C6411b631BA4f733a50D4/sources/contracts/SmokeStake.sol | daily percentage return
| dpr = (apy * magnitude) / 360; | 7,069,255 | [
1,
4625,
348,
7953,
560,
30,
225,
18872,
11622,
327,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
302,
683,
273,
261,
438,
93,
380,
13463,
13,
342,
12360,
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,
... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/*
gOHM SINGLE STAKING OPTION VAULT
Mints covered calls while farming yield on single sided gOHM staking farm
*/
// Libraries
import {Strings} from '@openzeppeli... | * @notice Deposits gOHM into the ssov to mint options in the next epoch for selected strikes @param strikeIndex Index of strike @param user Address of the user to deposit for @return Whether deposit was successful/ | function deposit(
uint256 strikeIndex,
uint256 amount,
address user
) external nonReentrant returns (bool) {
_deposit(strikeIndex, amount, user);
IERC20(getAddress('gOHM')).safeTransferFrom(
msg.sender,
address(this),
amount
);... | 12,608,489 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4019,
538,
1282,
314,
51,
44,
49,
1368,
326,
5202,
1527,
358,
312,
474,
702,
316,
326,
1024,
7632,
364,
3170,
609,
25235,
632,
891,
609,
2547,
1016,
3340,
434,
609,
2547,
632,
891,
729... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
443,
1724,
12,
203,
3639,
2254,
5034,
609,
2547,
1016,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
1758,
729,
203,
565,
262,
3903,
1661,
426,
8230,
970,
1135,
261,
6430,
13,
288,
203,
3639,
389,
323,
1724,
12,
701... |
pragma solidity 0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = ... | * Allows the owner to change the bonus of the current phase. @param _newBonus The new bonus percentage. / | function changeBonus(uint256 _newBonus) public onlyOwner {
if(stateOfICO == StateOfICO.PRE) {
bonusForPreICO = _newBonus;
BonusChanged("Pre ICO", _newBonus);
bonusForMainICO = _newBonus;
BonusChanged("Main ICO", _newBonus);
}
}
| 2,407,355 | [
1,
4625,
348,
7953,
560,
30,
380,
25619,
326,
3410,
358,
2549,
326,
324,
22889,
434,
326,
783,
6855,
18,
632,
891,
389,
2704,
38,
22889,
1021,
394,
324,
22889,
11622,
18,
342,
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,
0,
0,
0,
0,
0,
0,
0,
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,
38,
22889,
12,
11890,
5034,
389,
2704,
38,
22889,
13,
1071,
1338,
5541,
288,
203,
3639,
309,
12,
2019,
951,
2871,
51,
422,
3287,
951,
2871,
51,
18,
3670,
13,
288,
203,
5411,
324,
22889,
1290,
1386,
2871,
51,
273... |
./partial_match/1/0xB0B3F0241336fcF4539ba222E05EACB7c8873873/sources/contracts/erc-721/ArtistCollection.sol | @dev allows the artist (and potentially other 3rd parties) permission to mint on behalf of the artist/* @dev Allows minting via signable mint (an off-chain signature from a `MINTER_ROLE` user is still required)/ | function getSignableMinting() public view returns (bool){
return _signableMinting;
}
| 4,370,798 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5360,
326,
15469,
261,
464,
13935,
1308,
890,
13623,
1087,
606,
13,
4132,
358,
312,
474,
603,
12433,
6186,
434,
326,
15469,
20308,
632,
5206,
25619,
312,
474,
310,
3970,
1573,
429,
312,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
14167,
429,
49,
474,
310,
1435,
1071,
1476,
1135,
261,
6430,
15329,
203,
3639,
327,
389,
2977,
429,
49,
474,
310,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
... | * @title RBACWithAdmin @author Matt Condon (@Shrugs) @dev It's recommended that you define constants in the contract, @dev like ROLE_ADMIN below, to avoid typos./ | contract RBACWithAdmin is RBAC {
string public constant ROLE_ADMIN = "admin";
modifier onlyAdmin()
}
{
checkRole(msg.sender, ROLE_ADMIN);
_;
}
function RBACWithAdmin()
public
{
addRole(msg.sender, ROLE_ADMIN);
}
function adminAddRole(address addr, string ro... | 1,013,284 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
534,
38,
2226,
1190,
4446,
632,
4161,
490,
4558,
735,
19752,
261,
36,
1555,
8653,
564,
13,
632,
5206,
2597,
1807,
14553,
716,
1846,
4426,
6810,
316,
326,
6835,
16,
632,
5206,
3007,
22005,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
16351,
534,
38,
2226,
1190,
4446,
353,
534,
38,
2226,
288,
203,
565,
533,
1071,
5381,
22005,
67,
15468,
273,
315,
3666,
14432,
203,
203,
565,
9606,
1338,
4446,
1435,
203,
97,
203,
565,
288,
203,
3639,
866,
2996,
12,
3576,
18,
1... |
./full_match/1/0xd712A863766dE7e7cA13289A97997E01832A6571/sources/@mimic-fi/v2-smart-vaults-base/contracts/permissions/PermissionsHelpers.sol | * @dev Executes a list of permission changes @param self Permissions manager to be used @param where Address of the contract where the permission change will be executed @param whos List of addresses of the accounts that will be affected @param whats List of function selectors to be affected @param grant Whether the pe... | function execute(
PermissionsManager self,
IAuthorizer where,
address[] memory whos,
bytes4[] memory whats,
bool grant
) private {
PermissionChangeRequest[] memory requests = new PermissionChangeRequest[](1);
requests[0].target = where;
requests[0]... | 2,974,092 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3889,
993,
279,
666,
434,
4132,
3478,
632,
891,
365,
15684,
3301,
358,
506,
1399,
632,
891,
1625,
5267,
434,
326,
6835,
1625,
326,
4132,
2549,
903,
506,
7120,
632,
891,
600,
538,
987,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
12,
203,
3639,
15684,
1318,
365,
16,
203,
3639,
467,
17170,
1625,
16,
203,
3639,
1758,
8526,
3778,
600,
538,
16,
203,
3639,
1731,
24,
8526,
3778,
600,
2323,
16,
203,
3639,
1426,
7936,
203,
565,
262,
3238,
288,
2... |
./full_match/84531/0xBf175FCC7086b4f9bd59d5EAE8eA67b8f940DE0d/sources/@gelatonetwork/relay-context/contracts/GelatoRelayContext.sol | Only use with previous onlyGelatoRelay or `_isGelatoRelay` checks | function _getFeeToken() internal pure returns (address) {
return _getFeeTokenRelayContext();
}
| 11,515,895 | [
1,
4625,
348,
7953,
560,
30,
225,
5098,
999,
598,
2416,
1338,
43,
292,
31093,
27186,
578,
1375,
67,
291,
43,
292,
31093,
27186,
68,
4271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
14667,
1345,
1435,
2713,
16618,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
588,
14667,
1345,
27186,
1042,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
https://dank.finance
Author: James Seibel
https://www.twitter.com/seibelj
Whitepaper:
https://docs.google.com/document/d/1eHQeZFpix2LqVOGVmXxliiFWEyiGAI8fxI8qTZPCu2I/edit?usp=sharing
This code will allow LP Farming with DANK
10x bonus period for the first 7 days
(1000 dank per block. deviation from 100 dank per bl... | Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. | function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
poo... | 13,679,645 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
279,
394,
12423,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
11329,
5467,
4269,
527,
326,
1967,
511,
52,
1147,
1898,
2353,
3647,
18,
534,
359,
14727,
903,
506,
15216,
730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
5034,
389,
9853,
2148,
16,
467,
654,
39,
3462,
389,
9953,
1345,
16,
1426,
389,
1918,
1891,
13,
1071,
1338,
5541,
288,
203,
3639,
309,
261,
67,
1918,
1891,
13,
288,
203,
5411,
8039,
1891,
16639,
5621,
2... |
./full_match/1/0x54d8D8ec5E331D2d266836C4eF814DC8C8dFFD5D/sources/contracts/protocol/libraries/helpers/Errors.sol | 'The liquidity of the reserve needs to be 0'
| string public constant LPC_INVALID_VTOKEN_POOL_ADDRESS = '35'; | 4,927,983 | [
1,
4625,
348,
7953,
560,
30,
225,
296,
1986,
4501,
372,
24237,
434,
326,
20501,
4260,
358,
506,
374,
11,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1071,
5381,
511,
3513,
67,
9347,
67,
58,
8412,
67,
20339,
67,
15140,
273,
296,
4763,
13506,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* Description:
* Smart contract wallet with 2-step authentication based on OTPs generated by CSPRNG and aggregated by Merkle tree.
*
*/
pragma solidity ^0.5.8;
contract WalletHandle {
uint8 constant MAX_LEN_OF_PROOF = 20; // delimits the max. height of subtree as well as height difference from the parent... | The height of MT tree (e.g., MT with 8 leaves has height 3)
| uint8 public MT_child_height; | 12,858,721 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
2072,
434,
22068,
2151,
261,
73,
18,
75,
12990,
22068,
598,
1725,
15559,
711,
2072,
890,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
1071,
22068,
67,
3624,
67,
4210,
31,
377,
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,
-10... |
pragma solidity =0.6.6;
interface IUniSlurmFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) extern... | given an output amount of an asset and pair reserves, returns a required input amount of the other asset | function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
require(amountOut > 0, 'UniSlurmLibrary: INSUFFICIENT_OUTPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'UniSlurmLibrary: INSUFFICIENT_LIQUIDITY');
uint numerator = reserveIn... | 2,199,926 | [
1,
4625,
348,
7953,
560,
30,
225,
864,
392,
876,
3844,
434,
392,
3310,
471,
3082,
400,
264,
3324,
16,
1135,
279,
1931,
810,
3844,
434,
326,
1308,
3310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24418,
382,
12,
11890,
3844,
1182,
16,
2254,
20501,
382,
16,
2254,
20501,
1182,
13,
2713,
16618,
1135,
261,
11890,
3844,
382,
13,
288,
203,
3639,
2583,
12,
8949,
1182,
405,
374,
16,
296,
984,
77,
3738,
27430,
9313,
30,
... |
// "SPDX-License-Identifier: Apache-2.0"
pragma solidity ^0.6.11;
import "../../external/BokkyPooBah/BokkyPooBahsDateTimeLibrary.sol";
import "../ACTUSTypes.sol";
/**
* @title BusinessDayConventions
* @notice Contains conventions of how to handle non-business days when generating schedules of events.
* The event... | Shift/Calc Modified Preceeding, Calc/Shift Modified Preceeding Same as unmodified if shifted date is in the same month, if not it returns the following buiness-day | } else if (convention == BusinessDayConvention.SCMP || convention == BusinessDayConvention.CSMP) {
| 12,970,376 | [
1,
4625,
348,
7953,
560,
30,
225,
21444,
19,
25779,
21154,
2962,
5288,
310,
16,
29128,
19,
10544,
21154,
2962,
5288,
310,
17795,
487,
30481,
309,
21340,
1509,
353,
316,
326,
1967,
3138,
16,
309,
486,
518,
1135,
326,
3751,
25666,
6336,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
289,
469,
309,
261,
591,
11111,
422,
21759,
4245,
25947,
18,
2312,
4566,
747,
15797,
422,
21759,
4245,
25947,
18,
4596,
4566,
13,
288,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/11155111/0xAE7B2dd60CAB9fdbb594b6f6E8D15c4eF55e6684/sources/contracts/libraries/FixedPointMulDiv.sol | @dev How many trailing decimals can be represented. @dev Largest power of two divisor of SCALE. @dev SCALE inverted mod 2^256. @notice Multiplies two unsigned 60.18-decimal fixed-point numbers together, returning a new unsigned 60.18-decimal fixed-point number. @dev See the documentation for the "PRBMath.mulDivFixedPo... | function mul(uint256 x, uint256 y) internal pure returns (uint256 result) {
result = mulDivFixedPoint(x, y);
}
| 3,837,625 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9017,
4906,
7341,
15105,
848,
506,
10584,
18,
632,
5206,
511,
11475,
7212,
434,
2795,
15013,
434,
25844,
18,
632,
5206,
25844,
18150,
681,
576,
66,
5034,
18,
632,
20392,
5991,
5259,
2795,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14064,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
2713,
16618,
1135,
261,
11890,
5034,
563,
13,
288,
203,
3639,
563,
273,
14064,
7244,
7505,
2148,
12,
92,
16,
677,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-10... |
./full_match/5/0x0289a6f885dBcF5EC8034efb87d50CB5431749EC/sources/project_/contracts/HuxleyComicsOps.sol | @dev Returns if user already has a token | function isFirstToken() internal view returns (bool) {
uint256 balance = huxleyComics.balanceOf(msg.sender);
return balance == 0;
}
| 1,872,971 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
309,
729,
1818,
711,
279,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17447,
1345,
1435,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
11013,
273,
366,
2616,
30678,
799,
2102,
18,
12296,
951,
12,
3576,
18,
15330,
1769,
203,
3639,
327,
11013,
422,
374,
31,
203,
565,
289,
203... |
./full_match/1/0xA4c4808777c16F5A846C92173592272198103DaE/sources/contracts/RockPaperScissors_V8.sol | @dev Add game data to storage | function _addGameData(
address _creator,
bytes32 _hiddenMove,
address _currency,
uint256 _amount,
address _playerB
) internal returns (uint256) {
gameIds ++;
uint256 newGameId = gameIds;
GameData storage data = gamesData[newGameId];
data.g... | 3,130,739 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1436,
7920,
501,
358,
2502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
1289,
12496,
751,
12,
203,
3639,
1758,
389,
20394,
16,
203,
3639,
1731,
1578,
389,
6345,
7607,
16,
203,
3639,
1758,
389,
7095,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1758,
389,
14872,
38,
203,
565,
... |
./full_match/5/0x81c7a9d494c74F113cCa32d174925352bD3875f1/sources/_connext/nxtp-contracts/contracts/core/relayer-fee/libraries/RelayerFeeMessage.sol | before: 1 byte identifier + 20 bytes recipient + 32 bytes length + 32 bytes 1 transfer id = 85 bytes | uint256 private constant MIN_CLAIM_LEN = 85;
| 1,910,577 | [
1,
4625,
348,
7953,
560,
30,
225,
1865,
30,
404,
1160,
2756,
397,
4200,
1731,
8027,
397,
3847,
1731,
769,
397,
3847,
1731,
404,
7412,
612,
273,
19692,
1731,
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,
225,
2254,
5034,
3238,
5381,
6989,
67,
15961,
3445,
67,
13017,
273,
19692,
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,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {MerkleProofUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol";
import {AbstractMerkleDistributer, IERC20Metadata} from "./AbstractMerk... | default value is 0
| uint256 public currentVersion; | 13,063,606 | [
1,
4625,
348,
7953,
560,
30,
225,
805,
460,
353,
374,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
23344,
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,... |
/**
*Submitted for verification at Etherscan.io on 2021-07-13
*/
/**
*Submitted for verification at Etherscan.io on 2020-03-13
*/
pragma solidity 0.4.24;
// File: contracts/generic/Restricted.sol
/*
Generic contract to authorise calls to certain functions only from a given address.
The address authorised ... | requires quorum so it's callable only via a script executed by this contract */ | function addSigners(address[] signers) public {
require(msg.sender == address(this), "only callable via MultiSig");
for (uint i = 0; i < signers.length; i++) {
if (!isSigner[signers[i]]) {
require(signers[i] != address(0), "new signer must not be 0x0");
ac... | 10,695,796 | [
1,
4625,
348,
7953,
560,
30,
225,
4991,
31854,
1427,
518,
1807,
4140,
1338,
3970,
279,
2728,
7120,
635,
333,
6835,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
2766,
414,
12,
2867,
8526,
1573,
414,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1758,
12,
2211,
3631,
315,
3700,
4140,
3970,
5991,
8267,
8863,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
4... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
library Utils {
/* @notice Convert the bytes array to bytes32 type, the bytes array length must be 32
* @param _bs Source bytes array
* @return bytes32
*/
function bytesToBytes32(bytes memory _bs) internal pure returns (bytes3... | @notice ERC20 token cross chain to other blockchain. this function push tx event to blockchain @param toChainId Target chain id @param toContract Target smart contract address in target block chain @param txData Transaction data for target chain, include to_address, ... | function crossChain(uint64 toChainId, bytes calldata toContract, bytes calldata method, bytes calldata txData) whenNotPaused external returns (bool) {
require(whiteListFromContract[msg.sender],"Invalid from contract");
IEthCrossChainData eccd = IEthCrossChainData(EthCrossChainDataAddress);
... | 9,941,891 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2868,
4232,
39,
3462,
1147,
6828,
2687,
358,
1308,
16766,
18,
15604,
333,
445,
1817,
2229,
871,
358,
16766,
225,
632,
891,
358,
3893,
548,
377,
5916,
2687,
612,
225,
632,
891,
358,
8924,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6828,
3893,
12,
11890,
1105,
358,
3893,
548,
16,
1731,
745,
892,
358,
8924,
16,
1731,
745,
892,
707,
16,
1731,
745,
892,
2229,
751,
13,
1347,
1248,
28590,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
14739,
68... |
pragma solidity 0.4.25;
import "./Common/Upgradable.sol";
import "./Common/Random.sol";
import "./Core.sol";
import "./Battle.sol";
import "./Treasury.sol";
import "./Getter.sol";
import "./Common/SafeMath8.sol";
import "./Common/SafeMath16.sol";
import "./Common/SafeMath32.sol";
import "./Common/SafeMath256.sol";
/... | stores date to which dragon is untouchable as opponent for the battle | contract BattleController is Upgradable {
using SafeMath8 for uint8;
using SafeMath16 for uint16;
using SafeMath32 for uint32;
using SafeMath256 for uint256;
Core core;
Battle battle;
Treasury treasury;
Getter getter;
Random random;
mapping (uint256 => uint256) lastBattleDate;
... | 13,093,072 | [
1,
4625,
348,
7953,
560,
30,
225,
9064,
1509,
358,
1492,
8823,
265,
353,
640,
14084,
429,
487,
1061,
1029,
364,
326,
324,
4558,
298,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
4558,
298,
2933,
353,
1948,
9974,
429,
288,
203,
565,
1450,
14060,
10477,
28,
364,
2254,
28,
31,
203,
565,
1450,
14060,
10477,
2313,
364,
2254,
2313,
31,
203,
565,
1450,
14060,
10477,
1578,
364,
2254,
1578,
31,
203,
5... |
./full_match/1/0x73217eE72fDedf763BACd83Acf60b4218f6ff8Af/sources/Users/ivannikov/work/snake-jungle/cosmo-farming/contracts/FarmUniswapGenerator.sol | minimum 1000 divisibility per block reward
| require(_blockReward > 1000, 'BLOCK REWARD'); | 4,880,096 | [
1,
4625,
348,
7953,
560,
30,
225,
5224,
4336,
3739,
291,
3628,
1534,
1203,
19890,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
24899,
2629,
17631,
1060,
405,
4336,
16,
296,
11403,
2438,
21343,
8284,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x8542E1ddE76E7725DF3ff3C7829DC07229998333/sources/temp-contracts/DelegateCallProxyManager.sol | * @dev Lock the current implementation for `implementationID` so that it can never be upgraded again./ Read the implementation holder address from storage. Verify that the implementation exists. | function lockImplementationManyToOne(bytes32 implementationID) external override onlyOwner {
address implementationHolder = _implementationHolders[implementationID];
require(implementationHolder != address(0), "ERR_IMPLEMENTATION_ID");
_lockedImplementations[implementationHolder] = true;
emit ManyToOn... | 647,932 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3488,
326,
783,
4471,
364,
1375,
30810,
734,
68,
1427,
716,
518,
848,
5903,
506,
31049,
3382,
18,
19,
2720,
326,
4471,
10438,
1758,
628,
2502,
18,
8553,
716,
326,
4471,
1704,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2176,
13621,
5594,
16027,
12,
3890,
1578,
4471,
734,
13,
3903,
3849,
1338,
5541,
288,
203,
565,
1758,
4471,
6064,
273,
389,
30810,
27003,
63,
30810,
734,
15533,
203,
565,
2583,
12,
30810,
6064,
480,
1758,
12,
20,
3631,
... |
//Address: 0x00fc2e075bc935c7c4283d277b90e6b9c822a105
//Contract name: PoolManager
//Balance: 0 Ether
//Verification Date: 6/17/2018
//Transacion Count: 7
// CODE STARTS HERE
pragma solidity ^0.4.16;
//Define the pool
contract SmartPool {
//Pool info
uint currAmount; //Current amount in the pool (=balan... | Check pools done. (called by our console, or can be called by anybody) | function checkPoolsDone() public
{
for (uint i = 0; i < poolsDone.length; i++)
{
checkPoolDone(i);
}
}
| 2,527,713 | [
1,
4625,
348,
7953,
560,
30,
2073,
16000,
2731,
18,
261,
11777,
635,
3134,
2983,
16,
578,
848,
506,
2566,
635,
1281,
3432,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
866,
16639,
7387,
1435,
1071,
7010,
202,
95,
203,
202,
202,
1884,
261,
11890,
277,
273,
374,
31,
277,
411,
16000,
7387,
18,
2469,
31,
277,
27245,
203,
202,
202,
95,
203,
1082,
202,
1893,
2864,
7387,
12,
77,
1769,
203,... |
./full_match/3/0x92990e791fE5445164DA13A64E4AC3387708760c/sources/browser/Untitled.sol | RiveMont_MasterFarmer is the master of RVMT. He can make RVMT and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once RVMT is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hope... | contract RiveMont_MasterFarmer is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
struct UserInfo {
}
struct PoolInfo {
}
uint256 public FINISH_BONUS_AT_BLOCK;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address i... | 8,201,686 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
688,
49,
1580,
67,
7786,
42,
4610,
264,
353,
326,
4171,
434,
534,
58,
6152,
18,
8264,
848,
1221,
534,
58,
6152,
471,
3904,
353,
279,
284,
1826,
3058,
93,
18,
3609,
716,
518,
1807,
4953,
429... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
534,
688,
49,
1580,
67,
7786,
42,
4610,
264,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
1958,
25003,
288,
2... |
pragma solidity ^0.5.4;
contract Account {
// The implementation of the proxy
address public implementation;
// Logic manager
address public manager;
// The enabled static calls
mapping (bytes4 => address) public enabled;
event EnabledStaticCall(address indexed module, bytes4 indexe... | updated logics and their due time of becoming effective | mapping (address => pending) public pendingLogics;
| 1,517,174 | [
1,
4625,
348,
7953,
560,
30,
225,
3526,
613,
2102,
471,
3675,
6541,
813,
434,
506,
5522,
11448,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
4634,
13,
1071,
4634,
1343,
2102,
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... |
./full_match/44787/0x279AD96a13998dE7E6511f6F5AB9bD358b1453Ca/sources/NewWill.sol | Array of Fammily wallets | address payable [] famWallets;
| 13,253,965 | [
1,
4625,
348,
7953,
560,
30,
225,
1510,
434,
478,
301,
81,
3220,
17662,
2413,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
8843,
429,
5378,
26688,
26558,
2413,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//Compiler version
pragma solidity ^0.4.23;
//Import cryptohandler library
import { CryptoHandler } from "./libraries/CryptoHandler.sol";
//Internal contract expirable to define the live cycle of a channel
contract Expirable {
uint256 public channelEnd;
constructor (uint256 _daysToExpire) internal {... | Check for each R in a hash locked transaction if the time to live is still valid and if it hashed in HUpdates the state and emits the R shown | function checkRsHashesInHs(
bytes32[] _rsSigned, bytes32[] _rs, bytes32[] _hs, uint256[] _ttls,
uint256[] _rhValues, uint8[] _end
) internal {
uint256 near;
uint256 far;
uint8 i = 0;
for(i; i < _rsSigned.length; i++) {
if(_rsSigned[i] !... | 5,416,510 | [
1,
4625,
348,
7953,
560,
30,
2073,
364,
1517,
534,
316,
279,
1651,
8586,
2492,
309,
326,
813,
358,
8429,
353,
4859,
923,
471,
309,
518,
14242,
316,
670,
5121,
326,
919,
471,
24169,
326,
534,
12188,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
18880,
14455,
382,
44,
87,
12,
203,
3639,
1731,
1578,
8526,
389,
5453,
12294,
16,
1731,
1578,
8526,
389,
5453,
16,
1731,
1578,
8526,
389,
4487,
16,
2254,
5034,
8526,
389,
748,
3251,
16,
7010,
3639,
2254,
5034,
8526... |
pragma solidity 0.4.24;
import "../lib/AddressArray.sol";
import "../common/ReservedAddrPublic.sol";
/// @title Group contract
/// @author ["Cryptape Technologies <contact@cryptape.com>"]
/// @notice The address: Created by permissionCreator
/// The interface can be called: Only query type
contract Group is R... | @notice Update group name @param _name The new name to be updated @return True if successed, otherwise false | function updateName(bytes32 _name)
public
onlyUserManagement
returns (bool)
{
emit NameUpdated(name, _name);
name = _name;
return true;
}
| 12,888,399 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2315,
1041,
508,
632,
891,
389,
529,
225,
1021,
394,
508,
358,
506,
3526,
632,
2463,
1053,
309,
8667,
3692,
16,
3541,
629,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
461,
12,
3890,
1578,
389,
529,
13,
203,
3639,
1071,
203,
3639,
1338,
1299,
10998,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
3626,
1770,
7381,
12,
529,
16,
389,
529,
1769,
203,
3639,
508,
273,
389... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.10;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which i... | * @notice Hashes the supplied data and returns the hash to be used in conjunction with a proof to calculate the Merkle tree root @param _supplier The address whose account is authorized @param _partition Source partition of the tokens @param _value Number of tokens to be transferred @param _maxAuthorizedAccountNonce Th... | function _calculateWithdrawalLeaf(
address _supplier,
bytes32 _partition,
uint256 _value,
uint256 _maxAuthorizedAccountNonce
) internal pure returns (bytes32) {
return
keccak256(abi.encodePacked(_supplier, _partition, _value, _maxAuthorizedAccountNonce));
... | 6,532,359 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2474,
281,
326,
4580,
501,
471,
1135,
326,
1651,
358,
506,
1399,
316,
20998,
598,
279,
14601,
358,
4604,
326,
31827,
2151,
1365,
632,
891,
389,
2859,
5742,
1021,
1758,
8272,
2236,
353,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
11162,
1190,
9446,
287,
9858,
12,
203,
3639,
1758,
389,
2859,
5742,
16,
203,
3639,
1731,
1578,
389,
10534,
16,
203,
3639,
2254,
5034,
389,
1132,
16,
203,
3639,
2254,
5034,
389,
1896,
15341,
3032,
13611,
203,
565,
2... |
./full_match/137/0x1e3fCa63502a7AaA6841788301Eae4AC67CF691D/sources/scripts/Learning_Projects/CheeseTouch.sol | * @dev Approve `to` to operate on `tokenId` Emits a {Approval} event./ | function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(CheeseTouch.ownerOf(tokenId), to, tokenId);
}
| 4,755,549 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
1375,
869,
68,
358,
20829,
603,
1375,
2316,
548,
68,
7377,
1282,
279,
288,
23461,
97,
871,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
12908,
537,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
5024,
288,
203,
3639,
389,
2316,
12053,
4524,
63,
2316,
548,
65,
273,
358,
31,
203,
3639,
3626,
1716,
685,
1125,
12,
39,
580,
3392,
10491,
18,
8443,... |
./full_match/1/0x610142Acd45672894bE44fB9C14376101Ec4Dc16/sources/contracts/hedgie_sales.sol | console.log("inside mint_approved_old"); console.log("mint free",info.mint_free); console.log("prices",amount, info.eth_price, number_of_items); console.log("mint ",number_of_items); console.log("max_purchase",info.max_mint); console.log("before split",address(this).balance,amount); console.log("aft... | function mint_approved_old(bytes calldata userData) external payable {
vData memory info;
uint256 amount = msg.value;
address from = msg.sender;
uint256 number_of_items;
require(userData.length == 257, "Invalid user data");
info.from = from;
uint256 mint_free ... | 8,416,200 | [
1,
4625,
348,
7953,
560,
30,
225,
2983,
18,
1330,
2932,
28091,
312,
474,
67,
25990,
67,
1673,
8863,
565,
2983,
18,
1330,
2932,
81,
474,
4843,
3113,
1376,
18,
81,
474,
67,
9156,
1769,
377,
2983,
18,
1330,
2932,
683,
1242,
3113,
894... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
67,
25990,
67,
1673,
12,
3890,
745,
892,
13530,
13,
3903,
8843,
429,
288,
203,
3639,
331,
751,
3778,
1123,
31,
203,
3639,
2254,
5034,
3844,
273,
1234,
18,
1132,
31,
203,
3639,
1758,
628,
273,
1234,
18,
15330... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "./interfaces/IMintableERC721.sol";
/**
* @title Mintable Sale
*
* @notice Mintable Sa... | * @dev Restricted access function to set up sale parameters, all at once, or any subset of them @dev To skip parameter initialization, set it to `-1`, that is a maximum value for unsigned integer of the corresponding type; `_aliSource` and `_aliValue` must both be either set or skipped @dev Example: foll... | function initialize(
) public onlyOwner {
require(_nextId > 0, "zero nextId");
if(_itemPrice != type(uint64).max) {
itemPrice = _itemPrice;
}
if(_nextId != type(uint32).max) {
nextId = _nextId;
}
if(_finalId != type(uint32).max) {
finalId = _finalId;
}
if(_saleSta... | 14,772,954 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
29814,
2006,
445,
358,
444,
731,
272,
5349,
1472,
16,
777,
622,
3647,
16,
1377,
578,
1281,
7931,
434,
2182,
632,
5206,
2974,
2488,
1569,
10313,
16,
444,
518,
358,
1375,
17,
21,
9191,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
4046,
12,
203,
225,
262,
1071,
1338,
5541,
288,
203,
565,
2583,
24899,
4285,
548,
405,
374,
16,
315,
7124,
1024,
548,
8863,
203,
203,
203,
565,
309,
24899,
1726,
5147,
480,
618,
12,
11890,
1105,
2934,
1896,
13,
288,
2... |
./partial_match/1/0xD45A727684D25342eA2900cC6E0a157Ead912141/sources/StabilizeStrategyStablecoinArb.sol | Difference is greater than 1%
| if(_price.sub(targetPrice) >= 10000000000000000){ | 3,592,590 | [
1,
4625,
348,
7953,
560,
30,
225,
29474,
353,
6802,
2353,
404,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10792,
309,
24899,
8694,
18,
1717,
12,
3299,
5147,
13,
1545,
2130,
12648,
9449,
15329,
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,
... |
./partial_match/1/0xAa24F195587506C0Fb26C8e1208d6C0353486cEB/sources/MILADY.sol | * @dev Sets the value of the `decimals`. This value is immutable, it can only be set once during construction./ | constructor () ERC20('MILADY', 'MI') {
_mint(_msgSender(), _totalSupply);
}
| 4,270,587 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
460,
434,
326,
1375,
31734,
8338,
1220,
460,
353,
11732,
16,
518,
848,
1338,
506,
444,
3647,
4982,
16171,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1832,
4232,
39,
3462,
2668,
49,
2627,
1880,
61,
2187,
296,
7492,
6134,
288,
203,
3639,
389,
81,
474,
24899,
3576,
12021,
9334,
389,
4963,
3088,
1283,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.5.11;
import "./whitelist/WhitelistExtension.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/crowdsale/distribution/FinalizableCrowdsa... | return data that will be used to distribute | selectedIds = new uint256[](totalUsers);
| 912,827 | [
1,
4625,
348,
7953,
560,
30,
225,
327,
501,
716,
903,
506,
1399,
358,
25722,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3170,
2673,
273,
394,
2254,
5034,
8526,
12,
4963,
6588,
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,
... |
./full_match/1/0xF895B67031670F4b2D00a08a67a7A5c80F8E829f/sources/contracts/protocols/LidoIntegration.sol | solhint-disable-next-line reason-string | require(approvedTargets[swapTarget], "FillQuote: Target is not approved");
| 8,417,184 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
3971,
17,
1080,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
12,
25990,
9432,
63,
22270,
2326,
6487,
315,
8026,
10257,
30,
5916,
353,
486,
20412,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x347933f98c6E3beb9A1a1d11415d81a52fF28B9A/sources/Chadium.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
pragma solidity ^0.8.15;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 2,746,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
203,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3600,
31,
203,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31... |
./partial_match/4/0x2F674500a367583D6Aaef312478a7cC1941a1977/sources/FECORE.sol | Storage of set values Position of the value in the `values` array, plus 1 because index 0 means a value is not in the set. | struct Set {
bytes32[] _values;
mapping(bytes32 => uint256) _indexes;
}
| 8,664,311 | [
1,
4625,
348,
7953,
560,
30,
225,
5235,
434,
444,
924,
11010,
434,
326,
460,
316,
326,
1375,
2372,
68,
526,
16,
8737,
404,
2724,
770,
374,
4696,
279,
460,
353,
486,
316,
326,
444,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1958,
1000,
288,
203,
5411,
1731,
1578,
8526,
389,
2372,
31,
203,
5411,
2874,
12,
3890,
1578,
516,
2254,
5034,
13,
389,
11265,
31,
203,
3639,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/43114/0x6CCdEed27E139C538C9a83ccdAf997De0A51044D/sources/MasterChef.sol | Update referral commission rate by the owner | function setReferralCommissionRate(uint16 _referralCommissionRate) external onlyOwner {
require(_referralCommissionRate <= MAXIMUM_REFERRAL_COMMISSION_RATE, "setReferralCommissionRate: invalid referral commission rate basis points");
referralCommissionRate = _referralCommissionRate;
emit SetReferra... | 4,501,597 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
1278,
29084,
1543,
19710,
4993,
635,
326,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
444,
1957,
29084,
799,
3951,
4727,
12,
11890,
2313,
389,
1734,
29084,
799,
3951,
4727,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
1734,
29084,
799,
3951,
4727,
1648,
4552,
18605,
67,
30269,
54,
1013,
67,
4208,
155... |
./full_match/1/0xC0eaA22Fdff044F38B79624D65F4eB68c7238703/sources/scripts/Campaign.sol | * @dev Allow either Campaign owner or Factory owner to call this @dev to set the flag to enable token claiming. @dev This is useful when 1 project has multiple campaigns that @dev to sync up the timing of token claiming After LP provision. @notice - Access control: External, onlyFactoryOrCampaignOwner/ | function banUser(address _user) external onlyFactoryOrCampaignOwner {
lottery[_user] = false;
}
| 3,183,400 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7852,
3344,
17820,
3410,
578,
7822,
3410,
358,
745,
333,
632,
5206,
358,
444,
326,
2982,
358,
4237,
1147,
7516,
310,
18,
632,
5206,
1220,
353,
5301,
1347,
404,
1984,
711,
3229,
8965,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25732,
1299,
12,
2867,
389,
1355,
13,
3903,
1338,
1733,
1162,
13432,
5541,
288,
203,
203,
3639,
17417,
387,
93,
63,
67,
1355,
65,
273,
629,
31,
203,
565,
289,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;... | * Initializes contract with initial supply tokens to the creator of the contract/ | function CinociCoin(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) TokenERC20(initialSupply, tokenName, tokenSymbol) public
{
creationDate = now;
address advisor = 0x32c5Ec858c52F8635Bd92e44d8797e5d356eBd05;
address bountyManager = 0xdDa9bcf3... | 202,607 | [
1,
4625,
348,
7953,
560,
30,
380,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
385,
267,
1882,
27055,
12,
203,
3639,
2254,
5034,
2172,
3088,
1283,
16,
203,
3639,
533,
1147,
461,
16,
203,
3639,
533,
1147,
5335,
203,
565,
262,
3155,
654,
39,
3462,
12,
6769,
3088,
1283,
16,
1147,
461,
16,
1147,
533... |
/**
*Submitted for verification at Etherscan.io on 2020-07-12
*/
// File: contracts/lib/Types.sol
/*
Copyright 2020 DODO ZOO.
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
library Types {
enum RStatus {ONE, ABOVE_ONE, BELOW_ONE}
enum EnterStatus {... | * @title Trader @author DODO Breeder @notice Functions for trader operations/ ============ Events ============ ============ Modifiers ============ | contract Trader is Storage, Pricing, Settlement {
using SafeMath for uint256;
event SellBaseToken(address indexed seller, uint256 payBase, uint256 receiveQuote);
event BuyBaseToken(address indexed buyer, uint256 receiveBase, uint256 payQuote);
event ChargeMaintainerFee(address indexed maintainer, bo... | 6,388,820 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
2197,
765,
632,
4161,
463,
2311,
605,
15656,
264,
632,
20392,
15486,
364,
1284,
765,
5295,
19,
422,
1432,
631,
9043,
422,
1432,
631,
422,
1432,
631,
3431,
3383,
422,
1432,
631,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
2197,
765,
353,
5235,
16,
453,
1512,
310,
16,
1000,
88,
806,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
871,
348,
1165,
2171,
1345,
12,
2867,
8808,
29804,
16,
2254,
5034,
8843,
2171,
16,
... |
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2020 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... | @dev Sample buy quotes from KyberDmm. @param router Router to look up tokens and amounts @param path Token route. Should be takerToken -> makerToken. @param makerTokenAmounts Maker token buy amount for each sample. @return pools The pool addresses involved in the multi path trade @return takerTokenAmounts Taker amount... | function sampleBuysFromKyberDmm(
address router,
address[] memory path,
uint256[] memory makerTokenAmounts
)
public
view
returns (address[] memory pools, uint256[] memory takerTokenAmounts)
{
uint256 numSamples = makerTokenAmounts.length;
taker... | 13,093,905 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11474,
30143,
10681,
628,
1475,
93,
744,
40,
7020,
18,
632,
891,
4633,
9703,
358,
2324,
731,
2430,
471,
30980,
632,
891,
589,
3155,
1946,
18,
9363,
506,
268,
6388,
1345,
317,
312,
6388,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3296,
38,
89,
1900,
1265,
47,
93,
744,
40,
7020,
12,
203,
3639,
1758,
4633,
16,
203,
3639,
1758,
8526,
3778,
589,
16,
203,
3639,
2254,
5034,
8526,
3778,
312,
6388,
1345,
6275,
87,
203,
565,
262,
203,
3639,
1071,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-20
*/
// NeverApe | NeverApe
// Telegram: https://t.me/NeverApe
// With thanks and major props to the NeverApe team!
// Fair Launch, no Dev Tokens. 100% LP.
// Snipers will be nuked.
// LP Lock immediately on launch.
// Ownership will be renounced 30 minute... | generate the uniswap pair path of token -> weth make the swap | function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
uniswapV2Router.swapExactTokensForETHSupportingFeeOn... | 17,885 | [
1,
4625,
348,
7953,
560,
30,
225,
2103,
326,
640,
291,
91,
438,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7720,
5157,
1290,
41,
451,
12,
11890,
5034,
1147,
6275,
13,
3238,
288,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2211,
1769,
203,
3639,
589,
63,
... |
pragma solidity ^0.4.25;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (... | amountSellMaker = fromWei(amountSellMaker, tokenSellAddress); | _values[i*5+7] = fromWei(_values[i*5+7], _addresses[1]);
| 1,752,455 | [
1,
4625,
348,
7953,
560,
30,
3844,
55,
1165,
12373,
273,
628,
3218,
77,
12,
8949,
55,
1165,
12373,
16,
1147,
55,
1165,
1887,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
389,
2372,
63,
77,
14,
25,
15,
27,
65,
273,
628,
3218,
77,
24899,
2372,
63,
77,
14,
25,
15,
27,
6487,
389,
13277,
63,
21,
19226,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/3/0x918A6A0BFC15eCE8EF7666353F7EC62955584358/sources/contracts/Nifty.sol | uses the mapping to create a listingrequires that the msg sender also be the owner of the NFT from a specific project contractrequires that the nft is not listedsets listing status as truesets the price | function listNewExternalNFT(address nftcontract , uint256 nftID, uint256 price) external{
require(_externalNFTLedger[nftcontract][nftID].owner == msg.sender , "NFT is not owned by message sender");
require(_externalNFTLedger[nftcontract][nftID].alreadyListed == true, "NFT is already listed");
... | 14,230,680 | [
1,
4625,
348,
7953,
560,
30,
4692,
326,
2874,
358,
752,
279,
11591,
18942,
716,
326,
1234,
5793,
2546,
506,
326,
3410,
434,
326,
423,
4464,
628,
279,
2923,
1984,
6835,
18942,
716,
326,
290,
1222,
353,
486,
12889,
4424,
11591,
1267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
666,
1908,
6841,
50,
4464,
12,
2867,
290,
1222,
16351,
269,
2254,
5034,
290,
1222,
734,
16,
2254,
5034,
6205,
13,
3903,
95,
203,
3639,
2583,
24899,
9375,
50,
4464,
28731,
63,
82,
1222,
16351,
6362,
82,
1222,
734,
8009,
... |
./full_match/4/0xA5D91d5e965EafF0Bc1a7438541E34f88156193a/sources/browser/Untitled.sol | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^BELOW IS FOR TEST ONLY ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^SHOULD BE REMOVED IN PRODUCTION^^^^^^^^^ This function setBirthDate should be commented or removed on production deploy, it is only for testing purpose | function setBirthDate(uint256 _lessSeconds) public returns(bool)
{
birthDate = birthDate.sub(_lessSeconds);
}
| 12,331,451 | [
1,
4625,
348,
7953,
560,
30,
3602,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
20254,
12800,
66,
5948,
4130,
4437,
12108,
22130,
20747,
3602,
20254,
20254,
20254,
20254,
20254,
2025... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15268,
10542,
1626,
12,
11890,
5034,
389,
2656,
6762,
13,
1071,
1135,
12,
6430,
13,
203,
565,
288,
203,
3639,
17057,
1626,
273,
17057,
1626,
18,
1717,
24899,
2656,
6762,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.11;
pragma experimental ABIEncoderV2;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ ... | No withdrawer == msg.sender check needed since this is only internally callable This distinction is important for the migrator Also collects the LP fees Collect liquidity fees too Check for null entries | function _getReward(address rewardee, address destination_address) internal updateRewardAndBalance(rewardee, true) returns (uint256 reward_0) {
reward_0 = rewards0[rewardee];
if (reward_0 > 0) {
rewards0[rewardee] = 0;
TransferHelper.safeTransfer(address(rewardsToken0), desti... | 1,017,157 | [
1,
4625,
348,
7953,
560,
30,
225,
2631,
598,
9446,
264,
422,
1234,
18,
15330,
866,
3577,
3241,
333,
353,
1338,
12963,
4140,
1220,
2411,
267,
349,
353,
10802,
364,
326,
30188,
8080,
30976,
326,
511,
52,
1656,
281,
9302,
4501,
372,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
17631,
1060,
12,
2867,
283,
905,
20953,
16,
1758,
2929,
67,
2867,
13,
2713,
1089,
17631,
1060,
1876,
13937,
12,
266,
905,
20953,
16,
638,
13,
1135,
261,
11890,
5034,
19890,
67,
20,
13,
288,
203,
3639,
19890,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/proxy/Clones.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils... | verify the signature & nonce keep track of where the creepz is identify the interacting pools claim the loomi from creepz if necessary flash stake to the pool burn the corresponding tokens flash stake back to the first pool if the origin is not the first pool transfer the shapeshifters to the sender | function unstakeShapeshifters(
uint256[] calldata shapeIds,
uint256[7] calldata taxAmounts,
uint256[7] calldata creepzNonces,
bytes[7] calldata creepzSignatures,
uint256 nonce,
bytes calldata signature
) external {
_verifyShapeshiferSignature(shapeIds, shapeTypes, taxAmounts, nonce, sign... | 5,761,569 | [
1,
4625,
348,
7953,
560,
30,
225,
3929,
326,
3372,
473,
7448,
3455,
3298,
434,
1625,
326,
1519,
881,
94,
353,
9786,
326,
16592,
310,
16000,
7516,
326,
437,
362,
77,
628,
1519,
881,
94,
309,
4573,
9563,
384,
911,
358,
326,
2845,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
640,
334,
911,
1555,
438,
4607,
430,
5432,
12,
203,
565,
2254,
5034,
8526,
745,
892,
2179,
2673,
16,
203,
565,
2254,
5034,
63,
27,
65,
745,
892,
5320,
6275,
87,
16,
203,
565,
2254,
5034,
63,
27,
65,
745,
892,
1519,
... |
pragma solidity ^0.4.19;
/* Adapted from strings.sol created by Nick Johnson <arachnid@notdot.net>
* Ref: https://github.com/Arachnid/solidity-stringutils/blob/2f6ca9accb48ae14c66f1437ec50ed19a0616f78/strings.sol
* @title String & slice utility library for Solidity contracts.
* @author Nick Johnson <arachnid@notdot... | ** EVENTS ***/ @dev The Created event is fired whenever a new collectible comes into existence.** CONSTANTS ***/ @notice Name and symbol of the non fungible token, as defined in ERC721. @dev CSC Pre Sale Struct, having details of the ship @dev owner address @dev redeeme flag (to help whether it got redeemed or not) | struct CSCPreSaleItem {
uint256 assetId;
bytes32 collectibleName;
uint256 boughtTimestamp;
uint256 collectibleType;
uint256 collectibleClass;
address owner;
bool isRedeemed;
}
uint256 public constant INTREPID_SHIP_LIMIT = 1500;
uint256 public constant CROSAIR_SHIP_LIMIT = ... | 10,103,025 | [
1,
4625,
348,
7953,
560,
30,
2826,
9964,
55,
18852,
19,
632,
5206,
1021,
12953,
871,
353,
15950,
17334,
279,
394,
3274,
1523,
14535,
1368,
15782,
18,
636,
24023,
55,
18852,
19,
632,
20392,
1770,
471,
3273,
434,
326,
1661,
9831,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
385,
2312,
1386,
30746,
1180,
288,
203,
203,
565,
2254,
5034,
3310,
548,
31,
203,
203,
565,
1731,
1578,
3274,
1523,
461,
31,
203,
203,
565,
2254,
5034,
800,
9540,
4921,
31,
203,
203,
565,
2254,
5034,
3274,
1523,
559,
... |
// Sources flattened with hardhat v2.6.6 https://hardhat.org
// File contracts/elk-core/interfaces/IElkFactory.sol
pragma solidity >=0.5.0;
interface IElkFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
fun... | **** ADD LIQUIDITY **** create the pair if it doesn't exist yet | function _addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin
) internal virtual returns (uint amountA, uint amountB) {
if (IElkFactory(factory).getPair(tokenA, tokenB) == address(0)) {
... | 481,259 | [
1,
4625,
348,
7953,
560,
30,
225,
380,
14465,
11689,
8961,
53,
3060,
4107,
380,
14465,
752,
326,
3082,
309,
518,
3302,
1404,
1005,
4671,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1289,
48,
18988,
24237,
12,
203,
3639,
1758,
1147,
37,
16,
203,
3639,
1758,
1147,
38,
16,
203,
3639,
2254,
3844,
1880,
281,
2921,
16,
203,
3639,
2254,
3844,
38,
25683,
16,
203,
3639,
2254,
3844,
2192,
267,
16,
20... |
./full_match/1/0xDe0318369550D2588be5C13A7212830795f13e2F/sources/contracts/VNFTxV5.sol | generates a number from 0 to 2^n based on the last n blocks */ | function randomNumber(uint256 seed, uint256 max)
public
view
returns (uint256 _randomNumber)
{
uint256 n = 0;
for (uint256 i = 0; i < 5; i++) {
n += uint256(
keccak256(
abi.encodePacked(blockhash(block.number - i - 1), seed)... | 3,032,617 | [
1,
4625,
348,
7953,
560,
30,
225,
6026,
279,
1300,
628,
374,
358,
576,
66,
82,
2511,
603,
326,
1142,
290,
4398,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2744,
1854,
12,
11890,
5034,
5009,
16,
2254,
5034,
943,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
389,
9188,
1854,
13,
203,
565,
288,
203,
3639,
2254,
5034,
290,
273,
374,
31,
203,
3639,
... |
./full_match/1/0x9965cCd16803432C6a0842f1D5690f32E427aEDd/sources/contracts/Marketplace.sol | * @dev Changes Presale Sale Discount Amounts (IN BIPS)/ | function __ChangeFixedPriceDiscountAmounts(uint SaleIndex, uint[] calldata Discounts) external onlyAdmin
{
DiscountAmounts[SaleIndex] = Discounts;
}
| 8,471,311 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17776,
18346,
5349,
348,
5349,
3035,
1883,
16811,
87,
261,
706,
605,
2579,
55,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
3043,
7505,
5147,
9866,
6275,
87,
12,
11890,
348,
5349,
1016,
16,
2254,
8526,
745,
892,
3035,
8008,
13,
3903,
1338,
4446,
203,
565,
288,
203,
3639,
3035,
1883,
6275,
87,
63,
30746,
1016,
65,
273,
3035,
8008,
31,
... |
/* $$\ $$\
$$ | $$ |
$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$\ ... | require() proctect from .mult overflow AppStorage ================ Test-net Events ================= | function createOrder(CreateOrderParams calldata params) external {
require((params.fromTokenAddress == s.wethAddress) || (params.toTokenAddress == s.wethAddress));
require(params.settlementGratuityRate < bPDivisor.sub(s.platformRate));
Order nocturnalOrder = new Order(addres... | 15,841,290 | [
1,
4625,
348,
7953,
560,
30,
2583,
1435,
225,
450,
299,
386,
628,
263,
5421,
9391,
4677,
3245,
422,
26678,
7766,
17,
2758,
9043,
422,
14468,
12275,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
2448,
12,
1684,
2448,
1370,
745,
892,
859,
13,
3903,
288,
203,
3639,
2583,
12443,
2010,
18,
2080,
1345,
1887,
422,
272,
18,
91,
546,
1887,
13,
747,
261,
2010,
18,
869,
1345,
1887,
422,
272,
18,
91,
546,
1887,
1... |
pragma solidity ^0.4.18;
// File: 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;
ev... | * @title RefundVault @dev This contract is used for storing funds while a crowdsale is in progress. Supports refunding the money if crowdsale fails, and forwarding it if crowdsale is successful./ | contract RefundVaultWithCommission is Ownable {
using SafeMath for uint256;
mapping (address => uint256) public deposited;
address public wallet;
address public walletFees;
State public state;
event Closed();
event RefundsEnabled();
event Refunded(address indexed beneficiary, uint256 weiAmount);
... | 5,436,055 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3941,
1074,
12003,
632,
5206,
1220,
6835,
353,
1399,
364,
15729,
284,
19156,
1323,
279,
276,
492,
2377,
5349,
353,
316,
4007,
18,
25110,
1278,
14351,
326,
15601,
309,
276,
492,
2377,
5349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3941,
1074,
12003,
1190,
799,
3951,
353,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
225,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
443,
1724,
329,
31,
203,
225,
1758,
1071,
9230,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "./open-zeppelin/ERC20.sol";
import "./open-zeppelin/AccessControl.sol";
import "./open-zeppelin/utils/Math.sol";
import "./open-zeppelin/utils/ECDSA.sol";
/** @title Paladin Token contract */
/// @author Paladin
contract PaladinToken is ERC20, AccessCon... | * @notice Allow/Block transfer for all users @dev Change transfersAllowed flag @param _transfersAllowed bool : true to allow Transfer, false to block/ | function setTransfersAllowed(bool _transfersAllowed) external onlyAdmin {
transfersAllowed = _transfersAllowed;
emit TransfersAllowed(transfersAllowed);
}
| 96,361 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7852,
19,
1768,
7412,
364,
777,
3677,
632,
5206,
7576,
29375,
5042,
2982,
632,
891,
389,
2338,
18881,
5042,
1426,
294,
638,
358,
1699,
12279,
16,
629,
358,
1203,
19,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1429,
18881,
5042,
12,
6430,
389,
2338,
18881,
5042,
13,
3903,
1338,
4446,
288,
203,
3639,
29375,
5042,
273,
389,
2338,
18881,
5042,
31,
203,
3639,
3626,
2604,
18881,
5042,
12,
2338,
18881,
5042,
1769,
203,
565,
289,... |
./full_match/56/0x5B99e0893225178dBf4Ffe9FfD2142a21E8d1087/sources/src/strategies/BaseStrategy.sol | Check the gas cost againts the profit and available credit. There is no sense to call the "work" function, if we don't have decent amount of funds to move. | return _checkGasPriceAgainstProfit(profit);
| 3,226,502 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
326,
16189,
6991,
1737,
1598,
87,
326,
450,
7216,
471,
2319,
12896,
18,
6149,
353,
1158,
12764,
358,
745,
326,
315,
1252,
6,
445,
16,
309,
732,
2727,
1404,
1240,
2109,
319,
3844,
434,
284,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
389,
1893,
27998,
5147,
23530,
334,
626,
7216,
12,
685,
7216,
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,
... |
./full_match/80001/0xF60bF646EF62B19859e00a3fC4d4d488b84ff74F/sources/DigitalaxIndex.sol | * @dev Funtion for removal of set @param _sid Id of auction set/ | function removeCollectionGroup(uint256 _sid) external {
require(accessControls.hasAdminRole(_msgSender()), "DigitalaxIndex.removeAuctionSet: Sender must be admin");
CollectionGroup storage set = collectionGroupSet[_sid];
delete set.digiBundleCollection;
delete set.auctions.value;
... | 852,825 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
478,
10032,
285,
364,
14817,
434,
444,
632,
891,
389,
7453,
3124,
434,
279,
4062,
444,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
2532,
1114,
12,
11890,
5034,
389,
7453,
13,
3903,
288,
203,
3639,
2583,
12,
3860,
16795,
18,
5332,
4446,
2996,
24899,
3576,
12021,
1435,
3631,
315,
4907,
7053,
651,
1016,
18,
4479,
37,
4062,
694,
30,
15044,
1297,
... |
pragma solidity ^0.4.23;
import "zeppelin-solidity/contracts/ownership/Ownable.sol";
import "zeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "./SNM.sol";
import "./Blacklist.sol";
import "./OracleUSD.sol";
import "./ProfileRegistry.sol";
contract Market is Ownable, Pausable {
using SafeMath for uin... | current length of netflags | uint netflagsQuantity;
| 2,521,085 | [
1,
4625,
348,
7953,
560,
30,
225,
783,
769,
434,
2901,
7133,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
2901,
7133,
12035,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
Copyright 2019-2020 eMobilify GmbH
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | allows owner of contract to overwrite an entry in the registry | function adminDeleteParty(bytes2 countryCode, bytes3 partyId) public onlyOwner {
address party = uniqueParties[countryCode][partyId];
deleteParty(party);
}
| 7,220,262 | [
1,
4625,
348,
7953,
560,
30,
225,
5360,
3410,
434,
6835,
358,
6156,
392,
1241,
316,
326,
4023,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3981,
2613,
17619,
12,
3890,
22,
20622,
16,
1731,
23,
18285,
548,
13,
1071,
1338,
5541,
288,
203,
3639,
1758,
18285,
273,
3089,
1988,
606,
63,
9082,
1085,
6362,
21214,
548,
15533,
203,
3639,
1430,
17619,
12,
21214,
1769,
... |
./partial_match/1/0x9Ae4Ed3bF7a3a529Afbc126b4541c0D636D455f6/sources/EasyTrade.sol | EtherDelta contract address
| address constant public ETHERDELTA_ADDR = 0x8d12a197cb00d4747a1fe03395095ce2a5cc6819; | 3,889,423 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
1136,
9242,
6835,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
1758,
5381,
1071,
512,
19905,
24733,
9833,
67,
14142,
273,
374,
92,
28,
72,
2138,
69,
31728,
7358,
713,
72,
24,
5608,
27,
69,
21,
3030,
15265,
29,
5995,
25,
311,
22,
69,
25,
952,
9470,
3657,
31,
225,
2,
-100,
-100,
-100,... |
pragma solidity ^0.5.16;
// Inheritance
import "./Owned.sol";
import "./PerpsV2SettingsMixin.sol";
// Internal references
import "./interfaces/IPerpsV2Settings.sol";
import "./interfaces/IPerpsV2Market.sol";
// market manager is still the V1 one
import "./interfaces/IFuturesMarketManager.sol";
contract PerpsV2Setti... | The minimum amount of sUSD paid to a liquidator when they successfully liquidate a position. This quantity must be no greater than `minInitialMargin`./ | function minKeeperFee() external view returns (uint) {
return _minKeeperFee();
}
| 5,353,416 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
5224,
3844,
434,
272,
3378,
40,
30591,
358,
279,
4501,
26595,
639,
1347,
2898,
4985,
4501,
26595,
340,
279,
1754,
18,
1220,
10457,
1297,
506,
1158,
6802,
2353,
1375,
1154,
4435,
9524,
8338,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1131,
17891,
14667,
1435,
3903,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
389,
1154,
17891,
14667,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.8;
contract ERC20 {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function allowance(address owner, address spender) constant returns (uint);
function transfer(address to, uint value) returns (bool ok);
function transferFrom(address from, addr... | Number of ETH received
| uint public ETHReceived; | 13,074,974 | [
1,
4625,
348,
7953,
560,
30,
225,
3588,
434,
512,
2455,
5079,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11890,
1071,
512,
2455,
8872,
31,
377,
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,
... |
./partial_match/1/0x132468CE9B1b3b0609A7ef0EbC3655586C30809D/sources/ShibaMob.sol | * @dev transfers ownership - grant owner role for newOwner/ | function transferOwnership(address newOwner) external onlyRole(DEFAULT_OWNER) {
require(newOwner != address(0), "ERC20 :: transferOwnership : newOwner != address(0)");
require(!hasRole(DEFAULT_OWNER, newOwner), "ERC20 :: transferOwnership : newOwner has owner role");
_revokeRole(DEFAULT_OWNE... | 15,492,237 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
29375,
23178,
300,
7936,
3410,
2478,
364,
394,
5541,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5460,
12565,
12,
2867,
394,
5541,
13,
3903,
1338,
2996,
12,
5280,
67,
29602,
13,
288,
203,
3639,
2583,
12,
2704,
5541,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
493,
7412,
5460,
12565,
294,
394,
5541,
480,
17... |
./full_match/42161/0x0DAfeC47290C8D7A485b24B9163a525f2Fbd39c1/sources/OmenPerpetua.sol | update the state before sending the ether | claimedProfits[actualPeriod-1][id] += redeemable;
| 16,304,158 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
326,
919,
1865,
5431,
326,
225,
2437,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
7516,
329,
626,
18352,
63,
18672,
5027,
17,
21,
6362,
350,
65,
1011,
283,
24903,
429,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.22 <0.6.0;
import './common/Ownable.sol';
import './libs/SafeMath.sol';
contract DDNSService is Ownable {
/** USINGS */
using SafeMath for uint256;
/** STRUCTS */
struct DomainDetails {
bytes name;
bytes12 topLevel;
address owner;
bytes15 ip;
uint256 expires;
}
... | otherwise return the regular price | return DOMAIN_NAME_COST;
| 5,454,049 | [
1,
4625,
348,
7953,
560,
30,
225,
3541,
327,
326,
6736,
6205,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
327,
27025,
67,
1985,
67,
28343,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: AGPL-3.0
// MgvOracle.sol
// Copyright (C) 2021 Giry SAS.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at yo... | governance or mutator are allowed to update the gasprice | function setGasPrice(uint gasPrice) external {
require(
msg.sender == governance || msg.sender == mutator,
"MgvOracle/unauthorized"
);
lastReceivedGasPrice = gasPrice;
}
| 6,414,662 | [
1,
4625,
348,
7953,
560,
30,
225,
314,
1643,
82,
1359,
578,
29156,
854,
2935,
358,
1089,
326,
16189,
8694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
26770,
345,
5147,
12,
11890,
16189,
5147,
13,
3903,
288,
203,
565,
2583,
12,
203,
1377,
1234,
18,
15330,
422,
314,
1643,
82,
1359,
747,
1234,
18,
15330,
422,
29156,
16,
203,
1377,
315,
49,
75,
90,
23601,
19,
318,
8434... |