file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.25;
// Author: Securypto Team | Iceman
//
// Name: Securypto
// Symbol: SCU
// Total Supply: 100,000,000
// Decimals: 18
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, revert... | * @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens @param target Address to be frozen @param freeze either to freeze it or not/ | function freezeAccount(address target, bool freeze) onlyOwner public {
frozenAccount[target] = freeze;
emit FrozenFunds(target, freeze);
}
| 902,067 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1375,
29631,
35,
19412,
571,
7852,
68,
1375,
3299,
68,
628,
5431,
473,
15847,
2430,
632,
891,
1018,
5267,
358,
506,
12810,
632,
891,
16684,
3344,
358,
16684,
518,
578,
486,
19,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16684,
3032,
12,
2867,
1018,
16,
1426,
16684,
13,
1338,
5541,
1071,
288,
203,
3639,
12810,
3032,
63,
3299,
65,
273,
16684,
31,
203,
3639,
3626,
478,
9808,
42,
19156,
12,
3299,
16,
16684,
1769,
203,
565,
289,
203,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts_latest/utils/math/SafeMath.sol";
import "@openzeppelin/contracts_latest/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts_latest/access/AccessControl.sol";
import "@openzeppelin/contracts_latest/token/ERC20/extensio... | if successful this should increase the total MiMatic held by contract Just being safe Approve Transfer _amount usdt to lending pool then we need to deposit it into the lending pool | if(_wmaticBalance > 2) {
address[] memory path = new address[](2);
path[0] = wmatic_address;
path[1] = collateral_address;
wMaticContract.safeApprove(uniswap_router_address, _wmaticBalance);
IUniswapV2Router01(uniswap_router_a... | 15,813,105 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
6873,
333,
1410,
10929,
326,
2078,
490,
77,
49,
2126,
15770,
635,
6835,
12526,
3832,
4183,
1716,
685,
537,
12279,
389,
8949,
584,
7510,
358,
328,
2846,
2845,
1508,
732,
1608,
358,
443,
1724,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
24899,
91,
26500,
13937,
405,
576,
13,
288,
203,
5411,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
7734,
589,
63,
20,
65,
273,
18200,
2126,
67,
2867,
31,
203,
7734,
589,
63,
21,
65,
273,
4508,
2... |
pragma solidity ^0.4.4;
contract Token {
function transfer(address _to, uint _value) returns (bool);
function balanceOf(address owner) returns(uint);
}
contract Owned {
address public owner;
function Owned() {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != ow... | Don't encourage gas price manipulation. | function () payable {
if (tx.gasprice > MAX_GAS_PRICE) throw;
if (block.timestamp < startTime || block.timestamp >= deadline) throw;
if (this.balance >= capAmount) throw;
if (this.balance + msg.value >= capAmount) {
deadline = block.timestamp;
}
}
| 10,835,961 | [
1,
4625,
348,
7953,
560,
30,
225,
7615,
18642,
5520,
31,
88,
2446,
477,
410,
16189,
6205,
27029,
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,
565,
445,
1832,
8843,
429,
288,
203,
377,
202,
430,
261,
978,
18,
31604,
8694,
405,
4552,
67,
43,
3033,
67,
7698,
1441,
13,
604,
31,
203,
3639,
309,
261,
2629,
18,
5508,
411,
8657,
747,
1203,
18,
5508,
1545,
14096,
13,
604,
3... |
./full_match/43114/0xE487a3780D56F2ECD142201907dF16350bb09946/sources/DssProxyActions.sol | / Takes token amount from user's wallet and joins into the vat Locks token amount into the CDP and generates debt Moves the DAI amount (balance in the vat in rad) to proxy's address Allows adapter to access to proxy's DAI balance in the vat | function lockGemAndDraw(
address manager,
address jug,
address gemJoin,
address daiJoin,
uint cdp,
uint amtC,
uint wadD,
bool transferFrom,
address res
) public {
address urn = DssCdpManager(manager).urns(cdp);
address vat =... | 4,579,864 | [
1,
4625,
348,
7953,
560,
30,
342,
23004,
1147,
3844,
628,
729,
1807,
9230,
471,
13471,
1368,
326,
17359,
3488,
87,
1147,
3844,
1368,
326,
385,
8640,
471,
6026,
18202,
88,
490,
10829,
326,
463,
18194,
3844,
261,
12296,
316,
326,
17359,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
2176,
43,
351,
1876,
6493,
12,
203,
3639,
1758,
3301,
16,
203,
3639,
1758,
525,
637,
16,
203,
3639,
1758,
17474,
4572,
16,
203,
3639,
1758,
5248,
77,
4572,
16,
203,
3639,
2254,
7976,
84,
16,
203,
3639,
2254,
25123,
39... |
./full_match/11155111/0xE121A794050170cca69C4eB6c416d42314551C9C/sources/project_/contracts/modules/internal/EnforcementModuleInternal.sol | * @dev Unfreezes an address. @param account the account to unfreeze @param reason indicate why the account was unfrozen./ | function _unfreeze(
address account,
string memory reason
) internal virtual returns (bool) {
if (!_frozen[account]) return false;
_frozen[account] = false;
emit Unfreeze(_msgSender(), account, reason, reason);
return true;
}
uint256[50] private __gap;
| 3,803,659 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1351,
9156,
94,
281,
392,
1758,
18,
632,
891,
2236,
326,
2236,
358,
640,
29631,
632,
891,
3971,
10768,
11598,
326,
2236,
1703,
640,
28138,
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,
565,
445,
389,
318,
29631,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
533,
3778,
3971,
203,
565,
262,
2713,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
309,
16051,
67,
28138,
63,
4631,
5717,
327,
629,
31,
203,
3639,
389,
28138,
6... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./interfaces/Constants.sol";
import { PoolParams } from "./interfaces/Types.sol";
import "./interfaces/IMintable.sol";
import "./interfaces/IVes... | * @title Claimable @notice It withdraws accidentally sent tokens from this contract. @dev It provides reentrancy guard. The code borrowed from openzeppelin-contracts. Unlike original code, this version does not require `constructor` call./ | contract Claimable {
bytes4 private constant SELECTOR_TRANSFER =
bytes4(keccak256(bytes("transfer(address,uint256)")));
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _reentrancyStatus;
function _claimErc20(
address token,
... | 424,842 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
18381,
429,
632,
20392,
2597,
598,
9446,
87,
25961,
1230,
3271,
2430,
628,
333,
6835,
18,
632,
5206,
2597,
8121,
283,
8230,
12514,
11026,
18,
1021,
981,
29759,
329,
628,
1696,
94,
881,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18381,
429,
288,
203,
565,
1731,
24,
3238,
5381,
9111,
916,
67,
16596,
6553,
273,
203,
3639,
1731,
24,
12,
79,
24410,
581,
5034,
12,
3890,
2932,
13866,
12,
2867,
16,
11890,
5034,
2225,
3719,
1769,
203,
203,
565,
2254,
5034... |
pragma solidity ^0.5;
import './base/openzeppelin/math/SafeMath.sol';
import './IMarket.sol';
import './Uninitialized.sol';
import './Restricted.sol';
import './Nonpayable.sol';
import './UpcityBase.sol';
/// @title Game contract for upcity.app
contract UpcityGame is
UpcityBase,
Uninitialized,
Nonpayable,
Res... | @dev Get a slice of the tilesBought array. @param start The start index. @param count The maximum number of elements to return. @return A slice of the tilesBought array. If the length of the returned array is less than `count`, you've hit the end. | function getTilesBoughtSlice(uint32 start, uint32 count)
external view returns (bytes10[] memory) {
if (tilesBought.length == 0)
return new bytes10[](0);
uint32 _start = $(MIN(start, uint32(tilesBought.length) - 1));
uint32 _count = $(MIN(count, uint32(tilesBought.length) - _start));
bytes10[] memory sl... | 6,411,128 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
279,
2788,
434,
326,
12568,
13809,
9540,
526,
18,
632,
891,
787,
1021,
787,
770,
18,
632,
891,
1056,
1021,
4207,
1300,
434,
2186,
358,
327,
18,
632,
2463,
432,
2788,
434,
326,
1256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3181,
1449,
13809,
9540,
5959,
12,
11890,
1578,
787,
16,
2254,
1578,
1056,
13,
203,
1082,
202,
9375,
1476,
1135,
261,
3890,
2163,
8526,
3778,
13,
288,
203,
203,
202,
202,
430,
261,
28366,
13809,
9540,
18,
2469,
422,
374... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// copied from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC721/ERC721.sol
// and merged with: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC721/extensions/ERC721Enumerable.sol
imp... | * @dev Returns whether `spender` is allowed to manage `tokenId`. Requirements: - `tokenId` must exist./ | function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = EvaTurtleNFTv2.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isAp... | 13,917,020 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
2856,
1375,
87,
1302,
264,
68,
353,
2935,
358,
10680,
1375,
2316,
548,
8338,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
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,
389,
291,
31639,
1162,
5541,
12,
2867,
17571,
264,
16,
2254,
5034,
1147,
548,
13,
2713,
1476,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
654,
39,
27,
5340,
30,
3726,
843,
3... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and us... | * TODO Might require explicit conversion of bytes32[] to address[]. Might require iteration./ | function getValues(AddressSet storage set_)
internal
view
returns (address[] memory)
{
address[] memory addressArray;
for (
uint256 iteration_ = 0;
_length(set_._inner) >= iteration_;
iteration_++
) {
addressArray[iteration_] = at(set_, iteration_);
}
return... | 234,351 | [
1,
4625,
348,
7953,
560,
30,
380,
2660,
490,
750,
2583,
5515,
4105,
434,
1731,
1578,
8526,
358,
1758,
63,
8009,
225,
490,
750,
2583,
6532,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
13500,
12,
1887,
694,
2502,
444,
67,
13,
203,
565,
2713,
203,
565,
1476,
203,
565,
1135,
261,
2867,
8526,
3778,
13,
203,
225,
288,
203,
565,
1758,
8526,
3778,
1758,
1076,
31,
203,
203,
565,
364,
261,
203,
1377,
2254,
... |
./partial_match/1/0x7d0Ec34882E106B2A4865938aAF04d065c31C5A7/sources/ObamaPhone.sol | 10000 is Total Supply ; Rest 18 Zeros are Decimals
| maxSupply = 100000000000000000000000; | 2,584,940 | [
1,
4625,
348,
7953,
560,
30,
225,
12619,
353,
10710,
3425,
1283,
274,
6320,
6549,
2285,
4345,
854,
3416,
11366,
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,... | [
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,
3639,
943,
3088,
1283,
282,
273,
2130,
12648,
12648,
11706,
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... |
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previ... | * @dev compare two compressed ticket option and return bool resuts/ | function compareOptionsResult_(uint256 optionData, uint256 resultData, QIU3Ddatasets.TicketEventBoolReturns memory _eventReturns_)
private pure returns(QIU3Ddatasets.TicketEventBoolReturns)
{
_eventReturns_.fullMatch = (optionData % 10 == resultData % 10);
_eventReturns_.totalGoal = ((o... | 1,813,164 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3400,
2795,
8968,
9322,
1456,
471,
327,
1426,
400,
12940,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3400,
1320,
1253,
67,
12,
11890,
5034,
1456,
751,
16,
2254,
5034,
563,
751,
16,
2238,
45,
57,
23,
40,
21125,
18,
13614,
1133,
7464,
1356,
3778,
389,
2575,
1356,
67,
13,
7010,
3639,
3238,
16618,
1135,
12,
53,
45,
57,
... |
pragma solidity ^0.4.21;
contract EIP20Interface {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically creates a getter function for the totalSupply.
This is moved to t... | Set the name for display purposes
| name = "BUSINESSCOIN"; | 6,680,728 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
508,
364,
2562,
13694,
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,
508,
273,
315,
3000,
55,
3740,
1260,
3865,
706,
14432,
4766,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/3/0x7A772f6b56154f53516B7D5Fbb10A385e0C09a0A/sources/browser/C2.sol | Ensure transparency by hardcoding limit beyond which fees can never be added | function setParams(uint newBasisPoints, uint newMaxFee) public onlyOwner {
require(newBasisPoints < 20);
require(newMaxFee < 50);
basisPointsRate = newBasisPoints;
maximumFee = newMaxFee.mul(10**decimals);
emit Params(basisPointsRate, maximumFee);
}
| 8,150,862 | [
1,
4625,
348,
7953,
560,
30,
225,
7693,
27472,
635,
7877,
2014,
1800,
17940,
1492,
1656,
281,
848,
5903,
506,
3096,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31705,
12,
11890,
394,
11494,
291,
5636,
16,
2254,
394,
2747,
14667,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
2704,
11494,
291,
5636,
411,
4200,
1769,
203,
3639,
2583,
12,
2704,
2747,
14667,
411,
6437,
1769,
203,
... |
//! The Secret Store document key shadow retrieval service contract.
//!
//! Copyright 2017 Svyatoslav Nikolsky, Parity Technologies Ltd.
//!
//! Licensed under the Apache License, Version 2.0 (the "License");
//! you may not use this file except in compliance with the License.
//! You may obtain a copy of the License ... | not confirmed (yet)
| if (commonResponseSupport == ResponseSupport.Unconfirmed) { | 1,000,737 | [
1,
4625,
348,
7953,
560,
30,
225,
486,
19979,
261,
24404,
13,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
430,
261,
6054,
1064,
6289,
422,
2306,
6289,
18,
984,
21606,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.5.0;
import "./interfaces/ITokensFactory.sol";
import "./interfaces/ITokenStrategy.sol";
import "./interfaces/ITFStorage.sol";
import "./TokensFactoryMetadata.sol";
import "../symbol-registry/interfaces/ISymbolRegistry.sol";
import "../../common/libraries/BytesHelper.sol";
import "../../request-veri... | * @notice This function loads new strategy to the tokens factory @param tokenStrategy Address of the strategy contract/ | function addTokenStrategy(address tokenStrategy)
public
verifyPermission(msg.sig, msg.sender)
{
bytes32 standard = ITokenStrategy(tokenStrategy).getTokenStandard();
require(standard != bytes32(""), "Invalid tokens strategy.");
require(
TFStorage().getStandard... | 1,764,186 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1220,
445,
6277,
394,
6252,
358,
326,
2430,
3272,
632,
891,
1147,
4525,
5267,
434,
326,
6252,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
1345,
4525,
12,
2867,
1147,
4525,
13,
203,
3639,
1071,
203,
3639,
3929,
5041,
12,
3576,
18,
7340,
16,
1234,
18,
15330,
13,
203,
565,
288,
203,
3639,
1731,
1578,
4529,
273,
467,
1345,
4525,
12,
2316,
4525,
2934,
5... |
pragma solidity ^0.5.16;
import "./KToken.sol";
import "./KineOracleInterface.sol";
/**
Copyright 2020 Compound Labs, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the ab... | * @notice Percentage of initial punishment when a redemption occur/ | uint public redemptionInitialPunishmentMantissa;
| 1,801,997 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
21198,
410,
434,
2172,
293,
318,
1468,
475,
1347,
279,
283,
19117,
375,
3334,
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,
2254,
1071,
283,
19117,
375,
4435,
52,
318,
1468,
475,
49,
970,
21269,
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,... |
pragma solidity ^0.4.23;
import "./Geometry.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
/// @title EthPlot
/// @author Space Dust LLC (https://spacedust.io)
/// @notice This contract represents ownership of virtual "plots" of a gri... | This is the maximum area of a single purchase block. This needs to be limited for the algorithm which figures out payment to function | uint256 constant private MAXIMUM_PURCHASE_AREA = 1000;
| 5,548,390 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
326,
4207,
5091,
434,
279,
2202,
23701,
1203,
18,
1220,
4260,
358,
506,
13594,
364,
326,
4886,
1492,
4291,
1823,
596,
5184,
358,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
5381,
3238,
4552,
18605,
67,
52,
1099,
1792,
4429,
67,
20933,
273,
4336,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/* solium-disable security/no-block-members */
pragma solidity ^0.4.23;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) pu... | * @dev Creates a vesting contract that vests its balance of any ERC20 token to the _beneficiary, gradually in a linear fashion until _start + _duration. By then all of the balance will have vested. @param _beneficiary address of the beneficiary to whom vested tokens are transferred @param _cliff duration in seconds of ... | {
require(_beneficiary != address(0));
require(_cliff <= _duration);
beneficiary = _beneficiary;
revocable = _revocable;
duration = _duration;
cliff = _start.add(_cliff);
start = _start;
}
| 11,695,054 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
279,
331,
10100,
6835,
716,
331,
25563,
2097,
11013,
434,
1281,
4232,
39,
3462,
1147,
358,
326,
389,
70,
4009,
74,
14463,
814,
16,
3087,
2544,
1230,
316,
279,
9103,
30957,
3180,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
5411,
2583,
24899,
70,
4009,
74,
14463,
814,
480,
1758,
12,
20,
10019,
203,
5411,
2583,
24899,
830,
3048,
1648,
389,
8760,
1769,
203,
203,
5411,
27641,
74,
14463,
814,
273,
389,
70,
4009,
74,
14463,
814,
31,
203,
... |
pragma solidity 0.4.22;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
functi... | * @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _amount uint256 the amount of tokens to be transferred/ | function transferFrom(address _from, address _to, uint256 _amount) public returns (bool success) {
require(_to != address(0));
require(balances[_from] >= _amount);
require(allowed[_from][msg.sender] >= _amount);
require(_amount > 0 && balances[_to].add(_amount) > balances[_to]);
balances[_from] =... | 15,306,271 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
2430,
628,
1245,
1758,
358,
4042,
632,
891,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
632,
891,
389,
869,
1758,
1021,
1758,
1492,
1846,
2545,
358,
7412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
565,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
565,
2583,
12,
70,
26488,
63,
67,
... |
./full_match/1/0x587ae8C4D0455c61A4bb3ae280ACb304C12910EC/sources/SDA.optimized.flattened.sol | @dev Whether the presale slot has been used. One slot per address. IMPORTANT: Make sure to change this to the correct address before publishing! Gen 0 mainnet address: 0x4e2781e3aD94b2DfcF34c51De0D8e9358c69F296 | contract SoraDarkAge is ERC721Enumerable, Ownable, ReentrancyGuard {
using Strings for uint;
uint public constant MAX_TOKENS = 8888;
address public constant GENESIS_BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD;
uint public saleState;
mapping(uint => string) public tokenName... | 2,931,599 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
17403,
326,
4075,
5349,
4694,
711,
2118,
1399,
18,
6942,
4694,
1534,
1758,
18,
21840,
6856,
30,
4344,
3071,
358,
2549,
333,
358,
326,
3434,
1758,
1865,
23636,
5,
10938,
374,
2774,
2758,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
10610,
40,
1313,
9692,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
1450,
8139,
364,
2254,
31,
203,
377,
203,
203,
203,
203,
565,
2254,
1071,
5381,
4552,
67,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/access/AccessControlEnumerable.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableS... | * @dev Get Token Total Rewards of a User/ | function getTokenTotalRewards(address user, uint256 tokenId)
external
view
returns (uint256)
{
return
userHarvestedTokens[user][tokenId] + getTokenRewards(user, tokenId);
}
| 5,527,731 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
3155,
10710,
534,
359,
14727,
434,
279,
2177,
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,
9162,
5269,
17631,
14727,
12,
2867,
729,
16,
2254,
5034,
1147,
548,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
729,
44,
297,
90,
3149,
5157,
... |
./full_match/80001/0x0e09008f63e4A0ec8e2dE9785Ea857c77B0c7CE3/sources/project:/contracts/MarketplaceAssets.sol | * @dev Required interface of an ERC721 compliant contract./ | interface IERC721 is IERC165 {
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
event Approval(
address indexed owner,
address indexed approved,
uint256 indexed tokenId
);
event ApprovalForAll(
address inde... | 870,918 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10647,
1560,
434,
392,
4232,
39,
27,
5340,
24820,
6835,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
353,
467,
654,
39,
28275,
288,
203,
565,
871,
12279,
12,
203,
3639,
1758,
8808,
628,
16,
203,
3639,
1758,
8808,
358,
16,
203,
3639,
2254,
5034,
8808,
1147,
548,
203,
565,
11272,
203,
203,
565,
871,... |
pragma solidity 0.5.10;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
/**
* @title Commit-Reveal Voting logic for use/adaptation in commit-reveal voting contracts
* @author TruSet
* @dev The functions that change state are all internal, so to make use of this logic
* this contract must be subclasse... | * @dev Closes the commit period, or reverts if it is not currently open. @param _pollID Bytes32 identifier associated with target poll/ | function _haltCommitPeriod(bytes32 _pollID) internal
{
require(commitPeriodActive(_pollID), "Commit period must be active");
Poll storage p = pollMap[_pollID];
p.commitsHaltedAt = block.timestamp;
emit CommitPeriodHalted(_pollID, msg.sender, block.timestamp);
}
| 1,798,972 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22442,
2420,
326,
3294,
3879,
16,
578,
15226,
87,
309,
518,
353,
486,
4551,
1696,
18,
632,
891,
389,
13835,
734,
5985,
1578,
2756,
3627,
598,
1018,
7672,
19,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
76,
2390,
5580,
5027,
12,
3890,
1578,
389,
13835,
734,
13,
2713,
7010,
565,
288,
203,
3639,
2583,
12,
7371,
5027,
3896,
24899,
13835,
734,
3631,
315,
5580,
3879,
1297,
506,
2695,
8863,
203,
3639,
19160,
2502,
293,
... |
./partial_match/1/0xD1E5b0FF1287aA9f9A268759062E4Ab08b9Dacbe/sources/Registry.sol | * @title Registry additional functions so other trusted contracts to interact with the tokens./ Optional mapping for token URIs Mapping from token ID to resolver address uint256(keccak256(abi.encodePacked(uint256(0x0), keccak256(abi.encodePacked("crypto"))))) | contract Registry is IRegistry, ControllerRole, ERC721Burnable {
mapping(uint256 => string) internal _tokenURIs;
string internal _prefix;
mapping (uint256 => address) internal _tokenResolvers;
uint256 private constant _CRYPTO_HASH =
0x0f4a10a4f46c288cea365fcf45cccf0e9d901b945b9829ccdb54c10dc... | 3,642,605 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
5438,
3312,
4186,
1427,
1308,
13179,
20092,
358,
16592,
598,
326,
2430,
18,
19,
4055,
2874,
364,
1147,
24565,
9408,
628,
1147,
1599,
358,
5039,
1758,
2254,
5034,
12,
79,
24410,
581,
5034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5438,
353,
467,
4243,
16,
6629,
2996,
16,
4232,
39,
27,
5340,
38,
321,
429,
288,
203,
203,
565,
2874,
12,
11890,
5034,
516,
533,
13,
2713,
389,
2316,
1099,
2520,
31,
203,
203,
565,
533,
2713,
389,
3239,
31,
203,
203,
5... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "contracts/protocol/futures/HybridFutureVault.sol";
import "contracts/interfaces/platforms/IsPSPToken.sol";
/**
* @title Contract for Paraswap Future
* @notice Handles the future mechanisms for sPSP
*/
contract ParaswapFutureVault is HybridFutureV... | * @notice Update the state of the user and mint claimable pt @param _user user adress/ | function updateUserState(address _user) public {
require(_user != address(0) , "ERR: Address can't be zero");
uint256 currentPeriodIndex = getCurrentPeriodIndex();
uint256 lastPeriodClaimedOfUser = lastPeriodClaimed[_user];
if (lastPeriodClaimedOfUser < currentPeriodIndex && lastPeri... | 1,550,100 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
326,
919,
434,
326,
729,
471,
312,
474,
7516,
429,
5818,
632,
891,
389,
1355,
729,
1261,
663,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
28213,
1119,
12,
2867,
389,
1355,
13,
1071,
288,
203,
3639,
2583,
24899,
1355,
480,
1758,
12,
20,
13,
269,
315,
9712,
30,
5267,
848,
1404,
506,
3634,
8863,
203,
3639,
2254,
5034,
783,
5027,
1016,
273,
5175,
5027,
1016,
... |
pragma solidity 0.4.22;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pu... | Add value to recipient
| balances[_to] = balances[_to].add(_value); | 73,351 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
460,
358,
8027,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
324,
26488,
63,
67,
869,
65,
273,
324,
26488,
63,
67,
869,
8009,
1289,
24899,
1132,
1769,
9079,
2,
-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-03-22
*/
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// File: contracts/aux/compression/ZeroDecompressor.sol
// Copyright 2017 Loopring Technology Limited.
/// @title ZeroDecompressor
/// @author Brecht Dev... | Process transactions | int lastBlockIdx = -1;
| 7,993,690 | [
1,
4625,
348,
7953,
560,
30,
225,
4389,
8938,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
509,
1142,
1768,
4223,
273,
300,
21,
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,
-1... |
./full_match/80001/0x73B720d949727C6BB702bBda1cF339EcdbD6CFFa/sources/contracts/ERC20InvictusFund.sol | Adds liquidity to the contract, allowing anyone to explicitly deposit stable coin.test if contract address exists | function addLiquidity(uint256 amount, string memory ticker) external {
require(address(currencies[ticker].contractAddress) != address(0), "ticker not supported unsupported");
ERC20Upgradeable erc20 = ERC20Upgradeable(currencies[ticker].contractAddress);
erc20.transferFrom(msg.sender... | 5,578,613 | [
1,
4625,
348,
7953,
560,
30,
225,
15605,
4501,
372,
24237,
358,
326,
6835,
16,
15632,
1281,
476,
358,
8122,
443,
1724,
14114,
13170,
18,
3813,
309,
6835,
1758,
1704,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
12,
11890,
5034,
3844,
16,
533,
3778,
14063,
13,
3903,
288,
203,
3639,
2583,
12,
2867,
12,
1397,
14695,
63,
88,
5448,
8009,
16351,
1887,
13,
480,
1758,
12,
20,
3631,
315,
88,
5448,
486,
3260,
13... |
/**
*Submitted for verification at Etherscan.io on 2021-05-21
*/
pragma solidity ^0.5.10;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address privat... | File: contracts\Token.soltruffle-flattener Token.sol | contract Blocks is ERC20Frozenable, ERC20Detailed {
constructor()
ERC20Detailed("VELOCITY TOKEN", "VELO", 18)
public {
uint256 supply = 10000000000;
uint256 initialSupply = supply * uint(10) ** decimals();
_mint(msg.sender, initialSupply);
}
} | 10,621,565 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
64,
1345,
18,
18281,
313,
10148,
17,
2242,
4558,
708,
3155,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
22713,
353,
4232,
39,
3462,
42,
303,
94,
7589,
16,
4232,
39,
3462,
40,
6372,
288,
203,
203,
565,
3885,
1435,
203,
565,
4232,
39,
3462,
40,
6372,
2932,
24397,
39,
4107,
14275,
3113,
315,
24397,
3113,
6549,
13,
203,
565,
1... |
pragma solidity ^0.4.18;
/**
* @title Owned contract with safe ownership pass.
*
* Note: all the non constant functions return false instead of throwing in case if state change
* didn't happen yet.
*/
contract Owned {
/**
* Contract owner address
*/
address public contractOwner;
... | @notice Returns asset balance for a particular holder id. @param _holderId holder id. @param _symbol asset symbol. @return holder balance. | function _balanceOf(uint _holderId, bytes32 _symbol) public view returns (uint) {
return assets[_symbol].wallets[_holderId].balance;
}
| 5,370,195 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
3310,
11013,
364,
279,
6826,
10438,
612,
18,
632,
891,
389,
4505,
548,
10438,
612,
18,
632,
891,
389,
7175,
3310,
3273,
18,
632,
2463,
10438,
11013,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
12296,
951,
12,
11890,
389,
4505,
548,
16,
1731,
1578,
389,
7175,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
327,
7176,
63,
67,
7175,
8009,
8019,
2413,
63,
67,
4505,
548,
8009,
12296,
31,
203,
565,
289... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.9.0;
contract Pool {
//----------------------------------
// Type definitions
//----------------------------------
enum PoolStatus {initialising,addingmembers,readytorun,running,concluded}
//----------------------------------
// Da... | Asset name to be used when the contributor
| stakingAsset.Name = "bnb"; | 7,286,077 | [
1,
4625,
348,
7953,
560,
30,
225,
10494,
508,
358,
506,
1399,
1347,
326,
31123,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
384,
6159,
6672,
18,
461,
273,
315,
70,
6423,
14432,
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,
-1... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
enum Directive {
CREATE_VALIDATOR, // unused
EDIT_VALIDATOR, // unused
DELEGATE,
UNDELEGATE,
COLLECT_REWARDS
}
abstract contract StakingPrecompilesSelectors {
function Delegate(address delegatorAddress,
address validatorAdd... | we estimate a gas consumption of 25k per precompile | function delegate(address validatorAddress, uint256 amount) public returns (uint256 result) {
bytes memory encodedInput = abi.encodeWithSelector(StakingPrecompilesSelectors.Delegate.selector,
address(this),
validatorAddress,
... | 6,435,165 | [
1,
4625,
348,
7953,
560,
30,
225,
732,
11108,
279,
16189,
24550,
434,
6969,
79,
1534,
675,
11100,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7152,
12,
2867,
4213,
1887,
16,
2254,
5034,
3844,
13,
1071,
1135,
261,
11890,
5034,
563,
13,
288,
203,
565,
1731,
3778,
3749,
1210,
273,
24126,
18,
3015,
1190,
4320,
12,
510,
6159,
1386,
2919,
1449,
19277,
18,
9586,
18,... |
pragma solidity =0.6.6;
import '@sphynxswap/swap-core/contracts/interfaces/ISphynxFactory.sol';
import '@uniswap/lib/contracts/libraries/TransferHelper.sol';
import './interfaces/ISphynxRouter.sol';
import './libraries/SphynxLibrary.sol';
import './libraries/SafeMath.sol';
import './interfaces/IERC20.sol';
import './... | refund dust eth, if any | function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external virtual override payable ensure(deadline) returns (uint amountToken, uint amountETH, uint liquidity) {
(amountTok... | 11,688,252 | [
1,
4625,
348,
7953,
560,
30,
225,
16255,
302,
641,
13750,
16,
309,
1281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
48,
18988,
24237,
1584,
44,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
2254,
3844,
1345,
25683,
16,
203,
3639,
2254,
3844,
1345,
2930,
16,
203,
3639,
2254,
3844,
1584,
44,
2930,
16,
203,
3639,
1758,
358,
16,
203,
... |
./partial_match/1/0xA7641acBc1E85A7eD70ea7bCFFB91afb12AD0c54/sources/PendleStrategy.sol | ========== MUTATIVE FUNCTIONS ========== */ @notice function to withdraw the lpt token from the locker @param _token LPT token to claim the reward @param _amount amount to withdraw @param _user user that called the withdraw on vault | function withdraw(address _token, uint256 _amount, address _user) external {
if (!vaults[msg.sender]) revert VAULT_NOT_APPROVED();
uint256 _before = IERC20(_token).balanceOf(LOCKER);
(bool success,) = ILocker(LOCKER).execute(
_token, 0, abi.encodeWithSignature("transfer(address,... | 2,836,752 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
490,
1693,
12992,
13690,
55,
422,
1432,
1195,
632,
20392,
445,
358,
598,
9446,
326,
328,
337,
1147,
628,
326,
28152,
632,
891,
389,
2316,
511,
1856,
1147,
358,
7516,
326,
19890,
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,
0,
0... | [
1,
565,
445,
598,
9446,
12,
2867,
389,
2316,
16,
2254,
5034,
389,
8949,
16,
1758,
389,
1355,
13,
3903,
288,
203,
3639,
309,
16051,
26983,
87,
63,
3576,
18,
15330,
5717,
15226,
776,
37,
2274,
67,
4400,
67,
2203,
3373,
12135,
5621,
... |
./partial_match/4/0x85b07d7867c6D28F552D924e17a189CA420184F2/sources/TestToken.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and a fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Constructor -... | contract TestToken is ERC20Interface, Owned {
using SafeMath for uint;
string public symbol;
string public name;
uint8 public decimals;
uint _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol =... | 8,754,079 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
279,
5499,
14467,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
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,
16351,
7766,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
... |
./full_match/3/0xf2Ef7F188fBBea91156f15452a38d939B8B72aA7/sources/contracts/ECC.sol | @dev Modular euclidean inverse of a number (mod p). @param _x The number @param _pp The modulus @return q such that x*q = 1 (mod _pp) | function invMod(uint256 _x, uint256 _pp) public pure returns (uint256) {
require(_x != 0 && _x != _pp && _pp != 0, "Invalid number");
uint256 q = 0;
uint256 newT = 1;
uint256 r = _pp;
uint256 t;
while (_x != 0) {
t = r / _x;
(q, newT) = (newT, addmod(q, (_pp - mulmod(t, newT, _pp))... | 8,176,303 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3431,
2490,
425,
22392,
8322,
434,
279,
1300,
261,
1711,
293,
2934,
632,
891,
389,
92,
1021,
1300,
632,
891,
389,
11858,
1021,
24770,
632,
2463,
1043,
4123,
716,
619,
14,
85,
273,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2198,
1739,
12,
11890,
5034,
389,
92,
16,
2254,
5034,
389,
11858,
13,
1071,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2583,
24899,
92,
480,
374,
597,
389,
92,
480,
389,
11858,
597,
389,
11858,
480,
374,
16,
31... |
./full_match/5/0x1f6Aa1B1AD2070a901644471eB931325b7608535/sources/contracts/smart-wallet/non-upgradeable/Account.sol | @notice Registers a signer in the factory. | function _setupRole(bytes32 role, address account) internal virtual override {
super._setupRole(role, account);
if (role == SIGNER_ROLE) {
AccountFactory(factory).addSigner(account);
}
}
| 11,615,192 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2526,
6045,
279,
10363,
316,
326,
3272,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8401,
2996,
12,
3890,
1578,
2478,
16,
1758,
2236,
13,
2713,
5024,
3849,
288,
203,
3639,
2240,
6315,
8401,
2996,
12,
4615,
16,
2236,
1769,
203,
203,
3639,
309,
261,
4615,
422,
12057,
654,
67,
16256,
13,
288,
203,
... |
./full_match/1/0xfFC91F7088BF40F0419B451fB9D85718D8903628/sources/Synthetix.sol | * @title Synthetix ERC20 contract. @notice The Synthetix contracts not only facilitates transfers, exchanges, and tracks balances, but it also computes the quantity of fees each synthetix holder is entitled to./ ========== STATE VARIABLES ========== Available Synths which can be used with the system ========== CONSTRUC... | contract Synthetix is ExternStateToken {
Synth[] public availableSynths;
mapping(bytes4 => Synth) public synths;
IFeePool public feePool;
ISynthetixEscrow public escrow;
ISynthetixEscrow public rewardEscrow;
ExchangeRates public exchangeRates;
SynthetixState public synthetixState;
Sup... | 9,722,158 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
16091,
451,
278,
697,
4232,
39,
3462,
6835,
18,
632,
20392,
1021,
16091,
451,
278,
697,
20092,
486,
1338,
5853,
330,
305,
815,
29375,
16,
431,
6329,
16,
471,
13933,
324,
26488,
16,
1496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
16091,
451,
278,
697,
353,
1312,
798,
1119,
1345,
288,
203,
203,
203,
565,
16091,
451,
8526,
1071,
2319,
10503,
451,
87,
31,
203,
565,
2874,
12,
3890,
24,
516,
16091,
451,
13,
1071,
6194,
451,
87,
31,
203,
203,
565,
1108... |
./full_match/1/0x2c0fA05281730EFd3ef71172d8992500B36b56eA/sources/contracts/SiloFactory.sol | @inheritdoc ISiloFactory We don't perform a ping to the repository because this is meant to be called in its constructor | function initRepository(address _repository) external {
if (siloRepository != address(0)) revert RepositoryAlreadySet();
siloRepository = _repository;
emit InitSiloRepository();
}
| 3,215,097 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
4437,
31703,
1733,
1660,
2727,
1404,
3073,
279,
10087,
358,
326,
3352,
2724,
333,
353,
20348,
358,
506,
2566,
316,
2097,
3885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1208,
3305,
12,
2867,
389,
9071,
13,
3903,
288,
203,
3639,
309,
261,
25119,
83,
3305,
480,
1758,
12,
20,
3719,
15226,
6281,
9430,
694,
5621,
203,
203,
3639,
17714,
83,
3305,
273,
389,
9071,
31,
203,
3639,
3626,
4378,
... |
pragma solidity ^ 0.4.16;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint25... | if ether is sent to this address, send it back. | function () {
revert();
}
string public constant symbol = 'BBXC';
uint8 public constant decimals = 18;
| 12,906,716 | [
1,
4625,
348,
7953,
560,
30,
309,
225,
2437,
353,
3271,
358,
333,
1758,
16,
1366,
518,
1473,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1832,
288,
203,
565,
15226,
5621,
203,
225,
289,
203,
203,
225,
533,
1071,
5381,
3273,
273,
296,
9676,
60,
39,
13506,
203,
225,
2254,
28,
1071,
5381,
15105,
273,
6549,
31,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-10... |
./full_match/43113/0x30E9E18E57c952bD3efAA7Cb68F5Dca9dbDd3514/sources/contracts/LiquidityLocker.sol | @dev Get Hon Rewards Zero deposit to get reward Send the reward | function getRewards(uint256 _pid) public {
UserInfo storage user = userInfo[_pid][msg.sender];
PoolInfo storage pool = pools[_pid];
uint256 pending = lockedFarm.pendingHon(_pid, address(this));
totalReward += pending;
lockedFarm.deposit(_pid, 0);
require(rewardToken.balanceOf(address(this)) >... | 7,144,664 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
670,
265,
534,
359,
14727,
12744,
443,
1724,
358,
336,
19890,
2479,
326,
19890,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4170,
359,
14727,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
565,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
18,
15330,
15533,
203,
565,
8828,
966,
2502,
2845,
273,
16000,
63,
67,
6610,
15533,
203,
565... |
pragma solidity ^0.4.24;
import "./MarketLib.sol";
import "../eip777/ERC777Token.sol";
import "./Market.sol";
import "../../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../../node_modules/openzeppelin-solidity/contracts/token/ERC721/ERC721.sol";
contract StandardTokenizedNftMarket is Marke... | @dev Reference to contract tracking NFT ownership @dev Reference to contract tracking token ownership and delegate constructor | constructor(address _nftContract, address _tokenContract, uint256 _ownersCut) Market(_ownersCut) public {
setNFTContract(_nftContract);
setTokenContract(_tokenContract);
}
| 2,486,543 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6268,
358,
6835,
11093,
423,
4464,
23178,
632,
5206,
6268,
358,
6835,
11093,
1147,
23178,
471,
7152,
3885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
12,
2867,
389,
82,
1222,
8924,
16,
1758,
389,
2316,
8924,
16,
2254,
5034,
389,
995,
414,
15812,
13,
6622,
278,
24899,
995,
414,
15812,
13,
1071,
288,
203,
565,
444,
50,
4464,
8924,
24899,
82,
1222,
8924,
1769,
203,
5... |
pragma solidity 0.5.15;
library Addresses {
function isContract(address account) internal view returns (bool) {
uint256 size;
// solium-disable-next-line security/no-inline-assembly
assembly {
size := extcodesize(account)
}
return size > 0;
}
f... | Ensure global timestamp has not expired. solium-disable-next-line security/no-block-members | {
require(
publicInput.length >= PUB_IN_TRANSACTIONS_DATA_OFFSET,
"publicInput does not contain all required fields.");
require(
publicInput[PUB_IN_FINAL_VAULT_ROOT_OFFSET] < K_MODULUS,
"New vault root >= PRIME.");
require(
... | 7,530,301 | [
1,
4625,
348,
7953,
560,
30,
225,
7693,
2552,
2858,
711,
486,
7708,
18,
3704,
5077,
17,
8394,
17,
4285,
17,
1369,
4373,
19,
2135,
17,
2629,
17,
7640,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
203,
3639,
2583,
12,
203,
203,
5411,
1071,
1210,
18,
2469,
1545,
23295,
67,
706,
67,
22364,
55,
67,
4883,
67,
11271,
16,
203,
203,
5411,
315,
482,
1210,
1552,
486,
912,
777,
1931,
1466,
1199,
1769,
203,
203,
3639... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@aave/protocol-v2/contracts/interfaces/ILendingPool.sol";
import "@aave/protocol-v2/contracts/interfaces/ILendingPoolAddressesProvider.sol";
contract CreatorCashout {
ILendingPoolAddressesProvi... | Actually deposit into the lendingPool on behalf of the creator | function cashout(uint256 amount, address to) external {
lendingPool.withdraw(address(usdc), amount, to);
emit CashoutCompleted(true);
}
| 935,151 | [
1,
4625,
348,
7953,
560,
30,
225,
4603,
3452,
443,
1724,
1368,
326,
328,
2846,
2864,
603,
12433,
6186,
434,
326,
11784,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
276,
961,
659,
12,
11890,
5034,
3844,
16,
1758,
358,
13,
3903,
288,
203,
3639,
328,
2846,
2864,
18,
1918,
9446,
12,
2867,
12,
407,
7201,
3631,
3844,
16,
358,
1769,
203,
203,
3639,
3626,
385,
961,
659,
9556,
12,
3767,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 ... | * @dev Transfer token for a specified address when not paused @param _to The address to transfer to. @param _value The amount to be transferred./ | function transfer(address _to, uint256 _value) whenNotPaused returns (bool) {
require(_to != address(0));
return super.transfer(_to, _value);
}
| 114,535 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
1147,
364,
279,
1269,
1758,
1347,
486,
17781,
632,
891,
389,
869,
1021,
1758,
358,
7412,
358,
18,
632,
891,
389,
1132,
1021,
3844,
358,
506,
906,
4193,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
565,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
565,
327,
2240,
18,
13866,
24899,
869,
16,
389,
1132,
17... |
./partial_match/1/0x1D18259f2a88ebEE3a87A8D3fEB03b41b16255F3/sources/BONER.sol | set as operations wallet
| operationsWallet = address(0xBeD521cD800de0857D660c330aD30267eec261d8); | 4,214,376 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
5295,
9230,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
202,
17542,
16936,
273,
1758,
12,
20,
92,
1919,
40,
25,
5340,
71,
40,
17374,
323,
6840,
10321,
40,
26,
4848,
71,
3707,
20,
69,
40,
23,
3103,
9599,
73,
557,
5558,
21,
72,
28,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x2534b7202B43A5e87cD5CF24b68cc8ef02A73224/sources/Zap.sol | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements: - `to` cannot be the zero address./ gas optimization | function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
assembly {
let slot := mul(mul(0x85774394d, 0x3398bc1d25f112ed), mul(0x997e6e509, 0xf3eae65... | 2,594,394 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8863,
203,
3639,
389,
5771,
1345,
... |
./full_match/5/0x2Cc4c41F15081062992bA37C926d05eD14678E4F/sources/contracts/NeoFundr.sol | / public means this function can be called from the front end also the underscore in front of the name is to indicate that, that paramter is for that function ONLY returns the ID OF THAT SPECIFIC compaign notice we needed memory keyword with all the string creating a new campaign checking to see if the deadline provide... | there are four functions that contains the entire logic of the smarat contracts
function createCampaign(address _owner, string memory _title, string memory _description, uint256 _target,
uint256 _deadline, string memory _image) public returns (uint256) {
Campaign storage campaign = campaigns[numbe... | 7,075,651 | [
1,
4625,
348,
7953,
560,
30,
342,
1071,
4696,
333,
445,
848,
506,
2566,
628,
326,
6641,
679,
2546,
326,
13677,
316,
6641,
434,
326,
508,
353,
358,
10768,
716,
16,
716,
579,
387,
353,
364,
716,
445,
20747,
1135,
326,
1599,
15932,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1915,
854,
12792,
4186,
716,
1914,
326,
7278,
4058,
434,
326,
3029,
297,
270,
20092,
203,
203,
203,
565,
445,
752,
13432,
12,
2867,
389,
8443,
16,
533,
3778,
389,
2649,
16,
533,
3778,
389,
3384,
16,
2254,
5034,
389,
3299,
... |
pragma solidity 0.8.4;
// SPDX-License-Identifier: MIT
import './../interfaces/ICompetition.sol';
import './../interfaces/ICompetitionV2.sol';
import './../interfaces/IToken.sol';
import './CompetitionStorage.sol';
import './CompetitionStorageV2.sol';
import './AccessControlRci.sol';
import './standard/proxy/utils/In... | This is no longer in use. Keeping the function so that the data layout will be the same in ICompetition. staked = _challenges[challengeNumber].submitterInfo[participant].staked; | function getStakedAmountForChallenge(uint32 challengeNumber, address participant)
view external override
returns (uint256 staked)
{
staked = 0;
}
| 1,775,922 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
1158,
7144,
316,
999,
18,
10498,
310,
326,
445,
1427,
716,
326,
501,
3511,
903,
506,
326,
1967,
316,
467,
2945,
278,
608,
18,
3639,
384,
9477,
273,
389,
343,
7862,
2852,
63,
25092,
1854... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
21491,
9477,
6275,
1290,
18359,
12,
11890,
1578,
12948,
1854,
16,
1758,
14188,
13,
203,
565,
1476,
3903,
3849,
203,
565,
1135,
261,
11890,
5034,
384,
9477,
13,
203,
565,
288,
203,
3639,
384,
9477,
273,
374,
31,
203,
565... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// File: contracts/lib/MathUint.sol
// Copyright 2017 Loopring Technology Limited.
/// @title Utility Functions for uint
/// @author Daniel Wang - <daniel@loopring.org>
library MathUint
{
function mul(
uint a... | @dev Returns a new slice containing the same data as the current slice. @param self The slice to copy. @return A new slice containing the same data as `self`./ | function copy(slice memory self) internal pure returns (slice memory) {
return slice(self._len, self._ptr);
}
| 134,351 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
279,
394,
2788,
4191,
326,
1967,
501,
487,
326,
783,
2788,
18,
632,
891,
365,
1021,
2788,
358,
1610,
18,
632,
2463,
432,
394,
2788,
4191,
326,
1967,
501,
487,
1375,
2890,
8338,
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,
565,
445,
1610,
12,
6665,
3778,
365,
13,
2713,
16618,
1135,
261,
6665,
3778,
13,
288,
203,
3639,
327,
2788,
12,
2890,
6315,
1897,
16,
365,
6315,
6723,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.7.5;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/cryptography/ECDSAUpgradeable.sol";
im... | * @dev Event for tracking the Oracles contract initialization. @param rewardsNonce - rewards nonce the contract was initialized with./* @dev Event for tracking oracle rewards votes. @param sender - address of the transaction sender. @param oracle - address of the account which submitted vote. @param nonce - current non... | interface IMerkleDistributor {
event MerkleRootUpdated(
address indexed sender,
bytes32 indexed merkleRoot,
string merkleProofs
);
event PeriodicDistributionAdded(
address indexed from,
address indexed token,
address indexed beneficiary,
uint256 amoun... | 14,888,936 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2587,
364,
11093,
326,
531,
354,
9558,
6835,
10313,
18,
632,
891,
283,
6397,
13611,
300,
283,
6397,
7448,
326,
6835,
1703,
6454,
598,
18,
20308,
632,
5206,
2587,
364,
11093,
20865,
283,
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,
5831,
6246,
264,
15609,
1669,
19293,
288,
203,
565,
871,
31827,
2375,
7381,
12,
203,
3639,
1758,
8808,
5793,
16,
203,
3639,
1731,
1578,
8808,
30235,
2375,
16,
203,
3639,
533,
30235,
20439,
87,
203,
565,
11272,
203,
203,
565,
871,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol";
import... | Last block number that govBrinc token distribution occurs. | uint256 lastRewardBlock;
| 445,576 | [
1,
4625,
348,
7953,
560,
30,
225,
6825,
1203,
1300,
716,
31841,
19114,
9523,
1147,
7006,
9938,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1142,
17631,
1060,
1768,
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,... |
./full_match/4/0x0Cd4aB3C76E1F452d951118c8a3861Ca533cef09/sources/Cryptogotchi.sol | change connected token address | function setTokenAddress(address _tokenAddress) public onlyOwner {
tokenAddress = _tokenAddress;
}
| 816,930 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
5840,
1147,
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,
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,
22629,
1887,
12,
2867,
389,
2316,
1887,
13,
1071,
1338,
5541,
288,
203,
3639,
1147,
1887,
273,
389,
2316,
1887,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0xC9434231534B8fab79d9226e1b443c372A966F65/sources/contracts/bancor/BancorFormula.sol | add x^30 * (33! / 30!)
| res += xi * 0x0000000000000000000000000007fe0; | 649,127 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
619,
66,
5082,
380,
261,
3707,
5,
342,
5196,
24949,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
400,
1011,
14087,
380,
374,
92,
12648,
12648,
12648,
3784,
27,
3030,
20,
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,
-1... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "./interfaces/IERC20Decimals.sol";
import "./balancer-core-v2/lib/math/LogExpMath.sol";
import "./balancer-core-v2/lib/math/FixedPoint.sol";
import "./balancer-core-v2/vault/interfaces/IMinimalSwapInfoPool.sol";
imp... | Set immutable state variables | _vault = vault;
| 106,473 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
11732,
919,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
26983,
273,
9229,
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,
-100,
... |
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original ... | @dev Computes the next gen0 auction starting price, given the average of the past 5 prices + 50%. Sanity check to ensure we don't overflow arithmetic We never auction for less than starting price | function computeNextGen0Price() public view returns (uint256) {
uint256 avePrice = saleAuction.averageGen0SalePrice();
require(avePrice == uint256(uint128(avePrice)));
uint256 nextPrice = avePrice + (avePrice / 2);
if (nextPrice < GEN0_STARTING_PRICE) {
nextPrice = GEN... | 2,460,445 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
14169,
281,
326,
1024,
3157,
20,
279,
4062,
5023,
6205,
16,
864,
225,
326,
8164,
434,
326,
8854,
1381,
19827,
397,
6437,
9,
18,
23123,
866,
358,
3387,
732,
2727,
18642,
5520,
31,
88,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3671,
2134,
7642,
20,
5147,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
279,
537,
5147,
273,
272,
5349,
37,
4062,
18,
15621,
7642,
20,
30746,
5147,
5621,
203,
203,
3639,
2583,
12,
836,
5147... |
./full_match/80001/0x34E21139f0AA2684407FB13Da711f91759D36AA2/sources/contracts/Nitrovest.sol | Transfer ownership of the token Transfer payment to the seller Remove the listing | function buyProperty(uint256 _listingId) external payable {
require(_listingId < listings.length, "Invalid listing ID");
Listing storage listing = listings[_listingId];
require(msg.value >= listing.price, "Insufficient payment");
nftContract.transferFrom(listing.seller, _msgSender()... | 9,437,092 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
23178,
434,
326,
1147,
12279,
5184,
358,
326,
29804,
3581,
326,
11591,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1396,
12,
11890,
5034,
389,
21228,
548,
13,
3903,
8843,
429,
288,
203,
3639,
2583,
24899,
21228,
548,
411,
666,
899,
18,
2469,
16,
315,
1941,
11591,
1599,
8863,
203,
3639,
987,
310,
2502,
11591,
273,
666,
899,
63... |
./full_match/5/0x1f85B789655fB4c3CEB448C2733B6b1e387867E0/sources/project_/contracts/extensions/TokenExtension.sol | * @dev Perform a transfer given a TransferData struct. Only addresses with the token controllers role should be able to invoke this function. @return bool If this contract does not support the transfer requested, it should return false. If the contract does support the transfer but the transfer is impossible, it should... | function _tokenTransfer(TransferData memory tdata) internal returns (bool) {
return IToken(_tokenAddress()).tokenTransfer(tdata);
}
| 11,602,563 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11217,
279,
7412,
864,
279,
12279,
751,
1958,
18,
5098,
6138,
598,
326,
1147,
12403,
2478,
1410,
506,
7752,
358,
4356,
333,
445,
18,
632,
2463,
1426,
971,
333,
6835,
1552,
486,
2865,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
2316,
5912,
12,
5912,
751,
3778,
268,
892,
13,
2713,
1135,
261,
6430,
13,
288,
203,
3639,
327,
467,
1345,
24899,
2316,
1887,
1435,
2934,
2316,
5912,
12,
88,
892,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100... |
./full_match/43114/0xaCF8272DF5d87185A585c07D787192Dd7AA69E82/sources/contracts/AVAX01.sol | * @dev Withdraw Assets To Smart Account. @param erc20 Token Address. @param tokenAmt Token Amount./ | function withdraw(address erc20, uint256 tokenAmt)
public
payable
onlyOwner
{
if (erc20 == 0x0000000000000000000000000000000000000000) {
tokenAmt = tokenAmt == uint256(-1)
? address(this).balance
: tokenAmt;
owner.transfer(t... | 4,586,012 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
26284,
2974,
19656,
6590,
18,
632,
891,
6445,
71,
3462,
3155,
5267,
18,
632,
891,
1147,
31787,
3155,
16811,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
2867,
6445,
71,
3462,
16,
2254,
5034,
1147,
31787,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
309,
261,
12610,
3462,
422,
374,
92,
12648,
12648,
12648,
126... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol";
import "./BaseCollection.sol";
contract DropCollection is BaseCollection {
event Merk... | Sales Parameters Auction Parameters States | contract DropCollection is BaseCollection {
event MerkleRootSet(bytes32 indexed merkleRoot);
event TokenBaseURISet(string indexed tokenBaseURI);
using SafeMathUpgradeable for uint256;
using MerkleProofUpgradeable for bytes32[];
mapping(address => uint256) private _mintCount;
bytes32 private _m... | 6,316,845 | [
1,
4625,
348,
7953,
560,
30,
225,
25996,
7012,
432,
4062,
7012,
29577,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10895,
2532,
353,
3360,
2532,
288,
203,
565,
871,
31827,
2375,
694,
12,
3890,
1578,
8808,
30235,
2375,
1769,
203,
565,
871,
3155,
2171,
3098,
694,
12,
1080,
8808,
1147,
2171,
3098,
1769,
203,
203,
565,
1450,
14060,
10477,
10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upg... | passing in empty variable, no longer used in peak contract | function _mintIbbtc(
address _vault,
address _user,
uint256 _amount
) internal {
uint256 poolId = vaultToPoolId[_vault];
uint256 mintAmount = 0;
bytes32[] memory unused;
if (poolId == 3) {
IERC20(_vault).approve(address(yearnWbtcPeak), _amount);
mintAmount = yearnWbtcPeak.min... | 1,689,536 | [
1,
4625,
348,
7953,
560,
30,
9588,
316,
1008,
2190,
16,
1158,
7144,
1399,
316,
11148,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
81,
474,
45,
9897,
5111,
12,
203,
565,
1758,
389,
26983,
16,
203,
565,
1758,
389,
1355,
16,
203,
565,
2254,
5034,
389,
8949,
203,
225,
262,
2713,
288,
203,
565,
2254,
5034,
2845,
548,
273,
9229,
774,
25136,
63,
... |
// __ __ ____ _ _ _____ ____ _____ _____
// | \/ |/ __ \| \ | | __ \ / __ \_ _| __ \
// | \ / | | | | \| | | | | | | || | | |__) |
// | |\/| | | | | . ` | | | | | | || | | _ /
// | | | | |__| | |\ | |__| | |__| || |_| | \ \
// |_| |_|\____/|_| \_|_____/ \____/_____|_| \_\
... | Optional mapping for token URIs Base URI | contract mondoir is ERC721, ERC721Enumerable, ERC721URIStorage, ERC721Burnable, Ownable {
using Strings for uint256;
mapping (uint256 => string) private _tokenURIs;
string private _baseURIextended;
constructor() ERC721("Mondoir", "MND") {}
function setB... | 13,643,275 | [
1,
4625,
348,
7953,
560,
30,
225,
4055,
2874,
364,
1147,
24565,
3360,
3699,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6835,
312,
1434,
83,
481,
353,
4232,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
3098,
3245,
16,
4232,
39,
27,
5340,
38,
321,
429,
16,
14223,
6914,
288,
203,
540,
203,
3639,
1450,
8139,
364... |
./partial_match/1/0x4b441133e357512E4D970a6fAfcEc77C3f38c590/sources/InstallmentsModel.sol | Now its always greater than config.lentTime
| return _advanceClock(id, uint64(now) - config.lentTime); | 4,187,456 | [
1,
4625,
348,
7953,
560,
30,
225,
4494,
2097,
3712,
6802,
2353,
642,
18,
80,
319,
950,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
389,
361,
5882,
14027,
12,
350,
16,
2254,
1105,
12,
3338,
13,
300,
642,
18,
80,
319,
950,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/4/0xbe80c0fc0F7Ce8209fC6C83aC09625CF6bDB1b59/sources/Tantinople.sol | Withdraw without caring about rewards. EMERGENCY ONLY. | function emergencyWithdraw(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
require(
pool.lock == false ||
(pool.lock && medal.totalSupply() >= halfPeriod)
);
UserInfo storage user = userInfo[_pid][msg.sender];
pool.lpToken.safeTransf... | 8,499,326 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
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,... | [
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,
801,
24530,
1190,
9446,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
2583,
12,
203,
5411,
2845,
18,
739,
422,
629,
747,
203,
7734,
261,
6... |
./full_match/1313161554/0x51e20134b7c11D9e868E0EE227BAbc429CA1c2e8/sources/contracts/facets/bridges/cbridge/im/message/framework/MessageBusAddress.sol | @dev fetch local storage solhint-disable-next-line no-inline-assembly | function getMsgBusAddrStorage() private pure returns (MsgBusAddrStorage storage s) {
bytes32 namespace = MSG_BUS_ADDRESS_NAMESPACE;
assembly {
s.slot := namespace
}
}
| 13,230,154 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2158,
1191,
2502,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2108,
1055,
7086,
3178,
3245,
1435,
3238,
16618,
1135,
261,
3332,
7086,
3178,
3245,
2502,
272,
13,
288,
203,
3639,
1731,
1578,
1981,
273,
13771,
67,
3000,
55,
67,
15140,
67,
11368,
31,
203,
3639,
19931,
288,
203,
5411,
... |
pragma solidity 0.6.12;
abstract contract Context {
function _MSGSENDER728() internal view virtual returns (address payable) { //inject NONSTANDARD NAMING
return msg.sender;
}
function _MSGDATA416() internal view virtual returns (b... | inject NONSTANDARD NAMING
| function _MSGDATA416() internal view virtual returns (bytes memory) { | 1,086,680 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11210,
4883,
24,
2313,
1435,
2713,
1476,
5024,
1135,
261,
3890,
3778,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.23;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
**/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
... | Calculate tokens to sell
| uint256 weiAmount = msg.value; | 328 | [
1,
4625,
348,
7953,
560,
30,
225,
9029,
2430,
358,
357,
80,
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,
732,
77,
6275,
273,
1234,
18,
1132,
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,
-10... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/util... | * @dev Get member interest index @param account Member address @return interestIndex/ | function getInterestIndex(address account) public view override returns (uint256) {
return accountBorrows[account].interestIndex;
}
| 603,363 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
968,
3140,
16513,
770,
225,
632,
891,
2236,
8596,
1758,
225,
632,
2463,
16513,
1016,
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,
445,
336,
29281,
1016,
12,
2867,
2236,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2236,
38,
280,
3870,
63,
4631,
8009,
2761,
395,
1016,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-1... |
/*
⚠⚠⚠ WARNING WARNING WARNING ⚠⚠⚠
This is a TARGET contract - DO NOT CONNECT TO IT DIRECTLY IN YOUR CONTRACTS or DAPPS!
This contract has an associated PROXY that MUST be used for all integrations - this TARGET will be REPLACED in an upcoming Synthetix release!
The proxy can be found by looking up the PROXY propert... | ERC20 Optional Views Views Mutative functions WETH-specific functions. Events | interface IWETH {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint)... | 251,044 | [
1,
4625,
348,
7953,
560,
30,
225,
4232,
39,
3462,
4055,
31117,
31117,
14138,
1535,
4186,
678,
1584,
44,
17,
12524,
4186,
18,
9043,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
59,
1584,
44,
288,
203,
565,
445,
508,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
3273,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
203,
565,
445,
15105,
1435,
3903,
1476,
1135,
261,
118... |
// SPDX-License-Identifier: MIT // licnse
pragma solidity ^0.8.0; // version solidity
import "./ownable.sol"; // para que solo el propietario pueda usar el contrato
import "./safemath.sol"; // para pr... | level = 1, tiempo actual en
| uint id = zombies.push(Zombie(_name, _dna, 1, uint32(block.timestamp + cooldownTime), 0, 0)) - 1 ; | 5,386,147 | [
1,
4625,
348,
7953,
560,
30,
225,
1801,
273,
404,
16,
11374,
351,
1631,
3214,
570,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
4202,
2254,
612,
273,
998,
16659,
606,
18,
6206,
12,
62,
16659,
1385,
24899,
529,
16,
389,
5176,
69,
16,
404,
16,
2254,
1578,
12,
2629,
18,
5508,
397,
27367,
2378,
950,
3631,
374,
16,
374,
3719,
300,
404,
225,
274,
225,
2,
-1... |
./full_match/1/0x693eeA0Cf4671748211fE97d0dE6a33076A89169/sources/browser/YugiToken.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_tot... | 2,937,410 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
203,
3639,
389,
5771,
1345,
... |
./full_match/80001/0x36DC0ae7272556B998a30A8996C62bb966B178c5/sources/src/VCSBT.sol | @notice Overridden for soulbound | function safeTransferFrom(address, address, uint256, bytes memory) public virtual override {
revert Soulbound();
}
| 865,930 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
531,
1107,
2794,
364,
272,
1003,
3653,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4183,
5912,
1265,
12,
2867,
16,
1758,
16,
2254,
5034,
16,
1731,
3778,
13,
1071,
5024,
3849,
288,
203,
3639,
15226,
348,
1003,
3653,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0x75021890197D438CC3929181B2DB9ADc83C4B84B/sources/contracts/IndradexSingleExternalVault.sol | * @dev Set the external balance for the input token./ | function setInputTokenExternalBalance(uint256 newExternalBalance)
external
onlyOwner
{
address inputTokenAddress = address(inputToken);
require(
tokenInternalBalance(inputTokenAddress) + newExternalBalance >=
tokenPendingBalance(inputTokenAddress),
'Vault: new external balance is... | 5,686,516 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
326,
3903,
11013,
364,
326,
810,
1147,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
21687,
1345,
6841,
13937,
12,
11890,
5034,
394,
6841,
13937,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
225,
288,
203,
565,
1758,
810,
1345,
1887,
273,
1758,
12,
2630,
1345,
1769,
203,
565,
2583,
12,
203,
1377,
1147... |
./full_match/44787/0x133e77Aba91A49182C41AD2B7E3e2946D66605fF/sources/contracts/CarbonPathAdmin.sol | * @dev Grant Minter Role to the address Requirements: - the caller must have the `DEFAULT_ADMIN_ROLE`./ | function grantMinter(address account) public {
require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), 'CarbonPathAdmin: must be an admin');
_grantRole(MINTER_ROLE, account);
}
| 13,259,882 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
19689,
490,
2761,
6204,
358,
326,
1758,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
5280,
67,
15468,
67,
16256,
8338,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7936,
49,
2761,
12,
2867,
2236,
13,
1071,
288,
203,
565,
2583,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
296,
39,
11801,
743,
4446,
30,
1297,
506,
392,
3981,
8284,
203,
565,
389... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;
import "./Governable.sol";
import "./hardworkInterface/IRewardPool.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol";
import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol";
import "@pancakeswap/pancake-swap-lib/c... | Transfers the funds from the msg.sender to the pool under normal circumstances, msg.sender is the strategy Note: targetToken could only be FARM or NULL. it is only used to check that the rewardPool is set. this is already the right token Note: Under current structure, this would be FARM. This would pass on the grain b... | function poolNotifyFixedTarget(address _token, uint256 _amount) external {
uint256 remainingAmount = _amount;
if (targetToken == address(0)) {
}
if (_token == eth) {
IBEP20(_token).safeTransferFrom(msg.sender, profitSharingPool, _amount);
if (pancakeswapRoutes[_token][eth].length > 1) ... | 14,097,292 | [
1,
4625,
348,
7953,
560,
30,
225,
2604,
18881,
326,
284,
19156,
628,
326,
1234,
18,
15330,
358,
326,
2845,
3613,
2212,
29951,
2639,
16,
1234,
18,
15330,
353,
326,
6252,
3609,
30,
1018,
1345,
3377,
1338,
506,
478,
26120,
578,
3206,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
2845,
9168,
7505,
2326,
12,
2867,
389,
2316,
16,
2254,
5034,
389,
8949,
13,
3903,
288,
203,
565,
2254,
5034,
4463,
6275,
273,
389,
8949,
31,
203,
565,
309,
261,
3299,
1345,
422,
1758,
12,
20,
3719,
288,
203,
565,
289,... |
./partial_match/4/0x9Ad202817DDCa8ba2e5107B0D1ecAD096fa15cDD/sources/contracts/PPIE.sol | * @title DeFiPie's PPIE Contract @notice PTokens which wrap an EIP-20 underlying @author DeFiPie/ | contract PPIE is ImplementationStorage, PToken, PErc20Interface, PPIEInterface {
function initialize(
address underlying_,
RegistryInterface registry_,
ControllerInterface controller_,
InterestRateModel interestRateModel_,
uint initialExchangeRateMantissa_,
uint initi... | 16,985,745 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1505,
42,
77,
52,
1385,
1807,
453,
24414,
13456,
632,
20392,
453,
5157,
1492,
2193,
392,
512,
2579,
17,
3462,
6808,
632,
4161,
1505,
42,
77,
52,
1385,
19,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
453,
24414,
353,
25379,
3245,
16,
453,
1345,
16,
16628,
1310,
3462,
1358,
16,
453,
24414,
1358,
288,
203,
565,
445,
4046,
12,
203,
3639,
1758,
6808,
67,
16,
203,
3639,
5438,
1358,
4023,
67,
16,
203,
3639,
6629,
1358,
2596,... |
//pragma solidity ^0.3.6;
contract Token {
function balanceOf(address user) constant returns (uint256 balance);
function transfer(address receiver, uint amount) returns(bool);
}
// A Sub crowdfunding contract. Its only purpose is to redirect ether it receives to the
// main crowdfunding contract. This mecanism is u... | How much milli Nxc we much sell for each stage
| uint public perStageNxc; | 7,313,834 | [
1,
4625,
348,
7953,
560,
30,
225,
9017,
9816,
312,
16607,
423,
6511,
732,
9816,
357,
80,
364,
1517,
6009,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
11890,
225,
202,
482,
1534,
8755,
50,
6511,
31,
17311,
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: AGPL-3.0-only
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./Lockable.sol";
/**
* @title A contract to track a whitelist of addresses.
*/
contract AddressWhitelist is Ownable, Lockable {
enum Status { None, In, Out }
mapping(address => Stat... | SPDX-License-Identifier: AGPL-3.0-only A mock oracle used for testing. Exports the voting & oracle interfaces and events that contain no ancillary data. Events, data structures and functions not exported in the base interfaces, used for testing. | abstract contract VotingInterfaceTesting is OracleInterface, VotingInterface, Testable {
using FixedPoint for FixedPoint.Unsigned;
event VoteCommitted(
address indexed voter,
uint256 indexed roundId,
bytes32 indexed identifier,
uint256 time,
bytes ancillaryData
);
... | 591,846 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
432,
43,
6253,
17,
23,
18,
20,
17,
3700,
432,
5416,
20865,
1399,
364,
7769,
18,
1312,
4363,
326,
331,
17128,
473,
20865,
7349,
471,
2641,
716,
912,
1158,
392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
776,
17128,
1358,
22218,
353,
28544,
1358,
16,
776,
17128,
1358,
16,
7766,
429,
288,
203,
565,
1450,
15038,
2148,
364,
15038,
2148,
18,
13290,
31,
203,
203,
565,
871,
27540,
27813,
12,
203,
3639,
1758,
8808,
331,
20005... |
// SPDX-License-Identifier: MIT
pragma solidity =0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts/GSN/Context.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/t... | * @notice Allows dynamic pricing to be turned on / off./ | function setDynamicPricing(bool _dynamicPricing) external onlyGovernance {
dynamicPricing = _dynamicPricing;
}
| 12,841,552 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
25619,
5976,
31765,
358,
506,
21826,
603,
342,
3397,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
9791,
52,
1512,
310,
12,
6430,
389,
14507,
52,
1512,
310,
13,
3903,
1338,
43,
1643,
82,
1359,
288,
203,
565,
5976,
52,
1512,
310,
273,
389,
14507,
52,
1512,
310,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100... |
//Address: 0x9d43c34a050d5c1a865b09993a0d1d04ec4432ab
//Contract name: DaiMaker
//Balance: 0 Ether
//Verification Date: 2/20/2018
//Transacion Count: 3
// CODE STARTS HERE
/*
Read code from https://github.com/onbjerg/dai.how
*/
interface IMaker {
function sai() public view returns (ERC20);
function skr() p... | calculate how much peth we need to enter with | function makeDai(uint256 daiAmount, address cdpOwner, address daiOwner) payable public returns (bytes32 cdpId) {
uint256 inverseAsk = rdiv(msg.value, wmul(maker.gap(), maker.per())) - 1;
uint256 pethAmount = peth.balanceOf(this);
MakeDai(daiOwner, cdpOwner, msg.value, daiAmount, pethAm... | 12,874,180 | [
1,
4625,
348,
7953,
560,
30,
225,
4604,
3661,
9816,
293,
546,
732,
1608,
358,
6103,
598,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1221,
40,
10658,
12,
11890,
5034,
5248,
77,
6275,
16,
1758,
7976,
84,
5541,
16,
1758,
5248,
77,
5541,
13,
8843,
429,
1071,
1135,
261,
3890,
1578,
7976,
84,
548,
13,
288,
203,
203,
3639,
2254,
5034,
8322,
23663,
273,
4... |
./full_match/5/0xd24e6Ff54E08Ac3Bb2A3765b67e07F1670b46Dfa/sources/contracts/ERC20Upgradeable.sol | * @dev Returns true if the denylistee is denylisted, and false otherwise./ | function isDenylisted(address denylistee)
public
view
virtual
returns (bool)
{
return _isBalanceDenylisted(_balances[denylistee]);
}
| 7,057,291 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
638,
309,
326,
17096,
1098,
1340,
353,
17096,
18647,
16,
471,
629,
3541,
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,
... | [
1,
1,
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,
353,
8517,
93,
18647,
12,
2867,
17096,
1098,
1340,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
389,
291,
13937,
8517,
93,
18647,
24899,
70,
26488... |
./full_match/43113/0x498fEE36B656973052F620EEDf16211F44D231A4/sources/contracts/AG.sol | 0 = perAPA 1= perAddress
| uint ballotType; | 7,116,539 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
273,
1534,
2203,
37,
282,
404,
33,
1534,
1887,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
26503,
352,
559,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2021-11-01
*/
// Sources flattened with hardhat v2.6.7 https://hardhat.org
// File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected]
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing ... | @notice Allows a perpetual owner to withdraw rewards @param perpetualID ID of the perpetual which accumulated tokens @dev Only an approved caller can claim the rewards for the perpetual with perpetualID | function getReward(uint256 perpetualID) external whenNotPaused onlyApprovedOrOwner(msg.sender, perpetualID) {
_getReward(perpetualID, perpetualData[perpetualID].committedAmount * perpetualData[perpetualID].entryRate);
}
| 7,761,015 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
279,
1534,
6951,
1462,
3410,
358,
598,
9446,
283,
6397,
632,
891,
1534,
6951,
1462,
734,
1599,
434,
326,
1534,
6951,
1462,
1492,
24893,
2430,
632,
5206,
5098,
392,
20412,
4894,
848,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4170,
359,
1060,
12,
11890,
5034,
1534,
6951,
1462,
734,
13,
3903,
1347,
1248,
28590,
1338,
31639,
1162,
5541,
12,
3576,
18,
15330,
16,
1534,
6951,
1462,
734,
13,
288,
203,
3639,
389,
588,
17631,
1060,
12,
457,
6951,
14... |
/*
There is no nobility in poverty.
Website
https://shibofwallstreet.com
Telegram
https://t.me/ShibofWallStreetPortal
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of toke... | exclude from fees exclude from max transaction amount exclude from max wallet limit if the account is blacklisted from transacting | contract SOWS is ERC20, Ownable {
using SafeMath for uint256;
address public constant DEAD_ADDRESS = address(0xdead);
IUniswapV2Router02 public constant uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uint256 public buyLiquidityFee = 1;
uint256 public sellLiquidit... | 11,948,016 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
1656,
281,
4433,
628,
943,
2492,
3844,
4433,
628,
943,
9230,
1800,
309,
326,
2236,
353,
25350,
628,
906,
621,
310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7460,
2651,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1758,
1071,
5381,
2030,
1880,
67,
15140,
273,
1758,
12,
20,
92,
22097,
1769,
203,
565,
467,
984,
291,... |
// pragma solidity ^0.4.25;
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* ... | Set flight status code | function setFlightStatus(bytes32 flightKey, uint8 statusCode) external isCallerAuthorized() returns(uint8) {
flights[flightKey].statusCode = statusCode;
return statusCode;
}
| 15,817,106 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
25187,
1267,
981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24243,
1482,
12,
3890,
1578,
25187,
653,
16,
2254,
28,
6593,
13,
3903,
353,
11095,
15341,
1435,
1135,
12,
11890,
28,
13,
288,
203,
3639,
1183,
10730,
63,
19131,
653,
8009,
30120,
273,
6593,
31,
203,
3639,
327,
6593... |
pragma solidity >=0.4.25 <0.7.0;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmeti... | * @dev Generate a request for oracles to fetch flight information/ Generate a unique key for storing the request | function fetchFlightStatus(
address airline,
string calldata flight,
uint256 timestamp
) external requireIsOperational {
uint8 index = getRandomIndex(msg.sender);
bytes32 key = keccak256(
abi.encodePacked(index, airline, flight, timestamp)
);
... | 13,094,916 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6654,
279,
590,
364,
578,
69,
9558,
358,
2158,
25187,
1779,
19,
6654,
279,
3089,
498,
364,
15729,
326,
590,
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,
2158,
24243,
1482,
12,
203,
3639,
1758,
23350,
1369,
16,
203,
3639,
533,
745,
892,
25187,
16,
203,
3639,
2254,
5034,
2858,
203,
565,
262,
3903,
2583,
2520,
2988,
287,
288,
203,
3639,
2254,
28,
770,
273,
20581,
1016,
12,... |
pragma solidity ^0.4.25;
contract Exchange {
function buy(address _referredBy) public payable returns(uint256);
function exit() public;
}
contract DICEDividends {
Exchange diceContract = Exchange(0xda548e0AD6c88652FD21c38F46eDb58bE3a7B1dA);
/// @notice Any funds sent here are for dividend p... | @notice Distribute dividends to the exchange. Can be called repeatedly until practically all dividends have been distributed. @param rounds How many rounds of dividend distribution do we want? Balance is very low. Not worth the gas to distribute. | function distribute(uint256 rounds) external {
for (uint256 i = 0; i < rounds; i++) {
if (address(this).balance < 0.001 ether) {
break;
}
diceContract.buy.value(address(this).balance)(0x0);
diceContract.exit();
}
}
| 1,765,914 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3035,
887,
3739,
350,
5839,
358,
326,
7829,
18,
4480,
506,
2566,
377,
30412,
3180,
23122,
6478,
777,
3739,
350,
5839,
1240,
2118,
16859,
18,
632,
891,
21196,
9017,
4906,
21196,
434,
31945,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
25722,
12,
11890,
5034,
21196,
13,
3903,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
21196,
31,
277,
27245,
288,
203,
5411,
309,
261,
2867,
12,
2211,
2934,
12296,
411,
374,
18,
11664,
225,
2437,
... |
//Address: 0xa43ef369d12dc7f016003c933dcbc626cc8ea08d
//Contract name: InteractiveCrowdsaleLib
//Balance: 0 Ether
//Verification Date: 5/15/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.21;
/**
* @title InteractiveCrowdsaleLib
* @author Modular, Inc
*
* version 2.0.0
* Copyright (c) 2017 ... | FLAG: the owner can mint new tokens. This is an issue if not properly configured. */ | {
token.init(owner, name, symbol, decimals, initialSupply, false);
}
| 1,753,758 | [
1,
4625,
348,
7953,
560,
30,
225,
10972,
30,
326,
3410,
848,
312,
474,
394,
2430,
18,
1220,
353,
392,
5672,
309,
486,
8214,
4351,
18,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
288,
203,
565,
1147,
18,
2738,
12,
8443,
16,
508,
16,
3273,
16,
15105,
16,
2172,
3088,
1283,
16,
629,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.5.4;
import "./base_space_interfaces.sol";
/**
* UserSpace
* Seperated from content_space to avoid circular dependencies.
*/
/* -- Revision history --
UserSpace20190506155300ML: First versioned released
*/
contract UserSpace is IUserSpace {
bytes32 public version ="UserSpace20190506155300M... | class name (max 16), date YYYYMMDD, time HHMMSS and Developer initials XX
| bytes32 public version ="UserSpace20190506155300ML"; | 12,904,028 | [
1,
4625,
348,
7953,
560,
30,
667,
508,
261,
1896,
2872,
3631,
1509,
26699,
8206,
5698,
16,
813,
20842,
8206,
1260,
471,
14526,
2172,
87,
1139,
60,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1731,
1578,
1071,
1177,
273,
6,
1299,
3819,
6734,
9349,
3361,
9498,
2539,
19249,
1495,
14432,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-28
*/
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.9;
//This contract only exist in order to run migration test.
//It is a genric fgreely mintable ERC-721 standard.
//import "../../generic/721/ERC721.sol";
//import "../../generic/165/ERC165.so... | @notice Set or reaffirm the approved address for an NFT @dev The zero address indicates there is no approved address. @dev Throws unless `msg.sender` is the current NFT owner, or an authorized operator of the current owner. @param _approved The new approved NFT controller @param _tokenId The NFT to approveOperator ve... | function approve(address _approved, uint256 _tokenId) external payable override{
address _owner = tokenOwners[_tokenId];
require(
"msg.sender is not allowed to approve an address for the NFT"
);
tokenOperator[_tokenId] = _approved;
emit Approval(_owner, _approv... | 10,508,849 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
578,
283,
7329,
3985,
326,
20412,
1758,
364,
392,
423,
4464,
632,
5206,
1021,
3634,
1758,
8527,
1915,
353,
1158,
20412,
1758,
18,
632,
5206,
22435,
3308,
1375,
3576,
18,
15330,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
25990,
16,
2254,
5034,
389,
2316,
548,
13,
3903,
8843,
429,
3849,
95,
203,
203,
3639,
1758,
389,
8443,
273,
1147,
5460,
414,
63,
67,
2316,
548,
15533,
203,
203,
3639,
2583,
12,
203,
5411,
315... |
// SPDX-License-Identifier: bsl-1.1
/*
Copyright 2021 Unit Protocol: Artem Zakharov (az@unit.xyz).
*/
pragma solidity ^0.7.1;
pragma experimental ABIEncoderV2;
/**
* @notice Interface of the autogenerated views of the `VaultParameters`.
*/
interface IVaultParametersViewer {
function stabilityFee(address as... | * @notice Get parameters of many assets @param assets asset addresses @param maxOracleTypesToSearch since complete list of oracle types is unknown, we'll check types up to this number/ | function getMultiAssetParameters(address[] calldata assets, uint maxOracleTypesToSearch)
external
view
returns (AssetParameters[] memory r)
{
uint length = assets.length;
r = new AssetParameters[](length);
for (uint i = 0; i < length; ++i) {
r[i] = get... | 14,676,107 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
968,
1472,
434,
4906,
7176,
632,
891,
7176,
3310,
6138,
632,
891,
943,
23601,
2016,
774,
2979,
3241,
3912,
666,
434,
20865,
1953,
353,
5917,
16,
732,
5614,
866,
1953,
731,
358,
333,
1300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31863,
6672,
2402,
12,
2867,
8526,
745,
892,
7176,
16,
2254,
943,
23601,
2016,
774,
2979,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
6672,
2402,
8526,
3778,
436,
13,
203,
565,
288,
203,
3639,
2254,
769,... |
./full_match/1/0x8430Be7B8fd28Cc58EA70A25C9c7A624F26f5D09/sources/src/core/processors/RollupProcessorV2.sol | * @notice A function which allows holders of OWNER_ROLE to set the capped flag @dev When going from uncapped to capped, will update `lastRollupTimeStamp` @param _isCapped a flag indicating whether caps are used or not/ | function setCapped(bool _isCapped) external onlyRole(OWNER_ROLE) noReenter {
if (_isCapped == rollupState.capped) return;
if (_isCapped) {
lastRollupTimeStamp = uint32(block.timestamp);
}
rollupState.capped = _isCapped;
emit CappedUpdated(_isCapped);
}
| 4,874,748 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
445,
1492,
5360,
366,
4665,
434,
531,
22527,
67,
16256,
358,
444,
326,
3523,
1845,
2982,
632,
5206,
5203,
8554,
628,
6301,
438,
1845,
358,
3523,
1845,
16,
903,
1089,
1375,
2722,
241... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
444,
4664,
1845,
12,
6430,
389,
291,
4664,
1845,
13,
3903,
1338,
2996,
12,
29602,
67,
16256,
13,
1158,
426,
2328,
288,
203,
3639,
309,
261,
67,
291,
4664,
1845,
422,
5824,
416,
1119,
18,
5909,
1845,
13,
327,
31,
203,
... |
./partial_match/3/0x65B29b471f69400244Ffee30914745c88883810d/sources/pool.sol | * @notice get current new option supply/ | function _slotSupply(uint) internal override returns(uint) {
return ethersToIssue.mul(utilizationRate)
.div(100)
.div(_numOptions);
}
| 5,237,104 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
336,
783,
394,
1456,
14467,
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,
389,
14194,
3088,
1283,
12,
11890,
13,
2713,
3849,
1135,
12,
11890,
13,
288,
203,
3639,
327,
13750,
414,
774,
12956,
18,
16411,
12,
1367,
1588,
4727,
13,
203,
18701,
263,
2892,
12,
6625,
13,
203,
18701,
263,
2892,
24899... |
./partial_match/100/0x21d4E9fbB9DB742E6ef4f29d189a7C18B0b59136/sources/project:/contracts/utils/Strings.sol | @dev Returns a slice containing the entire bytes32, interpreted as a null-terminated utf-8 string. @param self The bytes32 value to convert to a slice. @return A new slice containing the value of the input argument up to the first null./ Allocate space for `self` in memory, copy it there, and point ret at... | function toSliceB32(bytes32 self) internal pure returns (slice memory ret) {
assembly {
let ptr := mload(0x40)
mstore(0x40, add(ptr, 0x20))
mstore(ptr, self)
mstore(add(ret, 0x20), ptr)
}
ret._len = strlen(self);
}
| 16,679,774 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
279,
2788,
4191,
326,
7278,
1731,
1578,
16,
19898,
487,
279,
1377,
446,
17,
29133,
7718,
17,
28,
533,
18,
632,
891,
365,
1021,
1731,
1578,
460,
358,
1765,
358,
279,
2788,
18,
632,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
358,
5959,
38,
1578,
12,
3890,
1578,
365,
13,
2713,
16618,
1135,
261,
6665,
3778,
325,
13,
288,
203,
3639,
19931,
288,
203,
5411,
2231,
6571,
519,
312,
945,
12,
20,
92,
7132,
13,
203,
5411,
312,
2233,
12,
20,
92,
71... |
contract Ownable {
address private _owner;
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
constructor() internal {
_owner = msg.s... | @dev setup multisignature address to keep the funds safe @param _multiSigAddress is the multisignature contract address @return true if the address was set successfully | function setMultiSigAddress(address _multiSigAddress) external onlyOwner returns(bool){
require(_multiSigAddress != address(0), "not a valid multisignature address");
multiSigAddress = _multiSigAddress;
emit SetMultiSigAddress(msg.sender,multiSigAddress);
return true;
}
| 5,510,360 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3875,
22945,
724,
1231,
1758,
358,
3455,
326,
284,
19156,
4183,
632,
891,
389,
7027,
8267,
1887,
353,
326,
22945,
724,
1231,
6835,
1758,
632,
2463,
638,
309,
326,
1758,
1703,
444,
4985,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5002,
8267,
1887,
12,
2867,
389,
7027,
8267,
1887,
13,
3903,
1338,
5541,
1135,
12,
6430,
15329,
203,
3639,
2583,
24899,
7027,
8267,
1887,
480,
1758,
12,
20,
3631,
315,
902,
279,
923,
22945,
724,
1231,
1758,
8863,
2... |
./full_match/1/0x92ffDD3334D6C8CE4906020C453037a71b3AA8f7/sources/contracts/CIV-VaultGetter.sol | @notice Add new uniswap pair info to pairInfo list @dev Interal function @param _id Strategy Id @param _pair Uniswap Pair Interface | function addPair(uint _id, IUniswapV2Pair _pair) internal {
(, , uint32 blockTimestampLast) = _pair.getReserves();
(
uint price0Cumulative,
uint price1Cumulative,
uint32 blockTimestamp
) = UniswapV2OracleLibrary.currentCumulativePrices(address(_pair));
... | 16,543,252 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1436,
394,
640,
291,
91,
438,
3082,
1123,
358,
3082,
966,
666,
632,
5206,
5294,
287,
445,
632,
891,
389,
350,
19736,
3124,
632,
891,
389,
6017,
1351,
291,
91,
438,
8599,
6682,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
4154,
12,
11890,
389,
350,
16,
467,
984,
291,
91,
438,
58,
22,
4154,
389,
6017,
13,
2713,
288,
203,
3639,
261,
16,
269,
2254,
1578,
1203,
4921,
3024,
13,
273,
389,
6017,
18,
588,
607,
264,
3324,
5621,
203,
3639... |
./full_match/1/0x3a95eA2D789ABf5307F16033bf06EB9B297C81c2/sources/contracts/lib/BaronBase.sol | This allows the owner to change the operator. | function setOperator(address newOperator) external onlyOwner {
operator = newOperator;
}
| 3,043,212 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
5360,
326,
3410,
358,
2549,
326,
3726,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5592,
12,
2867,
394,
5592,
13,
3903,
1338,
5541,
288,
203,
3639,
3726,
273,
394,
5592,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
@title TonMinter v0.0.1
________ ________ _______ ________ ___
|\ ____\|\ __ \|\ ___ \ |\ __ \|\ \
\ \ \___|\ \ \|\ \ \ __/|\ \ \|\ \ \ \
\ \ \ \ \ _ _\ \ \_|/_\ \ \\\ \ \ \
\ \ \____\ \ \\ \\ \ \_|\ \ \ \\\ \ \ \____
\ \_______\ \__\\ _\\ \_______\ \_______\ ... | * @dev add an approved stoveID to the contract @param stoveID Unique stoveID number/ | function addStoveID (uint256 stoveID) public onlyProjectDeveloper {
require(addressToProjectDevInfo[msg.sender].isValidStoveID[stoveID] == false, "Stove ID is already registered");
addressToProjectDevInfo[msg.sender].isValidStoveID[stoveID] = true;
emit newStoveID(stoveID);
}
| 1,823,214 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
527,
392,
20412,
384,
841,
734,
358,
326,
6835,
632,
891,
384,
841,
734,
14584,
384,
841,
734,
1300,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
445,
527,
510,
841,
734,
261,
11890,
5034,
384,
841,
734,
13,
1071,
1338,
4109,
28145,
288,
203,
540,
2583,
12,
2867,
774,
4109,
8870,
966,
63,
3576,
18,
15330,
8009,
26810,
510,
841,
734,
63,
334,
841,
734,
65,
422,
629,
... |
./partial_match/42/0x000e7385A87A0F6a0D8C12b8ef1224C35486f263/sources/BPool.sol | * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to pr... | contract Initializable {
bool private _initialized;
bool private _initializing;
pragma solidity >=0.4.24 <0.8.0;
modifier initializer() {
require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializi... | 8,907,766 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
353,
279,
1026,
6835,
358,
20702,
316,
7410,
8400,
429,
20092,
16,
578,
1281,
3846,
434,
6835,
716,
903,
506,
19357,
21478,
279,
2889,
18,
7897,
279,
21875,
6835,
848,
1404,
1240,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
10188,
6934,
288,
203,
203,
565,
1426,
3238,
389,
13227,
31,
203,
203,
565,
1426,
3238,
389,
6769,
6894,
31,
203,
203,
203,
203,
203,
203,
203,
683,
9454,
18035,
560,
1545,
20,
18,
24,
18,
3247,
411,
20,
18,
28,
18,
20... |
./full_match/137/0x5916779bfEE4d7A03ba2Bf453Cf12232bBd53C40/sources/StakingContract.sol | Interfaces for ERC20 and ERC721 IERC20 public immutable rewardsToken; Constructor function to set the rewards token and the NFT collection addresses | contract BullandBearStaking22 is ReentrancyGuard {
using SafeERC20 for IERC20;
IERC721 public immutable nftCollection;
pragma solidity ^0.8.4;
constructor(IERC721 _nftCollection) {
nftCollection = _nftCollection;
}
struct StakedToken {
address staker;
uint256 tokenId;
... | 4,707,119 | [
1,
4625,
348,
7953,
560,
30,
225,
27152,
364,
4232,
39,
3462,
471,
4232,
39,
27,
5340,
467,
654,
39,
3462,
1071,
11732,
283,
6397,
1345,
31,
11417,
445,
358,
444,
326,
283,
6397,
1147,
471,
326,
423,
4464,
1849,
6138,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
420,
464,
1919,
297,
510,
6159,
3787,
353,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
654,
39,
27,
5340,
1071,
11732,
290,
1222,
2532,
31,
20... |