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/80001/0xcb77Bf500f84df25516F5ee09440D505542A3F4E/sources/contracts/ERC721Upgradeable.sol | * the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals | contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable {
using AddressUpgradeable for address;
using StringsUpgradeable for uint256;
string private _name;
string private _symbol;
mapping(uint256 => address) private _owner... | 9,463,667 | [
1,
5787,
6912,
2710,
16,
1496,
486,
6508,
326,
6057,
25121,
2710,
16,
1492,
353,
2319,
18190,
487,
288,
654,
39,
27,
5340,
3572,
25121,
5496,
19,
3155,
508,
3155,
3273,
9408,
628,
1147,
1599,
358,
3410,
1758,
9408,
3410,
1758,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
27,
5340,
10784,
429,
353,
10188,
6934,
16,
1772,
10784,
429,
16,
4232,
39,
28275,
10784,
429,
16,
467,
654,
39,
27,
5340,
10784,
429,
16,
467,
654,
39,
27,
5340,
2277,
10784,
429,
288,
203,
565,
1450,
5267,
10... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
abstract contract IManager {
function last(address) virtual public returns (uint);
function cdpCan(address, uint, address) virtual public view returns (uint);
function ilks(uint) virtual public view returns (b... | format the amount we need for frob | int256 convertAmount = toPositiveInt(convertTo18(_joinAddr, _amount));
| 3,296 | [
1,
2139,
326,
3844,
732,
1608,
364,
284,
303,
70,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
509,
5034,
1765,
6275,
273,
358,
14900,
1702,
12,
6283,
774,
2643,
24899,
5701,
3178,
16,
389,
8949,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x022034A4F121C66033A7D783A577eA863eDA9Ced/sources/UtilizationFarm.sol | * @dev Collection of functions related to the address type/ | library Address {
function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
return (codehash != 0x0 && codehash != accountHash);
}
assembly { codehash := extco... | 4,192,433 | [
1,
2532,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
203,
3639,
1731,
1578,
981,
2816,
31,
203,
3639,
1731,
1578,
2236,
2310,
273,
374,
6511,
25,
72,
3247,
26,
1611,
52... |
// Sources flattened with hardhat v2.6.0 https://hardhat.org
// File contracts/libraries/SafeMath.sol
pragma solidity ^0.6.6;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*
* @dev Default OpenZeppelin
*/
library SafeMath {
/**
* @dev Multiplies two unsi... | * @dev Check whether a new TOTAL cover is allowed. @param _protocol Address of the smart contract protocol being protected. @param _totalBorrowedAmount The new total amount that would be being borrowed. returns Whether or not this new total borrowed amount would be able to be covered./ | function allowedCover(address _protocol, uint256 _totalBorrowedAmount)
external
override
view
returns (bool)
{
return _totalBorrowedAmount <= totalStakedAmount[_protocol];
}
| 226,695 | [
1,
1564,
2856,
279,
394,
399,
19851,
5590,
353,
2935,
18,
225,
389,
8373,
5267,
434,
326,
13706,
6835,
1771,
3832,
4750,
18,
225,
389,
4963,
38,
15318,
329,
6275,
1021,
394,
2078,
3844,
716,
4102,
506,
3832,
29759,
329,
18,
1135,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
2935,
8084,
12,
2867,
389,
8373,
16,
2254,
5034,
389,
4963,
38,
15318,
329,
6275,
13,
203,
1377,
3903,
203,
1377,
3849,
203,
1377,
1476,
203,
565,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
389,
4963,
38,
153... |
//Address: 0xa0388ffb2a3c198dee723135e0caa423840b375a
//Contract name: Campaign
//Balance: 0 Ether
//Verification Date: 11/8/2016
//Transacion Count: 5
// CODE STARTS HERE
pragma solidity ^0.4.4;
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
contract Token {
... | Update total supply
| totalSupply += amount; | 12,993,543 | [
1,
1891,
2078,
14467,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2078,
3088,
1283,
1011,
3844,
31,
2398,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
interface IAsset {
}
interface IVault{
function joinPool(
bytes32 poolId,
address sender,
address recipient,
JoinPoolRequest memory request
) external payable;
struct JoinPoolR... | On-chain contract used for piping FL action parameters
| address flParamGetterAddr; | 6,848,888 | [
1,
1398,
17,
5639,
6835,
1399,
364,
8341,
310,
31358,
1301,
1472,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
1758,
1183,
786,
8461,
3178,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xbc446fA602Ece8A4fD163cD356B598ef1C8aaE4E/sources/lib/core-cash/src/libraries/ProductIdUtil.sol | * @title ProductIdUtil @dev used to parse and compose productId Product Id = ----------------- | ----------------- | ---------------------- | ------------------ | ---------------------- | oracleId (8 bits) | engineId (8 bits) | underlying ID (8 bits) | strike ID (8 bits) | collateral ID (8 bits) | ----------------- ... | library ProductIdUtil {
function parseProductId(uint40 _productId)
internal
pure
returns (uint8 oracleId, uint8 engineId, uint8 underlyingId, uint8 strikeId, uint8 collateralId)
pragma solidity ^0.8.0;
{
assembly {
oracleId := shr(32, _productId)
engineId... | 4,192,636 | [
1,
19268,
1304,
225,
1399,
358,
1109,
471,
11458,
23820,
8094,
3124,
273,
225,
12146,
571,
12146,
571,
12146,
13465,
571,
12146,
17,
571,
12146,
13465,
225,
571,
20865,
548,
261,
28,
4125,
13,
571,
4073,
548,
261,
28,
4125,
13,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
8094,
548,
1304,
288,
203,
565,
445,
1109,
19268,
12,
11890,
7132,
389,
5896,
548,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
28,
20865,
548,
16,
2254,
28,
4073,
548,
16,
2254,
28,
6808,
548,
16,
... |
./full_match/1/0x45F97D07dAB04B21F36fA3b1149c35e316b35d03/sources/contracts/PirexCvx.sol | / Allow PirexFees to distribute fees directly from sender Distribute fees | function initiateRedemptions(
uint256[] calldata lockIndexes,
Futures f,
uint256[] calldata assets,
address receiver
) external whenNotPaused nonReentrant {
uint256 lockLen = lockIndexes.length;
if (lockLen == 0) revert EmptyArray();
if (lockLen != assets... | 16,476,795 | [
1,
19,
7852,
453,
577,
92,
2954,
281,
358,
25722,
1656,
281,
5122,
628,
5793,
3035,
887,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18711,
426,
19117,
573,
12,
203,
3639,
2254,
5034,
8526,
745,
892,
2176,
8639,
16,
203,
3639,
478,
10945,
284,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
7176,
16,
203,
3639,
1758,
5971,
203,
565,
262,
3903,
1347,
1248,... |
pragma solidity ^0.5.0;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/Purchase.sol";
contract TestPurchase {
// The address of the purchase contract to be tested
Purchase purchase = Purchase(DeployedAddresses.Purchase());
// Testing the purchase() function
function... | Testing retrieval of a single book's customer | function testGetCustomerAddressByBookId() public {
address customer = purchase.customers(expectedBookId);
Assert.equal(customer, expectedCustomer, "Buyer of the expected book should be this contract.");
}
| 5,422,536 | [
1,
22218,
22613,
434,
279,
2202,
6978,
1807,
6666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1842,
967,
8883,
1887,
858,
9084,
548,
1435,
1071,
288,
203,
565,
1758,
6666,
273,
23701,
18,
3662,
414,
12,
3825,
9084,
548,
1769,
203,
203,
565,
5452,
18,
9729,
12,
10061,
16,
2665,
8883,
16,
315,
38,
16213,
434,
32... |
./partial_match/42/0x53AF86B01ca8668D7a5F52E3361D4Bc7A331bfdf/sources/BirdCore.sol | * @title Bird's BToken Contract @notice Abstract base for BTokens/ testing event to check what is failing | contract BToken is BTokenInterface, Exponential, TokenErrorReporter {
event AllowedTestEvent(address indexed user, address indexed bToken, uint256 errorCode);
function initialize(BControllerInterface bController_,
InterestRateModel interestRateModel_,
uint initi... | 8,918,138 | [
1,
38,
6909,
1807,
605,
1345,
13456,
225,
4115,
1026,
364,
605,
5157,
19,
7769,
871,
358,
866,
4121,
353,
21311,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
1345,
353,
605,
1345,
1358,
16,
29770,
649,
16,
3155,
668,
13289,
288,
203,
203,
565,
871,
16740,
4709,
1133,
12,
2867,
8808,
729,
16,
1758,
8808,
324,
1345,
16,
2254,
5034,
12079,
1769,
203,
203,
565,
445,
4046,
12,
... |
// Based on https://github.com/HausDAO/Molochv2.1
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.4;
// import "hardhat/console.sol";
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* availabl... | the # of shares the applicant is requesting
| uint256 sharesRequested; | 32,906 | [
1,
5787,
225,
434,
24123,
326,
513,
1780,
970,
353,
18709,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24123,
11244,
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,
-10... |
//SPDX-License-Identifier: none
pragma solidity ^0.8.0;
import "./RarumNFT_Permit.sol";
contract RarumNFT is ERC1155PresetMinterPauserUpgradeable, RarumNFT_Permit {
string public name;
string public symbol;
string public description;
mapping (uint256 => string) private _tokenURIs;
uint256[] p... | * @dev Adaptation of OpenZeppelin's ERC20Permit/ solhint-disable-next-line var-name-mixedcase | contract RarumNFT_Permit is RarumNFT_Roles, EIP712Upgradeable {
address public tokenAddress;
mapping(address => mapping(bytes32 => bool)) internal _authorizationStates;
event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce);
bytes32 private constant _PERMIT_TYPEHASH = keccak256("... | 5,420,752 | [
1,
13716,
367,
434,
3502,
62,
881,
84,
292,
267,
1807,
4232,
39,
3462,
9123,
305,
19,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
569,
17,
529,
17,
19562,
3593,
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,
16351,
534,
297,
379,
50,
4464,
67,
9123,
305,
353,
534,
297,
379,
50,
4464,
67,
6898,
16,
512,
2579,
27,
2138,
10784,
429,
288,
203,
203,
565,
1758,
1071,
1147,
1887,
31,
203,
203,
565,
2874,
12,
2867,
516,
2874,
12,
3890,
1... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import {WadRayMath} from "./WadRayMath.sol";
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {IPolicyPool} from "../interfaces/IPolicyPool.sol";
import {PolicyPoolComponent} from "./P... | @param ensuroFee_ % of pure premium that will go for Ensuro treasury (in ray) @param scrInterestRate_ % of interest to charge for the SCR (in ray) @param maxScrPerPolicy_ Max SCR to be allocated to this module (in wad) @param scrLimit_ Max SCR to be allocated to this module (in wad) @param wallet_ Address of the RiskM... | function __RiskModule_init(
string memory name_,
uint256 scrPercentage_,
uint256 ensuroFee_,
uint256 scrInterestRate_,
uint256 maxScrPerPolicy_,
uint256 scrLimit_,
address wallet_
) internal initializer {
__AccessControl_init();
__PolicyPoolComponent_init();
__RiskModule_init... | 12,625,500 | [
1,
773,
19321,
14667,
67,
738,
434,
16618,
23020,
5077,
716,
903,
1960,
364,
1374,
10050,
83,
9787,
345,
22498,
261,
267,
14961,
13,
225,
11991,
29281,
4727,
67,
738,
434,
16513,
358,
13765,
364,
326,
348,
5093,
261,
267,
14961,
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,
1001,
54,
10175,
3120,
67,
2738,
12,
203,
565,
533,
3778,
508,
67,
16,
203,
565,
2254,
5034,
11991,
16397,
67,
16,
203,
565,
2254,
5034,
570,
10050,
83,
14667,
67,
16,
203,
565,
2254,
5034,
11991,
29281,
4727,
67,
16,... |
pragma solidity ^0.4.24;
//==============================================================================
// _ _ _ _|_ _ .
// (/_\/(/_| | | _\ .
//==============================================================================
contract F3Devents {
// fired whenever a player registers a name
event o... | ============================================================================== _ _ _ _|_ _ . (/_\/(/_| | | _\ .============================================================================== fired whenever a player registers a name fired at end of buy or reload fired whenever theres a withdraw fired wheneve... | contract F3Devents {
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddress,
bytes32 affiliateName,
uint256 amountPaid,
uint256 ... | 9,851,684 | [
1,
9917,
26678,
377,
389,
565,
389,
225,
389,
389,
96,
67,
389,
225,
263,
565,
261,
18510,
6700,
12,
18510,
96,
571,
571,
389,
64,
225,
263,
9917,
26678,
15950,
17334,
279,
7291,
10285,
279,
508,
15950,
622,
679,
434,
30143,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
478,
23,
758,
616,
87,
288,
203,
565,
871,
603,
1908,
461,
203,
565,
261,
203,
3639,
2254,
5034,
8808,
7291,
734,
16,
203,
3639,
1758,
8808,
7291,
1887,
16,
203,
3639,
1731,
1578,
8808,
7291,
461,
16,
203,
3639,
1426,
10... |
pragma solidity ^0.4.4;
import "github.com/JonnyLatte/MiscSolidity/erc20.sol";
contract sha3CollisionBounty {
address public owner;
bytes32 public A;
bytes32 public B;
function claim(bytes32 a, bytes32 b) {
if(owner != 0 ) throw; // can only be claimed once
if... | can only be claimed once
| if(owner != 0 ) throw; | 905,570 | [
1,
4169,
1338,
506,
7516,
329,
3647,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
12,
8443,
480,
374,
3639,
262,
604,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x8CD301A50dFbE088F0F49d202E7CB91abb8b22fa/sources/contracts/Service.sol | check if entity is sharelimited in the collection
| if(c.collectionShareLimit > 0) require (collectionSharesByEntity[c.id][msg.sender] <= c.collectionShareLimit, "Reached max pool limit!"); | 12,269,747 | [
1,
1893,
309,
1522,
353,
7433,
21325,
316,
326,
1849,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
12,
71,
18,
5548,
9535,
3039,
405,
374,
13,
2583,
261,
5548,
24051,
858,
1943,
63,
71,
18,
350,
6362,
3576,
18,
15330,
65,
1648,
276,
18,
5548,
9535,
3039,
16,
315,
23646,
943,
2845,
1800,
4442,
1769,
225,
2,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-01-24
*/
/**
* Absolutus smart contract by BioHazzardt
*/
pragma solidity ^0.5.7;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in b... | payForLevel provides payment processing for user's referer and automatic buying referer's next level. | function payForLevel(uint _level, address _user, address _sender, uint _autoPayCtr, bool prevLost) internal {
address referer;
address referer1;
address referer2;
address referer3;
if (_level == 1 || _level == 5) {
referer = userList[users[_user].referrerID];
... | 1,807,895 | [
1,
10239,
1290,
2355,
8121,
5184,
4929,
364,
729,
1807,
18068,
471,
5859,
30143,
310,
18068,
1807,
1024,
1801,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8843,
1290,
2355,
12,
11890,
389,
2815,
16,
1758,
389,
1355,
16,
1758,
389,
15330,
16,
2254,
389,
6079,
9148,
39,
313,
16,
1426,
2807,
19024,
13,
2713,
288,
203,
3639,
1758,
18068,
31,
203,
3639,
1758,
18068,
21,
31,
... |
pragma solidity ^0.4.3;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed pre... | send tie token to each player
| tCoin.transfer(lastPlayer, oneCoin); | 916,595 | [
1,
4661,
25318,
1147,
358,
1517,
7291,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
268,
27055,
18,
13866,
12,
2722,
12148,
16,
1245,
27055,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import 'OpenZeppelin/openzeppelin-contracts@3.2.0/contracts/token/ERC20/IERC20.sol';
import 'OpenZeppelin/openzeppelin-contracts@3.2.0/contracts/math/SafeMath.sol';
import './BasicSpell.sol';
import '../utils/HomoraMath.sol';
import '../../interfaces/ICurvePoo... | 0. Ensure approve 1. Compute repay amount if MAX_INT is supplied (max debt) 5. Repay 6. Refund | function removeLiquidity2(
address lp,
uint amtLPTake,
uint amtLPWithdraw,
uint[2] calldata amtsRepay,
uint amtLPRepay,
uint[2] calldata amtsMin
) external {
address pool = getPool(lp);
uint positionId = bank.POSITION_ID();
(, address collToken, uint collId, ) = bank.getPositionI... | 12,582,183 | [
1,
20,
18,
7693,
6617,
537,
404,
18,
8155,
2071,
528,
3844,
309,
4552,
67,
3217,
353,
4580,
261,
1896,
18202,
88,
13,
1381,
18,
868,
10239,
1666,
18,
3941,
1074,
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,
225,
445,
1206,
48,
18988,
24237,
22,
12,
203,
565,
1758,
12423,
16,
203,
565,
2254,
25123,
48,
1856,
911,
16,
203,
565,
2254,
25123,
14461,
1190,
9446,
16,
203,
565,
2254,
63,
22,
65,
745,
892,
25123,
87,
426,
10239,
16,
203,
... |
./partial_match/1/0x5C5293EabBC96a62788b4CA0D393042D4e931e81/sources/src/libraries/ReallocationLib.sol | total value to deposit
| values[1] = reallocations[i][1][smartVaultStrategiesLength]; | 4,413,441 | [
1,
4963,
460,
358,
443,
1724,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
924,
63,
21,
65,
273,
2863,
12352,
63,
77,
6362,
21,
6362,
26416,
12003,
1585,
15127,
1782,
15533,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.4;
contract Mortal {
/* Define variable owner of the type address*/
address owner;
/* this function is executed at initialization and sets the owner of the contract */
function mortal() { owner = msg.sender; }
/* Function to recover the funds on the contract */
function k... | define variable greeting of the type string */ | function setGreeting(bytes32 _greeting) returns (bool) {
greeting = _greeting;
return true;
}
| 12,849,322 | [
1,
11255,
2190,
5174,
21747,
434,
326,
618,
533,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26770,
9015,
310,
12,
3890,
1578,
389,
75,
9015,
310,
13,
1135,
261,
6430,
13,
288,
203,
3639,
5174,
21747,
273,
389,
75,
9015,
310,
31,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.5.8;
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol
interface IERC20 {
... | inject NONSTANDARD NAMING
| function REMOVE879(Role storage role, address account) internal { | 2,480,299 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26056,
28,
7235,
12,
2996,
2502,
2478,
16,
1758,
2236,
13,
2713,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, s... | * @notice A reroll is an opportunity to change your tokenDNA and only available when reroll is enabled. A token that is rerolled gets brand new tokenDNA that is generated in the next reroll period with the result of the Chainlink VRF requestRandomNumber(). Its impossible to know the result of your reroll in advance... | function reroll(uint256[] calldata _tokenIds) external {
uint256 amount = REROLL_COST * _tokenIds.length;
require(rerollState, "reroll not enabled");
require(goop[_msgSender()] >= amount, "not enough goop for reroll");
for (uint256 i = 0; i < _tokenIds.length; i++) {
... | 13,679,455 | [
1,
37,
436,
264,
22382,
353,
392,
1061,
655,
13352,
358,
2549,
3433,
1147,
8609,
37,
471,
1338,
2319,
1347,
436,
264,
22382,
353,
3696,
18,
225,
432,
1147,
716,
353,
436,
264,
355,
1259,
5571,
15272,
394,
1147,
8609,
37,
716,
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,
565,
445,
436,
264,
22382,
12,
11890,
5034,
8526,
745,
892,
389,
2316,
2673,
13,
3903,
288,
203,
3639,
2254,
5034,
3844,
273,
534,
654,
30922,
67,
28343,
380,
389,
2316,
2673,
18,
2469,
31,
203,
3639,
2583,
12,
86,
264,
22382,
... |
./full_match/1/0xFC047884dE7797A3D9cbA42FBc3b675388A110d5/sources/contracts/polygon/tunnel/FxBaseRootTunnel.sol | keccak256(MessageSent(bytes)) state sender contract root chain manager child tunnel contract which receives and sends messages storage to avoid duplicate exits | abstract contract FxBaseRootTunnel {
using RLPReader for RLPReader.RLPItem;
using Merkle for bytes32;
using ExitPayloadReader for bytes;
using ExitPayloadReader for ExitPayloadReader.ExitPayload;
using ExitPayloadReader for ExitPayloadReader.Log;
using ExitPayloadReader for ExitPayloadReader.Log... | 16,474,351 | [
1,
79,
24410,
581,
5034,
12,
1079,
7828,
12,
3890,
3719,
919,
5793,
6835,
1365,
2687,
3301,
1151,
14825,
6835,
1492,
17024,
471,
9573,
2743,
2502,
358,
4543,
6751,
19526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
478,
92,
2171,
2375,
20329,
288,
203,
565,
1450,
534,
14461,
2514,
364,
534,
14461,
2514,
18,
54,
48,
1102,
874,
31,
203,
565,
1450,
31827,
364,
1731,
1578,
31,
203,
565,
1450,
9500,
6110,
2514,
364,
1731,
31,
203,
... |
./partial_match/1/0xCAE8c981bA27db88b988bbc2d6b52987586cf32B/sources/FOPToken.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.19;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 3,881,619 | [
1,
17727,
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,
486,
506,
15539,
316,
4123,
279,
2657,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
683,
9454,
18035,
560,
374,
18,
28,
18,
3657,
31,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@paulrberg/contracts/token/erc20/Erc20Permit.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Banny ... | @notice Emitted when the sender is the zero address. | error Erc20__TransferSenderZeroAddress();
| 402,818 | [
1,
1514,
11541,
1347,
326,
5793,
353,
326,
3634,
1758,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1636,
512,
1310,
3462,
972,
5912,
12021,
7170,
1887,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2022-02-03
*/
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarv... | We usually don't need to claim rewards on withdrawals, but might change our mind for migrations etc | function setClaimRewards(bool _claimRewards)
external
onlyEmergencyAuthorized
{
claimRewards = _claimRewards;
}
| 7,998,345 | [
1,
3218,
11234,
2727,
1404,
1608,
358,
7516,
283,
6397,
603,
598,
9446,
1031,
16,
1496,
4825,
2549,
3134,
22838,
364,
9814,
5527,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
9762,
17631,
14727,
12,
6430,
389,
14784,
17631,
14727,
13,
203,
3639,
3903,
203,
3639,
1338,
1514,
24530,
15341,
203,
565,
288,
203,
3639,
7516,
17631,
14727,
273,
389,
14784,
17631,
14727,
31,
203,
565,
289,
203,
2... |
./full_match/69/0x7B2AD0F401Eac4ec230f2Ecb0541685E327D2f33/sources/contracts/ShineToken.sol | * @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus... | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
uint256 currentAllowance = allowances[msg.sender][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(msg.sender, spender, currentAllowance -... | 13,239,498 | [
1,
3641,
6478,
23850,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
4894,
18,
1220,
353,
392,
10355,
358,
288,
12908,
537,
97,
716,
848,
506,
1399,
487,
279,
20310,
360,
367,
364,
9688,
11893,
316,
288,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
783,
7009,
1359,
273,
1699,
6872,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
15533,
203... |
/**
▓▓▌ ▓▓ ▐▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄
▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▌▐▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓▓▓▓▓▓ ▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓ ▐▓▓▓▓▓ ▓▓▓▓▓▓ ▓▓▓▓▓ ▐▓▓▓▓▓▌ ▐▓▓▓▓▓▓
▓▓▓▓▓▓▄▄▓▓▓▓▓▓▓▀ ▐▓▓▓▓▓▓▄▄▄▄ ▓▓▓▓▓▓▄▄▄▄ ▐▓▓▓▓▓▌ ... | @notice Gets the eligible stake balance of the specified address. An eligible stake is a stake that passed the initialization period and is not currently undelegating. Also, the operator had to approve the specified operator contract. Operator with a minimum required amount of eligible stake can join the network and p... | function eligibleStake(
address _operator,
address _operatorContract
) public view returns (uint256 balance) {
uint256 operatorParams = operators[_operator].packedParams;
if (
isAuthorizedForOperator(_operator, _operatorContract) &&
_isInitialized(operator... | 12,847,104 | [
1,
3002,
326,
21351,
384,
911,
11013,
434,
326,
1269,
1758,
18,
1922,
21351,
384,
911,
353,
279,
384,
911,
716,
2275,
326,
10313,
3879,
471,
353,
486,
4551,
640,
3771,
1332,
1776,
18,
8080,
16,
326,
3726,
9323,
358,
6617,
537,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
21351,
510,
911,
12,
203,
3639,
1758,
389,
9497,
16,
203,
3639,
1758,
389,
9497,
8924,
203,
565,
262,
1071,
1476,
1135,
261,
11890,
5034,
11013,
13,
288,
203,
3639,
2254,
5034,
3726,
1370,
273,
12213,
63,
67,
9497,
8009... |
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/mixins/TickCensus.sol | @notice Splits out the lobby bits and the mezzanine bits from the 24-bit price tick index associated with the type of border tick used in seekMezzSpill() call / Because pinTermMezz returns a border *on* the previous bitmap, we need to decrement by one to get the seek starting point. | function rootsForBorder (int24 borderTick, bool isUpper) private pure
returns (uint8 lobbyBit, uint8 mezzBit) {
int24 pinTick = isUpper ? borderTick : (borderTick - 1);
lobbyBit = pinTick.lobbyBit();
mezzBit = pinTick.mezzBit();
}
| 4,651,084 | [
1,
16582,
596,
326,
22925,
1637,
4125,
471,
326,
1791,
6378,
304,
558,
4125,
628,
326,
4248,
17,
3682,
6205,
540,
4024,
770,
3627,
598,
326,
618,
434,
5795,
4024,
1399,
316,
6520,
4667,
6378,
3389,
737,
1435,
540,
745,
342,
15191,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12876,
1290,
8107,
261,
474,
3247,
5795,
6264,
16,
1426,
353,
5988,
13,
3238,
16618,
203,
3639,
1135,
261,
11890,
28,
22925,
1637,
5775,
16,
2254,
28,
1791,
6378,
5775,
13,
288,
203,
3639,
509,
3247,
7092,
6264,
273,
35... |
./full_match/3/0x65973BCF8Af1F5277ED53B800df892813c14bc39/sources/contracts/1_Storage.sol | * @dev Sets the values for {name} and {symbol}. The defaut value of {decimals} is 18. To select a different value for {decimals} you should overload it. All two of these values are immutable: they can only be set once during construction./ | constructor (string memory name_, string memory symbol_,uint256 initialBalance_,uint256 decimals_,address tokenOwner) {
_name = name_;
_symbol = symbol_;
_totalSupply = initialBalance_* 10**decimals_;
_balances[tokenOwner] += _totalSupply*90/100;
_balances[_commitee] += _tota... | 14,235,795 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5496,
1021,
443,
507,
322,
460,
434,
288,
31734,
97,
353,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
97,
1846,
1410,
30402,
518,
18,
4826,
2795,
434,
4259,
924,
854... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
3885,
261,
1080,
3778,
508,
67,
16,
533,
3778,
3273,
67,
16,
11890,
5034,
2172,
13937,
67,
16,
11890,
5034,
15105,
67,
16,
2867,
1147,
5541,
13,
288,
203,
3639,
389,
529,
273,
508,
67,
31,
203,
3639,
389,
7175,
273,
3273,
... |
./partial_match/1/0xb932a70A57673d89f4acfFBE830E8ed7f75Fb9e0/sources/SuperRareV2.sol | * @dev Updates the token metadata if the owner is also the creator. @param _tokenId uint256 ID of the token. @param _uri string metadata URI./ | function updateTokenMetadata(uint256 _tokenId, string _uri)
public
onlyTokenOwner(_tokenId)
onlyTokenCreator(_tokenId)
{
_setTokenURI(_tokenId, _uri);
emit TokenURIUpdated(_tokenId, _uri);
}
| 2,885,618 | [
1,
5121,
326,
1147,
1982,
309,
326,
3410,
353,
2546,
326,
1377,
11784,
18,
225,
389,
2316,
548,
2254,
5034,
1599,
434,
326,
1147,
18,
225,
389,
1650,
533,
1982,
3699,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
1345,
2277,
12,
11890,
5034,
389,
2316,
548,
16,
533,
389,
1650,
13,
203,
1377,
1071,
203,
1377,
1338,
1345,
5541,
24899,
2316,
548,
13,
203,
1377,
1338,
1345,
10636,
24899,
2316,
548,
13,
203,
565,
288,
203,
1377... |
./full_match/1/0xc5fEcD1080d546F9494884E834b03D7AD208cc02/sources/contracts/StakeRewardRefill.sol | The amount to send per refill | uint256 public refillAmount;
| 2,944,540 | [
1,
1986,
3844,
358,
1366,
1534,
1278,
737,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
1278,
737,
6275,
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/0x635e4A8d23d9adD975E931113Ddd2ac3663A7325/sources/FaaSPoolLite.sol | ********************************************************************************************* calcSingleOutGivenPoolIn tAo = tokenAmountOut / / \\ bO = tokenBalanceOut / pS - ... | function calcSingleOutGivenPoolIn(
uint tokenBalanceOut,
uint tokenWeightOut,
uint poolSupply,
uint totalWeight,
uint poolAmountIn,
uint swapFee,
uint exitFee
)
public pure
returns (uint tokenAmountOut)
{
uint normalizedWeight =... | 4,056,095 | [
1,
12448,
5281,
1182,
6083,
2864,
382,
28524,
282,
268,
37,
83,
273,
1147,
6275,
1182,
5411,
342,
1377,
342,
4766,
2398,
1736,
565,
324,
51,
273,
1147,
13937,
1182,
6647,
342,
4202,
293,
55,
300,
261,
84,
37,
77,
225,
261,
21,
300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7029,
5281,
1182,
6083,
2864,
382,
12,
203,
3639,
2254,
1147,
13937,
1182,
16,
203,
3639,
2254,
1147,
6544,
1182,
16,
203,
3639,
2254,
2845,
3088,
1283,
16,
203,
3639,
2254,
2078,
6544,
16,
203,
3639,
2254,
2845,
6275,
... |
./partial_match/1/0x9490CCf93Cd750dc47f72402A163022cfB94CFC9/sources/contracts/vaults/TreasuryVault/RibbonTreasuryVaultLite.sol | * @notice Completes a scheduled withdrawal from a past round. Uses finalized pps for the round/ | function completeWithdraw() external nonReentrant {
uint256 withdrawAmount = _completeWithdraw();
lastQueuedWithdrawAmount = uint128(
uint256(lastQueuedWithdrawAmount) - (withdrawAmount)
);
}
| 3,540,695 | [
1,
6297,
281,
279,
9755,
598,
9446,
287,
628,
279,
8854,
3643,
18,
14854,
727,
1235,
293,
1121,
364,
326,
3643,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3912,
1190,
9446,
1435,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
5034,
598,
9446,
6275,
273,
389,
6226,
1190,
9446,
5621,
203,
3639,
1142,
21039,
1190,
9446,
6275,
273,
2254,
10392,
12,
203,
5411,
2254,
5034,
12,... |
./full_match/1/0x640216Ea5b2aC018b1d1FDB3F0a206F652C92574/sources/contracts/MemberRegistry/MemberRegistry.sol | * @dev Returns the owner of the token with the given ID. @param tokenId_ The ID of the token for which to get the owner. @return The owner of the token with the given ID as an address./ | function unsafeOwnerOf(uint256 tokenId_) public view returns (address) {
return ERC721AUpgradeable.ownerOf(tokenId_);
}
| 9,808,474 | [
1,
1356,
326,
3410,
434,
326,
1147,
598,
326,
864,
1599,
18,
225,
1147,
548,
67,
1021,
1599,
434,
326,
1147,
364,
1492,
358,
336,
326,
3410,
18,
327,
1021,
3410,
434,
326,
1147,
598,
326,
864,
1599,
487,
392,
1758,
18,
19,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7127,
5541,
951,
12,
11890,
5034,
1147,
548,
67,
13,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
4232,
39,
27,
5340,
37,
10784,
429,
18,
8443,
951,
12,
2316,
548,
67,
1769,
203,
565,
289,
203,
203,
2,
-100... |
// SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is dis... | * @dev Restores `value` from logarithmic space. `value` is expected to be the result of a call to `toLowResLog`, any other function that returns 4 decimals fixed point logarithms, or the sum of such values./ | function fromLowResLog(int256 value) internal pure returns (uint256) {
return uint256(LogExpMath.exp(value * _LOG_COMPRESSION_FACTOR));
}
| 1,041,049 | [
1,
5188,
3485,
1375,
1132,
68,
628,
613,
31249,
335,
3476,
18,
1375,
1132,
68,
353,
2665,
358,
506,
326,
563,
434,
279,
745,
358,
1375,
869,
10520,
607,
1343,
9191,
1281,
1308,
445,
716,
1135,
1059,
15105,
5499,
1634,
613,
297,
483,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
628,
10520,
607,
1343,
12,
474,
5034,
460,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2254,
5034,
12,
1343,
2966,
10477,
18,
2749,
12,
1132,
380,
389,
4842,
67,
4208,
14227,
67,
26835,
10019,
203,... |
./partial_match/56/0x10Df0D812C56D87767210e8ef02edBD9A0a6e17E/sources/StrategyCakeCommunityLP.sol | * @dev Implementation of a strategy to get yields from farming LP Pools in PancakeSwap. PancakeSwap is an automated market maker (“AMM”) that allows two tokens to be exchanged on the Binance Smart Chain. It is fast, cheap, and allows anyone to participate. PancakeSwap is aiming to be the #1 liquidity provider on BSC. T... | contract StrategyCakeCommunityLP is Ownable, Pausable {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
address constant public wbnb = address(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c);
address constant public cake = address(0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e8... | 11,169,497 | [
1,
13621,
434,
279,
6252,
358,
336,
16932,
628,
284,
4610,
310,
511,
52,
453,
8192,
316,
12913,
23780,
12521,
18,
12913,
23780,
12521,
353,
392,
18472,
690,
13667,
312,
6388,
261,
163,
227,
255,
2192,
49,
163,
227,
256,
13,
716,
536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19736,
31089,
12136,
13352,
14461,
353,
14223,
6914,
16,
21800,
16665,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
503... |
pragma solidity ^0.4.24;
/*
* gibmireinbier - Full Stack Blockchain Developer
* 0xA4a799086aE18D7db6C4b57f496B081b44888888
* gibmireinbier@gmail.com
*/
/*
CHANGELOGS:
. GrandPot : 2 rewards per round
5% pot with winner rate 100%,
no dividends, no fund to F2M contract
... | dummy slot between every 2 rounds dummy slot never win jackpot cause of min 0.1 ETH _slot.tNumberTo = round[curRoundId].ticketSum; started with 3 hours timeout | function checkpoint()
private
{
Slot memory _slot;
slot.push(_slot);
Round memory _round;
_round.startTime = NEWROUND_WAIT_DURATION.add(block.timestamp);
_round.slideEndTime = TIMEOUT0 + _round.startTime;
_round.fixedEndTime = TIMEOUT2 + _round.startTime... | 887,418 | [
1,
21050,
4694,
3086,
3614,
576,
21196,
9609,
4694,
5903,
5657,
525,
484,
13130,
4620,
434,
1131,
374,
18,
21,
512,
2455,
389,
14194,
18,
88,
1854,
774,
273,
3643,
63,
1397,
11066,
548,
8009,
16282,
3495,
31,
5746,
598,
890,
7507,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9776,
1435,
7010,
3639,
3238,
203,
565,
288,
203,
3639,
23195,
3778,
389,
14194,
31,
203,
3639,
4694,
18,
6206,
24899,
14194,
1769,
203,
203,
3639,
11370,
3778,
389,
2260,
31,
203,
3639,
389,
2260,
18,
1937,
950,
273,
1... |
//Address: 0xa1f58f081c67dfd9ef93955c06877cbf357b5c56
//Contract name: DogRace
//Balance: 0 Ether
//Verification Date: 4/17/2018
//Transacion Count: 10
// CODE STARTS HERE
pragma solidity ^0.4.19;
// File: contracts/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
... | duration of betting period
| uint betting_duration; | 15,811,025 | [
1,
8760,
434,
2701,
1787,
3879,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
225,
2701,
1787,
67,
8760,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.15;
import 'zeppelin-solidity/contracts/math/SafeMath.sol';
import './TokenLifecycle.sol';
import './PurchasableToken.sol';
import './BurnableToken.sol';
import './FinalizableToken.sol';
import './RefundVault.sol';
/**
* @title A Refundable Token
* @author Tavit Ohanian
* @dev Adapted from th... | * @dev State definitions/* @notice minimum amount of funds to be raised in weis @notice from token purchases/* @dev Event definitions/* @dev Constructor/* @notice RefundableToken(address _previousToken, address _tokenManager, address _escrow, uint256 _rate, uint256 _goal) @param _previousToke... | {
require(_goal > 0);
goal = _goal * (1 ether / 1 wei);
}
| 2,507,404 | [
1,
1119,
6377,
19,
225,
5224,
3844,
434,
284,
19156,
358,
506,
11531,
316,
732,
291,
225,
628,
1147,
5405,
343,
3304,
19,
225,
2587,
6377,
19,
225,
11417,
19,
225,
3941,
1074,
429,
1345,
12,
2867,
389,
11515,
1345,
16,
1758,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
288,
203,
3639,
2583,
24899,
27354,
405,
374,
1769,
203,
3639,
17683,
273,
389,
27354,
380,
261,
21,
225,
2437,
342,
404,
732,
77,
1769,
7010,
565,
289,
203,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-09-25
*/
// File: openzeppelin-solidity/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these... | mock class using ERC20 | contract ERC20SAP is ERC20, Ownable {
constructor (
string memory name,
string memory symbol,
address initialAccount,
uint256 initialBalance
) public payable ERC20(name, symbol) {
_mint(initialAccount, initialBalance);
}
function mint(address account, uint256 amo... | 5,886,351 | [
1,
22851,
667,
1450,
4232,
39,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
55,
2203,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
3885,
261,
203,
3639,
533,
3778,
508,
16,
203,
3639,
533,
3778,
3273,
16,
203,
3639,
1758,
2172,
3032,
16,
203,
3639,
2254,
5034,
2172,
13937,
... |
/**
* Crypto Bunny Factory
* Buy,sell,trade and mate crypto based digital bunnies
*
* Developer Team
* Check on CryptoBunnies.com
*
**/
pragma solidity ^0.4.23;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b)... | you cannot advertise an animal for sale which is in egg phase | require(animalAgainstId[animalId].eggPhase==false);
| 1,305,867 | [
1,
19940,
2780,
31553,
392,
392,
2840,
364,
272,
5349,
1492,
353,
316,
25144,
6855,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
12,
304,
2840,
23530,
334,
548,
63,
304,
2840,
548,
8009,
23171,
11406,
631,
5743,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/5/0xCf86e56b395032163dd4Af966500e2F189f29637/sources/contracts/contracts-V6/src/Libraries.sol | Unlock campaign funds equivalent to project reward ✅ Unlock the funds for the project | function unlockProjectRewardPostCleanup(
Campaign storage _campaign,
ProjectManager.Project memory _project,
uint256 _taskSubmissionDecisionDisputeTime
) external {
require(
block.timestamp >=
_project.nextMilestone.startGateTimestamp +
... | 7,070,632 | [
1,
7087,
8965,
284,
19156,
7680,
358,
1984,
19890,
225,
163,
255,
232,
3967,
326,
284,
19156,
364,
326,
1984,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7186,
4109,
17631,
1060,
3349,
15007,
12,
203,
3639,
17820,
2502,
389,
14608,
16,
203,
3639,
5420,
1318,
18,
4109,
3778,
389,
4406,
16,
203,
3639,
2254,
5034,
389,
4146,
17865,
15861,
1669,
2507,
950,
203,
565,
262,
3903,... |
pragma solidity 0.4.24;
// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function bal... | total amount of vesting grants assumed to be less than 100 | function getActiveGrants(address _recipient) public view returns(uint256[]){
uint256 i = 0;
uint256[] memory recipientGrants = new uint256[](totalVestingCount);
uint256 totalActive = 0;
for(i; i < totalVestingCount; i++){
if(tokenGrants[i].isActive && tokenGrants[i].recip... | 987,896 | [
1,
4963,
3844,
434,
331,
10100,
25638,
12034,
358,
506,
5242,
2353,
2130,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11960,
29598,
12,
2867,
389,
20367,
13,
1071,
1476,
1135,
12,
11890,
5034,
63,
5717,
95,
203,
3639,
2254,
5034,
277,
273,
374,
31,
203,
3639,
2254,
5034,
8526,
3778,
8027,
29598,
273,
394,
2254,
5034,
8526,
12,
4963,
58... |
/**
*Submitted for verification at Etherscan.io on 2020-08-14
*/
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Ethereum Minus";
symbol = "eMinus";
decimals = 18;
_totalSupply = 1000000000000000000000000000000;
balances[msg.sender] = _totalSupply;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 249,771 | [
1,
442,
701,
30206,
445,
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,
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,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
41,
18664,
379,
5444,
407,
14432,
203,
3639,
3273,
273,
315,
73,
18434,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
12648,... |
./partial_match/1/0x9a50742da823F92575b30dBAE0FcAEF25aE0186f/sources/WithdrawalDelayer.sol | * @dev Allows the pendingGovernance address to finalize the transfer./ | function claimEmergencyCouncil() public override {
require(
msg.sender == pendingEmergencyCouncil,
"WithdrawalDelayer::claimEmergencyCouncil: ONLY_PENDING_GOVERNANCE"
);
_emergencyCouncil = pendingEmergencyCouncil;
pendingEmergencyCouncil = address(0);
... | 4,251,241 | [
1,
19132,
326,
4634,
43,
1643,
82,
1359,
1758,
358,
12409,
326,
7412,
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,
7516,
1514,
24530,
39,
465,
71,
330,
1435,
1071,
3849,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
4634,
1514,
24530,
39,
465,
71,
330,
16,
203,
5411,
315,
1190,
9446,
287,
2837,
1773,
2866,
14784,
1514,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | соорудить в гараже
| rus_verbs:соорудить{}, | 5,481,363 | [
1,
146,
228,
145,
127,
145,
127,
146,
227,
146,
230,
145,
117,
145,
121,
146,
229,
146,
239,
225,
145,
115,
225,
145,
116,
145,
113,
146,
227,
145,
113,
145,
119,
145,
118,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
146,
228,
145,
127,
145,
127,
146,
227,
146,
230,
145,
117,
145,
121,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
Pricing.sol - SKALE Manager
Copyright (C) 2018-Present SKALE Labs
@author Artem Payvin
@author Vadim Yavorsky
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as publis... | * @dev Adjust the schain price based on network capacity and demand. Requirements: - Cooldown time has exceeded./ | function adjustPrice() external override {
ConstantsHolder constantsHolder = ConstantsHolder(contractManager.getContract("ConstantsHolder"));
require(
block.timestamp > lastUpdated + constantsHolder.COOLDOWN_TIME(),
"It's not a time to update a price"
);
check... | 12,234,367 | [
1,
10952,
326,
272,
5639,
6205,
2511,
603,
2483,
7519,
471,
23653,
18,
29076,
30,
300,
385,
1371,
2378,
813,
711,
12428,
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,
... | [
1,
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,
5765,
5147,
1435,
3903,
3849,
288,
203,
3639,
5245,
6064,
6810,
6064,
273,
5245,
6064,
12,
16351,
1318,
18,
588,
8924,
2932,
2918,
6064,
7923,
1769,
203,
3639,
2583,
12,
203,
5411,
1203,
18,
5508,
405,
1142,
7381,
397,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.8;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract MerkleRedeem is AccessControl {
byte... | * Get the claim status for a user for a slice of distributions. Will return false for a non-existent distribution. The `_end` value is included in the returned array/ | function claimStatus(
address _contributor,
uint _begin,
uint _end
)
external
view
returns (bool[] memory)
{
uint size = 1 + _end - _begin;
bool[] memory arr = new bool[](size);
for(uint i = 0; i < size; i++) {
arr[i] = clai... | 12,618,519 | [
1,
967,
326,
7516,
1267,
364,
279,
729,
364,
279,
2788,
434,
23296,
18,
9980,
327,
629,
364,
279,
1661,
17,
19041,
7006,
18,
1021,
1375,
67,
409,
68,
460,
353,
5849,
316,
326,
2106,
526,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
1482,
12,
203,
3639,
1758,
389,
591,
19293,
16,
203,
3639,
2254,
389,
10086,
16,
203,
3639,
2254,
389,
409,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
8526,
3778,
13,
203,
565,
... |
pragma solidity ^0.4.23;
// File: contracts/BytesUtils.sol
library BytesUtils {
/*
* @dev Returns the keccak-256 hash of a byte range.
* @param self The byte string to hash.
* @param offset The position to start hashing at.
* @param len The number of bytes to hash.
* @return The hash... | * @dev Sets the contract address for a signature verification algorithm. Callable only by the owner. @param id The algorithm ID @param algo The address of the algorithm contract./ | function setAlgorithm(uint8 id, Algorithm algo) public owner_only {
algorithms[id] = algo;
emit AlgorithmUpdated(id, algo);
}
| 12,747,729 | [
1,
2785,
326,
6835,
1758,
364,
279,
3372,
11805,
4886,
18,
1377,
10464,
1338,
635,
326,
3410,
18,
225,
612,
1021,
4886,
1599,
225,
13901,
1021,
1758,
434,
326,
4886,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
6801,
12,
11890,
28,
612,
16,
15067,
13901,
13,
1071,
3410,
67,
3700,
288,
203,
3639,
20032,
63,
350,
65,
273,
13901,
31,
203,
3639,
3626,
15067,
7381,
12,
350,
16,
13901,
1769,
203,
565,
289,
203,
203,
2,
-100,
... |
./full_match/43113/0xF97FA6A8b0407deddE2336eA98Bc688b34901c52/sources/project_/contracts/Twenty6Fifty2.sol | @title Twenty6Fifty2 @author lileddie.eth / Enefte Studio/ | contract Twenty6Fifty2 is ERC721A, EnefteOwnership {
uint64 public MAX_SUPPLY = 2652;
uint64 public TOKEN_PRICE = 0.01 ether;
uint64 public MAX_TOKENS_PER_WALLET = 1000;
uint64 public EMISSIONS = 91000;
uint64 public SALE_OPENS = 0;
uint64 public SALE_CLOSES = 999999999999;
INinety1 NINE... | 7,209,116 | [
1,
23539,
319,
93,
26,
42,
2136,
93,
22,
225,
328,
398,
449,
1385,
18,
546,
342,
1374,
10241,
736,
934,
4484,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12694,
319,
93,
26,
42,
2136,
93,
22,
353,
4232,
39,
27,
5340,
37,
16,
1374,
10241,
736,
5460,
12565,
288,
203,
203,
565,
2254,
1105,
1071,
4552,
67,
13272,
23893,
273,
576,
9222,
22,
31,
203,
565,
2254,
1105,
1071,
1427... |
./partial_match/1/0x659870BC166590fb369F33e62a55647A40cd2c09/sources/OCOCToken.sol | Set the token symbol for display
| string private constant symbol_ = 'OCOC'; | 4,483,915 | [
1,
694,
326,
1147,
3273,
364,
2562,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
533,
3238,
5381,
3273,
67,
273,
296,
51,
3865,
39,
13506,
4766,
1850,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2021-05-06
*/
pragma solidity ^0.6.3;
/*
* @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 s... | transfer erc20 token from maker | function createBidPool(string memory _name, address _tracker, uint256 _amount, uint32 _endTime, bool _onlyHolder) makerFee onlyBeforeDestruct payable public {
require(_amount>0, "check create pool amount");
IERC20(_tracker).safeTransferFrom(msg.sender, address(this), _amount);
bidPools[bi... | 10,850,298 | [
1,
13866,
6445,
71,
3462,
1147,
628,
312,
6388,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
17763,
2864,
12,
1080,
3778,
225,
389,
529,
16,
1758,
389,
16543,
16,
2254,
5034,
389,
8949,
16,
2254,
1578,
389,
409,
950,
16,
1426,
389,
3700,
6064,
13,
312,
6388,
14667,
1338,
4649,
6305,
8813,
8843,
429,
1071,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
////// lib/openzeppelin-contracts/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
/* pragma solidity ^0.8.0; */
/**
* @dev Provides information about the current execut... | set as marketing wallet
| marketingWallet = address(0x08253bD854E7885cfd732032F6821d0AC742bC66); | 10,104,727 | [
1,
542,
487,
13667,
310,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
6840,
30304,
70,
40,
28,
6564,
41,
27,
5482,
25,
71,
8313,
27,
31273,
1578,
42,
9470,
5340,
72,
20,
2226,
5608,
22,
70,
39,
6028,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import { IJustCausePool } from './Interfaces.sol';
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol";
/**
* @title JCDepositorERC721
* @author JustCause
* This is a proof of concept starter contract for lossle... | counter = counter + 1; | function getUserTokens(address _tokenOwner) external view returns(uint256[] memory){
address[] memory assets = IJustCausePool(jcPool).getAcceptedTokens();
uint256 len = assets.length;
uint256[] memory ids = new uint256[](len);
for(uint256 i = 0; i < len; i++){
uint256 tok... | 1,758,683 | [
1,
7476,
273,
3895,
397,
404,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4735,
5157,
12,
2867,
389,
2316,
5541,
13,
3903,
1476,
1135,
12,
11890,
5034,
8526,
3778,
15329,
203,
3639,
1758,
8526,
3778,
7176,
273,
467,
19642,
10683,
2864,
12,
78,
71,
2864,
2934,
588,
18047,
5157,
5621,
203,
3639,
... |
./partial_match/3/0xf4f48955F2e3Dff09e15Dde15144d8e2BEa05A19/sources/Maker.sol | makerOrders[id] = order; | function cancelAddLiquidity(
address sender,
uint id
) external _onlyRouter returns (uint _amount){
Types.MakerOrder storage order = makerOrders[id];
require(order.id != 0, 'not exist');
require(order.maker == sender, 'Caller is not order owner');
require(order.ac... | 5,065,594 | [
1,
29261,
16528,
63,
350,
65,
273,
1353,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3755,
986,
48,
18988,
24237,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
2254,
612,
203,
565,
262,
3903,
389,
3700,
8259,
1135,
261,
11890,
389,
8949,
15329,
203,
3639,
7658,
18,
12373,
2448,
2502,
1353,
273,
312,
6388,
1... |
./full_match/1/0x1bAC1E3003668fc0Cc4838DD3Fb62E8C2671b271/sources/browser/TorroDao.sol | @notice Execution of SET_MIN_VOTES proposal. @param proposal_ proposal. | function _executeSetMinVotes(Proposal storage proposal_) private {
_minProposalVotes = proposal_.amount;
}
| 3,118,742 | [
1,
3210,
434,
7855,
67,
6236,
67,
16169,
7296,
14708,
18,
225,
14708,
67,
14708,
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,
225,
445,
389,
8837,
694,
2930,
29637,
12,
14592,
2502,
14708,
67,
13,
3238,
288,
203,
565,
389,
1154,
14592,
29637,
273,
14708,
27799,
8949,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/100/0x87926e4dCB09bE44B54b9863322c43DfdA98b687/sources/contracts/LSP0ERC725Account/ILSP0ERC725Account.sol | * @title The Interface of LSP0-ERC725Account Standard @author Fabian Vogelsteller <fabian@lukso.network>, Jean Cavallera (CJ42) @dev A smart contract account including basic functionalities such as: - Detecting supported standards using ERC165 - Executing several operation on other addresses including creating contract... | interface ILSP0ERC725Account {
event ValueReceived(address indexed sender, uint256 indexed value);
function batchCalls(bytes[] calldata data) external returns (bytes[] memory results);
pragma solidity ^0.8.4;
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {IERC725X} fro... | 14,284,921 | [
1,
1986,
6682,
434,
511,
3118,
20,
17,
654,
39,
27,
2947,
3032,
8263,
225,
478,
378,
2779,
776,
717,
292,
334,
292,
749,
411,
74,
378,
2779,
36,
80,
19445,
2048,
18,
5185,
20401,
804,
73,
304,
385,
842,
454,
6070,
261,
39,
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,
1,
1,
1,
1... | [
1,
5831,
467,
3045,
52,
20,
654,
39,
27,
2947,
3032,
288,
203,
565,
871,
1445,
8872,
12,
2867,
8808,
5793,
16,
2254,
5034,
8808,
460,
1769,
203,
203,
565,
445,
2581,
10125,
12,
3890,
8526,
745,
892,
501,
13,
3903,
1135,
261,
3890,... |
pragma solidity >=0.4.22 <0.6.0;
contract ReduceCo2Ballot {
//proposal 1 2.5 and fair
//proposal 2 2.5 and not fair
//proposal 3 4.5 and fair
//proposal 4 4.5 and not fair
//proposal 5 6 and fair
//proposal 6 6 and not fair
//proposal 7 8.5 and fair
//proposal 8 8.5 and notfair
struct Vo... | what is the annual_income of the vote? we know their social class by this.
| uint Annual_income; | 980,569 | [
1,
23770,
353,
326,
8226,
1462,
67,
267,
5624,
434,
326,
12501,
35,
732,
5055,
3675,
16702,
667,
635,
333,
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,
... | [
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,
377,
2254,
225,
24936,
1462,
67,
267,
5624,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x6a6bc8ce19901f0e3e93ba6FAbCfD0a8a8bF180a/sources/browser/Augustus.sol | * @dev Modifier to make a function callable only when the contract is paused./ | modifier whenPaused() {
require(_paused, "Pausable: not paused");
_;
}
constructor(
address whitelist,
address gasToken,
address partnerRegistry,
address payable feeWallet,
address gstHolder
)
public
| 3,019,343 | [
1,
9829,
358,
1221,
279,
445,
4140,
1338,
1347,
326,
6835,
353,
17781,
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,
9606,
1347,
28590,
1435,
288,
203,
3639,
2583,
24899,
8774,
3668,
16,
315,
16507,
16665,
30,
486,
17781,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
565,
3885,
12,
203,
3639,
1758,
10734,
16,
203,
3639,
1758,
16189,
1... |
./partial_match/1/0x84027C78ef73D1F9d5F9a902DAe02767847a52f5/sources/CBOT.sol | remove limits after token is stable | function removeLimits() external onlyAdmin returns (bool) {
limitsInEffect = false;
return true;
}
| 4,299,824 | [
1,
4479,
8181,
1839,
1147,
353,
14114,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
12768,
1435,
3903,
1338,
4446,
1135,
261,
6430,
13,
288,
203,
3639,
8181,
382,
12477,
273,
629,
31,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------------------------------------------------------------------------------------------------------
// ---------... | File: @openzeppelin/contracts/access/Ownable.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 functions. By default, the owner account will be the one that deploys the contract. This can later be changed wit... | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
}
pragma solidity ^0.8.0;
constructor() {
_set... | 202,324 | [
1,
812,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
3860,
19,
5460,
429,
18,
18281,
225,
13456,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
565,
445,
389,
5771,
1345,
5... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
/**
* @dev Interface of the BEP20.
*/
interface BEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | * @dev Set New Address Charity. Requirements: The Charity Wallet cannot be the zero address./ | function setCharityWallet(address newCharityWallet) external onlyOwner {
require(newCharityWallet != address(0),
"BEP20: The new wallet cannot be the zero address");
CharityWallet = newCharityWallet;
emit NewCharityWallet(newCharityWallet);
}
| 6,474,673 | [
1,
694,
1166,
5267,
3703,
560,
18,
29076,
30,
1021,
3703,
560,
20126,
2780,
506,
326,
3634,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
2156,
560,
16936,
12,
2867,
394,
2156,
560,
16936,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
2156,
560,
16936,
480,
1758,
12,
20,
3631,
203,
3639,
315,
5948,
52,
3462,
30,
1021,
394,
9230,
2780,
506,
... |
./partial_match/1/0xC4eF943b7c2f6b387b37689f1e9fa6ecB738845d/sources/contracts/compounder/rewardHandlers/BalancerSwapsHandler.sol | ---------------------------------------------------------------- Types ---------------------------------------------------------------- | contract BalancerSwapsHandler is HandlerBase {
using SafeERC20 for IERC20;
pragma solidity 0.8.11;
import { SafeERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/utils/SafeERC20.sol";
import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol";
import { IBalancerVault, IAsset } from "../../int... | 9,231,916 | [
1,
5802,
7658,
13420,
18753,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
5191,
6050,
6679,
1503,
353,
4663,
2171,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
2499,
31,
203,
5666,
288,
14060,
654,
39,
3462,... |
pragma solidity ^0.4.25;
/**
EN:
MultiEther contract: returns 110-120% of each investment!
Automatic payouts!
No bugs, no backdoors, NO OWNER - fully automatic!
Made and checked by professionals!
1. Send any sum to smart contract address
- sum from 0.01 ETH
- min 280000 gas limit
... | Send to him everything we have
| dep.depositor.send(money); | 906,009 | [
1,
3826,
358,
366,
381,
7756,
732,
1240,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
5993,
18,
323,
1724,
280,
18,
4661,
12,
2586,
402,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x4E17B959835EEF6C789a7F2feA330A9df84310f8/sources/_xaya/democrit-evm/contracts/Democrit.sol | * @dev Computes the total cost in WCHI sats that a given buy, taking pool fees into account, will be./ | function getTotalBuyCost (uint remainingAmount, uint totalSats, uint64 relFee,
uint amountBought)
public view returns (uint)
{
if (amountBought == 0)
return 0;
uint sats = getSatsForPurchase (remainingAmount, totalSats, amountBought);
uint fee = getPoolFee (relFe... | 9,449,048 | [
1,
10743,
326,
2078,
6991,
316,
678,
1792,
45,
272,
2323,
716,
279,
864,
30143,
16,
13763,
2845,
1656,
281,
1368,
2236,
16,
903,
506,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
12831,
38,
9835,
8018,
261,
11890,
4463,
6275,
16,
2254,
2078,
55,
2323,
16,
2254,
1105,
1279,
14667,
16,
203,
18701,
2254,
3844,
13809,
9540,
13,
203,
1377,
1071,
1476,
1135,
261,
11890,
13,
203,
225,
288,
203,
565,
30... |
./full_match/42220/0x1168b2135BD2f6DeC0afFcE9bd61118052605B9A/sources/contracts/CarbonCreditTokenFactory.sol | @author FlowCarbon LLC @title A Carbon Credit Token Factory | contract CarbonCreditTokenFactory is AbstractFactory {
using ClonesUpgradeable for address;
CarbonCreditBundleTokenFactory public carbonCreditBundleTokenFactory;
pragma solidity 0.8.13;
constructor (CarbonCreditToken implementationContract_, address owner_) {
swapImplementationContract(address(im... | 16,336,477 | [
1,
5249,
39,
11801,
511,
13394,
225,
432,
13353,
30354,
3155,
7822,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
13353,
16520,
1345,
1733,
353,
4115,
1733,
288,
203,
203,
565,
1450,
3905,
5322,
10784,
429,
364,
1758,
31,
203,
203,
565,
13353,
16520,
3405,
1345,
1733,
1071,
28755,
16520,
3405,
1345,
1733,
31,
203,
203,
683,
9454,
18035,
... |
./full_match/1/0x19748a349a0c55CA10FeCcD426081212DE2D19E4/sources/contracts/alloyx/core/AlloyxVault.sol | * @notice If address is whitelisted/ | modifier isWhitelisted() {
require(config.getWhitelist().isUserWhitelisted(msg.sender), "not whitelisted");
_;
}
| 3,069,251 | [
1,
2047,
1758,
353,
26944,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
353,
18927,
329,
1435,
288,
203,
565,
2583,
12,
1425,
18,
588,
18927,
7675,
291,
1299,
18927,
329,
12,
3576,
18,
15330,
3631,
315,
902,
26944,
8863,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
contract KeeperBase {
/**
* @notice method that allows it to be simulated via eth_call by checking that
* the sender is the zero address.
*/
function preventExecution()
internal
view
{
require(tx.origin == address(0), "only for simulat... | * @notice read the minimum LINK required to send registration request/ | function getMinLINKJuels()
external
view
returns (
uint256
)
{
return s_minLINKJuels;
}
| 5,993,734 | [
1,
896,
326,
5224,
22926,
1931,
358,
1366,
7914,
590,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9555,
10554,
46,
89,
10558,
1435,
7010,
1377,
3903,
7010,
1377,
1476,
7010,
1377,
1135,
261,
203,
1850,
2254,
5034,
203,
1377,
262,
203,
565,
288,
203,
3639,
327,
272,
67,
1154,
10554,
46,
89,
10558,
31,
203,
565,
289,
... |
./full_match/11155111/0x43082Cd06c3747CF5968Fc0a2278749567e1396b/sources/contracts/manifold/creator-core/core/CreatorCore.sol | * @dev Set base token uri for an extension/ | function _setBaseTokenURIExtension(string calldata uri, bool identical)
internal
{
_extensionBaseURI[msg.sender] = uri;
_extensionBaseURIIdentical[msg.sender] = identical;
}
| 3,798,454 | [
1,
694,
1026,
1147,
2003,
364,
392,
2710,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
2171,
1345,
3098,
3625,
12,
1080,
745,
892,
2003,
16,
1426,
12529,
13,
203,
3639,
2713,
203,
565,
288,
203,
3639,
389,
6447,
2171,
3098,
63,
3576,
18,
15330,
65,
273,
2003,
31,
203,
3639,
389,
6447,
2171,
30... |
//! A Multi-signature, daily-limited account proxy/wallet library.
//!
//! Inheritable "property" contract that enables methods to be protected by
//! requiring the acquiescence of either a single, or, crucially, each of a
//! number of, designated owners.
//!
//! Usage: use modifiers onlyowner (just own owned) or only... | TYPES struct for the status of a pending operation. | contract multiowned {
struct PendingState {
uint yetNeeded;
uint ownersDone;
uint index;
}
event Revoke(address owner, bytes32 operation);
event OwnerAdded(address newOwner);
event OwnerRemoved(address oldOwner);
event Confirmation(address owner, bytes32 operation);
event OwnerChanged(address oldOwne... | 1,737,672 | [
1,
10564,
1958,
364,
326,
1267,
434,
279,
4634,
1674,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3309,
995,
329,
288,
203,
203,
203,
203,
202,
1697,
16034,
1119,
288,
203,
202,
202,
11890,
4671,
11449,
31,
203,
202,
202,
11890,
25937,
7387,
31,
203,
202,
202,
11890,
770,
31,
203,
202,
97,
203,
203,
202,
2575,
23863,
... |
// Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC.
//
// 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 your option) any later version... | Set the global debt ceiling to 1,416,000,000 1,401 (current DC) + 7 (COMP-A) + 3 (LRC-A) + 5 (LINK-A) Set ilk bytes32 variable Sanity checks Set the COMP PIP in the Spotter Set the COMP-A Flipper in the Cat Init COMP-A ilk in Vat & Jug Allow COMP-A Join to modify Vat registry Allow the COMP-A Flipper to reduce the Cat... | function execute() external {
VatAbstract(MCD_VAT).file("Line", 1416 * MILLION * RAD);
bytes32 ilk = "COMP-A";
require(GemJoinAbstract(MCD_JOIN_COMP_A).vat() == MCD_VAT, "join-vat-not-match");
require(GemJoinAbstract(MCD_JOIN_COMP_A).ilk() == ilk, "join-ilk-not-match");
... | 6,984,733 | [
1,
694,
326,
2552,
18202,
88,
5898,
4973,
358,
404,
16,
24,
2313,
16,
3784,
16,
3784,
404,
16,
27002,
261,
2972,
21533,
13,
397,
2371,
261,
10057,
17,
37,
13,
397,
890,
261,
48,
11529,
17,
37,
13,
397,
1381,
261,
10554,
17,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1836,
1435,
3903,
288,
203,
3639,
25299,
7469,
12,
49,
10160,
67,
58,
789,
2934,
768,
2932,
1670,
3113,
5045,
2313,
380,
490,
15125,
1146,
380,
534,
1880,
1769,
203,
203,
3639,
1731,
1578,
14254,
79,
273,
315,
10057,
17... |
./partial_match/1/0x6b2C42D2Aa4CB2D859CF7a88546dB12ae294F303/sources/contracts/interfaces/IERC20.sol | Emitted when the allowance of a spender for an owner is set by a call to approve. Value is the new allowance Emitted when value tokens are moved from one account (from) to another (to). Note that value may be zero Returns the amount of tokens in existence Returns the amount of tokens owned by account Returns the decim... | interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function totalSupply() external view returns (uint);
function balanceOf(address account) external view returns (uint);
function dec... | 2,714,581 | [
1,
1514,
11541,
1347,
326,
1699,
1359,
434,
279,
17571,
264,
364,
392,
3410,
353,
444,
635,
279,
745,
358,
6617,
537,
18,
1445,
353,
326,
394,
1699,
1359,
512,
7948,
1347,
460,
2430,
854,
10456,
628,
1245,
2236,
261,
2080,
13,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
871,
1716,
685,
1125,
12,
2867,
8808,
3410,
16,
1758,
8808,
17571,
264,
16,
2254,
460,
1769,
203,
203,
565,
871,
12279,
12,
2867,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
460,
1769,
203... |
./full_match/11155111/0x3A82D3111aB5faF39d847D46023d9090261A658F/sources/contracts/contracts/tokens/AGOLDTestToken.sol | * @title AGOLDToken - Gold token @dev Contract containing init logic for upgradable token representing gold equivalent/ | contract AGOLDTestToken is ERC20 {
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
constructor() ERC20("AgAu Gold", "AGLD") {
}
function mint(address beneficiary, uint amount) external {
_mint(beneficiary, amount);
}
}
| 3,814,260 | [
1,
1781,
11846,
1345,
300,
611,
1673,
1147,
225,
13456,
4191,
1208,
4058,
364,
731,
9974,
429,
1147,
5123,
20465,
7680,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
432,
43,
11846,
4709,
1345,
353,
4232,
39,
3462,
288,
203,
203,
5666,
288,
654,
39,
3462,
97,
628,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
3462,
19,
654,
39,
3462,
18,
18281,
14432,
203... |
./full_match/80001/0x4436485155E81382b8DE76b29d4f79C52C27AAF7/sources/contracts/dao/ERC1155Dao.sol | @notice operation cannot be performed because a borrower is already active. Signature : `0x3ecb46e3` | error BorrowerActive();
| 5,682,193 | [
1,
7624,
2780,
506,
9591,
2724,
279,
29759,
264,
353,
1818,
2695,
18,
9249,
294,
1375,
20,
92,
23,
557,
70,
8749,
73,
23,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
555,
605,
15318,
264,
3896,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x13c2fab6354d3790d8ece4f0f1a3280b4a25ad96
//Contract name: PhiToken
//Balance: 0 Ether
//Verification Date: 2/28/2018
//Transacion Count: 42500
// CODE STARTS HERE
pragma solidity ^0.4.18;
/*
* Contract that is working with ERC223 tokens
* https://github.com/ethereum/EIPs/issues/223
*/
/// @title E... | @title PHI ERC223 Token with burn functionality | contract PhiToken is Token {
string constant public name = "PHI Token";
string constant public symbol = "PHI";
uint8 constant public decimals = 18;
using SafeMath for uint;
uint constant multiplier = 10 ** uint(decimals);
mapping (address => uint256) balances;
mapping (address => mapping ... | 12,976,621 | [
1,
8939,
45,
4232,
39,
3787,
23,
3155,
598,
18305,
14176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
4360,
77,
1345,
353,
3155,
288,
203,
203,
203,
565,
533,
5381,
1071,
508,
273,
315,
8939,
45,
3155,
14432,
203,
565,
533,
5381,
1071,
3273,
273,
315,
8939,
45,
14432,
203,
565,
2254,
28,
5381,
1071,
15105,
273,
6549,
31,
... |
./full_match/42/0x57aE897c635b85C32f6E32736710c9D4d0beCf6A/sources/github/Canvinus/JamaicanDigitalCurrency/JamaicanDigitalCurrency.sol | Mints new tokens Only callable by an owner | function mint(uint256 amount) external isOwner {
_totalSupply += amount;
balances[msg.sender] = balances[msg.sender].add(amount);
emit Minted(msg.sender, amount);
}
| 16,252,477 | [
1,
49,
28142,
394,
2430,
225,
5098,
4140,
635,
392,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
3844,
13,
3903,
353,
5541,
288,
203,
3639,
389,
4963,
3088,
1283,
1011,
3844,
31,
203,
3639,
324,
26488,
63,
3576,
18,
15330,
65,
273,
324,
26488,
63,
3576,
18,
15330,
8009,
1289,
12,
8949,
... |
// SPDX-License-Identifier: MIT
// solhint-disable not-rely-on-time
pragma solidity ^0.8.3;
import "./openzeppelin-solidity/contracts/SafeMath.sol";
import "./openzeppelin-solidity/contracts/ReentrancyGuard.sol";
import "./openzeppelin-solidity/contracts/Ownable.sol";
import "./openzeppelin-solidity/contracts/ERC20/S... | * @dev Transfers LP tokens to the user and burns their LP tokens./ | function migrateBondTokens() external nonReentrant releaseEscrowIsSet {
require(backupMode.useBackup(), "LiquidityBond: Protocol must be in backup mode to migrate tokens.");
require(!hasMigrated[msg.sender], "LiquidityBond: Already migrated.");
uint256 numberOfLPTokens = userLPTokens[msg.se... | 13,027,239 | [
1,
1429,
18881,
511,
52,
2430,
358,
326,
729,
471,
18305,
87,
3675,
511,
52,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13187,
9807,
5157,
1435,
3903,
1661,
426,
8230,
970,
3992,
6412,
492,
15737,
288,
203,
3639,
2583,
12,
9572,
2309,
18,
1202,
6248,
9334,
315,
48,
18988,
24237,
9807,
30,
4547,
1297,
506,
316,
5114,
1965,
358,
13187,
2430,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import "base64-sol/base64.sol";
import "./constants/Colors.sol";
/// @title Hair SVG generator
library HairDetail {
/// @dev Hair N°1 => Classic Brown
function item_1() public pure returns (string memory) {
return base(classi... | @dev Hair N°19 => Classic 2 Red | function item_19() public pure returns (string memory) {
return base(classicTwoHairs(Colors.RED));
}
| 1,028,763 | [
1,
44,
1826,
423,
131,
113,
3657,
516,
26902,
576,
4621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
761,
67,
3657,
1435,
1071,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
1026,
12,
1106,
335,
11710,
44,
1826,
87,
12,
12570,
18,
5879,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
/**
* @title Companies Contract
* @dev The contract used to save companies data.
*/
contract Companies {
using SafeMath for uint256;
struct Company {
uint256[] suppliers;
uint256[] imported... | * @dev Gets the saved number. @return An uint256 representing the saved number./ | function getTotal() public view returns (uint256) {
return totalCompanies;
}
| 12,964,755 | [
1,
3002,
326,
5198,
1300,
18,
327,
1922,
2254,
5034,
5123,
326,
5198,
1300,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2078,
2945,
27891,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xB6460F9748Eb5A48c79cCC8ad48E0ea349A56336/sources/SushiToken.sol | @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). | {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
| 5,111,111 | [
1,
2729,
1375,
67,
8949,
68,
1147,
358,
1375,
67,
869,
8338,
6753,
1338,
506,
2566,
635,
326,
3410,
261,
7786,
39,
580,
74,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
389,
81,
474,
24899,
869,
16,
389,
8949,
1769,
203,
3639,
389,
8501,
15608,
815,
12,
2867,
12,
20,
3631,
389,
3771,
1332,
815,
63,
67,
869,
6487,
389,
8949,
1769,
203,
565,
289,
203,
203,
203,
2,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
contract NFTMOD is ... | require(auctions[currentAuctionID].endTime<block.timestamp,"Auction is still ongoing"); | function withdrawNFT(uint tokenID) public{
uint currentAuctionID=currentTokenAuctionMapping[tokenID];
if(auctions[currentAuctionID].highestBidder==msg.sender){
_transfer(owner(), msg.sender, auctions[currentAuctionID].tokenID);
emit BidTokenClaimed(
c... | 12,723,950 | [
1,
6528,
12,
69,
4062,
87,
63,
2972,
37,
4062,
734,
8009,
409,
950,
32,
2629,
18,
5508,
10837,
37,
4062,
353,
4859,
30542,
8863,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
50,
4464,
12,
11890,
1147,
734,
13,
1071,
95,
203,
3639,
203,
3639,
2254,
783,
37,
4062,
734,
33,
2972,
1345,
37,
4062,
3233,
63,
2316,
734,
15533,
203,
203,
3639,
309,
12,
69,
4062,
87,
63,
2972,
37,
406... |
./partial_match/3/0x0Ec000775A41113E822AC30AC46979B8F2911cE0/sources/CrosschainLoans.sol | * @notice Accept borrower's repayment of principal @param _loanId The ID of the loan @param _secretB1 Lender's secret B1/ | {
require(
sha256(abi.encodePacked(_secretB1)) ==
loans[_loanId].secretHashB1 ||
sha256(abi.encodePacked(_secretB1)) ==
loans[_loanId].secretHashAutoB1,
"CrosschainLoans/invalid-secret-B1"
);
require(
now <= ... | 5,337,802 | [
1,
5933,
29759,
264,
1807,
2071,
2955,
434,
8897,
225,
389,
383,
304,
548,
1021,
1599,
434,
326,
28183,
225,
389,
5875,
38,
21,
511,
2345,
1807,
4001,
605,
21,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
2583,
12,
203,
5411,
6056,
5034,
12,
21457,
18,
3015,
4420,
329,
24899,
5875,
38,
21,
3719,
422,
203,
7734,
437,
634,
63,
67,
383,
304,
548,
8009,
5875,
2310,
38,
21,
747,
203,
7734,
6056,
5034,
12,
21457,
... |
./full_match/83/0x2Bbf3CF2125d1F876004d081C342DFA1D599C3b2/sources/contracts/FlashLoan.sol | amount and swap fee | amountIn = (amountIn * 10000) / (10000 - getFee(10000, st));
| 9,563,630 | [
1,
8949,
471,
7720,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3844,
382,
273,
261,
8949,
382,
380,
12619,
13,
342,
261,
23899,
300,
2812,
1340,
12,
23899,
16,
384,
10019,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
This is the contract for Smart City Coin Test Net(SCCTN)
Smart City Coin Test Net(SCCTN) is utility token designed to be used as prepayment and payment in Smart City Shop.
Smart City Coin Test Net(SCCTN) is utility token designed also to be proof of membership in Smart City Club.
Token implements ERC 20 T... | param _owner The address from which the balance will be retrieved return The balance | function balanceOf(address) public payable returns (uint256) {}
| 5,473,544 | [
1,
891,
389,
8443,
1021,
1758,
628,
1492,
326,
11013,
903,
506,
10295,
327,
1021,
11013,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11013,
951,
12,
2867,
13,
1071,
8843,
429,
1135,
261,
11890,
5034,
13,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
// Degen'$ Farm: Collectible NFT game (https://degens.farm)
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
import "OpenZeppelin/openzeppelin-contracts@3.4.0/contracts/token/ERC20/IERC20.sol";
import "OpenZeppelin/openzeppelin-contracts@3.4.0/contracts/token/ERC1155/IERC1155.s... | limit bonus to 100%
| allBonus = 100; | 894,864 | [
1,
3595,
324,
22889,
358,
2130,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
777,
38,
22889,
273,
2130,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x081231339BcC4061e4511d73f1697C021B461aC2/sources/contracts/eslsd/esLSD.sol | * @dev Vest $LSD tokens from $esLSD tokens @param amount Amount of $esLSD to vest/ Case 1: No ongoing vesting Case 2: Ongoing vesting Case 2.1: Ongoing vesting, all vested Case 2.2: Ongoing vesting, partial vested | function vest(uint256 amount) external nonReentrant {
require(amount > 0, "Amount must be greater than 0");
require(amount <= balanceOf(_msgSender()), "Vest amount exceeds balance");
_transfer(_msgSender(), address(this), amount);
VestingInfo storage vestingInfo = userVestings[msg.sender];
uint2... | 8,406,418 | [
1,
58,
395,
271,
3045,
40,
2430,
628,
271,
281,
3045,
40,
2430,
225,
3844,
16811,
434,
271,
281,
3045,
40,
358,
331,
395,
19,
12605,
404,
30,
2631,
30542,
331,
10100,
12605,
576,
30,
2755,
8162,
331,
10100,
12605,
576,
18,
21,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
331,
395,
12,
11890,
5034,
3844,
13,
3903,
1661,
426,
8230,
970,
288,
203,
565,
2583,
12,
8949,
405,
374,
16,
315,
6275,
1297,
506,
6802,
2353,
374,
8863,
203,
565,
2583,
12,
8949,
1648,
11013,
951,
24899,
3576,
12021,
... |
./partial_match/1/0xc2c906149E68e0449321737912a5c85DF103A0fa/sources/DfFinanceCloseCompound.sol | in usd – max more 1.2 mln USD for 1 eth
| uint80 entryEthPrice; | 16,049,633 | [
1,
267,
584,
72,
225,
163,
227,
246,
943,
1898,
404,
18,
22,
312,
2370,
587,
9903,
364,
404,
13750,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
2254,
3672,
1241,
41,
451,
5147,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.13;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint25... | * @dev Fetches early purchases data/ | function getEarlyPurchase(uint256 earlyPurchaseIndex)
internal
constant
onlyEarlyPurchasesLoaded
returns (StarbaseEarlyPurchase.EarlyPurchase)
{
var (purchaser, amount, purchasedAt) =
starbaseEarlyPurchase.earlyPurchases(earlyPurchaseIndex);
return Sta... | 12,901,631 | [
1,
14288,
11646,
5405,
343,
3304,
501,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4774,
20279,
23164,
12,
11890,
5034,
11646,
23164,
1016,
13,
203,
3639,
2713,
203,
3639,
5381,
203,
3639,
1338,
41,
20279,
10262,
343,
3304,
8835,
203,
3639,
1135,
261,
18379,
1969,
41,
20279,
23164,
18,
41,
20279,
23164,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-11
*/
// SPDX-License-Identifier: MIT
// File: FunkyOstriches.sol
pragma solidity ^0.8.7;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract in... | Standard mint function | function mint(uint256 _amount) public payable {
uint256 supply = totalSupply();
require( saleIsActive, "Sale isn't active" );
require( _amount > 0 && _amount < 16, "Can only mint between 1 and 15 tokens at once" );
require( (supply + _amount) <= (MAX_SUPPLY - ... | 14,980,788 | [
1,
8336,
312,
474,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
389,
8949,
13,
1071,
8843,
429,
288,
203,
3639,
2254,
5034,
14467,
273,
2078,
3088,
1283,
5621,
203,
3639,
2583,
12,
272,
5349,
2520,
3896,
16,
5397,
315,
30746,
5177,
1404,
2695,
6,
11272,
20... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
interface ERC20 {
function totalSupply() external view returns (uint256 supply);
function balanceOf(address _owner) external view returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
func... | first is empty to keep the legacy order in place | contract SaverExchangeCore is SaverExchangeHelper, DSMath {
enum ExchangeType { _, OASIS, KYBER, UNISWAP, ZEROX }
enum ActionType { SELL, BUY }
struct ExchangeData {
address srcAddr;
address destAddr;
uint srcAmount;
uint destAmount;
uint minPrice;
address ... | 14,442,724 | [
1,
3645,
353,
1008,
358,
3455,
326,
8866,
1353,
316,
3166,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
348,
21851,
11688,
4670,
353,
348,
21851,
11688,
2276,
16,
463,
7303,
421,
288,
203,
203,
203,
203,
565,
2792,
18903,
559,
288,
389,
16,
531,
37,
15664,
16,
1475,
61,
6271,
16,
5019,
5127,
59,
2203,
16,
18449,
60,
289,
2... |
./partial_match/3/0xe1A09c422724371FFd84Ac3cA53A77eE7117fb06/sources/RigelGift.sol | Mapping of the ProjectReward and its information | mapping(uint256 => RewardProject) public rewardProjMapping;
| 5,052,852 | [
1,
3233,
434,
326,
5420,
17631,
1060,
471,
2097,
1779,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
534,
359,
1060,
4109,
13,
1071,
19890,
626,
78,
3233,
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,
... |
./full_match/42220/0xae79cd37ac9b2f7bb5272C098c787Ae4A0c17df5/sources/contracts/microcredit/interfaces/IMicrocredit.sol | address managerAddress; | struct LoanOld {
uint256 amountBorrowed;
uint256 dailyInterest;
uint256 claimDeadline;
uint256 lastComputedDebt;
uint256 amountRepayed;
Repayment[] repayments;
uint256 lastComputedDate;
}
| 16,319,685 | [
1,
2867,
3301,
1887,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
3176,
304,
7617,
288,
203,
3639,
2254,
5034,
3844,
38,
15318,
329,
31,
203,
3639,
2254,
5034,
18872,
29281,
31,
203,
3639,
2254,
5034,
7516,
15839,
31,
203,
3639,
2254,
5034,
1142,
17934,
758,
23602,
31,
203,
3639,
2254,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
import "../DS/DSMath.sol";
import "../interfaces/mcd/IManager.sol";
import "../interfaces/mcd/ISpotter.sol";
import "../interfaces/mcd/IVat.sol";
/// @title Getter contract for Vault info from Maker protocol
contract McdView is DSMath {
address public cons... | @notice Gets Vaults ratio @param _vaultId Id of the Vault | function getRatio(uint _vaultId) public view returns (uint) {
bytes32 ilk = manager.ilks(_vaultId);
uint price = getPrice(ilk);
(uint collateral, uint debt) = getVaultInfo(_vaultId, ilk);
if (debt == 0) return 0;
return rdiv(wmul(collateral, price), debt) / (10 ** 18);
... | 6,410,928 | [
1,
3002,
17329,
87,
7169,
225,
389,
26983,
548,
3124,
434,
326,
17329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4170,
4197,
12,
11890,
389,
26983,
548,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
1731,
1578,
14254,
79,
273,
3301,
18,
330,
7904,
24899,
26983,
548,
1769,
203,
3639,
2254,
6205,
273,
25930,
12,
330,
79,
176... |
pragma solidity 0.5.1;
/**
* @dev Base contract for teams
*/
contract CryptoTeam {
using SafeMath for uint256;
//Developers fund
address payable public teamAddressOne ; //inject UNINIT LOCAL/STATE VAR
address payable public teamAddressTwo ; //inject UNINIT LOCAL/STATE VAR
address payable public... | inject UNINIT LOCAL/STATE VAR
| string public symbol ; | 1,070,606 | [
1,
22170,
5019,
12919,
15234,
19,
7998,
8350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
533,
1071,
3273,
274,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xB8B5B7546CaEBF645BDF2331677886E88028a635/sources/MirrorInviteToken.sol | * @notice Helper to register subdomain without having to call approve. Calls register on the registrar contract. @param label The subdomain to register @param owner The owner to set/ | function register(string calldata label, address owner) external {
_register(label, owner);
}
| 16,619,116 | [
1,
2276,
358,
1744,
16242,
2887,
7999,
358,
745,
6617,
537,
18,
23665,
1744,
603,
326,
17450,
297,
6835,
18,
225,
1433,
1021,
16242,
358,
1744,
225,
3410,
1021,
3410,
358,
444,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1744,
12,
1080,
745,
892,
1433,
16,
1758,
3410,
13,
3903,
288,
203,
565,
389,
4861,
12,
1925,
16,
3410,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
/* Interface to allow Deafbeef owners to change token parameters all at once.
Owners can also give editing access to up to 3 other users.
Signature can authenticate them on the deafbeef.com DAPP, to allow these
editors to perform off-chain previews of parameter changes wit... | sets many parameters at once. Must be an editor with allowCommit access | function setParams(uint256 tokenID, uint[] memory i, uint32[] memory v) public requireCommiter(tokenID) virtual {
require(v.length == i.length);
for (uint j=0;j<v.length;j++) {
deafbeef.setTokenParam(tokenID,i[j],v[j]);
}
}
| 13,619,781 | [
1,
4424,
4906,
1472,
622,
3647,
18,
6753,
506,
392,
4858,
598,
1699,
5580,
2006,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
31705,
12,
11890,
5034,
1147,
734,
16,
2254,
8526,
3778,
277,
16,
2254,
1578,
8526,
3778,
331,
13,
1071,
2583,
5580,
264,
12,
2316,
734,
13,
5024,
288,
203,
565,
2583,
12,
90,
18,
2469,
422,
277,
18,
2469,
1769,
203,
... |
/**
* SPDX-License-Identifier: MIT
* @authors: @ferittuncer
* @reviewers: [@shalzz*, @jaybuidl]
* @auditors: []
* @bounties: []
* @deployments: []
*/
pragma solidity ^0.8.10;
import "@kleros/dispute-resolver-interface-contract/contracts/IDisputeResolver.sol";
import "./IProveMeWrong.sol";
/*
·-----------------... | Overflows in year 2106.
| uint32 withdrawalPermittedAt; | 12,964,484 | [
1,
15526,
87,
316,
3286,
576,
22135,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1578,
598,
9446,
287,
31465,
861,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/4/0xE0a9c5066061063F34A0B23d279f1ef4e5799F56/sources/NFTYMarket.sol | * @dev Creates a new order @param nftAddress - Non fungible registry address @param assetId - ID of the published NFT @param priceInWei - Price in Wei for the supported coin @param expiresAt - Duration of the order (in hours)/ | function createOrder_(
address nftAddress,
uint256 assetId,
uint256 priceInWei,
uint256 expiresAt
)
public payable
whenNotPaused
{
_createOrder(
nftAddress,
assetId,
priceInWei,
expiresAt
);
}... | 8,619,580 | [
1,
2729,
279,
394,
1353,
225,
290,
1222,
1887,
300,
3858,
9831,
75,
1523,
4023,
1758,
225,
3310,
548,
300,
1599,
434,
326,
9487,
423,
4464,
225,
6205,
382,
3218,
77,
300,
20137,
316,
1660,
77,
364,
326,
3260,
13170,
225,
7368,
861,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
752,
2448,
67,
12,
203,
3639,
1758,
290,
1222,
1887,
16,
203,
3639,
2254,
5034,
3310,
548,
16,
203,
3639,
2254,
5034,
6205,
382,
3218,
77,
16,
203,
3639,
2254,
5034,
7368,
861,
203,
565,
262,
203,
3639,
1071,
8843,
42... |