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 |
|---|---|---|---|---|---|---|
./partial_match/1/0x03332BfF09B51FC010831fce6c4601f719F4557b/sources/ELONETH.sol | Transfer the contract to to a new owner | function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
m... | 15,695,047 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
326,
6835,
358,
358,
279,
394,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
5460,
12565,
12,
2867,
394,
5541,
13,
2713,
5024,
288,
203,
3639,
1758,
1592,
5541,
273,
389,
8443,
31,
203,
3639,
389,
8443,
273,
394,
5541,
31,
203,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
12,
1673,
554... |
pragma solidity ^0.4.18;
contract Owner {
address public owner;
function Owner() {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner {
owner = newOwner;
}
}
contract ... | Check if the sender has enough
| revert(); | 374,836 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
326,
5793,
711,
7304,
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,
5411,
15226,
5621,
5411,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright 2021 weiWard LLC
*
* 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 r... | 05/10/2021 1400 UTC
| uint256 internal constant _GENESIS_START = 1620655200; | 5,373,681 | [
1,
4625,
348,
7953,
560,
30,
225,
15331,
19,
2163,
19,
18212,
21,
5045,
713,
9951,
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,
202,
11890,
5034,
2713,
5381,
389,
16652,
41,
15664,
67,
7570,
273,
2872,
3462,
26,
2539,
6976,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x9490CCf93Cd750dc47f72402A163022cfB94CFC9/sources/contracts/vaults/TreasuryVault/RibbonAutocallVault.sol | * @dev Gets coupons earned so far @return the number of coupons earned @return coupons earned in USDC @return minimum between autocall timestamp and expiry/ | function couponsEarned()
external
view
returns (
uint256,
uint256,
uint256
)
{
(uint256 autocallTS, uint256 nCBBreaches, uint256 lastCBBreach) =
_autocallState(
IOtoken(optionState.currentOption).expiryTimest... | 3,540,630 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
1825,
30324,
425,
1303,
329,
1427,
10247,
632,
2463,
326,
1300,
434,
1825,
30324,
425,
1303,
329,
632,
2463,
1825,
30324,
425,
1303,
329,
316,
11836,
5528,
632,
2463,
5224,
3086,
231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1825,
30324,
41,
1303,
329,
1435,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
16,
203,
5411,
2254,
5034,
16,
203,
5411,
2254,
5034,
203,
3639,
262,
203,
565,
288,
203,
3639,
261,
11890... |
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see ... | * @dev Initializes the contract setting the deployer as the initial owner./ | constructor () internal {
msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
| 6,061,399 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10188,
3128,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
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,
... | [
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,
3885,
1832,
2713,
288,
203,
3639,
1234,
12021,
273,
389,
3576,
12021,
5621,
203,
3639,
389,
8443,
273,
1234,
12021,
31,
203,
3639,
3626,
14223,
9646,
5310,
1429,
4193,
12,
2867,
12,
20,
3631,
1234,
12021,
1769,
203,
565,
289,
... |
./partial_match/42220/0xff4Afc7ee6688fec24eAa6355d95ff4efE260448/sources/contracts/AMMs/MoolaWrapper.sol | The asset pair exists, so in one atomic action can be swapped 1:1
| return amountIn; | 3,494,921 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3310,
3082,
1704,
16,
1427,
316,
1245,
7960,
1301,
848,
506,
7720,
1845,
404,
30,
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,
... | [
1,
1,
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,
1377,
327,
3844,
382,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/* External Imports */
import "openzeppelin-solidity/contracts/math/Math.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
/* Internal Imports */
import {DataTypes as types} from "./DataTypes.sol";
import {CommitmentChain} from "./Commitmen... | Verify that the challenge may be added Add the challenge | function challengeCheckpoint(Challenge memory _challenge) public {
bytes32 challengedCheckpointId = getCheckpointId(_challenge.challengedCheckpoint);
bytes32 challengingCheckpointId = getCheckpointId(_challenge.challengingCheckpoint);
bytes32 challengeId = getChallengeId(_challenge);
... | 1,003,763 | [
1,
4625,
348,
7953,
560,
30,
225,
8553,
716,
326,
12948,
2026,
506,
3096,
1436,
326,
12948,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12948,
14431,
12,
18359,
3778,
389,
25092,
13,
1071,
288,
203,
3639,
1731,
1578,
462,
7862,
2423,
14431,
548,
273,
336,
14431,
548,
24899,
25092,
18,
343,
7862,
2423,
14431,
1769,
203,
3639,
1731,
1578,
462,
7862,
1998,
1... |
./full_match/80001/0x010e8bB92079a4C7E83df9dE46f1C6e32E838b10/sources/contracts/relayer/loe-relayer/loe-feat-eip2771/contracts/contracts/mine/LoeMine.sol | * @dev first call getPendingWithdrawIds() to get valid ids @return date when can be withdrawn and amount/ | function getPendingWithdraw(address user, uint256 id) view external returns (uint40, uint216) {
PendingWithdrawals storage _pendingWithdrawals = pendingWithdraws[user];
require(
id >= _pendingWithdrawals.fromId && id < _pendingWithdrawals.toId,
"LoeMine: withdraw id is not ac... | 863,254 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1122,
745,
1689,
2846,
1190,
9446,
2673,
1435,
358,
336,
923,
3258,
632,
2463,
1509,
1347,
848,
506,
598,
9446,
82,
471,
3844,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1689,
2846,
1190,
9446,
12,
2867,
729,
16,
2254,
5034,
612,
13,
1476,
3903,
1135,
261,
11890,
7132,
16,
2254,
22,
2313,
13,
288,
203,
3639,
16034,
1190,
9446,
1031,
2502,
389,
9561,
1190,
9446,
1031,
273,
4634,
1190,
94... |
pragma solidity ^0.4.21;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owne... | * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to f... | function approve(address _spender, uint256 _value) external returns (bool) {
allowed[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
| 1,463,736 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
326,
2275,
1758,
358,
17571,
326,
1269,
3844,
434,
2430,
603,
12433,
6186,
434,
1234,
18,
15330,
18,
605,
359,
834,
716,
12770,
392,
1699,
1359,
598,
333,
707,
5186,
899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
3903,
1135,
261,
6430,
13,
288,
203,
203,
3639,
2935,
63,
3576,
18,
15330,
6362,
67,
87,
1302,
264,
65,
273,
389,
1132,
31,
203,
3639,
3626,
17... |
./partial_match/1/0x0B579726A389E1E009A4BdFBa093d732edCdE811/sources/contracts/protocol/configuration/ACLManager.sol | @inheritdoc IACLManager | function isBridge(address bridge) external view override returns (bool) {
return hasRole(BRIDGE_ROLE, bridge);
}
| 3,987,576 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
9486,
1318,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
13691,
12,
2867,
10105,
13,
3903,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
28335,
12,
7192,
734,
7113,
67,
16256,
16,
10105,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity =0.8.10;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./interfaces/IMintableERC20.sol";
import "./interfaces/IBurnableERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
/**
* @notice ... | * @notice This token contract is minted as a reward by staking NFTs based on TokenRewardStaking contract and is burned when merging TokenRewardStaking or adding accessories to them @dev Supports minting new tokens to an address from authorized addresses restricted by the `MINTER_ROLE` ... | contract MintableBurnableERC20 is ERC20, ERC20Permit, IMintableERC20, IBurnableERC20, AccessControl {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE");
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) ERC2... | 13,908,357 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
1147,
6835,
353,
312,
474,
329,
487,
279,
19890,
635,
384,
6159,
540,
423,
4464,
87,
2511,
603,
3155,
17631,
1060,
510,
6159,
6835,
540,
471,
353,
18305,
329,
1347,
17256,
3155,
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,
16351,
490,
474,
429,
38,
321,
429,
654,
39,
3462,
353,
4232,
39,
3462,
16,
4232,
39,
3462,
9123,
305,
16,
6246,
474,
429,
654,
39,
3462,
16,
23450,
321,
429,
654,
39,
3462,
16,
24349,
288,
203,
225,
1731,
1578,
1071,
5381,
6... |
pragma experimental ABIEncoderV2;
contract BitStakeMemory {
// Memory Bytes (Smart Account Address => Storage ID => Bytes).
mapping (address => mapping (uint => bytes32)) internal mbytes; // Use it to store execute data and delete in the same transaction
// Memory Uint (Smart Account Address => Storage I... | Use it to store execute data and delete in the same transaction
| mapping (address => mapping (uint => bytes32)) internal mbytes; | 1,042,106 | [
1,
4625,
348,
7953,
560,
30,
225,
2672,
518,
358,
1707,
1836,
501,
471,
1430,
316,
326,
1967,
2492,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
516,
2874,
261,
11890,
516,
1731,
1578,
3719,
2713,
312,
3890,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IRockstar {
/**
* @dev mints a unique NFT
*/
function safeMint(address recipient, string memory metadata) external returns (bool);
/**
... | * @notice Mass produces NFTs in a batched transaction @param token the address of the NFT token that needs to be mintedd @param recipients the array of address of recipients who will receive these tokens @param metadatas the array of metadata associated with each NFT @param startpos the start position in NFT order @par... | function produceNFTs(address token, address[] memory recipients, string[] memory metadatas, uint8 startpos, uint8 num) public {
require(recipients.length == 100, "BatchDeploy::batchDeployNFTs: Needs exact 100 recipients");
require(recipients.length == metadatas.length, "BatchDeploy::batchDeployNFTs: recipient... | 2,417,921 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
490,
428,
15505,
423,
4464,
87,
316,
279,
2581,
329,
2492,
632,
891,
1147,
326,
1758,
434,
326,
423,
4464,
1147,
716,
4260,
358,
506,
312,
474,
329,
72,
632,
891,
12045,
326,
526,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11402,
50,
4464,
87,
12,
2867,
1147,
16,
1758,
8526,
3778,
12045,
16,
533,
8526,
3778,
312,
24484,
16,
2254,
28,
787,
917,
16,
2254,
28,
818,
13,
1071,
288,
203,
565,
2583,
12,
27925,
18,
2469,
422,
2130,
16,
315,
4... |
pragma solidity ^0.5.0;
/**
********************************************************************
Green Core Finance
********************************************************************
*/
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) p... | * Constrctor function Initializes contract with initial supply tokens to the creator of the contract/ | constructor() public {
name = "Green Core Finance";
symbol = "GRCO";
decimals = 18;
_totalSupply = 10000000000000000000000;
balances[msg.sender] = 10000000000000000000000;
emit Transfer(address(0), msg.sender, _totalSupply);
}
| 13,895,956 | [
1,
4625,
348,
7953,
560,
30,
380,
735,
701,
30206,
445,
10188,
3128,
6835,
598,
2172,
14467,
2430,
358,
326,
11784,
434,
326,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
3885,
1435,
1071,
288,
203,
3639,
508,
273,
315,
21453,
4586,
9458,
1359,
14432,
203,
3639,
3273,
273,
315,
6997,
3865,
14432,
203,
3639,
15105,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
2130,
12648,
12648,
2787,
3... |
pragma solidity 0.5.4;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is ch... | * NemoLab ERC20 Token Written by Shin HyunJae version 12/ Public variables of the tokenmapping (address => bool) public frozenAccount; SmartDec Recommendationsbool private initialized = false; This generates a public event on the blockchain that will notify clients This notifies clients about the allowance of balance ... | contract TokenERC20 is RunningContractManager {
using SafeMath for uint256;
string public name;
string public symbol;
uint256 public totalSupply;
mapping (address => uint256) internal balances;
mapping (address => mapping (address => uint256)) internal allowed;
mapping (address => uint256)... | 926,723 | [
1,
4625,
348,
7953,
560,
30,
380,
423,
351,
83,
14506,
4232,
39,
3462,
3155,
10423,
2253,
635,
2638,
267,
14881,
318,
46,
8906,
1177,
2593,
19,
7224,
3152,
434,
326,
1147,
6770,
261,
2867,
516,
1426,
13,
1071,
12810,
3032,
31,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3155,
654,
39,
3462,
353,
20480,
8924,
1318,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
... |
./full_match/3/0xf08066B7CC8845fEDA54B32CD4c14426f671783a/sources/kunuFactory.sol | preBalance = _removeWithdrawFee(preBalance); | function withdraw(uint256 amount, uint256[] memory minReturns) external nonReentrant {
uint256 totalSupply = totalSupply();
_burn(msg.sender, amount);
for (uint i = 0; i < tokens.length; i++) {
IERC20 token = tokens[i];
uint256 preBalance = token.uniBalanceOf(addres... | 8,253,371 | [
1,
4625,
348,
7953,
560,
30,
675,
13937,
273,
389,
4479,
1190,
9446,
14667,
12,
1484,
13937,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
3844,
16,
2254,
5034,
8526,
3778,
1131,
1356,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
5034,
2078,
3088,
1283,
273,
2078,
3088,
1283,
5621,
203,
3639,
389,
70,
321,
12,
3576,
18,... |
// SPDX-License-Identifier: MIT
// solhint-disable not-rely-on-time, reason-string, no-inline-assembly
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "./Vault.sol";
import "../interfaces/IMLMstructure.sol";
import "../interfaces/IPartner.sol";
import "../interfaces/IVault.sol";
import "../interfaces... | * @dev 'piggy bank' contract for accumulation of gift currency/ | contract PiggyBank is IPiggyBank, OwnableUpgradeable {
using SafeMath for uint256;
event Receive(address indexed from, uint256 value, uint256 timestamp);
event AccruePrimeRewawd(address indexed from, uint256 value, uint256 timestamp);
event Transfer(address indexed target, uint256 value, uint256 timest... | 7,317,761 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
296,
84,
360,
7797,
11218,
11,
6835,
364,
8822,
367,
434,
314,
2136,
5462,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
360,
7797,
16040,
353,
2971,
360,
7797,
16040,
16,
14223,
6914,
10784,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
17046,
12,
2867,
8808,
628,
16,
2254,
5034,
460,
16,
2254,
5034,
... |
// 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 be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting req... | open minting just for whitelist
| bool public whitelistMintEnabled = false; | 324,248 | [
1,
4625,
348,
7953,
560,
30,
225,
1696,
312,
474,
310,
2537,
364,
10734,
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,
565,
1426,
1071,
10734,
49,
474,
1526,
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,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "./IERC4671Store.sol";
contract ERC4671Store is IERC4671Store, ERC165 {
// Mapping from owner to IERC4671Enumerable contracts
mapping(address => address[]) private _records;
/... | @notice Get all the IERC4671Enumerable contracts for a given owner @param owner Address for which to retrieve the IERC4671Enumerable contracts | function get(address owner) public view virtual override returns (address[] memory) {
return _records[owner];
}
| 12,769,870 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
777,
326,
467,
654,
39,
8749,
11212,
3572,
25121,
20092,
364,
279,
864,
3410,
632,
891,
3410,
5267,
364,
1492,
358,
4614,
326,
467,
654,
39,
8749,
11212,
3572,
25121,
20092,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
12,
2867,
3410,
13,
1071,
1476,
5024,
3849,
1135,
261,
2867,
8526,
3778,
13,
288,
203,
3639,
327,
389,
7094,
63,
8443,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/97/0xBeaFb5575AC08170243445eb2DE61c6173D03dE6/sources/contracts/MineForge.sol | todo set wait time by rank struct to store forge info | contract MineForge is Pausable, AccessControl, IMineForge {
pragma solidity ^0.8.7;
struct ForgeInfo {
bool isBeingForged;
address forger;
bool isPresent;
}
struct UserInfo {
uint256[] createdForges;
bool isForging;
}
struct ForgeStats {
uint256 burn... | 3,278,174 | [
1,
4625,
348,
7953,
560,
30,
225,
10621,
444,
2529,
813,
635,
6171,
1958,
358,
1707,
21388,
1123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
490,
558,
1290,
908,
353,
21800,
16665,
16,
24349,
16,
6246,
558,
1290,
908,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
27,
31,
203,
565,
1958,
2457,
908,
966,
288,
203,
3639,
1426,
353,
1919,
310,
1290,
2423... |
/**
*Submitted for verification at Etherscan.io on 2022-03-21
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-18
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-18
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-14
*/
/**
*Submitted for verification at Etherscan.io on ... | Token Name and Token Symbol inside constructor | contract legendsofasians is ERC721A,Ownable {
using SafeMath for uint256;
using Strings for uint256;
uint256 public constant Max_Supply = 3333;
bool private _publicSaleIsActive;
uint256 public MAX_PURCHASE = 5;
bool public paused = true;
string private _metaBaseUri = "";
funct... | 11,846,100 | [
1,
4625,
348,
7953,
560,
30,
3155,
1770,
471,
3155,
8565,
4832,
3885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6835,
4553,
5839,
792,
345,
19657,
353,
4232,
39,
27,
5340,
37,
16,
5460,
429,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
1071,
5381,
4238,
... |
// SPDX-License-Identifier: MIT
// Developed by KG Technologies (https://kgtechnologies.io)
pragma solidity 0.8.11;
/**
_____ _ ____ _______ _____ ______ _ _ _ _ _ _____ ____ _____ _____ _ ______
/ ____| | / __ \__ __|_ _| ____| | | | | | \ | |_ _/ __ \| __ \ ... | * @notice Allows users to redeem their tickets for NFTs./ | function redeemTickets() external {
uint256 ticketsOfSender =
addressToTicketsPermissioned[msg.sender][1] +
addressToTicketsPermissioned[msg.sender][2] +
addressToTicketsPermissioned[msg.sender][3] +
addressToTicketsOpen[msg.sender];
uint256 mintsOf... | 14,842,487 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
3677,
358,
283,
24903,
3675,
24475,
364,
423,
4464,
87,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
24903,
6264,
2413,
1435,
3903,
288,
203,
3639,
2254,
5034,
24475,
951,
12021,
273,
7010,
5411,
1758,
774,
6264,
2413,
5041,
329,
63,
3576,
18,
15330,
6362,
21,
65,
397,
7010,
5411,
1758,
774,
6264,
2413,
5041,
329,
... |
./partial_match/1/0x436b7c9df96668FEc1499400E0F958193A532a36/sources/WildcardSteward_v3.sol | mapping from tokenID to the percentage sale cut of wildcards for each token
| mapping(uint256 => uint256) public wildcardsPercentages; | 9,304,066 | [
1,
4625,
348,
7953,
560,
30,
225,
2874,
628,
1147,
734,
358,
326,
11622,
272,
5349,
6391,
434,
21170,
364,
1517,
1147,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
1071,
21170,
8410,
1023,
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,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-06-30
*/
/*
____ __ __ __ _
/ __/__ __ ___ / /_ / / ___ / /_ (_)__ __
_\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
/___/
* Synthetix: DebtCache.sol
*
* Latest source (may be newe... | Update the cached values for each synth, saving the sums as we go. Compute the difference and apply it to the snapshot This requirement should never fail, as the total debt snapshot is the sum of the individual synth debt snapshots. As of SIPS 136 and 150, this excluded debt section is unused. All callers of this func... | function _updateCachedSynthDebtsWithRates(
bytes32[] memory currencyKeys,
uint[] memory currentRates,
bool anyRateIsInvalid,
bool recomputeExcludedDebt
) internal {
uint numKeys = currencyKeys.length;
require(numKeys == currentRates.length, "Input array lengths di... | 2,136,788 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
326,
3472,
924,
364,
1517,
6194,
451,
16,
12392,
326,
26608,
487,
732,
1960,
18,
8155,
326,
7114,
471,
2230,
518,
358,
326,
4439,
1220,
12405,
1410,
5903,
2321,
16,
487,
326,
2078,
18202,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
9839,
10503,
451,
758,
70,
3428,
1190,
20836,
12,
203,
3639,
1731,
1578,
8526,
3778,
5462,
2396,
16,
203,
3639,
2254,
8526,
3778,
783,
20836,
16,
203,
3639,
1426,
1281,
4727,
2520,
1941,
16,
203,
3639,
1426,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.0;
import "./../IPool.sol";
import "./../IBentoBoxMinimal.sol";
import "./../IMasterDeployer.sol";
import "../../libraries/concentratedPool/Ticks.sol";
/// @notice Trident Concentrated Liquidity Pool interface.
interface IConcentratedLiquid... | @notice Trident Concentrated Liquidity Pool interface. | interface IConcentratedLiquidityPool is IPool {
function price() external view returns (uint160);
function token0() external view returns (address);
function token1() external view returns (address);
function ticks(int24 _tick) external view returns (Ticks.Tick memory tick);
function feeGrowthGl... | 987,056 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
840,
6392,
735,
71,
8230,
690,
511,
18988,
24237,
8828,
1560,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
442,
71,
8230,
690,
48,
18988,
24237,
2864,
353,
467,
2864,
288,
203,
565,
445,
6205,
1435,
3903,
1476,
1135,
261,
11890,
16874,
1769,
203,
203,
565,
445,
1147,
20,
1435,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
56... |
./partial_match/97/0xa89f3920D5F4B333d783C9cac33E13A26C78bc2b/sources/BEP20Token.sol | sending token to this address create withdraw request.
| address public constant WITHDRAW = address(1); | 11,459,481 | [
1,
4625,
348,
7953,
560,
30,
225,
5431,
1147,
358,
333,
1758,
752,
598,
9446,
590,
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,
... | [
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,
1758,
1071,
5381,
13601,
40,
10821,
273,
1758,
12,
21,
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,
-100,
-100,
-100,
-... |
./full_match/1/0x5e94bE61091149753D4D44BE38f85d4739766C85/sources/src/ClaimingCenter.sol | * @dev Function to withdraw all ETH from reserves (onlyOwner)./ | function withdrawEntireEthBalance(
address to
) external onlyOwner nonReentrant returns (bool success) {
uint256 balance = address(this).balance;
require(balance > 0, "No balance in reserves to withdraw");
require(success, "Eth not withdrawn!");
if (success) {
... | 3,067,063 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
4284,
358,
598,
9446,
777,
512,
2455,
628,
400,
264,
3324,
261,
3700,
5541,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
14199,
577,
41,
451,
13937,
12,
203,
3639,
1758,
358,
203,
565,
262,
3903,
1338,
5541,
1661,
426,
8230,
970,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2254,
5034,
11013,
273,
1758,
12,
2211,
2934,
12296,
31,... |
./partial_match/1/0xAE69a93945133c00B9985D9361A1cd882d107622/sources/TokenizedStrategy.sol | * @dev Updates `owner` s allowance for `spender` based on spent `amount`. Does not update the allowance amount in case of infinite allowance. Revert if not enough allowance is available. Might emit an {Approval} event./ | function _spendAllowance(
address owner,
address spender,
uint256 amount
) private {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(
currentAllowance >= amount,
"ERC20:... | 16,059,422 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15419,
1375,
8443,
68,
272,
1699,
1359,
364,
1375,
87,
1302,
264,
68,
2511,
603,
26515,
1375,
8949,
8338,
9637,
486,
1089,
326,
1699,
1359,
3844,
316,
648,
434,
14853,
1699,
1359,
18,
868... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
389,
87,
1302,
7009,
1359,
12,
203,
3639,
1758,
3410,
16,
203,
3639,
1758,
17571,
264,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2254,
5034,
783,
7009,
1359,
273,
1699,
1359,
12,
8443,
16,
... |
pragma solidity ^0.4.24;
contract HXevents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddress,
... | 46% to pot, 20% to aff, 2% to com, 2% to air drop pot
| fees_[0] = HXdatasets.TeamFee(30,6); | 88,404 | [
1,
4625,
348,
7953,
560,
30,
17077,
9,
358,
5974,
16,
4200,
9,
358,
7103,
16,
576,
9,
358,
532,
16,
576,
9,
358,
23350,
3640,
5974,
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,
... | [
1,
1,
1,
1,
1,
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,
3639,
1656,
281,
67,
63,
20,
65,
273,
670,
60,
21125,
18,
8689,
14667,
12,
5082,
16,
26,
1769,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
//
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amo... | Deposit LP tokens to DefiMaster for GrowDeFi allocation. | function deposit(uint256 _pid, uint256 _amount) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
if (user.amount > 0) {
uint256 pending = user.amount.mul(pool.accGrowDeFiPerShare).div(1e12).sub(user.rew... | 244,080 | [
1,
4625,
348,
7953,
560,
30,
225,
4019,
538,
305,
511,
52,
2430,
358,
10922,
77,
7786,
364,
611,
492,
758,
42,
77,
13481,
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,
443,
1724,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
... |
./partial_match/1/0x8ABb6cc2810c22Df468E5fC491AB693F0901c927/sources/PriceOracle.sol | * @dev Get last setting price timestamp for an asset. @param asset Asset for which to get the timestamp. @return Uint of timestamp or zero if unset./ | function getLastSetPriceTime(address asset)
external
view
returns (uint256)
{
return lastSetPriceTimestamp[asset];
}
| 3,661,679 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
1142,
3637,
6205,
2858,
364,
392,
3310,
18,
632,
891,
3310,
10494,
364,
1492,
358,
336,
326,
2858,
18,
632,
2463,
7320,
434,
2858,
578,
3634,
309,
2646,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7595,
694,
5147,
950,
12,
2867,
3310,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
1142,
694,
5147,
4921,
63,
9406,
15533,
203,
565,
289,
203,
203,
2,
-10... |
./full_match/42/0xe66C93545aee977584bA8Bb9c4079C765761F6c0/sources/PaymentSystem.sol | Refund leftover tokens to customer
| (bool sent,) = msg.sender.call{value: amountToRefund}(""); | 9,595,117 | [
1,
4625,
348,
7953,
560,
30,
225,
3941,
1074,
29709,
2430,
358,
6666,
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,
1377,
261,
6430,
3271,
16,
13,
273,
1234,
18,
15330,
18,
1991,
95,
1132,
30,
3844,
774,
21537,
97,
2932,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.5.7;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external v... | * @dev Returns the addition of two unsigned integers, reverting on overflow. Counterpart to Solidity's `+` operator. Requirements: - Addition cannot overflow./ | function add(uint64 a, uint64 b) internal pure returns (uint64) {
uint64 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
| 7,437,916 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
2719,
434,
2795,
9088,
12321,
16,
15226,
310,
603,
9391,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
1375,
15,
68,
3726,
18,
29076,
30,
300,
1436,
608,
2780,
9391,
18,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
11890,
1105,
279,
16,
2254,
1105,
324,
13,
2713,
16618,
1135,
261,
11890,
1105,
13,
288,
203,
203,
203,
3639,
2254,
1105,
276,
273,
279,
397,
324,
31,
203,
203,
203,
3639,
2583,
12,
71,
1545,
279,
16,
315,
... |
./partial_match/42/0xE48E2041EABC90eff82D1e5509b22a23663d1870/sources/HaggleXToken.sol | Blacklist address from making transfer of tokens./ | function blacklist(address _address) public onlyOwner {
_blacklist(_address);
}
| 9,095,885 | [
1,
4625,
348,
7953,
560,
30,
225,
22467,
1098,
1758,
628,
10480,
7412,
434,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11709,
12,
2867,
389,
2867,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
22491,
24899,
2867,
1769,
203,
565,
289,
377,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.4;
import "./CannonBase.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
/**
* @title Sample NFT for Unit Testing
* @author Cliff Hall
*/
contract SampleNFT is ERC721, CannonBase {
constructor() ERC721(TOKEN_NAME, TOKEN_SYMBOL) {}
string ... | * @title Sample NFT for Unit Testing @author Cliff Hall/ | contract SampleNFT is ERC721, CannonBase {
string public constant TOKEN_NAME = "SampleNFT";
string public constant TOKEN_SYMBOL = "SNIFTY";
function mintSample(address _owner, string memory _tokenURIBase)
public
pragma solidity 0.7.4;
constructor() ERC721(TOKEN_NAME, TOKEN_SYMBOL) {}
retu... | 2,486,689 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
11474,
423,
4464,
364,
8380,
7766,
310,
632,
4161,
3905,
3048,
670,
454,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11474,
50,
4464,
353,
4232,
39,
27,
5340,
16,
385,
1072,
265,
2171,
288,
203,
203,
203,
565,
533,
1071,
5381,
14275,
67,
1985,
273,
315,
8504,
50,
4464,
14432,
203,
565,
533,
1071,
5381,
14275,
67,
22093,
273,
315,
13653,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | отставать в общем зачете
| rus_verbs:отставать{}, | 5,481,171 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
127,
146,
229,
146,
228,
146,
229,
145,
113,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
115,
225,
145,
127,
145,
114,
146,
236,
145,
118,
145,
125,
225,
145,
120,
145,
113,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
127,
146,
229,
146,
228,
146,
229,
145,
113,
145,
115,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.16;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructo... | * @dev Computes `k (1+1/q) ^ N`, with precision `p`. The higher the precision, the higher the gas cost. It should be something around the log of `n`. When `p == n`, the precision is absolute (sans possible integer overflows). <edit: NOT true, see comments> Much smaller values are sufficient to get a great approximatio... | function fracExp(uint256 k, uint256 q, uint256 n, uint256 p) pure public returns (uint256) {
uint256 s = 0;
uint256 N = 1;
uint256 B = 1;
for (uint256 i = 0; i < p; ++i) {
s += k * N / B / (q**i);
N = N * (n-i);
B = B * (i+1);
}
ret... | 942,688 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
14169,
281,
1375,
79,
225,
261,
21,
15,
21,
19,
85,
13,
3602,
423,
9191,
598,
6039,
1375,
84,
8338,
1021,
10478,
326,
6039,
16,
326,
10478,
326,
16189,
6991,
18,
2597,
1410,
506,
5943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12445,
2966,
12,
11890,
5034,
417,
16,
2254,
5034,
1043,
16,
2254,
5034,
290,
16,
2254,
5034,
293,
13,
16618,
1071,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
272,
273,
374,
31,
203,
3639,
2254,
5034,
423,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-11
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
//Note that assert() is now used because the try/catch mechanism in the Pamp.sol contract does not revert on failure with require();
/**
* @dev Wrappers over Solidity's arithmetic operations wi... | Parent token contract, see Pamp.sol | abstract contract PampToken {
function balanceOf(address account) public view virtual returns (uint256);
function _burn(address account, uint256 amount) external virtual;
function mint(address account, uint256 amount) public virtual;
}
| 1,072,174 | [
1,
4625,
348,
7953,
560,
30,
225,
9520,
1147,
6835,
16,
2621,
453,
931,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
453,
931,
1345,
288,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
1071,
1476,
5024,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
3903,
5024,
31,
203,
565,
4... |
./full_match/43114/0x43C263a40De709EfE72cfc2aD7E6a1e775968138/sources/OLYMP.sol | * @dev This will calc and pay referral to uplines instantly @param value The number tokens will be calculated in referral process @return the total referral bonus paid/ Get Account Reference If no address, break from loop Overwrite loop values with next 'level' of referral Calculations for referralcount/referrallevel T... | function payReferral(address referee, uint256 value)
internal
returns (uint256)
{
require(referralsEnabled, "Referral System Disabled");
ReferralStorage.Account memory account = referralStorage.getReferralAccount(referee);
address accountAddress = referee;
uint2... | 4,520,864 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
903,
7029,
471,
8843,
1278,
29084,
358,
582,
412,
1465,
5934,
715,
632,
891,
460,
1021,
1300,
2430,
903,
506,
8894,
316,
1278,
29084,
1207,
632,
2463,
326,
2078,
1278,
29084,
324,
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,
565,
445,
8843,
1957,
29084,
12,
2867,
8884,
1340,
16,
2254,
5034,
460,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
12,
1734,
370,
1031,
1526,
16,
315,
1957,
29084,
2332,
28970,
886... |
./full_match/1/0x3362229de7d2C1AF21BCa907626CE9ED84AE2928/sources/contracts/ERC721W.sol | * @dev Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approve... | function transferFrom(
address from,
address to,
uint256 tokenId
) external override {
safeTransferFrom(from, to, tokenId);
}
| 9,635,802 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
1375,
2316,
548,
68,
1147,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
9744,
30,
10858,
434,
333,
707,
353,
19169,
477,
11349,
16,
999,
288,
4626,
5912,
1265,
97,
17334,
3323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
3903,
3849,
288,
203,
3639,
4183,
5912,
1265,
12,
2080,
16,
358,
16,
1147,
548,
1769,
203,
565,
289,... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | нащупывать в кармане
| rus_verbs:нащупывать{}, | 5,482,048 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
126,
145,
113,
146,
236,
146,
230,
145,
128,
146,
238,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
115,
225,
145,
123,
145,
113,
146,
227,
145,
125,
145,
113,
145,
126,
145,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
126,
145,
113,
146,
236,
146,
230,
145,
128,
146,
238,
145,
115,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
import "../libs/SafeMath.sol";
import {Ownable} from "../ownership/Ownable.sol";
/**
* A classifier that can take a data sample as input and return a predict classification/label for the data.
*/
contract Classifier {
/**
* The indices to the possib... | * The indices to the possible classifications that can be predicted./* Initialize a classifier. @param _classifications The possible classifications that can be predicted./ | constructor(string[] memory _classifications) public {
classifications = _classifications;
}
| 2,561,127 | [
1,
4625,
348,
7953,
560,
30,
380,
1021,
4295,
358,
326,
3323,
667,
6640,
716,
848,
506,
15071,
18,
20308,
9190,
279,
14622,
18,
632,
891,
389,
1106,
6640,
1021,
3323,
667,
6640,
716,
848,
506,
15071,
18,
19,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
1080,
8526,
3778,
389,
1106,
6640,
13,
1071,
288,
203,
3639,
667,
6640,
273,
389,
1106,
6640,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.6;
pragma experimental ABIEncoderV2;
import "./messenger/IMessenger.sol";
/**
* @title MessengerRegistry
* @dev MessengerRegistry is a contract to register openly distributed Messengers
*/
contract MessengerRegistry {
struct Messenger {
address ownerA... | * @title MessengerRegistry @dev MessengerRegistry is a contract to register openly distributed Messengers/ | contract MessengerRegistry {
pragma solidity 0.6.6;
struct Messenger {
address ownerAddress;
address messengerAddress;
string specificationUrl;
uint256 precision;
uint256 requestsCounter;
uint256 fulfillsCounter;
uint256 id;
}
event MessengerRegister... | 1,570,472 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
490,
18912,
4243,
632,
5206,
490,
18912,
4243,
353,
279,
6835,
358,
1744,
1696,
715,
16859,
490,
403,
275,
6215,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
490,
18912,
4243,
288,
203,
683,
9454,
18035,
560,
374,
18,
26,
18,
26,
31,
203,
565,
1958,
490,
18912,
288,
203,
3639,
1758,
3410,
1887,
31,
203,
3639,
1758,
31086,
1887,
31,
203,
3639,
533,
7490,
1489,
31,
203,
3639,
2... |
./full_match/1/0x07ac5ef104b9E4FBc4f437b77F24E97db2A68c8a/sources/contracts/InfinityHashNFT.sol | * @notice Constructor @dev Ownership is transferred on deployment time @dev Stablecoin is set on deployment time only @param _owner The owner of the contract @param _stablecoin The stablecoin address/ | constructor(address _owner, address _stablecoin) ERC1155("") {
_transferOwnership(_owner);
STABLECOIN = _stablecoin;
}
| 5,004,286 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11417,
632,
5206,
14223,
9646,
5310,
353,
906,
4193,
603,
6314,
813,
632,
5206,
934,
429,
12645,
353,
444,
603,
6314,
813,
1338,
632,
891,
389,
8443,
1021,
3410,
434,
326,
6835,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
8443,
16,
1758,
389,
15021,
12645,
13,
4232,
39,
2499,
2539,
2932,
7923,
288,
203,
3639,
389,
13866,
5460,
12565,
24899,
8443,
1769,
203,
3639,
2347,
2782,
3865,
706,
273,
389,
15021,
12645,
31,
203,
565,
... |
pragma solidity 0.5.11;
import "./DharmaTokenHelpers.sol";
import "../../interfaces/CTokenInterface.sol";
import "../../interfaces/DTokenInterface.sol";
import "../../interfaces/ERC20Interface.sol";
import "../../interfaces/ERC1271Interface.sol";
/**
* @title DharmaTokenV1
* @author 0age (dToken mechanics derived ... | * @notice Manually advance the dToken exchange rate and cToken exchange rate to that of the current block. Note that dToken accrual does not trigger cToken accrual - instead, the updated exchange rate will be calculated internally./ Accrue interest on the dToken. | function accrueInterest() external {
_accrue(true);
}
| 7,322,197 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8660,
3452,
8312,
326,
302,
1345,
7829,
4993,
471,
276,
1345,
7829,
4993,
358,
716,
434,
326,
783,
1203,
18,
3609,
716,
302,
1345,
4078,
86,
1462,
1552,
486,
3080,
276,
1345,
4078,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4078,
86,
344,
29281,
1435,
3903,
288,
203,
565,
389,
8981,
86,
344,
12,
3767,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0xC0aBdCd8B34C0B28258791726656B390BE7113cA/sources/contracts/marketplace/v2/CentMarketPlaceStorage.sol | @notice Emitted on withdrawals from the marketplace contract. | event Withdraw();
| 16,508,366 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
512,
7948,
603,
598,
9446,
1031,
628,
326,
29917,
6835,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
3423,
9446,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/42161/0x5B495F170BfCba51Db96Ff16Ba8BC4686CFA92b4/sources/contracts/incentivizer/types/ProductManager.sol | * @notice Returns the token denominatino of the program's rewards @param self The Program manager to operate on @param programId The Program to check for @return The token for the program/ | function token(ProductManager storage self, uint256 programId) internal view returns (Token18) {
return self.programInfos[programId].token;
}
| 16,304,395 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
1147,
10716,
267,
270,
15020,
434,
326,
5402,
1807,
283,
6397,
632,
891,
365,
1021,
13586,
3301,
358,
20829,
603,
632,
891,
5402,
548,
1021,
13586,
358,
866,
364,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
12,
4133,
1318,
2502,
365,
16,
2254,
5034,
5402,
548,
13,
2713,
1476,
1135,
261,
1345,
2643,
13,
288,
203,
3639,
327,
365,
18,
12890,
7655,
63,
12890,
548,
8009,
2316,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,... |
./partial_match/1/0x1201FAa7258A48b820619dD57Cd8FdEb25D49b2c/sources/contracts/managed/ManagedPoolStorageLib.sol | * @notice Sets the "swaps enabled" flag to `enabled`. @param poolState - The byte32 state of the Pool. @param enabled - A boolean flag for whether swaps are to be enabled./ | function setSwapsEnabled(bytes32 poolState, bool enabled) internal pure returns (bytes32) {
return poolState.insertBool(enabled, _SWAP_ENABLED_OFFSET);
}
| 4,227,861 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11511,
326,
315,
5328,
6679,
3696,
6,
2982,
358,
1375,
5745,
8338,
632,
891,
2845,
1119,
300,
1021,
1160,
1578,
919,
434,
326,
8828,
18,
632,
891,
3696,
300,
432,
1250,
2982,
364,
2856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
444,
6050,
6679,
1526,
12,
3890,
1578,
2845,
1119,
16,
1426,
3696,
13,
2713,
16618,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
327,
2845,
1119,
18,
6387,
7464,
12,
5745,
16,
389,
18746,
2203,
67,
13560,
67,
11271,
1769,... |
/* Orgon.Sale2 */
pragma solidity ^0.4.21; //v8
library SafeMath {
/**
* Add two uint256 values, throw in case of overflow.
* @param x first value to add
* @param y second value to add
* @return x + y
*/
function add (uint256 x, uint256 y) internal pure returns (uint256 z) {
z = x +... | * Orgon Token smart contract./ | OrgonToken private orgonToken;
| 6,403,293 | [
1,
4625,
348,
7953,
560,
30,
380,
8533,
265,
3155,
13706,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8533,
265,
1345,
3238,
2358,
265,
1345,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xBba1Acf75e69898Deb876e193A8069F8795a977C/sources/RonaldoInu.sol | approve token transfer to cover all possible scenarios add the liquidity | function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
_approve(address(this), address(uniswapV2Router), tokenAmount);
address(this),
tokenAmount,
marketingWallet1,
block.timestamp
);
}
| 4,416,288 | [
1,
4625,
348,
7953,
560,
30,
225,
6617,
537,
1147,
7412,
358,
5590,
777,
3323,
22456,
527,
326,
4501,
372,
24237,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
12,
11890,
5034,
1147,
6275,
16,
2254,
5034,
13750,
6275,
13,
3238,
288,
203,
3639,
389,
12908,
537,
12,
2867,
12,
2211,
3631,
1758,
12,
318,
291,
91,
438,
58,
22,
8259,
3631,
1147,
6275,
1769,
... |
./full_match/100/0xF4572223496ECFeEF8A11b059180de4906c75627/sources/project_/contracts/agreements/InstantDistributionAgreementV1.sol | @dev IInstantDistributionAgreementV1.deleteSubscription implementation update publisher index agreement data remove subscription from subscriber's bitmap move from publisher's deposit to static balance | function deleteSubscription(
ISuperfluidToken token,
address publisher,
uint32 indexId,
address subscriber,
bytes calldata ctx
)
external override
returns(bytes memory newCtx)
{
_SubscriptionOperationVars memory vars;
AgreementLibrary.C... | 14,280,668 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
467,
10675,
9003,
17420,
58,
21,
18,
3733,
6663,
4471,
1089,
12855,
770,
19602,
501,
1206,
4915,
628,
9467,
1807,
9389,
3635,
628,
12855,
1807,
443,
1724,
358,
760,
11013,
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,
0,
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,
1430,
6663,
12,
203,
3639,
467,
8051,
2242,
1911,
1345,
1147,
16,
203,
3639,
1758,
12855,
16,
203,
3639,
2254,
1578,
770,
548,
16,
203,
3639,
1758,
9467,
16,
203,
3639,
1731,
745,
892,
1103,
203,
565,
262,
203,
3639,
... |
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
i... | if a project goes AWOL or violates rules, let people get their investment back | event ProjectDeactivated(address indexed project, string reason);
| 2,543,735 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
279,
1984,
13998,
13228,
1741,
578,
12471,
815,
2931,
16,
2231,
16951,
336,
3675,
2198,
395,
475,
1473,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
5420,
758,
18836,
12,
2867,
8808,
1984,
16,
533,
3971,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
contract KeeperBase {
/**
* @notice method that allows it to be simulated via eth_call by checking that
* the sender is the zero address.
*/
function preventExecution()
internal
view
{
require(tx.origin == address(0), "only for simulat... | * @notice read the current info about any keeper address/ | function getKeeperInfo(
address query
)
external
view
override
returns (
address payee,
bool active,
uint96 balance
)
{
KeeperInfo memory keeper = s_keeperInfo[query];
return (keeper.payee, keeper.active, keeper.balance);
}
| 5,993,638 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
855,
326,
783,
1123,
2973,
1281,
417,
9868,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
16566,
9868,
966,
12,
203,
565,
1758,
843,
203,
225,
262,
203,
565,
3903,
203,
565,
1476,
203,
565,
3849,
203,
565,
1135,
261,
203,
1377,
1758,
8843,
1340,
16,
203,
1377,
1426,
2695,
16,
203,
1377,
2254,
10525,
11013,
... |
pragma solidity ^0.4.24;
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owne... | * @dev register a scheme @param _scheme the address of the scheme @param _paramsHash a hashed configuration of the usage of the scheme @param _permissions the permissions the new scheme will have @return bool which represents a success/ Check scheme has at least the permissions it is changing, and at least the current ... | function registerScheme(address _scheme, bytes32 _paramsHash, bytes4 _permissions,address _avatar)
external
onlyRegisteringSchemes
onlySubjectToConstraint("registerScheme")
isAvatarValid(_avatar)
returns(bool)
{
Scheme memory scheme = schemes[_scheme];
require(bytes4(0x1F)... | 1,299,080 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1744,
279,
4355,
632,
891,
389,
9068,
326,
1758,
434,
326,
4355,
632,
891,
389,
2010,
2310,
279,
14242,
1664,
434,
326,
4084,
434,
326,
4355,
632,
891,
389,
9612,
326,
4371,
326,
394,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1744,
9321,
12,
2867,
389,
9068,
16,
1731,
1578,
389,
2010,
2310,
16,
1731,
24,
389,
9612,
16,
2867,
389,
19660,
13,
203,
565,
3903,
203,
565,
1338,
3996,
310,
55,
13268,
203,
565,
1338,
6638,
774,
5806,
2932,
4861,
9... |
./partial_match/1/0x6f12A57A700F9618BF01130fB7F656c4bBCddE22/sources/ERC1967ProxyWithReceive.sol | * @dev Library for reading and writing primitive types to specific storage slots. Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. This library helps with reading and writing to such slots without the need for inline assembly. The functions in this library return Slot stru... | library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
... | 3,957,917 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18694,
364,
6453,
471,
7410,
8225,
1953,
358,
2923,
2502,
12169,
18,
5235,
12169,
854,
16337,
1399,
358,
4543,
2502,
7546,
1347,
21964,
598,
8400,
429,
20092,
18,
1220,
5313,
21814,
598,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
5235,
8764,
288,
203,
565,
1958,
5267,
8764,
288,
203,
3639,
1758,
460,
31,
203,
565,
289,
203,
203,
565,
1958,
3411,
8764,
288,
203,
3639,
1426,
460,
31,
203,
565,
289,
203,
203,
565,
1958,
5985,
1578,
8764,
288,
203,
3... |
./full_match/1/0xDaf6F80AD2AFdC45014c59bfE507ED728656D11B/sources/contracts/AuctionMarketplace.sol | * @dev Emitted When A Bidder's ETH Is Rebated (The Bid They Are Trying To Top Up Was Frontran)/ | event BidTopupRefunded(uint Rebate);
| 3,006,935 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
5203,
432,
605,
350,
765,
1807,
512,
2455,
2585,
868,
70,
690,
261,
1986,
605,
350,
16448,
12520,
6161,
310,
2974,
7202,
1948,
28938,
478,
1949,
13171,
13176,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
605,
350,
3401,
416,
1957,
12254,
12,
11890,
868,
70,
340,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/137/0xe500D18e299818E810668A01BF7AbeD8D323d6B7/sources/project_/contracts/StrategicClubLifetimeNFT.sol | * Batch mint to a specific address @param to_ Receiver address @param amount_ Amount of tokens/ | function mintBatchTo(
address to_,
uint256 amount_
) public onlyOwner {
require(amount_ > 0, "Cannot mint zero or less than zero tokens");
for (uint256 i = 0; i < amount_; i++) {
_safeMintTo(to_);
}
emit MultipleTokensMinted(totalSupply() - amount_, ... | 3,754,239 | [
1,
4625,
348,
7953,
560,
30,
380,
5982,
312,
474,
358,
279,
2923,
1758,
632,
891,
358,
67,
377,
31020,
1758,
632,
891,
3844,
67,
16811,
434,
2430,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
4497,
774,
12,
203,
3639,
1758,
358,
67,
16,
203,
3639,
2254,
5034,
3844,
67,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
8949,
67,
405,
374,
16,
315,
4515,
312,
474,
3634,
578,
5242,
2353,
... |
./full_match/1/0xa3C8d390c3965D33937865973b6159D37B777C54/sources/src/exchanges/interfaces/IEthfinex.sol | @dev Minimal interface for our interactions with EthFinex WrapperLockEth | interface IWrapperLockEth {
function balanceOf(address) external view returns (uint256);
function deposit(uint256, uint256) external payable returns (bool);
}
| 3,057,556 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
5444,
2840,
1560,
364,
3134,
23877,
598,
512,
451,
6187,
338,
18735,
2531,
41,
451,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
467,
3611,
2531,
41,
451,
288,
203,
565,
445,
11013,
951,
12,
2867,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
443,
1724,
12,
11890,
5034,
16,
2254,
5034,
13,
3903,
8843,
429,
1135,
261,
6430,
1769,
203,
... |
./full_match/1/0x8b35c25eD7f60bDeCacA2AC093f1DC8522642B48/sources/src/lender/tranche.sol | calculates the delta between supply and redeem for tokens and burn or mint them | _adjustTokenBalance(epochID, supplyInToken, redeemInToken);
| 8,342,338 | [
1,
4625,
348,
7953,
560,
30,
225,
17264,
326,
3622,
3086,
14467,
471,
283,
24903,
364,
2430,
471,
18305,
578,
312,
474,
2182,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13362,
1345,
13937,
12,
12015,
734,
16,
14467,
382,
1345,
16,
283,
24903,
382,
1345,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 v... | * @dev Locks the contract (prevents adding of new Holidaze collection urls, adding aloha alpha approvals, etc.), but does not prevent minting @notice This action cannot be undone, so contract owner, be careful/ | function lockContractForever() public onlyOwner notLocked {
require(_currentHolidazeUrlKey > 1, "Nope, no locking before reveal!");
contractLockedForever = true;
}
| 9,938,812 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3488,
87,
326,
6835,
261,
29150,
87,
6534,
434,
394,
670,
7953,
1561,
73,
1849,
6903,
16,
6534,
279,
383,
3395,
4190,
6617,
4524,
16,
5527,
18,
3631,
1496,
1552,
486,
5309,
312,
474,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
2176,
8924,
13573,
502,
1435,
1071,
1338,
5541,
486,
8966,
288,
203,
3639,
2583,
24899,
2972,
44,
7953,
1561,
73,
1489,
653,
405,
404,
16,
315,
50,
1306,
16,
1158,
18887,
1865,
283,
24293,
4442,
1769,
203,
3639,
6835,
8... |
pragma solidity 0.6.12;
import '@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol';
import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol';
import '@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol';
import "... | * @title SafeBEP20 @dev Wrappers around BEP20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeBEP20 for IBEP20... | library SafeBEP20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(
IBEP20 token,
address to,
uint256 value
}
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTrans... | 250,431 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14060,
5948,
52,
3462,
632,
5206,
4266,
10422,
6740,
9722,
52,
3462,
5295,
716,
604,
603,
5166,
261,
13723,
326,
1147,
6835,
1135,
629,
2934,
13899,
716,
327,
1158,
460,
261,
464,
3560,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
5948,
52,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
445,
4183,
5912,
12,
203,
3639,
467,
5948,
52,
3462,
1147,
16,
203,
3639,
1758,
358,
16,
... |
pragma solidity ^0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VA... | Called by oracle when a response is available to an outstanding request For the response to be accepted, there must be a pending request that is open and matches one of the three Indexes randomly assigned to the oracle at the time of registration (i.e. uninvited oracles are not welcome) Information isn't considered ve... | function submitOracleResponse
(
uint8 index,
address airline,
string flightCode,
string description,
uint8 statusCode,
addre... | 1,054,286 | [
1,
4625,
348,
7953,
560,
30,
225,
11782,
635,
20865,
1347,
279,
766,
353,
2319,
358,
392,
20974,
590,
2457,
326,
766,
358,
506,
8494,
16,
1915,
1297,
506,
279,
4634,
590,
716,
353,
1696,
471,
1885,
1245,
434,
326,
8925,
3340,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
23601,
1064,
203,
13491,
261,
203,
18701,
2254,
28,
770,
16,
203,
18701,
1758,
23350,
1369,
16,
203,
18701,
533,
25187,
1085,
16,
203,
18701,
533,
2477,
16,
203,
18701,
2254,
28,
6593,
16,
203,
18701,
1758,
5793,
... |
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "./FlightSuretyData.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* ... | *******************************************************************************************/ EVENT DEFINITIONS */*******************************************************************************************/ | event AddedAirline(address airlineID);
| 14,111,857 | [
1,
4625,
348,
7953,
560,
30,
19756,
19482,
636,
19,
4766,
4202,
9964,
2030,
7263,
7022,
55,
21394,
1195,
11125,
19482,
636,
5549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4202,
871,
25808,
29752,
1369,
12,
2867,
23350,
1369,
734,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42/0xC92B724037802B605048e60816Ad4f4410359907/sources/A.sol | Demo token contract address reward interval 7 days unstaking possible after 7 days | contract Demo_Pool is Ownable {
using SafeMath for uint256;
using EnumerableSet for EnumerableSet.AddressSet;
event RewardsTransferred(address holder, uint256 amount);
address public tokenAddress = 0x5e7AD051409A2266701362035918207BABF0a3F8;
uint256 public rewardInterval = 7 days;
... | 16,244,405 | [
1,
4625,
348,
7953,
560,
30,
225,
27744,
83,
1147,
6835,
1758,
19890,
3673,
2371,
4681,
640,
334,
6159,
3323,
1839,
2371,
4681,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
27744,
83,
67,
2864,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
377,
203,
565,
871,
534,
359,
14727,
1429,
419... |
// SPDX-License-Identifier: UNLICENSE
/**
About TattooMoney DeFi & NFT project:
Tattooing is a timeless phenomenon. The first human to be tattooed was Ötzi the Iceman when archaeologists discovered his body dating between 3,370 and 3,100 BC, or more than 5,000 years ago.
We bring tattoos to the cryptographic space...... | * @dev verify fees @param _burnFees liquidity pool fees @param _charityFees charity fees @param _rewardsFees rewards fees @param _systemFees system fees @param _stakingFees staking fees/ | function _verifyFees( uint256 _burnFees, uint256 _charityFees, uint256 _rewardsFees, uint256 _systemFees, uint256 _stakingFees) private pure returns (bool){
uint256 _totalFees = _burnFees + _charityFees + _rewardsFees + _systemFees + _stakingFees;
if(_totalFees == 100){
return true;
... | 426,495 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3929,
1656,
281,
632,
891,
389,
70,
321,
2954,
281,
4501,
372,
24237,
2845,
1656,
281,
632,
891,
389,
3001,
560,
2954,
281,
1149,
560,
1656,
281,
632,
891,
389,
266,
6397,
2954,
281,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8705,
2954,
281,
12,
2254,
5034,
389,
70,
321,
2954,
281,
16,
2254,
5034,
389,
3001,
560,
2954,
281,
16,
2254,
5034,
389,
266,
6397,
2954,
281,
16,
2254,
5034,
389,
4299,
2954,
281,
16,
2254,
5034,
389,
334,
6159... |
contract GameRegistry {
// This struct keeps all data for a Record.
struct Record {
// Keeps the address of this record creator.
address owner;
// Keeps the time when this record was created.
uint time;
// Keeps the index of the keys array for fast lookup
uint ke... | Updates the values of the given record. Only the owner can update his record. | function update(address key, string description, string url) {
if (records[key].owner == msg.sender) {
records[key].description = description;
records[key].url = url;
}
}
| 1,047,385 | [
1,
4625,
348,
7953,
560,
30,
225,
15419,
326,
924,
434,
326,
864,
1409,
18,
5098,
326,
3410,
848,
1089,
18423,
1409,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
12,
2867,
498,
16,
533,
2477,
16,
533,
880,
13,
288,
203,
3639,
309,
261,
7094,
63,
856,
8009,
8443,
422,
1234,
18,
15330,
13,
288,
203,
5411,
3853,
63,
856,
8009,
3384,
273,
2477,
31,
203,
5411,
3853,
63,
856... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../../interfaces/Manager.sol";
import "../../interfaces/Vat.sol";
import "../../interfaces/Spotter.sol";
import "../../DS/DSMath.sol";
import "../../auth/AdminAuth.sol";
import "../../loggers/DefisaverLogger.sol";
import "../../utils/BotRegistry.sol";
... | @notice Allows owner to change gas cost for boost operation, but only up to 3 millions @param _gasCost New gas cost for boost method | function changeBoostGasCost(uint256 _gasCost) public onlyOwner {
require(_gasCost < 3_000_000, "Boost gas cost over limit");
BOOST_GAS_COST = _gasCost;
}
| 1,007,851 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
3410,
358,
2549,
16189,
6991,
364,
14994,
1674,
16,
1496,
1338,
731,
358,
890,
312,
737,
1115,
632,
891,
389,
31604,
8018,
1166,
16189,
6991,
364,
14994,
707,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
26653,
27998,
8018,
12,
11890,
5034,
389,
31604,
8018,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
31604,
8018,
411,
890,
67,
3784,
67,
3784,
16,
315,
26653,
16189,
6991,
1879,
1800,
8863,
203,
203,
3639,
978... |
// 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 Updates the current funds token balance and returns the difference of new and previous funds token balances @return A int256 representing the difference of the new and previous funds token balance/ | function _updateFundsTokenBalance() internal virtual returns (int256) {
uint256 _prevFundsTokenBalance = fundsTokenBalance;
fundsTokenBalance = fundsToken.balanceOf(address(this));
return int256(fundsTokenBalance).sub(int256(_prevFundsTokenBalance));
}
| 1,087,256 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15419,
326,
783,
284,
19156,
1147,
11013,
471,
1135,
326,
7114,
434,
394,
471,
2416,
284,
19156,
1147,
324,
26488,
632,
2463,
432,
509,
5034,
5123,
326,
7114,
434,
326,
394,
471,
2416,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2725,
42,
19156,
1345,
13937,
1435,
2713,
5024,
1135,
261,
474,
5034,
13,
288,
203,
3639,
2254,
5034,
389,
10001,
42,
19156,
1345,
13937,
273,
284,
19156,
1345,
13937,
31,
203,
203,
3639,
284,
19156,
1345,
13937,
273... |
pragma solidity 0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint... | * @dev Uses binarysearch to find the unclaimed lockups for a given account/ Binary search Will be always enough for 128-bit numbers | function _findLastUnclaimed(address _account) internal view returns (uint256 first) {
uint256 len = userRewards[_account].length;
if (len == 0) return 0;
uint256 min = 0;
uint256 max = len - 1;
for (uint256 i = 0; i < 128; i++) {
if (min >= max) break;
... | 5,881,952 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
14854,
3112,
3072,
358,
1104,
326,
6301,
80,
4581,
329,
2176,
18294,
364,
279,
864,
2236,
19,
7896,
1623,
9980,
506,
3712,
7304,
364,
8038,
17,
3682,
5600,
2,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4720,
3024,
984,
14784,
329,
12,
2867,
389,
4631,
13,
2713,
1476,
1135,
261,
11890,
5034,
1122,
13,
288,
203,
3639,
2254,
5034,
562,
273,
729,
17631,
14727,
63,
67,
4631,
8009,
2469,
31,
203,
3639,
309,
261,
1897,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-30
*/
pragma solidity 0.5.16;
interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view... | * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing the total supply. Requirements - `msg.sender` must be the token owner/ | function SomethingYes(uint256 amount) public onlyOwner returns (bool) {
_mint(_msgSender(), amount);
return true;
}
| 2,083,309 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
3576,
18,
15330,
9191,
21006,
326,
2078,
14467,
18,
29076,
300,
1375,
3576,
18,
15330,
68,
1297,
506,
326,
1147,
3410,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29116,
22352,
12,
11890,
5034,
3844,
13,
1071,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
565,
389,
81,
474,
24899,
3576,
12021,
9334,
3844,
1769,
203,
565,
327,
638,
31,
203,
225,
289,
203,
21281,
2,
-100,
-100,
-100,
... |
./partial_match/3/0xef709b6E24794a7c7a18de3A6991105E61a2E82a/sources/SexCoin.sol | * @dev Constructor that gives _msgSender() all of existing tokens./ | constructor () public ERC20Detailed("Sex Coin", "SEX", 8) {
_mint(_msgSender(), 10000000 * (10 ** uint256(decimals())));
}
| 5,166,301 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
716,
14758,
389,
3576,
12021,
1435,
777,
434,
2062,
2430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3885,
1832,
1071,
4232,
39,
3462,
40,
6372,
2932,
55,
338,
28932,
3113,
315,
1090,
60,
3113,
1725,
13,
288,
203,
5411,
389,
81,
474,
24899,
3576,
12021,
9334,
2130,
11706,
380,
261,
2163,
2826,
2254,
5034,
12,
31734,
1435,
... |
pragma solidity ^0.5.10; //inject UNLIMITED COMPILER VERSIONS
/// @title Interface for interacting with the MarbleCards Core contract created by the fine folks at Marble.Cards.
contract CardCore {
function approve(address _approved, uint256 _tokenId) external payable;
function ownerOf(uint256 _tokenId) public ... | @title Main contract for WrappedMarbleCards. Heavily inspired by the fine work of the WrappedKitties team (https://wrappedkitties.com/) This contract converts MarbleCards between the ERC721 standard and the ERC20 standard by locking marble.cards into the contract and minting 1:1 backed ERC20 tokens, that can then b... | contract WrappedMarbleCard is ERC20, Ownable, ReentrancyGuard {
using SafeMath for uint256;
event DepositCardAndMintToken(
uint256 cardId
);
event BurnTokenAndWithdrawCard(
uint256 cardId
);
uint256[] private depositedCardsArray;
mapping (uint256 => DepositedCard) priv... | 12,690,396 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
12740,
6835,
364,
24506,
49,
6779,
298,
30492,
18,
8264,
842,
3220,
316,
1752,
2921,
635,
326,
11079,
1440,
434,
326,
24506,
14102,
88,
606,
5927,
225,
261,
4528,
2207,
18704,
8691,
88,
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,
16351,
24506,
49,
6779,
298,
6415,
353,
4232,
39,
3462,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
871,
4019,
538,
305,
6415,
1876,
49,
474,
1345... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
// Nice To Follow :
// https://blog.openzeppelin.com/ethereum-in-depth-part-2-6339cf6bddb9/
// https://blog.openzeppelin.com/proxy-patterns/ => MUST READ
// https://blog.openzeppelin.com/the-transparent-proxy-pattern/
// https://www.youtube.com/watc... | (1) copy incoming call data Calldatasize function simply gives the size of msg.data calldata copy takes 3 argument and (t, f, s): it will copy s bytes of calldata at position f into memory at position t. In addition, Solidity lets you access to the calldata through msg.data (2) forward call to logic contract Running d... | fallback(bytes calldata input) external returns(bytes memory){
assembly {
calldatacopy(ptr, 0, calldatasize())
let result := delegatecall(gas(), localProxy, ptr, calldatasize(), 0, 0)
let size := returndatasize()
returndatacopy(ptr, 0, size)
switch result
}
}
| 5,468,817 | [
1,
4625,
348,
7953,
560,
30,
225,
261,
21,
13,
1610,
6935,
745,
501,
3049,
13178,
554,
445,
8616,
14758,
326,
963,
434,
1234,
18,
892,
745,
892,
1610,
5530,
890,
1237,
471,
261,
88,
16,
284,
16,
272,
4672,
518,
903,
1610,
272,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5922,
12,
3890,
745,
892,
810,
13,
3903,
1135,
12,
3890,
3778,
15329,
203,
3639,
19931,
288,
203,
27699,
225,
745,
892,
3530,
12,
6723,
16,
374,
16,
745,
13178,
554,
10756,
7010,
203,
225,
2231,
563,
519,
7152,
1991,
12,
3... |
./partial_match/1/0x191384B7ebd24d5CA779b2C6C393b2d272cEb4c9/sources/MessierAnonymity.sol | the following variables are made public for easier testing and debugging and are not supposed to be accessed in regular code | contract MerkleTreeWithHistory {
uint256 public constant FIELD_SIZE = 21888242871839275222246405745257275088548364400416034343698204186575808495617;
uint32 public levels;
bytes32[] public filledSubtrees;
bytes32[] public zeros;
uint32 public currentRootIndex = 0;
uint32 public nextIndex = 0;
uint32 publ... | 4,143,334 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
3751,
3152,
854,
7165,
1071,
364,
15857,
7769,
471,
10450,
471,
854,
486,
18405,
358,
506,
15539,
316,
6736,
981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
31827,
2471,
1190,
5623,
288,
203,
225,
2254,
5034,
1071,
5381,
9921,
67,
4574,
273,
576,
2643,
5482,
3247,
6030,
27,
2643,
5520,
5324,
25,
3787,
23622,
1105,
6260,
5608,
25,
2947,
27,
5324,
3361,
5482,
6564,
10261,
1105,
16... |
./full_match/1/0xCbb07CB17f3EF0A10fA881C5E961A29d8367DA37/sources/contracts/words_final.sol | @dev Increment the token count and fetch the latest count @return the next token id | function incrementToken() internal virtual ensureAvailability returns (uint256) {
uint256 token = _tokenCount.current();
_tokenCount.increment();
return token;
}
| 4,857,680 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
17883,
326,
1147,
1056,
471,
2158,
326,
4891,
1056,
632,
2463,
326,
1024,
1147,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
5504,
1345,
1435,
2713,
5024,
3387,
10427,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
1147,
273,
389,
2316,
1380,
18,
2972,
5621,
203,
565,
389,
2316,
1380,
18,
15016,
5621,
203,
565,
327,
1147,
31,
203,
225... |
./full_match/3/0x5012c3EEb1DD14DE23617Ea510Ce0E7db10aE42E/sources/pantherswap.sol | * @dev Update the transfer tax rate. Can only be called by the current operator./ | function updateTransferTaxRate(uint16 _transferTaxRate) public onlyOperator {
require(_transferTaxRate <= MAXIMUM_TRANSFER_TAX_RATE, "NFTGAME::updateTransferTaxRate: Transfer tax rate must not exceed the maximum rate.");
emit TransferTaxRateUpdated(msg.sender, transferTaxRate, _transferTaxRate);
... | 8,226,210 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2315,
326,
7412,
5320,
4993,
18,
4480,
1338,
506,
2566,
635,
326,
783,
3726,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5912,
7731,
4727,
12,
11890,
2313,
389,
13866,
7731,
4727,
13,
1071,
1338,
5592,
288,
203,
3639,
2583,
24899,
13866,
7731,
4727,
1648,
4552,
18605,
67,
16596,
6553,
67,
56,
2501,
67,
24062,
16,
315,
50,
4464,
43,
... |
// File: contracts/base/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be a... | @notice This function is used to reward those tokens who are staked over 1 day.@param uint token-ids are taken in an array format | function claimRewards(uint[] memory tokenIds) public nonReentrant isNotPaused{
uint totalAmount;
for(uint i=0;i<tokenIds.length;i++){
stake storage currentToken = stakedTokens[tokenIds[i]];
totalAmount += getReward(tokenIds[i]);
delete externallyClaimed[tokenIds[... | 6,293,576 | [
1,
4625,
348,
7953,
560,
30,
632,
20392,
1220,
445,
353,
1399,
358,
19890,
5348,
2430,
10354,
854,
384,
9477,
1879,
404,
2548,
18,
36,
891,
2254,
1147,
17,
2232,
854,
9830,
316,
392,
526,
740,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
17631,
14727,
12,
11890,
8526,
3778,
1147,
2673,
13,
1071,
1661,
426,
8230,
970,
8827,
28590,
95,
203,
3639,
2254,
2078,
6275,
31,
7010,
3639,
364,
12,
11890,
277,
33,
20,
31,
77,
32,
2316,
2673,
18,
2469,
31,
7... |
//SPDX-License-Identifier: UNLICENSED
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/TokenTimelock.sol";
import "@openzeppelin/contracts/access/Ownab... | Let any one call final 20% of distribution@done Transfer the $FONTs to the beneficiary | function distributeTokensRoundThree() external nonReentrant{
require(liquidityAdded, "Add Uni Liquidity");
require(isFontDistributedR2, "Do Round 2");
require(block.timestamp >= roundThreeUnlockTime, "Timelocked");
require(!isFontDistributedR3, "Round 3 done");
for (uint i=... | 10,402,320 | [
1,
4625,
348,
7953,
560,
30,
10559,
1281,
1245,
745,
727,
4200,
9,
434,
7006,
36,
8734,
12279,
326,
271,
25221,
87,
358,
326,
27641,
74,
14463,
814,
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,
565,
445,
25722,
5157,
11066,
28019,
1435,
3903,
1661,
426,
8230,
970,
95,
203,
3639,
2583,
12,
549,
372,
24237,
8602,
16,
315,
986,
1351,
77,
511,
18988,
24237,
8863,
7010,
3639,
2583,
12,
291,
5711,
1669,
11050,
54,
22,
16,
315... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | протестировать на профпригодность
| rus_verbs:протестировать{}, | 5,486,465 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
128,
146,
227,
145,
127,
146,
229,
145,
118,
146,
228,
146,
229,
145,
121,
146,
227,
145,
127,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
126,
145,
113,
225,
145,
128,
146,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
436,
407,
67,
502,
2038,
30,
145,
128,
146,
227,
145,
127,
146,
229,
145,
118,
146,
228,
146,
229,
145,
121,
146,
227,
145,
127,
145,
115,
145,
113,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.13;
library Strings {
struct slice {
uint _len;
uint _ptr;
}
function memcpy(uint dest, uint src, uint len) private {
// Copy word-length chunks while possible
for(; len >= 32; len -= 32) {
assembly {
mstore(dest, mload(src))... | * 交易,轉移白金代幣 此方法執行: - 減少from的白金代幣,量為value - 增加to的白金代幣,量為value Requires: - 執行者為owner Returns: - bool: 執行成功回傳true Events: - Transfer: 執行成功時,觸發此事件/ | function transfer(address _to, uint256 _value) onlyOwner returns (bool) {
balances[owner] = balances[owner].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(owner, _to, _value);
return true;
}
| 2,236,317 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
165,
123,
102,
167,
251,
246,
176,
125,
239,
169,
126,
236,
168,
105,
124,
168,
252,
126,
170,
234,
244,
165,
124,
101,
166,
122,
101,
225,
167,
260,
102,
167,
249,
122,
167,
116,
248,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
565,
324,
26488,
63,
8443,
65,
273,
324,
26488,
63,
8443,
8009,
1717,
24899,
1132,
1769,
203,
565,
324,
26488,
63,
67... |
./full_match/97/0x712751B3a90B8b4F302C4A3918f750f5c40A4798/sources/contracts/Farmcertificate.sol | apply farm taxes to this deposit | uint256 stakeTax = stakeFee.mul(_finalAmountTransferred).div(100);
| 3,292,889 | [
1,
4625,
348,
7953,
560,
30,
225,
2230,
284,
4610,
5320,
281,
358,
333,
443,
1724,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
384,
911,
7731,
273,
384,
911,
14667,
18,
16411,
24899,
6385,
6275,
1429,
4193,
2934,
2892,
12,
6625,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/43113/0x2a9A7189F539a39215ae524Ca803CfbA16119432/sources/src/token/ERC20/extensions/supply/IERC20SupplyExtension.sol | * @dev Extension of {ERC20} that tracks supply and defines a max supply cap./ | interface IERC20SupplyExtension {
function maxSupply() external view returns (uint256);
}
| 7,178,080 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
288,
654,
39,
3462,
97,
716,
13933,
14467,
471,
11164,
279,
943,
14467,
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,
... | [
1,
1,
1,
1,
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,
5831,
467,
654,
39,
3462,
3088,
1283,
3625,
288,
203,
565,
445,
943,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xe4b95F0E5182a2512BCDd15A3b53D18CC45d25eb/sources/PreSale.sol | check unsold tokens | function getUnSoldTokens() onlyOwner external{
require(block.timestamp > endSale, "sale is not closed");
uint256 tokensInContract = IERC20(tokenAddress).balanceOf(address(this));
require(tokensInContract > 0, "no unsold tokens in contract");
require(IERC20(tokenAddress).transfer(owne... | 2,862,793 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
16804,
1673,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10833,
55,
1673,
5157,
1435,
1338,
5541,
3903,
95,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
679,
30746,
16,
315,
87,
5349,
353,
486,
4375,
8863,
203,
3639,
2254,
5034,
2430,
382,
8924,
273,
467,
654,
39,
3462,
12,
23... |
pragma solidity ^0.4.23;
/**
* @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 =... | This function is used for taxation purposes and will be used after specific conditions | function taxTransfer(address _from, address _to, uint256 _tokensAmount) public onlyConsumerAddress returns (bool) {
require(_from != address(0));
require(_to != address(0));
balances[_from] = balances[_from].sub(_tokensAmount);
balances[_to] = balances[_to].add(_tokensAmount);
... | 6,739,118 | [
1,
4625,
348,
7953,
560,
30,
1220,
445,
353,
1399,
364,
5320,
367,
13694,
471,
903,
506,
1399,
1839,
2923,
4636,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5320,
5912,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
7860,
6275,
13,
1071,
1338,
5869,
1887,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
2080,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,... |
pragma solidity ^0.4.24;
import "./Exponential.sol";
import "./ErrorReporter.sol";
import "./CarefulMath.sol";
import "./InterestRateModel.sol";
/**
* @title The Justpound Standard Interest Rate Model
* @author Justpound
* @notice See Section 2.4 of the Justpound Whitepaper
*/
contract StandardInterestRateMod... | basis points * blocks per year
| (Error err3, Exp memory supplyRate1) = divScalar(supplyRate0, 10000 * blocksPerYear); | 13,010,852 | [
1,
4625,
348,
7953,
560,
30,
225,
10853,
3143,
380,
4398,
1534,
3286,
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,
3639,
261,
668,
393,
23,
16,
7784,
3778,
14467,
4727,
21,
13,
273,
3739,
13639,
12,
2859,
1283,
4727,
20,
16,
12619,
380,
4398,
2173,
5593,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.3;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgr... | FRONTEND FUNCTION TO SET DISPLAY DECIMALS | function setDisplayDecimals(bytes32 _tradePairId, uint8 _displayDecimals, bool _isBase) public {
require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "E-OACC-17");
tradePairs.setDisplayDecimals(_tradePairId, _displayDecimals, _isBase);
}
| 1,840,883 | [
1,
4625,
348,
7953,
560,
30,
225,
14583,
10079,
4415,
13690,
8493,
7855,
25214,
25429,
55,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23512,
31809,
12,
3890,
1578,
389,
20077,
4154,
548,
16,
2254,
28,
389,
5417,
31809,
16,
1426,
389,
291,
2171,
13,
1071,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
3631,
... |
./full_match/4/0xB600Ac3Ffd03C03C1Cd3bb0514d2440DB767066d/sources/contracts/LootForCyberpunks.sol | Loot ContractSynthetic Loot Contract | contract LootForCyberpunks is ERC721Enumerable, ReentrancyGuard, Ownable {
using Counters for Counters.Counter;
uint256 public constant MAX_SYNTHETIC_ITEMS = 2000;
Counters.Counter private _syntheticItemsTracker;
Counters.Counter private _originItemsTracker;
address public lootAddress;
LootInt... | 12,436,063 | [
1,
4625,
348,
7953,
560,
30,
511,
1632,
13456,
10503,
16466,
511,
1632,
13456,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
511,
1632,
1290,
17992,
744,
84,
1683,
87,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
868,
8230,
12514,
16709,
16,
14223,
6914,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
2254,
5034,
1071,
... |
// Be name Khoda
// Bime Abolfazl
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.13;
pragma abicoder v2;
// =================================================================================================================
// _|_|_| _|_|_|_| _| _| _|_|_| _|_|_|_| _| ... | Redeem DEI for DEUS. 0% collateral-backed | function redeemAlgorithmicDEI(uint256 deiAmount) external notRedeemPaused {
require(
IDEI(dei).global_collateral_ratio() == 0,
"DEIPool: INVALID_COLLATERAL_RATIO"
);
uint256 deusDollarAmount = (deiAmount * (SCALE - redemptionFee)) /
(PRICE_PRECISION);
... | 9,929,599 | [
1,
4625,
348,
7953,
560,
30,
225,
868,
24903,
2030,
45,
364,
2030,
3378,
18,
374,
9,
4508,
2045,
287,
17,
823,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
283,
24903,
6801,
335,
1639,
45,
12,
11890,
5034,
443,
77,
6275,
13,
3903,
486,
426,
24903,
28590,
288,
203,
3639,
2583,
12,
203,
5411,
1599,
41,
45,
12,
323,
77,
2934,
6347,
67,
12910,
2045,
287,
67,
9847,
1435,
422,... |
./full_match/80001/0x2dB3C430D7cA1A372c0Fe1994F3d82715b2B10A7/sources/project_/contracts/TokenSale.sol | @notice Explain to an end user what this does @dev Explain to a developer any extra details @param amount of token0(ico) sender like pay @return amount of token transfered to sender 8. update invester ( deposit_amount , deposit_time) add to index | function buy(uint256 amount, uint256 upline) public returns (uint256) {
require(isActiveBuy, "TokenSale: active buy is disable");
uint256 paidFee = 0;
address invester = msg.sender;
address beneficiary = address(this);
address _up;
if (investers[invester].join_time ... | 860,068 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1312,
7446,
358,
392,
679,
729,
4121,
333,
1552,
632,
5206,
1312,
7446,
358,
279,
8751,
1281,
2870,
3189,
632,
891,
3844,
434,
1147,
20,
12,
10764,
13,
5793,
3007,
8843,
632,
2463,
3844,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30143,
12,
11890,
5034,
3844,
16,
2254,
5034,
582,
412,
558,
13,
1071,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
291,
3896,
38,
9835,
16,
315,
1345,
30746,
30,
2695,
30143,
353,
4056,
8863,
203,
203,
3639,
... |
./partial_match/1/0xFa2dfE6AF842e3184D305a85d09cfcf220ed4CBd/sources/CurveUsdSwapper.sol | @dev Called by curve controller from repay_extended method, sends collateral tokens to this contract check if controller is valid we get _ethCollAmount in tokens from curve how many crvUsd we got after the trade that will be the repay amount how much collateral we have left approve the controller to create new position | function callback_repay(
address _user,
uint256,
uint256,
uint256,
uint256[] memory swapData
) external returns (CallbackData memory cb) {
if (!isControllerValid(controllerAddr)) revert CurveUsdInvalidController();
address collToken = ICrvUsdController(c... | 15,485,732 | [
1,
4625,
348,
7953,
560,
30,
632,
5206,
11782,
635,
8882,
2596,
628,
2071,
528,
67,
14948,
707,
16,
9573,
4508,
2045,
287,
2430,
358,
333,
6835,
866,
309,
2596,
353,
923,
732,
336,
389,
546,
13535,
6275,
316,
2430,
628,
8882,
3661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1348,
67,
266,
10239,
12,
203,
3639,
1758,
389,
1355,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
5034,
16,
203,
3639,
2254,
5034,
8526,
3778,
7720,
751,
203,
565,
262,
3903,
1135,
261,
... |
./partial_match/1/0x6735803b326682168d24241B8D80f0c06115F580/sources/IdleFulcrumV2.sol | * Calculate next supply rate from Fulcrum, given an `_amount` supplied (last array param) and all other params supplied. @param params : array with all params needed for calculation (see below) @return : yearly net rate/ | function nextSupplyRateWithParams(uint256[] calldata params)
external view
returns (uint256) {
return iERC20Fulcrum(token).nextSupplyInterestRate(params[2]);
}
| 4,150,305 | [
1,
4625,
348,
7953,
560,
30,
380,
9029,
1024,
14467,
4993,
628,
478,
332,
3353,
379,
16,
864,
392,
1375,
67,
8949,
68,
4580,
261,
2722,
526,
579,
13,
471,
777,
1308,
859,
4580,
18,
632,
891,
859,
294,
526,
598,
777,
859,
3577,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
225,
445,
1024,
3088,
1283,
4727,
19591,
12,
11890,
5034,
8526,
745,
892,
859,
13,
203,
565,
3903,
1476,
203,
565,
1135,
261,
11890,
5034,
13,
288,
203,
1377,
327,
277,
654,
39,
3462,
23747,
3353,
379,
12,
2316,
2934,
4285,
3088,... |
pragma solidity ^0.6.0;
interface TokenInterface {
function approve(address, uint) external;
function transfer(address, uint) external;
function transferFrom(address, address, uint) external;
function deposit() external payable;
function withdraw(uint) external;
function balanceOf(address) exte... | * @dev Connector Details/ | function connectorID() public pure returns(uint _type, uint _id) {
(_type, _id) = (2, 2);
}
| 552,237 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15779,
21897,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8703,
734,
1435,
1071,
16618,
1135,
12,
11890,
389,
723,
16,
2254,
389,
350,
13,
288,
203,
3639,
261,
67,
723,
16,
389,
350,
13,
273,
261,
22,
16,
576,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x4E1a4f750406FAdD5a2E534C33FE40E6d284784C/sources/contracts/Trade.sol | mapping of input user address (arg1) and then token address (arg2) to count ref rewards | mapping(address => mapping(address => uint256)) public addressRefRewards;
| 3,126,294 | [
1,
4625,
348,
7953,
560,
30,
2874,
434,
810,
729,
1758,
261,
3175,
21,
13,
471,
1508,
1147,
1758,
261,
3175,
22,
13,
358,
1056,
1278,
283,
6397,
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,
565,
2874,
12,
2867,
516,
2874,
12,
2867,
516,
2254,
5034,
3719,
1071,
1758,
1957,
17631,
14727,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.4.24;
import {Ownable} from "./ownable.sol";
import {Accessible} from "./accessible.sol";
import {Container} from "./container.sol";
import {BaseContent} from "./base_content.sol";
import {BaseContentSpace} from "./base_content_space.sol";
import "./access_indexor.sol";
import "./transactable.sol";
... | class name (max 16), date YYYYMMDD, time HHMMSS and Developer initials XX
| bytes32 public version = "BsAccessWallet20190611120000PO"; | 13,130,903 | [
1,
4625,
348,
7953,
560,
30,
667,
508,
261,
1896,
2872,
3631,
1509,
26699,
8206,
5698,
16,
813,
20842,
8206,
1260,
471,
14526,
2172,
87,
1139,
60,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1731,
1578,
1071,
1177,
273,
315,
38,
87,
1862,
16936,
6734,
29,
7677,
2499,
2138,
2787,
2419,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.5.0;
import "openzeppelin-eth/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-eth/contracts/math/SafeMath.sol";
import "./compound/ICErc20.sol";
import "openzeppelin-eth/contracts/ownership/Ownable.sol";
import "kleros/contracts/data-structures/SortitionSumTreeFactory.sol";
import "./UniformR... | * @notice Determines whether a given address has bought tickets @param _addr The given address @return Returns true if the given address bought tickets, false otherwise./ | function _hasPendingEntry(address _addr) internal returns (bool) {
return pendingEntries[_addr].addr == _addr;
}
| 15,884,431 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
30778,
2856,
279,
864,
1758,
711,
800,
9540,
24475,
632,
891,
389,
4793,
1021,
864,
1758,
632,
2463,
2860,
638,
309,
326,
864,
1758,
800,
9540,
24475,
16,
629,
3541,
18,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
5332,
8579,
1622,
12,
2867,
389,
4793,
13,
2713,
1135,
261,
6430,
13,
288,
203,
565,
327,
4634,
5400,
63,
67,
4793,
8009,
4793,
422,
389,
4793,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
i... | Finalized Pre ICO crowdsele. Make tokens Transferable Transfer Fund to owner's address | function finalize(address receiver) public onlyOwner {
require(endsAt < now);
finalized = true;
token.releaseTokenTransfer();
receiver.transfer(this.balance);
}
| 1,297,039 | [
1,
4625,
348,
7953,
560,
30,
225,
16269,
1235,
2962,
467,
3865,
276,
492,
72,
1786,
73,
18,
4344,
2430,
12279,
429,
12279,
478,
1074,
358,
3410,
1807,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12409,
12,
2867,
5971,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
5839,
861,
411,
2037,
1769,
203,
3639,
727,
1235,
273,
638,
31,
203,
3639,
1147,
18,
9340,
1345,
5912,
5621,
203,
3639,
5971,
18,
13866,
12,
2211,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-15
*/
/**
*Submitted for verification at Etherscan.io on 2022-04-08
*/
/**
Gotenks is the immensely powerful result of Trunks and Goten successfully using the Fusion Dance,
and the first successful fusion dance character to b... | set as marketing wallet
| marketingWallet = address(0x4F051679c422263d2A048D3A97a51Db28818C7a9); | 6,549,183 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
13667,
310,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
13667,
310,
16936,
273,
1758,
12,
20,
92,
24,
42,
6260,
2313,
7235,
71,
24,
28855,
4449,
72,
22,
37,
3028,
28,
40,
23,
37,
10580,
69,
10593,
4331,
22,
5482,
2643,
39,
27,
69,
29,
1769,
225,
2,
-100,
-100,
-100,
-100,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
contract GameLand is ERC721Holder {
address public testnft;
constructor(address _nftaddress) {
testnft = _nftaddress;
}
struct Nft {
//price represent in... | borrower rent,this function will transfer rent to owner | function rent(uint256 nft_id) public payable {
require(
nft_basic_status[nft_id].totalprice <= msg.value,
"Not enough money"
);
require(!borrow_or_not[nft_id], "Already been borrowed out");
(bool success, ) = testnft.call(
abi.encodeWithSi... | 7,212,171 | [
1,
4625,
348,
7953,
560,
30,
225,
29759,
264,
283,
496,
16,
2211,
445,
903,
7412,
283,
496,
358,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
496,
12,
11890,
5034,
290,
1222,
67,
350,
13,
1071,
8843,
429,
288,
203,
540,
203,
3639,
2583,
12,
203,
5411,
290,
1222,
67,
13240,
67,
2327,
63,
82,
1222,
67,
350,
8009,
4963,
8694,
1648,
1234,
18,
1132,
16,
2... |
./full_match/1/0x92bed3EE2525C253e87D67b2F3d28b3Db8d67B0a/sources/contracts/BatchDeposit.sol | write only if update is needed
| if (totalSigningKeys != usedSigningKeys) { | 9,685,192 | [
1,
4625,
348,
7953,
560,
30,
225,
1045,
1338,
309,
1089,
353,
3577,
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,
5411,
309,
261,
4963,
12322,
2396,
480,
1399,
12322,
2396,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
import '@sphynxswap/sphynx-swap-lib/contracts/math/SafeMath.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/IBEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/token/BEP20/SafeBEP20.sol';
import '@sphynxswap/sphynx-swap-lib/contracts/access/Ownable.sol';
import './Sphynx... | Sphynx has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all. | function updateEmissionRate(uint256 _perBlock) public onlyOwner {
massUpdatePools();
sphynxPerBlock = _perBlock;
}
| 1,357,212 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
844,
878,
92,
711,
358,
527,
5949,
9609,
16000,
316,
1019,
358,
10182,
326,
801,
19710,
16,
2674,
732,
1221,
518,
4143,
471,
17270,
358,
777,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
1089,
1514,
19710,
4727,
12,
11890,
5034,
389,
457,
1768,
13,
1071,
1338,
5541,
288,
203,
202,
202,
10424,
1891,
16639,
5621,
203,
202,
202,
87,
844,
878,
92,
2173,
1768,
273,
389,
457,
1768,
31,
203,
202,
97,
203,
2,... |