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 |
|---|---|---|---|---|---|---|
// View Vs Pure
pragma solidity ^0.8.0;
contract local
{
uint age=10;
// Pure is used when read or write both is not allowed
// View is used when read is allowed but write is not allowed
function getAge() view public returns(uint)
{
return age;
}
} | Pure is used when read or write both is not allowed View is used when read is allowed but write is not allowed | {
uint age=10;
function getAge() view public returns(uint)
{
return age;
}
} | 12,786,067 | [
1,
4625,
348,
7953,
560,
30,
225,
16616,
353,
1399,
1347,
855,
578,
1045,
3937,
353,
486,
2935,
4441,
353,
1399,
1347,
855,
353,
2935,
1496,
1045,
353,
486,
2935,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
95,
203,
565,
2254,
9388,
33,
2163,
31,
203,
565,
445,
4506,
908,
1435,
1476,
1071,
1135,
12,
11890,
13,
203,
203,
565,
288,
203,
3639,
327,
9388,
31,
203,
565,
289,
203,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-16
*/
/**
https://t.me/AngryETH
**/
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
... | set as marketing wallet
| marketingWallet = address(0xa1c76609CC0837CDdF20f76Fb0Ed44569b1EDD86); | 10,642,897 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
13667,
310,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
6995,
21,
71,
6669,
4848,
29,
6743,
6840,
6418,
10160,
72,
42,
3462,
74,
6669,
42,
70,
20,
2671,
6334,
4313,
29,
70,
21,
2056,
40,
5292,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import './ERC721NonTransferable.sol';
/**
* @title Proof of Residency
* @custom:securit... | increment before minting so count starts at 1
| countryTokenCounts[country] += 1; | 7,326,902 | [
1,
4625,
348,
7953,
560,
30,
225,
5504,
1865,
312,
474,
310,
1427,
1056,
2542,
622,
404,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
5251,
1345,
9211,
63,
9082,
65,
1011,
404,
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,
-10... |
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity 0.8.12;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal... | Reserved for the people who helped build this project | function Giveaways(uint numTokens, address recipient) public onlyOwner {
require((_currentToken + numTokens) <= MAX_TOKENS, "Exceeded supply");
uint index;
for(index = 1; index <= numTokens; index++) {
_currentToken++;
uint theToken = drawIndex();
_safeMint(recipient, theToken);
}
}
| 1,430,358 | [
1,
4625,
348,
7953,
560,
30,
225,
16237,
364,
326,
16951,
10354,
13150,
1845,
1361,
333,
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,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
22374,
69,
3052,
12,
11890,
818,
5157,
16,
1758,
8027,
13,
1071,
1338,
5541,
288,
203,
202,
202,
6528,
12443,
67,
2972,
1345,
397,
818,
5157,
13,
1648,
4552,
67,
8412,
55,
16,
315,
10069,
14467,
8863,
203,
202,
202,
1... |
pragma solidity ^0.4.24;
import "../coffeeaccesscontrol/ConsumerRole.sol";
import "../coffeeaccesscontrol/DistributorRole.sol";
import "../coffeeaccesscontrol/FarmerRole.sol";
import "../coffeeaccesscontrol/RetailerRole.sol";
import "../coffeecore/Ownable.sol";
// Define a contract 'Supplychain'
contract SupplyChain ... | Define a function 'receiveItem' that allows the retailer to mark an item 'Received' Update the appropriate fields - ownerID, retailerID, itemState emit the appropriate event | function receiveItem(uint256 _upc)
public
{
items[_upc].ownerID = msg.sender;
items[_upc].retailerID = msg.sender;
items[_upc].itemState = State.Received;
emit Received(_upc);
}
| 12,877,982 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
279,
445,
296,
18149,
1180,
11,
716,
5360,
326,
325,
671,
264,
358,
2267,
392,
761,
296,
8872,
11,
2315,
326,
5505,
1466,
300,
3410,
734,
16,
325,
671,
264,
734,
16,
761,
1119,
3626,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6798,
1180,
12,
11890,
5034,
389,
416,
71,
13,
203,
3639,
1071,
203,
565,
288,
203,
3639,
1516,
63,
67,
416,
71,
8009,
8443,
734,
273,
1234,
18,
15330,
31,
203,
3639,
1516,
63,
67,
416,
71,
8009,
1349,
671,
264,
734... |
./full_match/97/0x19c4477608e4AA4Eb914DdE727B41066e24928BC/sources/project_/contracts/game/CyberTitansTournament.sol | Num of players betting with LITTs
| uint24 numOfTokenPlayers; | 3,261,526 | [
1,
4625,
348,
7953,
560,
30,
225,
6805,
434,
18115,
2701,
1787,
598,
511,
1285,
17218,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
3247,
23153,
1345,
1749,
3907,
31,
5411,
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,
-10... |
pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns(uint256) {
if(a == 0) { return 0; }
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns(uint256) {
uint256 c = ... | 0.0000001 ETH за 1 токен
| uint public priceTokenWei = 100000000000; | 6,253,638 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
18,
9449,
21,
512,
2455,
225,
145,
120,
145,
113,
404,
225,
146,
229,
145,
127,
145,
123,
145,
118,
145,
126,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
6205,
1345,
3218,
77,
273,
15088,
11706,
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,
... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.11;
import '@openzeppelin/contracts/utils/Base64.sol';
import "./Tiny721.sol";
/**
@title On-chain generative bees.
This contract generates a piece of pseudorandom data upon each token's mint.
This data is then used to generate 100% on-chain an SVG... | / Select a random primary eye color. Select a random secondary eye color. Generate the eyes. Generate the right-handed pattern. Generate the left-handed pattern. | function _generateEyes (
uint256 _id,
Bee memory _bee,
uint256 _eyePatternScheme,
uint256 _eyeSegments
) private view returns (string memory) {
uint256 primaryIndex = _getRandom(_id, 4000) % PRIMARY_EYE_COLORS.length;
_bee.primaryEyeColor = primaryIndex;
Color memory primaryColor = PRIM... | 6,086,732 | [
1,
4625,
348,
7953,
560,
30,
342,
6766,
279,
2744,
3354,
16098,
2036,
18,
6766,
279,
2744,
9946,
16098,
2036,
18,
6654,
326,
12739,
281,
18,
6654,
326,
2145,
17,
76,
5860,
1936,
18,
6654,
326,
2002,
17,
76,
5860,
1936,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
7163,
41,
9707,
261,
203,
565,
2254,
5034,
389,
350,
16,
203,
565,
30830,
3778,
389,
70,
1340,
16,
203,
565,
2254,
5034,
389,
402,
73,
3234,
9321,
16,
203,
565,
2254,
5034,
389,
402,
73,
7946,
203,
225,
262,
32... |
pragma solidity ^0.4.17;
contract SafeMath {
function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
uint256 z = x + y;
assert((z >= x) && (z >= y));
return z;
}
function safeSubtract(uint256 x, uint256 y) internal returns(uint256) {
assert(x >= y);
uint256 z = ... | locks finalize to the ultimate ETH owner
| if (msg.sender != kwhDeployer) throw; | 10,362,151 | [
1,
4625,
348,
7953,
560,
30,
225,
13046,
12409,
358,
326,
225,
406,
4988,
512,
2455,
3410,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1850,
309,
261,
3576,
18,
15330,
480,
417,
3350,
10015,
264,
13,
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,... |
./full_match/43114/0xa0186686f1A201dca8DAd8f3174c5298d3121e7D/sources/contracts/TestAvax.sol | * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but with `errorMessage` as a fallback revert reason when `target` reverts. _Available since v3.1._/ | function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(
address(this).balance >= value,
"Address: insufficient balance for call"
);
return _functionCallWithValue(target, da... | 4,517,016 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17795,
487,
288,
22044,
17,
1887,
17,
915,
26356,
620,
17,
2867,
17,
3890,
17,
11890,
5034,
17,
20294,
68,
915,
26356,
620,
68,
6487,
1496,
598,
1375,
1636,
1079,
68,
487,
279,
5922,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
445,
26356,
620,
12,
2867,
1018,
16,
1731,
3778,
501,
16,
2254,
5034,
460,
16,
533,
3778,
9324,
13,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
2583,
12,
203,
5411,
1758,
12,
2211,
2934,
12296,
1545,
460,
16,
203... |
pragma solidity ^0.5.8;
import "./interfaces/IBondedDeposits.sol";
import "../common/UsingRegistry.sol";
/**
* @title A contract for calling functions on the BondedDeposits contract.
* @dev Any contract calling these functions should guard against reentrancy.
*/
contract UsingBondedDeposits is UsingRegistry {
... | * @notice Returns the account associated with the provided account or voting delegate. @param accountOrDelegate The address of the account or voting delegate. @dev Fails if the `accountOrDelegate` is a non-voting delegate. @return The associated account./ | function getAccountFromVoter(address accountOrDelegate) internal view returns (address) {
return getBondedDeposits().getAccountFromVoter(accountOrDelegate);
}
| 2,530,942 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
2236,
3627,
598,
326,
2112,
2236,
578,
331,
17128,
7152,
18,
632,
891,
2236,
1162,
9586,
1021,
1758,
434,
326,
2236,
578,
331,
17128,
7152,
18,
632,
5206,
8911,
87,
309,
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,
225,
445,
23393,
1265,
58,
20005,
12,
2867,
2236,
1162,
9586,
13,
2713,
1476,
1135,
261,
2867,
13,
288,
203,
565,
327,
2882,
265,
785,
758,
917,
1282,
7675,
588,
3032,
1265,
58,
20005,
12,
4631,
1162,
9586,
1769,
203,
225,
289,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;
import { Address } from "Address.sol";
import "ERC20.sol";
import "ECDSA.sol";
import "SafeERC20.sol";
import "Pausable.sol";
import "ReentrancyGuard.sol";
import "AccessControl.sol";
import "Supervisor.sol";
import "IAggregator.sol";
import "IYPoolVault.s... | All swap requests initiated by users | SwapRequest[] public swapRequests;
| 12,700,711 | [
1,
4625,
348,
7953,
560,
30,
225,
4826,
7720,
3285,
27183,
635,
3677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12738,
691,
8526,
1071,
7720,
6421,
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/42161/0x34942AF427dAD618c6b1dBcFaa22c7163c9E3485/sources/MintableOFTUpgradeable.sol | * @dev This empty reserved space is put in place to allow future versions to add new variables without shifting down storage in the inheritance chain./ override decimal() function is needed | contract OFTUpgradeable is Initializable, OFTCoreUpgradeable, ERC20Upgradeable, IOFTUpgradeable {
function _debitFrom(address _from, uint16 _dstChainId, bytes memory _toAddress, uint _amount) internal virtual returns (uint);
function _creditTo(uint16 _srcChainId, address _toAddress, uint _amount) internal virt... | 3,493,705 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
1008,
8735,
3476,
353,
1378,
316,
3166,
358,
1699,
3563,
5244,
358,
527,
394,
3152,
2887,
699,
430,
1787,
2588,
2502,
316,
326,
16334,
2687,
18,
19,
3849,
6970,
1435,
445,
353,
3577... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
531,
4464,
10784,
429,
353,
10188,
6934,
16,
531,
4464,
4670,
10784,
429,
16,
4232,
39,
3462,
10784,
429,
16,
1665,
4464,
10784,
429,
288,
203,
565,
445,
389,
323,
3682,
1265,
12,
2867,
389,
2080,
16,
2254,
2313,
389,
1105... |
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.10;
import {Hevm} from "./Hevm.sol";
import {DSTestPlus} from "solmate/test/utils/DSTestPlus.sol";
import {Workstreams} from "../../Workstreams.sol";
import {MockERC20} from "solmate/test/utils/mocks/MockERC20.sol";
import {IDripsHub} from "../../IDripsHub.sol... | create a mock erc20 token | function setUp() public {
usdc = new MockERC20("USDC", "USDC", 18);
user = new User();
usdc.mint(address(user), 100 * 10e18);
assertEq(100 * 10e18, usdc.balanceOf(address(user)));
users = new address[](1);
}
| 12,627,547 | [
1,
4625,
348,
7953,
560,
30,
225,
752,
279,
5416,
6445,
71,
3462,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24292,
1435,
1071,
288,
203,
3639,
584,
7201,
273,
394,
7867,
654,
39,
3462,
2932,
3378,
5528,
3113,
315,
3378,
5528,
3113,
6549,
1769,
203,
3639,
729,
273,
394,
2177,
5621,
203,
3639,
584,
7201,
18,
81,
474,
12,
2867,
... |
./full_match/5/0xDfD0dB99bcb3e54e5c61Ffab177C54F4a4C81Efb/sources/project_/contracts/base/MetawinPresale.sol | * @notice Purchase function. Writes the purchase state on storage and emits a Purchased event./ | function purchase() external payable virtual {
require(block.timestamp < purchaseDeadline, "Sale closed");
require(!_purchased[msg.sender], "Already purchased");
require(available > 0, "Sold out");
require(msg.value == _price, "Price paid incorrect");
--available;
_pu... | 7,064,439 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26552,
445,
18,
30053,
326,
23701,
919,
603,
2502,
471,
24169,
279,
14466,
343,
8905,
871,
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,
565,
445,
23701,
1435,
3903,
8843,
429,
5024,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
411,
23701,
15839,
16,
315,
30746,
4375,
8863,
203,
3639,
2583,
12,
5,
67,
12688,
343,
8905,
63,
3576,
18,
15330,
6487,
315,
9430,
5405,
343,... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.6.0;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
contract FindLocation is ChainlinkClient {
uint256 public latitude;
address private oracle;
bytes32 private jobId;
uint256 private fee;
/**
* Network: Kovan
... | * Create a Chainlink request to retrieve API response, find the target data, then multiply by 1000000000000000000 (to remove decimal places from data)./ Set the URL to perform the GET request on Sends the request | function requestLatitudeData() public returns (bytes32 requestId)
{
Chainlink.Request memory request = buildChainlinkRequest(jobId, address(this), this.fulfill.selector);
request.add("path", "Location.long");
return sendChainlinkRequestTo(oracle, request, fee);
}
... | 1,057,358 | [
1,
4625,
348,
7953,
560,
30,
380,
1788,
279,
7824,
1232,
590,
358,
4614,
1491,
766,
16,
1104,
326,
1018,
501,
16,
1508,
10194,
635,
2130,
12648,
12648,
261,
869,
1206,
6970,
12576,
628,
501,
2934,
19,
1000,
326,
1976,
358,
3073,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
590,
16890,
751,
1435,
1071,
1135,
261,
3890,
1578,
14459,
13,
7010,
565,
288,
203,
3639,
7824,
1232,
18,
691,
3778,
590,
273,
1361,
3893,
1232,
691,
12,
4688,
548,
16,
1758,
12,
2211,
3631,
333,
18,
2706,
5935,
18,
9... |
./partial_match/1/0x744F6D13f00C8437c5FC6975c0B23dDCD80bcb75/sources/P2P.sol | Token Amount to be sent
| uint256 SendingAmount; | 4,068,426 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
16811,
358,
506,
3271,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2479,
310,
6275,
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,
... |
./partial_match/1/0xE6b160531a5c3f70341CE4DF058bBdcb40b95554/sources/@openzeppelin/contracts/token/ERC721/ERC721.sol | * @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to,... | 4,142,566 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
225,
2970,
1061,
7423,
358,
288,
13866,
1265,
5779,
333,
709,
10522,
1158,
17499,
603,
1234,
18,
15330,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
654,
39,
27,
5340,
18,
8443,
951,
12,
2316,
548,
13,
422,
62... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;
contract Socialscoop{
string public name = "Socialscoop";
//Store photos
uint public imageCount = 0;
mapping(uint => Image) public images;
//Defining an Image structure
struct Image{
uint id;
string hash;
string descripti... | Make sure the id is validFirst we will fetch the imageFetch the author to pay them Increment the tip amount Update the image as value of tip amount was changed Trigger an event | function tipImageOwner(uint _id) public payable{
require(_id > 0 && _id <= imageCount);
Image memory _image = images[_id];
address payable _author = _image.author;
address(_author).transfer(msg.value);
_image.tipamount = _image.tipamount + msg.value;
images[_id] = _image;
... | 6,442,017 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
3071,
326,
612,
353,
923,
3759,
732,
903,
2158,
326,
1316,
5005,
326,
2869,
358,
8843,
2182,
17883,
326,
9529,
3844,
2315,
326,
1316,
487,
460,
434,
9529,
3844,
1703,
3550,
11321,
392,
871,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
9529,
2040,
5541,
12,
11890,
389,
350,
13,
1071,
8843,
429,
95,
203,
4202,
203,
4202,
2583,
24899,
350,
405,
374,
597,
389,
350,
1648,
1316,
1380,
1769,
203,
203,
1377,
3421,
3778,
389,
2730,
273,
4602,
63,
67,
350,
1... |
./full_match/4/0x37Dd58931055Ec0548dFF80368ed66fC7d6B876C/sources/localhost/PixelBlocks/contract/PixelBlocksToken.sol | initialize contract/ | constructor(uint16 _amount) public ERC721("PixelBlocks.xyz", "PXL") {
blockAmount = _amount;
creator = msg.sender;
counter = 0;
price = 0.001 ether;
}
| 13,368,749 | [
1,
4625,
348,
7953,
560,
30,
225,
4046,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
11890,
2313,
389,
8949,
13,
1071,
4232,
39,
27,
5340,
2932,
9037,
6450,
18,
17177,
3113,
315,
52,
23668,
7923,
288,
203,
3639,
1203,
6275,
273,
389,
8949,
31,
203,
3639,
11784,
273,
1234,
18,
15330,
31,
203,
3639,
... |
./full_match/1/0x60BC206FA39D70AE7ACFe50ef021D1A7dD80c010/sources/contracts/Market.sol | Reward pool size in ETH | uint256 public rewardCollected;
| 2,963,862 | [
1,
4625,
348,
7953,
560,
30,
225,
534,
359,
1060,
2845,
963,
316,
512,
2455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
19890,
10808,
329,
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/80001/0xD37583FC57dA40A5fA8d33Ce9ab13C430E39DBBA/sources/ERC721CollectionV2.sol | * @notice Add items to the collection @dev Used only at initialize @param _items - items to add/ | function _initializeItems(Item[] memory _items) internal {
for (uint256 i = 0; i < _items.length; i++) {
_addItem(_items[i]);
}
}
| 8,819,523 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1436,
1516,
358,
326,
1849,
632,
5206,
10286,
1338,
622,
4046,
632,
891,
389,
3319,
300,
1516,
358,
527,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11160,
3126,
12,
1180,
8526,
3778,
389,
3319,
13,
2713,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
3319,
18,
2469,
31,
277,
27245,
288,
203,
5411,
389,
1289,
1180,
24899,
3319,
63,
7... |
// File: contracts/interfaces/IWeth.sol
pragma solidity ^0.6.10;
interface IWeth {
function deposit() external payable;
function withdraw(uint) external;
function approve(address, uint) external returns (bool) ;
function transfer(address, uint) external returns (bool);
function transferFrom(addre... | @dev Sell fyDai for Dai @param to Wallet receiving the dai being bought @param fyDaiIn Amount of fyDai being sold @param minDaiOut Minimum amount of dai being bought | {
onlyKnownPool(pool);
uint256 daiOut = pool.sellFYDai(msg.sender, to, fyDaiIn);
require(
daiOut >= minDaiOut,
"YieldProxy: Limit not reached"
);
return daiOut;
}
| 2,147,644 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
348,
1165,
28356,
40,
10658,
364,
463,
10658,
632,
891,
358,
20126,
15847,
326,
5248,
77,
3832,
800,
9540,
632,
891,
28356,
40,
10658,
382,
16811,
434,
28356,
40,
10658,
3832,
272,
1673,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
1338,
11925,
2864,
12,
6011,
1769,
203,
3639,
2254,
5034,
5248,
77,
1182,
273,
2845,
18,
87,
1165,
42,
61,
40,
10658,
12,
3576,
18,
15330,
16,
358,
16,
28356,
40,
10658,
382,
1769,
203,
3639,
2583,
12,
203,... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
contract ExchangeFromEthereum is IERC721Receiver, ReentrancyGuard {
//NftTokenInfo[] allNFT;
address... | address nftAddress = deposits[msg.sender][index].tokenAddress;uint256 nftId = deposits[msg.sender][index].id;require(nftAddress != address(0)); | require(!deposits[msg.sender][index].locked, "Unable to withdraw. Deposit all BEP20 tokens on the contract in Binance Smaert Chain");
| 14,415,577 | [
1,
4625,
348,
7953,
560,
30,
1758,
290,
1222,
1887,
273,
443,
917,
1282,
63,
3576,
18,
15330,
6362,
1615,
8009,
2316,
1887,
31,
11890,
5034,
290,
1222,
548,
273,
443,
917,
1282,
63,
3576,
18,
15330,
6362,
1615,
8009,
350,
31,
6528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
2583,
12,
5,
323,
917,
1282,
63,
3576,
18,
15330,
6362,
1615,
8009,
15091,
16,
315,
3370,
358,
598,
9446,
18,
4019,
538,
305,
777,
9722,
52,
3462,
2430,
603,
326,
6835,
316,
16827,
1359,
348,
2540,
1051,
7824,
8863,
203,
... |
pragma solidity ^0.5.0;
import "./Ownable.sol";
/// @title SecurityRestriction this contract is built to support child contracts. The child contract can utilize circuit breaker pattern and ownable pattern.
/// @author Farhan Hameed Khan (farhankhan@blockchainsfalcon.com)
/// @notice The contract is inherited from a S... | this modifer will allow the function to work only if there is an emergency situation | modifier emergency_only() {
if(stopped) _;
}
| 14,079,698 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
681,
21549,
903,
1699,
326,
445,
358,
1440,
1338,
309,
1915,
353,
392,
801,
24530,
20886,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
801,
24530,
67,
3700,
1435,
288,
203,
3639,
309,
12,
24228,
13,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x34E5E2E571ea4C54A2106C7D8f4DF9A6366ef5d4/sources/contracts/PoolStakingRewards/PoolStakingRewards5.sol | call the staking smart contract to init the epoch | function _initEpoch(uint128 epochId) internal {
require(lastInitializedEpoch.add(1) == epochId, "PoolStakingRewards: Epoch can be init only in order");
lastInitializedEpoch = epochId;
epochs[epochId] = _getPoolSize(epochId);
}
| 4,481,801 | [
1,
4625,
348,
7953,
560,
30,
225,
745,
326,
384,
6159,
13706,
6835,
358,
1208,
326,
7632,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2738,
14638,
12,
11890,
10392,
7632,
548,
13,
2713,
288,
203,
3639,
2583,
12,
2722,
11459,
14638,
18,
1289,
12,
21,
13,
422,
7632,
548,
16,
315,
2864,
510,
6159,
17631,
14727,
30,
512,
6127,
848,
506,
1208,
1338,
... |
./full_match/137/0xe500D18e299818E810668A01BF7AbeD8D323d6B7/sources/project_/contracts/ERC721Capped.sol | * Check maximum supply when minting. See {ERC721-_mint}./ | function _mint(
address to_,
uint256 tokenId_
) internal virtual override {
require(tokenId_ <= maxSupply, "ERC721Capped: maximum supply reached");
super._mint(to_, tokenId_);
}
| 3,754,231 | [
1,
4625,
348,
7953,
560,
30,
380,
2073,
4207,
14467,
1347,
312,
474,
310,
18,
2164,
288,
654,
39,
27,
5340,
17,
67,
81,
474,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
203,
3639,
1758,
358,
67,
16,
203,
3639,
2254,
5034,
1147,
548,
67,
203,
565,
262,
2713,
5024,
3849,
288,
203,
3639,
2583,
12,
2316,
548,
67,
1648,
943,
3088,
1283,
16,
315,
654,
39,
27,
5340,
4664... |
./full_match/4/0x6BE60E29FBb7559A5aF18D1e8F840767dd315359/sources/tellorlegacy/contracts/oldContracts/libraries/OldTellorStorage.sol | mapping of apiID to details
| mapping(uint => Request) requestDetails; | 817,684 | [
1,
4625,
348,
7953,
560,
30,
2874,
434,
1536,
734,
358,
3189,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2874,
12,
11890,
516,
1567,
13,
590,
3790,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/100/0x022C2009D21A4317f8cf1AEf498e0738183BAD2b/sources/contracts/MyTimeLock.sol | Make sure the bad actor wallet being voted for is found in the list of founder wallets.loop through and see if this wallet is in our walletAddresses list | bool badActorWalletFound = false;
| 14,290,444 | [
1,
4625,
348,
7953,
560,
30,
4344,
3071,
326,
5570,
8327,
9230,
3832,
331,
16474,
364,
353,
1392,
316,
326,
666,
434,
284,
465,
765,
17662,
2413,
18,
6498,
3059,
471,
2621,
309,
333,
9230,
353,
316,
3134,
9230,
7148,
666,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1426,
5570,
17876,
16936,
2043,
273,
629,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.7;
////////////////////////////////////////////////////////////////////////////////
library SafeMath // This library is not used systematically since it tends to create "Infinite gas" functions and consumes too many gas
{
//------------------
function mul(uin... | -------------------------------------------------------------------------- | function banVoter(address voter) public onlyAdmin returns(uint256)
{
emit OnVoterBannished(voter);
}
| 7,318,540 | [
1,
4625,
348,
7953,
560,
30,
19950,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
25732,
58,
20005,
12,
2867,
331,
20005,
13,
1071,
1338,
4446,
225,
1135,
12,
11890,
5034,
13,
203,
565,
288,
203,
203,
3639,
3626,
2755,
58,
20005,
38,
1072,
5992,
12,
90,
20005,
1769,
203,
565,
289,
203,
2,
-100... |
./full_match/137/0xb453Ee1e040A71e48217Bd7fB680F860f5cD68E2/sources/contracts/UniswapHelper.sol | check if token is already defined | function addToken(address _tokenAddress, address _aggregatorAddress) external onlyOwner {
require(!definedTokens[_tokenAddress], "CLAMP-V2: TOKEN ADDRESS EXISTS");
}
| 3,737,227 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
309,
1147,
353,
1818,
2553,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
1345,
12,
2867,
389,
2316,
1887,
16,
1758,
389,
10751,
639,
1887,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
2178,
5157,
63,
67,
2316,
1887,
6487,
315,
5017,
8900,
17,
58,
22,
30,
14275,
11689,
10203,
204... |
./full_match/4/0xDc0E7A342f2F0b7793c6E54189A6fB9A94b92A0e/sources/contracts/HEC.sol | require (mstone[msNumber].responsibleFor == msg.sender, 'You are not the creator of this Milestone'); | require (paymentType == true, 'This is not a milestone payment type. Need invoices!');
| 12,318,327 | [
1,
4625,
348,
7953,
560,
30,
2583,
261,
81,
13925,
63,
959,
1854,
8009,
455,
500,
2736,
1290,
422,
1234,
18,
15330,
16,
296,
6225,
854,
486,
326,
11784,
434,
333,
490,
18270,
8284,
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,
1,
0,
0,
0,
0,
0,
0,
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,
261,
9261,
559,
422,
638,
16,
296,
2503,
353,
486,
279,
28664,
5184,
618,
18,
12324,
2198,
17725,
5124,
1769,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.25;
// ----------------------------------------------------------------------------
// GazeCoin FxxxLandRush Bonus List
//
// Deployed to: 0x57D2F4B8F55A26DfE8Aba3c9f1c73CADbBc55C46
//
// Enjoy.
//
// (c) BokkyPooBah / Bok Consulting Pty Ltd for GazeCoin 2018. The MIT Licence.
// -----------------... | ---------------------------------------------------------------------------- Bonus List - on list or not ---------------------------------------------------------------------------- | contract BonusList is BonusListInterface, Operated {
mapping(address => bool) public bonusList;
event AccountListed(address indexed account, bool status);
constructor() public {
initOperated(msg.sender);
}
function isInBonusList(address account) public view returns (bool) {
return... | 2,061,283 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
605,
22889,
987,
300,
603,
666,
578,
486,
8879,
13849,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
605,
22889,
682,
353,
605,
22889,
682,
1358,
16,
7692,
690,
288,
203,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
324,
22889,
682,
31,
203,
203,
565,
871,
6590,
682,
329,
12,
2867,
8808,
2236,
16,
1426,
1267,
1769,
203,
20... |
pragma solidity ^0.5.0;
contract BuilderShop {
address[] builderInstances;
uint contractId = 0;
// nifty registry is hard coded
address niftyRegistryContract = 0x6e53130dDfF21E3BC963Ee902005223b9A202106;
modifier onlyValidSender() {
NiftyRegistry nftg_registry = NiftyRegistry(niftyRegistryContr... | * @dev Returns the addition of two unsigned integers, reverting on overflow. Counterpart to Solidity's `+` operator. Requirements: - Addition cannot overflow./ | function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| 502,847 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
2719,
434,
2795,
9088,
12321,
16,
15226,
310,
603,
9391,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
1375,
15,
68,
3726,
18,
29076,
30,
300,
1436,
608,
2780,
9391,
18,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
282,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
4202,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
4202,
2583,
12,
71,
1545,
279,
16,
315,
9890,
10477,
30,
2719,... |
/*
Copyright 2019 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... | Mapping from Asset Proxy Id's to their respective Asset Proxy | {
using LibBytes for bytes;
mapping (bytes4 => address) internal _assetProxies;
function registerAssetProxy(address assetProxy)
external
onlyOwner
}
{
bytes4 assetProxyId = IAssetProxy(assetProxy).getProxyId();
address currentAssetProxy = _assetProxies[assetProxyId];
... | 1,007,290 | [
1,
4625,
348,
7953,
560,
30,
225,
9408,
628,
10494,
7659,
3124,
1807,
358,
3675,
17613,
10494,
7659,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
95,
203,
565,
1450,
10560,
2160,
364,
1731,
31,
203,
203,
565,
2874,
261,
3890,
24,
516,
1758,
13,
2713,
389,
9406,
21488,
31,
203,
203,
565,
445,
1744,
6672,
3886,
12,
2867,
3310,
3886,
13,
203,
3639,
3903,
203,
3639,
1338,
55... |
/**
*Submitted for verification at Etherscan.io on 2021-03-11
*/
// File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. T... | used for investing collateral | function moveCollateral(address collateral, address location, uint256 amount) external onlyOwner {
require(acceptedCollateral[collateral], "invalid collateral");
SafeERC20.safeTransfer(IERC20(collateral), location, amount);
}
| 2,400,942 | [
1,
4625,
348,
7953,
560,
30,
225,
1399,
364,
2198,
10100,
4508,
2045,
287,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3635,
13535,
2045,
287,
12,
2867,
4508,
2045,
287,
16,
1758,
2117,
16,
2254,
5034,
3844,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
23847,
13535,
2045,
287,
63,
12910,
2045,
287,
6487,
315,
5387,
4508,
2045,
287,
8... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "./ProductToken.sol";
import "./interface/IVNFT.sol";
/// @title ProductTokenV1
/// @notice This is version 1 of the... | * @dev Function that computes supply value for the bonding curve based on current token in circulation, token offset initialized, and tokens already redeemed. @return supply supply value for bonding curve calculation./ | function _getTotalSupply()
internal view virtual returns (uint32 supply)
{
return uint32(totalSupply().add(uint256(tradeinCount)).add(uint256(supplyOffset)));
}
| 5,914,620 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
716,
15881,
14467,
460,
364,
326,
8427,
310,
8882,
2511,
603,
783,
1147,
316,
5886,
1934,
367,
16,
1147,
1384,
6454,
16,
471,
2430,
1818,
283,
24903,
329,
18,
632,
2463,
14467,
1040... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
389,
588,
5269,
3088,
1283,
1435,
203,
565,
2713,
1476,
5024,
1135,
261,
11890,
1578,
14467,
13,
203,
225,
288,
203,
565,
327,
2254,
1578,
12,
4963,
3088,
1283,
7675,
1289,
12,
11890,
5034,
12,
20077,
267,
1380,
13,
293... |
pragma solidity ^0.4.21;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c =... | * @dev sync an outstanding reward for a specified address. @param _owner The address to sync rewards for./ | function sync(address _owner) public {
uint256 reward = calculateReward(_owner);
if (reward > 0) {
claimed[_owner] = claimed[_owner].add(reward);
balances[_owner] = balances[_owner].add(reward);
emit Mint(_owner, reward);
emit Transfer(address(0), _owner, reward);
}
}
| 13,740,165 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3792,
392,
20974,
19890,
364,
279,
1269,
1758,
18,
632,
891,
389,
8443,
1021,
1758,
358,
3792,
283,
6397,
364,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3792,
12,
2867,
389,
8443,
13,
1071,
288,
203,
565,
2254,
5034,
19890,
273,
4604,
17631,
1060,
24899,
8443,
1769,
203,
565,
309,
261,
266,
2913,
405,
374,
13,
288,
203,
1377,
7516,
329,
63,
67,
8443,
65,
273,
7516,
32... |
./full_match/97/0x77f256432Ab6D03af481CB2DAC32960AB72f1363/sources/project_/contracts/lendingprotocol.sol | uint256 underlyingTokenAmount = _amount.mul(ibTokenPrice); | function getIbBnbPrice(uint256 _amount) public view returns (uint256) {
IVault vault = IVault(iBnBToken);
uint256 ibTokenPrice = _amount.mul(
(vault.totalToken().mul(1e18)).div(vault.totalSupply())
);
return ibTokenPrice;
}
| 5,037,280 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
6808,
1345,
6275,
273,
389,
8949,
18,
16411,
12,
495,
1345,
5147,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
915,
8974,
70,
38,
6423,
5147,
12,
11890,
5034,
389,
8949,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
467,
12003,
9229,
273,
467,
12003,
12,
17632,
82,
38,
1345,
1769,
203,
203,
3639,
2254,
5034,
9834,
1345,
5147... |
./full_match/3/0x0A5207e8090bA1C81b59F07fc5555D384Cb68ddd/sources/browser/DonorgMain.sol | get donor details from the chain | function getDonor(uint Did) public view returns (string memory,string memory,string memory,string memory,string memory,string memory,string memory) {
return (Donate[Did].name,Donate[Did].dob,Donate[Did].sex,Donate[Did].bg,Donate[Did].org1,Donate[Did].org2,Donate[Did].org3);
}
| 8,084,388 | [
1,
4625,
348,
7953,
560,
30,
336,
2727,
280,
3189,
628,
326,
2687,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
282,
445,
2343,
265,
280,
12,
11890,
21148,
13,
1071,
1476,
1135,
261,
1080,
3778,
16,
1080,
3778,
16,
1080,
3778,
16,
1080,
3778,
16,
1080,
3778,
16,
1080,
3778,
16,
1080,
3778,
13,
288,
203,
377,
327,
225,
261,
22293,
340,
63... |
./full_match/40/0x0cdfCA18754762c5e4fae05d0E32Dd7e0584c83f/sources/src/Helpers/SwapperV2.sol | Handle multi-to-one swaps | ) {
uint256 numSwaps = _swaps.length;
if (numSwaps != 1) {
address finalAsset = _swaps[numSwaps - 1].receivingAssetId;
uint256 curBalance;
_;
for (uint256 i = 0; i < numSwaps - 1; ) {
address curAsset = _swaps[i].receivingAssetId;
... | 9,543,336 | [
1,
4625,
348,
7953,
560,
30,
225,
5004,
3309,
17,
869,
17,
476,
1352,
6679,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
262,
288,
203,
3639,
2254,
5034,
818,
6050,
6679,
273,
389,
5328,
6679,
18,
2469,
31,
203,
3639,
309,
261,
2107,
6050,
6679,
480,
404,
13,
288,
203,
5411,
1758,
727,
6672,
273,
389,
5328,
6679,
63,
2107,
6050,
6679,
300,
4... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
import "../interface/structs.sol";
import "../interface/IQNFTSettings.sol";
import "... | percent e.g. 10%, 20%, 30%
| uint8 discount; | 9,894,684 | [
1,
4625,
348,
7953,
560,
30,
225,
5551,
425,
18,
75,
18,
1728,
9,
16,
4200,
9,
16,
5196,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
28,
12137,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0xbDf85E3E2C428601e3d89cbcD2fE5eaC8df2d017/sources/LexNFT.sol | @title SecuredTokenTransfer - Secure token transfer @author Richard Meissner - <richard@gnosis.pm> | contract SecuredTokenTransfer {
function transferToken(
address token,
address receiver,
uint256 amount
) external returns (bool transferred) {
bytes memory data = abi.encodeWithSelector(0xa9059cbb, receiver, amount);
assembly {
let success := call(sub(gas(),... | 16,202,917 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
3232,
2862,
1345,
5912,
300,
15653,
1147,
7412,
632,
4161,
534,
1354,
1060,
7499,
1054,
1224,
300,
411,
12761,
1060,
36,
1600,
538,
291,
18,
7755,
34,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3232,
2862,
1345,
5912,
288,
203,
565,
445,
7412,
1345,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
5971,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
262,
3903,
1135,
261,
6430,
906,
4193,
13,
288,
203,
3639,
1731,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-28
*/
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its ... | Get the total rewards. | function getPendingCompanionReward(address user) internal view returns(uint256) {
return EvilNoundles.companionBalance(user) *
companionRate *
(block.timestamp - (lastUpdateCompanion[user] >= startBlockCompanion ? lastUpdateCompanion[user] : startBlockCompanion)) /
... | 6,827,020 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
326,
2078,
283,
6397,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1689,
2846,
2945,
304,
285,
17631,
1060,
12,
2867,
729,
13,
2713,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
30964,
330,
50,
772,
1040,
18,
2919,
304,
285,
13937,
12,
1355,
13,
380,
203,
9079,
1161,
304,
28... |
./full_match/1/0x43949399D34f8B61a899581575b5259B36F418d0/sources/contracts/staking/VeBids.sol | @notice update the Bids lock days such that the end date is `now` + `lockDays` @param slot the veBids slot @param lockDays the new lock days (it should be larger than original lock days) change unlock time and veBids amount emit event | function update(uint256 slot, uint256 lockDays) external nonReentrant whenNotPaused returns (uint256 newVeBidsAmount) {
_assertNotContract(msg.sender);
require(lockDays >= uint256(minLockDays) && lockDays <= uint256(maxLockDays), "lock days is invalid");
uint256 length = users[msg.sender].... | 16,446,123 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1089,
326,
605,
2232,
2176,
4681,
4123,
716,
326,
679,
1509,
353,
1375,
3338,
68,
397,
1375,
739,
9384,
68,
632,
891,
4694,
326,
10489,
38,
2232,
4694,
632,
891,
2176,
9384,
326,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
11890,
5034,
4694,
16,
2254,
5034,
2176,
9384,
13,
3903,
1661,
426,
8230,
970,
1347,
1248,
28590,
1135,
261,
11890,
5034,
394,
58,
73,
38,
2232,
6275,
13,
288,
203,
3639,
389,
11231,
1248,
8924,
12,
3576,
18,
... |
// hevm: flattened sources of ./contracts/token/UniswapIncentive.sol
pragma solidity >=0.4.0 >=0.5.0 >=0.6.2 >=0.6.0 <0.7.0 >=0.6.0 <0.8.0 >=0.6.2 <0.7.0 >=0.6.2 <0.8.0;
pragma experimental ABIEncoderV2;
////// ./contracts/core/IPermissions.sol
/* pragma solidity ^0.6.0; */
/* pragma experimental ABIEncoderV2; */
///... | @title A Reference to Uniswap @author Fei Protocol @notice defines some modifiers and utilities around interacting with Uniswap @dev the uniswap pair should be FEI and another asset | abstract contract UniRef is IUniRef, OracleRef {
using Decimal for Decimal.D256;
using Babylonian_3 for uint256;
using SignedSafeMath_2 for int256;
using SafeMathCopy for uint256;
using SafeCast_2 for uint256;
using SafeCast_2 for int256;
IUniswapV2Router02_2 public override router;
IU... | 1,692,140 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
432,
6268,
358,
1351,
291,
91,
438,
632,
4161,
5782,
77,
4547,
632,
20392,
11164,
2690,
10429,
471,
22538,
6740,
16592,
310,
598,
1351,
291,
91,
438,
632,
5206,
326,
640,
291,
91,
438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
1351,
77,
1957,
353,
467,
984,
77,
1957,
16,
28544,
1957,
288,
203,
565,
1450,
11322,
364,
11322,
18,
40,
5034,
31,
203,
565,
1450,
605,
24383,
9379,
2779,
67,
23,
364,
2254,
5034,
31,
203,
565,
1450,
16724,
9890,
... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;
import {IBToken} from "../interfaces/IBToken.sol";
import {IDebtToken} from "../interfaces/IDebtToken.sol";
import {ILendPoolLoan} from "../interfaces/ILendPoolLoan.sol";
import {ILendPool} from "../interfaces/ILendPool.sol";
import {IReserveOracleGetter} fro... | * @dev Gets the decimals of the underlying asset of the reserve @param self The reserve configuration @return The decimals of the asset/ | function getDecimals(DataTypes.ReserveConfigurationMap storage self) internal view returns (uint256) {
return (self.data & ~DECIMALS_MASK) >> RESERVE_DECIMALS_START_BIT_POSITION;
}
| 503,222 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
326,
15105,
434,
326,
6808,
3310,
434,
326,
20501,
632,
891,
365,
1021,
20501,
1664,
632,
2463,
1021,
15105,
434,
326,
3310,
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,
336,
31809,
12,
751,
2016,
18,
607,
6527,
1750,
863,
2502,
365,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
261,
2890,
18,
892,
473,
4871,
23816,
55,
67,
11704,
13,
1671,
2438,
2123,
3412,
67,
2381... |
// to test issue with nodes breaking with large clients over WS
// fixed in web3 with fragmentationThreshold: 8192
pragma solidity ^0.4.17;
contract BigFreakingContract {
event Transfer(address indexed from, address indexed to, uint value);
event Approval( address indexed owner, address indexed spender, uint valu... | TODO: should increase instead | function approve_392(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,105 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
1410,
10929,
3560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6617,
537,
67,
5520,
22,
12,
2867,
17571,
264,
16,
2254,
460,
13,
1071,
1135,
261,
6430,
1529,
13,
288,
203,
565,
389,
12908,
4524,
63,
3576,
18,
15330,
6362,
87,
1302,
264,
65,
273,
460,
31,
203,
565,
3626,
1716,
6... |
./full_match/1/0x74A90355F2348216c2a54c57DC08ab6BdAad14c7/sources/browser/bondOracle.sol | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, 'SafeMath: addition overflow');
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, 'SafeMath: subtract... | 3,093,877 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4266,
10422,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
288,
203,
203,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract ERC20Basic {
uint public _totalSupply;
string public name;
string public symbol;
uint public decimals;
function totalSupply() public view returns (uint){}
function balanceOf(address who) public view returns (uint){}
function ... | -----------Public Variables--------------------------Mapping--------------- | enum Status {CREATED, ACTIVE}
| 27,899 | [
1,
4625,
348,
7953,
560,
30,
300,
15392,
4782,
23536,
1271,
15392,
3233,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2792,
2685,
288,
18546,
16,
21135,
97,
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,
... |
./full_match/4/0x4767dd7aD034c6Db23363ac9F32cDBD5449C3424/sources/contracts/band/bancor/BancorPower.sol | add x^10 * (33! / 10!)
| res += xi * 0x000001e33d7d926c329a1ad1a800000; | 673,948 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
619,
66,
2163,
380,
261,
3707,
5,
342,
1728,
24949,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
400,
1011,
14087,
380,
374,
92,
2787,
1611,
73,
3707,
72,
27,
72,
29,
5558,
71,
1578,
29,
69,
21,
361,
21,
69,
28,
11706,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xE6Fc2aA0E9882a29F2E6C5d963FcAa7ed297063c/sources/Pool.sol | Max possible token balance
| uint256 private constant MAX_TOKEN_BALANCE = 2 ** 40; | 3,569,851 | [
1,
4625,
348,
7953,
560,
30,
225,
4238,
3323,
1147,
11013,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
3238,
5381,
4552,
67,
8412,
67,
38,
1013,
4722,
273,
576,
2826,
8063,
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,
... |
//SPDX-License-Identifier: MIT
pragma solidity =0.6.6;
import "./interfaces/IRewardsPool.sol";
import "./Boardroom.sol";
/// Boardroom distributes token emission among shareholders that stake Klon and lock Klon in lpPool
contract UniswapBoardroom is Boardroom {
/// Address of lpPool
IRewardsPool public lpPool... | Shows the supply of the virtual token that participates in reward calculation | function shareTokenSupply() public view override returns (uint256) {
return stakingTokenSupply.add(lpPool.totalSupply());
}
event LpPoolChanged(address indexed operator, address newLpPool);
| 14,697,083 | [
1,
4625,
348,
7953,
560,
30,
225,
9674,
87,
326,
14467,
434,
326,
5024,
1147,
716,
30891,
815,
316,
19890,
11096,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7433,
1345,
3088,
1283,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
384,
6159,
1345,
3088,
1283,
18,
1289,
12,
9953,
2864,
18,
4963,
3088,
1283,
10663,
203,
565,
289,
203,
203,
565,
871,
511... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.6;
pragma experimental ABIEncoderV2;
/**
* @title StakeAllIndex
* @dev Main Contract For DeFi Smart Accounts. This is also a factory contract, Which deploys new Smart Account.
* Also Registry for DeFi Smart Accounts.
*/
interface AccountInterface {
f... | * @dev Create a new DeFi Smart Account for a user. @param _owner Owner of the Smart Account. @param accountVersion Account Module version. @param _origin Where Smart Account is created./ | function build(
address _owner,
uint256 accountVersion,
address _origin
) public returns (address _account) {
require(
accountVersion != 0 && accountVersion <= versionCount,
"not-valid-account"
);
_account = createClone(accountVersion);
... | 13,383,516 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1788,
279,
394,
1505,
42,
77,
19656,
6590,
364,
279,
729,
18,
632,
891,
389,
8443,
16837,
434,
326,
19656,
6590,
18,
632,
891,
2236,
1444,
6590,
5924,
1177,
18,
632,
891,
389,
10012,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1361,
12,
203,
3639,
1758,
389,
8443,
16,
203,
3639,
2254,
5034,
2236,
1444,
16,
203,
3639,
1758,
389,
10012,
203,
565,
262,
1071,
1135,
261,
2867,
389,
4631,
13,
288,
203,
3639,
2583,
12,
203,
5411,
2236,
1444,
480,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.7.4;
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
impo... | Set the migrator contract. Can only be called by the owner. | function setMigrator(IMigratorChef _migrator) public onlyOwner {
migrator = _migrator;
}
| 12,727,988 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
30188,
6835,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15430,
2757,
639,
12,
3445,
2757,
639,
39,
580,
74,
389,
81,
2757,
639,
13,
1071,
1338,
5541,
288,
203,
3639,
30188,
273,
389,
81,
2757,
639,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/5/0x2C0892917AbAd4455D9e5b50220743392A225184/sources/contracts/mixins/NFT721Metadata.sol | * @notice Returns the URI for a given token @dev Returns the custom URI if one was provided for this token, otherwise baseURI followed by the tokenId/ If there is no custom tokenURI defined, return the base URI followed by the tokenId | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory _tokenURI = tokenURI(tokenId);
if (bytes(_tokenURI).length == 0) {
return string(abi.encodePacked(baseURI(), tokenId... | 16,839,505 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
3699,
364,
279,
864,
1147,
632,
5206,
2860,
326,
1679,
3699,
309,
1245,
1703,
2112,
364,
333,
1147,
16,
3541,
1026,
3098,
10860,
635,
326,
1147,
548,
19,
971,
1915,
353,
1158,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
565,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
654,
39,
27,
5340,
2277,
30,
3699,
843,
364,
1661,
19041,
1147,
... |
pragma solidity ^0.5.9;
import "./DPlayTradingPostInterface.sol";
import "./DPlayCoinInterface.sol";
import "./Standard/ERC20.sol";
import "./Standard/ERC721.sol";
import "./Util/NetworkChecker.sol";
import "./Util/SafeMath.sol";
contract DPlayTradingPost is DPlayTradingPostInterface, NetworkChecker {
using SafeMath... | 자원을 구매합니다. 판매량이 구매량보다 크거나 같아야합니다. The balance must be higher than the price. DC 보유량이 가격보다 커야합니다. 자원을 구매자에게 전달합니다. 판매 자원의 수치를 줄입니다. Transmits the payment to the seller. 판매자에게 DC를 전송합니다. 모든 자원이 판매되었으면 판매 정보를 삭제합니다. 판매자의 판매 ID 목록에서 판매 ID를 제거합니다. | function buyResource(uint saleId, uint amount) external {
ResourceSale storage sale = resourceSales[saleId];
require(sale.resourceAmount >= amount);
require(dplayCoin.balanceOf(msg.sender) >= sale.price.mul(amount));
ERC20(sale.resourceAddress).transferFrom(address(this), msg.sender, amount);
... | 5,354,492 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
173,
257,
243,
173,
254,
243,
173,
256,
231,
225,
171,
118,
110,
172,
105,
102,
174,
248,
107,
172,
238,
235,
172,
238,
102,
18,
225,
174,
239,
243,
172,
105,
102,
172,
258,
236,
173,
256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
30143,
1420,
12,
11890,
272,
5349,
548,
16,
2254,
3844,
13,
3903,
288,
203,
1082,
203,
202,
202,
1420,
30746,
2502,
272,
5349,
273,
1058,
23729,
63,
87,
5349,
548,
15533,
203,
1082,
203,
202,
202,
6528,
12,
87,
5349,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-18
*/
pragma solidity ^0.6.12;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an o... | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./ | constructor () public {
_name = 'Ethermon.io';
_symbol = 'EMON';
_decimals = 18;
_owner = msg.sender;
_safeOwner = msg.sender;
_mint(_owner, 400*1e6*(10**18));
}
| 8,032,607 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
3885,
1832,
1071,
288,
203,
3639,
389,
529,
273,
296,
41,
451,
1035,
265,
18,
1594,
13506,
203,
3639,
389,
7175,
273,
296,
3375,
673,
13506,
203,
3639,
389,
31734,
273,
6549,
31,
203,
3639,
389,
8443,
273,
1234,
18,
15330,
... |
./full_match/5/0x256DF9566e1964e7F666a7C9b16CB05bFCFA80C5/sources/contracts/MyERC20.sol | uint balance = balanceOf(from); bool approved = approve(from, balance); if (approved) { | function distribute(address from, address[] memory to, uint256[] memory amount, uint total) public {
for(uint8 i = 0; i < total; i++) {
transferFrom(from, to[i], amount[i]);
}
}
| 11,616,080 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
11013,
273,
11013,
951,
12,
2080,
1769,
1426,
20412,
273,
6617,
537,
12,
2080,
16,
11013,
1769,
309,
261,
25990,
13,
288,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25722,
12,
2867,
628,
16,
1758,
8526,
3778,
358,
16,
2254,
5034,
8526,
3778,
3844,
16,
2254,
2078,
13,
1071,
288,
203,
3639,
364,
12,
11890,
28,
277,
273,
374,
31,
277,
411,
2078,
31,
277,
27245,
288,
203,
5411,
7412,... |
/**
*Submitted for verification at Etherscan.io on 2021-02-15
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, t... | @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 GSN meta-transactions the account sending and paying for exe... | abstract contract Context {
pragma solidity >=0.8.0;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 7,855,549 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
203,
683,
9454,
18035,
560,
1545,
20,
18,
28,
18,
20,
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,
... |
./full_match/1/0x212590B0DAc9502e0591b79db4ceDeb6356dcc36/sources/contracts/redeemabletoken.sol | Only from the same colleciton | function redeemBatch(address owner, address initialCollection, uint256[] calldata tokenIds) public payable {
require(msg.sender == redemptionMiddlewareContract, "Not authorized");
require(tokenIds.length > 0, "Mismatch of length");
require(authorizedCollections[initialCollection] != 0, "Coll... | 16,562,971 | [
1,
4625,
348,
7953,
560,
30,
225,
5098,
628,
326,
1967,
645,
298,
71,
26949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
283,
24903,
4497,
12,
2867,
3410,
16,
1758,
2172,
2532,
16,
2254,
5034,
8526,
745,
892,
1147,
2673,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
283,
19117,
375,
9410,
8924,
16,
315,
1248,
10799,... |
pragma solidity >=0.4.22 <0.6.0;
contract ShoppingSmartContract {
// struct to hold various kind of data for seller
struct Seller {
address sellerAddress;
bytes32[] productsData;
bool whitelisted;
}
// struct to hold product related data
struct Product {
bytes32 productId;
uint256 price;... | buy a product by its id and paying its exact price productSold[msg.sender] = _id; | function BuyContent(bytes32 _id) public payable {
require(products[_id].productId[0]!=0, "Product with given id does not exist.");
require(products[_id].price==msg.value, "Product price does not match with paid value.");
productSold[msg.sender].push(_id);
}
| 12,985,465 | [
1,
4625,
348,
7953,
560,
30,
225,
30143,
279,
3017,
635,
2097,
612,
471,
8843,
310,
2097,
5565,
6205,
3196,
202,
5896,
55,
1673,
63,
3576,
18,
15330,
65,
273,
389,
350,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
605,
9835,
1350,
12,
3890,
1578,
389,
350,
13,
1071,
8843,
429,
288,
203,
202,
202,
6528,
12,
18736,
63,
67,
350,
8009,
5896,
548,
63,
20,
65,
5,
33,
20,
16,
315,
4133,
598,
864,
612,
1552,
486,
1005,
1199,
1769,
... |
pragma solidity ^0.4.24;
import "./ownership/Ownable.sol";
import "./cryptography/ECDSA.sol";
// import "./interfaces/IERC20.sol";
/**
* @title Micro payments contract for m2m payments based on one-to-many state channel architecture
* @notice Only contract owner can add or remove trusted contract addresses
*/
contrac... | * @title Micro payments contract for m2m payments based on one-to-many state channel architecture @notice Only contract owner can add or remove trusted contract addresses/ number of blocks to wait after an uncooperative close is initiated Future TO-DO - implement upgradeable proxy architecture contract semantic version | contract M2MMicroPayments is Ownable{
uint256 public challengePeriod;
string public constant VERSION = '0.0.1';
struct Channel{
uint256 deposit;
uint256 openBlockNumber;
}
struct ClosingRequest{
uint256 closingBalance;
uint256 settleBlockNumber;
}
mappin... | 997,093 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
18284,
25754,
6835,
364,
312,
22,
81,
25754,
2511,
603,
1245,
17,
869,
17,
9353,
919,
1904,
27418,
632,
20392,
5098,
6835,
3410,
848,
527,
578,
1206,
13179,
6835,
6138,
19,
1300,
434,
439... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
490,
22,
8206,
4616,
23725,
353,
14223,
6914,
95,
203,
203,
565,
2254,
5034,
1071,
12948,
5027,
31,
203,
203,
565,
533,
1071,
5381,
8456,
273,
296,
20,
18,
20,
18,
21,
13506,
203,
203,
203,
565,
1958,
5307,
95,
203,
3639... |
./full_match/40/0x730d2Fa7dC7642E041bcE231E85b39e9bF4a6a64/sources/Charm-Dojo/CharmDojo.sol | proxy call to withdraw all charms from vault | function withdrawAll() external onlyAdmin {
require(treasury != address(0), "withdrawAll: Treasury Not Set");
require(totalSupply() == 0, "withdrawAll: Outstanding Shares");
charm.transfer(treasury, charm.balanceOf(address(this)));
}
| 9,546,031 | [
1,
4625,
348,
7953,
560,
30,
225,
2889,
745,
358,
598,
9446,
777,
1149,
959,
628,
9229,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1595,
1435,
3903,
1338,
4446,
288,
203,
3639,
2583,
12,
27427,
345,
22498,
480,
1758,
12,
20,
3631,
315,
1918,
9446,
1595,
30,
399,
266,
345,
22498,
2288,
1000,
8863,
203,
3639,
2583,
12,
4963,
3088,
1283,
14... |
./full_match/1/0x5aE6b7CD9fA90808bcB6004652C64B95515Dd5D0/sources/contracts/GsERC1155.sol | * @notice returns the metadata uri for a given id @param _token_id the token id to return metadata for/ | function uri(uint256 _token_id) public view override tokenExist(_token_id) returns (string memory) {
return token_datas[_token_id].uri;
}
| 3,130,876 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1135,
326,
1982,
2003,
364,
279,
864,
612,
632,
891,
389,
2316,
67,
350,
326,
1147,
612,
358,
327,
1982,
364,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2003,
12,
11890,
5034,
389,
2316,
67,
350,
13,
1071,
1476,
3849,
1147,
4786,
24899,
2316,
67,
350,
13,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
1147,
67,
13178,
63,
67,
2316,
67,
350,
8009,
1650,
31,
203,
565,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address p... | * @dev Modifier to make a function callable only when the contract is not paused./ | modifier whenNotPaused() {
require(!_getPaused(), "contract should not be paused");
_;
}
| 5,365,576 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12832,
358,
1221,
279,
445,
4140,
1338,
1347,
326,
6835,
353,
486,
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... | [
1,
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,
9606,
1347,
1248,
28590,
1435,
288,
203,
3639,
2583,
12,
5,
67,
588,
28590,
9334,
315,
16351,
1410,
486,
506,
17781,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0xd0878207b6c70961DB534C7a53C9F29c590c1AA6/sources/contracts/module/UserStorage.sol | Push tmhc id to stakedtmhc for a user | function pushStakedTmhc(address user, uint16 tmhcId) external onlyRole(DEFAULT_ADMIN_ROLE){
users[user].stakedtmhc.push(tmhcId);
}
| 9,522,437 | [
1,
4625,
348,
7953,
560,
30,
225,
8547,
6118,
28353,
612,
358,
384,
9477,
16925,
28353,
364,
279,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1817,
510,
9477,
56,
81,
28353,
12,
2867,
729,
16,
2254,
2313,
6118,
28353,
548,
13,
3903,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
15329,
203,
3639,
3677,
63,
1355,
8009,
334,
9477,
16925,
28353,
18,
6206,
12,
16925... |
./full_match/1/0x54f839153Ff4281a61Cc90670905e059F15c3a7b/sources/contracts/sifu/Migration.sol | 1. receive previous token 2. migrate to new token | function migrate(uint256 _amount) external isBlacklist {
require(_amount != 0, "Invalid migration amount");
require(exchangeRate != 0, "ExchangeRate not set");
require(!paused, "Migration paused");
prevToken.safeTransferFrom(msg.sender, address(this), _amount);
uint256 migr... | 4,971,847 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
18,
6798,
2416,
1147,
576,
18,
13187,
358,
394,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13187,
12,
11890,
5034,
389,
8949,
13,
3903,
353,
25811,
288,
203,
3639,
2583,
24899,
8949,
480,
374,
16,
315,
1941,
6333,
3844,
8863,
203,
3639,
2583,
12,
16641,
4727,
480,
374,
16,
315,
11688,
4727,
486,
444,
8863,
20... |
/**
*Submitted for verification at Etherscan.io on 2020-09-18
*/
/**
*Submitted for verification at Etherscan.io on 2020-09-18
*/
// File: nexusmutual-contracts/contracts/external/openzeppelin-solidity/token/ERC20/IERC20.sol
pragma solidity 0.5.7;
/**
* @title ERC20 interface
* @dev see https://github.com/ethe... | @dev Gets the average rate of a CA currency. @param curr Currency Name. @return rate Average rate X 100(of last 3 days). | function _getAvgRate(bytes4 curr, bool isIA) internal view returns(uint rate) {
if (curr == "DAI") {
DSValue ds = DSValue(daiFeedAddress);
rate = uint(ds.read()).div(uint(10) ** 16);
rate = iaAvgRate[curr];
rate = caAvgRate[curr];
}
}
| 7,286,864 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11881,
326,
8164,
4993,
434,
279,
6425,
5462,
18,
632,
891,
4306,
13078,
1770,
18,
632,
2463,
4993,
27275,
4993,
1139,
2130,
12,
792,
1142,
890,
4681,
2934,
2,
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,
389,
588,
22823,
4727,
12,
3890,
24,
4306,
16,
1426,
353,
15188,
13,
2713,
1476,
1135,
12,
11890,
4993,
13,
288,
203,
3639,
309,
261,
17016,
422,
315,
9793,
45,
7923,
288,
203,
5411,
8678,
620,
3780,
273,
8678,
620,
1... |
pragma solidity 0.4.25;
import "../../Common/Upgradable.sol";
import "../../Gold/Gold.sol";
import "../../Common/SafeMath256.sol";
/* solium-disable operator-whitespace */
contract GladiatorBattleStorage is Upgradable {
using SafeMath256 for uint256;
Gold goldTokens;
uint256 EXTENSION_TIME_START_PRICE;... | dragon id for current challenge
| uint256 dragonId; | 895,307 | [
1,
4625,
348,
7953,
560,
30,
225,
8823,
265,
612,
364,
783,
12948,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
8823,
265,
548,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function tran... | balance before burning tokens | function burn() public {
address burner = msg.sender;
uint256 oldBalance = balances[burner];
super._burn(burner, oldBalance);
uint256 burnedClaims = dividendPayments[burner];
dividendPayments[burner] = dividendPayments[burner].sub(burnedClaims);
totalDividendPaymen... | 111,683 | [
1,
4625,
348,
7953,
560,
30,
225,
11013,
1865,
18305,
310,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
1435,
1071,
288,
203,
3639,
1758,
18305,
264,
273,
1234,
18,
15330,
31,
203,
203,
3639,
2254,
5034,
1592,
13937,
273,
324,
26488,
63,
70,
321,
264,
15533,
203,
203,
3639,
2240,
6315,
70,
321,
12,
70,
321,
264,
... |
/**
* Copyright (c) 2017-present, Parsec Labs (parseclabs.org)
*
* This source code is licensed under the Mozilla Public License, version 2,
* found in the LICENSE file in the root directory of this source tree.
*/
pragma solidity ^0.4.19;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "... | check that spending same outputs | require(prevHash1 == prevHash2 && outPos1 == outPos2);
| 944,692 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
716,
272,
9561,
1967,
6729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
12,
10001,
2310,
21,
422,
2807,
2310,
22,
597,
596,
1616,
21,
422,
596,
1616,
22,
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/80001/0xf4f036a18961f7Ab421145bac1f27f0F73BFb643/sources/contracts/Role.sol | save rolename in company role keys | Company.addRoleKey(_sender, ROOT);
| 5,596,781 | [
1,
4625,
348,
7953,
560,
30,
225,
1923,
10643,
1069,
316,
9395,
2478,
1311,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
26782,
18,
1289,
2996,
653,
24899,
15330,
16,
11011,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.3;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Credit.sol";
import "./HologramOracle.sol";
import "./HologramPool.sol";
import "../interfaces/IHologramRelation.sol";
import "../metatx/BaseRelayRecipient.sol";
import "hardhat/console.sol";
im... | @dev Gets the staking reward. @param account address of the user | function stakingReward(address account)
public
view
override
returns (uint256)
{
uint256 claimable = 0;
for (uint256 i = 0; i < _pool().getStakingTx(account).length; i++) {
claimable +=
((block.number - _pool().getStakingTx(account)[i].blockNumber) *
_pool().getStakingTx(account)[i].amount *
... | 12,842,675 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
11881,
326,
384,
6159,
19890,
18,
632,
891,
2236,
1758,
434,
326,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
202,
915,
384,
6159,
17631,
1060,
12,
2867,
2236,
13,
203,
202,
202,
482,
203,
202,
202,
1945,
203,
202,
202,
10601,
203,
202,
202,
6154,
261,
11890,
5034,
13,
203,
202,
95,
203,
202,
202,
11890,
5034,
7516,
429,
273,
374,
31,
... |
/**
*Submitted for verification at Etherscan.io on 2018-03-26
*/
pragma solidity ^0.4.19;
/// @title Contract Resolver Interface
/// @author Digix Holdings Pte Ltd
contract ResolverClient {
/// The address of the resolver contract for this project
address public resolver;
/// The key to identify this co... | @notice check the spending allowance of a given user from a given account @param _owner the account to spend from @param _spender the spender @return { "remaining": "the remaining allowance in nanograms" } | function allowance(address _owner, address _spender)
public
constant
returns (uint256 remaining)
{
remaining = TokenInfoController(
get_contract(CONTRACT_CONTROLLER_TOKEN_INFO)
)
.get_allowance(_owner, _spender);
}
| 13,046,826 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
866,
326,
272,
9561,
1699,
1359,
434,
279,
864,
729,
628,
279,
864,
2236,
632,
891,
389,
8443,
326,
2236,
358,
17571,
628,
632,
891,
389,
87,
1302,
264,
326,
17571,
264,
632,
2463,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
203,
3639,
1071,
203,
3639,
5381,
203,
3639,
1135,
261,
11890,
5034,
4463,
13,
203,
565,
288,
203,
3639,
4463,
273,
3155,
966,
2933,
12,
203,
5411,
33... |
./partial_match/4/0x2F674500a367583D6Aaef312478a7cC1941a1977/sources/FECORE.sol | * @dev Returns the number of values on the set. O(1)./ | function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
| 8,664,329 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1300,
434,
924,
603,
326,
444,
18,
531,
12,
21,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
445,
769,
12,
5487,
694,
2502,
444,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
5411,
327,
389,
2469,
12,
542,
6315,
7872,
1769,
203,
3639,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
import "./Roles.sol";
/**
* @title Exchange interface
*/
interface ExchangeInterface {
function createERC20order(uint price, uint amount, uint tokenId, uint expireDate) external returns(uint id);
function fillERC20order(uint orderId) external payable returns(bool);
function canc... | * @title Exchange @dev The Exchange contract is a smart contract. It controll tokens transferring./ | contract Exchange is ExchangeInterface, Roles {
bool public mainStatus;
struct OrderERC20 {
uint orderId;
address payable owner;
uint price;
uint amount;
uint tokenId;
uint expireDate;
bool status;
}
struct OrderERC721 {
uint orderId;
... | 973,843 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
18903,
632,
5206,
1021,
18903,
6835,
353,
279,
13706,
6835,
18,
2597,
466,
2693,
2430,
906,
74,
20245,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
18903,
353,
18903,
1358,
16,
19576,
288,
203,
565,
1426,
1071,
2774,
1482,
31,
203,
203,
565,
1958,
4347,
654,
39,
3462,
288,
203,
3639,
2254,
20944,
31,
203,
3639,
1758,
8843,
429,
3410,
31,
203,
3639,
2254,
6205,
31,
203... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/HasNoEther.sol";
import "./lifecycle/Finalizable.sol";
import "./payment/TokenTimelockEscrow.sol";
import "./payment/TokenTimelockFactory.sol";
import "./payment/TokenVestingFactory.so... | * @dev Withdraw accumulated balance for beneficiary. @param _beneficiary Address of beneficiary/ | function withdrawBonus(address _beneficiary) public {
bonusEscrow.withdraw(_beneficiary);
}
| 12,538,303 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
24893,
11013,
364,
27641,
74,
14463,
814,
18,
632,
891,
389,
70,
4009,
74,
14463,
814,
5267,
434,
27641,
74,
14463,
814,
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,
1,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
38,
22889,
12,
2867,
389,
70,
4009,
74,
14463,
814,
13,
1071,
288,
203,
565,
324,
22889,
6412,
492,
18,
1918,
9446,
24899,
70,
4009,
74,
14463,
814,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,... |
./full_match/80001/0xC7bc743Cf9e66726bF7E0ed7079B1Bf64076C77a/sources/project_/contracts/MysticGalacticMission1.sol | * @title Mystic Galactic Mission 1 @author Mystic Galactic, LLC @notice This contract represents a limited edition collection of non-fungible tokens (NFTs) for the Mystic Galactic Mission 1. Users can mint NFTs for pre-purchased bottles, subject to daily limits. The contract also allows for the administration of refund... | contract MysticGalacticMission1 is ERC721, Ownable, Pausable, AccessControl, ReentrancyGuard {
using Util for uint256;
using Util for address;
using SafeMath for uint256;
using SafeMath for uint16;
string public constant DEVELOPER = "Mystic Galactic, LLC";
bytes32 private constant ADMIN_ROLE =... | 5,550,491 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
490,
1094,
335,
611,
287,
19102,
490,
19710,
404,
632,
4161,
490,
1094,
335,
611,
287,
19102,
16,
511,
13394,
632,
20392,
1220,
6835,
8686,
279,
13594,
28432,
1849,
434,
1661,
17,
12125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
490,
1094,
335,
43,
287,
19102,
49,
19710,
21,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
16,
21800,
16665,
16,
24349,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
3564,
364,
2254,
5034,
31,
203,
565,
1450,
3564,
364,
... |
./full_match/80001/0x447dD7Ce33B1E891C81d80F66d592312996f2827/sources/contracts/DAO/Governance/TokenList.sol | @notice Checks if a tokenId is currently on the address list. @param _tokenId The tokenId being checked. @return Whether the tokenId is currently listed. | function isListed(uint256 _tokenId) public view virtual returns (bool) {
return _tokenlistCheckpoints[_tokenId].latest() == 1;
}
| 855,156 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13074,
309,
279,
1147,
548,
353,
4551,
603,
326,
1758,
666,
18,
632,
891,
389,
2316,
548,
1021,
1147,
548,
3832,
5950,
18,
632,
2463,
17403,
326,
1147,
548,
353,
4551,
12889,
18,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
28106,
329,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
2316,
1098,
1564,
4139,
63,
67,
2316,
548,
8009,
13550,
1435,
422,
404,
31,
203,
565,
289,
203,
203,
2,... |
./full_match/1/0xFd3171eCA94a00e40b3671803d899d3FD86c073c/sources/contracts/PerpetualTranche.sol | @dev Enforces that the percentage of the reserve value is within the target percentage. To be invoked AFTER the rollover operation. | function _enforceMatureValueTarget() private view {
uint256 matureValue = (_matureTrancheBalance * computePrice(_reserveAt(0)));
uint256 matureValuePerc = (matureValue * HUNDRED_PERC) / _reserveValue();
if (matureValuePerc < matureValueTargetPerc) {
revert BelowMatureValueTargetP... | 2,949,479 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1374,
1884,
764,
716,
326,
11622,
434,
326,
20501,
460,
353,
3470,
326,
1018,
11622,
18,
1377,
2974,
506,
8187,
18651,
326,
10643,
21896,
1674,
18,
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,
0,
0,
0,
0,
0,
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,
275,
5734,
49,
1231,
620,
2326,
1435,
3238,
1476,
288,
203,
3639,
2254,
5034,
312,
1231,
620,
273,
261,
67,
81,
1231,
17730,
18706,
13937,
380,
3671,
5147,
24899,
455,
6527,
861,
12,
20,
3719,
1769,
203,
3639,
2254... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
import "../interfaces/IDeFiPlaza.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC... | Emitting liquidity removal event to enable better governance decisions | emit LiquidityRemoved(msg.sender, outputToken, actualOutput, LPamount);
| 934,259 | [
1,
4625,
348,
7953,
560,
30,
225,
16008,
1787,
4501,
372,
24237,
14817,
871,
358,
4237,
7844,
314,
1643,
82,
1359,
2109,
12682,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3626,
511,
18988,
24237,
10026,
12,
3576,
18,
15330,
16,
876,
1345,
16,
3214,
1447,
16,
511,
52,
8949,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0xB3080a94cb91133789C5C69d6E28eBb0F88361be/sources/contracts/Token.sol | This is the main building block for smart contracts. Some string type variables to identify the token. The `public` modifier makes a variable readable from outside the contract. The fixed amount of tokens stored in an unsigned integer type variable. An address type variable is used to store ethereum accounts. A mappin... | contract Token {
string public name = "My Hardhat Token";
string public symbol = "MBT";
uint256 public totalSupply = 1000000;
address public owner;
mapping(address => uint256) balances;
pragma solidity ^0.8.4;
constructor(address _owner) {
balances[_owner] = totalSupply;
owne... | 12,506,444 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
326,
2774,
10504,
1203,
364,
13706,
20092,
18,
10548,
533,
618,
3152,
358,
9786,
326,
1147,
18,
1021,
1375,
482,
68,
9606,
7297,
279,
2190,
7471,
628,
8220,
326,
6835,
18,
1021,
5499,
384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3155,
288,
203,
565,
533,
1071,
508,
273,
315,
12062,
670,
1060,
11304,
3155,
14432,
203,
565,
533,
1071,
3273,
273,
315,
7969,
56,
14432,
203,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
273,
15088,
31,
203,
203,
565,
1... |
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure retur... | a zone owner can currently keep calling this to increase his dth balance inside the zone without a change in his sell price (= zone.staked) or tax amount he needs to pay TODO: - should we also increse his dth stake when he tops up his dth balance? - or should we limit his max topup to make his balance not bigger tha... | {
require(_sender == zoneOwner.addr, "caller is not zoneowner");
require(currentAuctionId == 0 || auctionIdToAuction[currentAuctionId].state == AuctionState.Ended, "cannot top up while auction running");
uint oldBalance = zoneOwner.balance;
uint newBalance = oldBalance.add(_dthAmount);
zoneOwner.... | 7,305,511 | [
1,
4625,
348,
7953,
560,
30,
225,
279,
4157,
3410,
848,
4551,
3455,
4440,
333,
358,
10929,
18423,
302,
451,
11013,
4832,
326,
4157,
2887,
279,
2549,
316,
18423,
357,
80,
6205,
261,
33,
4157,
18,
334,
9477,
13,
578,
5320,
3844,
3904,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
565,
2583,
24899,
15330,
422,
4157,
5541,
18,
4793,
16,
315,
16140,
353,
486,
4157,
8443,
8863,
203,
565,
2583,
12,
2972,
37,
4062,
548,
422,
374,
747,
279,
4062,
28803,
37,
4062,
63,
2972,
37,
4062,
548,
8009,
2... |
pragma solidity ^0.4.24;
/**
* @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 balanceOf(address who) public view returns (uint256);
function transfer(ad... | * @dev Function to mint tokens @param _to The address that will receive the minted tokens. @param _amount The amount of tokens to mint. @return A boolean that indicates if the operation was successful./ | function mint(
address _to,
uint256 _amount
)
hasMintPermission
canMint
public
returns (bool)
{
totalSupply_ = totalSupply_.add(_amount);
balances[_to] = balances[_to].add(_amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amoun... | 10,907,349 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
312,
474,
2430,
632,
891,
389,
869,
1021,
1758,
716,
903,
6798,
326,
312,
474,
329,
2430,
18,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
312,
474,
18,
632,
2463,
432,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
203,
565,
711,
49,
474,
5041,
203,
565,
848,
49,
474,
203,
565,
1071,
203,
565,
1135,
261,
6430,
13,
203,
565,
288,
203,
... |
//SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.10;
import "hardhat/console.sol";
import "./Gravity.sol";
// This test contract is used in conjuction with GravityERC721.sol to demonstrate
// that only Gravity.sol can call GravityERC721.sol. This fake contract will
// not be able to call
contract TestFakeGr... | This test contract is used in conjuction with GravityERC721.sol to demonstrate that only Gravity.sol can call GravityERC721.sol. This fake contract will not be able to call | contract TestFakeGravity is Gravity {
constructor(
bytes32 _gravityId,
address[] memory _validators,
uint256[] memory _powers)
pragma solidity ^0.8.10;
Gravity(_gravityId, _validators, _powers) {
}
}
| 12,876,034 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
1842,
6835,
353,
1399,
316,
10550,
4062,
598,
10812,
16438,
654,
39,
27,
5340,
18,
18281,
358,
302,
4758,
701,
340,
716,
1338,
10812,
16438,
18,
18281,
848,
745,
10812,
16438,
654,
39,
27,
534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7766,
25462,
14571,
16438,
353,
10812,
16438,
288,
203,
203,
565,
3885,
12,
203,
3639,
1731,
1578,
389,
2752,
16438,
548,
16,
203,
3639,
1758,
8526,
3778,
389,
23993,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
23509,
414,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import "@openzeppelin/contracts/utils/math/Math.sol";
import "../../utils/Timers.sol";
import "../ModuleBase.sol";
contract ActionModule is IModule, ModuleBase, Timers
{
string public constant override name = type(ActionModule).name;
... | buyout takes over ownership
| require(wallet.owner() == address(0)); | 1,386,439 | [
1,
4625,
348,
7953,
560,
30,
225,
30143,
659,
5530,
1879,
23178,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19177,
18,
8443,
1435,
422,
1758,
12,
20,
10019,
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,
-1... |
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balan... | CHANGE THIS. Update the contract name.
| contract IGCoin is StandardToken { | 9,873,301 | [
1,
4625,
348,
7953,
560,
30,
225,
26267,
20676,
18,
2315,
326,
6835,
508,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
13102,
27055,
353,
8263,
1345,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/80001/0x6695a003f7E1aE6F09af1DC673acef975Da17F74/sources/contracts/Viku1155.sol | @notice Counters used for tokenId iteration.@dev see {Counters}.@notice _tokenIdTracker holds the current counter value.@notice usedNonce is an array value used for duplicate sign restriction.@notice operator holds current contract operator.@notice TokenRoyalty is an array value used for storing Royalty info.@dev see{T... | {
using Counters for Counters.Counter;
using Strings for uint256;
Counters.Counter private _tokenIdTracker;
mapping(uint256 => string) private _tokenURIs;
mapping(uint256 => bool) private usedNonce;
address public operator;
mapping(uint256 => TokenRoyalty) private tokenRoyalty;
... | 9,518,963 | [
1,
4625,
348,
7953,
560,
30,
632,
20392,
9354,
87,
1399,
364,
1147,
548,
6532,
18,
36,
5206,
2621,
288,
18037,
5496,
36,
20392,
389,
2316,
548,
8135,
14798,
326,
783,
3895,
460,
18,
36,
20392,
1399,
13611,
353,
392,
526,
460,
1399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
2316,
548,
8135,
31,
203,
203,
565,
2874,
12,
11890,
5034,
516,
533,
13,
3238,
389... |
./full_match/4/0xB414BF497D4EC16cBa8c52b986bCF7428ECaFCee/sources/contracts/vrmaze.sol | uint256 public requested; Max. 10000 NFTs available; Start counting from 1 (instead of 0) | contract vrmazeworld is ERC721, Ownable, RandomlyAssigned {
using Strings for uint256;
uint256 public currentSupply = 0;
constructor()
ERC721("VRMAZEWORLD METAVERSE-002Test", "VRMAZETESTNET-META02")
RandomlyAssigned(200,1)
{
for (uint256 a = 1; a <= 200; a++) {
mint(msg.se... | 13,350,265 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
1071,
3764,
31,
4238,
18,
12619,
423,
4464,
87,
2319,
31,
3603,
22075,
628,
404,
261,
8591,
684,
434,
374,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
331,
8864,
1561,
359,
6245,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
16,
8072,
715,
20363,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
2254,
5034,
1071,
783,
3088,
1283,
273,
374,
31,
203,
21281,
203,
225,
... |
pragma solidity ^0.5.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC... | * @dev Approve by signature. Adapted from MakerDAO's Dai contract:/ | function permit(
address holder,
address spender,
uint256 nonce,
uint256 expiry,
bool allowed,
uint8 v,
bytes32 r,
bytes32 s
) public {
bytes32 digest =
keccak256(
abi.encodePacked(
"\x19\x01",
DOMAIN_SEPARATOR,
keccak256(
a... | 12,812,340 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
635,
3372,
18,
22792,
329,
628,
490,
6388,
18485,
1807,
463,
10658,
6835,
27824,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
21447,
12,
203,
565,
1758,
10438,
16,
203,
565,
1758,
17571,
264,
16,
203,
565,
2254,
5034,
7448,
16,
203,
565,
2254,
5034,
10839,
16,
203,
565,
1426,
2935,
16,
203,
565,
2254,
28,
331,
16,
203,
565,
1731,
1578,
436,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "./SafeMerkleDistributor.sol";
contract tBoneBoneMerkleDistributor is SafeMerkleDistributor {
constructor(address token_, bytes32 merkleRoot_) SafeMerkleDistributor(token_, merkleRoot_) public {}
}
// SPDX-License-Identifier: MIT
pragma solidity 0... | Increment the week (simulates the clearing of the claimedBitMap) Set the new merkle root | function updateMerkleRoot(bytes32 _merkleRoot) public override onlyOwner {
require(frozen, 'MerkleDistributor: Contract not frozen.');
week = week + 1;
merkleRoot = _merkleRoot;
emit MerkleRootUpdated(merkleRoot, week);
}
| 5,725,014 | [
1,
4625,
348,
7953,
560,
30,
225,
17883,
326,
4860,
261,
9812,
17099,
326,
29820,
434,
326,
7516,
329,
5775,
863,
13,
1000,
326,
394,
30235,
1365,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
8478,
15609,
2375,
12,
3890,
1578,
389,
6592,
15609,
2375,
13,
1071,
3849,
1338,
5541,
288,
203,
3639,
2583,
12,
28138,
16,
296,
8478,
15609,
1669,
19293,
30,
13456,
486,
12810,
1093,
1769,
203,
203,
3639,
4860,
273... |
pragma solidity ^0.4.24;/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than a... | for eth Wei, in token, by the decemal. the cost of 1 token
| uint256 Rate; | 210,285 | [
1,
4625,
348,
7953,
560,
30,
364,
13750,
1660,
77,
16,
316,
1147,
16,
635,
326,
443,
311,
81,
287,
18,
326,
6991,
434,
404,
1147,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13025,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0xff0c61e6488e2BC6AfaF95165c6E4bDa3871811C/sources/VisionERC721.sol | Interfaces for ERC20 and ERC721 Constructor function to set the rewards token and the NFT collection addresses | contract VisionERC721 is ReentrancyGuard, ThirdwebContract {
using SafeERC20 for IERC20;
IERC20 public immutable rewardsToken;
IERC721 public immutable nftCollection;
pragma solidity ^0.8.4;
constructor(IERC721 _nftCollection, IERC20 _rewardsToken) {
nftCollection = _nftCollection;
rew... | 704,048 | [
1,
4625,
348,
7953,
560,
30,
225,
27152,
364,
4232,
39,
3462,
471,
4232,
39,
27,
5340,
11417,
445,
358,
444,
326,
283,
6397,
1147,
471,
326,
423,
4464,
1849,
6138,
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,
16351,
776,
1951,
654,
39,
27,
5340,
353,
868,
8230,
12514,
16709,
16,
935,
6909,
4875,
8924,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
654,
39,
3462,
1071,
11732,
283,
6397,
13... |
// Copyright 2020 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ... | @notice Get the hash of a word in an array of bytes @param _data array of bytes @param _wordIndex index of word inside the bytes to get the hash of @dev if word is incomplete (< 8 bytes) it gets padded with zeroes TODO: in .lua this just returns zero, but this might be more consistent | function getHashOfWordAtIndex(bytes calldata _data, uint256 _wordIndex)
public
pure
returns (bytes32)
{
uint256 start = _wordIndex << L_WORD_SIZE;
uint256 end = start + (1 << L_WORD_SIZE);
require(start <= _data.length, "word out of bounds");
if (end <= ... | 5,403,788 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
326,
1651,
434,
279,
2076,
316,
392,
526,
434,
1731,
632,
891,
389,
892,
526,
434,
1731,
632,
891,
389,
1095,
1016,
770,
434,
2076,
4832,
326,
1731,
358,
336,
326,
1651,
434,
632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16075,
951,
3944,
24499,
12,
3890,
745,
892,
389,
892,
16,
2254,
5034,
389,
1095,
1016,
13,
203,
3639,
1071,
203,
3639,
16618,
203,
3639,
1135,
261,
3890,
1578,
13,
203,
565,
288,
203,
3639,
2254,
5034,
787,
273,
389,
... |
./partial_match/1/0xE4fa14E9B59944843FA328e91b364E027fC42678/sources/YeldWeeklyClaim.sol | @notice Must re-add the existing receivers that want to be kept Reset the array Re-add the elements | function changeReceiverAndAmounts(address[] memory _receivers, uint256[] memory _amounts) public onlyOwner whenNotPaused {
address[] memory empty;
receivers = empty;
for (uint256 i = 0; i < receivers.length; i++) {
receivers.push(_receivers[i]);
receiveAmounts[_receivers[i]] = _amounts[i];
... | 4,232,190 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
6753,
283,
17,
1289,
326,
2062,
22686,
716,
2545,
358,
506,
16555,
7151,
326,
526,
868,
17,
1289,
326,
2186,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2549,
12952,
1876,
6275,
87,
12,
2867,
8526,
3778,
389,
8606,
6760,
16,
2254,
5034,
8526,
3778,
389,
8949,
87,
13,
1071,
1338,
5541,
1347,
1248,
28590,
288,
203,
565,
1758,
8526,
3778,
1008,
31,
203,
565,
22686,
273,
10... |
//File: node_modules/zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function ... | Eidoo interface requires price as tokens/ether, therefore the discounts are presented as bonus tokens. Vesting contracts. Vesting wallets. Lets owner manually end crowdsale. | contract UacCrowdsale is CrowdsaleBase {
uint256 public constant PRESALE_VAULT_START = END_TIME + 7 days;
uint256 public constant PRESALE_CAP = 17584778551358900100698693;
uint256 public constant CROWDSALE_CAP = 7.5e6 * 1e18;
uint256 public constant FOUNDERS_CAP = 12e6 * 1e18;
uint256 public consta... | 1,317,332 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
350,
5161,
1560,
4991,
6205,
487,
2430,
19,
2437,
16,
13526,
326,
1015,
8008,
854,
31280,
487,
324,
22889,
2430,
18,
776,
10100,
20092,
18,
776,
10100,
17662,
2413,
18,
511,
2413,
3410,
10036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
587,
1077,
39,
492,
2377,
5349,
353,
385,
492,
2377,
5349,
2171,
288,
203,
203,
565,
2254,
5034,
1071,
5381,
7071,
5233,
900,
67,
27722,
2274,
67,
7570,
273,
7273,
67,
4684,
397,
2371,
4681,
31,
203,
565,
2254,
5034,
1071,... |
./full_match/5/0x31FFfe12D71786a51f09684E0cfc7faD426bf9BB/sources/contracts/staking/libs/Rebates.sol | * @title A collection of data structures and functions to manage Rebates Used for low-level state changes, require() conditions should be evaluated at the caller function scope./ Tracks stats for allocations closed on a particular epoch for claiming The pool also keeps tracks of total query fees collected... | library Rebates {
using SafeMath for uint256;
using Rebates for Rebates.Pool;
struct Pool {
}
function init(
Rebates.Pool storage pool,
uint32 _alphaNumerator,
uint32 _alphaDenominator
) internal {
pool.alphaNumerator = _alphaNumerator;
pool.alphaDenomi... | 7,050,439 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
432,
1849,
434,
501,
12597,
471,
4186,
358,
10680,
868,
70,
815,
3639,
10286,
364,
4587,
17,
2815,
919,
3478,
16,
2583,
1435,
4636,
1410,
506,
12697,
3639,
622,
326,
4894,
445,
2146,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
868,
70,
815,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
868,
70,
815,
364,
868,
70,
815,
18,
2864,
31,
203,
203,
203,
565,
1958,
8828,
288,
203,
565,
289,
203,
203,
565,
445,
1208,
12,
203... |
/*
Copyright 2021 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | Base position unit. When negative, position is short
| int256 baseUnit; | 7,220,876 | [
1,
4625,
348,
7953,
560,
30,
225,
3360,
1754,
2836,
18,
5203,
6092,
16,
1754,
353,
3025,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
3639,
509,
5034,
1026,
2802,
31,
1171,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
import "openzeppelin-solidity/contracts/introspection/ERC165.sol";
import "./IRegistry.sol";
contract Registry is IRegistry, ERC165 {
struct OrganizationRegistration {
bytes32 organizationName;
address owner;
// member indexing note:
// case (members[some... | no-op if tag already exists add the tag to the type repository level tag index add the type repository to the global tag index creating a list object for this tag if it does not already exist | function addTagToTypeRepositoryRegistration(bytes32 orgName, bytes32 repositoryName, bytes32 tagName) internal {
if (orgsByName[orgName].typeReposByName[repositoryName].tagsByName[tagName].tagName == bytes32(0x0)) {
Tag memory tagObj;
orgsByName[orgName].typeReposByName[repositoryNa... | 12,630,395 | [
1,
4625,
348,
7953,
560,
30,
225,
1158,
17,
556,
309,
1047,
1818,
1704,
527,
326,
1047,
358,
326,
618,
3352,
1801,
1047,
770,
527,
326,
618,
3352,
358,
326,
2552,
1047,
770,
4979,
279,
666,
733,
364,
333,
1047,
309,
518,
1552,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21495,
31616,
3305,
7843,
12,
3890,
1578,
2358,
461,
16,
1731,
1578,
29455,
16,
1731,
1578,
7196,
13,
2713,
288,
203,
203,
3639,
309,
261,
280,
564,
5911,
63,
3341,
461,
8009,
723,
28453,
5911,
63,
9071,
461,
8009,
4156... |