file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/4/0x1C71f85Ac19242C2b66C36f25c87CAf893cAEAa0/sources/gist-29806d9f4dbe24ed27ae6855965ff87b/Democracy.sol | SPDX-License-Identifier: GPL-3.0-or-later | pragma solidity '0.8.7';
| 12,492,125 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
4948,
48,
17,
23,
18,
20,
17,
280,
17,
29082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
683,
9454,
18035,
560,
296,
20,
18,
28,
18,
27,
13506,
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,
... |
// author : Bugrahan OZTURK
// date : 15.08.2021
pragma solidity >=0.4.25 <0.7.0;
contract Channel{
address payable public sender; // IoT Device that is sending data
address payable public recipient; // Smart Home User
uint256 public expiration; // Timeout in case the recipient never closes the chan... | the Smart Home User can extend the expiration of the contract at any time | function extend(uint256 newExpiration) public onlyRecipient {
require(newExpiration > expiration);
expiration = newExpiration;
}
| 1,027,555 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
19656,
21321,
2177,
848,
2133,
326,
7686,
434,
326,
6835,
622,
1281,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2133,
12,
11890,
5034,
394,
12028,
13,
1071,
1338,
18241,
288,
203,
3639,
2583,
12,
2704,
12028,
405,
7686,
1769,
203,
3639,
7686,
273,
394,
12028,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/44787/0x5c23a9c8Dc28642c1eAf18da590C8f4decf23472/sources/roda-credit.sol | Safely subtract paymentAmount
| OutstandingBalance[tokenId] = OutstandingBalance[tokenId].sub(paymentAmount); | 16,956,535 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
1727,
2357,
10418,
5184,
6275,
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,
2976,
15167,
13937,
63,
2316,
548,
65,
273,
2976,
15167,
13937,
63,
2316,
548,
8009,
1717,
12,
9261,
6275,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/introspection/ERC165.sol";
import "./IWhitelist.sol";
import "./WhitelistInterfaceId.sol";
/**
* @title WhitelistERC165
* @author Alberto Cuesta Canada
* @dev Implements a simple whitelist of addresses regi... | * @title WhitelistERC165 @author Alberto Cuesta Canada @dev Implements a simple whitelist of addresses registered via ERC165 @dev TODO: Can be done inheriting from hq20/contracts/access/Whitelist.sol, but it becomes a bit confusing for WhitelistERC165 to inherit from both Whitelist.sol and IWhitelist.sol. Maybe do afte... | contract WhitelistERC165 is Ownable, ERC165, IWhitelist, WhitelistInterfaceId {
event MemberAdded(address member);
event MemberRemoved(address member);
mapping (address => bool) internal members;
constructor() public Ownable() IERC165() {
_registerInterface(WhitelistInterfaceId.IWHITELIST_ID);... | 2,472,423 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3497,
7523,
654,
39,
28275,
632,
4161,
2262,
744,
869,
385,
89,
395,
69,
4480,
16524,
632,
5206,
29704,
279,
4143,
10734,
434,
6138,
4104,
3970,
4232,
39,
28275,
632,
5206,
2660,
30,
4480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3497,
7523,
654,
39,
28275,
353,
14223,
6914,
16,
4232,
39,
28275,
16,
467,
18927,
16,
3497,
7523,
1358,
548,
288,
203,
565,
871,
8596,
8602,
12,
2867,
3140,
1769,
203,
565,
871,
8596,
10026,
12,
2867,
3140,
1769,
203,
203... |
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not... | File: contracts/factory/extensions/NFTExtension.sol | contract NFTExtension is INFTExtension, ERC165 {
IMetaverseNFT public immutable nft;
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
}
pragma solidity ^0.8.9;
}
}
pragma solidity ^0.8.9;
}
}
pragma solidity ^0.8.9;
constructor(address _nft) ... | 14,496,615 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
20092,
19,
6848,
19,
9489,
19,
50,
4464,
3625,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
16351,
423,
4464,
3625,
353,
2120,
4464,
3625,
16,
4232,
39,
28275,
288,
203,
565,
467,
2781,
2476,
50,
4464,
1071,
11732,
290,
1222,
31,
203,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.5;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import '@uniswa... | Update fee growth for our position Collect fees back to vault Pay carry fee Compond fees back into pool | function collectFees() external {
require(poolEnabled, "disabled");
if (lastCollectFees + 1 hour > block.timestamp) return;
pool.burn(tickLower, tickUpper, 0);
(fee0, fee1) = pool.collect(
address(this),
tickLower,
tickUpper,
type(uin... | 13,069,529 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
14036,
13334,
451,
364,
3134,
1754,
9302,
1656,
281,
1473,
358,
9229,
13838,
9331,
14036,
1286,
3111,
1656,
281,
1473,
1368,
2845,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3274,
2954,
281,
1435,
3903,
288,
203,
3639,
2583,
12,
6011,
1526,
16,
315,
9278,
8863,
203,
3639,
309,
261,
2722,
10808,
2954,
281,
397,
404,
6126,
405,
1203,
18,
5508,
13,
327,
31,
203,
203,
3639,
2845,
18,
70,
321,... |
./full_match/100/0x446F95ff2c6CE2278006632Cae4b877f552cDA08/sources/contracts/OrbisMain.sol | @title Main contract for Orbis Alpha CONSTANTS STRUCTS, MAPPINGS and ENUMS | contract OrbisAlpha {
mapping(address => bool) public isMaster;
pragma solidity ^0.8.4;
struct Community {
string metadata;
GovernanceTypes governanceType;
PrivacyTypes privacyType;
address reputationTokenAddress;
bool downvotesEnabled;
}
Community... | 14,269,537 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
12740,
6835,
364,
2965,
70,
291,
24277,
377,
24023,
55,
377,
7128,
9749,
55,
16,
28801,
55,
471,
24776,
55,
225,
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,
2965,
70,
291,
9690,
288,
203,
377,
203,
377,
203,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
353,
7786,
31,
203,
203,
377,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
24,
31,
203,
565,
1958,
16854,
13352,
288,
20... |
./full_match/100/0xa132a33bB6ED51085d376b3CC90c7723171ebb79/sources/project_/contracts/upgradability/UUPSProxiable.sol | * @dev Proxiable UUID marker function, this would help to avoid wrong logic contract to be used for upgrading. NOTE: The semantics of the UUID deviates from the actual UUPS standard, where it is equivalent of _IMPLEMENTATION_SLOT./* @dev Update code address function. It is internal, so the derived contr... | function updateCode(address newAddress) external virtual;
function proxiableUUID() public view virtual returns (bytes32);
function _updateCodeAddress(address newAddress) internal
{
require(UUPSUtils.implementation() != address(0), "UUPSProxiable: not upgradable");
require(
... | 14,266,560 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1186,
92,
2214,
5866,
5373,
445,
16,
333,
4102,
2809,
358,
4543,
7194,
4058,
1377,
6835,
358,
506,
1399,
364,
731,
15210,
18,
5219,
30,
1021,
17267,
434,
326,
5866,
27492,
815,
628,
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,
1089,
1085,
12,
2867,
394,
1887,
13,
3903,
5024,
31,
203,
203,
565,
445,
8617,
2214,
5562,
1435,
1071,
1476,
5024,
1135,
261,
3890,
1578,
1769,
203,
203,
565,
445,
389,
2725,
1085,
1887,
12,
2867,
394,
1887,
13,
2713,
... |
./partial_match/56/0x54696c2A506a4E5801793d32bEC92148Fb161C6A/sources/contracts/StableJoeStaking.sol | @notice Info of each user | struct UserInfo {
uint256 amount;
mapping(IERC20Upgradeable => uint256) rewardDebt;
IERC20Upgradeable public joe;
mapping(IERC20Upgradeable => bool) public isRewardToken;
address public feeCollector;
| 11,268,373 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3807,
434,
1517,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
25003,
288,
203,
3639,
2254,
5034,
3844,
31,
203,
3639,
2874,
12,
45,
654,
39,
3462,
10784,
429,
516,
2254,
5034,
13,
19890,
758,
23602,
31,
203,
203,
565,
467,
654,
39,
3462,
10784,
429,
1071,
525,
15548,
31,
203,
2... |
pragma solidity ^0.4.20;
// 内置固定等长数组
contract fixedArray{
// bytes1 ... bytes2
bytes1 b1 = "x";
bytes2 b2 = "xy";
bytes3 public b3 = "xy";
// 0: bytes3: 0x787900
uint public len = b3.length;
// 长度不可修改
bytes8 b8 = "12345678";
bytes1 public b8_1 = b8[0];
... | 内置固定等长数组 bytes1 ... bytes2 0: bytes3: 0x787900 长度不可修改 0: bytes1: 0x31 ; ASCII b8[1] = "0"; | contract fixedArray{
bytes1 b1 = "x";
bytes2 b2 = "xy";
bytes3 public b3 = "xy";
uint public len = b3.length;
bytes8 b8 = "12345678";
bytes1 public b8_1 = b8[0];
}
| 5,476,751 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
166,
233,
232,
168,
126,
111,
166,
254,
123,
166,
111,
253,
168,
260,
236,
170,
248,
128,
167,
248,
113,
168,
124,
231,
1731,
21,
1372,
1731,
22,
377,
374,
30,
1731,
23,
30,
374,
92,
8285... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5499,
1076,
95,
203,
377,
203,
565,
1731,
21,
324,
21,
273,
315,
92,
14432,
203,
565,
1731,
22,
324,
22,
273,
315,
1698,
14432,
203,
377,
203,
565,
1731,
23,
1071,
324,
23,
273,
315,
1698,
14432,
203,
377,
203,
565,
22... |
./full_match/40/0x87F27B0DEE1Fd97A60dD5e5436c8068b805770E4/sources/contracts/protocol/configuration/LendingPoolAddressesProvider.sol | * @title LendingPoolAddressesProvider contract @dev Main registry of addresses part of or connected to the protocol, including permissioned roles - Acting also as factory of proxies and admin of those, so with right to change its implementations - Owned by the OmniDex Governance @author OmniDex/ | contract LendingPoolAddressesProvider is Ownable, ILendingPoolAddressesProvider {
string private _marketId;
mapping(bytes32 => address) private _addresses;
bytes32 private constant LENDING_POOL = 'LENDING_POOL';
bytes32 private constant LENDING_POOL_CONFIGURATOR = 'LENDING_POOL_CONFIGURATOR';
bytes32 private... | 9,548,164 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
511,
2846,
2864,
7148,
2249,
6835,
632,
5206,
12740,
4023,
434,
6138,
1087,
434,
578,
5840,
358,
326,
1771,
16,
6508,
4132,
329,
4900,
300,
4603,
310,
2546,
487,
3272,
434,
13263,
471,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
511,
2846,
2864,
7148,
2249,
353,
14223,
6914,
16,
467,
48,
2846,
2864,
7148,
2249,
288,
203,
225,
533,
3238,
389,
27151,
548,
31,
203,
225,
2874,
12,
3890,
1578,
516,
1758,
13,
3238,
389,
13277,
31,
203,
203,
225,
1731,
... |
./full_match/1/0x8a1e51DFe708545D6ad080a0eBBDd18A1b6F860C/sources/contracts/Sinra.sol | * @notice Set base token URI @dev Only admin can call this function Name Meaning @param _baseUri New base URI/ | function setBaseURI(string memory _baseUri) external onlyAdmin {
string memory oldBaseURI = baseURI;
baseURI = _baseUri;
emit SetBaseURI(oldBaseURI, baseURI);
}
| 2,979,612 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
1000,
1026,
1147,
3699,
225,
632,
5206,
565,
5098,
3981,
848,
745,
333,
445,
5411,
1770,
5411,
21979,
310,
225,
632,
891,
565,
389,
1969,
3006,
3639,
1166,
1026,
3699,
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,
26435,
3098,
12,
1080,
3778,
389,
1969,
3006,
13,
3903,
1338,
4446,
288,
203,
3639,
533,
3778,
1592,
2171,
3098,
273,
1026,
3098,
31,
203,
3639,
1026,
3098,
273,
389,
1969,
3006,
31,
203,
3639,
3626,
1000,
2171,
3098,
1... |
./partial_match/56/0x5B43c169390C842354D333fcd9cFD2690C6043C6/sources/LTCST.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract LTCST is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "LTCST";
... | 11,304,196 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
11807,
39,
882,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
... |
pragma solidity ^0.4.24;
import "./token/ERC20.sol";
import "./lifecycle/Mintable.sol";
import "./lifecycle/Burnable.sol";
import "./lifecycle/Pausable.sol";
import "./lifecycle/Blacklistable.sol";
import "./lifecycle/Whitelistable.sol";
import "./math/SafeMath.sol";
/**
* @title TokenImpl
*
* @dev This contract i... | * @dev Extension of the ERC20 decreaseApproval function to enforce lifecycle behaviours./ | function decreaseAllowance(address spender, uint256 subtractedValue)
public
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(spender)
returns (bool)
{
return super.decreaseAllowance(spender, subtractedValue);
}
| 12,835,508 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
326,
4232,
39,
3462,
20467,
23461,
445,
358,
12980,
6596,
11072,
4390,
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,
... | [
1,
1,
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,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
203,
3639,
1071,
203,
3639,
1347,
1248,
28590,
203,
3639,
486,
13155,
18647,
12,
3576,
18,
15330,
13,
203,
3639,
486,
13155,
18647,
12,
87,
1... |
./full_match/1/0x8FD2a943b681A80C5284e1eeB5a06B65e112f8e5/sources/contracts/SeaLife.sol | * @dev Adds new addresses to whitelist @param addresses address array/ | function addToWhitelist(address[] calldata addresses) external onlyOwner {
for(uint256 i = 0; i < addresses.length; i++) {
require(addresses[i] != address(0), "Can't add NULL_ADDRESS to whitelist");
_whitelist[addresses[i]].isWhitelisted = true;
}
}
| 3,171,537 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15605,
394,
6138,
358,
10734,
632,
891,
6138,
1758,
526,
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,
9604,
18927,
12,
2867,
8526,
745,
892,
6138,
13,
3903,
1338,
5541,
288,
203,
3639,
364,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
6138,
18,
2469,
31,
277,
27245,
288,
203,
5411,
2583,
12,
13277,
63,
77,
65,
480,
... |
./full_match/1/0xDC9D4685847f1C8bDd4CE86BE6A83Fa09B6A08b1/sources/contracts/TempleStaking.sol | * Mechancics of how a user can stake temple./ epoch percentage yield, as an ABDKMath64x64 epoch size, in seconds The starting timestamp. from where staking starts epy compounded over every epoch since the contract creation up until lastUpdatedEpoch. Represented as an ABDKMath64x64 the epoch up to which we have calculat... | contract TempleStaking is Ownable {
using ABDKMath64x64 for int128;
int128 public epy;
uint256 public epochSizeSeconds;
uint256 public startTimestamp;
int128 public accumulationFactor;
uint256 public lastUpdatedEpoch;
event StakeCompleted(address _staker, uint256 _amount, uint2... | 3,059,142 | [
1,
4625,
348,
7953,
560,
30,
380,
7499,
7472,
71,
2102,
434,
3661,
279,
729,
848,
384,
911,
1022,
1802,
18,
19,
7632,
11622,
2824,
16,
487,
392,
10336,
3398,
10477,
1105,
92,
1105,
7632,
963,
16,
316,
3974,
1021,
5023,
2858,
18,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
3955,
1802,
510,
6159,
353,
14223,
6914,
288,
203,
565,
1450,
10336,
3398,
10477,
1105,
92,
1105,
364,
509,
10392,
31,
203,
377,
203,
203,
565,
509,
10392,
1071,
425,
2074,
31,
7010,
203,
565,
2254,
5034,
1071,
7632,
1225,
... |
./partial_match/42/0xe456202B1D213D0a953C9bd7Ad15EA5cBca23cb0/sources/EPNToken.sol | * @notice Create new EPN (Ethereum Phone Number) for a owner @param owner The Owner wallet address @param itemId The itemId of the owner @return The EPN expiry time/ Check caller = admin | function createEPN(address owner, uint256 itemId) override external returns (uint256) {
require(msg.sender == admin);
return createEPNFresh(owner, itemId, false, "");
}
| 8,913,272 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1788,
394,
512,
15124,
261,
41,
18664,
379,
12895,
3588,
13,
364,
279,
3410,
632,
891,
3410,
1021,
16837,
9230,
1758,
632,
891,
18424,
1021,
18424,
434,
326,
3410,
632,
2463,
1021,
512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
10541,
50,
12,
2867,
3410,
16,
2254,
5034,
18424,
13,
3849,
3903,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3981,
1769,
203,
3639,
327,
752,
10541,
26473,
1955,
12,
8443,
16,
18424... |
./full_match/137/0x4dEe8a38aDB6f8603D51fd4CEb521CCe37A86334/sources/MasterChef/MasterChef.sol | Withdraw LP tokens from MasterChef. | {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
uint256 pending = user
.amount
.mul(pool.accMyTokenPerShare)
.div(1e18)
.sub(user.rewardDebt);
function withdraw(uint256... | 3,765,990 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
511,
52,
2430,
628,
13453,
39,
580,
74,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
18,
15330,
15533,
203,
3639,
1089,
2864,
24899,
6610,
1769,
203,
3639,
2254,
5034,
... |
./partial_match/1/0x76343dCEE4d5F5DCCEE300Bd70668978c088D78D/sources/StakingforNFT.sol | NOTE: SERGS contract has 2.5% fees.... SERGS contract will send balance cutting 2.5% fees | function stake(uint256 amount) external nonReentrant notPaused updateReward(msg.sender) {
require(amount > 0, "Cannot stake 0");
uint256 feeamount=amount.div(40);
uint256 remamount=amount.sub(feeamount);
_totalSupply = _totalSupply.add(remamount);
_balances[msg.send... | 4,103,118 | [
1,
4625,
348,
7953,
560,
30,
5219,
30,
7758,
16113,
6835,
711,
576,
18,
25,
9,
1656,
281,
6265,
7758,
16113,
6835,
903,
1366,
11013,
6391,
1787,
576,
18,
25,
9,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
3844,
13,
3903,
1661,
426,
8230,
970,
486,
28590,
1089,
17631,
1060,
12,
3576,
18,
15330,
13,
288,
203,
3639,
2583,
12,
8949,
405,
374,
16,
315,
4515,
384,
911,
374,
8863,
203,
540,
203,
363... |
pragma solidity ^0.4.24;
import "../libs/AddressArrayLib.sol";
import "./abstract/SharedAccountMember.sol";
import "./SharedAccountNonce.sol";
/**
* Shared Account Member
*/
contract SharedAccountMember is AbstractSharedAccountMember, SharedAccountNonce {
using AddressArrayLib for address[];
struct Member {
... | updates manager limit | function _removeMember(address _sender, uint256 _nonce, address _member) internal onlySelfPurpose(_sender) verifyNonce(_nonce) {
require(
memberExists(_member),
"Member doesn't exists"
);
require(
_sender != _member && (members[_sender].unlimited || _sender == members[_member].manager),
... | 6,435,854 | [
1,
4625,
348,
7953,
560,
30,
225,
4533,
3301,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
4479,
4419,
12,
2867,
389,
15330,
16,
2254,
5034,
389,
12824,
16,
1758,
389,
5990,
13,
2713,
1338,
10084,
10262,
4150,
24899,
15330,
13,
3929,
13611,
24899,
12824,
13,
288,
203,
565,
2583,
12,
203,
1377,
3140,
4002,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "./IERC900.sol";
import "./RewardStreamer.sol";
import "./StakingLib.... | * @notice Calculate the stake reward from history @return (uint256) the calculated reward/ | {
function getStakerRewardFromHistory(
StakingInfo storage stakingInfo,
UserStake[] storage userStakes,
uint256 stakeIndex
)
public
view
returns(uint256)
if (stakeIndex >= userStakes.length) {
return 0;
}
uint256 stakingUnits = userStakes[stakeIndex].stakingUnits;
if (stakingUnits == 0) {
... | 497,267 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9029,
326,
384,
911,
19890,
628,
4927,
632,
2463,
261,
11890,
5034,
13,
326,
8894,
19890,
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,
202,
95,
203,
202,
915,
21491,
6388,
17631,
1060,
1265,
5623,
12,
203,
202,
202,
510,
6159,
966,
2502,
384,
6159,
966,
16,
203,
202,
202,
1299,
510,
911,
8526,
2502,
729,
510,
3223,
16,
203,
202,
202,
11890,
5034,
384,
911,
101... |
./full_match/4/0x4767dd7aD034c6Db23363ac9F32cDBD5449C3424/sources/contracts/band/bancor/BancorPower.sol | add x^17 * (33! / 17!)
| res += xi * 0x00000000000052b6b54569976310000; | 673,955 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
619,
66,
4033,
380,
261,
3707,
5,
342,
8043,
24949,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
400,
1011,
14087,
380,
374,
92,
12648,
2787,
9401,
70,
26,
70,
6564,
4313,
2733,
27,
4449,
23899,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^ 0.4.15;
/**
* @title ERC721 Non-Fungible Token Standard basic implementation. Credit to ZeppelinOS: https://zeppelinos.org
* @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
*/
contract ERC721BasicToken {
using SafeMath for uint;
// Events
event Transfer(address indexed... | * @dev Returns an URI for a given token ID @dev Throws if the token ID does not exist. May return an empty string. @param _tokenId uint ID of the token to query/ | function tokenURI(uint _tokenId) public constant returns (string) {
require(exists(_tokenId));
return tokenURIs[_tokenId];
}
| 12,808,636 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
392,
3699,
364,
279,
864,
1147,
1599,
632,
5206,
22435,
309,
326,
1147,
1599,
1552,
486,
1005,
18,
16734,
327,
392,
1008,
533,
18,
632,
891,
389,
2316,
548,
2254,
1599,
434,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1147,
3098,
12,
11890,
389,
2316,
548,
13,
1071,
5381,
1135,
261,
1080,
13,
288,
203,
565,
2583,
12,
1808,
24899,
2316,
548,
10019,
203,
565,
327,
1147,
1099,
2520,
63,
67,
2316,
548,
15533,
203,
225,
289,
203,
203,
2... |
pragma solidity ^0.8.6;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLES ... | votes mapping is updated to record the voting
| votes[_voterAddress][addressAirline] = true; | 1,015,361 | [
1,
4625,
348,
7953,
560,
30,
225,
19588,
2874,
353,
3526,
358,
1409,
326,
331,
17128,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
19588,
63,
67,
90,
20005,
1887,
6362,
2867,
29752,
1369,
65,
273,
638,
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... |
./full_match/3/0x326D65982fe60797c989cea8D02e4E534d3080Cd/sources/ERC20.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract ERC20 is Context, IERC20, IERC20Metadata {
mapping (address => uint256) internal _balances;
mapping (address => mapping (address => uint256)) internal _allowances;
uint256 internal _totalSupply;
string internal _name;
string internal _symbol;
uint8 internal _decimals;
construct... | 14,216,807 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
467,
654,
39,
3462,
2277,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
2713,
389,
70,
26488,
31,
203,
203,
565,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to t... | @title StakingRewardsEvents @author Angle Core Team @notice All the events used in `StakingRewards` contract | contract StakingRewardsEvents {
event RewardAdded(uint256 reward);
event Staked(address indexed user, uint256 amount);
event Withdrawn(address indexed user, uint256 amount);
event RewardPaid(address indexed user, uint256 reward);
event Recovered(address indexed tokenAddress, address indexed to, ... | 332,641 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
934,
6159,
17631,
14727,
3783,
632,
4161,
24154,
4586,
10434,
632,
20392,
4826,
326,
2641,
1399,
316,
1375,
510,
6159,
17631,
14727,
68,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
6159,
17631,
14727,
3783,
288,
203,
565,
871,
534,
359,
1060,
8602,
12,
11890,
5034,
19890,
1769,
203,
203,
565,
871,
934,
9477,
12,
2867,
8808,
729,
16,
2254,
5034,
3844,
1769,
203,
203,
565,
871,
3423,
9446,
82,
12,... |
./full_match/97/0x8e2c91242094cfE467818e861daB833aD90BC509/sources/project_/contracts/staking/STRFTokenLocker.sol | Withdraw all currently locked tokens where the unlock time has passed | function withdrawExpiredLocks() external tokenSet {
LockedBalance[] storage locks = _userLocks[msg.sender];
uint256 amount;
uint256 length = locks.length;
if (length > 0 && locks[length - 1].unlockTime <= getCurrentTime()) {
amount = _balances[msg.sender];
de... | 5,017,827 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
777,
4551,
8586,
2430,
1625,
326,
7186,
813,
711,
2275,
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,
598,
9446,
10556,
19159,
1435,
3903,
1147,
694,
288,
203,
3639,
3488,
329,
13937,
8526,
2502,
13046,
273,
389,
1355,
19159,
63,
3576,
18,
15330,
15533,
203,
3639,
2254,
5034,
3844,
31,
203,
3639,
2254,
5034,
769,
273,
130... |
./full_match/5/0x0a5474d73f692110f31FFC0d7E111a9e78adA512/sources/contracts/CrowdFunding.sol | struct可視為object指定type到指定property | contract CrowdFunding {
pragma solidity ^0.8.9;
struct Campaign {
address owner;
string title;
string description;
uint256 target;
uint256 deadline;
uint256 amountCollected;
string image;
address[] donators;
uint256[] donations;
}
map... | 11,596,681 | [
1,
4625,
348,
7953,
560,
30,
1958,
166,
242,
112,
169,
104,
249,
168,
229,
123,
1612,
167,
239,
234,
166,
111,
253,
723,
166,
235,
113,
167,
239,
234,
166,
111,
253,
4468,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
385,
492,
72,
42,
14351,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
29,
31,
203,
565,
1958,
17820,
288,
203,
3639,
1758,
3410,
31,
203,
3639,
533,
2077,
31,
203,
3639,
533,
2477,
31,
203,
3639,
2254,
5034,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name... | period total invested
| uint256[] public invest_period_totals = [0, 0, 0, 0]; | 12,749,282 | [
1,
4625,
348,
7953,
560,
30,
3879,
2078,
2198,
3149,
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,
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,
2254,
5034,
8526,
1071,
2198,
395,
67,
6908,
67,
3307,
1031,
273,
1377,
306,
20,
16,
282,
374,
16,
282,
374,
16,
282,
374,
15533,
1850,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.11;
/*
This FYN token contract is derived from the vSlice ICO contract, based on the ERC20 token contract.
Additional functionality has been integrated:
* the function mintTokens() only callable from wallet, which makes use of the currentSwapRate() and safeToAdd() helpers
* the function mintR... | The function mintTokens is only usable by the chosen wallet contract to mint a number of tokens proportional to the amount of ether sent to the wallet contract. The function can only be called during the tokenswap period | onlyFromWallet {
if (!safeToMultiply(currentSwapRate(), etherAmount)) throw;
uint tokensAmount = currentSwapRate() * etherAmount;
if(!safeToAdd(_balances[newTokenHolder],tokensAmount )) throw;
if(!safeToAdd(_supply,tokensAmount)) throw;
if ((_supply + tokensAmount) > tokenC... | 6,421,035 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
445,
312,
474,
5157,
353,
1338,
15603,
635,
326,
10447,
9230,
6835,
358,
312,
474,
279,
1300,
434,
2430,
23279,
287,
358,
326,
3844,
434,
225,
2437,
3271,
358,
326,
9230,
6835,
18,
1021,
445,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1338,
1265,
16936,
288,
203,
3639,
309,
16051,
4626,
774,
26040,
12,
2972,
12521,
4727,
9334,
225,
2437,
6275,
3719,
604,
31,
203,
3639,
2254,
2430,
6275,
273,
783,
12521,
4727,
1435,
380,
225,
2437,
6275,
31,
203,
203,
3639,
... |
// SPDX-License-Identifier: Apache-2.0
/*
Modifications Copyright 2022 Element.Market
Copyright 2021 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.or... | @Note `_buyERC721FromProxy` is a external function, must call from an external Exchange Proxy, but should not be registered in the Exchange Proxy. | function _buyERC1155FromProxy(
LibNFTOrder.ERC1155SellOrder memory sellOrder,
LibSignature.Signature memory signature,
uint128 buyAmount
)
external
payable
{
require(_implementation != address(this));
_buyERC1155(sellOrder, signature, buyAmount);
}... | 13,482,337 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
8067,
1375,
67,
70,
9835,
654,
39,
27,
5340,
1265,
3886,
68,
353,
279,
3903,
445,
16,
1297,
745,
628,
392,
3903,
18903,
7659,
16,
3639,
1496,
1410,
486,
506,
4104,
316,
326,
18903,
7659,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
70,
9835,
654,
39,
2499,
2539,
1265,
3886,
12,
203,
3639,
10560,
50,
4464,
2448,
18,
654,
39,
2499,
2539,
55,
1165,
2448,
3778,
357,
80,
2448,
16,
203,
3639,
10560,
5374,
18,
5374,
3778,
3372,
16,
203,
3639,
2254... |
//Address: 0x10a5f6dbd1f9e56fe09df25b1163cd299d5d2413
//Contract name: EthernautsExplore
//Balance: 0.251 Ether
//Verification Date: 4/24/2018
//Transacion Count: 727
// CODE STARTS HERE
pragma solidity ^0.4.19;
/// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens
/// @author Ethernauts
con... | @notice Returns owner of a given Asset(Token). @param _tokenId Token ID to get owner. @dev Required for ERC-721 compliance. | function ownerOf(uint256 _tokenId)
external
view
returns (address owner)
{
owner = ethernautsStorage.ownerOf(_tokenId);
require(owner != address(0));
}
| 1,044,193 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
3410,
434,
279,
864,
10494,
12,
1345,
2934,
632,
891,
389,
2316,
548,
3155,
1599,
358,
336,
3410,
18,
632,
5206,
10647,
364,
4232,
39,
17,
27,
5340,
29443,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
951,
12,
11890,
5034,
389,
2316,
548,
13,
203,
565,
3903,
203,
565,
1476,
203,
565,
1135,
261,
2867,
3410,
13,
203,
565,
288,
203,
3639,
3410,
273,
225,
2437,
82,
5854,
87,
3245,
18,
8443,
951,
24899,
2316,
548,... |
pragma solidity ^0.4.24;
/**
* @title ERC223
* @dev New Interface for ERC223
*/
contract ERC223 {
// functions
function balanceOf(address _owner) external view returns (uint256);
function transfer(address _to, uint256 _value) public returns (bool success);
function transfer(address _to... | * @dev ERC223 transfer function @param _to Address of token receiver @param _value Number of tokens to send @param _data data equivalent to tx.data from ethereum transaction/ | function transfer(address _to, uint _value, bytes _data) public returns (bool success) {
require(_value > 0
&& frozenAccount[msg.sender] == false
&& frozenAccount[_to] == false
&& now > unlockUnixTime[msg.sender]
&& now > unlockUnixTime[_to]
... | 5,416,588 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4232,
39,
3787,
23,
7412,
445,
632,
891,
389,
869,
5267,
434,
1147,
5971,
632,
891,
389,
1132,
3588,
434,
2430,
358,
1366,
632,
891,
389,
892,
501,
7680,
358,
2229,
18,
892,
628,
13750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
16,
1731,
389,
892,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
24899,
1132,
405,
374,
203,
7734,
597,
12810,
3032,
63,
3576,
18,
15330,
65,
422,
629,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract TRITON is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
IUniswapV2Router02 public immutable _uniswapV2Router;
mapping (address => uint256) private _rOwned;
mapping (address => uint256) private _t... | once Triton is activated it can not be deactivated | function activateTriton() external onlyOwner() {
tritonActivated = true;
}
| 2,548,865 | [
1,
4625,
348,
7953,
560,
30,
3647,
399,
583,
265,
353,
14892,
518,
848,
486,
506,
443,
18836,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10235,
56,
583,
265,
1435,
3903,
1338,
5541,
1435,
288,
203,
3639,
433,
26949,
28724,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/4/0x90E6e0CB6053576C7deD1356B535865d4E4ff507/sources/FastyToken.sol | * @dev the internal method to create new order @param _orderId the order id @param _productIds the array of the product id @param _offeredCurrencies the array of the offered currency @param _offeredAmounts the array of the offered amount @param _feeId the system fee id/ | function _createOrder(
uint128 _orderId,
uint128[] memory _productIds,
address[] memory _offeredCurrencies,
uint256[] memory _offeredAmounts,
OrderType _type,
uint128 _feeId
) internal {
_orders[_orderId] = Order(
_orderId,
_product... | 8,631,556 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
326,
2713,
707,
358,
752,
394,
1353,
632,
891,
389,
1019,
548,
326,
1353,
612,
632,
891,
389,
5896,
2673,
326,
526,
434,
326,
3017,
612,
632,
891,
389,
23322,
329,
2408,
14695,
326,
526... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
2448,
12,
203,
3639,
2254,
10392,
389,
1019,
548,
16,
203,
3639,
2254,
10392,
8526,
3778,
389,
5896,
2673,
16,
203,
3639,
1758,
8526,
3778,
389,
23322,
329,
2408,
14695,
16,
203,
3639,
2254,
5034,
8526,
3778,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;
import "./utils/Ownable.sol";
/**
* @notice Allows each token to be associated with a creator.
*/
contract Participants is Ownable {
mapping(address => uint256) public seed;
mapping(address => uint256) public private1;
mapping(address => uint256) p... | 6382.9787234043 DDAO | $ 3000
| ] = 6382978723404300000000; | 5,536,169 | [
1,
4625,
348,
7953,
560,
30,
282,
1666,
7414,
22,
18,
29,
8285,
27,
4366,
11746,
23,
463,
18485,
571,
271,
29839,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
308,
273,
1666,
7414,
5540,
8285,
27,
4366,
11746,
23,
12648,
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,
-... |
pragma solidity ^0.6.0;
/**
* @notice This contract only lets the user supply ETH to
* the Bancor liquidity pool
*/
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/upgrades/contracts/Initializable.sol";
import "./IBancorNetwork.sol";
import "./IBancorConverter.sol";
import "./IBancor... | * @notice Enters user into Bancor's ETH liquidity pool./ Swap half of the Ether sent for BNT Swap the other half of the Ether sent for EtherToken Enter the pool | function enterPool() external onlyUser {
swapEtherForBnt();
swapEtherForEtherToken();
uint256 _amount = calculatePoolTokenAmount();
emit PoolEntered(_amount);
BancorConverter.fund(_amount);
}
| 5,401,155 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1374,
5432,
729,
1368,
605,
304,
3850,
1807,
512,
2455,
4501,
372,
24237,
2845,
18,
19,
12738,
8816,
434,
326,
512,
1136,
3271,
364,
605,
1784,
12738,
326,
1308,
8816,
434,
326,
512,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
6103,
2864,
1435,
3903,
1338,
1299,
288,
203,
565,
7720,
41,
1136,
1290,
38,
496,
5621,
203,
203,
565,
7720,
41,
1136,
1290,
41,
1136,
1345,
5621,
203,
203,
565,
2254,
5034,
389,
8949,
273,
4604,
2864,
1345,
6275,
5621,... |
./full_match/4/0x0021e18f9C37ccE987Dd96A33e3EA4C46D59b088/sources/contracts/Gear.sol | justplay.cafe, other functionality to be revealed in the future.", "image": "data:image/svg+xml;base64,', Base64.encode(bytes(output)), '"}'))));
| string memory json = Base64.encode(bytes(string(abi.encodePacked('{"name": "CyberGear #', toString(tokenId), '", "description": "Gear is randomized cypherpunk adventurer gear generated and stored on chain. Images will be generated at https: | 656,997 | [
1,
4625,
348,
7953,
560,
30,
2537,
1601,
18,
71,
2513,
16,
225,
1308,
14176,
358,
506,
283,
537,
18931,
316,
326,
3563,
1199,
16,
315,
2730,
6877,
315,
892,
30,
2730,
19,
11451,
15,
2902,
31,
1969,
1105,
16,
2187,
3360,
1105,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
533,
3778,
1163,
273,
3360,
1105,
18,
3015,
12,
3890,
12,
1080,
12,
21457,
18,
3015,
4420,
329,
2668,
16711,
529,
6877,
315,
17992,
744,
43,
2091,
468,
2187,
1762,
12,
2316,
548,
3631,
19197,
315,
3384,
6877,
315,
43,
2091,... |
./full_match/1/0x46d9F045F60B1613bd4eC0D0eE2b3B47Cb6501d9/sources/src/lib/utils/Address.sol | @dev Verifies a delegatecall was successful | function verifyCallResult(
bool _success,
bytes memory _returndata
) internal pure returns (bytes memory) {
if (_success) {
return _returndata;
if (_returndata.length > 0) {
assembly {
let returndata_size := mload(_returndata)
... | 4,974,688 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6160,
5032,
279,
7152,
1991,
1703,
6873,
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,
3929,
1477,
1253,
12,
203,
3639,
1426,
389,
4768,
16,
203,
3639,
1731,
3778,
389,
2463,
892,
203,
565,
262,
2713,
16618,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
309,
261,
67,
4768,
13,
288,
203,
5411,
327,
389,
246... |
//Address: 0xa8e6ac0f78b87574a3129141de06678768a226b2
//Contract name: VikoChain
//Balance: 0 Ether
//Verification Date: 4/27/2018
//Transacion Count: 60
// CODE STARTS HERE
pragma solidity ^0.4.20;
contract VikoChain{
// Public variables of the token
string public name;
string public symbol;
addres... | * Internal transfer, only can be called by this contract/ Prevent transfer to 0x0 address. Use burn() instead Check if the sender has enough Check for overflows Save this for an assertion in the future Subtract from the sender Add the same to the recipient Asserts are used to use static analysis to find bugs in your co... | function _transfer(address _from, address _to, uint _value) internal {
require(_to != 0x0);
require(balanceOf[_from] >= _value);
require(balanceOf[_to] + _value >= balanceOf[_to]);
uint previousBalances = balanceOf[_from] + balanceOf[_to];
balanceOf[_from] -= _value;
... | 2,547,335 | [
1,
4625,
348,
7953,
560,
30,
380,
3186,
7412,
16,
1338,
848,
506,
2566,
635,
333,
6835,
19,
19412,
7412,
358,
374,
92,
20,
1758,
18,
2672,
18305,
1435,
3560,
2073,
309,
326,
5793,
711,
7304,
2073,
364,
9391,
87,
7074,
333,
364,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
2713,
288,
203,
3639,
2583,
24899,
869,
480,
374,
92,
20,
1769,
203,
3639,
2583,
12,
12296,
951,
63,
67,
2080,
65,
1545,
389,
1132,
1769,
... |
./full_match/1/0x92Cc4c289cA8821A233A404c58479a0f209cF285/sources/contracts/PancakeV3LmPoolDeployer.sol | Avoid Duplicate Deployment Contracts. | mapping(address => bool) public LMPoolUpdateFlag;
| 4,989,610 | [
1,
4625,
348,
7953,
560,
30,
225,
17843,
19072,
8587,
30131,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
511,
49,
2864,
1891,
4678,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppeli... | why are you reading this? is there something between us? | function withdraw() public onlyOwner {
uint balance = address(this).balance;
payable(msg.sender).transfer(balance);
}
| 599,761 | [
1,
4625,
348,
7953,
560,
30,
225,
11598,
854,
1846,
6453,
333,
35,
353,
1915,
5943,
3086,
584,
35,
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,
598,
9446,
1435,
1071,
1338,
5541,
288,
203,
3639,
2254,
11013,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
3639,
8843,
429,
12,
3576,
18,
15330,
2934,
13866,
12,
12296,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2021-11-01
*/
// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity >=0.6.2 <0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
... | * @dev get Tranche A exchange rate @param _trancheNum tranche number @return tranche A token stored price/ | function getTrancheAExchangeRate(uint256 _trancheNum) public view override returns (uint256) {
return trancheParameters[_trancheNum].storedTrancheAPrice;
}
| 15,089,844 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
336,
840,
304,
18706,
432,
7829,
4993,
632,
891,
389,
13171,
18706,
2578,
13637,
18706,
1300,
632,
2463,
13637,
18706,
432,
1147,
4041,
6205,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
17730,
18706,
37,
11688,
4727,
12,
11890,
5034,
389,
13171,
18706,
2578,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
13637,
18706,
2402,
63,
67,
13171,
18706,
2578,
8009,
22601,
17730,
18706,... |
// SPDX-License-Identifier: MIT
pragma solidity =0.8.4;
import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Vault} from "./Vault.sol";
import {ShareMath} from "./ShareMath.sol";
import {IStrikeSelection} from "../inter... | Apply black-scholes formula (from rvol library) to option given its features and get price for 100 contracts denominated USDC for both call and put options Apply a discount to incentivize arbitraguers | function getOTokenPremiumInStables(
address oTokenAddress,
address optionsPremiumPricer,
uint256 premiumDiscount
) internal view returns (uint256) {
IOtoken newOToken = IOtoken(oTokenAddress);
IOptionsPremiumPricer premiumPricer =
IOptionsPremiumPricer(options... | 584,021 | [
1,
4625,
348,
7953,
560,
30,
225,
5534,
7721,
17,
28204,
9112,
8013,
261,
2080,
5633,
355,
5313,
13,
358,
1456,
864,
2097,
4467,
471,
336,
6205,
364,
2130,
20092,
10716,
7458,
11836,
5528,
364,
3937,
745,
471,
1378,
702,
5534,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17971,
1345,
23890,
5077,
382,
510,
1538,
12,
203,
3639,
1758,
320,
1345,
1887,
16,
203,
3639,
1758,
702,
23890,
5077,
52,
1512,
264,
16,
203,
3639,
2254,
5034,
23020,
5077,
9866,
203,
565,
262,
2713,
1476,
1135,
261,
1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/math/SignedSafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@rarible/lib-broken-line/contracts/LibIntMapping.sol";
/**
* Line describes ... | * @dev Update initial Line by parameter toTime. Calculate and set all changes/ | function update(BrokenLine storage brokenLine, uint toTime) internal {
uint time = brokenLine.initial.start;
if (time == toTime) {
return;
}
uint slope = brokenLine.initial.slope;
uint bias = brokenLine.initial.bias;
if (bias != 0) {
require(to... | 1,840,243 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2315,
2172,
5377,
635,
1569,
358,
950,
18,
9029,
471,
444,
777,
3478,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
12,
29559,
1670,
2502,
12933,
1670,
16,
2254,
358,
950,
13,
2713,
288,
203,
3639,
2254,
813,
273,
12933,
1670,
18,
6769,
18,
1937,
31,
203,
3639,
309,
261,
957,
422,
358,
950,
13,
288,
203,
5411,
327,
31,
203,
... |
./full_match/1/0xdD8bd1a9927aB550Cf2fC0a9da14702F9c09ac88/sources/contracts/ChromiaDelegation.sol | @notice Get if the account has whitelist at certain epoch | function getWhitelisted(address account, uint16 epoch) public view returns (bool whitelisted, uint16 latestEpoch) {
ProviderState storage providerState = providerStates[account];
if (providerState.latestWhitelistChange == 0) {
return (false, 0);
}
ProviderStateChange st... | 2,989,887 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
968,
309,
326,
2236,
711,
10734,
622,
8626,
7632,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18927,
329,
12,
2867,
2236,
16,
2254,
2313,
7632,
13,
1071,
1476,
1135,
261,
6430,
26944,
16,
2254,
2313,
4891,
14638,
13,
288,
203,
3639,
7561,
1119,
2502,
2893,
1119,
273,
2893,
7629,
63,
4631,
15533,
203,
203,
3... |
// File: @openzeppelin/contracts/math/Math.sol
pragma solidity ^0.5.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b... | * Adds the mainnet addresses to the CRVStrategyWBTC/ token addresses using USDC here mixed token (swerve combo Swerve.fi DAI/USDC/USDT/TUSD (swUSD)) the dao reward token for swerve swerve gauge swerve minter protocols delegate to zap | contract CRVStrategySwerveUSDCMainnet is CRVStrategySwerve {
address constant public __usdc = address(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);
address constant public __stableMix = address(0x77C6E4a580c0dCE4E5c7a17d0bc077188a83A059);
address constant public __swrv = address(0xB8BAa0e4287890a5F79863aB62b7F175... | 2,325,087 | [
1,
4625,
348,
7953,
560,
30,
380,
15605,
326,
2774,
2758,
6138,
358,
326,
6732,
58,
4525,
59,
38,
15988,
19,
1147,
6138,
1450,
11836,
5528,
2674,
7826,
1147,
261,
10667,
537,
16778,
348,
2051,
537,
18,
22056,
463,
18194,
19,
3378,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
6732,
58,
4525,
55,
2051,
537,
3378,
5528,
6376,
2758,
353,
6732,
58,
4525,
55,
2051,
537,
288,
203,
203,
225,
1758,
5381,
1071,
1001,
407,
7201,
273,
1758,
12,
20,
21703,
20,
70,
5292,
2733,
21,
71,
8898,
2643,
70,
5718... |
/*
Copyright 2019 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | * Before bidding, calculate the required amount of inflow tokens and deposit token components into this helper contract. @param _combinedTokenArray Array of token addresses @param _inflowArray Array of inflow token units/ Loop through the combined token addresses array and deposit inflow ... | function depositNonWethComponents(
address[] memory _combinedTokenArray,
uint256[] memory _inflowArray
)
private
{
for (uint256 i = 0; i < _combinedTokenArray.length; i++) {
address currentComponent = _combinedTokenArray[i];
uint256 currentComponentQua... | 12,639,652 | [
1,
4625,
348,
7953,
560,
30,
380,
11672,
324,
1873,
310,
16,
4604,
326,
1931,
3844,
434,
316,
2426,
2430,
471,
443,
1724,
1147,
4085,
1368,
333,
4222,
6835,
18,
632,
891,
225,
389,
27458,
1345,
1076,
5411,
1510,
434,
1147,
6138,
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,
443,
1724,
3989,
59,
546,
7171,
12,
203,
3639,
1758,
8526,
3778,
389,
27458,
1345,
1076,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
267,
2426,
1076,
203,
565,
262,
203,
3639,
3238,
203,
565,
288,
203,
3639,
364,
261,
... |
./full_match/80001/0xf2F9Dc580289FC127D88f6A6FeF19b0e3c99BBCd/sources/contracts/gsn/BaseRelayRecipient.sol | * A base contract to be inherited by any contract that want to receive relayed transactions A subclass must use "_msgSender()" instead of "msg.sender"/ __gap is reserved storage | abstract contract BaseRelayRecipient is IRelayRecipient {
address internal _trustedForwarder;
uint256[50] private __gap;
event TrustedForwarderUpdated(address trustedForwarder);
pragma solidity 0.7.6;
function getTrustedForwarder() external view returns (address) {
return _trustedForwarder;
... | 9,454,126 | [
1,
4625,
348,
7953,
560,
30,
380,
432,
1026,
6835,
358,
506,
12078,
635,
1281,
6835,
716,
2545,
358,
6798,
18874,
329,
8938,
432,
10177,
1297,
999,
4192,
3576,
12021,
10031,
3560,
434,
315,
3576,
18,
15330,
6,
19,
1001,
14048,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
3360,
27186,
18241,
353,
467,
27186,
18241,
288,
203,
565,
1758,
2713,
389,
25247,
30839,
31,
203,
203,
565,
2254,
5034,
63,
3361,
65,
3238,
1001,
14048,
31,
203,
203,
565,
871,
30645,
30839,
7381,
12,
2867,
13179,
308... |
/**
*Submitted for verification at Etherscan.io on 2021-08-21
*/
// SPDX-License-Identifier: GPLv3
/**
* The contract's ERC20 Token issuance is used for the F-NFT airdrop of the $EKTA IDO. All tokens will be transferred to the $EKTA IDO smart contract and the airdrop tokens can be swap to F-NFTs ( DRC1155 ) Tokens ... | * The contract's ERC20 Token issuance is used for the F-NFT airdrop of the $EKTA IDO. All tokens will be transferred to the $EKTA IDO smart contract and the airdrop tokens can be swap to F-NFTs ( DRC1155 ) Tokens of the same name at 1:1 ratio on EKTA Mainnet./ | contract StandardERC20 is ERC20 {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
constructor(string memory name_, string memory symbol_, uint amount) ERC20(nam... | 7,704,897 | [
1,
4625,
348,
7953,
560,
30,
380,
1021,
6835,
1807,
4232,
39,
3462,
3155,
3385,
89,
1359,
353,
1399,
364,
326,
478,
17,
50,
4464,
279,
6909,
1764,
434,
326,
271,
11325,
9833,
1599,
51,
18,
4826,
2430,
903,
506,
906,
4193,
358,
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,
16351,
8263,
654,
39,
3462,
353,
4232,
39,
3462,
288,
203,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12... |
./full_match/43113/0xB8A3D8e8c83B569a0405942B8E04a26244401037/sources/HelloWorld.sol | You can return memory variables do something with memory array | function g(uint[] memory _arr) public returns (uint[] memory) {
}
| 7,144,089 | [
1,
4625,
348,
7953,
560,
30,
225,
4554,
848,
327,
3778,
3152,
741,
5943,
598,
3778,
526,
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,
314,
12,
11890,
8526,
3778,
389,
5399,
13,
1071,
1135,
261,
11890,
8526,
3778,
13,
288,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/4/0xcF9C5EA1373f233F323156C2249662Cf9c60386d/sources/contracts/EURSToken.sol | * Get current nonce for token holder with given address, i.e. nonce this token holder should use for next delegated transfer. @param _owner address of the token holder to get nonce for @return current nonce for token holder with give address/ | function nonce (address _owner) public view returns (uint256) {
return nonces [_owner];
}
| 755,075 | [
1,
4625,
348,
7953,
560,
30,
380,
968,
783,
7448,
364,
1147,
10438,
598,
864,
1758,
16,
277,
18,
73,
18,
7448,
333,
1147,
10438,
1410,
999,
364,
1024,
30055,
7412,
18,
632,
891,
389,
8443,
1758,
434,
326,
1147,
10438,
358,
336,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
7448,
261,
2867,
389,
8443,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
1661,
764,
306,
67,
8443,
15533,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xec6eD05f61E2e8230081eaD6362ebCf2AC505126/sources/Stogie.sol | * @dev _withdraw harvest from the CIG factory, withdraw on behalf of _farmer, and send back the STOG/ | ) internal returns (uint256 harvested) {
UserInfo storage user = farmers[_farmer];
require(user.deposit >= _amount, "no STOG deposited");
Due to a bug in the Cig contract, we can only use emergencyWithdraw().
This will take out the entire TVL first, subtract the _amount and
d... | 15,723,409 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
389,
1918,
9446,
17895,
26923,
628,
326,
385,
3047,
3272,
16,
598,
9446,
603,
12433,
6186,
434,
565,
389,
74,
4610,
264,
16,
225,
471,
1366,
1473,
326,
2347,
13369,
19,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
2713,
1135,
261,
11890,
5034,
17895,
90,
3149,
13,
288,
203,
3639,
25003,
2502,
729,
273,
284,
4610,
414,
63,
67,
74,
4610,
264,
15533,
203,
3639,
2583,
12,
1355,
18,
323,
1724,
1545,
389,
8949,
16,
315,
2135,
2347,
1... |
/*
Copyright 2021 Empty Set Squad <emptysetsquad@protonmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | * @notice Monotonically increasing accumulator to track the reward amount per unit of staked underlying @dev Computes the current effective rewardPerUnit value as if there was a settlement now @return Effective rewards per unit/ | function rewardPerUnit() public view returns (Decimal.D256 memory) {
if (totalUnderlying == 0) {
return _rewardPerUnit;
return _rewardPerUnit
.add(Decimal.from(nowOrComplete().sub(rewardUpdated).mul(rewardRate)).div(totalUnderlying));
}
}
| 12,680,405 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9041,
352,
265,
6478,
21006,
13514,
358,
3298,
326,
19890,
3844,
1534,
2836,
434,
384,
9477,
6808,
632,
5206,
14169,
281,
326,
783,
11448,
19890,
2173,
2802,
460,
487,
309,
1915,
1703,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19890,
2173,
2802,
1435,
1071,
1476,
1135,
261,
5749,
18,
40,
5034,
3778,
13,
288,
203,
3639,
309,
261,
4963,
14655,
6291,
422,
374,
13,
288,
203,
5411,
327,
389,
266,
2913,
2173,
2802,
31,
203,
5411,
327,
389,
266,
2... |
pragma solidity 0.5.17;
interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
... | allow owner to change minter (bridge) | function setMinter(address newMinter) external onlyOwner {
minter = newMinter;
emit SetMinter(address(0), minter);
}
| 5,961,034 | [
1,
4625,
348,
7953,
560,
30,
225,
1699,
3410,
358,
2549,
1131,
387,
261,
18337,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
15430,
2761,
12,
2867,
394,
49,
2761,
13,
3903,
1338,
5541,
288,
203,
565,
1131,
387,
273,
394,
49,
2761,
31,
203,
565,
3626,
1000,
49,
2761,
12,
2867,
12,
20,
3631,
1131,
387,
1769,
203,
225,
289,
203,
2,
-100,
-10... |
// File: @onchain-id/solidity/contracts/IERC734.sol
pragma solidity ^0.6.2;
interface IERC734 {
... | Empty internal constructor, to prevent people from mistakenly deploying an instance of this contract, which should be used via inheritance. | contract Context {
return msg.sender;
constructor () internal { }
}
| 5,524,135 | [
1,
4625,
348,
7953,
560,
30,
225,
8953,
2713,
3885,
16,
358,
5309,
16951,
628,
27228,
7940,
715,
7286,
310,
392,
791,
434,
333,
6835,
16,
1492,
1410,
506,
1399,
3970,
16334,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1772,
288,
203,
203,
3639,
327,
1234,
18,
15330,
31,
203,
203,
203,
565,
3885,
1832,
2713,
288,
289,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "./WorkflowEngine.sol";
contract AddUserFlow {
address internal workflowEngineAddr;
WorkflowEngine wfe;
struct Item {
uint256 id;
address userAddr;
string twitterId;
string tweetURL;
string reque... | check to see that item is checked out to msg.sender and the status is "Approve" allow user to add a comment (but no other updates) add create user to a team in WFE (TODO) TODO: this step should allow the Team Admin to adjust the team update status to "completed?" and check item in TODO: what it should really be doing... | function approve(uint256 id, string memory comment) public {
require(wfe.getItems().length > id, "This workitem does not exist");
WorkflowEngine.WorkItem memory item = wfe.getItem(id);
item.status = "Complete";
wfe.setItem(id, item);
wfe.setTwitterId(items[id].userAddr, it... | 14,050,521 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
358,
2621,
716,
761,
353,
5950,
596,
358,
1234,
18,
15330,
471,
326,
1267,
353,
315,
12053,
537,
6,
1699,
729,
358,
527,
279,
2879,
261,
12885,
1158,
1308,
4533,
13,
527,
752,
729,
358,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11890,
5034,
612,
16,
533,
3778,
2879,
13,
1071,
288,
203,
3639,
2583,
12,
91,
3030,
18,
588,
3126,
7675,
2469,
405,
612,
16,
315,
2503,
26409,
1552,
486,
1005,
8863,
203,
203,
203,
3639,
11363,
4410,
1... |
//Address: 0x04f062809b244e37e7fdc21d9409469c989c2342
//Contract name: Joyso
//Balance: 230.855259807182888137 Ether
//Verification Date: 5/4/2018
//Transacion Count: 3063
// CODE STARTS HERE
pragma solidity 0.4.19;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authoriz... | * @notice withdraw funds directly from contract @notice must claim by lockme first, after a period of time it would be valid @param token The address of withdrawed token, using address(0) to withdraw Ether @param amount The amount of token to withdraw/ | function withdraw(address token, uint256 amount) external {
require(amount > 0);
require(getTime() > userLock[msg.sender] && userLock[msg.sender] != 0);
balances[token][msg.sender] = balances[token][msg.sender].sub(amount);
if (token == 0) {
msg.sender.transfer(amount);
... | 900,926 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
598,
9446,
284,
19156,
5122,
628,
6835,
632,
20392,
1297,
7516,
635,
2176,
3501,
1122,
16,
1839,
279,
3879,
434,
813,
518,
4102,
506,
923,
632,
891,
1147,
1021,
1758,
434,
598,
9446,
329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
598,
9446,
12,
2867,
1147,
16,
2254,
5034,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
8949,
405,
374,
1769,
203,
3639,
2583,
12,
588,
950,
1435,
405,
729,
2531,
63,
3576,
18,
15330,
65,
597,
729,
2531,
63,
3576,
18,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/IMasterChef.sol";
import "./interfaces/IVault.sol";
import "./interfaces/ILockManager.sol";
import "./interfaces/IERC20Extended.sol";
import "./lib/SafeERC20.sol";
import "./lib/ReentrancyGuard.sol";
/**
* @title RewardsManager
* @dev Cont... | * @dev Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions ma... | abstract contract ReentrancyGuard {
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
pragma solidity ^0.8.0;
constructor() {
_status = _NOT_ENTERED;
}
modifier nonReentrant() {
require(_status != _ENTERED, "ReentrancyG... | 212,398 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
1605,
716,
21814,
5309,
283,
8230,
970,
4097,
358,
279,
445,
18,
25953,
310,
628,
1375,
426,
8230,
12514,
16709,
68,
903,
1221,
326,
288,
5836,
426,
8230,
970,
97,
9606,
2319,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
868,
8230,
12514,
16709,
288,
203,
203,
565,
2254,
5034,
3238,
5381,
389,
4400,
67,
12278,
2056,
273,
404,
31,
203,
565,
2254,
5034,
3238,
5381,
389,
12278,
2056,
273,
576,
31,
203,
203,
565,
2254,
5034,
3238,
389,
2... |
./partial_match/1/0x5913dCe2041A2607D9Ee7d0374B88AD00BEc2dc0/sources/CarGaiaToken.sol | Total: 18% + 15% = 33% Unlock: 15%*100% = 15%Total: 6% + 6% = 12% Unlock: 6%*5% + 6%*5% = 0.6%Total: 5% Unlock: 0Total: 20% Unlock: 20%*2% = 0.4%Total: 15% Unlock: 15%*5% = 0.75%Total: 15% Unlock: 0 | address _ecosystem,address _foundation,address _team) {
totalSupply = _initialSupply;
name = _name;
symbol = _symbol;
decimals = _decimals;
initTime = block.timestamp;
sale = _sale;
community = _community;
advisor = _advisor;
ecosystem = _ecosystem;
foundation = _foundat... | 4,091,701 | [
1,
4625,
348,
7953,
560,
30,
10710,
30,
6549,
9,
397,
4711,
9,
273,
13159,
9,
282,
3967,
30,
4711,
9,
14,
6625,
9,
273,
4711,
9,
5269,
30,
1666,
9,
397,
1666,
9,
273,
2593,
9,
282,
3967,
30,
1666,
9,
14,
25,
9,
397,
1666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
2867,
389,
557,
538,
1108,
16,
2867,
389,
30493,
16,
2867,
389,
10035,
13,
288,
203,
203,
3639,
2078,
3088,
1283,
273,
389,
6769,
3088,
1283,
31,
203,
3639,
508,
273,
389,
529,
31,
203,
3639,
3273,
273,
389,
7175,
31,... |
./full_match/1/0x4D9f950161346325CBdD88Cfb469f3378D1d94C6/sources/contracts/rewards/YOPRewards.sol | Use the vault decimal here to improve the calculation precision as this value will be devided by the totalSupply of the vault. If there is a big different between the YOP decimals and the vault decimals then the calculation won't be very accurate. poolState data is up to date, just return it Start from where last time... | function _calculatePoolState(address _pool) internal view returns (PoolRewardsState memory) {
PoolRewardsState memory poolState = poolRewardsState[_pool];
if (poolState.timestamp == 0) {
poolState.timestamp = _getEpochStartTime();
poolState.epochRate = FIRST_EPOCH_EMISSION * (10**_getPoolDecimals(... | 5,017,087 | [
1,
4625,
348,
7953,
560,
30,
225,
2672,
326,
9229,
6970,
2674,
358,
21171,
326,
11096,
6039,
487,
333,
460,
903,
506,
443,
13548,
635,
326,
2078,
3088,
1283,
434,
326,
9229,
18,
971,
1915,
353,
279,
5446,
3775,
3086,
326,
1624,
3665... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
11162,
2864,
1119,
12,
2867,
389,
6011,
13,
2713,
1476,
1135,
261,
2864,
17631,
14727,
1119,
3778,
13,
288,
203,
565,
8828,
17631,
14727,
1119,
3778,
2845,
1119,
273,
2845,
17631,
14727,
1119,
63,
67,
6011,
15533,
20... |
./full_match/80001/0xd95E3E2EF97C7473C411572e7598221CBbE9DeC4/sources/verified-sources/0x4BFf4685CCec728De3A5E3E6069440fA61f80013/sources/TreasurySender.sol | uint256 decimals = getUSDCDecimals(); | function convertWeiToUSDCAmount(uint256 amount)
public
pure
returns (uint256)
{
return (amount * (10**6)) / 1e18;
}
| 872,824 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
15105,
273,
336,
3378,
5528,
31809,
5621,
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,
1765,
3218,
77,
774,
3378,
40,
3587,
4778,
12,
11890,
5034,
3844,
13,
203,
3639,
1071,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
203,
3639,
327,
261,
8949,
380,
261,
2163,
636,
26,
3... |
// File: contracts/interfaces/ILiquidationManager.sol
pragma solidity 0.6.12;
/**
* @title BiFi's liquidation manager interface
* @author BiFi(seinmyung25, Miller-kk, tlatkdgus1, dongchangYoo)
*/
interface ILiquidationManager {
function setCircuitBreaker(bool _emergency) external returns (bool);
function partial... | * @title BiFi's oracle proxy interface @author BiFi(seinmyung25, Miller-kk, tlatkdgus1, dongchangYoo)/ | interface IOracleProxy {
function getTokenPrice(uint256 tokenID) external view returns (uint256);
function getOracleFeed(uint256 tokenID) external view returns (address, uint256);
function setOracleFeed(uint256 tokenID, address feedAddr, uint256 decimals, bool needPriceConvert, uint256 priceConvertID) external ret... | 1,712,362 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
16682,
42,
77,
1807,
20865,
2889,
1560,
632,
4161,
16682,
42,
77,
12,
307,
267,
4811,
20651,
2947,
16,
490,
24462,
17,
79,
79,
16,
268,
4801,
79,
72,
75,
407,
21,
16,
302,
932,
24083,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5831,
1665,
16873,
3886,
225,
288,
203,
202,
915,
9162,
5147,
12,
11890,
5034,
1147,
734,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
202,
915,
17971,
16873,
8141,
12,
11890,
5034,
1147,
734,
13,
3903,
1476,
1135,
261,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "../ManagerProxyTarget.sol";
import "./IBondingManager.sol";
import "../libraries/SortedDoublyLL.sol";
import "../libraries/MathUtils.sol";
import "../libraries/PreciseMathUtils.sol";
import "./libraries/EarningsPool.sol";
import "./libraries/EarningsPoolLI... | The transcoder's cumulative rewards that are active in the current round
| uint256 activeCumulativeRewards; | 13,004,476 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
906,
3396,
1807,
15582,
283,
6397,
716,
854,
2695,
316,
326,
783,
3643,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2695,
39,
11276,
17631,
14727,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.5.0;
import "ds-token/token.sol";
import "ds-chief/chief.sol";
/// @dev Vote MKR tokens with a hot key and ensure all assets are returned to a cold key.
/// Expected flow: originate a contract with hot, cold keys; pointed to an active DSChief
/// voting contract. Deposits funds directly in this co... | @dev Return all funds to the cold key. Once this is called, the contract is intended to be no longer in use (don't deposit funds into this contract after release). Exchange all IOUs for GOV (MKR) Send all GOV (MKR) to the cold key | function release() public auth {
chief.free(chief.deposits(address(this)));
gov.push(cold, gov.balanceOf(address(this)));
}
| 5,499,799 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2000,
777,
284,
19156,
358,
326,
645,
72,
498,
18,
12419,
333,
353,
2566,
16,
326,
6835,
353,
12613,
358,
506,
1158,
7144,
316,
999,
261,
19752,
1404,
443,
1724,
284,
19156,
1368,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
3992,
1435,
1071,
1357,
288,
203,
565,
462,
28515,
18,
9156,
12,
17384,
74,
18,
323,
917,
1282,
12,
2867,
12,
2211,
3719,
1769,
203,
203,
565,
31841,
18,
6206,
12,
1293,
72,
16,
31841,
18,
12296,
951,
12,
2867,
12,
... |
pragma solidity ^0.4.18;
// File: contracts-origin/AetherAccessControl.sol
/// @title A facet of AetherCore that manages special access privileges.
/// @dev See the AetherCore contract documentation to understand how the various contract facets are arranged.
contract AetherAccessControl {
// This facet controls a... | @notice Returns the address currently assigned ownership of a given Property. @dev Required for ERC-721 compliance. | function ownerOf(uint256 _tokenId)
public
view
returns (address owner)
{
owner = propertyIndexToOwner[_tokenId];
require(owner != address(0));
}
| 1,090,849 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2860,
326,
1758,
4551,
6958,
23178,
434,
279,
864,
4276,
18,
632,
5206,
10647,
364,
4232,
39,
17,
27,
5340,
29443,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
951,
12,
11890,
5034,
389,
2316,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
2867,
3410,
13,
203,
565,
288,
203,
3639,
3410,
273,
1272,
1016,
774,
5541,
63,
67,
2316,
548,
15533,
203,
203,
3... |
pragma solidity ^0.4.15;
/**
* @title Ownable contract - base contract with an owner
*/
contract Ownable {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
/**
* @dev The Ownable constructor sets the original `owner`... | * @dev Finalize a succcesful crowdsale./ | function finalize() public inState(State.Success) onlyOwner stopInEmergency {
require(block.timestamp >= (endsAt+periodStage));
require(!finalized);
finalizeCrowdsale();
finalized = true;
}
| 6,416,764 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
30740,
279,
21043,
764,
2706,
276,
492,
2377,
5349,
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... | [
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,
12409,
1435,
1071,
316,
1119,
12,
1119,
18,
4510,
13,
1338,
5541,
2132,
382,
1514,
24530,
288,
203,
565,
2583,
12,
2629,
18,
5508,
1545,
261,
5839,
861,
15,
6908,
8755,
10019,
203,
565,
2583,
12,
5,
6385,
1235,
1769,
... |
./partial_match/1313161554/0x29556fA1ECF58a046A17860C9140036F83f5c76C/sources/StratAuroraSwapV6.sol | pauses deposits and withdraws all funds from third party systems. | function panic() external onlyManager {
pause();
IAuroraSwapChef(masterchef).emergencyWithdraw(poolId);
emit panicking();
}
| 16,941,326 | [
1,
4625,
348,
7953,
560,
30,
225,
6790,
6117,
443,
917,
1282,
471,
598,
9446,
87,
777,
284,
19156,
628,
12126,
18285,
14908,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3933,
1435,
3903,
1338,
1318,
288,
203,
3639,
11722,
5621,
203,
3639,
467,
37,
25225,
12521,
39,
580,
74,
12,
7525,
343,
10241,
2934,
351,
24530,
1190,
9446,
12,
6011,
548,
1769,
203,
3639,
3626,
2800,
1200,
310,
5621,
... |
/**
*Submitted for verification at Etherscan.io on 2022-01-10
*/
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implemente... | * @dev Returns the total amount of tokens stored by the contract./* @dev Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens./* @dev Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {tot... | abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
mapping(uint256 => uint256) private _ownedTokensIndex;
uint256[] private _allTokens;
mapping(uint256 => uint256) private _allTokensIndex;
function _beforeTokenT... | 15,150,270 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
2078,
3844,
434,
2430,
4041,
635,
326,
6835,
18,
20308,
632,
5206,
2860,
279,
1147,
1599,
16199,
635,
1375,
8443,
68,
622,
279,
864,
1375,
1615,
68,
434,
2097,
1147,
666,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
3572,
25121,
353,
4232,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
3572,
25121,
288,
203,
565,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
2254,
5034,
3719,
3238,
389,
995,
329,
5157,
31,
20... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUp... | * @dev Emits when the payment ERC20 contract address is set @param tokenERC20 - an address to the payment ERC20 contract/ | event ERC20Set(IERC20Upgradeable tokenERC20);
| 6,483,247 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7377,
1282,
1347,
326,
5184,
4232,
39,
3462,
6835,
1758,
353,
444,
632,
891,
1147,
654,
39,
3462,
300,
392,
1758,
358,
326,
5184,
4232,
39,
3462,
6835,
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,
871,
4232,
39,
3462,
694,
12,
45,
654,
39,
3462,
10784,
429,
1147,
654,
39,
3462,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x94D792E07216796Cb235E328823199fb8DA3C911/sources/src/manager/IManager.sol | EVENTS @notice Emitted when a DAO is deployed @param token The ERC-721 token address @param metadata The metadata renderer address @param auction The au... | struct FounderParams {
address wallet;
uint256 ownershipPct;
uint256 vestExpiry;
}
| 3,052,239 | [
1,
4625,
348,
7953,
560,
30,
28524,
15604,
9964,
55,
28524,
10402,
632,
20392,
512,
7948,
1347,
279,
463,
20463,
353,
19357,
632,
891,
1147,
1021,
4232,
39,
17,
27,
5340,
1147,
1758,
632,
891,
1982,
1021,
1982,
5690,
1758,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
1958,
478,
465,
765,
1370,
288,
203,
3639,
1758,
9230,
31,
203,
3639,
2254,
5034,
23178,
52,
299,
31,
203,
3639,
2254,
5034,
331,
395,
14633,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0x5fe5b7546d1628f7348b023a0393de1fc825a4fd
//Contract name: Roulette
//Balance: 1.1004 Ether
//Verification Date: 5/14/2017
//Transacion Count: 453
// CODE STARTS HERE
contract Roulette {
// Global variables
string sWelcome;
/* Remark:
* Private Seed for generateRand(),
* si... | Remark: Private Seed for generateRand(), since this is nowhere visibile, it's very hard to guess./ | struct Casino {
address addr;
uint balance;
uint bettingLimitMin;
uint bettingLimitMax;
}
Casino casino;
| 5,440,322 | [
1,
4625,
348,
7953,
560,
30,
225,
2663,
1313,
30,
225,
8726,
28065,
364,
2103,
54,
464,
9334,
225,
3241,
333,
353,
2037,
14852,
2281,
495,
398,
16,
225,
518,
1807,
8572,
7877,
358,
7274,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
23561,
15020,
288,
203,
3639,
1758,
3091,
31,
203,
3639,
2254,
11013,
31,
203,
3639,
2254,
2701,
1787,
3039,
2930,
31,
203,
3639,
2254,
2701,
1787,
3039,
2747,
31,
203,
565,
289,
203,
565,
23561,
15020,
8697,
15020,
31,
... |
./full_match/4/0x84E41F6306bd0d9456AB981528d2657f67B954DE/sources/FlashbotsWithGasV2V3.sol | Before this function ,approve is neededrequire(path.length-exchanges.length==1 ,'wrong path and exchange nums');require(path[0]==path[path.length-1],'Ist no a cycle'); | function arbitrageV2V3(
address[] memory path,
uint[] memory exchanges,
uint24[] memory fees,
uint amountIn,
uint pppGascost
) public payable {
TransferHelper.safeTransferFrom(
path[0],
msg.sender,
... | 12,500,025 | [
1,
4625,
348,
7953,
560,
30,
11672,
333,
445,
269,
12908,
537,
353,
3577,
6528,
12,
803,
18,
2469,
17,
338,
6329,
18,
2469,
631,
21,
269,
11,
21530,
589,
471,
7829,
21060,
8284,
6528,
12,
803,
63,
20,
65,
631,
803,
63,
803,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10056,
86,
410,
58,
22,
58,
23,
12,
203,
3639,
1758,
8526,
3778,
589,
16,
203,
3639,
2254,
8526,
3778,
431,
6329,
16,
203,
3639,
2254,
3247,
8526,
3778,
1656,
281,
16,
203,
3639,
2254,
3844,
382,
16,
203,
3639,
2254,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) extern... | MainnetISushiSwapPoolNames names = ISushiSwapPoolNames(0xb373a5def62A907696C0bBd22Dc512e2Fc8cfC7E);IMasterChef masterChef = IMasterChef(0xc2EdaD668740f1aA35E4D8f227fB8E17dcA888Cd); Ropsten | contract SushiSwapBaseInfo is Ownable {
ISushiSwapPoolNames names = ISushiSwapPoolNames(0x7685f4c573cE27C94F6aF70B330C29b9c41B8290);
IMasterChef masterChef = IMasterChef(0xFF281cEF43111A83f09C656734Fa03E6375d432A);
function setContracts(address names_, address masterChef_) public onlyOwner {
... | 6,401,218 | [
1,
4625,
348,
7953,
560,
30,
225,
12740,
2758,
5127,
1218,
77,
12521,
2864,
1557,
1257,
273,
4437,
1218,
77,
12521,
2864,
1557,
12,
20,
6114,
6418,
23,
69,
25,
536,
8898,
37,
9349,
6669,
10525,
39,
20,
70,
38,
72,
3787,
40,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1218,
77,
12521,
2171,
966,
353,
14223,
6914,
288,
203,
377,
203,
565,
4437,
1218,
77,
12521,
2864,
1557,
1257,
273,
4437,
1218,
77,
12521,
2864,
1557,
12,
20,
92,
6669,
7140,
74,
24,
71,
25,
9036,
71,
41,
5324,
39,... |
pragma solidity 0.4.18;
/// @title ERC Token Standard #20 Interface (https://github.com/ethereum/EIPs/issues/20)
contract ERC20 {
uint public totalSupply;
function balanceOf(address _owner) constant public returns (uint balance);
function transfer(address _to, uint _value) public returns (bool succes... | @dev helper function to fetch market maker contract address deploed with the CC @param _token address token address for this issuance (same as CC adress) | function getMarketMakerAddressFromToken(address _token) public constant returns (address) {
return currencyMap[_token].mmAddress;
}
| 1,809,722 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4222,
445,
358,
2158,
13667,
312,
6388,
6835,
1758,
5993,
383,
329,
598,
326,
16525,
632,
891,
389,
2316,
1758,
1147,
1758,
364,
333,
3385,
89,
1359,
261,
14307,
487,
16525,
1261,
663,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
23232,
278,
12373,
1887,
1265,
1345,
12,
2867,
389,
2316,
13,
1071,
5381,
1135,
261,
2867,
13,
288,
203,
282,
202,
2463,
5462,
863,
63,
67,
2316,
8009,
7020,
1887,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIXED
// File @violinio/defi-interfaces/contracts/IPancakeSwapMC.sol@v0.0.8
// License-Identifier: MIT
pragma solidity ^0.8.0;
interface IPancakeSwapMC {
function BONUS_MULTIPLIER() external view returns (uint256);
function deposit(uint256 _pid, uint256 _amount) external;
fu... | @notice Lists the project hashes within a specific range in the listing. | function getProjects(uint256 from, uint256 amount)
public
view
returns (bytes32[] memory)
{
return getPaginated(projects, from, amount);
}
| 993,933 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
11592,
326,
1984,
9869,
3470,
279,
2923,
1048,
316,
326,
11591,
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,
... | [
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,
11080,
87,
12,
11890,
5034,
628,
16,
2254,
5034,
3844,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
3890,
1578,
8526,
3778,
13,
203,
565,
288,
203,
3639,
327,
27846,
7458,
12,
13582,
16,
628,
16,
3844,
... |
pragma solidity ^0.8.4;
contract Rx {
//structure to hold the details of a prescriber
struct Prescriber {
string name; //name of prescriber
string mcr; //MCR of prescriber
string clinicName; //name of clinic
string clinicAddress; //address of clinic
address addr; //address of prescriber
bo... | get list of patient prescriptions | function getPatientPrescrptionList(address _addr) public view returns (uint[] memory) {
return patientStructs[_addr].prescriptionList;
}
| 12,703,369 | [
1,
4625,
348,
7953,
560,
30,
336,
666,
434,
18608,
4075,
22203,
573,
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,
225,
445,
1689,
270,
1979,
12236,
3353,
375,
682,
12,
2867,
389,
4793,
13,
1071,
1476,
1135,
261,
11890,
8526,
3778,
13,
288,
203,
565,
327,
18608,
3823,
87,
63,
67,
4793,
8009,
12202,
24136,
682,
31,
203,
225,
289,
203,
2,
-10... |
// Copyright 2021 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ... | ether balance of L2 addresses | mapping(address => uint256) etherBalanceOf;
| 12,941,459 | [
1,
4625,
348,
7953,
560,
30,
225,
2437,
11013,
434,
511,
22,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
225,
2437,
13937,
951,
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... |
./full_match/43113/0xE9Cc97730a4e951BbfF27bbE998282cE73579C72/sources/contracts/onChainFeeds/UmbrellaFeedsReader.sol | @dev same as `getPriceData` but does not revert when no data | function getPriceDataRaw() external view returns (IUmbrellaFeeds.PriceData memory) {
return UMBRELLA_FEEDS.getPriceDataRaw(KEY);
}
| 7,206,394 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1967,
487,
1375,
588,
5147,
751,
68,
1496,
1552,
486,
15226,
1347,
1158,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
25930,
751,
4809,
1435,
3903,
1476,
1135,
261,
45,
57,
1627,
2878,
11821,
8141,
87,
18,
5147,
751,
3778,
13,
288,
203,
3639,
327,
587,
7969,
15868,
2534,
67,
29195,
55,
18,
588,
5147,
751,
4809,
12,
3297,
1769,
203,
5... |
./full_match/56/0xa65B23cA853CcEd962016B841BFF9D9C2699dF14/sources/project_/contracts/diamond/facets/TradingCheckerFacet.sol | pair OI check open lost check pair OI check open lost check | function marketTradeCallbackCheck(
ITrading.PendingTrade memory pt, uint256 marketPrice
) external view returns (bool result, uint96 openFee, uint96 executionFee, uint256 entryPrice, Refund refund) {
if (pt.blockNumber + Constants.FEED_DELAY_BLOCK < block.number) {
return (false, 0, ... | 3,239,628 | [
1,
4625,
348,
7953,
560,
30,
225,
3082,
531,
45,
866,
1696,
13557,
866,
3082,
531,
45,
866,
1696,
13557,
866,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
13667,
22583,
2428,
1564,
12,
203,
3639,
467,
1609,
7459,
18,
8579,
22583,
3778,
5818,
16,
2254,
5034,
13667,
5147,
203,
565,
262,
3903,
1476,
1135,
261,
6430,
563,
16,
2254,
10525,
1696,
14667,
16,
2254,
10525,
4588,
146... |
/*
Telegram: https://t.me/whalecumofficial
Website: https://whalecum.net/
WhaleCum will launch without a presale, neither private nor public, with anti bot measures in place. Liquidity will be provided by the devs, who will be rewarded by a 5-6% transaction fee directly in Ethereum to prevent dumping. The devs will ... | Create a uniswap pair for this new token set the rest of the contract variables | constructor(address payable addr1, address payable addr2) {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
... | 1,254,853 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
444,
326,
3127,
434,
326,
6835,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
8843,
429,
3091,
21,
16,
1758,
8843,
429,
3091,
22,
13,
288,
203,
540,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
... |
./full_match/42161/0xD2B171AC091a16572e154D750686410805482C70/sources/https_/github.com/Rari-Capital/solmate/blob/main/src/mixins/ERC4626.sol | @notice Minimal ERC4626 tokenized Vault implementation. @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/mixins/ERC4626.sol) | abstract contract ERC4626 is ERC20 {
using SafeTransferLib for ERC20;
using FixedPointMathLib for uint256;
EVENTS
event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares);
event Withdraw(
address indexed caller,
addr... | 16,308,871 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
5444,
2840,
4232,
39,
8749,
5558,
26073,
17329,
4471,
18,
632,
4161,
348,
355,
81,
340,
261,
4528,
2207,
6662,
18,
832,
19,
54,
12954,
17,
4664,
7053,
19,
18281,
81,
340,
19,
10721,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
8749,
5558,
353,
4232,
39,
3462,
288,
203,
565,
1450,
14060,
5912,
5664,
364,
4232,
39,
3462,
31,
203,
565,
1450,
15038,
2148,
10477,
5664,
364,
2254,
5034,
31,
203,
203,
4766,
9964,
55,
203,
203,
565,
871,... |
pragma solidity 0.5.9; // optimization enabled, runs: 10000, evm: constantinople
/**
* @title HomeWork Interface (version 1) - EIP165 ID 0xe5399799
* @author 0age
* @notice Homework is a utility to find, share, and reuse "home" addresses for
* contracts. Anyone can work to find a new home address by searching for... | * @notice Transfer control over deployment to the home address corresponding to a given derived key to the null address, which will prevent it from being deployed to again in the future. The caller must be designated as the current controller of the home address - This condition can be checked by calling `getHomeAddres... | function deriveKeyAndRelinquishControl(bytes32 salt)
returns (bytes32 key)
{
key = _deriveKey(salt, msg.sender);
HomeAddress storage home = _home[key];
if (home.exists) {
require(home.controller == msg.sender, _ONLY_CONTROLLER);
}
home.controller = address(0);
}
| 15,817,852 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
12279,
3325,
1879,
6314,
358,
326,
6382,
1758,
4656,
358,
279,
864,
10379,
498,
358,
326,
446,
1758,
16,
1492,
903,
5309,
518,
628,
3832,
19357,
358,
3382,
316,
326,
3563,
18,
1021,
4894... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
14763,
653,
1876,
1971,
267,
372,
1468,
3367,
12,
3890,
1578,
4286,
13,
203,
565,
1135,
261,
3890,
1578,
498,
13,
203,
225,
288,
203,
565,
498,
273,
389,
765,
688,
653,
12,
5759,
16,
1234,
18,
15330,
1769,
203,
203,
... |
./full_match/80001/0x3F2b72B9D52651B4dcdB99d1AB1736aC889e6e38/sources/contracts/mixins/MixinLockMetadata.sol | * @notice A distinct Uniform Resource Identifier (URI) for a given asset. @param _tokenId The iD of the token for which we want to retrieve the URI. If 0 is passed here, we just return the appropriate baseTokenURI. If a custom URI has been set we don't return the lock address. It may be included in the custom baseTok... | function tokenURI(
uint256 _tokenId
) external
view
returns(string memory)
{
string memory URI;
string memory tokenId;
string memory lockAddress = address(this).address2Str();
string memory seperator;
if(_tokenId != 0) {
tokenId = _tokenId.uint2Str();
tokenId = '';
... | 9,486,875 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
20392,
432,
10217,
1351,
6854,
2591,
10333,
261,
3098,
13,
364,
279,
864,
3310,
18,
632,
891,
389,
2316,
548,
1021,
277,
40,
434,
326,
1147,
225,
364,
1492,
732,
2545,
358,
4614,
326,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1147,
3098,
12,
203,
565,
2254,
5034,
389,
2316,
548,
203,
225,
262,
3903,
203,
565,
1476,
203,
565,
1135,
12,
1080,
3778,
13,
203,
225,
288,
203,
565,
533,
3778,
3699,
31,
203,
565,
533,
3778,
1147,
548,
31,
203,
5... |
pragma solidity ^0.5.15;
pragma experimental ABIEncoderV2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount... | This is so we can be sure the FEB contract exited
| require(wethBalance > 100*(10**18), "Not enough ETH"); | 1,744,776 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
1427,
732,
848,
506,
3071,
326,
16439,
38,
6835,
21590,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
91,
546,
13937,
405,
2130,
21556,
2163,
636,
2643,
3631,
315,
1248,
7304,
512,
2455,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
pragma experimental ABIEncoderV2;
import "../Interfaces.sol";
import "./SimpleStaking.sol";
import "../utils/DAOUpgradeableContract.sol";
import "./UniswapV2SwapHelper.sol";
/**
* @title DonationStaking contract that receives funds in ETH/StakingToken
* and... | * @dev internal method to buy stakingToken from uniswap @return eth value converted/buy from uniwasp | function _buyStakingToken() internal returns (uint256) {
uint256 ethBalance = address(this).balance;
if (ethBalance == 0) return 0;
uint256 safeAmount = IHasRouter(this).maxSafeTokenAmount(
address(0x0),
address(stakingToken),
ethBalance,
maxLiquidityPercentageSwap
);
IHasRouter(this).swap(
et... | 12,866,683 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2713,
707,
358,
30143,
384,
6159,
1345,
628,
640,
291,
91,
438,
632,
2463,
13750,
460,
5970,
19,
70,
9835,
628,
7738,
17416,
84,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
389,
70,
9835,
510,
6159,
1345,
1435,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
11890,
5034,
13750,
13937,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
202,
202,
430,
261,
546,
13937,
422,
374,
13,
327,
374,
... |
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 pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
... | 0.0001 ether = 10^14 wei
| uint256 public minAcceptEther = 100000000000000; | 12,727,816 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
18,
13304,
225,
2437,
273,
1728,
66,
3461,
732,
77,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1071,
1131,
5933,
41,
1136,
273,
2130,
12648,
2787,
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,
... |
pragma solidity ^0.4.25;
contract Olympus {
mapping (address => uint256) public invested;
mapping (address => uint256) public atBlock;
address techSupport = 0x9BeE4317c50f66332DA95238AF079Be40a40eaa2;
uint techSupportPercent = 2;
uint refPercent = 3;
uint refBack = 3;
// calcul... | transfer default percents of invested | function transferDefaultPercentsOfInvested(uint value) private {
techSupport.transfer(value * techSupportPercent / 100);
} else {
}
| 1,789,657 | [
1,
4625,
348,
7953,
560,
30,
225,
7412,
805,
5551,
87,
434,
2198,
3149,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1868,
8410,
87,
951,
3605,
3149,
12,
11890,
460,
13,
3238,
288,
203,
3639,
13878,
6289,
18,
13866,
12,
1132,
380,
13878,
6289,
8410,
342,
2130,
1769,
203,
3639,
289,
469,
288,
203,
565,
289,
203,
2,
-100,
-100,
... |
pragma solidity ^0.4.23;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address publi... | * updateUserClaimInBulk updates multiple users claim status and adds token to their wallet/ | function updateUserClaimInBulk(address[] _userAddresses, uint256[] _tokens)
external onlyOwner returns (bool)
{
require(_userAddresses.length == _tokens.length);
for (uint16 i = 0; i < _userAddresses.length; i++) {
claimedTokens[_userAddresses[i]] = claimedTokens[_userAddres... | 5,364,968 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
28213,
9762,
382,
13112,
4533,
3229,
3677,
7516,
1267,
471,
4831,
1147,
358,
3675,
9230,
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,
445,
28213,
9762,
382,
13112,
12,
2867,
8526,
389,
1355,
7148,
16,
2254,
5034,
8526,
389,
7860,
13,
203,
3639,
3903,
1338,
5541,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2583,
24899,
1355,
7148,
18,
2469,
422,
389,
786... |
./partial_match/1/0x33691124f7f1D9545AC3F19f5c98375b3648AA6d/sources/DonPepeToken.sol | in percent 1 = 1%;
| uint256 public TAX_PERCENT = 1; | 2,645,752 | [
1,
4625,
348,
7953,
560,
30,
225,
316,
5551,
404,
273,
404,
9,
31,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
399,
2501,
67,
3194,
19666,
273,
404,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x74a8AB24A23D7fCD9E46b910f1D15e4F622B6306/sources/PeaceCoinNoteToken.sol | * @dev Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`./ After 2026/12/31-23:59:59(UTC UNIX TIME 1798729190) is arrived, the mint() function will not work anymore. Peace Coin Token Total Supply is up to 100,000,000,000 token. | function mint(address to, uint256 amount) public {
require(hasRole(MINTER_ROLE, _msgSender()), "ERC20MinterPauser: must have minter role to mint");
require(block.timestamp <= MINT_END_TIME);
require(totalSupply() < TOKEN_CAP);
_mint(to, amount);
... | 9,224,832 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
394,
2430,
364,
1375,
869,
8338,
2164,
288,
654,
39,
3462,
17,
67,
81,
474,
5496,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
6236,
2560,
67,
16256,
8338,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
288,
203,
540,
203,
3639,
2583,
12,
5332,
2996,
12,
6236,
2560,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
315,
654,
39,
3462,
49,
2761,
16507,
1355,
30,
1297... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../reputation/IR... | * ================================ 2. ACCEPT COLLATERAL (FOR PAWNSHOP PACKAGE WORKFLOWS) ============================= */* @dev create contract between package and collateral @param _collateralId is id of collateral @param _packageId is id of package @param _loanAmount is number of loan amout for lend @param _excha... | function generateContractForCollateralAndPackage(
uint256 _collateralId,
uint256 _packageId,
uint256 _loanAmount,
uint256 _exchangeRate
) external whenNotPaused onlyOperator
{
(
PawnShopPackage storage pawnShopPackage,
Collateral storage collat... | 13,053,802 | [
1,
4625,
348,
7953,
560,
30,
380,
28562,
26678,
576,
18,
29749,
5597,
12190,
654,
1013,
261,
7473,
15662,
5665,
2664,
3665,
23599,
17062,
42,
1502,
2651,
13,
28562,
1432,
12275,
1195,
14,
632,
5206,
752,
6835,
3086,
2181,
471,
4508,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2103,
8924,
1290,
13535,
2045,
287,
1876,
2261,
12,
203,
3639,
2254,
5034,
389,
12910,
2045,
287,
548,
16,
203,
3639,
2254,
5034,
389,
5610,
548,
16,
203,
3639,
2254,
5034,
389,
383,
304,
6275,
16,
203,
3639,
2254,
5034... |
// Sources flattened with hardhat v2.9.3 https://hardhat.org
// File @openzeppelin/contracts/utils/Address.sol@v4.6.0
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
librar... | @notice Starts trading. Only callable by owner. Exclude from reward .2% .4% | function openTrading() public onlyOwner {
require(!tradingOpen, "trading is already open");
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
uniswapV2Router = _uniswapV2Router;
_approve(address(this), address(... | 1,521,510 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
30620,
1284,
7459,
18,
5098,
4140,
635,
3410,
18,
20760,
628,
19890,
263,
22,
9,
263,
24,
9,
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,
565,
445,
1696,
1609,
7459,
1435,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
313,
14968,
3678,
16,
315,
313,
14968,
353,
1818,
1696,
8863,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
... |
pragma solidity ^0.4.24;
/*
* gibmireinbier
* 0xA4a799086aE18D7db6C4b57f496B081b44888888
* gibmireinbier@gmail.com
*/
interface F2mInterface {
function joinNetwork(address[6] _contract) public;
// one time called
function disableRound0() public;
function activeBuy() public;
// Dividends from... | dummy slot between every 2 rounds dummy slot never win jackpot cause of min 0.1 ETH started with 3 hours timeout | function checkpoint()
private
{
Slot memory _slot;
_slot.tNumberTo = round[curRoundId].ticketSum;
slot.push(_slot);
Round memory _round;
_round.startTime = NEWROUND_WAIT_DURATION.add(block.timestamp);
_round.slideEndTime = TIMEOUT0 + _round.startTime;
... | 13,442,700 | [
1,
4625,
348,
7953,
560,
30,
225,
9609,
4694,
3086,
3614,
576,
21196,
9609,
4694,
5903,
5657,
525,
484,
13130,
4620,
434,
1131,
374,
18,
21,
512,
2455,
5746,
598,
890,
7507,
2021,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9776,
1435,
7010,
3639,
3238,
203,
565,
288,
203,
3639,
23195,
3778,
389,
14194,
31,
203,
3639,
389,
14194,
18,
88,
1854,
774,
273,
3643,
63,
1397,
11066,
548,
8009,
16282,
3495,
31,
203,
3639,
4694,
18,
6206,
24899,
14... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | его выдвинули в палату представителей (выдвинуть в)
| rus_verbs:выдвинуть{}, | 5,482,790 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
118,
145,
116,
145,
127,
225,
145,
115,
146,
238,
145,
117,
145,
115,
145,
121,
145,
126,
146,
230,
145,
124,
145,
121,
225,
145,
115,
225,
145,
128,
145,
113,
145,
124,
145,
113,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
436,
407,
67,
502,
2038,
30,
145,
115,
146,
238,
145,
117,
145,
115,
145,
121,
145,
126,
146,
230,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x16917A2eB94300820d95aaD2C054cE84Bff8309e/sources/StrategyDForceDAI.sol | Dai Stablecoin (DAI)
| address constant public want = address(0x6B175474E89094C44Da98b954EedeAC495271d0F); | 4,189,537 | [
1,
4625,
348,
7953,
560,
30,
225,
463,
10658,
934,
429,
12645,
261,
9793,
45,
13,
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,
565,
1758,
5381,
1071,
2545,
273,
1758,
12,
20,
92,
26,
38,
4033,
6564,
5608,
41,
6675,
5908,
24,
39,
6334,
40,
69,
10689,
70,
29,
6564,
41,
73,
323,
2226,
7616,
25,
5324,
21,
72,
20,
42,
1769,
1377,
2,
-100,
-100,
-100,
-1... |
./partial_match/1/0x0cF7Ecab8ae021d509b984c5649cFe9Eac7eEe9D/sources/AddressList.sol | * @dev Library for managing an enumerable variant of Solidity's type. Maps have the following properties: - Entries are added, removed, and checked for existence in constant time (O(1)). - Entries are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumerableMap for Enumerab... | library EnumerableMap {
struct MapEntry {
bytes32 _key;
bytes32 _value;
}
struct Map {
MapEntry[] _entries;
mapping(bytes32 => uint256) _indexes;
}
function _set(
Map storage map,
bytes32 key,
bytes32 value
) private returns (bool) {
... | 15,668,944 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
18694,
364,
30632,
392,
14873,
5437,
434,
348,
7953,
560,
1807,
618,
18,
19837,
1240,
326,
3751,
1790,
30,
300,
19411,
854,
3096,
16,
3723,
16,
471,
5950,
364,
15782,
316,
5381,
813,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
6057,
25121,
863,
288,
203,
203,
203,
565,
1958,
1635,
1622,
288,
203,
3639,
1731,
1578,
389,
856,
31,
203,
3639,
1731,
1578,
389,
1132,
31,
203,
565,
289,
203,
203,
565,
1958,
1635,
288,
203,
3639,
1635,
1622,
8526,
389,
... |
// SPDX-License-Identifier: MIT
pragma experimental ABIEncoderV2;
pragma solidity ^0.6.12;
import "./Interfaces/LiquidityMathModelInterface.sol";
import "./MToken.sol";
import "./Utils/ErrorReporter.sol";
import "./Utils/ExponentialNoError.sol";
import "./Utils/AssetHelpers.sol";
import "./Moartroller.sol";
import "./... | * @dev Public wrapper for transferAndLock function to move tokens of specified value to a given address and lock them for a period of time @param _to specified recipient @param _value amount being transfered to recipient @param _releaseTime time in seconds after amount will be released @param _votable flag which descri... | function transferAndLock(address _to, uint256 _value, uint256 _releaseTime, bool _votable) public virtual returns (bool) {
bool retval = false;
if(hasRole(ROLE_LOCK, _msgSender())){
retval = _transferAndLock(msg.sender, _to, _value, _releaseTime, _votable);
}
if(!retval && b_revert){
r... | 11,818,553 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7224,
4053,
364,
7412,
1876,
2531,
445,
358,
3635,
2430,
434,
1269,
460,
358,
279,
864,
1758,
471,
2176,
2182,
364,
279,
3879,
434,
813,
632,
891,
389,
869,
1269,
8027,
632,
891,
389,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
7412,
1876,
2531,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
16,
2254,
5034,
389,
9340,
950,
16,
1426,
389,
90,
352,
429,
13,
1071,
5024,
1135,
261,
6430,
13,
288,
203,
565,
1426,
5221,
273,
629,
31,
203,
565,
3... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/ut... | Manages the id and retrieves the coordinates of the Land Plot (x,y) | function width() external pure returns(uint256) {
return GRID_SIZE;
}
| 87,111 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
940,
281,
326,
612,
471,
9023,
326,
5513,
434,
326,
511,
464,
15211,
261,
92,
16,
93,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1835,
1435,
3903,
16618,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
15228,
734,
67,
4574,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.20;
/*
* ====================================*
* _____ ____ ____ _______ *
* | ___| / __ \ | \ |__ __| *
* | |___ | |__| | | / | | *
* | ___|| __ | | |\ \ | | *
* | | | | | | | | \ \ | | *
* |_| |_| |_| |_| \_\ |_| *
* =======... | ensures that the first tokens in the contract will be equally distributed meaning, no divine dump will be ever possible result: healthy longevity. are we still in the vulnerable phase? if so, enact anti early whale protocol is the customer in the ambassador list? does the customer purchase exceed the max ambassador qu... | modifier antiEarlyWhale(uint256 _amountOfEthereum){
address _customerAddress = msg.sender;
if( onlyAmbassadors && ((totalEthereumBalance() - _amountOfEthereum) <= ambassadorQuota_ )){
require(
ambassadors_[_customerAddress] == true &&
... | 236,184 | [
1,
4625,
348,
7953,
560,
30,
225,
11932,
716,
326,
1122,
2430,
316,
326,
6835,
903,
506,
1298,
1230,
16859,
12256,
16,
1158,
3739,
558,
4657,
903,
506,
14103,
3323,
563,
30,
28819,
4281,
908,
16438,
18,
854,
732,
4859,
316,
326,
331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
30959,
41,
20279,
2888,
5349,
12,
11890,
5034,
389,
8949,
951,
41,
18664,
379,
15329,
203,
3639,
1758,
389,
10061,
1887,
273,
1234,
18,
15330,
31,
203,
540,
203,
3639,
309,
12,
1338,
30706,
428,
361,
1383,
597,
14015,
... |