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 |
|---|---|---|---|---|---|---|
pragma solidity ^0.5.0;
import "openzeppelin-solidity/contracts/crowdsale/emission/AllowanceCrowdsale.sol";
import "openzeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol";
import "openzeppelin-solidity/contracts/crowdsale/validation/PausableCrowdsale.sol";
import "openzeppelin-solidity/contracts/cro... | * @dev Whitelist addresses with an individual cap./ | function whitelistUsersWithIndividualCaps(address[] memory users, uint256[] memory individualCaps) public onlyCapper onlyWhitelistAdmin {
require(users.length <= 128, "Users length exceeds the maximum allowed");
require(users.length == individualCaps.length, "Users length is not equal to individual caps");
... | 14,050,638 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3497,
7523,
6138,
598,
392,
7327,
3523,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
10734,
6588,
1190,
29834,
24193,
12,
2867,
8526,
3778,
3677,
16,
2254,
5034,
8526,
3778,
7327,
24193,
13,
1071,
1338,
4664,
457,
1338,
18927,
4446,
288,
203,
565,
2583,
12,
5577,
18,
2469,
1648,
8038,
16,
315,
6588,
769,
... |
./partial_match/1/0x21A7288DDca0Cf406d0dF0c8A1Db15F94Caf4bEc/sources/@spanning/contracts/token/ERC721/SpanningERC721.sol | * @dev Allows an account to have control over another account's tokens. @param receiverAddress - Address of the allowance receiver (gains control) @param shouldApprove - Whether to approve or revoke the approval/ | function setApprovalForAll(bytes32 receiverAddress, bool shouldApprove)
public
virtual
override
{
_setApprovalForAll(receiverAddress, shouldApprove);
}
| 4,024,961 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
392,
2236,
358,
1240,
3325,
1879,
4042,
2236,
1807,
2430,
18,
632,
891,
5971,
1887,
300,
5267,
434,
326,
1699,
1359,
5971,
261,
75,
4167,
3325,
13,
632,
891,
1410,
12053,
537,
300,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
23461,
1290,
1595,
12,
3890,
1578,
5971,
1887,
16,
1426,
1410,
12053,
537,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
203,
565,
288,
203,
3639,
389,
542,
23461,
1290,
1595,
12,
24454,
1887,
16,
1410,
12... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "../libraries/SafeMath.sol";
import "../libraries/SafeERC20.sol";
import "../interfaces/IERC20.sol";
import "./interfaces/IJoeERC20.sol";
import "./interfaces/IJoePair.sol";
import "./interfaces/IJoeFactory.sol";
import "... | IJoeFactory(0x9Ad6C38BE94206cA50bb0d90783181662f0Cfa10);
| IJoeFactory public joeFactory; | 6,415,502 | [
1,
4625,
348,
7953,
560,
30,
225,
467,
46,
15548,
1733,
12,
20,
92,
29,
1871,
26,
39,
7414,
5948,
11290,
3462,
26,
71,
37,
3361,
9897,
20,
72,
9349,
8285,
23,
2643,
2313,
8898,
74,
20,
39,
507,
2163,
1769,
203,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
46,
15548,
1733,
1071,
525,
15548,
1733,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.10;
import {DSTest} from "ds-test/test.sol";
import {ZoraModuleManager} from "../../ZoraModuleManager.sol";
import {ZoraProtocolFeeSettings} from "../../auxiliary/ZoraProtocolFeeSettings/ZoraProtocolFeeSettings.sol";
import {ZoraRegistrar} from "../utils/users/Z... | Cheatcodes Deploy V3 Init V3 Create user Deploy mocks Mint user token | function setUp() public {
vm = VM(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);
registrar = new ZoraRegistrar();
ZPFS = new ZoraProtocolFeeSettings();
ZMM = new ZoraModuleManager(address(registrar), address(ZPFS));
erc20TransferHelper = new ERC20TransferHelper(address(ZMM));
... | 15,813,399 | [
1,
4625,
348,
7953,
560,
30,
225,
22682,
270,
7000,
7406,
776,
23,
4378,
776,
23,
1788,
729,
7406,
15895,
490,
474,
729,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24292,
1435,
1071,
288,
203,
3639,
4268,
273,
8251,
12,
20,
92,
27,
2163,
10580,
5908,
7228,
507,
12416,
69,
3672,
26,
5558,
74,
42,
5520,
6675,
40,
9470,
74,
9599,
42,
25,
70,
21,
5698,
2138,
40,
1769,
203,
203,
36... |
pragma solidity ^0.4.24;
contract PairingTest {
// the following two functions execute successfully, but show exaclty the opposite behaviour to the python implementation
// notice that the python implemenation, when printing point from FQ2, flips the order of the coordinates
function test_pairing() publ... | y coordinate of -G1
| input[7] = 21888242871839275222246405745257275088696311157297823662689037894645226208581; | 1,078,575 | [
1,
4625,
348,
7953,
560,
30,
225,
677,
7799,
434,
300,
43,
21,
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,
810,
63,
27,
65,
273,
576,
2643,
5482,
3247,
6030,
27,
2643,
5520,
5324,
25,
3787,
23622,
1105,
6260,
5608,
25,
2947,
27,
5324,
3361,
28,
5292,
29,
4449,
2499,
27985,
5540,
8285,
4366,
6028,
5558,
6675,
4630,
27,
6675,
24,
... |
// File: contracts/handlers/maker/IDSProxy.sol
pragma solidity ^0.6.0;
interface IDSProxy {
function execute(address _target, bytes calldata _data)
external
payable
returns (bytes32 response);
function owner() external view returns (address);
function setAuthority(address authori... | if amount == uint256(-1) return balance of Proxy selector of "safeLockGem(address,address,uint256,uint256,bool,address)" | ) external payable {
IDSProxy proxy = IDSProxy(_getProxy(address(this)));
address owner = _getProxy(_getSender());
address token = IMakerGemJoin(gemJoin).gem();
wad = _getBalance(token, wad);
IERC20(token).safeApprove(address(proxy), wad);
try
proxy.execut... | 571,138 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
3844,
422,
2254,
5034,
19236,
21,
13,
327,
11013,
434,
7659,
3451,
434,
315,
4626,
2531,
43,
351,
12,
2867,
16,
2867,
16,
11890,
5034,
16,
11890,
5034,
16,
6430,
16,
2867,
2225,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3903,
8843,
429,
288,
203,
3639,
1599,
55,
3886,
2889,
273,
1599,
55,
3886,
24899,
588,
3886,
12,
2867,
12,
2211,
3719,
1769,
203,
3639,
1758,
3410,
273,
389,
588,
3886,
24899,
588,
12021,
10663,
203,
3639,
1758,
1147,
... |
./full_match/5/0xA13E43d299dd822677f3Cc62d3E77b84DC3665c3/sources/project_/contracts/base/MetawinMinterManager.sol | * @dev Contract defining Metawin NFT minting environments Rules: Max 10 mints per transaction (editable by the admin) Price: Dutch auction The ContractStates module facilitates setting time-based state transitions. With {mint} permitted only during state "1", minting can be time-bound and divided in... | contract MetawinMinterManager is Roles, MintingEvents, ReentrancyGuard {
using Clones for address;
mapping(uint8 => MetawinMinterProxy) public minterProxy;
MetawinMinterProxy private immutable _MINTER_IMPLEMENTATION;
event NewMinter(address indexed minterAddress, uint8 indexed minterId, uint64[2] ind... | 1,942,857 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
9364,
6565,
8082,
423,
4464,
312,
474,
310,
15900,
15718,
30,
377,
4238,
1728,
312,
28142,
1534,
2492,
261,
19653,
635,
326,
3981,
13,
377,
20137,
30,
463,
322,
343,
279,
4062,
377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6565,
8082,
49,
2761,
1318,
353,
19576,
16,
490,
474,
310,
3783,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
1450,
3905,
5322,
364,
1758,
31,
203,
203,
565,
2874,
12,
11890,
28,
516,
6565,
8082,
49,
2761,
3886,
13,
... |
./full_match/4/0xb784Bac8F3D1Dc6b6ACc1823Fc58d4A2D5b2Ecc6/sources/contracts/1_Storage.sol | We have to convert string to bytes to check for existence | function uri(
uint256 _id
) override public view returns (string memory) {
require(_exists(_id), "ERC1155Tradable#uri: NONEXISTENT_TOKEN");
bytes memory customUriBytes = bytes(customUri[_id]);
if (customUriBytes.length > 0) {
return string(abi.encodePacked(customUri[_id], Strings.toString(_i... | 12,298,412 | [
1,
4625,
348,
7953,
560,
30,
225,
1660,
1240,
358,
1765,
533,
358,
1731,
358,
866,
364,
15782,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2003,
12,
203,
565,
2254,
5034,
389,
350,
203,
225,
262,
3849,
1071,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
565,
2583,
24899,
1808,
24899,
350,
3631,
315,
654,
39,
2499,
2539,
1609,
17394,
7,
1650,
30,
18708,
11838,... |
pragma solidity ^0.5.0;
import "./OfferingRegistry.sol";
import "./Offering.sol";
import "@ensdomains/ens/contracts/ENS.sol";
import "@ensdomains/ens/contracts/HashRegistrar.sol";
/**
* @title OfferingFactory
* @dev Base contract factory for creating new offerings
*/
contract OfferingFactory {
ENS public ens... | * @dev Deploys new BuyNow offering and registers it to OfferingRegistry @param name string Plaintext ENS name @param price uint The price of the offering/ | function createOffering(
bytes32 node,
string memory name,
bytes32 labelHash,
uint price
) public {
Offering newOffering = new Offering(ens, offeringRegistry, offeringRegistry.emergencyMultisig());
uint8 version = 1;
newOffering.construct(
nod... | 12,796,922 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4019,
383,
1900,
394,
605,
9835,
8674,
10067,
310,
471,
10285,
518,
358,
25753,
310,
4243,
632,
891,
508,
533,
3008,
10133,
512,
3156,
508,
632,
891,
6205,
2254,
1021,
6205,
434,
326,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
17800,
12,
203,
3639,
1731,
1578,
756,
16,
203,
3639,
533,
3778,
508,
16,
203,
3639,
1731,
1578,
1433,
2310,
16,
203,
3639,
2254,
6205,
203,
565,
262,
1071,
288,
203,
3639,
25753,
310,
394,
17800,
273,
394,
25753,
... |
./partial_match/1/0xa339Ca97e74116D3eE295DBA37335c09a5383b82/sources/GsnPs.sol | Only the Owner of this contract can run this function.
| require(msg.sender == owner, "You're not owner of the account"); | 4,050,651 | [
1,
4625,
348,
7953,
560,
30,
225,
5098,
326,
16837,
434,
333,
6835,
848,
1086,
333,
445,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
16,
315,
6225,
4565,
486,
3410,
434,
326,
2236,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/56/0x01C9e9E4C89e2DBf895900F2b06DeDD6d7B2C04B/sources/contracts/SYFI.sol | * @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to `transfer`, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a `Transfer` event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `... | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_balances[sender] = _balances[sender].sub(amount);
_balanc... | 3,245,745 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
2430,
1375,
8949,
68,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
353,
2713,
445,
353,
7680,
358,
1375,
13866,
9191,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
3639,
2583,
12,
2036... |
./full_match/432204/0xB45b00a5011c40D34fcaDB8D54104c1461d18937/sources/contracts/PortfolioBridgeSub.sol | * @notice Updates volume for token. Used only for withdrawals from the subnet. @dev Does nothing if there is no cap/limit for the token Volume treshold check for multiple small transfers within a epoch. @param _token Token symbol @param _amount Amount to add to volume/ Default behavior no cap on any tokens | function updateVolume(bytes32 _token, uint256 _amount) private {
if (epochLength == 0) {
return;
}
uint256 cap = epochVolumeCaps[_token];
if (cap == 0) {
return;
}
uint256 volume = epochVolumes[_token];
uint256 timestamp = block.timesta... | 16,381,706 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
15419,
3940,
364,
1147,
18,
10286,
1338,
364,
598,
9446,
1031,
628,
326,
8821,
18,
632,
5206,
377,
9637,
5083,
309,
1915,
353,
1158,
3523,
19,
3595,
364,
326,
1147,
7404,
268,
3444,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4545,
12,
3890,
1578,
389,
2316,
16,
2254,
5034,
389,
8949,
13,
3238,
288,
203,
3639,
309,
261,
12015,
1782,
422,
374,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
3639,
2254,
5034,
3523,
273,
7632,
4545,
2... |
pragma solidity ^0.5.12;
pragma experimental ABIEncoderV2;
/*-
* Copyright (c) 2019 @secondphonejune
* All rights reserved.
*
* This code is derived by @secondphonejune (Telegram ID)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... | function submitVote(uint256 voterID, uint256 hashedPhone,require(now >= votingStartTime);require(now < votingEndTime);require(isValidVoter(voterID,hashedPhone,council)); | function submitVote(uint256 voterID, uint256 hashedEmail,
string memory council, string memory singleVote) public returns(bool){
require(isRunningElection);
require(approvedVoteBox[msg.sender]);
require(isValidVoter(voterID,hashedEmail,council));
require(!voteDictionary[singleVote]);
voteListByVoter[vo... | 7,293,106 | [
1,
4625,
348,
7953,
560,
30,
445,
4879,
19338,
12,
11890,
5034,
331,
20005,
734,
16,
2254,
5034,
14242,
9451,
16,
6528,
12,
3338,
1545,
331,
17128,
13649,
1769,
6528,
12,
3338,
411,
331,
17128,
25255,
1769,
6528,
12,
26810,
58,
20005,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
4879,
19338,
12,
11890,
5034,
331,
20005,
734,
16,
2254,
5034,
14242,
4134,
16,
7010,
202,
565,
533,
3778,
276,
465,
71,
330,
16,
533,
3778,
2202,
19338,
13,
1071,
1135,
12,
6430,
15329,
203,
202,
202,
6528,
12,
291,
... |
./partial_match/42/0x8cD0E763DaC1e343863eB391c9A03797463d48C0/sources/DynamicDollarFinance.sol | * @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ... | function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "Governance::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
r... | 3,411,026 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10229,
326,
6432,
1300,
434,
19588,
364,
392,
2236,
487,
434,
279,
1203,
1300,
632,
5206,
3914,
1300,
1297,
506,
279,
727,
1235,
1203,
578,
469,
333,
445,
903,
15226,
358,
5309,
7524,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1689,
2432,
29637,
12,
2867,
2236,
16,
2254,
1203,
1854,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
12,
2629,
1854,
411,
1203,
18,
2696,
16,
315,
43,
1... |
./full_match/80001/0xad8240064554863635c83C526cFee0c02E5ff56e/sources/project:/contracts/Bucket.sol | * @dev set an array of stock for the blind box/ | function _setStock(
uint256 ledgerType,
uint8[] memory typeDays,
uint16[] memory stock
) internal {
BucketStock storage bucketStock = ledgerBucketStock[ledgerType];
uint16 itemCount = 0;
uint16[] storage stockPrefixSum = bucketStock.stockPrefixSum;
uint8[]... | 9,515,470 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
444,
392,
526,
434,
12480,
364,
326,
29696,
3919,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
17821,
12,
203,
3639,
2254,
5034,
16160,
559,
16,
203,
3639,
2254,
28,
8526,
3778,
618,
9384,
16,
203,
3639,
2254,
2313,
8526,
3778,
12480,
203,
565,
262,
2713,
288,
203,
3639,
7408,
17821,
2502,
2783,
17821,
... |
./partial_match/1/0x952E116156D4b0ae398c1F85dD7683957be08526/sources/TokenMintERC20MintableToken.sol | * @title TokenMintERC20MintableToken @dev Mintable ERC20 token with burning and optional functions implemented. Any address with minter role can mint new tokens. For full specification of ERC-20 standard see:/ | contract TokenMintERC20MintableToken is ERC20Mintable {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor(string memory name, string memory symbol, uint8 decimals, uint256 initialSupply, address tokenOwnerAddress) public {
_name = name;
_symbol = symbol;
... | 15,995,293 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3155,
49,
474,
654,
39,
3462,
49,
474,
429,
1345,
632,
5206,
490,
474,
429,
4232,
39,
3462,
1147,
598,
18305,
310,
471,
3129,
4186,
8249,
18,
5502,
1758,
598,
1131,
387,
2478,
848,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
16351,
3155,
49,
474,
654,
39,
3462,
49,
474,
429,
1345,
353,
4232,
39,
3462,
49,
474,
429,
288,
203,
203,
565,
533,
3238,
389,
529,
31,
203,
565,
533,
3238,
389,
7175,
31,
203,
565,
2254,
28,
3238,
389,
31734,
31,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import {SafeMathUpgradeable} from "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import {MoonriverBRLCTokenUpgradeable} from "./MoonriverBRLCTokenUpgradeable.sol";
import {IERC20Mintable} from "../../core/interfaces/IERC20Mintable.sol... | * @dev Throws if called by any account other than a minter/ | modifier onlyMinters() {
require(_minters[_msgSender()], "MintAndBurn: caller is not a minter");
_;
}
| 12,712,497 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22435,
309,
2566,
635,
1281,
2236,
1308,
2353,
279,
1131,
387,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
49,
2761,
87,
1435,
288,
203,
3639,
2583,
24899,
1154,
5432,
63,
67,
3576,
12021,
1435,
6487,
315,
49,
474,
1876,
38,
321,
30,
4894,
353,
486,
279,
1131,
387,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
}
/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of Dap... | Calculates the lastest exchange rate Uses sushi rate and xSUSHI conversion | function latestAnswer() external view override returns (int256) {
return int256(
uint256(sushiOracle.latestAnswer())
.mul(sushi.balanceOf(address(bar)))
/ bar.totalSupply()
);
}
| 195,214 | [
1,
4625,
348,
7953,
560,
30,
225,
26128,
326,
1142,
395,
7829,
4993,
14854,
272,
1218,
77,
4993,
471,
619,
6639,
2664,
45,
4105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4891,
13203,
1435,
3903,
1476,
3849,
1135,
261,
474,
5034,
13,
288,
203,
3639,
327,
509,
5034,
12,
203,
5411,
2254,
5034,
12,
87,
1218,
77,
23601,
18,
13550,
13203,
10756,
203,
7734,
263,
16411,
12,
87,
1218,
77,
18,
... |
pragma solidity ^0.5.0;
// Copyright 2019 OpenST Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... | * @notice Asserts that both given arrays have the given length. @param _length The length to check for. @param _addresses The array of addresses to check. @param _weights The array of weights to check./ | function assertValidatorUpdatesLength(
uint256 _length,
address[] memory _addresses,
uint256[] memory _weights
)
private
{
Assert.equal(
_addresses.length,
_length,
"There should be the correct number of validator updates."
... | 6,432,162 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5452,
87,
716,
3937,
864,
5352,
1240,
326,
864,
769,
18,
632,
891,
389,
2469,
1021,
769,
358,
866,
364,
18,
632,
891,
389,
13277,
1021,
526,
434,
6138,
358,
866,
18,
632,
891,
389,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1815,
5126,
5121,
1782,
12,
203,
3639,
2254,
5034,
389,
2469,
16,
203,
3639,
1758,
8526,
3778,
389,
13277,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
9727,
203,
565,
262,
203,
3639,
3238,
203,
565,
288,
203,
3639,
5452... |
// Dependency file: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 46,506 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
3... |
pragma solidity >=0.5.10;
import 'ROOT/libraries/token/IStandardToken.sol';
import 'ROOT/libraries/token/ERC777.sol';
/**
* @title Standard Token
* @notice An ERC20 / ERC777 wrapper which adds the ability to increase or decrease approvals and do no-ERC777-hook ERC20 transfers
* @dev internalNoHooksTransfer should... | * @notice ERC20 Transfer without calling ERC777 sender or recipient hooks @param _recipient The recipient of tokens @param _amount The amount of tokens to transfer @return bool Returns true/ | function noHooksTransfer(address _recipient, uint256 _amount) external returns (bool) {
internalNoHooksTransfer(msg.sender, _recipient, _amount);
return true;
}
| 12,696,636 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4232,
39,
3462,
12279,
2887,
4440,
4232,
39,
14509,
5793,
578,
8027,
9153,
632,
891,
389,
20367,
1021,
8027,
434,
2430,
632,
891,
389,
8949,
1021,
3844,
434,
2430,
358,
7412,
632,
2463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1158,
13620,
5912,
12,
2867,
389,
20367,
16,
2254,
5034,
389,
8949,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2713,
2279,
13620,
5912,
12,
3576,
18,
15330,
16,
389,
20367,
16,
389,
8949,
1769,
203,
3639,
327,
638,
... |
./partial_match/1/0xCF21cffdBF9c40684A460B72631cce617A897b1a/sources/XPNftOpenSea.sol | * @dev Standard math utilities missing in the Solidity language./ | library Math {
}
enum Rounding {
}
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
function average(uint256 a, uint256 b) internal pu... | 16,112,959 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8263,
4233,
22538,
3315,
316,
326,
348,
7953,
560,
2653,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
12083,
2361,
288,
203,
97,
203,
203,
203,
565,
2792,
11370,
310,
288,
203,
565,
289,
203,
203,
565,
445,
943,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
279,
405... |
/**
*Submitted for verification at Etherscan.io on 2021-08-26
*/
pragma solidity ^0.5.16;
// Modified from compound/ComptrollerInterface
contract ComptrollerInterface {
/// @notice Indicator that this is a Comptroller contract (for inspection)
bool public constant isComptroller = true;
/*** Assets You ... | override borrowRatePerBlock | function borrowRatePerBlock() external view returns (uint) {
return 0;
}
| 2,254,603 | [
1,
4625,
348,
7953,
560,
30,
225,
3849,
29759,
4727,
2173,
1768,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29759,
4727,
2173,
1768,
1435,
3903,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
374,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x8A274B1194f614EF984a0B8669D86DA24225CD53/sources/SpendableWallet.sol | index of created contracts deploy a new contract | contract SpendableWalletFactory is Factory {
address[] public spendableWallets;
function newPaymentAddress(address _token, address _owner)
public
returns(address newContract)
constructor() public Factory("1.0.3") {}
{
SpendableWallet spendableWallet = new SpendableWallet(_token... | 4,302,662 | [
1,
4625,
348,
7953,
560,
30,
225,
770,
434,
2522,
20092,
7286,
279,
394,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
348,
1302,
429,
16936,
1733,
353,
7822,
288,
203,
565,
1758,
8526,
1071,
17571,
429,
26558,
2413,
31,
203,
203,
203,
565,
445,
394,
6032,
1887,
12,
2867,
389,
2316,
16,
1758,
389,
8443,
13,
203,
3639,
1071,
203,
3639,
1135... |
pragma solidity ^0.4.18;
/**
*
* @author <newtwist@protonmail.com>
*
* Version F
*
* Overview:
* This contract implements a blind auction for burnable tokens. Each secret bid consists
* of a hashed bid-tuple, (`price`, `quantity`, `salt`), where price is the maximum amount
* of ether (in szabo) a ... | funds deposited by bidder
| uint deposit; | 12,732,496 | [
1,
4625,
348,
7953,
560,
30,
225,
284,
19156,
443,
1724,
329,
635,
9949,
765,
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,
565,
2254,
443,
1724,
31,
6647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x291c2486e84f8248f05aC89f172E9928825C8Cf3/sources/VoteProxy.sol | `hat` address is unique root user (has every role) and the unique owner of role 0 (typically 'sys' or 'internal') | contract DSChief is DSRoles, DSChiefApprovals {
constructor(DSToken GOV, DSToken IOU, uint MAX_YAYS)
DSChiefApprovals (GOV, IOU, MAX_YAYS)
public
{
authority = this;
owner = 0;
}
function setOwner(address owner_) public {
owner_;
revert();
}
... | 16,160,598 | [
1,
4625,
348,
7953,
560,
30,
225,
1375,
11304,
68,
1758,
353,
3089,
1365,
729,
261,
5332,
3614,
2478,
13,
471,
326,
3089,
3410,
434,
2478,
374,
261,
12846,
6478,
296,
9499,
11,
578,
296,
7236,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
8678,
782,
28515,
353,
8678,
6898,
16,
8678,
782,
28515,
12053,
4524,
288,
203,
203,
565,
3885,
12,
40,
882,
969,
12389,
58,
16,
463,
882,
969,
1665,
57,
16,
2254,
4552,
67,
61,
5255,
55,
13,
203,
2398,
8678,
782,
28515,... |
// Sources flattened with hardhat v2.6.1 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.3.2
// 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 ar... | start a new challenge @param chainID chainid @param header chainbatch header @param proposedHash encrypted hash of the correct state @param keyhash hash of the decryption key @dev why do we ask for key and keyhash? because we want verifiers compute the state instead of just copying from other verifiers. | function newChallenge(uint256 chainID, Lib_OVMCodec.ChainBatchHeader calldata header, bytes calldata proposedHash, bytes calldata keyhash)
public onlyWhitelisted onlyStaked {
uint tempIndex = chain_under_challenge[chainID] - 1;
require(tempIndex == 0 || block.timestamp - challenges[tempIndex].... | 366,226 | [
1,
4625,
348,
7953,
560,
30,
225,
787,
279,
394,
12948,
632,
891,
27756,
2687,
350,
632,
891,
1446,
2687,
5303,
1446,
632,
891,
20084,
2310,
6901,
1651,
434,
326,
3434,
919,
632,
891,
498,
2816,
1651,
434,
326,
27906,
498,
632,
5206... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
18359,
12,
11890,
5034,
27756,
16,
10560,
67,
51,
7397,
11008,
18,
3893,
4497,
1864,
745,
892,
1446,
16,
1731,
745,
892,
20084,
2310,
16,
1731,
745,
892,
498,
2816,
13,
203,
4202,
1071,
1338,
18927,
329,
1338,
510,... |
// 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_826(address spender, uint value) public returns (bool ok) {
_approvals[msg.sender][spender] = value;
emit Approval( msg.sender, spender, value );
return true;
}
| 6,454,539 | [
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,
28,
5558,
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/3/0xD96Ae6597Cb6EBa2ab287FdE95D746Fd5F71f7B8/sources/contracts/boltutoken.sol | devWalletAddress = 0x9a20DB95AceE2f85f6A3ecAe91F41042acE89Fe8; | function addliquidity(uint256 amount) public payable
{
uint256 values = address(this).balance;
uniswap = IUniswap(uniswapv2);
_approve(address(this),address(uniswap),amount);
uint256 deadline = block.timestamp + 1000000;
}
| 8,135,483 | [
1,
4625,
348,
7953,
560,
30,
225,
4461,
16936,
1887,
273,
374,
92,
29,
69,
3462,
2290,
8778,
37,
311,
41,
22,
74,
7140,
74,
26,
37,
23,
557,
37,
73,
12416,
42,
24,
2163,
9452,
1077,
41,
6675,
2954,
28,
31,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
549,
372,
24237,
12,
11890,
5034,
3844,
13,
1071,
8843,
429,
203,
565,
288,
203,
3639,
2254,
5034,
924,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
203,
3639,
640,
291,
91,
438,
273,
467,
984,
291,
91,
438,
12,
... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ /... | Give old / bridge tokens to the sender | TransferHelper.safeTransfer(bridge_token_address, msg.sender, bridge_tokens_out);
| 1,090,353 | [
1,
4625,
348,
7953,
560,
30,
225,
22374,
1592,
342,
10105,
2430,
358,
326,
5793,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
12279,
2276,
18,
4626,
5912,
12,
18337,
67,
2316,
67,
2867,
16,
1234,
18,
15330,
16,
10105,
67,
7860,
67,
659,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-06-24
*/
pragma solidity ^0.4.23;
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;
}
... | * @title ShihTzuCoin @dev Contract to create the Shih Tzu Coin/ | contract ShihTzuCoin is CrowdsaleToken {
string public constant name = "Shih Tzu Coin";
string public constant symbol = "SHIH";
uint32 public constant decimals = 1;
} | 15,315,978 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
2638,
7392,
56,
94,
89,
27055,
632,
5206,
13456,
358,
752,
326,
2638,
7392,
399,
94,
89,
28932,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2638,
7392,
56,
94,
89,
27055,
353,
385,
492,
2377,
5349,
1345,
288,
203,
565,
533,
1071,
5381,
508,
273,
315,
1555,
7392,
399,
94,
89,
28932,
14432,
203,
565,
533,
1071,
5381,
3273,
273,
315,
2664,
45,
44,
14432,
203,
5... |
pragma solidity 0.4.24;
import "../upgradeability/EternalStorage.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../interfaces/IRewardableValidators.sol";
import "./FeeTypes.sol";
contract BaseFeeManager is EternalStorage, FeeTypes {
using SafeMath for uint256;
event HomeFeeUpdated(... | keccak256(abi.encodePacked("foreignFee"))
| bytes32 internal constant FOREIGN_FEE_STORAGE_KEY = 0x68c305f6c823f4d2fa4140f9cf28d32a1faccf9b8081ff1c2de11cf32c733efc; | 6,397,870 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
2932,
12774,
14667,
6,
3719,
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,... | [
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,
1731,
1578,
2713,
5381,
478,
8607,
10452,
67,
8090,
41,
67,
19009,
67,
3297,
273,
374,
92,
9470,
71,
5082,
25,
74,
26,
71,
28,
4366,
74,
24,
72,
22,
507,
24,
27092,
74,
29,
8522,
6030,
72,
1578,
69,
21,
507,
952,
74,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./ERC20Permit.sol";
/**
* @title Polysports Token
* @dev Polysports ERC20 Token
*/
co... | * @dev Returns the amount of tokens in existence./* @dev Returns the amount of tokens owned by `account`./* @dev Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event./* @dev Returns the remaining number of tokens that `spen... | abstract contract ERC20Permit is ERC20, IERC2612Permit {
using Counters for Counters.Counter;
mapping(address => Counters.Counter) private _nonces;
bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
bytes32 public DOMAIN_SEPARATOR;
funct... | 474,098 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
3844,
434,
2430,
316,
15782,
18,
20308,
632,
5206,
2860,
326,
3844,
434,
2430,
16199,
635,
1375,
4631,
8338,
20308,
632,
5206,
490,
10829,
1375,
8949,
68,
2430,
628,
326,
4894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
3462,
9123,
305,
353,
4232,
39,
3462,
16,
467,
654,
39,
5558,
2138,
9123,
305,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
2874,
12,
2867,
516,
9354,
87,
18,
4789,
13,
323... |
./full_match/80001/0x85Cb3EB5f47DE47700ec67edB1Ad94f019411f2F/sources/contracts/Contract.sol | Calculate time difference between last update and now | uint256 timeDiff = block.timestamp - playerLastUpdate[_player].value;
| 9,458,683 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
813,
7114,
3086,
1142,
1089,
471,
2037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
813,
5938,
273,
1203,
18,
5508,
300,
7291,
3024,
1891,
63,
67,
14872,
8009,
1132,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
... | inject NONSTANDARD NAMING
| function ALLOCATOR261(IRebalancingSetTokenV2 _tradingPool) internal view returns (ISocialAllocator) { | 2,478,035 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7981,
29450,
3575,
5558,
21,
12,
45,
426,
28867,
694,
1345,
58,
22,
389,
313,
14968,
2864,
13,
2713,
1476,
1135,
261,
5127,
9306,
21156,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2021-09-20
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
// Part: OpenZeppelin/[email protected]/Address
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract... | Set token URI for metadata | function setTokenURI(uint256 tokenId, string memory _tokenURI) public onlyOwner {
_setTokenURI(tokenId, _tokenURI);
}
| 1,992,184 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
1147,
3699,
364,
1982,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22629,
3098,
12,
11890,
5034,
1147,
548,
16,
533,
3778,
389,
2316,
3098,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
542,
1345,
3098,
12,
2316,
548,
16,
389,
2316,
3098,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "Ownable.sol";
import "ReentrancyGuard.sol";
import "SafeMath.sol";
import "Address.sol";
import "ERC721A.sol";
contract EMOBUDDIES is ERC721A, Ownable, ReentrancyGuard {
using Strings for uint256;
using SafeMath for uint256;
// CONTRACT VAR... | rest to chase - 44%
| _widthdraw(a0, address(this).balance); | 6,272,535 | [
1,
4625,
348,
7953,
560,
30,
225,
3127,
358,
462,
448,
300,
13291,
9,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
2819,
9446,
12,
69,
20,
16,
1758,
12,
2211,
2934,
12296,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/56/0xF2A2D4071BC1F69EADb6763b13AFc2E406918bEE/sources/Exchange.sol | @dev Approves a hash on-chain using any valid signature type. After presigning a hash, the preSign signature type will become valid for that hash and signer. @param signerAddress Address that should have signed the given hash. @param signature Proof that the hash has been signed by signer. | function writeBytesWithLength(
bytes memory b,
uint256 index,
bytes memory input
)
internal
pure
}
function deepCopyBytes(
bytes memory dest,
bytes memory source
)
internal
pure
}
}
Copyright 2018 ZeroEx Intl.
Lic... | 11,280,173 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1716,
685,
3324,
279,
1651,
603,
17,
5639,
1450,
1281,
923,
3372,
618,
18,
1377,
7360,
4075,
724,
310,
279,
1651,
16,
326,
675,
2766,
3372,
618,
903,
12561,
923,
364,
716,
1651,
471,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
29579,
1190,
1782,
12,
203,
3639,
1731,
3778,
324,
16,
203,
3639,
2254,
5034,
770,
16,
203,
3639,
1731,
3778,
810,
203,
565,
262,
203,
3639,
2713,
203,
3639,
16618,
203,
565,
289,
203,
203,
565,
445,
26762,
2160,
12,
... |
./full_match/1/0x37f93c1eC9B017EDAA63A09bfC1D0278704A1377/sources/finalcode.sol | use by default 500,000 gas to process auto-claiming dividends exlcude from fees and max transaction amount | contract RugSlayer is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool private swapping;
bool public swapEnabled;
SLYRDividendTracker public dividendTracker;
address public deadWallet = 0x0000000000000000000000000... | 3,128,693 | [
1,
4625,
348,
7953,
560,
30,
225,
999,
635,
805,
6604,
16,
3784,
16189,
358,
1207,
3656,
17,
14784,
310,
3739,
350,
5839,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
534,
637,
3738,
1773,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
640,
291,
91,
438,
58,
22,
8259,
31,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | Sends any excess ETH from this contract to the deposit pool (as determined by target collateral rate) Load contracts Get collateral and target collateral rate Check if we are in excess Calculate our target collateral in ETH If we have excess Send that excess to deposit pool | function depositExcessCollateral() external override {
RocketDAOProtocolSettingsNetworkInterface rocketDAOProtocolSettingsNetwork = RocketDAOProtocolSettingsNetworkInterface(getContractAddress("rocketDAOProtocolSettingsNetwork"));
RocketDepositPoolInterface rocketDepositPool = RocketDepositPoolInter... | 201,268 | [
1,
4625,
348,
7953,
560,
30,
225,
2479,
87,
1281,
23183,
512,
2455,
628,
333,
6835,
358,
326,
443,
1724,
2845,
261,
345,
11383,
635,
1018,
4508,
2045,
287,
4993,
13,
4444,
20092,
968,
4508,
2045,
287,
471,
1018,
4508,
2045,
287,
499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
424,
614,
13535,
2045,
287,
1435,
3903,
3849,
288,
203,
3639,
534,
1861,
18485,
5752,
2628,
27413,
721,
1688,
18485,
5752,
2628,
3906,
273,
534,
1861,
18485,
5752,
2628,
27413,
12,
588,
8924,
1887,
2932,
303,
1... |
// Sources flattened with hardhat v2.0.11 https://hardhat.org
// File contracts/interfaces/IStrategy.sol
// License-Identifier: MIT
pragma solidity 0.6.12;
interface IStrategy {
/// @notice Send the assets to the Strategy and call skim to invest them.
/// @param amount The amount of tokens to invest.
fun... | Withdraw assets. @inheritdoc IStrategy Convert enough cToken to take out 'amount' tokens Make sure we send and report the exact same amount of tokens by using balanceOf | function withdraw(uint256 amount) external override onlyBentobox returns (uint256 actualAmount) {
require(cToken.redeemUnderlying(amount) == 0, "CompoundStrategy: redeem fail");
actualAmount = token.balanceOf(address(this));
token.safeTransfer(bentobox, actualAmount);
}
| 628,726 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
7176,
18,
632,
10093,
467,
4525,
4037,
7304,
276,
1345,
358,
4862,
596,
296,
8949,
11,
2430,
4344,
3071,
732,
1366,
471,
2605,
326,
5565,
1967,
3844,
434,
2430,
635,
1450,
11013,
951,
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,
565,
445,
598,
9446,
12,
11890,
5034,
3844,
13,
3903,
3849,
1338,
38,
319,
27570,
1135,
261,
11890,
5034,
3214,
6275,
13,
288,
203,
3639,
2583,
12,
71,
1345,
18,
266,
24903,
14655,
6291,
12,
8949,
13,
422,
374,
16,
315,
16835,
... |
./partial_match/4/0x8FfEF4D937A915cf90BDa5c0E38eD649368b9890/sources/FarmGoblin.sol | @dev Internal function to stake all outstanding LP tokens to the given position ID. | function _addShare(uint256 id) internal {
uint256 balance = lpToken.balanceOf(address(this));
if (balance > 0) {
uint256 share = balanceToShare(balance);
farm.deposit(pid, balance);
shares[id] = shares[id].add(share);
totalShare = totalShare.add(share)... | 8,588,477 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3186,
445,
358,
384,
911,
777,
20974,
511,
52,
2430,
358,
326,
864,
1754,
1599,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1289,
9535,
12,
11890,
5034,
612,
13,
2713,
288,
203,
3639,
2254,
5034,
11013,
273,
12423,
1345,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
12296,
405,
374,
13,
288,
203,
5411,
2254,
5034,
7433... |
pragma solidity 0.5.6;
import "../ContractManager.sol";
import "../storage/OrderStorage.sol";
import "../storage/UserStorage.sol";
import "./VatLogic.sol";
import "./ProductLogic.sol";
contract OrderLogic {
ContractManager internal contractManager;
OrderStorage internal orderStorage;
VatLogic internal ... | onlyPurchaseContract calculate the netTotal and the VAT Totalregister the order Create instance of Vat Logic if the buyer is a business, the vat movement needs to be registered to do so a UserStorage instance is created and if and only if the buyer is a business, the vat movement is registere | function registerOrder(
bytes32 _hashIpfs,
uint8 _hashFun,
uint8 _hashSize,
address _buyer,
string calldata _period,
bytes32[] calldata _productsHash,
uint8[] calldata _productsQtn
)
external
{
setVatLogic();
setProductLogic();
... | 1,840,418 | [
1,
4625,
348,
7953,
560,
30,
1338,
23164,
8924,
4604,
326,
2901,
5269,
471,
326,
776,
789,
10710,
4861,
326,
1353,
1788,
791,
434,
25299,
10287,
309,
326,
27037,
353,
279,
13160,
16,
326,
17359,
26017,
4260,
358,
506,
4104,
358,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
2448,
12,
203,
3639,
1731,
1578,
389,
2816,
5273,
2556,
16,
203,
3639,
2254,
28,
389,
2816,
22783,
16,
203,
3639,
2254,
28,
389,
2816,
1225,
16,
203,
3639,
1758,
389,
70,
16213,
16,
203,
3639,
533,
745,
892,
389... |
pragma solidity ^0.5.2;
/**
* @title ACTUSTypes
* @notice Contains all type definitions for ACTUS
*/
contract ACTUSTypes {
// int256 constant INT256_MIN = int256((uint256(1) << 255));
// int256 constant INT256_MAX = int256(~((uint256(1) << 255)));
// uint256 constant UINT256_MIN = 0;
/... | Subset of the ACTUS terms object (contains only attributes which are used in POFs and STFs) | struct LifecycleTerms {
Calendar calendar;
ContractRole contractRole;
DayCountConvention dayCountConvention;
BusinessDayConvention businessDayConvention;
EndOfMonthConvention endOfMonthConvention;
ScalingEffect scalingEffect;
PenaltyType penaltyType;
F... | 13,053,151 | [
1,
4625,
348,
7953,
560,
30,
225,
2592,
542,
434,
326,
14684,
3378,
6548,
733,
261,
12298,
1338,
1677,
1492,
854,
1399,
316,
453,
3932,
87,
471,
2347,
12432,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
14283,
11673,
288,
203,
3639,
5542,
5686,
31,
203,
3639,
13456,
2996,
6835,
2996,
31,
203,
3639,
13735,
1380,
25947,
2548,
1380,
25947,
31,
203,
3639,
21759,
4245,
25947,
13160,
4245,
25947,
31,
203,
3639,
4403,
14941,
259... |
./partial_match/3/0xeDCa143707b52fa62C702d4359c512E187371D2c/sources/contracts/Governance/Comp.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ | function _burn(address account, uint256 amount) internal /*virtual*/ {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
balances[account] = balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_t... | 5,136,663 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
1748,
12384,
5549,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
203,
3639,
389,... |
pragma solidity ^0.4.18;
interface token {
function transfer(address _to, uint256 _value) external;
function transferFrom (address _from,address _to, uint256 _value) external returns (bool success);
}
contract Owner{
address public owner;
address public limitedAccesser;
bool paused;
const... | constructor function | constructor(address _tokenAddress, uint256 _settelPeriod, uint256 _htlcSettlePeriod) payable public {
Mytoken = token(_tokenAddress);
trinityData.settleTimeout = _settelPeriod;
trinityData.htlcSettlePeriod = _htlcSettlePeriod;
}
| 13,046,383 | [
1,
4625,
348,
7953,
560,
30,
225,
3885,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
2316,
1887,
16,
2254,
5034,
389,
542,
19261,
5027,
16,
2254,
5034,
389,
647,
17704,
694,
5929,
5027,
13,
8843,
429,
1071,
288,
203,
3639,
8005,
2316,
273,
1147,
24899,
2316,
1887,
1769,
203,
3639,
433,
2... |
./partial_match/1/0x48772565845872fC65c43EcCC44d33B25598cA81/sources/UniswapLPOracleInstance.sol | fetch the current accumulated price value (0 / 1)
| price1CumulativeLast = _pair.price1CumulativeLast(); | 4,222,520 | [
1,
4625,
348,
7953,
560,
30,
225,
2158,
326,
783,
24893,
6205,
460,
261,
20,
342,
404,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
6205,
21,
39,
11276,
3024,
273,
389,
6017,
18,
8694,
21,
39,
11276,
3024,
5621,
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,... |
pragma solidity ^0.4.25;
/**
*
* ETH CRYPTOCURRENCY DISTRIBUTION PROJECT
* Web site - https://two4ever.club
* Telegram_chat - https://t.me/two4everClub
* Twitter - https://twitter.com/ClubTwo4ever
* Youtube - https://www.youtube.com/channel/UCl4-t8RS3-kEJIGQN6Xbtng
* Email: -... | update current "Best Investor" | function updateBestInvestor(address addr, uint investorValue) internal {
if(investorValue > d.bestInvestor.value){
d.bestInvestor.value = investorValue;
d.bestInvestor.addr = addr;
emit LogBestInvestorChanged(addr, now, d.bestInvestor.value);
}
}
| 6,410,442 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
783,
315,
14173,
5454,
395,
280,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1089,
14173,
3605,
395,
280,
12,
2867,
3091,
16,
2254,
2198,
395,
280,
620,
13,
2713,
288,
203,
3639,
309,
12,
5768,
395,
280,
620,
405,
302,
18,
12729,
3605,
395,
280,
18,
1132,
15329,
203,
5411,
302,
18,
12729,
3605... |
/*
* Copyright ©️ 2018 Galt•Space Society Construction and Terraforming Company
* (Founded by [Nikolai Popeka](https://github.com/npopeka),
* [Dima Starodubcev](https://github.com/xhipster),
* [Valery Litvin](https://github.com/litvintech) by
* [Basic Agreement](http://cyb.ai/QmSAWEG5u5aSsUyMNYuX2A2Eaz4kEuoYWUkVBR... | `bytes4(keccak256('transfer(address,uint256)'))` | contract ClaimManager is ArbitratorProposableApplication {
using SafeMath for uint256;
using ArraySet for ArraySet.AddressSet;
bytes4 public constant ERC20_TRANSFER_SIGNATURE = 0xa9059cbb;
bytes32 public constant CONFIG_MINIMAL_FEE_ETH = bytes32("CM_MINIMAL_FEE_ETH");
bytes32 public constant CONFIG_MINIMAL_... | 12,963,459 | [
1,
4625,
348,
7953,
560,
30,
225,
1375,
3890,
24,
12,
79,
24410,
581,
5034,
2668,
13866,
12,
2867,
16,
11890,
5034,
2506,
3719,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
18381,
1318,
353,
1201,
3682,
86,
639,
626,
23252,
3208,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
1450,
1510,
694,
364,
1510,
694,
18,
1887,
694,
31,
203,
203,
225,
1731,
24,
1071,
5381,
4232,
39,
... |
pragma solidity ^0.4.24;
import "./Owned.sol";
import "./SGDz.sol";
import "./StashFactory.sol";
import "./Bank.sol";
contract GridlockQueue is Owned {// Regulator node (MAS) should be the owner
function GridlockQueue() {
owner = msg.sender;
agentState = AgentState.Normal;
/* default conf... | notSuspended(_sender) notSuspended(_receiver)JMRupdate positions | {
Pmt memory pmt = Pmt(_txRef,
_sender,
_receiver,
_amount,
PmtState.Pending,
_express,
_putInQueue,
now,
_salt);
pmtIdx.push(_txRef);
payments[_txRef] = pmt;
sf.updatePosition(_sender, _... | 14,123,219 | [
1,
4625,
348,
7953,
560,
30,
377,
486,
55,
22942,
24899,
15330,
13,
565,
486,
55,
22942,
24899,
24454,
13,
46,
23464,
2725,
6865,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
453,
1010,
3778,
293,
1010,
273,
453,
1010,
24899,
978,
1957,
16,
203,
5411,
389,
15330,
16,
203,
5411,
389,
24454,
16,
203,
5411,
389,
8949,
16,
203,
5411,
453,
1010,
1119,
18,
8579,
16,
203,
5411,
389,
33... |
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) {
if (a == 0) {
return 0;
}
c =... | * @title Atomic Wallet Coin @dev Atomic Wallet ERC20 token. Implemented as an OpenZeppelin StandardToken./ | contract AtomicWallet is StandardToken {
string public constant name = "Atomic Wallet Token";
string public constant symbol = "AWC";
uint8 public constant decimals = 8;
uint256 public constant INITIAL_SUPPLY = 100000000 * (10 ** uint256(decimals));
constructor() public {
totalSupply_ = INITIAL_SUPPLY... | 156,991 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
11553,
20126,
28932,
632,
5206,
11553,
20126,
4232,
39,
3462,
1147,
18,
18788,
487,
392,
3502,
62,
881,
84,
292,
267,
8263,
1345,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
11553,
16936,
353,
8263,
1345,
288,
203,
203,
225,
533,
1071,
5381,
508,
273,
315,
23102,
20126,
3155,
14432,
203,
225,
533,
1071,
5381,
3273,
273,
315,
12999,
39,
14432,
203,
225,
2254,
28,
1071,
5381,
15105,
273,
1725,
31,... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used throu... | Deposit ERC1155s to the refinery Claims any already refined amounts for user within this refinery id (_rid) token id needs to be the raw.typeId of the input/claimInitiate Deposit if the first depoist | function depositRaw(
uint256 _rid,
uint256 _tokenId,
uint256 _amount
) external whenNotPaused noCheaters {
require(tx.origin == msg.sender, "Only EOA");
RefineryInfo memory refinery = refineryInfo[_rid];
UserInfo storage user = userRefines[_rid][msg.sender];
... | 10,033,681 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
305,
4232,
39,
2499,
2539,
87,
358,
326,
25994,
627,
28895,
1281,
1818,
25994,
329,
30980,
364,
729,
3470,
333,
25994,
627,
612,
261,
67,
1691,
13,
1147,
612,
4260,
358,
506,
326,
1831,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
4809,
12,
203,
3639,
2254,
5034,
389,
1691,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
3903,
1347,
1248,
28590,
1158,
39,
580,
31302,
288,
203,
3639,
2583,... |
pragma solidity^0.4.21;
contract EtheraffleInterface {
uint public tktPrice;
function getUserNumEntries(address _entrant, uint _week) public view returns (uint) {}
}
contract LOTInterface {
function transfer(address _to, uint _value) public {}
function balanceOf(address _owner) public view returns (ui... | Thur 12th April 2018
| uint constant public TIER1END = 1523491200; | 279,452 | [
1,
4625,
348,
7953,
560,
30,
225,
935,
295,
2593,
451,
432,
683,
330,
14863,
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,
565,
2254,
565,
5381,
1071,
399,
45,
654,
21,
4415,
282,
273,
4711,
4366,
7616,
2138,
713,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xc2949ccd5bF156CE8190eD8BD77E0f7dB867C216/sources/LimaToken.sol | * @dev Creates new token for holder by converting _investmentToken value to LimaToken Note: User need to approve _amount on _investmentToken to this contract @param _investmentToken The address of token to invest with. @param _amount The amount of investment token to create lima token from. @param _recipient The addres... | function create(
address _investmentToken,
uint256 _amount,
address _recipient,
uint256 _minimumReturn
)
external
nonReentrant
onlyInvestmentToken(_investmentToken)
onlyAmunUsers
returns (bool)
{
require(
block.numbe... | 16,183,587 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
394,
1147,
364,
10438,
635,
14540,
389,
5768,
395,
475,
1345,
460,
358,
511,
13888,
1345,
3609,
30,
2177,
1608,
358,
6617,
537,
389,
8949,
603,
389,
5768,
395,
475,
1345,
358,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
12,
203,
3639,
1758,
389,
5768,
395,
475,
1345,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1758,
389,
20367,
16,
203,
3639,
2254,
5034,
389,
15903,
990,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1661,
... |
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;... | price of extension time to select an opponent | mapping (uint256 => uint256) extensionTimePrice;
| 895,305 | [
1,
4625,
348,
7953,
560,
30,
225,
6205,
434,
2710,
813,
358,
2027,
392,
1061,
1029,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
5034,
516,
2254,
5034,
13,
2710,
950,
5147,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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, they should not be accessed in such a direct
* manner, sinc... | * Transfers tokens from an address (that has set allowance on the module). @param _token The address of the ERC20 token @param _from The address to transfer from @param _to The address to transfer to @param _quantity The number of tokens to transfer/ | function transferFrom(
IERC20 _token,
address _from,
address _to,
uint256 _quantity
) internal {
ExplicitERC20.transferFrom(_token, _from, _to, _quantity);
}
| 100,955 | [
1,
4625,
348,
7953,
560,
30,
380,
2604,
18881,
2430,
628,
392,
1758,
261,
19056,
711,
444,
1699,
1359,
603,
326,
1605,
2934,
632,
891,
225,
389,
2316,
1850,
1021,
1758,
434,
326,
4232,
39,
3462,
1147,
632,
891,
225,
389,
2080,
6647,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
203,
565,
467,
654,
39,
3462,
389,
2316,
16,
203,
565,
1758,
389,
2080,
16,
203,
565,
1758,
389,
869,
16,
203,
565,
2254,
5034,
389,
16172,
203,
225,
262,
2713,
288,
203,
565,
24321,
654,
39,
3462,
1... |
./partial_match/1/0x100bC89ABA480118BDb87c4d1635485Fd23Cf3E1/sources/AuctionPotato.sol | transfer ownership for auction winners in case they want to trade the creature before release | function transferCreatureOwnership(address _newOwner) public {
require(msg.sender == creatureOwner);
creature_newOwner = _newOwner;
}
| 4,134,745 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
23178,
364,
279,
4062,
5657,
9646,
316,
648,
2898,
2545,
358,
18542,
326,
1519,
1231,
1865,
3992,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1996,
1231,
5460,
12565,
12,
2867,
389,
2704,
5541,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1519,
1231,
5541,
1769,
203,
3639,
1519,
1231,
67,
2704,
5541,
273,
389,
2704,
5541,
31,
203,
565,
289,... |
pragma solidity ^0.4.24;
contract OneEther {
event onOpenNewBet(
uint256 indexed bID,
address owner,
uint256 check,
uint256 unit,
uint256 recordTime
);
event onEditBet(
uint256 indexed bID,
address owner,
uint256 check,
uint256 unit,
... | this means it cant be generated next round. current round would continue to end.emit | function closeBet(uint256 _bID)
public
{
address addr = msg.sender;
require(bIDBet_[bID].bID != 0,"cant find this bet");
require(bIDBet_[bID].owner == addr || bIDBet_[bID].owner == admin,"Permission denied");
bIDBet_[_bID].isActivated = false;
}
| 6,133,548 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
4696,
518,
848,
88,
506,
4374,
1024,
3643,
18,
783,
3643,
4102,
1324,
358,
679,
18,
18356,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
38,
278,
12,
11890,
5034,
389,
70,
734,
13,
203,
565,
1071,
203,
565,
288,
203,
3639,
1758,
3091,
273,
1234,
18,
15330,
31,
203,
3639,
2583,
12,
70,
734,
38,
278,
67,
63,
70,
734,
8009,
70,
734,
480,
374,
10... |
./full_match/5/0xFE48e281FD162A03B74c417314c87fd789Bbed32/sources/contracts/crowdfunding.sol | how much amount collected
| uint256 amountcollected; | 7,046,429 | [
1,
4625,
348,
7953,
560,
30,
225,
3661,
9816,
3844,
12230,
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,
3639,
2254,
5034,
3844,
14676,
329,
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,
-100,
-100,
-100... |
./partial_match/1/0x9138C8779A0Ac8a84D69617D5715BD8AFa23C650/sources/FloorCheeseBurger.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
Community owned
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 15,942,117 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
1772,
288,
203,
12136,
13352,
16199,
7010,
203,
203,
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,
203,
565,
445,
389,
357... |
./partial_match/1/0xcFCFfE432A48dB53F59c301422d2EdD77B2A88d7/sources/StakableEndowmentToken.sol | the amount of principle that is staked in wei
| uint256 g_stakedPrincipleStars = 0; | 3,899,086 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
3844,
434,
846,
9523,
2444,
716,
353,
384,
9477,
316,
732,
77,
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,... | [
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,
5034,
314,
67,
334,
9477,
2050,
9523,
2444,
510,
5913,
273,
374,
31,
4202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x1A963Df363D01EEBB2816b366d61C917F20e1EbE/sources/src/CLMPriceOracle.sol | @param cToken, the cToken (treated as CErc20) that is being priced, in the case of cCanto, although it is not a cErc20 it is treated as such. @return price, the price of the asset in Note, scaled by 1e18 first check whether the cToken is cCanto return price from wcanto/note pool this is a CErc20, get the underlying ad... | function getUnderlyingPrice(CToken cToken) external override view onlyComptroller(msg.sender) returns(uint) {
address underlying;
IBaseV1Router router_ = IBaseV1Router(router);
if (address(cToken) == cCanto) {
return getPriceNote(wcanto, false);
underlying = address(... | 2,594,929 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
891,
276,
1345,
16,
326,
276,
1345,
261,
27427,
690,
487,
29538,
1310,
3462,
13,
716,
353,
3832,
6205,
72,
16,
316,
326,
648,
434,
276,
2568,
869,
16,
26347,
518,
353,
486,
279,
276,
41,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
10833,
765,
6291,
5147,
12,
1268,
969,
276,
1345,
13,
3903,
3849,
1476,
1338,
799,
337,
1539,
12,
3576,
18,
15330,
13,
1135,
12,
11890,
13,
288,
203,
3639,
1758,
6808,
31,
203,
3639,
467,
2171,
58,
21,
8259,
4633,
67,... |
./partial_match/1/0xDDD00b02aa6cC23c9B39F39Cd10DCCa8Fa86323c/sources/contracts/eRC721Manager/ERC721Manager.sol | Modifier for self-custodial farming When token is staked, transferring or burning token is not allowed | modifier requireNotStaked(address collectionProxy, uint256 tokenId) {
if (farmingManagerProxy != address(0)) {
require(
!IFarmingManager(IGovernedProxy(payable(farmingManagerProxy)).impl()).isStaked(
collectionProxy,
tokenId
... | 4,194,900 | [
1,
4625,
348,
7953,
560,
30,
225,
12832,
364,
365,
17,
71,
641,
369,
649,
284,
4610,
310,
5203,
1147,
353,
384,
9477,
16,
906,
74,
20245,
578,
18305,
310,
1147,
353,
486,
2935,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
2583,
1248,
510,
9477,
12,
2867,
1849,
3886,
16,
2254,
5034,
1147,
548,
13,
288,
203,
3639,
309,
261,
74,
4610,
310,
1318,
3886,
480,
1758,
12,
20,
3719,
288,
203,
5411,
2583,
12,
203,
7734,
401,
5501,
4610,
310,
131... |
// SPDX-License-Identifier: APACHE 2.0
pragma solidity >0.7.0 <0.9.0;
import "./IRoleManager.sol";
import "./IRoleManagerAdmin.sol";
import "./IDelegateAdmin.sol";
/**
* @title RoleManager - Open Block Enterprise Initiative component
* @author Block Star Logic - Taurai Ushewokunze
* @dev This is the 'standard' imp... | make sure we don't know this list already
| require(!knownListStatusByList[_list], "arl 00 - known role."); | 14,124,592 | [
1,
4625,
348,
7953,
560,
30,
225,
1221,
3071,
732,
2727,
1404,
5055,
333,
666,
1818,
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,... | [
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,
2583,
12,
5,
2994,
682,
1482,
858,
682,
63,
67,
1098,
6487,
315,
13007,
9631,
300,
4846,
2478,
1199,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.6.11;
import "./ERC2222.sol";
contract MapleToken is ERC2222 {
bytes32 public immutable DOMAIN_SEPARATOR;
bytes32 public constant PERMIT_TYPEHASH = 0xfc77c2b9d30fe91687fd39abb7d16fcdfe1472d065740051ab8b13e4bf4a617f;
// bytes32 public const... | * @dev Internal function that transfer tokens from one address to another. Update pointsCorrection to keep funds unchanged. @param from The address to transfer from. @param to The address to transfer to. @param value The amount to be transferred./ | function _transfer(
address from,
address to,
uint256 value
) internal virtual override {
require(to != address(this), "ERC20: transferring to token contract");
super._transfer(from, to, value);
int256 _magCorrection = pointsPerShare.mul(value).toInt256Safe();
... | 1,087,249 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
716,
7412,
2430,
628,
1245,
1758,
358,
4042,
18,
2315,
3143,
20884,
358,
3455,
284,
19156,
14827,
18,
632,
891,
628,
1021,
1758,
358,
7412,
628,
18,
632,
891,
358,
1021,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
203,
565,
262,
2713,
5024,
3849,
288,
203,
3639,
2583,
12,
869,
480,
1758,
12,
2211,
3631,
315,
654,
39,
3462,
30,
906,
... |
./full_match/1/0xBcbba981bFf1E9530CbcA0f40F67Aa85F8944038/sources/src/x-key/XKeyVRFInterface.sol | *@title A sample VRF Contract @notice This contract is for creating a sample raffle contract @dev This implements the Chainlink VRF Version 2/ event VRFRequest(uint256 indexed requestId, RequestType indexed _type); Chainlink VRF Variables current request for a winner for a round current request for a winner for a crate | abstract contract XKeyVRFInterface is VRFConsumerBaseV2 {
error AlreadyRequested();
error InvalidVRFRequestType();
VRFCoordinatorV2Interface private immutable vrfCoordinator;
uint64 private immutable vrfSubscriptionId;
address private immutable vrfV2CoordinatorAddress;
bytes32 private immutabl... | 9,610,435 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
2649,
432,
3296,
776,
12918,
13456,
632,
20392,
1220,
6835,
353,
364,
4979,
279,
3296,
767,
1403,
298,
6835,
632,
5206,
1220,
4792,
326,
7824,
1232,
776,
12918,
4049,
576,
19,
871,
776,
12918,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
653,
10986,
42,
1358,
353,
776,
12918,
5869,
2171,
58,
22,
288,
203,
565,
555,
17009,
11244,
5621,
203,
565,
555,
1962,
10986,
42,
691,
559,
5621,
203,
203,
203,
565,
776,
12918,
25307,
58,
22,
1358,
3238,
1173... |
/**
____ __ __ _ __
/ __ \/ /_ ____ ____ ____ / /_ (_)________/ /____
/ /_/ / __ \/ __ \/ __ \/ __ \/ __ \/ / ___/ __ / ___/
/ ____/ / / / /_/ / /_/ / / / / /_/ / / / / /_/ (__ )
/_/ /_/ /_/\____/\____/_/ /_/_.___/_/_/ \__,_/____/
*/
// SPDX-License-Identifie... | * @dev Interface of the ERC165 standard, as defined in the Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}./ | interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
____ __ __ _ __
9,000 PFPs that feature a richly diverse and unique pool of rarity-powered traits. No Nesting. New Bloodline.
pragma solidity ^0.8.0;
}
| 6,011,929 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
28275,
4529,
16,
487,
2553,
316,
326,
10886,
414,
848,
14196,
2865,
434,
6835,
7349,
16,
1492,
848,
1508,
506,
23264,
635,
10654,
10797,
654,
39,
28275,
8847,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
467,
654,
39,
28275,
288,
203,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
19608,
67,
225,
1001,
8227,
1001,
565,
389,
1850,
1001,
377,
203,
203,
203,
565,
2468,
16,
3784,
45... |
./full_match/80001/0x61C0dCD13f63190AD866b140a288a5803cfb19ac/sources/WinMatic4.sol | period in seconds for which the stake is locked
| uint256 public stakePeriod; | 5,671,145 | [
1,
4625,
348,
7953,
560,
30,
225,
3879,
316,
3974,
364,
1492,
326,
384,
911,
353,
8586,
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,
2254,
5034,
1071,
384,
911,
5027,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.7.2;
pragma experimental ABIEncoderV2;
library Types {
struct Order {
uint256 nonce; // Unique per order and should be sequential
uint256 expiry; // Expiry in seconds since 1 January 1970
Party signer; // Party to the trade that sets terms
Party sender; // Party ... | * @notice Sets the new withdrawal fee @param withdrawalFee is the fee paid in tokens when withdrawing/ | function setWithdrawalFee(uint256 withdrawalFee) external onlyManager {
instantWithdrawalFee = withdrawalFee;
}
| 12,804,588 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
394,
598,
9446,
287,
14036,
632,
891,
598,
9446,
287,
14667,
353,
326,
14036,
30591,
316,
2430,
1347,
598,
9446,
310,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
1190,
9446,
287,
14667,
12,
11890,
5034,
598,
9446,
287,
14667,
13,
3903,
1338,
1318,
288,
203,
3639,
5934,
1190,
9446,
287,
14667,
273,
598,
9446,
287,
14667,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.11;
contract FundariaToken {
string public constant name = "Fundaria Token";
string public constant symbol = "RI";
uint public totalSupply; // how many tokens supplied at the moment
uint public supplyLimit; // how many tokens can be supplied
uint public course; /... | allowing third parties to transfer tokens
| mapping(address=>mapping(address=>uint256)) public allowance; | 13,128,410 | [
1,
4625,
348,
7953,
560,
30,
225,
15632,
12126,
1087,
606,
358,
7412,
2430,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
9207,
6770,
12,
2867,
9207,
11890,
5034,
3719,
1071,
1699,
1359,
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,
-... |
pragma solidity ^0.4.23;
//A modern ERC-20 token
//The airdropper works on any ERC-20 token that implements approve(spender, tokens)
//and transferFrom(from, to, tokens)
interface IStandardToken {
function totalSupply() external constant returns (uint);
function balanceOf(address tokenOwner) external constant... | Constructs an Airdropper for a given token contract | contract YeekAirdropper {
address public owner;
uint256 public numberOfTokensPerUser;
uint256 public tokensDispensed;
mapping(address => bool) public airdroppedUsers;
address[] public airdropRecipients;
event Dispensed(address indexed buyer, uint256 amount);
constructor(IStandardToken... | 7,805,662 | [
1,
4625,
348,
7953,
560,
30,
14291,
87,
392,
432,
6909,
1764,
457,
364,
279,
864,
1147,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
1624,
3317,
37,
6909,
1764,
457,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
2254,
5034,
1071,
7922,
5157,
2173,
1299,
31,
203,
565,
2254,
5034,
1071,
2430,
1669,
1907,
730,
31,
203,
565,
2874,
12,
2867,
516,
1426,
13,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "remix_accounts.sol";
import "../contracts/MPcoin.sol";
import "./MockMPLiquidityManager.sol";
import "./MockERC20tk.sol";
// File name has to end with '_test.sol', ... | #value: 1000000000000000000 | function testSendCreatePool() public payable {
Assert.equal(
msg.sender,
TestsAccounts.getAccount(0),
"FAIL msg.sender != TestsAccounts.getAccount(0) "
);
Assert.equal(
cstm.OwnerExist(address(this)),
true,
"FAIL testSe... | 2,564,881 | [
1,
4625,
348,
7953,
560,
30,
225,
468,
1132,
30,
2130,
12648,
12648,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
3826,
1684,
2864,
1435,
1071,
8843,
429,
288,
203,
3639,
5452,
18,
9729,
12,
203,
5411,
1234,
18,
15330,
16,
203,
5411,
7766,
87,
13971,
18,
588,
3032,
12,
20,
3631,
203,
5411,
315,
12319,
1234,
18,
15330,
480,
... |
./partial_match/8453/0x7578A9db8A8D6Aa7d573518B70222f7A8268f8eE/sources/Bridge.sol | launch buy fees launch sell fees exclude from paying fees or having max transaction amount | constructor() ERC20("Based Bridge", "0xBridge") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(uniV2router);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).cr... | 16,731,194 | [
1,
4625,
348,
7953,
560,
30,
225,
8037,
30143,
1656,
281,
8037,
357,
80,
1656,
281,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
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,
3885,
1435,
4232,
39,
3462,
2932,
9802,
24219,
3113,
315,
20,
92,
13691,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.6.12;
//
// _░▒███████
// ░██▓▒░░▒▓██
// ██▓▒░__░▒▓██___██████
// ██▓▒░____░▓███▓__░▒▓██
// ██▓▒░___░▓██▓_____░▒▓██
// ██▓▒░_______________░▒▓█... | * @dev Checks to see if the token exists/ | function exists(uint256 _tokenId) external view returns (bool) {
return _exists(_tokenId);
}
| 6,043,751 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13074,
358,
2621,
309,
326,
1147,
1704,
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,
... | [
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,
225,
445,
1704,
12,
11890,
5034,
389,
2316,
548,
13,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
565,
327,
389,
1808,
24899,
2316,
548,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2019-2020, Offchain 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
... | Taken from https:github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol | function uint2str(uint256 _iParam) internal pure returns (string memory _uintAsString) {
uint256 _i = _iParam;
if (_i == 0) {
return "0";
}
uint256 j = _i;
uint256 len;
while (j != 0) {
len++;
j /= 10;
}
bytes memory... | 428,463 | [
1,
4625,
348,
7953,
560,
30,
225,
399,
7940,
628,
2333,
30,
6662,
18,
832,
19,
280,
10150,
554,
19,
546,
822,
379,
17,
2425,
19,
10721,
19,
7525,
19,
280,
10150,
554,
2557,
67,
20,
18,
25,
18,
18281,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2254,
22,
701,
12,
11890,
5034,
389,
77,
786,
13,
2713,
16618,
1135,
261,
1080,
3778,
389,
11890,
8092,
13,
288,
203,
3639,
2254,
5034,
389,
77,
273,
389,
77,
786,
31,
203,
3639,
309,
261,
67,
77,
422,
374,
13,
288,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-10
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can... | @author Hammad Ghazi | contract DeadsHead is ERC721Enumerable, Ownable {
using Counters for Counters.Counter;
Counters.Counter private _tokenId;
uint256 public constant TOTAL_SKULL = 888;
string baseTokenURI;
bool public allowMint = false;
event DeadsHeadMinted(uint256 totalMinted);
constructor(string memory b... | 10,526,894 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
4161,
670,
301,
81,
361,
611,
76,
1561,
77,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
23967,
87,
1414,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
565,
9354,
87,
18,
4789,
3238,
389,
2316,
548,
31,
203,
203,
565,
2254,
5034,
1071,... |
./full_match/100/0xEd469d6aa0658b71B9dE75c2fe401924FCf0534d/sources/src/BzzRouter.sol | @title router for bridging bzz tokens from foreign bridge to home bridge bridge addresses token addresses and postoffice configurable admin options | contract BzzRouter is Owned, ERC677Callback, IERC20Receiver {
using SafeTransferLib for ERC20;
address private immutable homeBridge;
ERC20 private immutable bzz;
IPostageStamp private postOffice;
constructor(address _owner, address _homeBridge, address _bzz, IPostageStamp _postOffice) payable Ow... | 14,279,981 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4633,
364,
324,
1691,
1998,
324,
6378,
2430,
628,
5523,
10105,
358,
6382,
10105,
10105,
6138,
1147,
6138,
471,
1603,
19789,
14593,
3981,
702,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
6378,
8259,
353,
14223,
11748,
16,
4232,
39,
26,
4700,
2428,
16,
467,
654,
39,
3462,
12952,
288,
203,
565,
1450,
14060,
5912,
5664,
364,
4232,
39,
3462,
31,
203,
203,
565,
1758,
3238,
11732,
6382,
13691,
31,
203,
203,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | Коля постучался ко мне.
| rus_verbs:постучаться{}, | 5,488,335 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
253,
145,
127,
145,
124,
146,
242,
225,
145,
128,
145,
127,
146,
228,
146,
229,
146,
230,
146,
234,
145,
113,
145,
124,
146,
228,
146,
242,
225,
145,
123,
145,
127,
225,
145,
125,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8010,
67,
502,
2038,
30,
145,
128,
145,
127,
146,
228,
146,
229,
146,
230,
146,
234,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
https://twitter.com/George_token
10% Buy
10% Sell
Taxes can only be lowered, not raised
At Launch
1% Max Transaction
2% Max Wallet
Liquidity Locked
Ownership renounced once token is stable and limits are removed
*/
// SPDX-License-Identifier: Unlicensed ... | EarlySell is disabled and cannot be ren-enabled
| bool public enableEarlySellTax = false; | 11,801,063 | [
1,
4625,
348,
7953,
560,
30,
512,
20279,
55,
1165,
353,
5673,
471,
2780,
506,
1654,
17,
5745,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1426,
1071,
4237,
41,
20279,
55,
1165,
7731,
273,
629,
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,
-10... |
pragma solidity 0.4.24;
/**
* @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 tra... | ----------------------------- WITHDRAW ----------------------------- | function requestWithdraw(uint amount) external
whitelisted(WhitelistKeys.Investment)
withoutRisk(msg.sender, address(this), address(this), amount, getPrice())
{
WithdrawInterface(getComponentByName(WITHDRAW)).request(msg.sender, amount);
}
| 5,544,221 | [
1,
4625,
348,
7953,
560,
30,
225,
12146,
7620,
13601,
40,
10821,
12146,
7620,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
590,
1190,
9446,
12,
11890,
3844,
13,
3903,
203,
377,
26944,
12,
18927,
2396,
18,
3605,
395,
475,
13,
203,
377,
2887,
54,
10175,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
1758,
12,
2211,
3631,
3844,
16,
25930,
10... |
// SPDX-License-Identifier: MIT
//
// Copyright (c) 2021 Kentaro Hara
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
pragma solidity ^0.8.11;
import "./JohnLawCoin_v4.sol";
//------------------------------------------------------------------------------
// [O... | Epoch is a struct to keep track of the states in the commit-reveal-reclaim scheme. The oracle creates three Epoch objects and uses them in a round-robin manner. For example, when the first Epoch object is in use for the commit phase, the second Epoch object is in use for the reveal phase, and the third Epoch object is... | struct Epoch {
mapping (address => Commit) commits;
mapping (uint => Vote) votes;
address deposit_account;
address reward_account;
uint reward_total;
Phase phase;
}
uint public epoch_id_;
bytes32 hash, uint deposited);
event RevealEvent(address indexed sender, uint ... | 5,366,723 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
6127,
353,
279,
1958,
358,
3455,
3298,
434,
326,
5493,
316,
326,
3294,
17,
266,
24293,
17,
266,
14784,
4355,
18,
1021,
20865,
3414,
8925,
512,
6127,
2184,
471,
4692,
2182,
316,
279,
3643,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
1958,
512,
6127,
288,
203,
565,
2874,
261,
2867,
516,
10269,
13,
14335,
31,
203,
565,
2874,
261,
11890,
516,
27540,
13,
19588,
31,
203,
565,
1758,
443,
1724,
67,
4631,
31,
203,
565,
1758,
19890,
67,
4631,
31,
203,
565,
225... |
pragma solidity ^0.4.24;
import "zeppelin/token/ERC20/SafeERC20.sol";
import "contracts/Issuer.sol";
/**
* @notice PolicyManager interface
**/
contract PolicyManagerInterface {
function register(address _node, uint16 _period) external;
function updateReward(address _node, uint16 _period) external;
funct... | * @notice Withdraw available amount of tokens to miner @param _value Amount of tokens to withdraw/ the max locked tokens in most cases will be in the current period but when the miner stakes more then we should use the next period | function withdraw(uint256 _value) public onlyMiner {
MinerInfo storage info = minerInfo[msg.sender];
uint256 lockedTokens = Math.max256(getLockedTokens(msg.sender, 1),
getLockedTokens(msg.sender, 0));
require(_value <= token.balanceOf(address(this)) &&
_value <= info.... | 1,068,875 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
2319,
3844,
434,
2430,
358,
1131,
264,
632,
891,
389,
1132,
16811,
434,
2430,
358,
598,
9446,
19,
326,
943,
8586,
2430,
316,
4486,
6088,
903,
506,
316,
326,
783,
3879,
1496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
598,
9446,
12,
11890,
5034,
389,
1132,
13,
1071,
1338,
2930,
264,
288,
203,
3639,
5444,
264,
966,
2502,
1123,
273,
1131,
264,
966,
63,
3576,
18,
15330,
15533,
203,
3639,
2254,
5034,
8586,
5157,
273,
2361,
18,
1896,
5034... |
./partial_match/1/0xeE632a058d89FaFD1D8eD0249d871ec2D831567b/sources/MARKETCOIN.sol | Set the name for display purposes (CHANGE THIS)
| name = "MARKETCOIN"; | 4,350,174 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
508,
364,
2562,
13694,
261,
14473,
20676,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
508,
273,
315,
12693,
1584,
3865,
706,
14432,
4766,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.18;
contract owned {
/* Owner definition. */
address public owner; // Owner address.
function owned() internal {
owner = msg.sender ;
}
modifier onlyOwner {
require(msg.sender == owner); _;
}
function transferOwnership(address newOwner) onlyOwner pub... | Sends the Ether to owner address.
| owner.transfer(amountInWeis); | 12,123,688 | [
1,
4625,
348,
7953,
560,
30,
225,
2479,
87,
326,
512,
1136,
358,
3410,
1758,
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... | [
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,
3410,
18,
13866,
12,
8949,
382,
3218,
291,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import './ISnapshotVault.sol';
/**
* @dev An ERC20Mintable token that hedges inflation by issuing a
* fixed proportion to a claimant. Combined with Sn... | Mint to inflation protection claimant
| _mint(claimantAddress, inflationProtectionAmount); | 13,111,105 | [
1,
4625,
348,
7953,
560,
30,
490,
474,
358,
13947,
367,
17862,
7516,
970,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
81,
474,
12,
14784,
970,
1887,
16,
13947,
367,
16938,
6275,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x2Ba51d4B238B510A820D5Df6702C125a119BEa1C/sources/contracts/token/EthernityAI.sol | * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. This internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero add... | function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowedBalances[owner][spender] = a... | 3,167,483 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
1375,
8949,
68,
487,
326,
1699,
1359,
434,
1375,
87,
1302,
264,
68,
1879,
326,
1375,
8443,
68,
272,
2430,
18,
1220,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
9191,
471,
848,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
12908,
537,
12,
203,
3639,
1758,
3410,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,... |
./full_match/3/0x22D2B8555E8C64bA9854b63aBFB435BEbaFDbe1f/sources/tenETH.sol | * Sets the multiplier of the wallet to the actual multiplier, so the calculation of the reflow will be zero at the first time someone hodl tenXXX and increase over time/ | function _checkIn(address account) private {
uint256 balance = _accounts[account].nettoBalance;
if(balance == 0){
_accounts[account].feeAccountMultiplier = _gFeeMultiplier;
}
}
| 8,266,153 | [
1,
4625,
348,
7953,
560,
30,
380,
11511,
326,
15027,
434,
326,
9230,
358,
326,
3214,
15027,
16,
1427,
326,
11096,
434,
326,
1278,
821,
903,
506,
3634,
622,
326,
1122,
813,
18626,
366,
369,
80,
19572,
15639,
471,
10929,
1879,
813,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1893,
382,
12,
2867,
2236,
13,
3238,
288,
203,
3639,
2254,
5034,
11013,
273,
389,
13739,
63,
4631,
8009,
2758,
869,
13937,
31,
203,
3639,
309,
12,
12296,
422,
374,
15329,
203,
5411,
389,
13739,
63,
4631,
8009,
2138... |
pragma solidity ^0.4.18;
contract ownerOnly {
function ownerOnly() public { owner = msg.sender; }
address owner;
modifier onlyOwner {
require(msg.sender == owner);
_;
}
}
contract Game is ownerOnly {
//Уникальный код коровы
uint cow_code;
struct cows {
... | Маппинг количество коров у пользователя | mapping (address => uint) users_cows;
| 1,550,932 | [
1,
4625,
348,
7953,
560,
30,
225,
145,
255,
145,
113,
145,
128,
145,
128,
145,
121,
145,
126,
145,
116,
225,
145,
123,
145,
127,
145,
124,
145,
121,
146,
234,
145,
118,
146,
228,
146,
229,
145,
115,
145,
127,
225,
145,
123,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2874,
261,
2867,
516,
2254,
13,
3677,
67,
71,
543,
87,
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,
-... |
/*
Copyright 2018 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, ... | Taker's balance of ZRX
| uint256 takerZrxBalance; | 13,029,050 | [
1,
4625,
348,
7953,
560,
30,
225,
399,
6388,
1807,
11013,
434,
2285,
54,
60,
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,
3639,
2254,
5034,
268,
6388,
62,
20122,
13937,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT License
pragma solidity >=0.8.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emerge... | Didn't send enough ETH
| if (msg.value != offer.minValue) revert("not enough ether"); | 442,774 | [
1,
4625,
348,
7953,
560,
30,
225,
21148,
82,
1404,
1366,
7304,
512,
2455,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
3576,
18,
1132,
480,
10067,
18,
1154,
620,
13,
15226,
2932,
902,
7304,
225,
2437,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// LC->05.11.2015
// наречия, которые моргут употребляться внутри аналитической конструкции
// страдательного залога для простого времени:
// Grachtengordel had not yet been established.
// ^^^
wordentry_set PassiveInnerAdverb0=
{
eng_adverb:yet{}, // Grachtengordel had not yet been establish... | The furniture was spaciously spread out.
| eng_adverb:spaciously{}, | 12,917,369 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
284,
321,
305,
594,
1703,
1694,
1077,
22774,
715,
15103,
596,
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,
... | [
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,
24691,
67,
361,
16629,
30,
1752,
1077,
22774,
715,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/97/0x278F790FC5f1A7a438bca43253e02d40f7835e1e/sources/MakaContract.sol | Process gradual burns | bool burnTriggered = processGradualBurn();
| 5,033,321 | [
1,
4625,
348,
7953,
560,
30,
225,
4389,
6058,
1462,
18305,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
6430,
18305,
6518,
329,
273,
1207,
30420,
1462,
38,
321,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
Copyright 2019 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... | * Function to calculate the transfer value of a component given a standardized bid amount (minimumBid/priceDivisor) @param _unit Units of the component token @param _naturalUnit Natural unit of the Set token @param _maxNaturalUnit Max natural unit of two sets in rebalance @return uint256... | function calculateTransferValue(
uint256 _unit,
uint256 _naturalUnit,
uint256 _maxNaturalUnit
)
private
pure
returns (uint256)
{
return SetMath.setToComponent(_maxNaturalUnit, _unit, _naturalUnit);
}
| 12,740,599 | [
1,
4625,
348,
7953,
560,
30,
380,
4284,
358,
4604,
326,
7412,
460,
434,
279,
1794,
864,
279,
4529,
1235,
9949,
3844,
261,
15903,
17763,
19,
8694,
7244,
12385,
13,
632,
891,
282,
389,
4873,
9079,
27845,
434,
326,
1794,
1147,
632,
891... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
5912,
620,
12,
203,
3639,
2254,
5034,
389,
4873,
16,
203,
3639,
2254,
5034,
389,
18757,
3766,
2802,
16,
203,
3639,
2254,
5034,
389,
1896,
23779,
3766,
2802,
203,
565,
262,
203,
3639,
3238,
203,
3639,
16618,
203,
3... |
//Address: 0x3aaa175924a77ee4b40606f714b727331e430ece
//Contract name: MonsterCreatorInterface
//Balance: 0 Ether
//Verification Date: 1/19/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.11;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original... | @notice Grant another address the right to transfer a specific monster via transferFrom(). This is the preferred flow for transfering NFTs to contracts. @param _to The address to be granted transfer approval. Pass address(0) to clear all approvals. @param _tokenId The ID of the monster that can be transferred if thi... | function approve(address _to, uint256 _tokenId ) external {
require(_owns(msg.sender, _tokenId));
_approve(_tokenId, _to);
Approval(msg.sender, _to, _tokenId);
}
| 932,282 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
19689,
4042,
1758,
326,
2145,
358,
7412,
279,
2923,
6921,
8190,
3970,
225,
7412,
1265,
7675,
1220,
353,
326,
9119,
4693,
364,
7412,
310,
423,
4464,
87,
358,
20092,
18,
632,
891,
389,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
869,
16,
2254,
5034,
389,
2316,
548,
262,
3903,
288,
203,
3639,
2583,
24899,
995,
87,
12,
3576,
18,
15330,
16,
389,
2316,
548,
10019,
203,
203,
3639,
389,
12908,
537,
24899,
2316,
548,
16,
38... |
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed p... | * @return true if crowdsale event has started/ | function hasStarted() public constant returns (bool) {
return now >= startTime;
}
| 971,911 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
638,
309,
276,
492,
2377,
5349,
871,
711,
5746,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
711,
9217,
1435,
1071,
5381,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2037,
1545,
8657,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/56/0x449E96F7EBA744846452aFEd6d75d371c2F052Cf/sources/DelfyLocker.sol | address public immutable factory; | contract DelfyLocker is Mutex, IDelfyLocker {
using SafeMath for uint256;
uint256 private minimumLockPeriod = 90 days;
mapping(address => bool) public isFactory;
address public owner;
address constant deadAddress = 0x000000000000000000000000000000000000dEaD;
event Transfer(address _from, add... | 11,289,880 | [
1,
4625,
348,
7953,
560,
30,
282,
1758,
1071,
11732,
3272,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6603,
74,
93,
2531,
264,
353,
23013,
16,
1599,
19079,
93,
2531,
264,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
3238,
5224,
2531,
5027,
273,
8566,
4681,
31,
203,
565,
2874,
12,
2867,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "../../interfaces/decentraland/IDecentralandFacet.sol";
import "../../interfaces/decentraland/IDecentralandRegistry.sol";
import "../../libraries/LibOwnership.sol";
import "../../libraries/marketplace/LibRent.sol";
import "../../libraries/marketplace/LibDe... | * @dev See {IERC721-isApprovedForAll}./ | function isApprovedForAll(address owner, address operator)
internal
view
returns (bool)
{
return erc721Storage().operatorApprovals[owner][operator];
}
| 224,313 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
291,
31639,
1290,
1595,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
31639,
1290,
1595,
12,
2867,
3410,
16,
1758,
3726,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
6445,
71,
27,
5340,
3245,
7675,
9497,
12053,
4524,
63,
8443,
... |
./full_match/1/0xEb57C7879C95ffdd2676748Caa7d36a83Cef8C53/sources/contracts/NestQueryV1.sol | NOTE: the unit of _single is TWei
| uint256 _ethFee = _single.mul(1e12); | 4,941,182 | [
1,
4625,
348,
7953,
560,
30,
225,
5219,
30,
326,
2836,
434,
389,
7526,
353,
399,
3218,
77,
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,
3639,
2254,
5034,
389,
546,
14667,
273,
389,
7526,
18,
16411,
12,
21,
73,
2138,
1769,
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,... |
./full_match/43114/0x43C263a40De709EfE72cfc2aD7E6a1e775968138/sources/OLYMP.sol | OlympToken with Governance. Transfer tax rate in basis points. (default 5%) Burn rate % of transfer tax. (default 20% x 5% = 1% of total amount). Max transfer tax rate: 10%. Track how many GEMS have been burned Max transfer amount rate in basis points. (default is 0.5% of total supply) Addresses that excluded from ant... | contract OlympToken is BEP20 {
using SafeMath for uint256;
uint16 public transferTaxRate = 0;
uint16 public burnRate = 20;
uint16 public constant MAXIMUM_TRANSFER_TAX_RATE = 1000;
uint256 public burnedAmount;
uint16 public maxTransferAmountRate = 50;
mapping(address => bool) private _... | 4,520,799 | [
1,
4625,
348,
7953,
560,
30,
225,
531,
715,
1291,
1345,
598,
611,
1643,
82,
1359,
18,
12279,
5320,
4993,
316,
10853,
3143,
18,
261,
1886,
1381,
9,
13,
605,
321,
4993,
738,
434,
7412,
5320,
18,
261,
1886,
4200,
9,
619,
1381,
9,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
531,
715,
1291,
1345,
353,
9722,
52,
3462,
288,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
2313,
1071,
7412,
7731,
4727,
273,
374,
31,
203,
565,
2254,
2313,
1071,
18305,
4727,
273,
42... |
/**
*Submitted for verification at Etherscan.io on 2020-05-25
*/
pragma solidity ^0.5.16;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot over... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| require(amount > fundsLockedtoWithdraw); | 14,021,709 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
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,
5411,
2583,
12,
8949,
405,
284,
19156,
8966,
869,
1190,
9446,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |