file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
pragma solidity 0.4.24;
/**
* @title ROC ICO Contract
*/
/**
* @title SafeMath by OpenZeppelin
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns... | Tokens are send back to creator
| require(tokenReward.transfer(beneficiary,remanent)); | 13,093,259 | [
1,
4625,
348,
7953,
560,
30,
13899,
854,
1366,
1473,
358,
11784,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2316,
17631,
1060,
18,
13866,
12,
70,
4009,
74,
14463,
814,
16,
2764,
12055,
10019,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2020-07-09
*/
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.6.2 <0.7.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on... | * @dev Increase the amount of tokens that an owner allowed to a spender. approve should be called when allowed_[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol Emits an Approval event. @param spender Th... | function increaseAllowance(address spender, uint256 addedValue) public whenNotPaused returns (bool) {
require(spender != address(0));
_allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue);
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
retu... | 1,964,665 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
657,
11908,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
6617,
537,
1410,
506,
2566,
1347,
2935,
67,
63,
67,
87,
1302,
264,
65,
422,
374,
18,
2974,
5504,
2935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
10929,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
3096,
620,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
87,
1302,
264,
480,
1758,
12,
20,
10019,
203,
3639,
389,
8151,
63,
3576,
... |
./full_match/1/0xb78c7137c075594ac11bc304eBB45fABB78560eB/sources/contracts/Apechain.sol | 2% of total supply
| uint256 public _maxTxAmount = (_tTotal * 2) / 100; | 17,057,473 | [
1,
4625,
348,
7953,
560,
30,
225,
576,
9,
434,
2078,
14467,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
389,
1896,
4188,
6275,
273,
261,
67,
88,
5269,
380,
576,
13,
342,
2130,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x179886f229F9cD52016c6dBF4BE66E18111EC6ab/sources/artifacts/contracts/lib/ConsiderationBase.sol | * @dev Internal pure function to derive required EIP-712 typehashes and other hashes during contract creation. @return nameHash The hash of the name of the contract. @return versionHash The hash of the version string of the contract. @return eip712Do... | function _deriveTypehashes()
internal
pure
returns (
bytes32 nameHash,
bytes32 versionHash,
bytes32 eip712DomainTypehash,
bytes32 offerItemTypehash,
bytes32 considerationItemTypehash,
bytes32 orderTypehash
)
... | 4,423,822 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
16618,
445,
358,
14763,
1931,
512,
2579,
17,
27,
2138,
618,
17612,
471,
1377,
1308,
9869,
4982,
6835,
6710,
18,
632,
2463,
508,
2310,
5375,
1021,
1651,
434,
326,
508,
434,
326,
6835... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
765,
688,
559,
17612,
1435,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
203,
5411,
1731,
1578,
508,
2310,
16,
203,
5411,
1731,
1578,
1177,
2310,
16,
203,
5411,
1731,
1578,
425,
625,
27,
2138,
3748,
559... |
./full_match/1/0xf7E492415383Bd7dD73096C2D90225747C2a44d2/sources/browser/IERC721Receiver.sol | * @title ERC721 token receiver interface @dev Interface for any contract that wants to support safeTransfers from ERC721 asset contracts./ | interface IERC721Receiver {
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data)
external returns (bytes4);
} | 17,036,781 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
27,
5340,
1147,
5971,
1560,
632,
5206,
6682,
364,
1281,
6835,
716,
14805,
358,
2865,
4183,
1429,
18881,
628,
4232,
39,
27,
5340,
3310,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
27,
5340,
12952,
288,
203,
565,
445,
603,
654,
39,
27,
5340,
8872,
12,
2867,
3726,
16,
1758,
628,
16,
2254,
5034,
1147,
548,
16,
1731,
745,
892,
501,
13,
203,
565,
3903,
1135,
261,
3890,
24,
1769,
203,
97,... |
// SPDX-License-Identifier: GPL-3.0-or-later
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is dis... | exactBPTInForTokensOut (per token) aO = amountOut / bptIn \ b = balance a0 = b * | -------------... | function _calcTokensOutGivenExactBptIn(
uint256[] memory balances,
uint256 bptAmountIn,
uint256 totalBPT
) internal pure returns (uint256[] memory) {
uint256 bptRatio = bptAmountIn.divDown(totalBPT);
uint256[] memory amountsOut = new uint256[](balances.length);
... | 67,494 | [
1,
4625,
348,
7953,
560,
30,
225,
5565,
38,
1856,
382,
1290,
5157,
1182,
4766,
19694,
261,
457,
1147,
13,
28524,
7734,
279,
51,
273,
3844,
1182,
5375,
342,
3639,
324,
337,
382,
540,
521,
4766,
282,
324,
273,
11013,
6647,
279,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12448,
5157,
1182,
6083,
14332,
38,
337,
382,
12,
203,
3639,
2254,
5034,
8526,
3778,
324,
26488,
16,
203,
3639,
2254,
5034,
324,
337,
6275,
382,
16,
203,
3639,
2254,
5034,
2078,
38,
1856,
203,
565,
262,
2713,
16618... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `... | If the selected chance talbles rareity is selected (biased coin) return that else return the aliases | function getResult(uint256 seed, uint8 chanceTable)
internal
view
returns (uint8)
{
uint8 result = uint8(seed) % uint8(rarities[chanceTable].length);
if (seed >> 8 < rarities[chanceTable][result]) return result;
return aliases[chanceTable][result];
}
| 374,270 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
326,
3170,
17920,
268,
287,
70,
1040,
25671,
560,
353,
3170,
261,
13266,
8905,
13170,
13,
327,
716,
469,
327,
326,
6900,
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,
565,
445,
8601,
12,
11890,
5034,
5009,
16,
2254,
28,
17920,
1388,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
28,
13,
203,
565,
288,
203,
3639,
2254,
28,
563,
273,
2254,
28,
12,
12407,
13,
738,
2254,
28,
... |
./partial_match/1/0xbaEb1D1ceD9438b81074fE2Bde67cE628954E72f/sources/skulmfers.sol | * This Helper is used to return a dynmamic value in the overriden _startTokenId() function. Extending this Helper before the ERC721A contract give us access to the herein set `startTokenId` to be returned by the overriden `_startTokenId()` function of ERC721A in the ERC721AStartTokenId mocks./ | contract StartTokenIdHelper {
uint256 public startTokenId;
constructor(uint256 startTokenId_) {
startTokenId = startTokenId_;
}
}
| 3,727,816 | [
1,
4625,
348,
7953,
560,
30,
380,
1220,
9705,
353,
1399,
358,
327,
279,
19417,
81,
301,
335,
460,
316,
326,
31736,
389,
1937,
1345,
548,
1435,
445,
18,
6419,
2846,
333,
9705,
1865,
326,
4232,
39,
27,
5340,
37,
6835,
8492,
584,
200... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3603,
1345,
548,
2276,
288,
203,
565,
2254,
5034,
1071,
787,
1345,
548,
31,
203,
203,
203,
203,
565,
3885,
12,
11890,
5034,
787,
1345,
548,
67,
13,
288,
203,
3639,
787,
1345,
548,
273,
787,
1345,
548,
67,
31,
203,
565,
... |
pragma solidity ^0.6.6;
/**
*
_____ _____ _____ _____
------------ --- --- ----------- ----------- ------------ ------------ ------------ ------------ ------------ ---- ----
************ *** *** **********... | * @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 SkyInu is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping (a... | 25,017 | [
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,
10362,
93,
382,
89,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,... |
pragma solidity ^0.4.11;
import "../Kiosk.sol";
import "./ENS/AbstractENS.sol";
import "../StandardMarket.sol";
import "../utils/strings.sol";
import "../utils/StringUtils.sol";
contract ENSMarket is StandardMarket {
using strings for *;
using StringUtils for *;
string public name = "ENS Market";
// ENS Registr... | ERROR: type should be string, got " https:github.com/Arachnid/solidity-stringutils#extracting-the-middle-part-of-a-string" | var s = name.toSlice();
| 984,362 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
6662,
18,
832,
19,
37,
354,
343,
31030,
19,
30205,
560,
17,
1080,
5471,
7,
8004,
310,
17,
5787,
17,
18661,
17,
2680,
17,
792,
17,
69,
17,
1080,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
1401,
272,
273,
508,
18,
869,
5959,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIXED
// File contracts/interfaces/IOracle.sol
// License-Identifier: MIT
pragma solidity 0.6.8;
pragma experimental ABIEncoderV2;
interface IOracle {
/// @notice Get the latest exchange rate.
/// @param data Usually abi encoded, implementation specific data that contains informati... | @dev Decode an Item into an ascii string. This will not work if the Item is a list. @param self The Item. @return The decoded string. | function toAscii(Item memory self) internal pure returns (string memory) {
require(isData(self), "Rlp.sol:Rlp:toAscii:1");
(uint256 rStartPos, uint256 len) = _decode(self);
bytes memory bts = new bytes(len);
_copyToBytes(rStartPos, bts, len);
string memory str = string(bts);
return str;
}
| 491,563 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
6209,
392,
4342,
1368,
392,
11384,
533,
18,
1220,
903,
486,
1440,
309,
326,
4342,
353,
279,
666,
18,
632,
891,
365,
1021,
4342,
18,
632,
2463,
1021,
6383,
533,
18,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
358,
21363,
12,
1180,
3778,
365,
13,
2713,
16618,
1135,
261,
1080,
3778,
13,
288,
203,
202,
202,
6528,
12,
291,
751,
12,
2890,
3631,
315,
54,
9953,
18,
18281,
30,
54,
9953,
30,
869,
21363,
30,
21,
8863,
203,
202,
20... |
./full_match/10/0x02bD0b89F7b198014425Df1a4152A2E77576c38D/sources/src/ChainlinkTrigger.sol | * @notice A trigger contract that takes two addresses: a truth oracle and a tracking oracle. This trigger ensures the two oracles always stay within the given price tolerance; the delta in prices can be equal to but not greater than the price tolerance./ | contract ChainlinkTrigger is BaseTrigger {
using FixedPointMathLib for uint256;
uint256 internal constant ZOC = 1e4;
AggregatorV3Interface public truthOracle;
AggregatorV3Interface public trackingOracle;
uint256 public priceTolerance;
uint256 public truthFrequencyTolerance;
uint256 public trackingFr... | 3,778,134 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
3080,
6835,
716,
5530,
2795,
6138,
30,
279,
16512,
20865,
471,
279,
11093,
20865,
18,
1220,
3080,
11932,
326,
2795,
578,
69,
9558,
3712,
23449,
3470,
326,
864,
6205,
10673,
31,
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,
0,
0,
0,
0,
0... | [
1,
16351,
7824,
1232,
6518,
353,
3360,
6518,
288,
203,
225,
1450,
15038,
2148,
10477,
5664,
364,
2254,
5034,
31,
203,
203,
225,
2254,
5034,
2713,
5381,
2285,
10809,
273,
404,
73,
24,
31,
203,
203,
225,
10594,
639,
58,
23,
1358,
1071... |
/**
*Submitted for verification at Etherscan.io on 2022-04-12
*/
// File: @openzeppelin/contracts/utils/Context.sol
pragma solidity ^0.8.2;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.... | addManyToAllocation(_allocations); | {
require(_cliff >= block.timestamp);
token = _token;
cliff = _cliff;
zoneInterval = _zoneInterval;
for (uint256 i = 0; i < _allocations.length; i++) {
Allocation memory allocation = _allocations[i];
require(allocation.allocation > 0, "Allocation is re... | 2,369,040 | [
1,
4625,
348,
7953,
560,
30,
225,
527,
5594,
774,
17353,
24899,
9853,
1012,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
2583,
24899,
830,
3048,
1545,
1203,
18,
5508,
1769,
203,
3639,
1147,
273,
389,
2316,
31,
203,
3639,
927,
3048,
273,
389,
830,
3048,
31,
203,
3639,
4157,
4006,
273,
389,
3486,
4006,
31,
203,
3639,
364,
261,
... |
./full_match/1/0x06ac03D295F04F21Ab862bb40672f79f6e4e802D/sources/browser/Untitled.sol | Creating a contract Declaring a dynamic array Declaring state variable Defining function to demonstrate 'Do-While loop' | contract satisfied {
uint[] appoint;
uint8 satellite = 15;
function loop(
) public returns(uint[] memory){
do{
satellite++;
appoint.push();
}while(satellite == 5) ;
return appoint;
} }
) public returns(uint[] memory){
do{
... | 2,949,146 | [
1,
4625,
348,
7953,
560,
30,
225,
21837,
279,
6835,
16110,
5968,
279,
5976,
526,
16110,
5968,
919,
2190,
18003,
310,
445,
358,
302,
4758,
701,
340,
296,
3244,
17,
15151,
2798,
11,
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,
16351,
18958,
288,
21281,
4202,
203,
565,
2254,
8526,
595,
763,
31,
21281,
377,
203,
565,
2254,
28,
25344,
273,
4711,
31,
7010,
21281,
565,
445,
2798,
12,
7010,
565,
262,
1071,
1135,
12,
11890,
8526,
3778,
15329,
7010,
565,
741,
... |
./partial_match/137/0x143F4c7CdDb95B42686F94c529231bB7254C029C/sources/3-3-2022_2.sol_flattened.sol | * @dev Collection of functions related to array types./ | library ArraysUpgradeable {
function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) {
if (array.length == 0) {
return 0;
}
uint256 low = 0;
uint256 high = array.length;
while (low < high) {
uint256 mid = Ma... | 3,528,711 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2200,
434,
4186,
3746,
358,
526,
1953,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5647,
10784,
429,
288,
203,
203,
203,
565,
445,
1104,
21328,
12,
11890,
5034,
8526,
2502,
526,
16,
2254,
5034,
930,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
1126,
18,
2469,
422,
374,
13,
288,
... |
./partial_match/1/0xce42F70f5AE2094a7dD9428188c2f031e59d7e90/sources/_contracts/debt/mozart/MozartV1.sol | * @dev Update a position's borrow amount. This function is used to ensure consistency in the total borrowed amount as the user's borrowed amount changes. @param positionId The id of the position to update the borrow amount for @param newBorrowAmount The new borrow amount for the position/ Prevent having debt repre... | function setBorrowAmount(
uint256 positionId,
Amount.Principal memory newBorrowAmount
)
private
returns (MozartTypes.Position storage)
{
MozartTypes.Position storage position = positions[positionId];
Amount.Principal memory existingAmount = position.borrowedAm... | 3,714,392 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2315,
279,
1754,
1807,
29759,
3844,
18,
1220,
445,
353,
1399,
358,
3387,
14297,
316,
326,
1377,
2078,
29759,
329,
3844,
487,
326,
729,
1807,
29759,
329,
3844,
3478,
18,
632,
891,
1754,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15268,
15318,
6275,
12,
203,
3639,
2254,
5034,
1754,
548,
16,
203,
3639,
16811,
18,
9155,
3778,
394,
38,
15318,
6275,
203,
565,
262,
203,
3639,
3238,
203,
3639,
1135,
261,
49,
11142,
485,
2016,
18,
2555,
2502,
13,
203,
... |
// File: @openzeppelin/contracts/utils/EnumerableSet.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and c... | change to DAO address
| _setupRole(MINTER_ROLE, _msgSender()); | 9,991,869 | [
1,
4625,
348,
7953,
560,
30,
225,
2549,
358,
463,
20463,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
8401,
2996,
12,
6236,
2560,
67,
16256,
16,
389,
3576,
12021,
10663,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function trans... | * @title ERC20 interface/ | contract ERC20 is ERC20Basic {
function allowance(address owner, address spender)
public view returns (uint256);
function transferFrom(address from, address to, uint256 value)
public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(
addres... | 890,724 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
1560,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
353,
4232,
39,
3462,
8252,
288,
203,
377,
203,
225,
445,
1699,
1359,
12,
2867,
3410,
16,
1758,
17571,
264,
13,
203,
565,
1071,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
225,
445,
7412,
1265,
12,
2867,
... |
./full_match/10200/0x01268DB05965CeAc2a89566c42CD550ED7eE5ECD/sources/latestShoyuBashiWithThreshold/contracts/ownable/ShuSo.sol | @dev Returns the hash agreed upon by a threshold of the enabled oraclesAdapters. @param domain Uint256 identifier for the domain to query. @param id Uint256 identifier to query. @return hash Bytes32 hash agreed upon by a threshold of the oracles for the given domain. @notice Reverts if no threshold is not reached. @no... | function _getThresholdHash(uint256 domain, uint256 id) internal view returns (bytes32 hash) {
IOracleAdapter[] memory _adapters = getOracleAdapters(domain);
(uint256 threshold, uint256 count) = getThresholdAndCount(domain);
if (count == 0) revert NoAdaptersEnabled(address(this), domain);
... | 3,785,700 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
326,
1651,
1737,
15656,
12318,
635,
279,
5573,
434,
326,
3696,
578,
69,
9558,
26620,
18,
632,
891,
2461,
7320,
5034,
2756,
364,
326,
2461,
358,
843,
18,
632,
891,
612,
7320,
5034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
588,
7614,
2310,
12,
11890,
5034,
2461,
16,
2254,
5034,
612,
13,
2713,
1476,
1135,
261,
3890,
1578,
1651,
13,
288,
203,
3639,
1665,
16873,
4216,
8526,
3778,
389,
19195,
414,
273,
17971,
16873,
26620,
12,
4308,
1769,
... |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// Dividend Paying Token
//
// NOTE: This token contract allows the owner to mint and burn tokens for any
// account, and is used for testing
//
// Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd 2019.
//
// GNU Les... | ---------------------------------------------------------------------------- Safe maths ---------------------------------------------------------------------------- | library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pure returns (uint c) {
... | 15,865,926 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
14060,
4233,
87,
8879,
13849,
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,
12083,
14060,
10477,
288,
203,
203,
565,
445,
527,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
276,
13,
288,
203,
3639,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
1545,
279,
1769,
203,
565,
289,... |
./full_match/44787/0x6d8d959835F920337c3960D9563bb093b8434c87/sources/C/Users/User/Desktop/fyp/contracts/SmartRentContract.sol | Declare a contract called HelloWorld | contract SmartRentContract {
event TenantAssigned(address tenantAddress, uint rentAmount, uint rentDeposit);
event TenantSigned(address tenantAddress);
event DepositPaid(address tenantAddress, uint rentDeposit);
event DepositWithdrawn(address tenantAddress, uint rentDeposit);
event RentPaid(add... | 13,283,487 | [
1,
4625,
348,
7953,
560,
30,
225,
16110,
834,
279,
6835,
2566,
20889,
18071,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19656,
54,
319,
8924,
288,
203,
377,
203,
565,
871,
20256,
20363,
12,
2867,
8466,
1887,
16,
2254,
283,
496,
6275,
16,
2254,
283,
496,
758,
1724,
1769,
203,
565,
871,
20256,
12294,
12,
2867,
8466,
1887,
1769,
203,
565,
871,... |
//Address: 0x14fbca95be7e99c15cc2996c6c9d841e54b79425
//Contract name: MatchingMarket
//Balance: 0 Ether
//Verification Date: 12/18/2017
//Transacion Count: 171303
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract DSAuthority {
function canCall(
address src, address dst, bytes4 sig
) public view... | Add proportional amount of last offer to pay accumulator
| fill_amt = add(fill_amt, rmul(buy_amt * 10 ** 9, rdiv(offers[offerId].buy_amt, offers[offerId].pay_amt)) / 10 ** 9); | 2,494,752 | [
1,
4625,
348,
7953,
560,
30,
1436,
23279,
287,
3844,
434,
1142,
10067,
358,
8843,
13514,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3636,
67,
301,
88,
273,
527,
12,
5935,
67,
301,
88,
16,
6692,
332,
12,
70,
9835,
67,
301,
88,
380,
1728,
2826,
2468,
16,
436,
2892,
12,
3674,
414,
63,
23322,
548,
8009,
70,
9835,
67,
301,
88,
16,
28641,
63,
23322,
548... |
./full_match/4/0xC4CA1aEc1c2D1b0f457204BE5825c1a3c9c9E9a1/sources/contracts/SquidMarblesStorage.sol | update url in token after updating url | function updateTokenURI(uint256 id) external onlyOwner virtual returns(bool){
}
| 680,088 | [
1,
4625,
348,
7953,
560,
30,
225,
1089,
880,
316,
1147,
1839,
9702,
880,
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,
445,
1089,
1345,
3098,
12,
11890,
5034,
612,
13,
3903,
1338,
5541,
225,
5024,
1135,
12,
6430,
15329,
203,
3639,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | доиграться со спичками
| rus_verbs:доиграться{}, | 5,486,912 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
117,
145,
127,
145,
121,
145,
116,
146,
227,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
225,
146,
228,
145,
127,
225,
146,
228,
145,
128,
145,
121,
146,
234,
145,
123,
145,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
117,
145,
127,
145,
121,
145,
116,
146,
227,
145,
113,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0xC55eBD26EdA9c4DeE839fbB38DAb4c3511298aD5/sources/browser/KaizenAirdropper__OLD.sol | -------------------------------------------------------------------------------------------------------------------------- | function setUserClaimed(uint16 _block, uint8 _bit) private
{
uint256 existBlock = bitmask[_block];
uint256 mask = uint256(1) << _bit;
bitmask[_block] = (existBlock | mask);
counterUsers++;
}
| 9,589,592 | [
1,
4625,
348,
7953,
560,
30,
8879,
9634,
8567,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
14365,
9762,
329,
12,
11890,
2313,
389,
2629,
16,
2254,
28,
389,
3682,
13,
3238,
203,
565,
288,
203,
3639,
2254,
5034,
1005,
1768,
273,
24941,
63,
67,
2629,
15533,
203,
3639,
2254,
5034,
3066,
273,
2254,
5034,
12,
21,
... |
./partial_match/1/0xEB3E470A0350783b20b4B76E62F216eb24531526/sources/Frai.sol | * @title ERC20Decimals @dev Implementation of the ERC20Decimals. Extension of {ERC20} that adds decimals storage slot./ | contract Frai is ERC20 {
uint8 immutable private _decimals = 18;
uint256 private _totalSupply = 291299.3813838 * 10 ** 18;
constructor () ERC20('Frai Mo', 'FRAI') {
_mint(_msgSender(), _totalSupply);
}
function decimals() public view virtual override returns (uint8) {
return _deci... | 3,578,389 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
31809,
632,
5206,
25379,
434,
326,
4232,
39,
3462,
31809,
18,
10021,
434,
288,
654,
39,
3462,
97,
716,
4831,
15105,
2502,
4694,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
478,
354,
77,
353,
4232,
39,
3462,
288,
203,
565,
2254,
28,
11732,
3238,
389,
31734,
273,
6549,
31,
203,
565,
2254,
5034,
3238,
389,
4963,
3088,
1283,
273,
12899,
2138,
2733,
18,
7414,
26645,
7414,
380,
1728,
2826,
6549,
3... |
//Address: 0x5bf554632a059ae0537a3eeb20aced49348b8f99
//Contract name: SoulToken
//Balance: 0 Ether
//Verification Date: 10/19/2017
//Transacion Count: 20
// CODE STARTS HERE
/*
* This is the source code of the smart contract for the SOUL token, aka Soul Napkins.
* Copyright 2017 and all rights reserved by the owner... | checks if napkins are still available and adjusts amount accordingly | function checkAmount(uint256 amount) internal constant returns(uint256 checkedAmount){
if (amount > balances[this]){
checkedAmount = balances[this];
checkedAmount = amount;
}
return checkedAmount;
}
| 13,015,622 | [
1,
4625,
348,
7953,
560,
30,
225,
4271,
309,
27133,
79,
2679,
854,
4859,
2319,
471,
5765,
87,
3844,
15905,
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,
866,
6275,
12,
11890,
5034,
3844,
13,
2713,
5381,
1135,
12,
11890,
5034,
5950,
6275,
15329,
203,
203,
3639,
309,
261,
8949,
405,
324,
26488,
63,
2211,
5717,
95,
203,
5411,
5950,
6275,
273,
324,
26488,
63,
2211,
15533,
2... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "./inte... | * Generate a leaf of the Merkle tree with a nonce and the address of the sender @param nonce nonce to be used @param addr id of the token @return leaf generated/ | function generateLeaf(uint256 nonce, address addr)
internal
pure
returns (bytes32 leaf)
{
return keccak256(abi.encodePacked(nonce, addr));
}
| 5,956,977 | [
1,
4625,
348,
7953,
560,
30,
380,
6654,
279,
7839,
434,
326,
31827,
2151,
598,
279,
7448,
471,
326,
1758,
434,
326,
5793,
632,
891,
7448,
7448,
358,
506,
1399,
632,
891,
3091,
612,
434,
326,
1147,
632,
2463,
7839,
4374,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2103,
9858,
12,
11890,
5034,
7448,
16,
1758,
3091,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
3890,
1578,
7839,
13,
203,
565,
288,
203,
3639,
327,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,... |
./partial_match/4/0x91580b3c5Db59bf99720fB743E648C3Cd0F25EE3/sources/SellPrivate.sol | Buy token JUS by deposit ETH minimum deposit 0.1 ETH insert or update amount for user call bonus sent amount to wallet addmin | function buyToken(
uint256 _amountETH,
address _refer,
uint256 _referLevel
) payable public {
require(msg.value == _amountETH, 'Insufficient ETH balance');
require(_amountETH >=1e17, 'minimum deposit 0.1 ETH');
address userIdOrder = userIdsOrder... | 8,530,721 | [
1,
4625,
348,
7953,
560,
30,
225,
605,
9835,
1147,
804,
3378,
635,
443,
1724,
512,
2455,
5224,
443,
1724,
374,
18,
21,
512,
2455,
2243,
578,
1089,
3844,
364,
729,
745,
324,
22889,
3271,
3844,
358,
9230,
527,
1154,
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,
30143,
1345,
12,
203,
3639,
2254,
5034,
389,
8949,
1584,
44,
16,
203,
3639,
1758,
389,
266,
586,
16,
203,
3639,
2254,
5034,
389,
266,
586,
2355,
203,
565,
262,
8843,
429,
225,
1071,
288,
203,
3639,
2583,
12,
3576,
18,... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.7;
// https://github.com/AmbireTech/wallet/blob/main/contracts/WALLET.sol
contract WALLETToken {
// Constants
string public constant name = "Ambire Wallet";
string public constant symbol = "WALLET";
uint8 public constant decimals = 18;
uint public constant ... | ERROR: type should be string, got " https:github.com/AmbireTech/wallet/blob/main/contracts/WALLET.sol Constants Mutable variables" | contract WALLETToken {
string public constant name = "Ambire Wallet";
string public constant symbol = "WALLET";
uint8 public constant decimals = 18;
uint public constant MAX_SUPPLY = 1_000_000_000 * 1e18;
uint public totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) al... | 12,604,316 | [
1,
4625,
348,
7953,
560,
30,
225,
2333,
30,
6662,
18,
832,
19,
30706,
577,
56,
8987,
19,
19177,
19,
10721,
19,
5254,
19,
16351,
87,
19,
59,
1013,
15146,
18,
18281,
5245,
10960,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
30293,
15146,
1345,
288,
203,
202,
1080,
1071,
5381,
508,
273,
315,
30706,
577,
20126,
14432,
203,
202,
1080,
1071,
5381,
3273,
273,
315,
59,
1013,
15146,
14432,
203,
202,
11890,
28,
1071,
5381,
15105,
273,
6549,
31,
203,
20... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "./SpaceCoin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
/**
* @title A contract for rolling out an ICO of SpaceCoin
* @author Nathan Thomas
* @notice This contract is not audited ... | @notice Allows the owner to initialize (e.g. start) the ICO contract @param _tokenAddress The deployed token address to be used in the ICO/ | function initialize(address _tokenAddress)
external
onlyOwner
hasNotBeenInitialized
{
require(_tokenAddress != address(0), "ICO: address must be valid");
tokenAddress = _tokenAddress;
isInitialized = true;
}
| 1,816,526 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
326,
3410,
358,
4046,
261,
73,
18,
75,
18,
787,
13,
326,
467,
3865,
6835,
632,
891,
389,
2316,
1887,
1021,
19357,
1147,
1758,
358,
506,
1399,
316,
326,
467,
3865,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4046,
12,
2867,
389,
2316,
1887,
13,
203,
565,
3903,
203,
565,
1338,
5541,
203,
565,
711,
1248,
25931,
11459,
203,
225,
288,
203,
565,
2583,
24899,
2316,
1887,
480,
1758,
12,
20,
3631,
315,
2871,
51,
30,
1758,
1297,
5... |
//Address: 0xf8ef303406cbcbfc82af008d45210c835ad2f736
//Contract name: EtherVillains
//Balance: 0 Ether
//Verification Date: 2/25/2018
//Transacion Count: 914
// CODE STARTS HERE
pragma solidity ^0.4.19; //
// EtherVillains.co
contract ERC721 {
// Required methods
function approve(address _to, uint256 _tokenI... | they must be a pincher
| require(villains[_pincher].class==1); | 1,033,444 | [
1,
4625,
348,
7953,
560,
30,
225,
2898,
1297,
506,
279,
7092,
19322,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
90,
737,
4167,
63,
67,
13097,
19322,
8009,
1106,
631,
21,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/42/0xc771073bdE9D13CB6F427e2a136504C2532f3C4B/sources/ERC20.sol | * @dev Decrease the amount of tokens that an owner allowed to a spender. approve should be called when allowed_[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol @param spender The address which will spen... | function decreaseAllowance(address spender,uint256 subtractedValue)public returns (bool)
{
require(spender != address(0));
_allowed[msg.sender][spender] = (
_allowed[msg.sender][spender].sub(subtractedValue));
emit Approval(msg.sender, spender, _allowed[msg.sender][spender]);
return true;
}... | 16,266,107 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
31073,
448,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
6617,
537,
1410,
506,
2566,
1347,
2935,
67,
63,
67,
87,
1302,
264,
65,
422,
374,
18,
2974,
15267,
2935,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
11890,
5034,
10418,
329,
620,
13,
482,
1135,
261,
6430,
13,
203,
225,
288,
203,
565,
2583,
12,
87,
1302,
264,
480,
1758,
12,
20,
10019,
203,
203,
565,
389,
8151,
63,
3576,
... |
pragma solidity ^0.4.11;
interface IERC20 {
function totalSupply() public constant returns (uint256);
function balanceOf(address _owner) public constant returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, ad... | End 12/31/18 11:59 PM UTC time to Unix time stamp
| uint256 public constant End10= 1546300740; | 1,814,731 | [
1,
4625,
348,
7953,
560,
30,
4403,
2593,
19,
6938,
19,
2643,
4648,
30,
6162,
23544,
9951,
813,
358,
9480,
813,
14429,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
11890,
5034,
1071,
5381,
4403,
2163,
33,
4711,
24,
4449,
713,
5608,
20,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.4;
import 'token/Token.sol';
import './Operated.sol';
contract InsuranceHolder is Operated {
// Operator address
address public operator;
// Issuer token address
Token public token;
// Hold duration
uint public holdDuration;
struct Record {
uint timestamp;
... | Operator address Issuer token address Hold duration | contract InsuranceHolder is Operated {
address public operator;
Token public token;
uint public holdDuration;
struct Record {
uint timestamp;
uint value;
bool closed;
}
Record[] values;
{ return values.length; }
function size() constant returns (uint)
fun... | 12,689,016 | [
1,
4625,
348,
7953,
560,
30,
225,
11097,
1758,
23959,
1147,
1758,
670,
1673,
3734,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
657,
10050,
1359,
6064,
353,
7692,
690,
288,
203,
565,
1758,
1071,
3726,
31,
203,
203,
565,
3155,
1071,
1147,
31,
203,
203,
565,
2254,
1071,
6887,
5326,
31,
203,
203,
565,
1958,
5059,
288,
203,
3639,
2254,
2858,
31,
203,
... |
./full_match/137/0xD0184d7Cc936D7905Bc8b4E090A3Cb43e0B47988/sources/contracts/token/ERC721/LakeERC721v3.sol | * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. The call is not executed if the target address is not a contract. @param from address representing the previous owner of the given token ID @param to target address that will receive the tokens @param tokenId uint256 ID of the to... | function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC7... | 4,686,999 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
4356,
288,
45,
654,
39,
27,
5340,
12952,
17,
265,
654,
39,
27,
5340,
8872,
97,
603,
279,
1018,
1758,
18,
1021,
745,
353,
486,
7120,
309,
326,
1018,
1758,
353,
486,
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,
389,
1893,
1398,
654,
39,
27,
5340,
8872,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
16,
1731,
3778,
389,
892,
13,
203,
3639,
3238,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
309,
261,
869,
18,
291... |
./full_match/1/0x5E0af2ded0FD10b0990C0B57AF0D7F2Af877285B/sources/contracts/QuestNFT.sol | @dev Function that to withdraw the remaining coins in the contract to the owner @notice This function can only be called after the quest end time | function withdrawRemainingCoins() external onlyAfterQuestEnd nonReentrant {
uint balance = address(this).balance;
if (balance > 0) {
require(success, 'withdraw remaining tokens failed');
}
}
| 3,862,648 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4284,
716,
358,
598,
9446,
326,
4463,
276,
9896,
316,
326,
6835,
358,
326,
3410,
632,
20392,
1220,
445,
848,
1338,
506,
2566,
1839,
326,
225,
456,
679,
813,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
11429,
39,
9896,
1435,
3903,
1338,
4436,
30791,
1638,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
11013,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
3639,
309,
261,
12296,
405,
374,
13,
288,
203,
5411,
2583,
1... |
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.3;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgr... | DEPLOYMENT ACCOUNT FUNCTION TO SET MIN TRADE AMOUNT FOR A TRADEPAIR | function setMinTradeAmount(bytes32 _tradePairId, uint _minTradeAmount) public {
require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "E-OACC-15");
tradePairs.setMinTradeAmount(_tradePairId, _minTradeAmount);
}
| 1,840,879 | [
1,
4625,
348,
7953,
560,
30,
225,
2030,
22971,
3212,
29437,
13690,
8493,
7855,
6989,
21492,
1639,
432,
5980,
5321,
12108,
432,
21492,
1639,
4066,
7937,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27724,
22583,
6275,
12,
3890,
1578,
389,
20077,
4154,
548,
16,
2254,
389,
1154,
22583,
6275,
13,
1071,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
3631,
315,
41,
17,
51,
... |
./full_match/44787/0x2F095B6F43259c8017794C9f25B2eF774b54B6ce/sources/contracts/token/DonationMinerImplementationV2.sol | * @notice Initializes all reward periods that haven't been initialized yet until the current one. The first donor in a reward period will pay for that operation./ | function initializeRewardPeriods() internal {
RewardPeriod storage _lastPeriod = rewardPeriods[rewardPeriodCount];
while (_lastPeriod.endBlock < block.number) {
rewardPeriodCount++;
RewardPeriod storage _newPeriod = rewardPeriods[rewardPeriodCount];
_newPeriod.st... | 13,255,737 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10188,
3128,
777,
19890,
12777,
716,
15032,
1404,
2118,
6454,
4671,
3180,
326,
783,
1245,
18,
540,
1021,
1122,
2727,
280,
316,
279,
19890,
3879,
903,
8843,
364,
716,
1674,
18,
19,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
17631,
1060,
30807,
1435,
2713,
288,
203,
3639,
534,
359,
1060,
5027,
2502,
389,
2722,
5027,
273,
19890,
30807,
63,
266,
2913,
5027,
1380,
15533,
203,
203,
3639,
1323,
261,
67,
2722,
5027,
18,
409,
1768,
411,
1203,
... |
// File: openzeppelin-eth/contracts/math/SafeMath.sol
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (ui... | * @title uFragments Monetary Supply Policy @dev This is an implementation of the uFragments Ideal Money protocol. uFragments operates symmetrically on expansion and contraction. It will both split and combine coins to maintain a stable unit price. This component regulates the token supply of the uFragmen... | contract UFragmentsPolicy is Ownable {
using SafeMath for uint256;
using SafeMathInt for int256;
using UInt256Lib for uint256;
event LogRebase(
uint256 indexed epoch,
uint256 exchangeRate,
uint256 cpi,
int256 requestedSupplyAdjustment,
uint256 timestampSec
);... | 2,103,176 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
582,
27588,
26196,
3425,
1283,
7436,
632,
5206,
1220,
353,
392,
4471,
434,
326,
582,
27588,
23062,
287,
16892,
1771,
18,
1377,
582,
27588,
2255,
815,
15108,
1230,
603,
17965,
471,
16252,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
587,
27588,
2582,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
10477,
1702,
364,
509,
5034,
31,
203,
565,
1450,
29810,
5034,
5664,
364,
2254,
5034,
31,
203,
203,
565,
871,
... |
// File: contracts/ErrorReporter.sol
pragma solidity 0.4.24;
contract ErrorReporter {
/**
* @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
* contract-specific code that enables us to report opaque error codes from upgradeable contracts.
... | * @notice Refresh ALK borrow index for the specified market and borrower @param market The market whose borrow index to update @param borrower The address of the borrower to distribute ALK to @param isVerified Specifies if the market is from verified or public protocol/ | function refreshAlkBorrowIndex(
address market,
address borrower,
bool isVerified
) external {
if (!allMarketsIndex[isVerified][market]) {
return;
}
refreshAlkSpeeds();
updateAlkBorrowIndex(market, isVerified);
distributeBorrowerAlk(mar... | 81,672 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14179,
7981,
47,
29759,
770,
364,
326,
1269,
13667,
471,
29759,
264,
632,
891,
13667,
1021,
13667,
8272,
29759,
770,
358,
1089,
632,
891,
29759,
264,
1021,
1758,
434,
326,
29759,
264,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
4460,
1067,
79,
38,
15318,
1016,
12,
203,
3639,
1758,
13667,
16,
203,
3639,
1758,
29759,
264,
16,
203,
3639,
1426,
353,
24369,
203,
565,
262,
3903,
288,
203,
3639,
309,
16051,
454,
3882,
2413,
1016,
63,
291,
24369,
6362... |
./partial_match/1/0xAF5078bCEE5B9DE9Bb9394207Ca48ac32648C45f/sources/Workspace.sol | * @dev Simple getter to retrieve talent agent @param freelance talent address @return address of the agent/ | function getFreelanceAgent(address freelance)
public
view
returns (address)
{
return data[freelance].appointedAgent;
}
| 3,939,171 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4477,
7060,
358,
4614,
268,
287,
319,
4040,
632,
891,
22010,
292,
1359,
268,
287,
319,
1758,
632,
2463,
1758,
434,
326,
4040,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2812,
266,
292,
1359,
3630,
12,
2867,
22010,
292,
1359,
13,
203,
1377,
1071,
203,
1377,
1476,
203,
1377,
1135,
261,
2867,
13,
203,
225,
288,
203,
1377,
327,
501,
63,
74,
266,
292,
1359,
8009,
438,
1153,
329,
3630,
31,... |
pragma solidity ^0.5.0;
import "zeppelin/contracts/token/ERC721/ERC721Full.sol";
/// @title A trading platform for digital art
/// @author Manank Patni
/// @notice The contract create a platform for the digital art trading and showcase
/// @dev The contract inherits ERC721 token to implement NFT
contract Collectible... | @dev Update price of Token @param id Token Id @param price Price of the collectible | function price_update(uint id, uint price) public onlyOwner(id){
art_list[id].price = price;
}
| 12,827,502 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2315,
6205,
434,
3155,
632,
891,
612,
3155,
3124,
632,
891,
6205,
20137,
434,
326,
3274,
1523,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6205,
67,
2725,
12,
11890,
612,
16,
2254,
6205,
13,
1071,
1338,
5541,
12,
350,
15329,
203,
3639,
3688,
67,
1098,
63,
350,
8009,
8694,
273,
6205,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @title S4fechainProxy
* @dev This contract combines an upgradeability proxy with basic authorization control functionalities
*/
contract OwnedUpgradeabilityProxy {
/**
* @dev Event to show ownership has been transferred
* @param previousOwn... | * @dev the constructor sets the original owner of the contract to the sender account./ | constructor() {
setUpgradeabilityOwner(msg.sender);
}
| 1,288,382 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
326,
3885,
1678,
326,
2282,
3410,
434,
326,
6835,
358,
326,
5793,
2236,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
444,
10784,
2967,
5541,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xd77B7A446F8477DD22606C2017e7B2A4feE3dF2F/sources/Sushiswap_ZapIn_General_V1.sol | set from to weth for eth input | function _getIntermediate(
address _FromTokenContractAddress,
uint256 _amount,
address _ToUnipoolToken0,
address _ToUnipoolToken1
) internal view returns (address) {
if (_FromTokenContractAddress == address(0)) {
_FromTokenContractAddress = wethTokenAddress;
... | 3,972,719 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
628,
358,
341,
546,
364,
13750,
810,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
2465,
6785,
12,
203,
3639,
1758,
389,
1265,
1345,
8924,
1887,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1758,
389,
774,
984,
625,
1371,
1345,
20,
16,
203,
3639,
1758,
389,
774,
984,
625,
1371,
134... |
./full_match/1/0x541a2378589E280FDfDde6e53Fb5ECf98a853fC2/sources/src/BunniLpZapIn.sol | approve tokens to Bunni | token0.safeApprove(address(bunniHub), depositParams.amount0Desired);
| 16,404,790 | [
1,
4625,
348,
7953,
560,
30,
225,
6617,
537,
2430,
358,
605,
318,
15834,
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,
1147,
20,
18,
4626,
12053,
537,
12,
2867,
12,
70,
318,
15834,
8182,
3631,
443,
1724,
1370,
18,
8949,
20,
25683,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: UNLICENSED
/**
∩~~~~∩
ξ ・×・ ξ
ξ ~ ξ
ξ ξ
ξ “~~~~〇
ξ ξ
ξ ξ ξ~~~ξ ξ ξ
ξ_ξξ_ξ ξ_ξξ_ξ
Alpaca Fin Corporation
*/
pragma solidity 0.6.6;
pragma experimental ABIEncoderV2;
import "../Vault.sol";
contract Actions {
/// @dev The next position ID to be assigned.
... | @dev The next position ID to be assigned. @dev Mapping of vault => vault's position ID => surrogate key @dev Mapping of vault => vault's positionId => owner | constructor() public {
nextPositionID = 1;
}
uint8 private constant ACTION_NEW_SURROGATE = 1;
uint8 private constant ACTION_WORK = 2;
| 6,435,826 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1021,
1024,
1754,
1599,
358,
506,
6958,
18,
632,
5206,
9408,
434,
9229,
516,
9229,
1807,
1754,
1599,
516,
24054,
498,
632,
5206,
9408,
434,
9229,
516,
9229,
1807,
1754,
548,
516,
3410,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
3885,
1435,
1071,
288,
203,
565,
1024,
2555,
734,
273,
404,
31,
203,
225,
289,
203,
203,
225,
2254,
28,
3238,
5381,
11385,
67,
12917,
67,
26397,
1457,
26316,
273,
404,
31,
203,
225,
2254,
28,
3238,
5381,
11385,
67,
10566,
... |
pragma solidity ^0.4.24;
// This contract will be called by a contract called 'Caller' to perform some calculation.
// Part of testcase to test transaction costs!
// Author: Marius Degen
contract Receiver {
// Simply returns a value without any calculations
function getValue() public pure returns (bool r... | Simply returns a value without any calculations | contract Receiver {
function getValue() public pure returns (bool result) {
return true;
}
function processSomething(uint256 n) public pure returns (bool isPrime) {
for(uint i=2;i<n;i++) {
if(n%i==0)
return false;
}
return true;
}
... | 12,700,570 | [
1,
4625,
348,
7953,
560,
30,
225,
9587,
1283,
1135,
279,
460,
2887,
1281,
20882,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
31020,
288,
203,
377,
203,
203,
565,
445,
2366,
1435,
1071,
16618,
1135,
261,
6430,
563,
13,
288,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
377,
203,
565,
445,
1207,
24332,
12,
11890,
5034,
290,
13,
1071,
16618,
1135,
... |
./full_match/56/0x1C5C0E1B96E7ADDC14AED3688E547A6103A244d9/sources/project_/contracts/Router1.sol | * @dev Sets the PancakeSwap Router contract address. @param r The PancakeSwap Router contract address./ | function setPancakeRouter(
address r
) external onlyOwner {
IPancakeRouter02 _pancakeRouter = IPancakeRouter02(r);
pancakeRouter = _pancakeRouter;
}
| 3,227,272 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
12913,
23780,
12521,
9703,
6835,
1758,
18,
632,
891,
436,
1021,
12913,
23780,
12521,
9703,
6835,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
4069,
23780,
8259,
12,
203,
3639,
1758,
436,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2971,
19292,
911,
8259,
3103,
389,
7355,
23780,
8259,
273,
2971,
19292,
911,
8259,
3103,
12,
86,
1769,
203,
3639,
2800,
... |
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
contract DSAuthEvents {
event LogSetAuthority(address indexed authority);
event LogSetOwner(address indexed owner);
}
contract DSAuth is DSAuthEvents {
DSAuthority public authority;
address public owner;
constructor() public {
... | @notice Calcualted the ratio of debt / adjusted collateral @param _user Address of the user For each asset the account is in | function getSafetyRatio(address _user) public view returns (uint) {
address[] memory assets = comp.getAssetsIn(_user);
address oracleAddr = comp.oracle();
uint sumCollateral = 0;
uint sumBorrow = 0;
for (uint i = 0; i < assets.length; i++) {
address a... | 7,333,761 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
29128,
1462,
2344,
326,
7169,
434,
18202,
88,
342,
13940,
4508,
2045,
287,
632,
891,
389,
1355,
5267,
434,
326,
729,
2457,
1517,
3310,
326,
2236,
353,
316,
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,
0,
0,
0,
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,
1322,
1727,
14369,
8541,
12,
2867,
389,
1355,
13,
1071,
1476,
1135,
261,
11890,
13,
288,
203,
203,
203,
3639,
1758,
8526,
3778,
7176,
273,
1161,
18,
588,
10726,
382,
24899,
1355,
1769,
203,
203,
3639,
1758,
20865,
3178,
... |
./full_match/137/0x5751b2880D7fE4b1C9e7845eA58221456530Afe7/sources/contracts/FarmAutions.sol | * @title MoonwalkerSwap Farms Auctions. @notice Auctions for new Farms, including multiplier./ | contract FarmAuction is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
using EnumerableSet for EnumerableSet.AddressSet;
IERC20 public immutable pdustToken;
address public operatorAddress;
uint256 public currentAuctionId;
uint256 public maxAuctionLength;
uint256 public totalCollec... | 4,747,083 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14987,
265,
11348,
264,
12521,
478,
20452,
432,
4062,
87,
18,
632,
20392,
432,
4062,
87,
364,
394,
478,
20452,
16,
6508,
15027,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
478,
4610,
37,
4062,
353,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
... |
pragma solidity ^0.5.16;
interface IERC20 {
function TOTALSUPPLY529() external view returns (uint); //inject NONSTANDARD NAMING
function BALANCEOF13(address account) external vi... | inject NONSTANDARD NAMING
| function TRANSFER435(address recipient, uint amount) public returns (bool) { | 1,780,072 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4235,
17598,
24,
4763,
12,
2867,
8027,
16,
2254,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xaB5346A06Fa672792233D22E7c5E326d080BA6B6/sources/contracts/RWAHub.sol | USDY TEST - CB Deposit Address
| 0xAE59D12D6212Fb76d2dC487Ceb8a91a8671548F4; | 9,615,903 | [
1,
4625,
348,
7953,
560,
30,
225,
587,
9903,
61,
22130,
300,
21262,
4019,
538,
305,
5267,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
374,
92,
16985,
6162,
40,
2138,
40,
8898,
2138,
42,
70,
6669,
72,
22,
72,
39,
8875,
27,
39,
24008,
28,
69,
12416,
69,
5292,
27,
3600,
8875,
42,
24,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x76513674A0fc8edcE09581B8008904BBB84c4B45/sources/project_/contracts/Marketplace.sol | setting this will allow buy with one click | function _setupAuction(uint256 _tokenId, uint256 _minPrice, uint256 _buyNowPrice, bool _resell) internal {
require(_buyNowPrice == 0 || _buyNowPrice > _minPrice, "buyNowPrice must be more then price");
if (_buyNowPrice > 0) {
_sailingBox[_tokenId][msg.sender] = Sale(1, _minPrice, msg.se... | 871,171 | [
1,
4625,
348,
7953,
560,
30,
225,
3637,
333,
903,
1699,
30143,
598,
1245,
4682,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8401,
37,
4062,
12,
11890,
5034,
389,
2316,
548,
16,
2254,
5034,
389,
1154,
5147,
16,
2254,
5034,
389,
70,
9835,
8674,
5147,
16,
1426,
389,
455,
1165,
13,
2713,
288,
203,
3639,
2583,
24899,
70,
9835,
8674,
5147,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
/// _ _ _ _ _ _
/// | |_ ___ ___| |_|_|___ ___| | | |_ ___ ___ ___ ___ ___ _____ ___ |_|___
/// | _| .'| _| _| | _| .'| | | _| .'| | . | _| .'| |_ -| _ | | . |
/// |... | @notice Team member's addresses @dev Team member information in other arrays can be found at the corresponding index. | address payable[TEAM_SIZE] internal teamAddresses;
| 12,226,037 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10434,
3140,
1807,
6138,
632,
5206,
10434,
3140,
1779,
316,
1308,
5352,
848,
506,
1392,
622,
326,
4656,
770,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
429,
63,
1448,
2192,
67,
4574,
65,
2713,
5927,
7148,
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.4;
// MINIMAL INTERFACE OF QANX REQUIRED FOR THE DISTRIBUTOR TO WORK
interface TransferableQANX {
function transfer(address recipient, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external ... | METHOD TO DISTRIBUTE LOCKED TOKENS WITH CUSTOM PARAMS FIRST TRANSFER THE TOTAL AMOUNT TO BE DISTRIBUTED FROM THE SENDER TO THIS CONTRACT THEN TRANSFER THE SPECIFIED AMOUNTS TO THE RECIPIENTS ONE-BY-ONE WITH THE PARAMS SPECIFIED | function distributeLocked(
uint256 total,
address[] calldata recipients,
uint256[] calldata amounts,
uint32[] calldata hardLocks,
uint32[] calldata softLocks,
uint8[] calldata allowedHops) external
{
require(_qanx.transferFrom(msg.sender, address(th... | 64,053 | [
1,
4625,
348,
7953,
560,
30,
225,
10152,
8493,
3690,
15765,
8885,
14631,
2056,
14275,
55,
13601,
21012,
4655,
55,
21786,
4235,
17598,
12786,
399,
19851,
432,
5980,
5321,
8493,
9722,
3690,
15765,
3000,
6404,
4571,
12786,
348,
22457,
8493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25722,
8966,
12,
203,
3639,
2254,
5034,
2078,
16,
203,
3639,
1758,
8526,
745,
892,
12045,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
30980,
16,
203,
3639,
2254,
1578,
8526,
225,
745,
892,
7877,
19159,
16,
7010,
3639,
22... |
pragma solidity ^0.5.10;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./UniswapFactory.sol";
contract UniswapExchange {
using SafeMath for uint256;
/// EVENTS
event EthToTokenPurchase(address indexed buyer, uint256 indexed ethIn, uin... | EXTERNAL FUNCTIONS Prevents share cost from being too high or too low - potentially needs work | function initializeExchange(uint256 _tokenAmount) external payable {
require(invariant == 0 && totalShares == 0, "Invariant or totalShares != 0");
require(
msg.value >= 10000 && _tokenAmount >= 10000 && msg.value <= 5*10**18,
"Share cost not in range."
);
ethP... | 919,526 | [
1,
4625,
348,
7953,
560,
30,
225,
5675,
11702,
13690,
55,
19412,
87,
7433,
6991,
628,
3832,
4885,
3551,
578,
4885,
4587,
300,
13935,
4260,
1440,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
11688,
12,
11890,
5034,
389,
2316,
6275,
13,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
267,
8688,
422,
374,
597,
2078,
24051,
422,
374,
16,
315,
382,
8688,
578,
2078,
24051,
480,
374,
8863,
203,
3639,
2583,
12,
... |
pragma solidity 0.5.16;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./interfaces/Gauge... | * Sets the minimum amount of WBTC needed to trigger a sale./ | function setSellFloorWbtc(uint256 floor) public onlyGovernance {
sellFloorWbtc = floor;
}
| 13,053,004 | [
1,
4625,
348,
7953,
560,
30,
380,
11511,
326,
5224,
3844,
434,
678,
38,
15988,
3577,
358,
3080,
279,
272,
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,
... | [
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,
225,
445,
13928,
1165,
42,
5807,
59,
70,
5111,
12,
11890,
5034,
6346,
13,
1071,
1338,
43,
1643,
82,
1359,
288,
203,
565,
357,
80,
42,
5807,
59,
70,
5111,
273,
6346,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../../utils/Whitelistable.sol";
import "./SocialToken.sol";
contract SocialTokenFactory is Whitelistable {
//////////////
/// EVENTS ///
//////////////
/// @dev Emitted when social token is created
event SocialTokenCreated(
address indexed... | // EVENTS // @dev Emitted when social token is created/ STORAGE VARIABLES / @dev Maps SocialToken creator to deployed SocialToken address// EXTERNAL FUNCTIONS // @dev Create new SocialToken contract @param data (SocialToken.CreateData): Struct containing creator address, collateral address, max supply, slope, name, sym... | {
require(
_tokens[data.creator] == address(0),
"SocialTokenFactory: token already exists"
);
SocialToken socialToken = new SocialToken{
salt: keccak256(abi.encode(data))
}(data);
socialTokenAddress = address(socialToken);
_tokens[data.creator] = socialTokenAddress;
socia... | 12,566,336 | [
1,
4625,
348,
7953,
560,
30,
368,
9964,
55,
368,
632,
5206,
512,
7948,
1347,
16702,
1147,
353,
2522,
19,
2347,
15553,
22965,
55,
342,
632,
5206,
19837,
29858,
1345,
11784,
358,
19357,
29858,
1345,
1758,
759,
5675,
11702,
13690,
55,
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,
288,
203,
565,
2583,
12,
203,
1377,
389,
7860,
63,
892,
18,
20394,
65,
422,
1758,
12,
20,
3631,
203,
1377,
315,
28795,
1345,
1733,
30,
1147,
1818,
1704,
6,
203,
565,
11272,
203,
565,
29858,
1345,
16702,
1345,
273,
394,
298... |
./partial_match/1/0xe5DaD06Ce6d5468e26f6Ee68Ea322a181b9B659C/sources/EscrowService.sol | * @dev Allows mediator to mediate disputed escrow @param id id of the escrow @param beneficiary to whom escrow will be released @param reason ipfs link to the reason/ | function mediate(
uint256 id,
address beneficiary,
string calldata reason
)
external
escrowExist(id)
{
Escrow storage escrow = _idVsEscrow[id];
require(
escrow.status == Status.DISPUTED,
"EscrowService: Escrow not in disputed s... | 9,196,914 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
6735,
10620,
358,
6735,
3840,
1015,
458,
329,
2904,
492,
632,
891,
612,
612,
434,
326,
2904,
492,
632,
891,
27641,
74,
14463,
814,
358,
600,
362,
2904,
492,
903,
506,
15976,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6735,
3840,
12,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
1758,
27641,
74,
14463,
814,
16,
203,
3639,
533,
745,
892,
3971,
203,
565,
262,
203,
3639,
3903,
203,
3639,
2904,
492,
4786,
12,
350,
13,
203,
565,
288,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2020-02-11
*/
pragma solidity ^0.5.16;
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
require... | Allow the Nordic Energy token holder to upgrade some of our tokens to a new smart contract. Check upgrate state Validate input valuebalances[msg.sender] = balances[msg.sender].sub(_value); Take Nordic Energy tokens out from circulationtotalSupply_ = totalSupply_.sub(_value);the _burn method emits the Transfer event To... | function upgrade(uint _value) external {
UpgradeState state = getUpgradeState();
require(state == UpgradeState.ReadyToUpgrade || state == UpgradeState.Upgrading);
require(_value != 0);
_burn(msg.sender, _value);
tokenUpgrader.upgradeFrom(msg.sender, _value);
... | 1,800,627 | [
1,
4625,
348,
7953,
560,
30,
225,
7852,
326,
423,
517,
335,
512,
1224,
7797,
1147,
10438,
358,
8400,
2690,
434,
3134,
2430,
358,
279,
394,
13706,
6835,
18,
2073,
731,
3197,
340,
919,
3554,
810,
460,
70,
26488,
63,
3576,
18,
15330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8400,
12,
11890,
389,
1132,
13,
3903,
288,
203,
3639,
17699,
1119,
919,
273,
336,
10784,
1119,
5621,
203,
540,
203,
3639,
2583,
12,
2019,
422,
17699,
1119,
18,
8367,
774,
10784,
747,
919,
422,
17699,
1119,
18,
1211,
152... |
pragma solidity ^0.4.21;
/**
*
*
*
*
* ATTENTION!
*
* This code? IS NOT DESIGNED FOR ACTUAL USE.
*
* The author of this code really wishes you wouldn't send your ETH to it, but it's been
* done with P3D and there are very happy users because of it.
*
* No, seriously. It's probablly ill... | How much each person is owed | mapping(address => uint256) public creditRemaining;
| 510,727 | [
1,
4625,
348,
7953,
560,
30,
9017,
9816,
1517,
6175,
353,
2523,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
12896,
11429,
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,
-... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import "../Euler.sol";
import "../Storage.sol";
import "../modules/EToken.sol";
import "../modules/Markets.sol";
import "../BaseIRMLinearKink.sol";
import "../vendor/RPow.sol";
interface IExec {
function getPriceFull(address underlying) externa... | @notice Given an underlying, lookup the associated EToken @param underlying Token address @return EToken address, or address(0) if not activated | function underlyingToEToken(address underlying) external view returns (address) {
return underlyingLookup[underlying].eTokenAddress;
}
| 144,902 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
16803,
392,
6808,
16,
3689,
326,
3627,
512,
1345,
632,
891,
6808,
3155,
1758,
632,
2463,
512,
1345,
1758,
16,
578,
1758,
12,
20,
13,
309,
486,
14892,
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,
445,
6808,
774,
41,
1345,
12,
2867,
6808,
13,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
327,
6808,
6609,
63,
9341,
6291,
8009,
73,
1345,
1887,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x5d4F02B9bf738BdB099566818D4CC1FeFaEE8bdF/sources/PEPED2.sol | Trade start checkTransfer TokensSet Fee for BuysSet Fee for Sells | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater th... | 9,426,373 | [
1,
4625,
348,
7953,
560,
30,
2197,
323,
787,
866,
5912,
13899,
694,
30174,
364,
605,
89,
1900,
694,
30174,
364,
348,
1165,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
/*
Copyright 2017-2018 RigoBlock, Rigo Investment Sagl.
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 a... | @dev Returns the address of the exchange adapter @param _exchange Address of the target exchange @return Address of the exchange adapter | function getExchangeAdapter(address _exchange)
internal
view
returns (address)
{
Authority auth = Authority(admin.authority);
return auth.getExchangeAdapter(_exchange);
}
| 6,386,839 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
326,
1758,
434,
326,
7829,
4516,
632,
891,
389,
16641,
5267,
434,
326,
1018,
7829,
632,
2463,
5267,
434,
326,
7829,
4516,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
336,
11688,
4216,
12,
2867,
389,
16641,
13,
203,
565,
2713,
203,
565,
1476,
203,
565,
1135,
261,
2867,
13,
203,
225,
288,
203,
565,
6712,
560,
1357,
273,
6712,
560,
12,
3666,
18,
24763,
1769,
203,
565,
327,
1357,
18,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-05
*/
// Verified using https://dapp.tools
// hevm: flattened sources of /nix/store/l2548a1amqr89zavda6lcs6z6cbdhizf-h2o-rrfm-calculators/dapp/h2o-rrfm-calculators/src/calculator/PRawPerSecondCalculator.sol
pragma solidity =0.6.7 >=0.6.7 <0.7.0;
////// /nix... | hevm: flattened sources of /nix/store/l2548a1amqr89zavda6lcs6z6cbdhizf-h2o-rrfm-calculators/dapp/h2o-rrfm-calculators/src/calculator/PRawPerSecondCalculator.sol | pragma solidity =0.6.7 >=0.6.7 <0.7.0;
| 2,357,701 | [
1,
4625,
348,
7953,
560,
30,
225,
3904,
3489,
30,
14171,
5550,
434,
342,
82,
697,
19,
2233,
19,
80,
2947,
8875,
69,
21,
301,
27401,
6675,
94,
842,
2414,
26,
80,
2143,
26,
94,
26,
7358,
19153,
452,
74,
17,
76,
22,
83,
17,
523,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
683,
9454,
18035,
560,
273,
20,
18,
26,
18,
27,
1545,
20,
18,
26,
18,
27,
411,
20,
18,
27,
18,
20,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.12;
// ====================================================================
// | ______ _______ |
// | / _____________ __ __ / ____(_____ ____ _____ ________ |
// | / /_ / ___/ __ `| |/_/ /... | @notice Function to withdraw frax from specific FraxLendPair @param fraxlendpair_address Address of fraxlendpair @param frax_amount Amount of Frax to be withdrawed | function withdrawFromPair(address fraxlendpair_address, uint frax_amount) public approvedPair(fraxlendpair_address) onlyByOwnGov{
IFraxLendPair_Partial newFraxLendPair = IFraxLendPair_Partial(fraxlendpair_address);
uint256 share = fraxToFraxLendPairShare(fraxlendpair_address, frax_amount);
... | 6,346,820 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4284,
358,
598,
9446,
284,
354,
92,
628,
2923,
478,
354,
92,
48,
409,
4154,
632,
891,
284,
354,
18402,
409,
6017,
67,
2867,
5267,
434,
284,
354,
18402,
409,
6017,
632,
891,
284,
354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1265,
4154,
12,
2867,
284,
354,
18402,
409,
6017,
67,
2867,
16,
2254,
284,
354,
92,
67,
8949,
13,
1071,
20412,
4154,
12,
74,
354,
18402,
409,
6017,
67,
2867,
13,
1338,
858,
5460,
43,
1527,
95,
203,
3639,
... |
pragma solidity ^0.4.11;
import "./SafeMath.sol";
import './Halt.sol';
contract HTLCBase is Halt {
using SafeMath for uint;
/**
*
* ENUMS
*
*/
/// @notice tx info status
/// @notice uninitialized,locked,refunded,revoked
enum TxStatus {None, Locked, Refunded, Revoked}
/// @n... | @notice the fee ratio of revoking operation | uint public revokeFeeRatio;
| 2,566,377 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
326,
14036,
7169,
434,
5588,
601,
310,
1674,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
1071,
18007,
14667,
8541,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2022-01-14
*/
/**
smashbrostoken.net
t.me/smashbroserc
*/
pragma solidity ^0.8.9;
// SPDX-License-Identifier: UNLICENSED
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface I... | SPDX-License-Identifier: UNLICENSED | abstract contract Context {
smashbrostoken.net
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
| 2,075,690 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
5019,
6065,
1157,
18204,
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,
17801,
6835,
1772,
288,
203,
203,
4808,
961,
4637,
334,
969,
18,
2758,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
97,
203,
2,... |
./full_match/56/0xa958F64eDe3C9979BC0377F61C78178EA7BBd55e/sources/project:/contracts/Cfrc.sol | Make item to offer on the marketplace increment itemCount transfer nft add new item to items mapping emit Offered event | function makeItem(IERC721 _nft, uint _tokenId, uint _price,address _cpo) external nonReentrant {
require(whitelistedNftContracts[address(_nft)], "This nft contract is not allowed.");
require(_cpo != address(0), "Cpo address cont be empty");
require(_price > 0, "Price must be greater than zer... | 3,228,892 | [
1,
4625,
348,
7953,
560,
30,
225,
4344,
761,
358,
10067,
603,
326,
29917,
5504,
761,
1380,
7412,
290,
1222,
527,
394,
761,
358,
1516,
2874,
3626,
25753,
329,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1221,
1180,
12,
45,
654,
39,
27,
5340,
389,
82,
1222,
16,
2254,
389,
2316,
548,
16,
2254,
389,
8694,
16,
2867,
389,
71,
1631,
13,
3903,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
20409,
329,
50,
1222,
20723,
63... |
./partial_match/1/0x62aD7a806717F944E1b9f9EFCB2a14fD7BEFcDDC/sources/POWGhosts.sol | * @dev Mints `quantity` tokens and transfers them to `to`. Requirements: - `to` cannot be the zero address. - `quantity` must be greater than 0. Emits a {Transfer} event./ | function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) return;
if (_currentIndex >= _magic_n) {
... | 3,699,027 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
1375,
16172,
68,
2430,
471,
29375,
2182,
358,
1375,
869,
8338,
29076,
30,
300,
1375,
869,
68,
2780,
506,
326,
3634,
1758,
18,
300,
1375,
16172,
68,
1297,
506,
6802,
2353,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
10457,
16,
203,
3639,
1731,
3778,
389,
892,
16,
203,
3639,
1426,
4183,
203,
565,
262,
2713,
288,
203,
3639,
2254,
5034,
787,
1345,
548,
273,
389,
2972... |
./full_match/1/0x30101C09adC32B486d27fe8F6997e825a27b9FC0/sources/@hashflow/contracts-evm/contracts/interfaces/IQuote.sol | @notice Used for intra-chain RFQ-M trades. | struct RFQMQuote {
address pool;
address externalAccount;
address trader;
address baseToken;
address quoteToken;
uint256 baseTokenAmount;
uint256 quoteTokenAmount;
uint256 quoteExpiry;
bytes32 txid;
bytes takerSignature;
bytes m... | 8,324,341 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10286,
364,
316,
2033,
17,
5639,
534,
23032,
17,
49,
1284,
5489,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
534,
23032,
49,
10257,
288,
203,
3639,
1758,
2845,
31,
203,
3639,
1758,
3903,
3032,
31,
203,
3639,
1758,
1284,
765,
31,
203,
3639,
1758,
1026,
1345,
31,
203,
3639,
1758,
3862,
1345,
31,
203,
3639,
2254,
5034,
1026,
134... |
./partial_match/1/0x14cC8DfaF2258E1B8B2869300dBa1B734dc0fE43/sources/KtuneTokenBlocks.sol | * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to f... | function approve(address spender, uint256 value) public returns (bool) {
_approve(msg.sender, spender, value);
return true;
}
| 2,737,049 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1716,
685,
537,
326,
2275,
1758,
358,
17571,
326,
1269,
3844,
434,
2430,
603,
12433,
6186,
434,
1234,
18,
15330,
18,
605,
359,
834,
716,
12770,
392,
1699,
1359,
598,
333,
707,
5186,
899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
445,
6617,
537,
12,
2867,
17571,
264,
16,
2254,
5034,
460,
13,
1071,
1135,
261,
6430,
13,
288,
203,
5411,
389,
12908,
537,
12,
3576,
18,
15330,
16,
17571,
264,
16,
460,
1769,
203,
5411,
327,
638,
31,
203,
3639,
289,
203,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | подкрасться к жертве
| rus_verbs:подкрасться{}, | 5,487,972 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
128,
145,
127,
145,
117,
145,
123,
146,
227,
145,
113,
146,
228,
146,
229,
146,
239,
146,
228,
146,
242,
225,
145,
123,
225,
145,
119,
145,
118,
146,
227,
146,
229,
145,
115,
145,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
436,
407,
67,
502,
2038,
30,
145,
128,
145,
127,
145,
117,
145,
123,
146,
227,
145,
113,
146,
228,
146,
229,
146,
239,
146,
228,
146,
242,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/80001/0xce314C7E59473B42534c999255BCBbf8a6C764D3/sources/contracts/OverridableERC721A.sol | * @dev See {IERC721-approve}./ | function approve(address to, uint256 tokenId) public virtual override {
address owner = OverridableERC721A.ownerOf(tokenId);
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSender() != owner)
if (!isApprovedForAll(owner, _msgSender())) {
revert Approval... | 9,500,469 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
12908,
537,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6617,
537,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
1071,
5024,
3849,
288,
203,
3639,
1758,
3410,
273,
531,
1107,
27621,
654,
39,
27,
5340,
37,
18,
8443,
951,
12,
2316,
548,
1769,
203,
3639,
309,
261,
869,
422,
... |
/**
* SPDX-License-Identifier: UNLICENSED
*/
pragma solidity 0.6.10;
/**
* @dev Interface of the Chainlink aggregator
*/
interface AggregatorInterface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view re... | * @notice scale aggregator response to base decimals (1e8) @param _price aggregator price @return price scaled to 1e8/ | function _scaleToBase(uint256 _price) internal view returns (uint256) {
if (aggregatorDecimals > BASE) {
uint256 exp = aggregatorDecimals.sub(BASE);
_price = _price.div(10**exp);
uint256 exp = BASE.sub(aggregatorDecimals);
_price = _price.mul(10**exp);
... | 484,077 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3159,
20762,
766,
358,
1026,
15105,
261,
21,
73,
28,
13,
632,
891,
389,
8694,
20762,
6205,
632,
2463,
6205,
12304,
358,
404,
73,
28,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5864,
774,
2171,
12,
11890,
5034,
389,
8694,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
10751,
639,
31809,
405,
10250,
13,
288,
203,
5411,
2254,
5034,
1329,
273,
20762,
31809,
18,
1717,
1... |
pragma solidity ^0.5.0;
import "./interfaces/IMetadataRegistry.sol";
import "./interfaces/IOwnerRegistry.sol";
import "./interfaces/IReverseRegistry.sol";
contract Owned {
event NewOwner(address indexed old, address indexed current);
address public owner = msg.sender;
modifier onlyOwner {
requi... | ReversibleRegistry views | function hasReverse(bytes32 _name)
external
view
whenEntryRaw(_name)
returns (bool)
{
return entries[_name].reverse != address(0);
}
| 956,145 | [
1,
4625,
348,
7953,
560,
30,
225,
868,
2496,
1523,
4243,
7361,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
711,
12650,
12,
3890,
1578,
389,
529,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1347,
1622,
4809,
24899,
529,
13,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
3222,
63,
67,
529,
8009,
9845,
48... |
// SPDX-License-Identifier: MIT
// Contract by pr0xy.io
pragma solidity ^0.8.7;
import './ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol';
contract ZiPoap is ERC721Enumerable, Ownable {
using Strings for uint256;
... | See {IERC721-balanceOf}. | function balanceOf(address owner) public view virtual override returns (uint) {
require(owner != address(0), "ERC721: balance query for the zero address");
uint count;
for(uint i; i < _owners.length; ++i){
if(owner == _owners[i]) ++count;
}
return count;
}
| 170,892 | [
1,
4625,
348,
7953,
560,
30,
225,
2164,
288,
45,
654,
39,
27,
5340,
17,
12296,
951,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
11013,
951,
12,
2867,
3410,
13,
1071,
1476,
5024,
3849,
1135,
261,
11890,
13,
288,
203,
565,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
27,
5340,
30,
11013,
843,
364,
326,
3634,
1758,
8863,
203,
203,
565,
... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
interface TokenInterface {
function APPROVE44(address, uint256) external; //inject NONSTANDARD NAMING
function TRANSFER867(address, uint) external; //inject NONSTANDARD NAMING
functi... | inject NONSTANDARD NAMING
| function WMUL242(uint x, uint y) internal pure returns (uint z) { | 5,365,097 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
678,
49,
1506,
3247,
22,
12,
11890,
619,
16,
2254,
677,
13,
2713,
16618,
1135,
261,
11890,
998,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/42/0x4b065522Eb65d9a2276aAbab2c555AE41DBA71Ac/sources/BlockchainForestDefi.sol | Local variablespour testActionspour testuniswapRouter.swapExactTokensForETH(_amount, 10, path, address(this), now + 120 );path[0] = daiTokenAddress;path[1] = usdtTokenAddress;uint amountout = address(this).balance;uniswapRouter.swapExactETHForTokens{value: amountout}(10, path, address(this), now + 120 ); | function swapHalfDaiToUsdc(uint _amount) public onlyOwner {
uint amountTemp = _amount * 1e15;
IUniswapV2Router02 UniswapRouter = IUniswapV2Router02(0x05fF2B0DB69458A0750badebc4f9e13aDd608C7F);
address[] memory path = new address[](2);
path[0] = daiTokenAddress;
path[1] = ... | 16,286,334 | [
1,
4625,
348,
7953,
560,
30,
3566,
3152,
84,
477,
1842,
1803,
1752,
477,
1842,
318,
291,
91,
438,
8259,
18,
22270,
14332,
5157,
1290,
1584,
44,
24899,
8949,
16,
1728,
16,
589,
16,
1758,
12,
2211,
3631,
2037,
397,
15743,
11272,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
445,
7720,
16168,
40,
10658,
774,
3477,
7201,
12,
11890,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
4202,
203,
1377,
2254,
3844,
7185,
273,
389,
8949,
380,
404,
73,
3600,
31,
203,
4202,
203,
1377,
467,
984,
291,
91,
438,
5... |
pragma solidity ^0.4.25;
/*
SuperCountries War Game #2 - Nuke countries and share a huge war chest
SuperCountries Original Game #1 - Each player earns ether forever
███████╗██╗ ██╗██████╗ ███████... | / ETHER / kCountry * lastKnownPrice cannot exceed this limit
| uint256 private kCountryLimit = 5e17; | 1,819,970 | [
1,
4625,
348,
7953,
560,
30,
342,
512,
19905,
342,
417,
8142,
380,
1142,
11925,
5147,
2780,
9943,
333,
1800,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
11890,
5034,
3238,
417,
8142,
3039,
273,
1381,
73,
4033,
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,
-... |
./full_match/4/0x765becb5696AfD5A44D4EE8C6269F0b169b1df4D/sources/contracts/Bridge.sol | the parallel contract of that main contract from that chainID
| mapping (address /*ThatMain*/ => mapping(uint256 /*chainID*/ => address /*ThisParallel*/ )) private _parallelContractOfThat; | 789,526 | [
1,
4625,
348,
7953,
560,
30,
326,
7230,
6835,
434,
716,
2774,
6835,
628,
716,
27756,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
2867,
1748,
18163,
6376,
5549,
516,
2874,
12,
11890,
5034,
1748,
5639,
734,
5549,
516,
1758,
1748,
2503,
13056,
5549,
8623,
3238,
389,
18054,
8924,
951,
18163,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x46C1BFAe04c19aA6b114A0FC3Ef78d19C9256763/sources/contracts/LiquidityBootstrapAuction.sol | * @notice Deposit `amount` $USDC to the contract @param amount $USDC token amount to deposit/ | function depositUSDC(uint256 amount) public nonReentrant {
require(usdcDepositAllowed(), "deposit not allowed");
require(usdc.balanceOf(msg.sender) >= amount, "insufficient balance");
depositedUSDC[msg.sender] += amount;
totalDepositedUSDC += amount;
emit USDCDeposited(msg.s... | 8,290,304 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4019,
538,
305,
1375,
8949,
68,
271,
3378,
5528,
358,
326,
6835,
632,
891,
3844,
271,
3378,
5528,
1147,
3844,
358,
443,
1724,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
3378,
5528,
12,
11890,
5034,
3844,
13,
1071,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
407,
7201,
758,
1724,
5042,
9334,
315,
323,
1724,
486,
2935,
8863,
203,
3639,
2583,
12,
407,
7201,
18,
12296,
951,
... |
./partial_match/1/0xF4B6f2ab709703aa1a3E47fa0183EC700017c62B/sources/CaioVicentino.sol | File: @openzeppelin/contracts/token/ERC721/ERC721.sol OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)* the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping ... | contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
string private _name;
string private _symbol;
mapping(uint256 => address) private _owners;
mapping(address => uint256) private _balances;
mapping(uint256 => address) priv... | 16,148,650 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
2316,
19,
654,
39,
27,
5340,
19,
654,
39,
27,
5340,
18,
18281,
3502,
62,
881,
84,
292,
267,
30131,
261,
2722,
3526,
331,
24,
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,
16351,
4232,
39,
27,
5340,
353,
1772,
16,
4232,
39,
28275,
16,
467,
654,
39,
27,
5340,
16,
467,
654,
39,
27,
5340,
2277,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
533,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
contract Migrations {
address public owner = msg.sender;
uint public last_completed_migration;
modifier restricted() {
require(
msg.sender == owner,
"This function is restricted to the contract's owner"
);
_;
}
functio... | @notice Set the prices of the given tokens. @param tokens The tokens to set the prices. @param prices The prices of tokens. | function setPrices(address[] memory tokens, uint[] memory prices) external onlyGov {
require(tokens.length == prices.length, 'setPrices: lengths do not match');
for (uint i = 0; i < tokens.length; i++) {
priceMap[tokens[i]] = prices[i];
emit setPriceEvent(tokens[i], prices[i]... | 1,496,008 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
326,
19827,
434,
326,
864,
2430,
18,
632,
891,
2430,
1021,
2430,
358,
444,
326,
19827,
18,
632,
891,
19827,
1021,
19827,
434,
2430,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
31862,
12,
2867,
8526,
3778,
2430,
16,
2254,
8526,
3778,
19827,
13,
3903,
1338,
43,
1527,
288,
203,
3639,
2583,
12,
7860,
18,
2469,
422,
19827,
18,
2469,
16,
296,
542,
31862,
30,
10917,
741,
486,
845,
8284,
203,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.9;
import "./ProtoBufRuntime.sol";
import "./GoogleProtobufAny.sol";
import "./gogoproto/gogo.sol";
library Channel {
//enum definition
// Solidity enum definitions
enum State {
STATE_UNINITIALIZED_UNSPECIFIED,
STATE_INIT,
STATE_TRYOPEN,
... | * @dev The decoder for internal usage @param p The offset of bytes array to start decode @param bs The bytes array to be decoded @param sz The number of bytes expected @return The decoded struct @return The number of bytes decoded/ | function _decode(uint256 p, bytes memory bs, uint256 sz)
internal
pure
returns (Data memory, uint)
{
Data memory r;
uint[8] memory counters;
uint256 fieldId;
ProtoBufRuntime.WireType wireType;
uint256 bytesRead;
uint256 offset = p;
uint256 pointer = p;
while (pointer < of... | 12,608,206 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
8320,
364,
2713,
4084,
632,
891,
293,
1021,
1384,
434,
1731,
526,
358,
787,
2495,
632,
891,
7081,
1021,
1731,
526,
358,
506,
6383,
632,
891,
11262,
1021,
1300,
434,
1731,
2665,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
3922,
12,
11890,
5034,
293,
16,
1731,
3778,
7081,
16,
2254,
5034,
11262,
13,
203,
565,
2713,
203,
565,
16618,
203,
565,
1135,
261,
751,
3778,
16,
2254,
13,
203,
225,
288,
203,
565,
1910,
3778,
436,
31,
203,
565,
... |
./full_match/1/0x75EC8E766d8b30BaEA99110F5d2829c80e2b1A48/sources/contracts/APU.sol | if the cap is disabled, there is no need to check further
| if (!transferCapped()) return; | 17,082,818 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
326,
3523,
353,
5673,
16,
1915,
353,
1158,
1608,
358,
866,
9271,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
16051,
13866,
4664,
1845,
10756,
327,
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.4.24;
// Import the library 'Roles'
import "./Roles.sol";
// Define a contract 'AirlineRole' to manage this role - add, remove, check
contract AirlineRole {
using Roles for Roles.Role;
// Define 2 events, one for Adding, and other for Removing
event AirlineAdded(address indexed account);
e... | Define a function 'renounceAirline' to renounce this role | function renounceAirline() public {
_removeAirline(msg.sender);
}
| 6,409,640 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
279,
445,
296,
1187,
8386,
29752,
1369,
11,
358,
1654,
8386,
333,
2478,
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,
225,
445,
1654,
8386,
29752,
1369,
1435,
1071,
288,
203,
565,
389,
4479,
29752,
1369,
12,
3576,
18,
15330,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x5588ec4dae76dDD420850AAA7d3022AaFF5296Eb/sources/Ditto.sol | * @dev Notifies Fragments contract about a new rebase cycle. @param supplyDelta The number of new fragment tokens to add into circulation via expansion. @return The total number of fragments after the supply adjustment./ | function rebase(uint256 epoch, int256 supplyDelta)
external
onlyMaster
returns (uint256)
{
if (supplyDelta == 0) {
emit LogRebase(epoch, _totalSupply);
return _totalSupply;
}
if (supplyDelta < 0) {
_totalSupply = _totalSupply.s... | 5,134,173 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2288,
5032,
478,
2458,
1346,
6835,
2973,
279,
394,
283,
1969,
8589,
18,
632,
891,
14467,
9242,
1021,
1300,
434,
394,
5481,
2430,
358,
527,
1368,
5886,
1934,
367,
3970,
17965,
18,
632,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
1969,
12,
11890,
5034,
7632,
16,
509,
5034,
14467,
9242,
13,
203,
3639,
3903,
203,
3639,
1338,
7786,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
309,
261,
2859,
1283,
9242,
422,
374,
13,
288,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-14
*/
//SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with ver... | Updated: This functionality was ONLY handled by the constructor in the previous version. This did not allow for WL additions/removals | function setPublicMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
merkleRoot = _merkleRoot;
}
| 2,323,536 | [
1,
4625,
348,
7953,
560,
30,
225,
19301,
30,
1220,
14176,
1703,
20747,
7681,
635,
326,
3885,
316,
326,
2416,
1177,
18,
1220,
5061,
486,
1699,
364,
678,
48,
26260,
19,
2764,
1527,
1031,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
27467,
8478,
15609,
2375,
12,
3890,
1578,
389,
6592,
15609,
2375,
13,
3903,
1338,
5541,
288,
203,
3639,
30235,
2375,
273,
389,
6592,
15609,
2375,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
// GenericSmartWallet.sol -- Part of the Charged Particles Protocol
// Copyright (c) 2021 Firma Lux, Inc. <https://charged.fi>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | @dev Throws if called by any account other than the basket manager | modifier onlyBasketManager() {
require(_basketManager == msg.sender, "GSB:E-109");
_;
}
| 15,861,556 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
22435,
309,
2566,
635,
1281,
2236,
1308,
2353,
326,
12886,
3301,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
9606,
1338,
11324,
1318,
1435,
288,
203,
565,
2583,
24899,
26219,
1318,
422,
1234,
18,
15330,
16,
315,
43,
14541,
30,
41,
17,
22267,
8863,
203,
565,
389,
31,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.17;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
... | get all addresses that has been airdropped | function getDoneAddresses() public constant returns (address[]){
return airdropDoneList;
}
| 10,810,906 | [
1,
4625,
348,
7953,
560,
30,
336,
777,
6138,
716,
711,
2118,
279,
6909,
1764,
1845,
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,
2343,
476,
7148,
1435,
1071,
5381,
1135,
261,
2867,
63,
5717,
95,
203,
3639,
327,
279,
6909,
1764,
7387,
682,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/**
*Submitted for verification at Etherscan.io on 2022-04-12
*/
/**
*Submitted for verification at Etherscan.io on 2022-04-12
*/
// File: Moontest_flat_flat.sol
// File: Moontest_flat.sol
// File: Moontest.sol
pragma solidity ^0.8.4;
interface IERC20 {
function totalSupply() external view returns (uint25... | WBNB Receiver address | function swapTokensForBNB(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _pancakeRouter.WETH();
_pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
... | 15,377,398 | [
1,
4625,
348,
7953,
560,
30,
225,
678,
15388,
38,
31020,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7720,
5157,
1290,
15388,
38,
12,
11890,
5034,
1147,
6275,
13,
3238,
288,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2211,
1769,
203,
3639,
589,
63,... |
/* solium-disable no-trailing-whitespace */
pragma solidity >= 0.5.0 < 0.6.0;
import './provableAPI_0.5.sol';
import './strings.sol';
/// @title Preserves verses from the KJV Bible on the blockchaib
/// @author John Wall, Ealdorman, Inc.
/// @notice Use this contract to store and retrieve Bible verses
/// @dev The or... | @dev The LogVerseAdded event is crucial for updating the off-chain database | event LogVerseAdded(string book, string chapter, string verse);
| 12,553,124 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1021,
1827,
3945,
307,
8602,
871,
353,
4422,
5286,
649,
364,
9702,
326,
3397,
17,
5639,
2063,
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,
225,
871,
1827,
3945,
307,
8602,
12,
1080,
6978,
16,
533,
23580,
16,
533,
1924,
307,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0xa3cc9e4B9784c80a05B3Af215C32ff223C3ebE5c/sources/home/david/repc-v1.0.0/contracts/RariFundToken.sol | @notice Moves `amount` tokens from the caller's account to `recipient`. @dev Claims RGT earned by the sender and `recipient` beforehand (so RariGovernanceTokenDistributor can continue distributing RGT considering the new REPT balances). @return A boolean value indicating whether the operation succeeded./ Claim RGT/set... | function transfer(address recipient, uint256 amount) public returns (bool) {
if (address(rariGovernanceTokenDistributor) != address(0) && block.number > rariGovernanceTokenDistributor.distributionStartBlock()) {
rariGovernanceTokenDistributor.distributeRgt(_msgSender(), IRariGovernanceTokenDistr... | 4,092,449 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
490,
10829,
1375,
8949,
68,
2430,
628,
326,
4894,
1807,
2236,
358,
1375,
20367,
8338,
632,
5206,
28895,
534,
16506,
425,
1303,
329,
635,
326,
5793,
471,
1375,
20367,
68,
1865,
2349,
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,
565,
445,
7412,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
2867,
12,
86,
12954,
43,
1643,
82,
1359,
1345,
1669,
19293,
13,
480,
1758,
12,
20,
13,
597,
1203,
18,
2696,
405,
4... |
pragma solidity ^0.5.16;
import "./SafeBEP20.sol";
import "./IBEP20.sol";
import "./XAIVaultProxy.sol";
import "./XAIVaultStorage.sol";
import "./XAIVaultErrorReporter.sol";
contract XAIVault is XAIVaultStorage {
using SafeMath for uint256;
using SafeBEP20 for IBEP20;
/// @notice Event emitted when XAI de... | * @dev Set the current admin to new address/ | function setNewAdmin(address newAdmin) public onlyAdmin {
require(newAdmin != address(0), "new owner is the zero address");
emit AdminTransfered(admin, newAdmin);
admin = newAdmin;
}
| 12,891,585 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
326,
783,
3981,
358,
394,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19469,
4446,
12,
2867,
394,
4446,
13,
1071,
1338,
4446,
288,
203,
3639,
2583,
12,
2704,
4446,
480,
1758,
12,
20,
3631,
315,
2704,
3410,
353,
326,
3634,
1758,
8863,
203,
3639,
3626,
7807,
5912,
329,
12,
3666,
16,
394,
... |
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @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 ret... | the maximum stake amount for this asset (bot-lifetime).
| uint256 cap; | 5,528,949 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
4207,
384,
911,
3844,
364,
333,
3310,
261,
4819,
17,
17155,
2934,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
3523,
31,
2398,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: Apache-2.0
// 2021 (C) SUPER HOW Contracts: superhow.ART Auction governance v1.0
pragma solidity 0.8.4;
import "./Weighting.sol";
import "./IERC20.sol";
import "./IERC1155.sol";
interface IERC1155extended is IERC1155 {
function mint(address account, uint256 id, uint256 amount, ... | _erc1155ContractInstance.safeTransferFrom(_governanceBeneficiary, _whaleAddress, 0, _userAmount, ""); | function _distributeToWhale(Whales whalesContract)
internal
afterGovernanceAuction()
{
_userAmount = 1;
_totalGovernance = 1;
_whaleAddress = whalesContract.getHighestBidder();
_erc1155ContractInstance.mint(_whaleAddress, _idNFT, _userAmount, "");
... | 112,240 | [
1,
4625,
348,
7953,
560,
30,
225,
389,
12610,
2499,
2539,
8924,
1442,
18,
4626,
5912,
1265,
24899,
75,
1643,
82,
1359,
38,
4009,
74,
14463,
814,
16,
389,
3350,
5349,
1887,
16,
374,
16,
389,
1355,
6275,
16,
1408,
1769,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
2251,
887,
774,
2888,
5349,
12,
2888,
5408,
600,
5408,
8924,
13,
203,
3639,
2713,
203,
3639,
1839,
43,
1643,
82,
1359,
37,
4062,
1435,
203,
565,
288,
203,
5411,
389,
1355,
6275,
273,
404,
31,
203,
5411,
389,
4963... |
pragma solidity 0.5.16;
import "./Governable.sol";
contract Controllable is Governable {
constructor(address _storage) public Governable(_storage) {}
modifier onlyController() {
require(store.isController(msg.sender), "Not a controller");
_;
}
modifier onlyControllerOrGovernance() {
... | Profits can be disabled for possible simplified and rapid exit we can accept 1 as the minimum because this will be called only by a trusted worker | function liquidateIdle() internal {
if (!sellIdle) {
emit ProfitsNotCollected(idle);
return;
}
uint256 rewardBalance = IERC20(idle).balanceOf(address(this));
notifyProfitInRewardToken(rewardBalance);
uint256 idleBalance = IERC20(idle).balanceOf(addre... | 1,628,205 | [
1,
4625,
348,
7953,
560,
30,
225,
1186,
18352,
848,
506,
5673,
364,
3323,
20482,
471,
767,
6610,
2427,
732,
848,
2791,
404,
487,
326,
5224,
2724,
333,
903,
506,
2566,
1338,
635,
279,
13179,
4322,
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,
0,
0,
0,
0,
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,
4501,
26595,
340,
13834,
1435,
2713,
288,
203,
3639,
309,
16051,
87,
1165,
13834,
13,
288,
203,
5411,
3626,
1186,
18352,
1248,
10808,
329,
12,
20390,
1769,
203,
5411,
327,
31,
203,
3639,
289,
203,
203,
3639,
2254,
5034,
... |
pragma solidity ^0.5.8;
pragma experimental ABIEncoderV2;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "iexec-doracle-base/contracts/IexecDoracle.sol";
contract WindOracle is Ownable, IexecDoracle
{
struct TimedValue
{
bytes32 oracleCallID;
uint256 date;
uint256 speed;
uint256 deg;... | Parse results Process results | function decodeResults(bytes memory results)
public pure returns(uint256, uint256, uint256, string memory)
function processResult(bytes32 _oracleCallID)
public
{
uint256 date;
uint256 deg;
uint256 speed;
string memory details;
(date, speed, deg, details) = decodeResults(_iexecDo... | 15,869,432 | [
1,
4625,
348,
7953,
560,
30,
225,
2884,
1686,
4389,
1686,
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,
202,
915,
2495,
3447,
12,
3890,
3778,
1686,
13,
203,
202,
482,
16618,
1135,
12,
11890,
5034,
16,
2254,
5034,
16,
2254,
5034,
16,
533,
3778,
13,
203,
203,
202,
915,
1207,
1253,
12,
3890,
1578,
389,
280,
16066,
1477,
734,
13,
203... |