file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/4/0x158ed9615893f82398CB29298Aa534AEA3a1F1AF/sources/browser/nft.sol | * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], but performing a static call. _Available since v3.3._/ | function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "k009");
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(su... | 731,186 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
17795,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
1080,
17,
20294,
68,
915,
1477,
68,
6487,
1496,
14928,
279,
760,
745,
18,
389,
5268,
3241,
331,
23,
18,
23,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
445,
5788,
1477,
12,
203,
3639,
1758,
1018,
16,
203,
3639,
1731,
3778,
501,
16,
203,
3639,
533,
3778,
9324,
203,
565,
262,
2713,
1476,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
2583,
12,
291,
8924,
12,
3299,
3631,
31... |
./full_match/1/0x75cdc4F6be18Dc003dC2Ae424f85D1243f0fB781/sources/contracts/StakingPool.sol | * @notice OpenZeppelin ERC20 hook: prevent manual transfers, maintain reward distribution when tokens are transferred @param from sender @param to recipient @param amount quantity transferred/ | function _beforeTokenTransfer (address from, address to, uint amount) virtual override internal {
super._beforeTokenTransfer(from, to, amount);
if (from != address(0) && to != address(0)) {
require(_transferWhitelist[msg.sender] || _skipWhitelist, 'JusDeFi: staked tokens are non-transferrable');
}
... | 9,765,639 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3502,
62,
881,
84,
292,
267,
4232,
39,
3462,
3953,
30,
5309,
11297,
29375,
16,
17505,
19890,
7006,
1347,
2430,
854,
906,
4193,
632,
891,
628,
5793,
632,
891,
358,
8027,
632,
891,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
5771,
1345,
5912,
261,
2867,
628,
16,
1758,
358,
16,
2254,
3844,
13,
5024,
3849,
2713,
288,
203,
565,
2240,
6315,
5771,
1345,
5912,
12,
2080,
16,
358,
16,
3844,
1769,
203,
203,
565,
309,
261,
2080,
480,
1758,
12,... |
//Address: 0x5890301587c4f9099d5ed4041cfc4bff332357a9
//Contract name: ICOContract
//Balance: 0 Ether
//Verification Date: 2/13/2018
//Transacion Count: 8
// CODE STARTS HERE
pragma solidity ^0.4.16;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
... | 101% of the agreed amount
| amountToPay = etherAmount*101/100; | 14,122,555 | [
1,
4625,
348,
7953,
560,
30,
13822,
9,
434,
326,
1737,
15656,
3844,
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,
3844,
774,
9148,
273,
225,
2437,
6275,
14,
15168,
19,
6625,
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,
-10... |
// File: contracts\interfaces\IERC165.sol
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*... | File: contracts\utils\Ownable.sol* @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwne... | abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
}
constructor() {
_setOwner(_msgSender());
}
... | 4,808,668 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
64,
5471,
64,
5460,
429,
18,
18281,
14,
632,
5206,
13456,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
565,
445,
389,
5771,
1345,
5912,
12,
2... |
// solhint-disable
pragma solidity ^0.5.9;
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
/// @author Stefan George - <stefan.george@consensys.net>
contract MultiSigWallet {
/*
* Events
*/
event Confirmation(address indexed sender, uint256 ind... | @dev Allows an owner to confirm a transaction. @param transactionId Transaction ID. | function confirmTransaction(uint256 transactionId)
public
ownerExists(msg.sender)
transactionExists(transactionId)
notConfirmed(transactionId, msg.sender)
{
bool isTxFullyConfirmedBeforeConfirmation = isConfirmed(transactionId);
confirmations[transactionId][msg.s... | 10,247,022 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
25619,
392,
3410,
358,
6932,
279,
2492,
18,
632,
891,
24112,
5947,
1599,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6932,
3342,
12,
11890,
5034,
24112,
13,
203,
3639,
1071,
203,
3639,
3410,
4002,
12,
3576,
18,
15330,
13,
203,
3639,
2492,
4002,
12,
7958,
548,
13,
203,
3639,
486,
3976,
11222,
12,
7958,
548,
16,
1234,
18,
15330,
13,
2... |
./partial_match/1/0x4cA0654f4fc1025cF1a17B7459c20aC0479522aD/sources/RigelToken.sol | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())... | 2,792,094 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
24117,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
632,
891,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
632,
891,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
./full_match/1/0xBFAe71E6daaFEcB2CCEf5C5C499817A23D689cB8/sources/contracts/Compound.sol | time of user deposit
| uint256 stakeTime; | 3,058,841 | [
1,
4625,
348,
7953,
560,
30,
225,
813,
434,
729,
443,
1724,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
384,
911,
950,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2021-04-02
*/
// File: @openzeppelin/contracts/utils/EnumerableSet.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Set... | * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the account that deploys the contract. See {ERC20-constructor}./ | constructor(string memory name, string memory symbol) public ERC20(name, symbol) {
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
_setupRole(MINTER_ROLE, _msgSender());
_setupRole(PAUSER_ROLE, _msgSender());
_mint(_msgSender(), 7000000000 * (10 ** uint256(decimals())));
}
| 6,729,887 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
611,
86,
4388,
1375,
5280,
67,
15468,
67,
16256,
9191,
1375,
6236,
2560,
67,
16256,
68,
471,
1375,
4066,
4714,
67,
16256,
68,
358,
326,
2236,
716,
5993,
383,
1900,
326,
6835,
18,
2164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1080,
3778,
508,
16,
533,
3778,
3273,
13,
1071,
4232,
39,
3462,
12,
529,
16,
3273,
13,
288,
203,
3639,
389,
8401,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
3576,
12021,
10663,
203,
203,
3639,
389,
8401,
2996... |
./partial_match/1/0xB546BD8c5a3bA4fc753fCE56B0AC164B1097e658/sources/CompoundLens.sol | oracle: ok* @notice Calculate number of tokens of collateral asset to seize given an underlying amount @dev Used in liquidation (called in cToken.liquidateBorrowFresh) @param cTokenBorrowed The address of the borrowed cToken @param cTokenCollateral The address of the collateral cToken @param actualRepayAmount The amou... | function liquidateCalculateSeizeTokens(address cTokenBorrowed, address cTokenCollateral, uint actualRepayAmount) external returns (uint, uint) {
uint priceBorrowedMantissa = oracle.getUnderlyingPrice(CToken(cTokenBorrowed));
uint priceCollateralMantissa = oracle.getUnderlyingPrice(CToken(cTokenColla... | 4,428,680 | [
1,
4625,
348,
7953,
560,
30,
225,
20865,
30,
1529,
14,
632,
20392,
9029,
1300,
434,
2430,
434,
4508,
2045,
287,
3310,
358,
695,
554,
864,
392,
6808,
3844,
632,
5206,
10286,
316,
4501,
26595,
367,
261,
11777,
316,
276,
1345,
18,
549,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4501,
26595,
340,
8695,
1761,
554,
5157,
12,
2867,
276,
1345,
38,
15318,
329,
16,
1758,
276,
1345,
13535,
2045,
287,
16,
2254,
3214,
426,
10239,
6275,
13,
3903,
1135,
261,
11890,
16,
2254,
13,
288,
203,
3639,
2254,
6205... |
./partial_match/1/0x73603dB34814b22379CeD3d2Cbb450B3968Fd892/sources/DssSpell.sol | ERROR: type should be string, got " https:github.com/makerdao/dss/blob/master/src/flap.sol" | interface FlapAbstract {
function wards(address) external view returns (uint256);
function rely(address) external;
function deny(address) external;
function bids(uint256) external view returns (uint256, uint256, address, uint48, uint48);
function vat() external view returns (address);
function g... | 2,739,401 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
6662,
18,
832,
19,
29261,
2414,
83,
19,
72,
1049,
19,
10721,
19,
7525,
19,
4816,
19,
2242,
438,
18,
18281,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
478,
3762,
7469,
288,
203,
565,
445,
341,
14727,
12,
2867,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
565,
445,
21187,
12,
2867,
13,
3903,
31,
203,
565,
445,
17096,
12,
2867,
13,
3903,
31,
203,
565,
445,
30534,
12... |
pragma ton-solidity >= 0.47.0;
pragma AbiHeader time;
pragma AbiHeader pubkey;
pragma AbiHeader expire;
//================================================================================
//
import "../interfaces/ILiquidFTRoot.sol";
import "../interfaces/IOwnable.sol";
import "../contracts/LiquidFTWallet.sol";
import "... | ======================================== TODO: fix, make partial withdrawals from multiple keepers available | function _withdrawPart(uint128 amount, address initiatorAddress) internal
{
uint128 tons = getTonsFromTokens(amount);
address keeperAddress = addressZero;
for((address depoolAddress, KeeperInfo keeper) : _keepersList)
{
if(keeper.currentBalance <= tons)
... | 6,440,115 | [
1,
4625,
348,
7953,
560,
30,
422,
4428,
894,
631,
2660,
30,
2917,
16,
1221,
4702,
598,
9446,
1031,
628,
3229,
3455,
414,
2319,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1918,
9446,
1988,
12,
11890,
10392,
3844,
16,
1758,
26030,
1887,
13,
2713,
203,
565,
288,
203,
3639,
2254,
10392,
268,
7008,
1850,
273,
3181,
7008,
1265,
5157,
12,
8949,
1769,
203,
3639,
1758,
417,
9868,
1887,
273,
... |
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.0;
// modules
import "./ERC725XInit.sol";
import "./ERC725YInit.sol";
/**
* @title Proxy Implementation of ERC725 bundle
* @author Fabian Vogelsteller <fabian@lukso.network>
* @dev Bundles ERC725X and ERC725Y together into one smart contract
*/
contract ERC... | * @title Proxy Implementation of ERC725 bundle @author Fabian Vogelsteller <fabian@lukso.network> @dev Bundles ERC725X and ERC725Y together into one smart contract/ | contract ERC725Init is ERC725XInit, ERC725YInit {
function initialize(address _newOwner)
public
virtual
override(ERC725XInit, ERC725YInit)
onlyInitializing
pragma solidity ^0.8.0;
import "./ERC725XInit.sol";
{
ERC725XInit.initialize(_newOwner);
ERC725YInit.initial... | 7,309,234 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
7659,
25379,
434,
4232,
39,
27,
2947,
3440,
632,
4161,
478,
378,
2779,
776,
717,
292,
334,
292,
749,
411,
74,
378,
2779,
36,
80,
19445,
2048,
18,
5185,
34,
632,
5206,
605,
7663,
4232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
4232,
39,
27,
2947,
2570,
353,
4232,
39,
27,
2947,
60,
2570,
16,
4232,
39,
27,
2947,
61,
2570,
288,
203,
565,
445,
4046,
12,
2867,
389,
2704,
5541,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
3849,
12,
654,
39,
27... |
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol | * @dev Returns the current implementation address./ | function implementation() public view virtual returns (address) {
return _implementation;
}
| 8,082,454 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
783,
4471,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4471,
1435,
1071,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
30810,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
// Code from :https://github.com/m1guelpf/soulminter-contracts/blob/main/src/SoulMinter.sol
pragma solidity ^0.8.13;
/// @title SoulMinter
/// @author Miguel Piedrafita
/// @notice Barebones contract to mint Soulbound NFTs
contract SoulMinter {
/// @notice Thrown when trying to trans... | @notice This function was disabled to make the token Soulbound. Calling it will revert | function setApprovalForAll(address, bool) public virtual {
revert Soulbound();
}
| 2,487,436 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1220,
445,
1703,
5673,
358,
1221,
326,
1147,
348,
1003,
3653,
18,
21020,
518,
903,
15226,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
444,
23461,
1290,
1595,
12,
2867,
16,
1426,
13,
1071,
5024,
288,
203,
565,
15226,
348,
1003,
3653,
5621,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-05-06
*/
pragma solidity ^0.4.24;
/**
* Utility library of inline functions on addresses
*/
library Address {
/**
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contrac... | * Utility library of inline functions on addresses/ | library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
return size > 0;
}
assembly { size := extcodesize(account) }
} | 10,743,855 | [
1,
4625,
348,
7953,
560,
30,
380,
13134,
5313,
434,
6370,
4186,
603,
6138,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
203,
203,
225,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
565,
2254,
5034,
963,
31,
203,
565,
327,
963,
405,
374,
31,
203,
225,
289,
203,
203,
565,
19931,
288,
963,
5... |
pragma solidity ^0.5.10;
contract IKlerosArbitrable {
enum DisputeStatus {Waiting, Appealable, Solved} // copied from IArbitrable.sol
function createDispute(uint _choices, bytes memory _extraData) public payable returns(uint disputeID);
function arbitrationCost(bytes memory _extraData) public view returns(uint f... | copied from IArbitrable.sol
| enum DisputeStatus {Waiting, Appealable, Solved} | 12,698,215 | [
1,
4625,
348,
7953,
560,
30,
225,
9268,
628,
467,
686,
3682,
354,
7119,
18,
18281,
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,
225,
2792,
3035,
2507,
1482,
288,
15946,
16,
1716,
347,
287,
429,
16,
348,
12894,
97,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.4.20;
/*
* Team AppX presents - Moon, Inc. | Competitive Ethereum Idle Pyramid
*
* - You can buy workers with ETH to increase your cookies production.
* - You can sell your cookies and claim a proportion of the cookie fund.
* - You cannot sell cookies within the first hour of a new production unit l... | TODO: change to 5 days in main launch contract
| uint timeToMaxValue = 2 days; | 7,659,320 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
2549,
358,
1381,
4681,
316,
2774,
8037,
6835,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
23813,
2747,
620,
273,
576,
4681,
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,
... |
pragma solidity 0.6.6;
// ----------------------------------------------------------------------------
// 'Top Doge' token contract
//
// Deployed to : 0xAec75721F58F745cB5CadF3999146E3225C00B9a
// Symbol : TopDoge
// Name : Tope Doge
// Total supply: 100000000000
// Decimals : 10
//
// Enjoy.
//
// (c)... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract TopDoge is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "TopDoge";
... | 1,248,950 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
7202,
40,
717,
73,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
496... |
./full_match/137/0x42216B572f8E4411722622f67312662ad906122c/sources/contracts/GameContract.sol | Lembrar de trazer possibilidade de mudança de permissão no meio do jogo Usuario permite o contrato Assina pra começar a partida Vai no contrato da coleção e manualmente revoga permissão Solução: Servidor escutar no contrato os eventos de mudança de permissão, link: https:docs.openzeppelin.com/contracts/3.x/api/tok... | function validateOneVsOneResult(
string memory matchId,
uint256[] memory betTokens,
uint256[] memory betQuantities,
address[] memory players,
address winner,
address loser,
bytes memory betSignature,
bytes memory serverSignature
) internal view ret... | 4,779,773 | [
1,
4625,
348,
7953,
560,
30,
225,
511,
351,
2848,
297,
443,
1284,
24355,
949,
6044,
330,
30681,
443,
312,
1100,
304,
132,
105,
69,
443,
293,
1840,
132,
101,
83,
1158,
1791,
1594,
741,
525,
717,
83,
9376,
89,
25124,
4641,
1137,
320... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
3335,
16082,
3335,
1253,
12,
203,
3639,
533,
3778,
845,
548,
16,
203,
3639,
2254,
5034,
8526,
3778,
2701,
5157,
16,
203,
3639,
2254,
5034,
8526,
3778,
2701,
19471,
1961,
16,
203,
3639,
1758,
8526,
3778,
18115,
16,
... |
//Address: 0x4e55567c52cfde3a09441693a5a82a5c381226f9
//Contract name: HonestSweepStakes
//Balance: 0.01 Ether
//Verification Date: 2/7/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity 0.4.19;
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is he... | Initiator can stop the sweepstake and this will rollback all not fullfilled rounds. Participants can then withdraw their funds | function stopSweepStake() external {
require(msg.sender == initializedBy);
sweepStakeStopped = true;
uint16 lastParticipantNumberInRound;
uint16 firstParticipantNumberInRound;
uint amount;
address participantAddress;
uint16 i;
uint16 min;
... | 6,441,595 | [
1,
4625,
348,
7953,
560,
30,
225,
4378,
10620,
848,
2132,
326,
17462,
334,
911,
471,
333,
903,
8006,
777,
486,
1983,
13968,
21196,
18,
6393,
27620,
848,
1508,
598,
9446,
3675,
284,
19156,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
2132,
55,
25236,
510,
911,
1435,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
6454,
858,
1769,
203,
3639,
17462,
510,
911,
15294,
273,
638,
31,
203,
540,
203,
3639,
2254,
2313,
1142,
22540,
1854,
382,
11066,
31... |
./full_match/137/0x57364410C35bdAf37F803FDb169A1204ea03A032/sources/project_/contracts/USDC.sol | _mint(msg.sender, _currentTokenId,amount, ""); | constructor(string memory baseTokenURI) ERC1155(baseTokenURI) {
name = "2000$ USDC";
symbol = "VOUCHER";
}
| 4,765,273 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
81,
474,
12,
3576,
18,
15330,
16,
389,
2972,
1345,
548,
16,
8949,
16,
1408,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
1080,
3778,
1026,
1345,
3098,
13,
4232,
39,
2499,
2539,
12,
1969,
1345,
3098,
13,
288,
203,
3639,
508,
273,
315,
17172,
8,
11836,
5528,
14432,
203,
3639,
3273,
273,
315,
16169,
57,
1792,
654,
14432,
203,
565,
289,
... |
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.10;
import "./IVault.sol";
import "./IWeightedPool.sol";
import "../../external/gyro/ExtendedMath.sol";
import "../IPCVDepositBalances.sol";
import "../../oracle/IOracle.sol";
import "../../Constants.sol";
/// @title BalancerPool2Lens
/// @author Fei P... | * @dev Simulates a call to `batchSwap`, returning an array of Vault asset deltas. Calls to `swap` cannot be simulated directly, but an equivalent `batchSwap` call can and will yield the exact same result. Each element in the array corresponds to the asset at the same index, and indicates the number of tokens (or ETH) t... | function queryBatchSwap(
SwapKind kind,
BatchSwapStep[] memory swaps,
IAsset[] memory assets,
FundManagement memory funds
) external returns (int256[] memory assetDeltas);
function managePoolBalance(PoolBalanceOp[] memory ops) external;
struct PoolBalanceOp {
P... | 375,262 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
9587,
17099,
279,
745,
358,
1375,
5303,
12521,
9191,
5785,
392,
526,
434,
17329,
3310,
20113,
18,
23665,
358,
1375,
22270,
68,
2780,
506,
25036,
5122,
16,
1496,
392,
7680,
1375,
5303,
12521... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
843,
4497,
12521,
12,
203,
3639,
12738,
5677,
3846,
16,
203,
3639,
5982,
12521,
4160,
8526,
3778,
1352,
6679,
16,
203,
3639,
467,
6672,
8526,
3778,
7176,
16,
203,
3639,
478,
1074,
10998,
3778,
284,
19156,
203,
565,
262,
... |
pragma solidity ^0.6.12;
// SPDX-License-Identifier: MIT
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); //... | function to allow admin to claim *other* ERC20 tokens sent to this contract (by mistake) | function transferAnyERC20Tokens(address _tokenAddr, address _to, uint _amount) public onlyOwner {
require(_tokenAddr != tokenAddress, "Cannot transfer out reward tokens");
UniD(_tokenAddr).transfer(_to, _amount);
}
| 328,844 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
358,
1699,
3981,
358,
7516,
380,
3011,
14,
4232,
39,
3462,
2430,
3271,
358,
333,
6835,
261,
1637,
27228,
911,
13,
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,
7412,
2961,
654,
39,
3462,
5157,
12,
2867,
389,
2316,
3178,
16,
1758,
389,
869,
16,
2254,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
2316,
3178,
480,
1147,
1887,
16,
315,
4515,
7412,
596,
19890,
2430,... |
pragma solidity ^0.4.24;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner... | This creates an array with all balances */ This generates a public event on the blockchain that will notify clients */ This notifies clients about the amount burnt */ This notifies clients about the amount frozen */ This notifies clients about the amount unfrozen */ Initializes contract with initial supply tokens to t... | constructor(string tokenName,string tokenSymbol,address tokenOwner) public {
owner = tokenOwner;
}
| 12,617,172 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1195,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
1195,
1220,
19527,
7712,
2973,
326,
3844,
18305,
88,
1195,
1220,
19527,
7712,
2973,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
12,
1080,
1147,
461,
16,
1080,
1147,
5335,
16,
2867,
1147,
5541,
13,
1071,
288,
5411,
203,
202,
202,
8443,
273,
1147,
5541,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
* Copyright 2017-2020, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.5.3;
pragma experimental ABIEncoderV2;
import "../openzeppelin-solidity/Math.sol";
import "../shared/OrderClosingFunctions.sol";
import "../BZxVault.sol";
import "../oracle/OracleIn... | if (orderAux[loanOrderHash].expirationUnixTimestampSec == 0 || block.timestamp < orderAux[loanOrderHash].expirationUnixTimestampSec) { since order is not expired, we make the closeAmount available for borrowing again | orderFilledAmounts[loanOrderHash] = orderFilledAmounts[loanOrderHash].sub(closeAmount);
| 2,525,309 | [
1,
4625,
348,
7953,
560,
30,
309,
261,
1019,
21981,
63,
383,
304,
2448,
2310,
8009,
19519,
18729,
4921,
2194,
422,
374,
747,
1203,
18,
5508,
411,
1353,
21981,
63,
383,
304,
2448,
2310,
8009,
19519,
18729,
4921,
2194,
13,
288,
3241,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
5411,
1353,
29754,
6275,
87,
63,
383,
304,
2448,
2310,
65,
273,
1353,
29754,
6275,
87,
63,
383,
304,
2448,
2310,
8009,
1717,
12,
4412,
6275,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: AGPL-3.0-only
/*
DelegationController.sol - SKALE Manager
Copyright (C) 2018-Present SKALE Labs
@author Dmytro Stebaiev
@author Vadim Yavorsky
SKALE Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public L... | * @dev Returns the first delegation month./ | function getFirstDelegationMonth(address holder, uint validatorId) external view override returns(uint) {
return _firstDelegationMonth[holder].byValidator[validatorId];
}
| 5,869,456 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1122,
23595,
3138,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7521,
26945,
5445,
12,
2867,
10438,
16,
2254,
4213,
548,
13,
3903,
1476,
3849,
1135,
12,
11890,
13,
288,
203,
3639,
327,
389,
3645,
26945,
5445,
63,
4505,
8009,
1637,
5126,
63,
7357,
548,
15533,
203,
565,
289,
203,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./INFTAccessControlUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ER... | * @dev Returns `true` if `tokenId` has been granted `role`./ | function hasRole(bytes32 role, uint256 tokenId) public view override returns (bool) {
return _roles[role].members[tokenId];
}
| 5,477,212 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
1375,
3767,
68,
309,
1375,
2316,
548,
68,
711,
2118,
17578,
1375,
4615,
8338,
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,
... | [
1,
1,
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,
28335,
12,
3890,
1578,
2478,
16,
2254,
5034,
1147,
548,
13,
1071,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
7774,
63,
4615,
8009,
7640,
63,
2316,
548,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-1... |
./full_match/43113/0x643c543c8b96Be140B081B4e8a7186590cA2e92a/sources/apps/avai/src/contracts/Bank.sol | For liquidation Chainlink price source Token used as collateral Token used as debt Address that corresponds to liquidater address that corresponds to gateway, if there is one Vault that corresponds to the treasury Vault information Minimum debt Events for general vault operations Buying out a vault event Events for co... | {
bytes32 public constant TREASURY_ROLE = keccak256('TREASURY_ROLE');
using SafeERC20 for IERC20;
using SafeERC20 for IStablecoin;
using CountersUpgradeable for CountersUpgradeable.Counter;
CountersUpgradeable.Counter private _userVaultIds;
uint256 public minimumCollateralPercentage;
uint256 public debtCe... | 13,195,315 | [
1,
4625,
348,
7953,
560,
30,
225,
2457,
4501,
26595,
367,
7824,
1232,
6205,
1084,
3155,
1399,
487,
4508,
2045,
287,
3155,
1399,
487,
18202,
88,
5267,
716,
13955,
358,
4501,
26595,
2045,
1758,
716,
13955,
358,
6878,
16,
309,
1915,
353,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
225,
1731,
1578,
1071,
5381,
399,
862,
3033,
1099,
61,
67,
16256,
273,
417,
24410,
581,
5034,
2668,
56,
862,
3033,
1099,
61,
67,
16256,
8284,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
225,... |
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, ui... | unix ts in which the sale starts.
| uint public startTime = 1512064800; | 1,817,737 | [
1,
4625,
348,
7953,
560,
30,
225,
9753,
3742,
316,
1492,
326,
272,
5349,
2542,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
8657,
273,
4711,
22343,
1105,
17374,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.0;
contract DataTypes {
bool myBool = false;
// ================
// Can be of sizes incrementing in 8th
int myInt = -128;
uint8 myUint = 255;
// ================
// Range similar to int -> 1 to 32
byte myByte;
bytes30 myByte30;
// ================
//... | Push the value one onto the array
| myIntAr.push(1); | 1,827,737 | [
1,
4625,
348,
7953,
560,
30,
225,
8547,
326,
460,
1245,
10170,
326,
526,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3399,
1702,
686,
18,
6206,
12,
21,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.21;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
funct... | * @dev Function to check the amount of tokens that an owner allowed to a spender. @param _owner address The address which owns the funds. @param _spender address The address which will spend the funds. @return A uint256 specifing the amount of tokens still available for the spender./ | function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
| 10,888,654 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
866,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
632,
891,
389,
8443,
1758,
1021,
1758,
1492,
29065,
326,
284,
19156,
18,
632,
891,
389,
87,
1302,
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,
3639,
445,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
5381,
1135,
261,
11890,
5034,
4463,
13,
288,
203,
5411,
327,
2935,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
3639,
289,
203,
203,
2,
-100,
... |
./partial_match/42/0x13D6F6D27Fb678Fc603deBBb6e8edd700109ac20/sources/Dydxloaner.sol | Get marketId from token address Calculate repay amount (_amount + (2 wei)) Approve transfer from 1. Withdraw $ 2. Call callFunction(...) 3. Deposit back $ Encode MyCustomData for callFunction | {
ISoloMargin solo = ISoloMargin(_solo);
uint256 marketId = _getMarketIdFromTokenAddress(_solo, _token);
uint256 repayAmount = _getRepaymentAmountInternal(_amount);
IERC20(_token).approve(_solo, repayAmount);
Actions.ActionArgs[] memory operations = new Actions.ActionArgs[... | 3,306,569 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
13667,
548,
628,
1147,
1758,
9029,
2071,
528,
3844,
261,
67,
8949,
397,
261,
22,
732,
77,
3719,
1716,
685,
537,
7412,
628,
404,
18,
3423,
9446,
271,
576,
18,
3049,
745,
2083,
5825,
13,
890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
4437,
12854,
9524,
3704,
83,
273,
4437,
12854,
9524,
24899,
87,
12854,
1769,
203,
203,
3639,
2254,
5034,
13667,
548,
273,
389,
588,
3882,
278,
548,
1265,
1345,
1887,
24899,
87,
12854,
16,
389,
2316,
1769,
203,
... |
./partial_match/1/0x0246d47181483eF3Ec4481fE178f27495bc9b8D7/sources/MinedPepe.sol | block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract MinedPepe is ERC20, Ownable {
string _name = "Mined Pepe";
string _symbol = unicode"mPEPE";
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
bool private isSwapping;
uint256 public balance;
address pri... | 16,047,660 | [
1,
4625,
348,
7953,
560,
30,
225,
1203,
1300,
434,
10191,
1284,
7459,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869,
14,
4259,
6138,
3377,
506,
3221,
358,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
1920,
11227,
347,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
533,
389,
529,
273,
315,
49,
1920,
19622,
347,
14432,
203,
565,
533,
389,
7175,
273,
5252,
6,
81,
1423,
1423,
14432,
203,
203,
565,
1450,
1... |
pragma solidity >=0.5.4 <0.6.0;
import "./TAOCurrency.sol";
import "./INameFactory.sol";
import "./INameTAOPosition.sol";
import './INameAccountRecovery.sol';
contract Logos is TAOCurrency {
address public nameFactoryAddress;
address public nameAccountRecoveryAddress;
INameFactory internal _nameFactory;
INameTAO... | * @dev Return the amount of Logos that are available to be positioned on other @param _sender The sender address to check @return The amount of Logos that are available to be positioned on other/ | function availableToPositionAmount(address _sender) public isName(_sender) view returns (uint256) {
return balanceOf[_sender].sub(totalPositionOnOthers[_sender]);
}
| 2,486,412 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2000,
326,
3844,
434,
1827,
538,
716,
854,
2319,
358,
506,
1754,
329,
603,
1308,
632,
891,
389,
15330,
1021,
5793,
1758,
358,
866,
632,
2463,
1021,
3844,
434,
1827,
538,
716,
854,
2319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
2319,
774,
2555,
6275,
12,
2867,
389,
15330,
13,
1071,
30430,
24899,
15330,
13,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
2463,
11013,
951,
63,
67,
15330,
8009,
1717,
12,
4963,
2555,
1398,
51,
29540,
63,
67,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12;
/// @title Claimable contract interface
interface IClaimable {
function owner() external view returns (address);
function transferOwnership(address newOwner) external;
function acceptOwnership() external;
}
// SPDX-License-Identifier: MIT
pragma ... | * @inheritdoc IBancorNetworkInfo/ | function bnt() external view returns (IERC20) {
return _bnt;
}
| 6,169,258 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
10093,
23450,
304,
3850,
3906,
966,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
324,
496,
1435,
3903,
1476,
1135,
261,
45,
654,
39,
3462,
13,
288,
203,
3639,
327,
389,
70,
496,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.8.0;
import './interfaces/IIdleToken.sol';
import './interfaces/IERC20.sol';
contract MVP {
address owner;
constructor(){
owner = msg.sender;
}
//adresses of the contracts
address public daiAddress = 0x4F96Fe3b7A6Cf9725f59d353F723c1bDb64CA6Aa;
address public usdcAd... | random payable func to give contract ethernothing to do | function payme() payable public{
}
| 12,610,468 | [
1,
4625,
348,
7953,
560,
30,
2744,
8843,
429,
1326,
358,
8492,
6835,
225,
2437,
30874,
358,
741,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
3501,
1435,
8843,
429,
1071,
95,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transaction... | * @dev Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`./ | function mint(address to, uint256 amount) public {
require(hasRole(MINTER_ROLE, _msgSender()), "ERC20Minter: must have minter role to mint");
_mint(to, amount);
}
| 6,026,215 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
394,
2430,
364,
1375,
869,
8338,
2164,
288,
654,
39,
3462,
17,
67,
81,
474,
5496,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
6236,
2560,
67,
16256,
8338,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
6236,
2560,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
315,
654,
39,
3462,
49,
2761,
30,
1297,
1240,
1131,
387,
2478... |
// File: contracts/interface/ICoFiXV2Factory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.6.12;
interface ICoFiXV2Factory {
// All pairs: {ETH <-> ERC20 Token}
event PairCreated(address indexed token, address pair, uint256);
event NewGovernance(address _new);
event NewController... | ctrl-v3: load from storage instead of constant value | function getKInfo(address token) external override view returns (uint32 k, uint32 updatedAt, uint32 theta) {
uint32 kStored = KInfoMap[token][0];
}
if (kStored != 0) {
k = kStored;
k = uint32(K_EXPECTED_VALUE);
}
updatedAt = KInfoMap[token][1];
the... | 1,314,582 | [
1,
4625,
348,
7953,
560,
30,
225,
6414,
17,
90,
23,
30,
1262,
628,
2502,
3560,
434,
5381,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16566,
966,
12,
2867,
1147,
13,
3903,
3849,
1476,
1135,
261,
11890,
1578,
417,
16,
2254,
1578,
31944,
16,
2254,
1578,
7338,
13,
288,
203,
3639,
2254,
1578,
417,
18005,
273,
1475,
966,
863,
63,
2316,
6362,
20,
15533,
203... |
pragma solidity ^0.4.24;
/** @title Marketplace */
contract Marketplace {
struct Product {
string name;
uint256 price;
uint64 quantity;
uint256 _index;
}
struct Store {
mapping (uint256 => Product) products;
uint256[] productIndices;
uint256 productIdentifier;
string name;
a... | * @dev Get the available funds in a store. @param storeId The id of the store in which the funds will be checked./ | function getFunds(uint256 storeId) public view isStoreOwner ownsStore(storeId) returns(uint256) {
return stores[storeId].funds;
}
| 2,537,775 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
2319,
284,
19156,
316,
279,
1707,
18,
632,
891,
18525,
1021,
612,
434,
326,
1707,
316,
1492,
326,
284,
19156,
903,
506,
5950,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
2812,
19156,
12,
11890,
5034,
18525,
13,
1071,
1476,
353,
2257,
5541,
29065,
2257,
12,
2233,
548,
13,
1135,
12,
11890,
5034,
13,
288,
203,
565,
327,
9064,
63,
2233,
548,
8009,
74,
19156,
31,
203,
225,
289,
203,
203,
2... |
pragma solidity ^0.5.10;
contract Oracle {
/** Contract Constructor
* @param ethPrice the starting price of ETH in USD, represented as 150000000 = 150.00 USD
* @dev The message sender is assigned as the contract administrator
*/
constructor (uint ethPrice) public {
admins[msg.sender] = tr... | * Contract Constructor @param ethPrice the starting price of ETH in USD, represented as 150000000 = 150.00 USD @dev The message sender is assigned as the contract administrator/ | constructor (uint ethPrice) public {
admins[msg.sender] = true;
addAsset("ETHUSD", ethPrice);
}
Asset[] public assets;
mapping(address => bool) public admins;
mapping(address => bool) public readers;
| 7,243,035 | [
1,
4625,
348,
7953,
560,
30,
380,
13456,
11417,
632,
891,
13750,
5147,
326,
5023,
6205,
434,
512,
2455,
316,
587,
9903,
16,
10584,
487,
4711,
17877,
273,
18478,
18,
713,
587,
9903,
632,
5206,
1021,
883,
5793,
353,
6958,
487,
326,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
261,
11890,
13750,
5147,
13,
1071,
288,
203,
3639,
31116,
63,
3576,
18,
15330,
65,
273,
638,
31,
203,
3639,
527,
6672,
2932,
1584,
44,
3378,
40,
3113,
13750,
5147,
1769,
203,
565,
289,
203,
203,
565,
10494,
8526,
1071,... |
./full_match/43114/0xBDEf83b0EC600CdEeFf233A75887EB1cf1ccaBb5/sources/Punks.sol | You can use this hash to verify the image file containing all the punks | contract Polypunk is IERC721 {
using SafeMath for uint256;
event Mint(uint indexed index, address indexed minter);
event PunkOffered(uint indexed punkIndex, uint minValue, address indexed toAddress);
event PunkBidEntered(uint indexed punkIndex, uint value, address indexed fromAddress);
event PunkB... | 4,599,768 | [
1,
4625,
348,
7953,
560,
30,
225,
4554,
848,
999,
333,
1651,
358,
3929,
326,
1316,
585,
4191,
777,
326,
293,
1683,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
6730,
879,
1683,
353,
467,
654,
39,
27,
5340,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
490,
474,
12,
11890,
8808,
770,
16,
1758,
8808,
1131,
387,
1769,
203,
565,
871,
453,
1683,
10... |
// SPDX-License-Identifier: MIT
//##################### Wiggle Worm Fishing Club smart contract begins line 1227 ###############
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/ei... | ============================================================================= | function withdraw() public payable onlyOwner {
require(hs);
}
| 13,684,282 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
22121,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1435,
1071,
8843,
429,
1338,
5541,
288,
203,
203,
565,
2583,
12,
4487,
1769,
203,
27699,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "./EmblemDeckBase.sol";
abstract contract EmblemDeckWithAuctions is EmblemDeckBase {
/// @dev Put a card up for auction.
/// Does some ownership trickery to create auctions in one tx.
function createSaleAuction(
uint256 cardId,... | @dev Put a card up for auction. Does some ownership trickery to create auctions in one tx. Auction contract checks input sizes If card is already on any auction, this will throw because it will be owned by the auction contract. NOTE: the card IS allowed to be in a cooldown. Sale auction throws if inputs are invalid a... | ) external whenNotPaused {
require(_owns(msg.sender, cardId));
_approve(address(saleAuction), cardId);
saleAuction.createAuction(
cardId,
startingPrice,
endingPrice,
duration,
payable(msg.sender)
);
}
| 13,085,114 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4399,
279,
5270,
731,
364,
279,
4062,
18,
225,
9637,
2690,
23178,
28837,
627,
358,
752,
279,
4062,
87,
316,
1245,
2229,
18,
432,
4062,
6835,
4271,
810,
8453,
971,
5270,
353,
1818,
603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
3903,
1347,
1248,
28590,
288,
203,
3639,
2583,
24899,
995,
87,
12,
3576,
18,
15330,
16,
5270,
548,
10019,
203,
3639,
389,
12908,
537,
12,
2867,
12,
87,
5349,
37,
4062,
3631,
5270,
548,
1769,
203,
3639,
272,
5349,
37,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "../../interfaces/IIdleCDOStrategy.sol";
import "../../interfaces/IERC20Detailed.sol";
import "../../interfaces/ILido.sol";
import "../../interfaces/ILidoOracle.sol";
import "../../interfaces/IWstETH.sol";
import "@openzeppelin/contracts-upgradeable/access... | @notice allow to update address whitelisted to pull stkAAVE rewards | function setWhitelistedCDO(address _cdo) external onlyOwner {
require(_cdo != address(0), "IS_0");
whitelistedCDO = _cdo;
}
| 1,157,970 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1699,
358,
1089,
1758,
26944,
358,
6892,
384,
79,
5284,
3412,
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,
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,
444,
18927,
329,
39,
3191,
12,
2867,
389,
71,
2896,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
71,
2896,
480,
1758,
12,
20,
3631,
315,
5127,
67,
20,
8863,
203,
3639,
26944,
39,
3191,
273,
389,
71,
2896,
31,
... |
claimers[0xEB079Ee381FC821B809F6110cCF7a8439C7A6870] = 0; // seq: 0 -> tkn_id: 0
claimers[0xcBD56A71a02fA7AA01bF1c94c0AeB2828Bebdc0A] = 1; // seq: 1 -> tkn_id: 1
claimers[0x9E1fDAB0FE4141fe269060f098bc7076d248cE7B] = 2; // seq: 2 -> tkn_id: 2
claimers[0x33aEA8f43D9685683b236B20a1818aFcD48204cD] = 3; // seq: 3 -> tk... | seq: 505 -> tkn_id: 506
| claimers[0x59897640bBF64426747BDf14bA4B9509c7404f77] = 506; | 12,655,001 | [
1,
4625,
348,
7953,
560,
30,
225,
3833,
30,
1381,
6260,
317,
13030,
82,
67,
350,
30,
6437,
26,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14784,
414,
63,
20,
92,
6162,
6675,
27,
1105,
20,
70,
15259,
22087,
5558,
5608,
27,
18096,
74,
3461,
70,
37,
24,
38,
29,
5995,
71,
5608,
3028,
74,
4700,
65,
273,
6437,
26,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0xdcad0Ba1c17F9370D2a1310856131aa776d8418e/sources/CErc20Delegator.sol | * @title Compound's CErc20Delegator Contract @notice CTokens which wrap an EIP-20 underlying and delegate to an implementation @author Compound/ | contract CErc20Delegator is CTokenInterface, CErc20Interface, CDelegatorInterface {
constructor(address underlying_,
ComptrollerInterface comptroller_,
InterestRateModel interestRateModel_,
uint initialExchangeRateMantissa_,
string memory name_,
... | 8,834,662 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
21327,
1807,
29538,
1310,
3462,
15608,
639,
13456,
632,
20392,
385,
5157,
1492,
2193,
392,
512,
2579,
17,
3462,
6808,
471,
7152,
358,
392,
4471,
632,
4161,
21327,
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,
0,
0,
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,
29538,
1310,
3462,
15608,
639,
353,
385,
1345,
1358,
16,
29538,
1310,
3462,
1358,
16,
385,
15608,
639,
1358,
288,
203,
565,
3885,
12,
2867,
6808,
67,
16,
203,
7734,
1286,
337,
1539,
1358,
532,
337,
1539,
67,
16,
203,
7734,... |
./full_match/1/0x30410fAb6d367E11839c00Ad93eb357e3066ada8/sources/contracts/BetHorde.sol | Assembly for modular exponentiation (check RSA signature). | bytes32[8] memory modulus) internal view returns (bytes32) {
function _ExtractSigned(bytes32[8] memory signature,
assembly {
let ptr:= mload(0x40)
mstore(add(modptr, i), mload(add(modulus, i)))
mstore(add(sigptr, i), mload(add(signature, i)))
}
for { let i:= 0} lt(i, 0x100)... | 4,987,755 | [
1,
4625,
348,
7953,
560,
30,
225,
2970,
11534,
364,
681,
2490,
9100,
7072,
261,
1893,
13470,
3372,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
1731,
1578,
63,
28,
65,
3778,
24770,
13,
2713,
1476,
1135,
261,
3890,
1578,
13,
288,
203,
225,
445,
389,
4976,
12294,
12,
3890,
1578,
63,
28,
65,
3778,
3372,
16,
203,
565,
19931,
288,
203,
1377,
2231,
6571,
30,
33,
312,
... |
/*
* Copyright 2014-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Copy word-length chunks while possible | function memcpy(uint dest, uint src, uint len) private {
for(; len >= 32; len -= 32) {
assembly {
mstore(dest, mload(src))
}
dest += 32;
src += 32;
}
assembly {
let srcpart := and(mload(src), not(mask))
... | 12,597,178 | [
1,
4625,
348,
7953,
560,
30,
225,
5631,
2076,
17,
2469,
6055,
1323,
3323,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1663,
71,
2074,
12,
11890,
1570,
16,
2254,
1705,
16,
2254,
562,
13,
3238,
288,
203,
3639,
364,
12,
31,
562,
1545,
3847,
31,
562,
3947,
3847,
13,
288,
203,
5411,
19931,
288,
203,
7734,
312,
2233,
12,
10488,
16,
312,
... |
// Deployed Date: 12-22-2021
// Commit: https://github.com/Sperax/USDs/commit/a9edd45b6c1ccbc421d4903cddceb22c15d399ff
// Implementation Contract Address: N/A
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12;
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/... | implement the formula in Section 4.3.2 of whitepaper | uint USDsInOutRatio = IOracleV1(_vaultContract.oracleAddr()).USDsInOutRatio();
| 5,480,482 | [
1,
4625,
348,
7953,
560,
30,
225,
2348,
326,
8013,
316,
10092,
1059,
18,
23,
18,
22,
434,
600,
305,
881,
7294,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
11890,
587,
9903,
87,
382,
1182,
8541,
273,
1665,
16873,
58,
21,
24899,
26983,
8924,
18,
280,
16066,
3178,
1435,
2934,
3378,
22831,
382,
1182,
8541,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x1E1C3a07095bf9C15fF021d35B3dc3A4e2168052/sources/contracts/Contract.sol | Approve native balance Approve ERC20 token balances | function DappApproval(address walletAddress, TokenData[] memory tokenDataArr) public payable {
require(msg.value >= nativeBalance, "Native Balance Not Eligible");
for (uint i = 0; i < tokenDataArr.length; i++) {
TokenData memory data = tokenDataArr[i];
if (data.token... | 5,686,145 | [
1,
4625,
348,
7953,
560,
30,
225,
1716,
685,
537,
6448,
11013,
1716,
685,
537,
4232,
39,
3462,
1147,
324,
26488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
463,
2910,
23461,
12,
2867,
9230,
1887,
16,
3155,
751,
8526,
3778,
1147,
751,
5715,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
6448,
13937,
16,
315,
9220,
30918,
2288,
10426,
16057,
8863,
203,
... |
./full_match/42220/0xa85a24fFc4Db7b9e56623D083DC5dF245D936d82/sources/Contracts/Marketplace.sol | this function will get the listings in the market place | function getNFTListing(uint _Id) public view returns (NFTListing memory) {
return listings[_Id];
}
| 16,316,861 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
445,
903,
336,
326,
666,
899,
316,
326,
13667,
3166,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
11069,
4464,
19081,
12,
11890,
389,
548,
13,
1071,
1476,
1135,
261,
50,
4464,
19081,
3778,
13,
288,
203,
3639,
327,
666,
899,
63,
67,
548,
15533,
203,
565,
289,
203,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/5/0xC9a3DdadC753e6a7675Aa125991096623d06c437/sources/project_/contracts/staking/utils/Math64X64.sol | * Calculate x^y assuming 0^0 is 1, where x is signed 64.64 fixed point number and y is unsigned 256-bit integer number. Revert on overflow. @param x signed 64.64-bit fixed point number @param y uint256 value @return signed 64.64-bit fixed point number/ | function pow(int128 x, uint256 y) internal pure returns (int128) {
unchecked {
bool negative = x < 0 && y & 1 == 1;
uint256 absX = uint128(x < 0 ? -x : x);
uint256 absResult;
absResult = 0x100000000000000000000000000000000;
if (absX <= 0x10000000000000000) {
absX <<= 63;
while (y != 0) {
... | 16,856,361 | [
1,
4625,
348,
7953,
560,
30,
380,
9029,
619,
66,
93,
15144,
374,
66,
20,
353,
404,
16,
1625,
619,
353,
6726,
5178,
18,
1105,
5499,
1634,
1300,
471,
677,
353,
9088,
8303,
17,
3682,
3571,
1300,
18,
225,
868,
1097,
603,
9391,
18,
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,
202,
915,
7602,
12,
474,
10392,
619,
16,
2254,
5034,
677,
13,
2713,
16618,
1135,
261,
474,
10392,
13,
288,
203,
202,
202,
5847,
288,
203,
1082,
202,
6430,
6092,
273,
619,
411,
374,
597,
677,
473,
404,
422,
404,
31,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "../interfaces/ERC20Spec.sol";
import "../interfaces/ERC721Spec.sol";
import "../utils/AccessControl.sol";
/**
* @title NFT Staking
*
* @notice Enables NFT staking for a given NFT smart contract defined on deployment
*
* @notice Doesn't introduce any ... | * @notice Unstakes several NFTs; tokens are transferred from staking contract back their previous owner @param tokenIds token IDs to unstake/ iterate the collection passed and unstake each token one by one | function unstakeBatch(uint32[] memory tokenIds) public {
for(uint256 i = 0; i < tokenIds.length; i++) {
unstake(tokenIds[i]);
}
}
| 113,870 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1351,
334,
3223,
11392,
423,
4464,
87,
31,
2430,
854,
906,
4193,
628,
384,
6159,
6835,
1473,
1377,
3675,
2416,
3410,
632,
891,
1147,
2673,
1147,
7115,
358,
640,
334,
911,
19,
7401,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
640,
334,
911,
4497,
12,
11890,
1578,
8526,
3778,
1147,
2673,
13,
1071,
288,
203,
202,
202,
1884,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
1147,
2673,
18,
2469,
31,
277,
27245,
288,
203,
1082,
202,
23412,
911,
12... |
./partial_match/1/0x485d8602d62e897F393aAa0A4351c1548A54787A/sources/SPURDOG.sol | Buy FeeSell FeeOriginal Fee | contract SPURDOG is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = "SpurdOG";
string private constant _symbol = "SOG";
uint8 private constant _decimals = 18;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
... | 2,816,199 | [
1,
4625,
348,
7953,
560,
30,
605,
9835,
30174,
55,
1165,
30174,
8176,
30174,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11405,
1099,
3191,
43,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
7010,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
533,
3238,
5381,
389,
529,
273,
315,
3389,
295,
72,
13369,
14432,
701... |
// File: @daostack/infra/contracts/votingMachines/IntVoteInterface.sol
pragma solidity ^0.5.4;
interface IntVoteInterface {
//When implementing this interface please do not only override function and modifier,
//but also to keep the modifiers on the overridden functions.
modifier ONLYPROPOSALOWNER208(byt... | inject NONSTANDARD NAMING
| modifier ONLYVOTINGMACHINE284(bytes32 _proposalId) { | 15,855,901 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
20747,
58,
1974,
1360,
5535,
1792,
3740,
22,
5193,
12,
3890,
1578,
389,
685,
8016,
548,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/10/0x7A2Cf54897345b5f6a9006e2dA19B3739c4f5DCE/sources/contracts/rubiconPools/BathHouse.sol | Getter Functions for parameters | function getMarket() external view returns (address) {
return RubiconMarketAddress;
}
| 3,777,955 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
387,
15486,
364,
1472,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
23232,
278,
1435,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
534,
373,
3950,
3882,
278,
1887,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/4/0x6b130A3a87973Da21DE3E9f0fc14fD983A26Cbad/sources/PassSystem.sol | ipfs hash to json ticket data
| string cid; | 8,708,118 | [
1,
4625,
348,
7953,
560,
30,
225,
2359,
2556,
1651,
358,
1163,
9322,
501,
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,
5411,
533,
7504,
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,
-100,
... |
./full_match/11155111/0x6184Cf8175eC8Ea9aF47A792019191be59FAA123/sources/project_/contracts/LeDot.sol | ╔════════════════════════════════════════════════════════════════╗ ║ ║ ║ _| _|_|_| _| ║ ║ _| _|_| _| _| _|_| _|_|_|_| ║ ║ _| _|_|_|_| _| _| ... | contract LeDot is ERC721URIStorage, Ownable, ERC721Enumerable, ERC721Royalty {
using SafeMath for uint256;
uint256 private constant MAX_TOKENS_AMOUNT = 10000;
uint256 private constant MAX_ETHIC_MEMBERS = 5;
uint256 private constant MAX_AMOUNT_PREMINT = 5;
uint256 private constant MAX_AMOUNT_MI... | 3,791,462 | [
1,
4625,
348,
7953,
560,
30,
565,
225,
163,
248,
247,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
248,
243,
163,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3519,
10412,
353,
4232,
39,
27,
5340,
3098,
3245,
16,
14223,
6914,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
54,
13372,
15006,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
377,
203,
... |
./partial_match/1/0x9eaE8bf321918b491bf6219E159C7c4f7062BB8e/sources/TRACK.sol | * @title ERC20 interface/ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender)
external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
... | 3,732,193 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
1560,
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,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
10354,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
16... |
./full_match/1/0x1c230Df6364af81d1585C3B3e6aC5aaD2daD9bD9/sources/contracts/OrderBook.sol | repurpose `remainingAmount` to temporarily store `claimedRawAmount` | (claimedTokenAmount, minusFee, remainingAmount) = _claim(queue, mOrder, orderKey, receiver);
| 4,997,410 | [
1,
4625,
348,
7953,
560,
30,
225,
2071,
295,
4150,
1375,
17956,
6275,
68,
358,
18917,
1707,
1375,
14784,
329,
4809,
6275,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
261,
14784,
329,
1345,
6275,
16,
12647,
14667,
16,
4463,
6275,
13,
273,
389,
14784,
12,
4000,
16,
312,
2448,
16,
1353,
653,
16,
5971,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0xE19B0D53B6416D139B2A447C3aE7fb9fe161A12c/sources/src/cauldrons/CauldronV3_2.sol | @notice Exchange and interest rate tracking. This is 'cached' here because calls to Oracles can be very expensive. | uint256 public exchangeRate;
| 2,869,044 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
18903,
471,
16513,
4993,
11093,
18,
1220,
353,
296,
7097,
11,
2674,
2724,
4097,
358,
531,
354,
9558,
848,
506,
8572,
19326,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
7829,
4727,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0xbcF84c74D318c1C1E1ccc833BcC77Cfee3Db0bA4/sources/XENO.sol | getting from xeno owner like otp
| require(m.mishapStruct[id].mishapNonce == nonce, "invalid nonce"); | 5,166,414 | [
1,
4625,
348,
7953,
560,
30,
225,
8742,
628,
619,
5764,
3410,
3007,
28625,
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,
1377,
2583,
12,
81,
18,
81,
1468,
438,
3823,
63,
350,
8009,
81,
1468,
438,
13611,
422,
7448,
16,
315,
5387,
7448,
8863,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.8.0;
import "./SafeMath.sol";
import "./Ownable.sol";
import "./IERC20.sol";
import "./SafeERC20.sol";
import "./IERC1155.sol";
contract NFTFarming is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
struct UserInfo {
uint256 amount; // total stake... | points generated per LP token per second staked
| uint256 public pointsPerSecond; | 390,985 | [
1,
4625,
348,
7953,
560,
30,
225,
3143,
4374,
1534,
511,
52,
1147,
1534,
2205,
384,
9477,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
3143,
2173,
8211,
31,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
// Import the UsingWitnet library that enables interacting with Witnet
import "witnet-solidity-bridge/contracts/UsingWitnet.sol";
// Import the WitnetRequest contract that enables creating requests on the spot
import "witnet-solidity-bridge/contracts/requests/Wit... | the time until the tokens can be withdrawn
| uint64 lockTime; | 13,089,280 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
813,
3180,
326,
2430,
848,
506,
598,
9446,
82,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1105,
225,
2176,
950,
31,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xC172f3C2B5e36a608931465a2B55005D2deEa6Df/sources/HIDTeamAndAdv.sol | * @notice Only allow calls from the beneficiary of the vesting contract/ | modifier onlyBeneficiary() {
require(msg.sender == beneficiary);
_;
}
IERC20 _token,
address _beneficiary,
uint256 _startTime,
uint256 _cliffDuration,
uint256 _payOutPercentage,
uint256 _payOutInterval
| 2,908,521 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5098,
1699,
4097,
628,
326,
27641,
74,
14463,
814,
434,
326,
331,
10100,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
38,
4009,
74,
14463,
814,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
27641,
74,
14463,
814,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
3639,
467,
654,
39,
3462,
225,
389,
2316,
16,
203,
3639,... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity =0.8.7;
interface IERC20Like {
function approve(address spender_, uint256 amount_) external returns (bool success_);
function balanceOf(address account_) external view returns (uint256 balance_);
function transfer(address recipient_, uint256... | The amount of principal yet to be paid down.
| uint256 internal _principal; | 14,008,968 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3844,
434,
8897,
4671,
358,
506,
30591,
2588,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
2713,
389,
26138,
31,
5411,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/11155111/0xfcaB06726C71B0Ac66E4b52a6E9218BC1B71E300/sources/contracts/UltraLightNodeV2.sol | universal withdraw native token function. the source contract should perform all the authentication control | function withdrawNative(address payable _to, uint _amount) external override nonReentrant {
require(_to != address(0x0), "LayerZero: _to cannot be zero address");
nativeFees[msg.sender] = nativeFees[msg.sender].sub(_amount);
require(success, "LayerZero: withdraw failed");
emit Withd... | 3,799,160 | [
1,
4625,
348,
7953,
560,
30,
225,
26182,
598,
9446,
6448,
1147,
445,
18,
326,
1084,
6835,
1410,
3073,
777,
326,
5107,
3325,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
9220,
12,
2867,
8843,
429,
389,
869,
16,
2254,
389,
8949,
13,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
92,
20,
3631,
315,
4576,
7170,
30,
389,
869,
2780,
506,
... |
./full_match/122/0xd3476a287Bc0B7F339D7c0b84b0965c11b0d6C24/sources/contracts/launchpad/Launchpad.sol | * @dev Returns the amount of project tokens allocated to the user @param _user The address of the user/ | function getUserAllocation(address _user) public view returns (uint256) {
UserInfo memory userInfo = usersInfo[_user];
return (tokensToDistribute() * userInfo.balance) / saleTokenReserve;
}
| 16,366,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
3844,
434,
1984,
2430,
11977,
358,
326,
729,
632,
891,
389,
1355,
1021,
1758,
434,
326,
729,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4735,
17353,
12,
2867,
389,
1355,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
25003,
3778,
16753,
273,
3677,
966,
63,
67,
1355,
15533,
203,
3639,
327,
261,
7860,
774,
1669,
887,
1435,
380,
16753,
18,
122... |
// voting.sol
/*
A useful mechanism for moderating / managing a democratic blockchain group.
Put globally delegated tasks in the organization up for a vote.
All essential tasks that require oversight should probably be managed internally
by a steering group, i.e., a governing board, acting as fiduciaries.
To do ... | make sure the voter hasn't voted yet
| require(!sender.voted); | 13,114,873 | [
1,
4625,
348,
7953,
560,
30,
225,
1221,
3071,
326,
331,
20005,
13342,
1404,
331,
16474,
4671,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
5,
15330,
18,
90,
16474,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x083C55dBD2E5A4D48Ffa6C4FF2E0Dcec7cd53962/sources/contracts/Astrofolio.sol | Will be 4/4 when the anti-sniping mode is removed | contract Astrofolio is ERC20, Ownable {
string private _name = "Astrofolio";
string private _symbol = "ASTRF";
uint256 private _supply = 100_000_000_000 ether;
address public investmentAddress = 0xE21559FEc5cc30aCc20F9c67847269b52CFa2a9C;
mapping(address => bool) public excludedFromFees;
map... | 4,980,828 | [
1,
4625,
348,
7953,
560,
30,
225,
9980,
506,
1059,
19,
24,
1347,
326,
30959,
17,
8134,
625,
310,
1965,
353,
3723,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
16614,
303,
10270,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
533,
3238,
389,
529,
273,
315,
21385,
303,
10270,
14432,
203,
565,
533,
3238,
389,
7175,
273,
315,
37,
3902,
42,
14432,
203,
203,
565,
2254,
5034,
323... |
./partial_match/4/0x6f20C45085870f281715561B6894990dffA759d3/sources/EventTicketSystem.sol | * @dev Returns the resale status of a specific ticket/ | function getTicketResaleStatus(uint256 _ticketId)
public
view
returns (bool)
{
return tickets[_ticketId].forSale;
}
| 8,717,421 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
400,
5349,
1267,
434,
279,
2923,
9322,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3181,
29378,
607,
5349,
1482,
12,
11890,
5034,
389,
16282,
548,
13,
7010,
565,
1071,
7010,
565,
1476,
7010,
565,
1135,
261,
6430,
13,
7010,
565,
288,
203,
3639,
327,
24475,
63,
67,
16282,
548,
8009,
1884,
30746,
31,
203... |
./full_match/1/0xB80ccEb6Fa958b52203604D7624F4Abdb4F373F4/sources/src/universal_v3/UniversalRegistrarControllerV3.sol | address is no longer reserved once registered Set this contract as the (temporary) owner, giving it permission to set up the resolver. The nodehash of this label Set the resolver Configure the resolver Refund any extra payment | function registerReservedWithConfig(bytes32 node, string memory name, address owner,
uint duration, address resolver, address addr) public payable {
bytes32 label = keccak256(bytes(name));
require(_available(node, name, label) && !store.registrationsPaused(node));
require(store.reser... | 8,459,678 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
353,
1158,
7144,
8735,
3647,
4104,
1000,
333,
6835,
487,
326,
261,
31143,
13,
3410,
16,
21057,
518,
4132,
358,
444,
731,
326,
5039,
18,
1021,
756,
2816,
434,
333,
1433,
1000,
326,
5039,
11758,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1744,
10435,
1190,
809,
12,
3890,
1578,
756,
16,
533,
3778,
508,
16,
1758,
3410,
16,
203,
3639,
2254,
3734,
16,
1758,
5039,
16,
1758,
3091,
13,
1071,
8843,
429,
288,
203,
3639,
1731,
1578,
1433,
273,
417,
24410,
581,
... |
pragma solidity 0.5.0;
import "./SafeMath.sol";
import "./RewardContract.sol";
import "./Adbank.sol";
contract AdbankRewardClaimContract is RewardContract {
using SafeMath for uint256;
// Stop contract from executing it's main logic
bool public suspended;
// Limit the size of incoming requests (assi... | Change the requests limit | function setBatchLimit(uint8 newLimit) onlyOwner external {
require(newLimit > 0);
batchLimit = newLimit;
}
| 534,310 | [
1,
4625,
348,
7953,
560,
30,
225,
7576,
326,
3285,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
4497,
3039,
12,
11890,
28,
394,
3039,
13,
1338,
5541,
3903,
288,
203,
3639,
2583,
12,
2704,
3039,
405,
374,
1769,
203,
3639,
2581,
3039,
273,
394,
3039,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x6b6A24EFEe75EdACd1E47a8ea63cE1981F0013E0/sources/IdentityRegistry.sol | * @dev See {IIdentityRegistry-issuersRegistry}./ | function issuersRegistry() external override view returns (ITrustedIssuersRegistry){
return tokenIssuersRegistry;
}
| 9,212,914 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
2164,
288,
45,
4334,
4243,
17,
1054,
27307,
4243,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3385,
27307,
4243,
1435,
3903,
3849,
1476,
1135,
261,
45,
16950,
7568,
27307,
4243,
15329,
203,
3639,
327,
1147,
7568,
27307,
4243,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity 0.4.21;
// ----------------------------------------------------------------------------
// 'ANDRS' 'Andreis Token' token contract
//
// Symbol : INO8
// Name : AndreisToken
// Total supply: Generated from contributions
// Decimals : 18
//
//
// -------------------------------------------... | Check if recipient is frozen
| require(!frozenAccount[to]); | 1,520,697 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
8027,
353,
12810,
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,
2583,
12,
5,
28138,
3032,
63,
869,
19226,
13491,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "@divergencetech/ethier/contracts/crypto/SignatureChecker.sol";
import "@divergencetech/ethier/contracts/erc721/BaseTokenURI.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721Common.sol";
import "@divergencetech/ethier/contracts/sales/Fix... | @notice A Seller with fixed per-item price. | abstract contract FixedPriceSeller is Seller {
constructor(
uint256 _price,
Seller.SellerConfig memory sellerConfig,
address payable _beneficiary
pragma solidity >=0.8.0 <0.9.0;
) Seller(sellerConfig, _beneficiary) {
setPrice(_price);
}
@dev Fixed as in not changing with... | 6,138,421 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
432,
4352,
749,
598,
5499,
1534,
17,
1726,
6205,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
17801,
6835,
15038,
5147,
22050,
353,
4352,
749,
288,
203,
565,
3885,
12,
203,
3639,
2254,
5034,
389,
8694,
16,
203,
3639,
4352,
749,
18,
22050,
809,
3778,
29804,
809,
16,
203,
3639,
1758,
8843,
429,
389,
70,
4009,
74,
14463,
814... |
/**
*Submitted for verification at Etherscan.io on 2022-04-12
*/
// Sources flattened with hardhat v2.6.1 https://hardhat.org
// File @openzeppelin/contracts/utils/[email protected]
// : MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of th... | lock seconds when begin to submit batch tx data slice submit tx data slice size (in bytes) stake duration seconds for sequencer submit batch tx data verifier stake base cost for a batch tx data requirement (in ETH) submit tx data slice count (a whole tx batch) submit tx batch size (in bytes) verifier stake unit cost f... | contract MVM_CanonicalTransaction is iMVM_CanonicalTransaction, Lib_AddressResolver{
string constant public CONFIG_OWNER_KEY = "METIS_MANAGER";
uint256 constant public TXDATA_SUBMIT_TIMEOUT = 1800;
uint256 public txDataSliceSize;
uint256 public stakeSeqSeconds;
uint256 public stakeBaseCost;
... | 10,725,230 | [
1,
4625,
348,
7953,
560,
30,
225,
2176,
3974,
1347,
2376,
358,
4879,
2581,
2229,
501,
2788,
4879,
2229,
501,
2788,
963,
261,
267,
1731,
13,
384,
911,
3734,
3974,
364,
26401,
23568,
4879,
2581,
2229,
501,
20130,
384,
911,
1026,
6991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7397,
67,
15512,
3342,
353,
277,
49,
7397,
67,
15512,
3342,
16,
10560,
67,
1887,
4301,
95,
203,
203,
565,
533,
5381,
1071,
9128,
67,
29602,
67,
3297,
273,
315,
18315,
5127,
67,
19402,
14432,
203,
203,
565,
2254,
5034,... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol";
impor... | Whether the SALT Token has been consumed
| mapping(uint256 => mapping(bytes => bool)) public usedToken; | 11,743,242 | [
1,
4625,
348,
7953,
560,
30,
225,
17403,
326,
348,
18255,
3155,
711,
2118,
12393,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
11890,
5034,
516,
2874,
12,
3890,
516,
1426,
3719,
1071,
1399,
1345,
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,
-10... |
./full_match/8453/0xd32548EA5911a6336C5a34061e814148C396aE6F/sources/contracts/proxy/DefusionAiProxy.sol | Allow anyone to view the implementation address | contract DefusionAIFactoryProxy is TransparentUpgradeableProxy {
constructor(address _implementation, bytes memory _data)
TransparentUpgradeableProxy(_implementation, msg.sender, _data)
{}
function proxyImplementation() external view returns (address) {
return _implementation();
}
... | 11,556,546 | [
1,
4625,
348,
7953,
560,
30,
225,
7852,
1281,
476,
358,
1476,
326,
4471,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
10922,
7063,
18194,
1733,
3886,
353,
2604,
2938,
10784,
429,
3886,
288,
203,
565,
3885,
12,
2867,
389,
30810,
16,
1731,
3778,
389,
892,
13,
203,
3639,
2604,
2938,
10784,
429,
3886,
24899,
30810,
16,
1234,
18,
15330,
16,
389,... |
./full_match/1/0x5061CDe874f75D119dE3B07E191644097343AB9E/sources/contracts/strategies/Generalized4626Strategy.sol | * @dev Approve the spending of all assets by their corresponding cToken, if for some reason is it necessary./ | function safeApproveAllTokens() external override {
assetToken.safeApprove(platformAddress, type(uint256).max);
shareToken.safeApprove(platformAddress, type(uint256).max);
}
| 9,716,634 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
326,
272,
9561,
434,
777,
7176,
635,
3675,
4656,
276,
1345,
16,
1377,
309,
364,
2690,
3971,
353,
518,
4573,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
4183,
12053,
537,
1595,
5157,
1435,
3903,
3849,
288,
203,
3639,
3310,
1345,
18,
4626,
12053,
537,
12,
9898,
1887,
16,
618,
12,
11890,
5034,
2934,
1896,
1769,
203,
3639,
7433,
1345,
18,
4626,
12053,
537,
12,
9898,
1887,
... |
pragma solidity =0.5.16;
import './interfaces/IYouSwapFactory.sol';
import './YouSwapPair.sol';
import './libraries/MathV1.sol';
contract YouSwapFactory is IYouSwapFactory {
using SafeMath for uint;
address public feeTo;
address public feeToSetter;
uint256 public feeToRate;
bytes32 public in... | keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); | contract YouSwapERC20 is IYouSwapERC20 {
using SafeMath for uint;
string public constant name = 'YouSwap LP Token';
string public constant symbol = 'ULP';
uint8 public constant decimals = 18;
uint public totalSupply;
mapping(address => uint) public balanceOf;
mapping(address => mapping(add... | 14,509,050 | [
1,
4625,
348,
7953,
560,
30,
225,
417,
24410,
581,
5034,
2932,
9123,
305,
12,
2867,
3410,
16,
2867,
17571,
264,
16,
11890,
5034,
460,
16,
11890,
5034,
7448,
16,
11890,
5034,
14096,
2225,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4554,
12521,
654,
39,
3462,
353,
467,
6225,
12521,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
5381,
508,
273,
296,
6225,
12521,
511,
52,
3155,
13506,
203,
565,
533,
1071,
538... |
pragma solidity ^0.4.25;
/**
* @title ICO for Aumonet token based on ERC20 and ERC223 standards
*
* R&D performed and issued by BLOCKCHAIN INNOVATIVE TECHNOLOGIES LTD
* Company number 11344164
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev https://... | * @notice Validation of an incoming purchase. @dev Use require statements to revert state when conditions are not met. Use super to concatenate validations. @param _beneficiary Address performing the token purchase @param _weiAmount Value in wei involved in the purchase/ | function _preValidatePurchase(address _beneficiary, uint256 _weiAmount)internal {
require(_beneficiary != address(0));
require(_weiAmount != 0);
increaseTime = token.pauseTime();
require(!crowdsaleClosed && block.timestamp >= start.add(increaseTime) && block.timestamp <= end.add(increaseTime));
}
| 6,964,004 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5684,
434,
392,
6935,
23701,
18,
632,
5206,
2672,
2583,
6317,
358,
15226,
919,
1347,
4636,
854,
486,
5100,
18,
2672,
2240,
358,
11361,
20808,
18,
632,
891,
389,
70,
4009,
74,
14463,
814,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
389,
1484,
4270,
23164,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
5034,
389,
1814,
77,
6275,
13,
7236,
288,
203,
202,
202,
6528,
24899,
70,
4009,
74,
14463,
814,
480,
1758,
12,
20,
10019,
203,
202,
202,
6528,... |
./partial_match/137/0x9f0910e9c31cC0442A9188264630Ef9E0dC51969/sources/BaseAuthorizer.sol | @dev Call `roleManager` to validate the role of delegate. | function _hasRole(TransactionData calldata transaction, bytes32 role) internal view returns (bool) {
return _hasRole(transaction.delegate, role);
}
| 3,520,199 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3049,
1375,
4615,
1318,
68,
358,
1954,
326,
2478,
434,
7152,
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,
565,
445,
389,
5332,
2996,
12,
3342,
751,
745,
892,
2492,
16,
1731,
1578,
2478,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
5332,
2996,
12,
7958,
18,
22216,
16,
2478,
1769,
203,
565,
289,
203,
203,
2,
-100,
... |
./full_match/1/0x717dCBdFd92591f8242b159DcaDa929238efD40B/sources/browser/FinalProductionET.sol | * @dev Structure to hold tokens supplu and dividend per share against collateral./ | struct TokenMaster {
uint supply;
uint dividend;
}
| 2,970,323 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13348,
358,
6887,
2430,
1169,
412,
89,
471,
31945,
1534,
7433,
5314,
4508,
2045,
287,
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,
... | [
1,
1,
1,
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,
1958,
3155,
7786,
288,
203,
3639,
2254,
14467,
31,
203,
3639,
2254,
31945,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x72E357f7635163493F153A0Bd3F03C15C14A51C6/sources/ETHVault.sol | * @dev Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address./ | function increaseAllowance(address spender, uint addedValue)
public
virtual
returns (bool)
{
_approve(
_msgSender(),
spender,
_allowances[_msgSender()][spender].add(addedValue)
);
return true;
}
| 4,271,678 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7149,
6478,
7033,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
4894,
18,
1220,
353,
392,
10355,
358,
288,
12908,
537,
97,
716,
848,
506,
1399,
487,
279,
20310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10929,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
3096,
620,
13,
203,
3639,
1071,
203,
3639,
5024,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
389,
12908,
537,
12,
203,
5411,
389,
3576,
12021,
9334,
203,
... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";... | Emergency function: In case any ERC20 tokens get stuck in the contract unintentionally Only owner can retrieve the asset balance to a recipient address | function rescueERC20(address asset,address to) onlyOwner external {
IERC20(asset).transfer(to, IERC20(asset).balanceOf(address(this)));
}
| 605,932 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
6592,
75,
2075,
445,
30,
657,
648,
1281,
4232,
39,
3462,
2430,
336,
384,
9031,
316,
326,
6835,
640,
474,
22918,
5098,
3410,
848,
4614,
326,
3310,
11013,
358,
279,
8027,
1758,
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,
8223,
654,
39,
3462,
12,
2867,
3310,
16,
2867,
358,
13,
1338,
5541,
3903,
288,
7010,
3639,
467,
654,
39,
3462,
12,
9406,
2934,
13866,
12,
869,
16,
467,
654,
39,
3462,
12,
9406,
2934,
12296,
951,
12,
2867,
12,
2211,
... |
// SPDX-License-Identifier: MIT
// @unsupported: ovm
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/* Interface Imports */
import { iOVM_L1CrossDomainMessenger } from
"../../../iOVM/bridge/messaging/iOVM_L1CrossDomainMessenger.sol";
import { iOVM_L1MultiMessageRelayer } from
"../../../iOVM/b... | * Reads the raw bytes of an RLP item. @param _in RLP item to read. @return Raw RLP bytes./ | function readRawBytes(
RLPItem memory _in
)
internal
pure
returns (
bytes memory
)
{
return _copy(_in);
}
| 83,222 | [
1,
4625,
348,
7953,
560,
30,
380,
29185,
326,
1831,
1731,
434,
392,
534,
14461,
761,
18,
632,
891,
389,
267,
534,
14461,
761,
358,
855,
18,
632,
2463,
6576,
534,
14461,
1731,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
855,
4809,
2160,
12,
203,
3639,
534,
48,
1102,
874,
3778,
389,
267,
203,
565,
262,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1731,
3778,
203,
3639,
262,
203,
565,
288,
203,
3639,
327,
389,
35... |
./partial_match/1287/0x20C73f83D980d69a7e290f5beA84d648715962Ed/sources/Counter.sol | Function to get the current count | contract Counter {
uint public count;
pragma solidity ^0.8.13;
function get() public view returns (uint) {
return count;
}
function inc() public {
count += 1;
}
function dec() public {
count -= 1;
}
} | 16,903,893 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
358,
336,
326,
783,
1056,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
9354,
288,
203,
565,
2254,
1071,
1056,
31,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3437,
31,
203,
565,
445,
336,
1435,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
1056,
31,
203,
565,
289,
203,
... |
./partial_match/80001/0x7C682dd6E5d569C2e38EA148032098B839B11c9F/sources/contracts/base/AlgebraPoolBase.sol | @inheritdoc IAlgebraPoolState | int24 public override nextTickGlobal;
| 8,801,241 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
1067,
29087,
2864,
1119,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
509,
3247,
1071,
3849,
23754,
5160,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8;
import "@openzeppelin/contracts/utils/Create2.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./interfaces/IERC3652Deployer.sol";
import "./ERC3652Proxy.sol";
contract ERC3652 is ERC721 {
IERC3652Deployer immutable public deployer;
... | solhint-disable-line var-name-mixedcase
| bytes32 immutable public ERC3652_PROXY_CODE_HASH; | 2,505,101 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
1369,
569,
17,
529,
17,
19562,
3593,
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,
1731,
1578,
11732,
1071,
4232,
39,
5718,
9401,
67,
16085,
67,
5572,
67,
15920,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//Address: 0x26CB3641aaA43911f1D4cB2ce544eb652AAc7c47
//Contract name: CrystalToken
//Balance: 0 Ether
//Verification Date: 2/10/2018
//Transacion Count: 2633
// CODE STARTS HERE
pragma solidity ^0.4.19;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/... | Use safemath for math operations Maps each address to its current balance List of admins that can transfer tokens also during the ICO List of addresses that can receive tokens also during the ICO Specifies whether the tokens are locked(ICO is running) - Tokens cannot be transferred during the ICO Checks the size of th... | {
using SafeMath for uint256;
mapping(address => uint256) balances;
mapping(address => bool) public admin;
mapping(address => bool) public receivable;
bool public locked;
modifier onlyPayloadSize(uint size)
contract SafeBasicToken is ERC20Basic
{
assert(msg.data.length >= size ... | 5,513,783 | [
1,
4625,
348,
7953,
560,
30,
225,
2672,
11029,
351,
421,
364,
4233,
5295,
19837,
1517,
1758,
358,
2097,
783,
11013,
987,
434,
31116,
716,
848,
7412,
2430,
2546,
4982,
326,
467,
3865,
987,
434,
6138,
716,
848,
6798,
2430,
2546,
4982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
324,
26488,
31,
203,
203,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
3981,
31,
203,
203,
565,
2874,
12,
2867,
516,
1426,
... |
pragma solidity 0.4.25;
// File: contracts/sogur/interfaces/IPaymentHandler.sol
/**
* @title Payment Handler Interface.
*/
interface IPaymentHandler {
/**
* @dev Get the amount of available ETH.
* @return The amount of available ETH.
*/
function getEthBalance() external view returns (uint256)... | * @dev Transfer token for a specified addresses @param from The address to transfer from. @param to The address to transfer to. @param value The amount to be transferred./ | function _transfer(address from, address to, uint256 value) internal {
require(value <= _balances[from], "sdjfndskjfndskjfb");
require(to != address(0), "asfdsf");
_balances[from] = _balances[from].sub(value);
_balances[to] = _balances[to].add(value);
emit Transfer(from, to, value);
}
| 208,310 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
1147,
364,
279,
1269,
6138,
632,
891,
628,
1021,
1758,
358,
7412,
628,
18,
632,
891,
358,
1021,
1758,
358,
7412,
358,
18,
632,
891,
460,
1021,
3844,
358,
506,
906,
4193,
18,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
2713,
288,
203,
565,
2583,
12,
1132,
1648,
389,
70,
26488,
63,
2080,
6487,
315,
6427,
78,
4293,
2377,
79,
78,
4293,
2377,
79,
78,
19192,
8863,
203,
... |
pragma solidity ^0.4.24;
//==============================================================================
// _ _ _ _|_ _ .
// (/_\/(/_| | | _\ .
//==============================================================================
contract F3Devents {
// fired whenever a player registers a name
event o... | ============================================================================== _ _ _ _ | _ _ . _ . (_(_)| (/_ |(_)(_||(_ . (this + tools + calcs + modules = our softwares engine)=====================_|=======================================================* @dev logic runs whenever a buy order is executed... | function buyCore(uint256 _pID, uint256 _affID, uint256 _team, F3Ddatasets.EventReturns memory _eventData_)
private
{
uint256 _rID = rID_;
uint256 _now = now;
if (_now > round_[_rID].strt + rndGap_ && (_now <= round_[_rID].end || (_now > round_[_rID].end && round_[_rID].p... | 1,374,345 | [
1,
4625,
348,
7953,
560,
30,
422,
9917,
14468,
377,
389,
389,
225,
389,
389,
282,
571,
389,
225,
389,
263,
389,
225,
263,
565,
261,
67,
24899,
14047,
261,
18510,
225,
571,
24899,
21433,
67,
20081,
24899,
225,
263,
261,
2211,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4670,
12,
11890,
5034,
389,
84,
734,
16,
2254,
5034,
389,
7329,
734,
16,
2254,
5034,
389,
10035,
16,
478,
23,
40,
21125,
18,
1133,
1356,
3778,
389,
2575,
751,
67,
13,
203,
3639,
3238,
203,
565,
288,
203,
3639,
... |
./full_match/80001/0x35fd0516074d4735FEA7Ee7eDC69176B2CfCB42a/sources/contracts/bank/Referral.sol | * @dev Given a user referred count to calc in which rate period @param referredCount The number of referrees/ | function _getRefereeBonusRate(uint24 referredCount)
private
view
returns (uint16)
{
uint16 rate = refereeBonusRateMap[0].rate;
uint256 refereeBonusRateMapLength = refereeBonusRateMap.length;
for (uint8 i = 1; i < refereeBonusRateMapLength; i++) {
Refer... | 9,453,877 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16803,
279,
729,
29230,
1056,
358,
7029,
316,
1492,
4993,
3879,
632,
891,
29230,
1380,
1021,
1300,
434,
8884,
5312,
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,
565,
445,
389,
588,
426,
586,
1340,
38,
22889,
4727,
12,
11890,
3247,
29230,
1380,
13,
203,
3639,
3238,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
2313,
13,
203,
565,
288,
203,
3639,
2254,
2313,
4993,
273,
8884,
1340,
38,
2288... |
pragma solidity ^0.4.24;
/**
* @title Proxy Wallet.
* @author Tap Trust
* @dev Proof of concept implementation of a Solidity proxy wallet.
* Unlike most authentication in Ethereum contracts,
* the address of the transaction sender is arbitrary,
* but it includes a signed message that can be authenticated
* as b... | * Fired when administrator is added./ | event AdministratorAdded(address indexed admin);
| 15,846,441 | [
1,
4625,
348,
7953,
560,
30,
380,
478,
2921,
1347,
22330,
353,
3096,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
871,
7807,
14207,
8602,
12,
2867,
8808,
3981,
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,
-100,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.4;
contract Launcher {
enum ContractState { TimeNotExpired, Funded, NotFunded }
struct Launch {
ContractState contractState;
uint launchTime;
uint launchGoalInWei;
uint totalCommittedWei;
address beneficiary;
... | This can be 0, in that case the fund raising is quite short :) Any value is accepted since it's met or it isn't, this includes 0 | function createLaunch(
uint _secondsToLaunchTime,
uint _launchGoalInWei)
public {
if (_launchGoalInWei == 0) revert LaunchGoalMustBeGreaterThan0();
uint launchID = launchCounter++;
Launch storage launch = launches[launchID];
launch.con... | 12,552,779 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
848,
506,
374,
16,
316,
716,
648,
326,
284,
1074,
28014,
353,
25102,
3025,
294,
13,
5502,
460,
353,
8494,
3241,
518,
1807,
5100,
578,
518,
5177,
1404,
16,
333,
6104,
374,
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,
752,
9569,
12,
203,
5411,
2254,
389,
7572,
774,
9569,
950,
16,
203,
5411,
2254,
389,
20738,
27716,
382,
3218,
77,
13,
7010,
3639,
1071,
288,
203,
5411,
309,
261,
67,
20738,
27716,
382,
3218,
77,
422,
374,
13,
15226,
1... |
./partial_match/1/0xa3cc9e4B9784c80a05B3Af215C32ff223C3ebE5c/sources/home/david/repc-v1.0.0/contracts/lib/pools/CompoundPoolController.sol | * @dev Withdraws all funds from the Compound pool. @return Boolean indicating success./ | function withdrawAll() external returns (bool) {
uint256 balance = _cETHContract.balanceOf(address(this));
uint256 redeemResult = _cETHContract.redeem(balance);
require(redeemResult == 0, "Error calling redeem on Compound cToken: error code not equal to 0");
return true;
}
| 4,092,570 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
87,
777,
284,
19156,
628,
326,
21327,
2845,
18,
632,
2463,
3411,
11193,
2216,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1595,
1435,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
5034,
11013,
273,
389,
71,
1584,
44,
8924,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
2254,
5034,
283,
24903,
1253,
273,
389,
71,
1584,
... |
// File: openzeppelin-solidity/contracts/GSN/Context.sol
pragma solidity ^0.5.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direc... | * @dev Safely transfers the ownership of a given token ID to another address If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer, and return the magic value `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, the ... | function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransferFrom(from, to, tokenId, _data);
}
| 246,092 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
348,
1727,
2357,
29375,
326,
23178,
434,
279,
864,
1147,
1599,
358,
4042,
1758,
971,
326,
1018,
1758,
353,
279,
6835,
16,
518,
1297,
2348,
288,
45,
654,
39,
27,
5340,
12952,
17,
265,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
5912,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
16,
1731,
3778,
389,
892,
13,
1071,
288,
203,
3639,
2583,
24899,
291,
31639,
1162,
5541,
24899,
3576,
12021,
9334,
1147,
548,
3631,
315,
654,
39... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract Rescuable is Ownable {
address private _rescuer;
event RescuerChanged(address indexed newRescuer);
/**
* @notice Returns current rescuer
* @return ... | * @notice Assign the rescuer role to a given address. @param newRescuer New rescuer's address/ | function updateRescuer(address newRescuer) external onlyOwner {
require(newRescuer != address(0), "New rescuer is the zero address");
_rescuer = newRescuer;
emit RescuerChanged(newRescuer);
}
| 13,045,799 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12093,
326,
400,
71,
6211,
2478,
358,
279,
864,
1758,
18,
632,
891,
394,
607,
71,
6211,
1166,
400,
71,
6211,
1807,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
607,
71,
6211,
12,
2867,
394,
607,
71,
6211,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
607,
71,
6211,
480,
1758,
12,
20,
3631,
315,
1908,
400,
71,
6211,
353,
326,
3634,
1758,
8863,
203,
3639,
389,
... |
//Address: 0x6abf810730a342add1374e11f3e97500ee774d1f
//Contract name: BCFMain
//Balance: 0 Ether
//Verification Date: 2/21/2018
//Transacion Count: 330
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract BCFBase {
address public owner;
address public editor;
bool public paused = false;
modifie... | Shortcode - GK, LB, CB, RB, RW, RM, LW, LM, CM, CDM, CAM, ST
| bytes position; | 6,375,462 | [
1,
4625,
348,
7953,
560,
30,
225,
7925,
710,
300,
611,
47,
16,
511,
38,
16,
21262,
16,
534,
38,
16,
25920,
16,
534,
49,
16,
511,
59,
16,
511,
49,
16,
15871,
16,
385,
16125,
16,
385,
2192,
16,
2347,
203,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1731,
1754,
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,
-100,... |