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 |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address acco... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | contract Ownable is Context {
address private _owner;
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () {
address call = _call();
_owner = call;
owner = call;
emit OwnershipTransferred(address(0... | 10,247,483 | [
1,
8924,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
1758,
1071,
3410,
31,
203,
377,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
20... |
./full_match/9001/0x913A3070694B9dba810e3068FE669e3cE8c3666E/sources/src/Helpers/Swapper.sol | @dev Executes swaps and checks that DEXs used are in the allowList @param _lifiData LiFi tracking data @param _swapData Array of data used to execute swaps | function _executeSwaps(LiFiData memory _lifiData, LibSwap.SwapData[] calldata _swapData)
private
noLeftovers(_swapData)
{
for (uint256 i = 0; i < _swapData.length; i++) {
LibSwap.SwapData calldata currentSwapData = _swapData[i];
if (
!(appStorage.d... | 11,532,682 | [
1,
9763,
1352,
6679,
471,
4271,
716,
2030,
60,
87,
1399,
854,
316,
326,
1699,
682,
225,
389,
80,
704,
751,
27897,
42,
77,
11093,
501,
225,
389,
22270,
751,
1510,
434,
501,
1399,
358,
1836,
1352,
6679,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
8837,
6050,
6679,
12,
28762,
42,
77,
751,
3778,
389,
80,
704,
751,
16,
10560,
12521,
18,
12521,
751,
8526,
745,
892,
389,
22270,
751,
13,
203,
3639,
3238,
203,
3639,
1158,
1682,
74,
869,
2496,
24899,
22270,
751,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.10;
import "@interest-protocol/contracts/OracleV1.sol";
//solhint-disable-next-line no-empty-blocks
contract TestOracleV1 is OracleV1 {
}
| solhint-disable-next-line no-empty-blocks | contract TestOracleV1 is OracleV1 {
pragma solidity 0.8.10;
}
| 12,623,145 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
5531,
17,
7996,
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,
7766,
23601,
58,
21,
353,
28544,
58,
21,
288,
203,
203,
683,
9454,
18035,
560,
374,
18,
28,
18,
2163,
31,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.5.1;
contract AdminInterface {
function addCandidate(
address payable _candidateAddr
) public returns(bool);
function deleteCandidate(
address payable _candidateAddr
) public returns(bool);
function setCapacity(
uint _capacity
) public returns(bool);
... | * 投票/ 刷新所有的投票结果 如果从没投过票,就添加投票人 | ) onlyApproved(voterAddr) public returns(bool){
require(refreshVoteForAll());
uint voterIndex=voterIndexMap[voterAddr];
function updateCandidateAddr(
address payable _candidateAddr,
address payable _newCandidateAddr
}
function vote(
address payable voterAddr,
... | 12,874,604 | [
1,
167,
237,
248,
168,
103,
106,
19,
225,
166,
235,
120,
167,
249,
113,
167,
236,
227,
167,
255,
236,
168,
253,
231,
167,
237,
248,
168,
103,
106,
168,
124,
246,
167,
257,
255,
225,
166,
104,
229,
167,
257,
255,
165,
124,
241,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
1338,
31639,
12,
90,
20005,
3178,
13,
1071,
1135,
12,
6430,
15329,
203,
3639,
2583,
12,
9144,
19338,
1290,
1595,
10663,
203,
3639,
2254,
331,
20005,
1016,
33,
90,
20005,
1016,
863,
63,
90,
20005,
3178,
15533,
203,
565,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract RandomMachine{
address private owner;
uint public randomSeed;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner... | * @dev Set contract deployer as owner/ init external randomMachine | constructor(address randomMachineAddress) {
emit OwnerSet(address(0), owner);
randomMachine = RandomMachine(randomMachineAddress);
nonce = 0;
}
| 12,781,231 | [
1,
694,
6835,
7286,
264,
487,
3410,
19,
1208,
3903,
2744,
6981,
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,
3885,
12,
2867,
2744,
6981,
1887,
13,
288,
203,
3639,
3626,
16837,
694,
12,
2867,
12,
20,
3631,
3410,
1769,
203,
203,
3639,
2744,
6981,
273,
8072,
6981,
12,
9188,
6981,
1887,
1769,
203,
3639,
7448,
273,
374,
31,
203,
565,
... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import {PercentageMath} from '../protocol/libraries/math/PercentageMath.sol';
import {SafeMath} from '../dependencies/openzeppelin/contracts/SafeMath.sol';
import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20.... | * @dev Validates the action of setting an asset as collateral @param reserve The state of the reserve that the user is enabling or disabling as collateral @param reserveAddress The address of the reserve @param reservesData The data of all the reserves @param userConfig The state of the user for the specific reserve @p... | function validateSetUseReserveAsCollateral(
DataTypes.ReserveData storage reserve,
address reserveAddress,
bool useAsCollateral,
mapping(address => DataTypes.ReserveData) storage reservesData,
DataTypes.UserConfigurationMap storage userConfig,
mapping(uint256 => address) storage reserves,
... | 68,333 | [
1,
9594,
326,
1301,
434,
3637,
392,
3310,
487,
4508,
2045,
287,
225,
20501,
1021,
919,
434,
326,
20501,
716,
326,
729,
353,
570,
17912,
578,
1015,
17912,
487,
4508,
2045,
287,
225,
20501,
1887,
1021,
1758,
434,
326,
20501,
225,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
694,
3727,
607,
6527,
1463,
13535,
2045,
287,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
20501,
16,
203,
565,
1758,
20501,
1887,
16,
203,
565,
1426,
999,
1463,
13535,
2045,
287,
16,
203,
565,
2874,
12,
... |
pragma solidity 0.5.17;
import "./UpgradeableProxy.sol";
/**
* @author Quant Network
* @title TreasuryAbstract
* @dev Sets the main variables of a Treasury contract and allows other contracts to easily interface with a Treasury contract without knowing the whole code.
*/
contract TreasuryBase is UpgradeableProxy... | * @return - the penalty multiplier a gateway has to pay if it has be found in breach of one of its verification rules. The mulitipication is used with the original fee of the function I.e. a gatewayPenalty of 5 is equal to a 5x penalty./ | function gatewayPenaltyMultipler() public view returns (uint16){
return uint16Storage[keccak256(gatewayPenaltyMultipler1)];
}
| 6,477,594 | [
1,
2463,
300,
326,
23862,
15027,
279,
6878,
711,
358,
8843,
309,
518,
711,
506,
1392,
316,
324,
12974,
434,
1245,
434,
2097,
11805,
2931,
18,
1021,
14064,
305,
625,
829,
353,
1399,
598,
326,
2282,
14036,
434,
326,
445,
467,
18,
73,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
3639,
445,
6878,
24251,
15006,
5002,
20728,
1435,
1071,
1476,
1135,
261,
11890,
2313,
15329,
203,
5411,
327,
2254,
2313,
3245,
63,
79,
24410,
581,
5034,
12,
11127,
24251,
15006,
5002,
20728,
21,
13,
15533,
203,
3639,
289,
203,
377,
... |
./full_match/5/0x21517abae577dDC59Ac6945C501F36AF085d97A7/sources/contracts/CrowdFunding.sol | global variable which at the start would be set to 0, as we want to keep the track of the campaigns so it would be kept 0
| uint256 public numberOfCampaigns = 0; | 1,856,058 | [
1,
6347,
2190,
1492,
622,
326,
787,
4102,
506,
444,
358,
374,
16,
487,
732,
2545,
358,
3455,
326,
3298,
434,
326,
8965,
87,
1427,
518,
4102,
506,
16555,
374,
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,
11890,
5034,
1071,
7922,
13432,
87,
273,
374,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0xA9f3bCD35380d5eA4431D25adC8Fd8A85B5ABA52/sources/contracts/GetVotedToEarn.sol | for testing purpose
| function getOneContestCreatorAddressNoRule(uint256 _contestId) public view returns (address,address,address) { | 5,616,911 | [
1,
1884,
7769,
13115,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20863,
660,
395,
10636,
1887,
2279,
2175,
12,
11890,
5034,
389,
1213,
395,
548,
13,
1071,
1476,
1135,
261,
2867,
16,
2867,
16,
2867,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
contract MineAuction {
event Bid(address bidder, uint amount, uint charType, uint tokenId);
IERC20 public acceptableToken;
IERC721 public mms2;
IERC721 public mms1;
IERC721 public hero;
uint public phrase; // 1 - started/fre... | time beyond oneendat and first twodelay, then auction ends at phrase 1
| } else { | 15,882,880 | [
1,
957,
17940,
1245,
409,
270,
471,
1122,
2339,
1009,
528,
16,
1508,
279,
4062,
3930,
622,
13045,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
289,
469,
288,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.16;
import "wafr/Test.sol";
import "utils/MiniMeToken.sol";
contract TokenUser {
MiniMeToken token;
function () public payable {}
function TokenUser(address _token) public {
token = MiniMeToken(_token);
}
function transfer(address _to, uint256 _value) public returns (bool) {
... | generate tokens test for balance | function test_4_generateTokensAccrossBlocksAfterDestroy_increaseBlocksBy1000() {
assertEq(token.generateTokens(address(this), 2340), true);
initGeneration += 2340;
assertEq(token.balanceOf(address(this)), initGeneration);
assertEq(token.balanceOfAt(address(this), block.number), initGeneration);
... | 13,031,681 | [
1,
7163,
2430,
1842,
364,
11013,
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,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1842,
67,
24,
67,
7163,
5157,
8973,
3984,
6450,
4436,
10740,
67,
267,
11908,
6450,
858,
18088,
1435,
288,
203,
565,
1815,
19508,
12,
2316,
18,
7163,
5157,
12,
2867,
12,
2211,
3631,
576,
5026,
20,
3631,
638,
1769,
203,
... |
./full_match/1/0xcb6Ea7fddFdf2AFc2Bc6Bf715185A33F8E27B96b/sources/@pendle/core-v2/contracts/router/base/MarketApproxLib.sol | every iteration, the diff between guessMin and guessMax will be divided by 2
| uint256 maxIteration; | 3,061,510 | [
1,
20434,
6532,
16,
326,
3122,
3086,
7274,
2930,
471,
7274,
2747,
903,
506,
26057,
635,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
943,
10795,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x88c2EF4520a6173E492aDeFa175Ba2497588Fe1f/sources/Slot_Machine.sol | @dev circuit breaker to disable the deposit function. | function depositsCircuitBreaker() public onlyOwner(){
bool _on;
bool _off;
enableDeposits = !enableDeposits;
if(enableWithdrawals){
_on = true;
_off = false;
_on = false;
_off = true;
}
emit DepositBreaker(_on, _off);
}
| 720,534 | [
1,
24987,
898,
264,
358,
4056,
326,
443,
1724,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
443,
917,
1282,
21719,
22660,
1435,
1071,
1338,
5541,
1435,
95,
203,
565,
1426,
389,
265,
31,
203,
565,
1426,
389,
3674,
31,
203,
565,
4237,
758,
917,
1282,
273,
401,
7589,
758,
917,
1282,
31,
203,
565,
309,
12,
7589,... |
pragma solidity ^0.5.16;
pragma experimental ABIEncoderV2;
import "./GovernorMikeInterfaces.sol";
contract GovernorMikeDelegate is
GovernorMikeDelegateStorageV2,
GovernorMikeEvents
{
/// @notice The name of this contract
string public constant name = "Compound Governor Mike";
/// @notice The min... | * @notice Gets the state of a proposal @param proposalId The id of the proposal @return Proposal state/ | function state(uint proposalId) public view returns (ProposalState) {
require(proposalCount >= proposalId, "GovernorMike::state: invalid proposal id");
Proposal storage proposal = proposals[proposalId];
if (proposal.canceled) {
return ProposalState.Canceled;
return Pr... | 1,835,950 | [
1,
3002,
326,
919,
434,
279,
14708,
225,
14708,
548,
1021,
612,
434,
326,
14708,
327,
19945,
919,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
919,
12,
11890,
14708,
548,
13,
1071,
1476,
1135,
261,
14592,
1119,
13,
288,
203,
3639,
2583,
12,
685,
8016,
1380,
1545,
14708,
548,
16,
315,
43,
1643,
29561,
49,
2547,
2866,
2019,
30,
2057,
14708,
612,
8863,
203,
3639,... |
pragma solidity ^0.4.21;
import "./FinalizableFundraiser.sol";
import "../component/RefundSafe.sol";
/**
* @title Refundable fundraiser
*
* @dev Allows your fundraiser to offer refunds to token buyers if it failed to reach the `softCap` in its duration.
*/
contract RefundableFundraiser is FinalizableFundraiser {
... | * @dev Checks if the soft cap was reached by the fundraiser. @return Whether `softCap` is reached or not./ | function softCapReached() public view returns (bool) {
return totalRaised >= softCap;
}
| 6,386,261 | [
1,
4081,
309,
326,
8971,
3523,
1703,
8675,
635,
326,
284,
1074,
354,
15914,
18,
327,
17403,
1375,
9269,
4664,
68,
353,
8675,
578,
486,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
8971,
4664,
23646,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2078,
12649,
5918,
1545,
8971,
4664,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeabl... | @notice The maximum limit of veRip user can have as percentage points of staked Rip For example, if user has `n` Rip staked, they can own a maximum of `n * maxCapPct / 100` veRip. | uint256 public maxCapPct;
| 13,017,621 | [
1,
1986,
4207,
1800,
434,
10489,
54,
625,
729,
848,
1240,
487,
11622,
3143,
434,
384,
9477,
534,
625,
2457,
3454,
16,
309,
729,
711,
1375,
82,
68,
534,
625,
384,
9477,
16,
2898,
848,
4953,
279,
4207,
434,
1375,
82,
225,
943,
4664,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2254,
5034,
1071,
943,
4664,
52,
299,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x5aB4C93a366Ca13698a18C74c69a07B43aC18e29/sources/Staking.sol | * @dev Withdraw interest/ | function withdrawInterest(uint256 depositId) public {
_transferInterest(msg.sender, depositId);
}
| 15,994,927 | [
1,
1190,
9446,
16513,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29281,
12,
11890,
5034,
443,
1724,
548,
13,
1071,
288,
203,
3639,
389,
13866,
29281,
12,
3576,
18,
15330,
16,
443,
1724,
548,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x3F2b72B9D52651B4dcdB99d1AB1736aC889e6e38/sources/contracts/mixins/MixinConvenienceOwnable.sol | * @title Mixin to add support for `ownable()` @dev `Mixins` are a design pattern seen in the 0x contracts. It simply separates logically groupings of code to ease readability./ used for `owner()`convenience helper events | contract MixinConvenienceOwnable is MixinErrors, MixinLockCore {
address private _convenienceOwner;
event OwnershipTransferred(address previousOwner, address newOwner);
pragma solidity ^0.8.0;
function _initializeMixinConvenienceOwnable(address _sender) internal {
_convenienceOwner = _sender;
}
functi... | 9,486,620 | [
1,
14439,
358,
527,
2865,
364,
1375,
995,
429,
20338,
225,
1375,
21294,
2679,
68,
854,
279,
8281,
1936,
5881,
316,
326,
374,
92,
20092,
18,
225,
2597,
8616,
5102,
815,
4058,
1230,
1041,
899,
434,
981,
358,
28769,
855,
2967,
18,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
10131,
14700,
5460,
429,
353,
490,
10131,
4229,
16,
490,
10131,
2531,
4670,
288,
203,
203,
225,
1758,
3238,
389,
591,
9080,
5541,
31,
203,
203,
225,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
2416,
5541,
16,
1758,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.so... | * @notice Internal function for 10-digits decimal multiplication @param number Integer number @param decimal Decimal number @return Returns integer number divided by second/ | function divDecimal(uint256 number, uint256 decimal)
internal
pure
returns (uint256)
{
return (number * ONE) / decimal;
}
| 1,265,754 | [
1,
3061,
445,
364,
1728,
17,
16649,
6970,
23066,
225,
1300,
2144,
1300,
225,
6970,
11322,
1300,
327,
2860,
3571,
1300,
26057,
635,
2205,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3739,
5749,
12,
11890,
5034,
1300,
16,
2254,
5034,
6970,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
261,
2696,
380,
15623,
13,
342,
6970,
31,
203,
565,
... |
// -----------------------------------------------------------------------------
// File ENG-LINKS-GENERATORS.SOL
//
// (c) Elijah Koziev
//
// Content:
// Правила для автоматической генерации обратных связей для английского
// тезауруса.
// -----------------------------------------------------------------------------... | *************************************************************************** Объявления для генераторов обратных связей в тезаурусе *************************************************************************** Несколько правил автогенерации обратных связок | {
link generator ENG_ADJECTIVE <в_предикат> ENG_VERB -> <в_прил>
link generator ENG_VERB <в_прил> ENG_ADJECTIVE -> <в_предикат>
link generator ENG_VERB <в_сущ> ENG_NOUN -> <в_предикат>
link generator ENG_NOUN <в_предикат> ENG_VERB -> <в_сущ>
link generator ENG_NOUN <в_прил> ENG_ADJECTIVE -> <в_сущ>
link genera... | 1,823,859 | [
1,
145,
257,
145,
114,
146,
237,
146,
242,
145,
115,
145,
124,
145,
118,
145,
126,
145,
121,
146,
242,
225,
145,
117,
145,
124,
146,
242,
225,
145,
116,
145,
118,
145,
126,
145,
118,
146,
227,
145,
113,
146,
229,
145,
127,
146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
95,
203,
203,
203,
1692,
4456,
17979,
67,
1880,
5304,
5354,
411,
145,
115,
67,
145,
128,
146,
227,
145,
118,
145,
117,
145,
121,
145,
123,
145,
113,
146,
229,
34,
17979,
67,
2204,
38,
317,
411,
145,
115,
67,
145,
128,
146,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
/**
Learn more about our project on thewhitelist.io
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXxclxddOxcdxllxKMMMMMMMMMMMMMMMMMMMM... | * @dev Function to mint Tokens for only Gas. This function is used for Community Wallet Mints, Raffle Winners and Cooperation Partners. Redemptions are tracked and can be done in chunks. @param quantity amount of tokens to be minted @param mintpass issued by thewhitelist.io @param mintpassSignature issued by thewhiteli... | function freeMint(
uint256 quantity,
LibMintpass.Mintpass memory mintpass,
bytes memory mintpassSignature
) public {
require(
whitelistMintEnabled == true || publicMintEnabled == true,
"TheWhitelist: Minting is not Enabled"
);
require(
... | 396,816 | [
1,
2083,
358,
312,
474,
13899,
364,
1338,
31849,
18,
1220,
445,
353,
1399,
364,
16854,
13352,
20126,
490,
28142,
16,
534,
7329,
298,
21628,
9646,
471,
385,
5161,
1193,
6393,
9646,
18,
868,
19117,
573,
854,
15200,
471,
848,
506,
2731,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4843,
49,
474,
12,
203,
3639,
2254,
5034,
10457,
16,
203,
3639,
10560,
49,
474,
5466,
18,
49,
474,
5466,
3778,
312,
474,
5466,
16,
203,
3639,
1731,
3778,
312,
474,
5466,
5374,
203,
565,
262,
1071,
288,
203,
3639,
2583... |
./full_match/4/0x4f66818Ba51a8388357de6b01afE47Ad213f3c5B/sources/contracts/ERC20.sol | 500 Million (5% of initial Supply)
| uint256 secondPresale = ((5 * weiValue) * initialSupply) / (100 * weiValue); | 12,365,504 | [
1,
12483,
490,
737,
285,
261,
25,
9,
434,
2172,
3425,
1283,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2205,
12236,
5349,
273,
14015,
25,
380,
732,
77,
620,
13,
380,
2172,
3088,
1283,
13,
342,
261,
6625,
380,
732,
77,
620,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0xFe244Bbd340cbA81F4106F2B0B936453D1B1E2B6/sources/project_/contracts/agreements/GeneralDistributionAgreementV1.sol | @inheritdoc IGeneralDistributionAgreementV1 | function connectPool(ISuperfluidPool pool, bytes calldata ctx) external override returns (bytes memory newCtx) {
return connectPool(pool, true, ctx);
}
| 841,351 | [
1,
36,
10093,
467,
12580,
9003,
17420,
58,
21,
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,
3077,
2864,
12,
45,
8051,
2242,
1911,
2864,
2845,
16,
1731,
745,
892,
1103,
13,
3903,
3849,
1135,
261,
3890,
3778,
394,
6442,
13,
288,
203,
3639,
327,
3077,
2864,
12,
6011,
16,
638,
16,
1103,
1769,
203,
565,
289,
203,... |
/**
* Note for the truffle testversion:
* DragonKingTest inherits from DragonKing and adds one more function for testing the volcano from truffle.
* For deployment on ropsten or mainnet, just deploy the DragonKing contract and remove this comment before verifying on
* etherscan.
* */
/**
* Dragonking is a bloc... | * sets the fee to charge on each purchase @param _fee the new fee / | function setFee(uint8 _fee) public onlyOwner {
fee = _fee;
}
| 1,438,341 | [
1,
4424,
326,
14036,
358,
13765,
603,
1517,
23701,
225,
389,
21386,
326,
394,
14036,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
444,
14667,
12,
11890,
28,
389,
21386,
13,
1071,
1338,
5541,
288,
203,
202,
202,
21386,
273,
389,
21386,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
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) {
... | ------------------------------------------------------------------------ Returns the amount of tokens approved by the owner that can be transferred to the spender's account ------------------------------------------------------------------------ | function allowance(address tokenOwner, address spender)override public view returns (uint remaining) {
return allowed[tokenOwner][spender];
}
| 4,807,597 | [
1,
29461,
2860,
326,
3844,
434,
2430,
20412,
635,
326,
3410,
716,
848,
506,
906,
4193,
358,
326,
17571,
264,
1807,
2236,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1699,
1359,
12,
2867,
1147,
5541,
16,
1758,
17571,
264,
13,
10601,
1071,
1476,
1135,
261,
11890,
4463,
13,
288,
203,
3639,
327,
2935,
63,
2316,
5541,
6362,
87,
1302,
264,
15533,
203,
565,
289,
203,
203,
203,
2,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IWrappedPunks.sol";
import "./interfaces/IAssetWrapper.sol";
import "./interfaces/IPunks.sol";
/**
* @dev {ERC721} Ro... | * @dev Withdraw the crypto punk that is accidentally held by the PunkRouter contract @param punkIndex The index of the CryptoPunk to withdraw @param to The address of the new owner/ | function withdrawPunk(uint256 punkIndex, address to) external onlyOwner {
punks.transferPunk(to, punkIndex);
}
| 1,020,437 | [
1,
1190,
9446,
326,
8170,
293,
1683,
716,
353,
25961,
1230,
15770,
635,
326,
453,
1683,
8259,
6835,
225,
293,
1683,
1016,
1021,
770,
434,
326,
15629,
52,
1683,
358,
598,
9446,
225,
358,
1021,
1758,
434,
326,
394,
3410,
19,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
52,
1683,
12,
11890,
5034,
293,
1683,
1016,
16,
1758,
358,
13,
3903,
1338,
5541,
288,
203,
3639,
293,
1683,
87,
18,
13866,
52,
1683,
12,
869,
16,
293,
1683,
1016,
1769,
203,
565,
289,
203,
2,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
interface IERC20 {
function TOTALSUPPLY267() exte... | inject NONSTANDARD NAMING
| function GETBESTSTRATEGY227(address _want) public view returns (address _strategy) { | 13,085,398 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4978,
5948,
882,
3902,
27708,
3787,
27,
12,
2867,
389,
17369,
13,
1071,
1476,
1135,
261,
2867,
389,
14914,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/5/0x4D3495005E14c0AB9f3C0F80876c4152CE3D0F83/sources/contracts/testnet/LDPRewarder.sol | * @dev Returned by {noWeth} modifier when ERC20-reserved operations are attempted on WETH; check {noWeth} documentation for more info./ | error NotAllowedOnWETH();
| 16,866,814 | [
1,
22360,
635,
288,
2135,
59,
546,
97,
9606,
1347,
4232,
39,
3462,
17,
18898,
5295,
854,
18121,
603,
678,
1584,
44,
31,
866,
288,
2135,
59,
546,
97,
7323,
364,
1898,
1123,
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,
1,
0,
0,
0,
0,
0,
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,
555,
2288,
5042,
1398,
59,
1584,
44,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/4/0x890500D6Bc3746a902a761C87232D63Dae608E88/sources/script/openzeppelin-contracts/contracts/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 owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals | 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... | 13,317,007 | [
1,
5787,
6912,
2710,
16,
1496,
486,
6508,
326,
6057,
25121,
2710,
16,
1492,
353,
2319,
18190,
487,
288,
654,
39,
27,
5340,
3572,
25121,
5496,
19,
3155,
508,
3155,
3273,
9408,
628,
1147,
1599,
358,
3410,
1758,
9408,
3410,
1758,
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,
0,
0,
0,
0,
0... | [
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,... |
./full_match/4/0x511739380fb9C5b985d08B5637ba732cAB3D4cCC/sources/contracts/TRAVELLSMART.sol | * @dev Toggles between paused <-> unpaused states to disallow <-> allow token transfers. See {Pausable-paused()}, {Pausable-_pause()} and {Pausable-_unpause()}./ | function _togglePause() internal {
paused() ? _unpause() : _pause();
}
| 660,678 | [
1,
56,
23972,
1040,
3086,
17781,
411,
2122,
640,
8774,
3668,
5493,
358,
29176,
411,
2122,
1699,
1147,
29375,
18,
2164,
288,
16507,
16665,
17,
8774,
3668,
1435,
5779,
288,
16507,
16665,
17,
67,
19476,
17767,
471,
288,
16507,
16665,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
14401,
19205,
1435,
2713,
288,
203,
3639,
17781,
1435,
692,
389,
318,
19476,
1435,
294,
389,
19476,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/10/0xd84d9A8Bf830496C4DEc917bC27D22E09E01cB8A/sources/src/Facets/HopFacet.sol | @notice Bridges tokens via Hop Protocol @param _bridgeData the core information needed for bridging @param _hopData data specific to Hop Protocol | function startBridgeTokensViaHop(
ILiFi.BridgeData memory _bridgeData,
HopData calldata _hopData
)
external
payable
nonReentrant
refundExcessNative(payable(msg.sender))
doesNotContainSourceSwaps(_bridgeData)
doesNotContainDestinationCalls(_bridgeDa... | 3,781,374 | [
1,
38,
1691,
2852,
2430,
3970,
670,
556,
4547,
225,
389,
18337,
751,
326,
2922,
1779,
3577,
364,
324,
1691,
1998,
225,
389,
18444,
751,
501,
2923,
358,
670,
556,
4547,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
787,
13691,
5157,
21246,
27461,
12,
203,
3639,
467,
28762,
42,
77,
18,
13691,
751,
3778,
389,
18337,
751,
16,
203,
3639,
670,
556,
751,
745,
892,
389,
18444,
751,
203,
565,
262,
203,
3639,
3903,
203,
3639,
8843,
429,
... |
pragma solidity ^0.4.18;
contract ERC20 {
function transfer(address _to, uint256 _value) public returns(bool);
function balanceOf(address tokenOwner) public constant returns (uint balance);
}
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, ad... | Method to get any locked ERC20 tokens | function withdrawERC20ToOwner(address _erc20) public onlyOwner {
ERC20 erc20Token = ERC20(_erc20);
uint contractTokenBalance = erc20Token.balanceOf(this);
require(contractTokenBalance > 0);
erc20Token.transfer(owner, contractTokenBalance);
}
| 14,125,586 | [
1,
1305,
358,
336,
1281,
8586,
4232,
39,
3462,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
654,
39,
3462,
774,
5541,
12,
2867,
389,
12610,
3462,
13,
1071,
1338,
5541,
288,
203,
3639,
4232,
39,
3462,
6445,
71,
3462,
1345,
273,
4232,
39,
3462,
24899,
12610,
3462,
1769,
203,
3639,
2254,
6835,
1345,
13... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
// File: witnet-ethereum-block-relay/contracts/BlockRelayInterface.sol
/**
* @title Block Relay Interface
* @notice Interface of a Block Relay to a Witnet network
* It defines how to interact with the Block Relay in o... | * @notice Read and consume the next 2 bytes from the buffer as an IEEE 754-2008 floating point number enclosed in an `int32`. @dev Due to the lack of support for floating or fixed point arithmetic in the EVM, this method offsets all values by 5 decimal orders so as to get a fixed precision of 5 decimal positions, which... | function readFloat16(Buffer memory _buffer) internal pure returns (int32) {
uint32 bytesValue = readUint16(_buffer);
uint32 sign = bytesValue & 0x8000;
int32 exponent = (int32(bytesValue & 0x7c00) >> 10) - 15;
int32 significand = int32(bytesValue & 0x03ff);
if (exponent == 15) {
significand... | 901,209 | [
1,
1994,
471,
7865,
326,
1024,
576,
1731,
628,
326,
1613,
487,
392,
467,
9383,
41,
2371,
6564,
17,
6976,
28,
13861,
1634,
1300,
25636,
316,
392,
1375,
474,
1578,
8338,
225,
463,
344,
358,
326,
30679,
434,
2865,
364,
13861,
578,
5499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
4723,
2313,
12,
1892,
3778,
389,
4106,
13,
2713,
16618,
1135,
261,
474,
1578,
13,
288,
203,
565,
2254,
1578,
1731,
620,
273,
855,
5487,
2313,
24899,
4106,
1769,
203,
565,
2254,
1578,
1573,
273,
1731,
620,
473,
374,... |
pragma solidity >= 0.4.24 < 0.6.0;
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/math/SafeMath.sol";
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol";
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC20/IERC20.sol";
// The following contract is O... | / The control of the time consumed is carried out by the client. | function reqConnectionWithToken(uint256 _tokenConsumed) public returns (bool){
require(_balance[msg.sender] >= _tokenConsumed);
_lastTokenPayment[msg.sender] = _tokenConsumed;
burn(_tokenConsumed);
_expirationToken[msg.sender] = now + _duration;
return true;
}
| 15,786,529 | [
1,
19,
1021,
3325,
434,
326,
813,
12393,
353,
5926,
24012,
596,
635,
326,
1004,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1111,
1952,
1190,
1345,
12,
11890,
5034,
389,
2316,
20554,
13,
1071,
1135,
261,
6430,
15329,
203,
202,
203,
3639,
2583,
24899,
12296,
63,
3576,
18,
15330,
65,
1545,
389,
2316,
20554,
1769,
203,
203,
3639,
389,
2722,
1345,... |
./full_match/5/0x1caD01f5028d265E079096B3fBF6E102f7708eE1/sources/project_/contracts/Main.sol | * @dev ends minting upon maturity (and within permitted Withdrawal time Window) mints XEX coins and stakes 'pct' of it for 'term'/ require(pct > 0, "CRank: Cannot share zero percent"); calculate reward mint reward tokens part nothing to burn since we haven't minted this part yet stake extra tokens part | function claimMintRewardAndStake(uint256 pct, uint256 term) external payable checkFee {
MintInfo memory mintInfo = userMints[_msgSender()];
require(pct < 101);
require(mintInfo.rank > 0);
require(block.timestamp > mintInfo.maturityTs);
uint256 rewardAmount = _calculateMintRew... | 1,946,343 | [
1,
5839,
312,
474,
310,
12318,
29663,
261,
464,
3470,
15498,
3423,
9446,
287,
813,
6076,
13,
4202,
312,
28142,
1139,
2294,
276,
9896,
471,
384,
3223,
296,
23989,
11,
434,
518,
364,
296,
6408,
11,
19,
2583,
12,
23989,
405,
374,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7516,
49,
474,
17631,
1060,
1876,
510,
911,
12,
11890,
5034,
19857,
16,
2254,
5034,
2481,
13,
3903,
8843,
429,
866,
14667,
288,
203,
3639,
490,
474,
966,
3778,
312,
474,
966,
273,
729,
49,
28142,
63,
67,
3576,
12021,
... |
./full_match/137/0x6ceb95626A59a2F8B1d0B6DB970F4190B89354C7/sources/contracts/base/BaseWeightedPool.sol | * @dev Called before any join or exit operation. Empty by default, but derived contracts may choose to add custom behavior at these steps. This often has to do with protocol fee processing./ solhint-disable-previous-line no-empty-blocks | function _beforeJoinExit(
uint256[] memory preBalances,
uint256[] memory normalizedWeights,
uint256 protocolSwapFeePercentage
) internal virtual {
}
| 3,751,531 | [
1,
8185,
1865,
1281,
1233,
578,
2427,
1674,
18,
8953,
635,
805,
16,
1496,
10379,
20092,
2026,
9876,
358,
527,
1679,
6885,
622,
4259,
6075,
18,
1220,
16337,
711,
358,
741,
598,
1771,
14036,
4929,
18,
19,
3704,
11317,
17,
8394,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
5771,
4572,
6767,
12,
203,
3639,
2254,
5034,
8526,
3778,
675,
38,
26488,
16,
203,
3639,
2254,
5034,
8526,
3778,
5640,
16595,
16,
203,
3639,
2254,
5034,
1771,
12521,
14667,
16397,
203,
565,
262,
2713,
5024,
288,
203,
... |
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
funct... | not counter.size, but modulus of SIZE
| uint256 _size = counter%SIZE; | 5,449,608 | [
1,
902,
3895,
18,
1467,
16,
1496,
24770,
434,
11963,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
389,
1467,
273,
3895,
9,
4574,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/421613/0xA4A34B69AA7Bdec4B2656485A299813fF854Cd05/sources/project_/src/active/app/CrossChainBridge.sol | solhint-disable no-inline-assembly */ Packet type localTokenByRemote[remoteToken] = Local token address | contract CrossChainBridge is AccessControlUpgradeable, NonblockingLzAppUpgradeable {
using SafeERC20 for IERC20;
bytes32 internal constant _EDITOR_ROLE = keccak256("_EDITOR_ROLE");
string public message;
mapping(address => address) public localTokenByRemote;
event ESwapFromChain(uint16 srcChainId, addres... | 11,569,873 | [
1,
18281,
11317,
17,
8394,
1158,
17,
10047,
17,
28050,
342,
11114,
618,
1191,
1345,
858,
5169,
63,
7222,
1345,
65,
273,
3566,
1147,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
19742,
3893,
13691,
353,
24349,
10784,
429,
16,
3858,
18926,
48,
94,
3371,
10784,
429,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
225,
1731,
1578,
2713,
5381,
389,
13208,
67,
16256,
2... |
pragma solidity ^0.5.2;
import "./Ownable.sol";
import "asn1-decode/contracts/Asn1Decode.sol";
import "@ensdomains/dnssec-oracle/contracts/algorithms/Algorithm.sol";
import "ens-namehash/contracts/ENSNamehash.sol";
import "ethereum-datetime/contracts/DateTime.sol";
/*
* @dev Stores validated X.509 certific... | Not constant because spec may change
| bytes10 private OID_CAN_SIGN_HTTP_EXCHANGES = 0x2b06010401d679020116; | 5,374,489 | [
1,
1248,
5381,
2724,
857,
2026,
2549,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1731,
2163,
3238,
18026,
67,
39,
1258,
67,
11260,
67,
3693,
67,
2294,
1792,
3388,
3991,
377,
273,
374,
92,
22,
70,
7677,
1611,
3028,
1611,
72,
26,
7235,
3103,
1611,
2313,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/100/0xe6b9f1766068BdFB4c59dD416A9FDe1E471276F2/sources/contracts/AssetTokenized.sol | subtracts the remaining asset tokens from the total supply
| supply -= msg.value/pricePerEth; | 14,283,136 | [
1,
1717,
1575,
87,
326,
4463,
3310,
2430,
628,
326,
2078,
14467,
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,
14467,
3947,
1234,
18,
1132,
19,
8694,
2173,
41,
451,
31,
9079,
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,
-10... |
// File: @openzeppelin/contracts@4.2.0/utils/Context.sol
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direc... | Storage of set values Position of the value in the `values` array, plus 1 because index 0 means a value is not in the set. | struct Set {
bytes32[] _values;
mapping(bytes32 => uint) _indexes;
}
| 5,851,686 | [
1,
3245,
434,
444,
924,
11010,
434,
326,
460,
316,
326,
1375,
2372,
68,
526,
16,
8737,
404,
2724,
770,
374,
4696,
279,
460,
353,
486,
316,
326,
444,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
1958,
1000,
288,
203,
565,
1731,
1578,
8526,
389,
2372,
31,
203,
565,
2874,
12,
3890,
1578,
516,
2254,
13,
389,
11265,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-10-05
*/
// File: solidity/contracts/token/interfaces/IERC20Token.sol
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
/*
ERC20 Standard Token interface
*/
interface IERC20Token {
function name() external view returns (string... | * @dev transfers tokens to a given address on behalf of another address throws on any error rather then return a false flag to minimize user errors @param _from source address @param _to target address @param _value transfer amount @return true if the transfer was successful, false if it wasn't/ | function transferFrom(
address _from,
address _to,
uint256 _value
) public virtual override validAddress(_from) validAddress(_to) returns (bool) {
allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
balanceOf[_from] = balanceOf[_from].sub(_value);
... | 2,521,825 | [
1,
2338,
18881,
2430,
358,
279,
864,
1758,
603,
12433,
6186,
434,
4042,
1758,
1216,
603,
1281,
555,
9178,
1508,
327,
279,
629,
2982,
358,
18935,
729,
1334,
225,
389,
2080,
565,
1084,
1758,
225,
389,
869,
1377,
1018,
1758,
225,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
1132,
203,
565,
262,
1071,
5024,
3849,
923,
1887,
24899,
2080,
13,
923,
1887,
24899,
869,
13,
1135,
261,
6430,
... |
./full_match/1/0xEacAA5fbE3C364fcAcEd6cD14CEd4E54703cE5D4/sources/contracts/YieldComponentToken.sol | Call the payout function on the SplitVault contract, just for the yield | splitVault.payout(payoutAmount, fullToken, owner);
| 2,987,147 | [
1,
1477,
326,
293,
2012,
445,
603,
326,
5385,
12003,
6835,
16,
2537,
364,
326,
2824,
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,
1416,
12003,
18,
84,
2012,
12,
84,
2012,
6275,
16,
1983,
1345,
16,
3410,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0x44AAb0a83d65E4ea7b437013559790e4E379f6b7/sources/TrippleUp.sol | Modifier to restrict access to the owner | contract DiceGambling is VRFConsumerBaseV2 {
uint256 private constant ROLL_IN_PROGRESS = 42;
VRFCoordinatorV2Interface COORDINATOR;
uint64 s_subscriptionId;
address vrfCoordinator = 0x8103B0A8A00be2DDC778e6e7eaa21791Cd364625;
bytes32 s_keyHash = 0x474e34a077df58807dbe9c96d3c009b23b3c6d0cce433e59bbf5... | 3,802,002 | [
1,
9829,
358,
13108,
2006,
358,
326,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
463,
1812,
43,
2536,
2456,
353,
776,
12918,
5869,
2171,
58,
22,
288,
203,
565,
2254,
5034,
3238,
5381,
534,
30922,
67,
706,
67,
24022,
273,
14856,
31,
203,
565,
776,
12918,
25307,
58,
22,
1358,
7910,
916,
21329,
3575,
31,
... |
./full_match/1/0xdF3b985E15281EfecF203998200b26F024699F47/sources/browser/Brrr.sol | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. Sets the total supply from tether Gives founding father liquidity share for uniswap Sets first supply check/ | constructor(string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
_decimals = 18;
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(FOUNDING_FATHER, msg.sender);
Tether = IERC20(tether);
uint256 d = Tether.totalSupply();
... | 8,441,519 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
18,
11511,
326,
2078,
14467,
628,
268,
2437,
611,
3606,
1392,
310,
284,
4806,
4501,
372,
24237,
7433,
364,
640,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
1080,
3778,
508,
16,
533,
3778,
3273,
13,
1071,
288,
203,
3639,
389,
529,
273,
508,
31,
203,
3639,
389,
7175,
273,
3273,
31,
203,
3639,
389,
31734,
273,
6549,
31,
203,
3639,
389,
8401,
2996,
12,
5280,
67,
15468,
... |
./full_match/80001/0xA5a200D7270EC35f926139C3CCa433bC2c090974/sources/project_/contracts/chainlinkClient.sol | * @title The ChainlinkClient contract @notice Contract writers can inherit this contract in order to create requests for the Chainlink network/ | abstract contract ChainlinkClient {
using Chainlink for Chainlink.Request;
uint256 internal constant LINK_DIVISIBILITY = 10**18;
uint256 private constant AMOUNT_OVERRIDE = 0;
address private constant SENDER_OVERRIDE = address(0);
uint256 private constant ORACLE_ARGS_VERSION = 1;
uint256 private constant OP... | 5,629,428 | [
1,
1986,
7824,
1232,
1227,
6835,
225,
13456,
18656,
848,
6811,
333,
6835,
316,
1353,
358,
752,
3285,
364,
326,
7824,
1232,
2483,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7824,
1232,
1227,
288,
203,
225,
1450,
7824,
1232,
364,
7824,
1232,
18,
691,
31,
203,
203,
225,
2254,
5034,
2713,
5381,
22926,
67,
2565,
4136,
30310,
273,
1728,
636,
2643,
31,
203,
225,
2254,
5034,
3238,
5381,
432,
5... |
// Version of Solidity compiler this program was written for
pragma solidity ^0.5.8;
// Heads or tails game contract
contract HeadsOrTails {
address payable owner;
string public name;
struct Game {
address addr;
uint amountBet;
uint8 guess;
bool winner;
uint ethInJackpot;
}
Game[] lastP... | Play the game!address(this).balance is increased by msg.value even before code is executed. Thus "address(this).balance-msg.value"Create a random number. Use the mining difficulty & the player's address, hash it, convert this hex to int, divide by modulo 2 which results in either 0 or 1 and return as uint8Won! | function lottery(uint8 guess) public payable returns(bool){
require(guess == 0 || guess == 1, "Variable 'guess' should be either 0 or 1");
require(msg.value > 0, "Bet more than 0");
require(msg.value <= address(this).balance - msg.value, "You cannot bet more than what is available in the jackpot");
ui... | 14,022,082 | [
1,
11765,
326,
7920,
5,
2867,
12,
2211,
2934,
12296,
353,
31383,
635,
1234,
18,
1132,
5456,
1865,
981,
353,
7120,
18,
22073,
315,
2867,
12,
2211,
2934,
12296,
17,
3576,
18,
1132,
6,
1684,
279,
2744,
1300,
18,
2672,
326,
1131,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17417,
387,
93,
12,
11890,
28,
7274,
13,
1071,
8843,
429,
1135,
12,
6430,
15329,
203,
565,
2583,
12,
20885,
422,
374,
747,
7274,
422,
404,
16,
315,
3092,
296,
20885,
11,
1410,
506,
3344,
374,
578,
404,
8863,
203,
565,... |
pragma solidity ^0.5.11;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) external returns ... | any tokens sent here ?modifiers | contract VAULTFI is ERC20Detailed {
using SafeMath for uint256;
uint256 public totalBurn = 0;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
mapping (address => bool) public addadmin;
string constant tokenName = "VAULTFI.FINANCE";... | 11,821,207 | [
1,
2273,
2430,
3271,
2674,
692,
15432,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
776,
37,
2274,
1653,
353,
4232,
39,
3462,
40,
6372,
288,
203,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
377,
203,
225,
2254,
5034,
1071,
2078,
38,
321,
273,
374,
31,
203,
21281,
225,
2874,
261,
2867,
516,
2... |
/**
*Submitted for verification at Etherscan.io on 2022-02-11
*/
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev R... | File: pixxo.solSPDX-License-Identifier: Unlicense | contract Pixxo is ERC721A, PaymentSplitter, Ownable {
using Strings for uint256;
bool public saleIsActive = false;
uint public pixxoPrice = 0.004 ether;
uint public constant MAX_MINTS_PER_TX = 10;
uint public constant MAX_MINT = 4439;
uint public constant MAX_RESERVE_MINT = 5;
uint256[] private _ones = [1... | 7,993,223 | [
1,
812,
30,
11871,
25272,
18,
18281,
3118,
28826,
17,
13211,
17,
3004,
30,
1351,
12687,
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,
16351,
453,
697,
25272,
353,
4232,
39,
27,
5340,
37,
16,
12022,
26738,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1426,
1071,
272,
5349,
2520,
3896,
273,
629,
31,
203,
225,
2254,
1071,
11871,
25272... |
pragma solidity ^0.4.20;
/*
IronHandsCommerce - a pyramid where you choose your own tariffs.
+ No contracts
+ Timed start
+ Community premine
*/
contract IronHandsCommerce {
/*=================================
= MODIFIERS =
=================================*/
// ... | valid tarifs are in [5, 45] interval
| mapping(address => uint256) internal tarif; | 14,057,314 | [
1,
877,
8232,
17249,
854,
316,
306,
25,
16,
12292,
65,
3673,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
2713,
8232,
430,
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... |
// Sources flattened with hardhat v2.8.3 https://hardhat.org
// File contracts/Interfaces/IBorrowerOperations.sol
// SPDX-License-Identifier:
pragma solidity 0.6.11;
// Common interface for the Trove Manager.
interface IBorrowerOperations {
// --- Events ---
event TroveManagerAddressChanged(address _newT... | If compounded deposit is less than a billionth of the initial deposit, return 0. NOTE: originally, this line was in place to stop rounding errors making the deposit too large. However, the error corrections should ensure the error in P "favors the Pool", i.e. any given compounded deposit should slightly less than it's... | if (compoundedStake < initialStake.div(1e9)) {return 0;}
| 504,004 | [
1,
2047,
1161,
12002,
443,
1724,
353,
5242,
2353,
279,
20714,
285,
451,
434,
326,
2172,
443,
1724,
16,
327,
374,
18,
5219,
30,
24000,
16,
333,
980,
1703,
316,
3166,
358,
2132,
13885,
1334,
10480,
326,
443,
1724,
4885,
7876,
18,
1072... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
261,
2919,
12002,
510,
911,
411,
2172,
510,
911,
18,
2892,
12,
21,
73,
29,
3719,
288,
2463,
374,
31,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x0c6dFD9B2f0bB08e52BCc0C20fE4c4957Fb58f3E/sources/project_/contracts/DioneStaking.sol | @notice Internal Function - Adding new Penalty tier @param _validUntil Penalty tier valid length (will be calculated from user staking start timestamp) @param _percent Penalty percent for new penalty tier | function _addPenaltyTier(uint256 _validUntil, uint256 _percent) internal {
tiers.push(PenaltyTiers(_validUntil, _percent));
emit PenaltyTierAdded(_validUntil, _percent);
}
| 4,872,845 | [
1,
3061,
4284,
300,
21240,
394,
453,
275,
15006,
17742,
225,
389,
877,
9716,
453,
275,
15006,
17742,
923,
769,
261,
20194,
506,
8894,
628,
729,
384,
6159,
787,
2858,
13,
225,
389,
8849,
453,
275,
15006,
5551,
364,
394,
23862,
17742,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1289,
24251,
15006,
15671,
12,
11890,
5034,
389,
877,
9716,
16,
2254,
5034,
389,
8849,
13,
2713,
288,
203,
3639,
11374,
414,
18,
6206,
12,
24251,
15006,
56,
20778,
24899,
877,
9716,
16,
389,
8849,
10019,
203,
203,
... |
// SPDX-License-Identifier: GPL-3.0
// File: @openzeppelin/contracts/utils/Strings.sol
pragma solidity ^0.8.9;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
... | see when NFTs will be revealed | function timeOfReveal() public view returns(uint256) {
require(revealTime != 0, 'NFT Reveal Time has not been determined yet!');
return revealTime;
}
| 5,856,601 | [
1,
5946,
1347,
423,
4464,
87,
903,
506,
283,
537,
18931,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
813,
951,
426,
24293,
1435,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
266,
24293,
950,
480,
374,
16,
296,
50,
4464,
868,
24293,
2647,
711,
486,
2118,
11383,
4671,
5124,
1769,
203,
3639,
327,
283,
... |
./partial_match/1/0xBdbcDFbca3b6Eb90F251b41806A40569c6eB18cd/sources/contracts/TwapDelay.sol | require(_owner != owner, 'TD01'); Comment out to save size | function setOwner(address _owner) external payable override {
require(msg.sender == owner, 'TD00');
require(_owner != address(0), 'TD02');
owner = _owner;
emit OwnerSet(_owner);
}
| 2,747,165 | [
1,
6528,
24899,
8443,
480,
3410,
16,
296,
23409,
1611,
8284,
225,
9821,
596,
358,
1923,
963,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31309,
12,
2867,
389,
8443,
13,
3903,
8843,
429,
3849,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
16,
296,
23409,
713,
8284,
203,
3639,
2583,
24899,
8443,
480,
1758,
12,
20,
3631,
296,
23409,
3103,
8284,
203,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
... | inject NONSTANDARD NAMING
| function NONCES443(address owner) external view returns (uint256); | 12,569,002 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18708,
1441,
55,
6334,
23,
12,
2867,
3410,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import "ds-test/test.sol";
import "../test/utils/Caller.sol";
import {Hevm} from "../test/utils/Hevm.sol";
import {Oracle} from "./Oracle.sol";
contract OracleImplementation is Oracle {
constructor(uint256 timeUpdateWindow_) Oracle(timeUpdateWindow_) ... | Create user Grant ability to reset Oracle should be paused when calling reset Should not fail trying to reset | function test_authorizedUser_shouldBeAble_toReset() public {
Caller user = new Caller();
oracle.allowCaller(oracle.reset.selector, address(user));
oracle.pause();
bool success;
(success, ) = user.externalCall(
address(oracle),
abi.encodeWithSelector... | 12,644,920 | [
1,
1684,
729,
19689,
7123,
358,
2715,
28544,
1410,
506,
17781,
1347,
4440,
2715,
9363,
486,
2321,
8374,
358,
2715,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
67,
8434,
1299,
67,
13139,
1919,
5895,
298,
67,
869,
7013,
1435,
1071,
288,
203,
3639,
20646,
729,
273,
394,
20646,
5621,
203,
203,
3639,
20865,
18,
5965,
11095,
12,
280,
16066,
18,
6208,
18,
9663,
16,
1758,
12,
... |
./full_match/11155111/0x9a6Ae3Fbec290951a3453E70aa461B470CdFCb4d/sources/contracts/Asset.sol | Transfer the payment to the owner of the Asset | address assetOwner = ownerOf(assetId);
| 3,792,904 | [
1,
5912,
326,
5184,
358,
326,
3410,
434,
326,
10494,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
1758,
3310,
5541,
273,
3410,
951,
12,
9406,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/8453/0x58bcA53ebba1AAf25F0EDCd8DaD6421872fe20B2/sources/home/user/Documents/git-repos/0x/protocol/node_modules/@0x/contracts-utils/contracts/src/v06/AuthorizableV06.sol | @dev Removes authorizion of an address. @param target Address to remove authorization from. | function removeAuthorizedAddress(address target) external override onlyOwner {
if (!authorized[target]) {
LibRichErrorsV06.rrevert(LibAuthorizableRichErrorsV06.TargetNotAuthorizedError(target));
}
for (uint256 i = 0; i < authorities.length; i++) {
if (authorities[i] =... | 11,540,621 | [
1,
6220,
2869,
452,
285,
434,
392,
1758,
18,
225,
1018,
5267,
358,
1206,
6093,
628,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
15341,
1887,
12,
2867,
1018,
13,
3903,
3849,
1338,
5541,
288,
203,
3639,
309,
16051,
8434,
63,
3299,
5717,
288,
203,
5411,
10560,
22591,
4229,
58,
7677,
18,
86,
266,
1097,
12,
5664,
3594,
6934,
22591,
4229,
58,
76... |
pragma solidity ^0.4.17;
contract Lottery {
// address of a person who creates the contract Lottery
address public manager;
address[] public players;
constructor() public {
// "msg" is a global variable available in any function inside our contract
// it represents a transaction wh... | "restricted" is our custom modifier defined below data type "address" is a like a class and has a set of methods "this" keyword is a reference to the contract object "this.balance" contains amount of money which this contract has available to it after the money is transfered to an address, we want to reset the contrac... | function pickWinner() public calledByManager {
uint index = generateRandomNumber() % players.length;
players[index].transfer(this.balance);
}
| 12,635,955 | [
1,
6,
29306,
6,
353,
3134,
1679,
9606,
2553,
5712,
501,
618,
315,
2867,
6,
353,
279,
3007,
279,
667,
471,
711,
279,
444,
434,
2590,
315,
2211,
6,
4932,
353,
279,
2114,
358,
326,
6835,
733,
315,
2211,
18,
12296,
6,
1914,
3844,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6002,
59,
7872,
1435,
1071,
2566,
858,
1318,
288,
203,
3639,
2254,
770,
273,
2103,
8529,
1854,
1435,
738,
18115,
18,
2469,
31,
203,
540,
203,
3639,
18115,
63,
1615,
8009,
13866,
12,
2211,
18,
12296,
1769,
203,
540,
203,... |
pragma solidity ^0.4.11;
library DateTimeLib {
/*
* Date and Time utilities for ethereum contracts
*
*/
struct _DateTime {
uint16 year;
uint8 month;
uint8 day;
uint8 hour;
uint8 minute;
uint8 second;
uint8 weekday;
}
... | function totalSupply() public constant returns (uint256 totalSupply); | interface IERC20 {
function balanceOf(address _owner) public constant returns (uint256 balance);
function transfer(address _to, uint256 _value) public returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
function approve(address _spe... | 1,031,669 | [
1,
915,
2078,
3088,
1283,
1435,
1071,
5381,
1135,
261,
11890,
5034,
2078,
3088,
1283,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
11013,
951,
12,
2867,
389,
8443,
13,
1071,
5381,
1135,
261,
11890,
5034,
11013,
1769,
203,
203,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6... |
./full_match/4/0xEB6C780cf1771bc18a7a18Fe6556059a5562A5fD/sources/contracts/project1/RouterContract.sol | bool val = IERC20(addOfBNB).transferFrom(msg.sender, address(this), amount); IERC20(addOfB).approve(addOfRouter,amoPathforB[pathIndexOfexactAmount]); _tokenC.approve(addOfRouter,amoPathforC[pathIndexOfexactAmount]);LP TOKWENS FOR A-bnb PAIRLP TOKWENS FOR B-bnb PAIRLP TOKWENS FOR C-BNB PAIR ... | function DepositBNB(uint amount)external {
require(amount > 0 , "amont should be > 0");
uint distributedAmount = amount/3 ;
require( IERC20(addOfBNB).balanceOf(msg.sender) >=amount ,'insufficient balanceOf' );
balance[msg.sender][addOfBNB] = balance[msg.sender][addOfBNB] + a... | 12,383,971 | [
1,
6430,
1244,
273,
467,
654,
39,
3462,
12,
1289,
951,
15388,
38,
2934,
13866,
1265,
12,
3576,
18,
15330,
16,
1758,
12,
2211,
3631,
3844,
1769,
565,
131,
259,
225,
131,
259,
225,
131,
259,
225,
467,
654,
39,
3462,
12,
1289,
951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
377,
445,
4019,
538,
305,
15388,
38,
12,
11890,
3844,
13,
9375,
288,
203,
1850,
2583,
12,
8949,
405,
374,
269,
315,
301,
1580,
1410,
506,
405,
374,
8863,
203,
540,
2254,
16859,
6275,
225,
273,
3844,
19,
23,
274,
7010,
540,
2583... |
/*
This file is part of The Colony Network.
The Colony Network 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.
The Colony Netwo... | initialised to MAX_UINT, and cannot be set to zero via setRewardInverse, so this is a false positive. It *can* be set to 0 via recovery mode, but a) That's not why MythX is balking here and b) There's only so much we can stop people being able to do with recovery mode. | remainder = sub(toClaim, feeToPay);
| 12,603,071 | [
1,
6769,
5918,
358,
4552,
67,
57,
3217,
16,
471,
2780,
506,
444,
358,
3634,
3970,
444,
17631,
1060,
16376,
16,
1427,
333,
353,
279,
629,
6895,
18,
2597,
848,
506,
444,
358,
374,
3970,
11044,
1965,
16,
1496,
279,
13,
12466,
1807,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
10022,
273,
720,
12,
869,
9762,
16,
14036,
774,
9148,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-05-25
*/
/**
*Submitted for verification at Etherscan.io on 2021-05-07
*/
/*
https://powerpool.finance/
wrrrw r wrr
ppwr rrr wppr0 prwwwrp prwwwrp wr0
rr 0rrrwrrprpwp0 pp ... | underlyingOnPiToken + underlyingOnStaking, | function getPiEquivalentForUnderlying(
uint256 _underlyingAmount,
IERC20 _underlyingToken,
uint256 _piTotalSupply
) public view virtual override returns (uint256) {
uint256 underlyingOnPiToken = _underlyingToken.balanceOf(address(piToken));
return
getPiEquivalentForUnderlyingPure(
_und... | 2,199,728 | [
1,
9341,
6291,
1398,
16539,
1345,
397,
6808,
1398,
510,
6159,
16,
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,
225,
445,
1689,
77,
22606,
1290,
14655,
6291,
12,
203,
565,
2254,
5034,
389,
9341,
6291,
6275,
16,
203,
565,
467,
654,
39,
3462,
389,
9341,
6291,
1345,
16,
203,
565,
2254,
5034,
389,
7259,
5269,
3088,
1283,
203,
225,
262,
1071,
... |
pragma solidity ^0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper than... | @dev - Verify Syscoin block AuxPoW | function verifyBlockAuxPoW(
BlockInfo storage blockInfo,
bytes32 blockHash,
bytes blockHeader
) internal returns (uint, bytes) {
(uint err, bool isMergeMined) =
SyscoinMessageLibrary.verifyBlockHeader(blockHeader, 0, uint(blockHash));
if (err != 0) {
... | 6,390,678 | [
1,
17,
8553,
16455,
1017,
885,
1203,
432,
2616,
29198,
59,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3929,
1768,
21981,
29198,
59,
12,
203,
3639,
3914,
966,
2502,
1203,
966,
16,
203,
3639,
1731,
1578,
31493,
16,
203,
3639,
1731,
1203,
1864,
203,
565,
262,
2713,
1135,
261,
11890,
16,
1731,
13,
288,
203,
3639,
261,
11890... |
// SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/**
* @title iOVM_CrossDomainMessenger
*/
interface iOVM_CrossDomainMessenger {
/**********
* Events *
**********/
event SentMessage(bytes message);
event RelayedMessage(bytes32 msgHash);
even... | ******************* Public Functions /* Returns whether or not all of the provided bytecode is safe. @param _bytecode The bytecode to safety check. @return `true` if the bytecode is safe, `false` otherwise./ autogenerated by gen_safety_checker_constants.py number of bytes to skip for each opcode Mask to gate opcode spe... | {
uint256[8] memory opcodeSkippableBytes = [
uint256(0x0001010101010101010101010000000001010101010101010101010101010000),
uint256(0x0100000000000000000000000000000000000000010101010101000000010100),
uint256(0x000000000000000000000000000000000101010100000001010101010000000... | 6,167,717 | [
1,
4782,
15486,
342,
2860,
2856,
578,
486,
777,
434,
326,
2112,
22801,
353,
4183,
18,
225,
389,
1637,
16651,
1021,
22801,
358,
24179,
866,
18,
327,
1375,
3767,
68,
309,
326,
22801,
353,
4183,
16,
1375,
5743,
68,
3541,
18,
19,
7840,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
2254,
5034,
63,
28,
65,
3778,
11396,
6368,
19586,
2160,
273,
306,
203,
5411,
2254,
5034,
12,
20,
92,
13304,
1611,
1611,
1611,
1611,
1611,
1611,
1611,
1611,
1611,
1611,
12648,
1611,
1611,
1611,
1611,
1611,
1611,... |
./full_match/80001/0x2d3B52Ab8233f29c7F189B6AAbD4AF8de3036cC4/sources/contracts/mixins/MixinKeys.sol | * Checks if the user has at least one non-expired key. @param _keyOwner the/ check hook directly with address if user has no valid keys | function getHasValidKey(
address _keyOwner
) public view returns (bool isValid) {
if (balanceOf(_keyOwner) == 0) {
if (address(onValidKeyHook) != address(0)) {
return
onValidKeyHook.isValidKey(
address(this),
msg.sender,
_keyOwner,
fals... | 9,435,260 | [
1,
4081,
309,
326,
729,
711,
622,
4520,
1245,
1661,
17,
15820,
498,
18,
225,
389,
856,
5541,
326,
19,
866,
3953,
5122,
598,
1758,
309,
729,
711,
1158,
923,
1311,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5582,
1556,
653,
12,
203,
565,
1758,
389,
856,
5541,
203,
225,
262,
1071,
1476,
1135,
261,
6430,
4908,
13,
288,
203,
565,
309,
261,
12296,
951,
24899,
856,
5541,
13,
422,
374,
13,
288,
203,
1377,
309,
261,
2867,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
// Part: Base64
/// @title Base64
/// @author Brecht Devos - <brecht@loopring.org>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123... | So we could have 19 more than the total supply : | function createToken(uint _qty) external payable {
require(maxSupply > _tokenIdCounter.current(), "No more Token to mint");
require(_qty > 0 && _qty <= 20, "mint qty must be between 1-20");
require(_qty * price == msg.value, "Ether amount is not correct");
for (uint i = 0; i < _qty; ... | 13,580,430 | [
1,
10225,
732,
3377,
1240,
5342,
1898,
2353,
326,
2078,
14467,
294,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
1345,
12,
11890,
389,
85,
4098,
13,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
1896,
3088,
1283,
405,
389,
2316,
548,
4789,
18,
2972,
9334,
315,
2279,
1898,
3155,
358,
312,
474,
8863,
203,
3639,
2583,
24899,
85,
... |
./full_match/1/0x9D6Dc3dbC7Cc5e1d7241601473FD63d2bD1573f9/sources/contracts/concentrator/stakedao/StakeDAOVaultBase.sol | @dev Internal function to distribute new harvested rewards. @param _tokens The list of reward tokens to update. @param _amounts The list of corresponding reward token amounts. distribute intermediately distribute linearly | function _distribute(address[] memory _tokens, uint256[] memory _amounts) internal {
uint256 _totalSupply = totalSupply;
for (uint256 i = 0; i < _tokens.length; i++) {
if (_amounts[i] == 0) continue;
RewardData memory _info = rewardInfo[_tokens[i]];
if (_info.periodLength == 0) {
_i... | 16,500,613 | [
1,
3061,
445,
358,
25722,
394,
17895,
90,
3149,
283,
6397,
18,
225,
389,
7860,
1021,
666,
434,
19890,
2430,
358,
1089,
18,
225,
389,
8949,
87,
1021,
666,
434,
4656,
19890,
1147,
30980,
18,
25722,
1554,
7101,
25722,
9103,
715,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
2251,
887,
12,
2867,
8526,
3778,
389,
7860,
16,
2254,
5034,
8526,
3778,
389,
8949,
87,
13,
2713,
288,
203,
565,
2254,
5034,
389,
4963,
3088,
1283,
273,
2078,
3088,
1283,
31,
203,
565,
364,
261,
11890,
5034,
277,
... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint... | * @dev Allows heir to transfer ownership only if heartbeat has timed out./ | function claimHeirOwnership() public onlyHeir {
require(!ownerLives());
require(block.timestamp >= timeOfDeath_ + heartbeatTimeout_);
OwnershipTransferred(owner, heir_);
HeirOwnershipClaimed(owner, heir_);
owner = heir_;
timeOfDeath_ = 0;
}
| 1,477,736 | [
1,
19132,
3904,
481,
358,
7412,
23178,
1338,
309,
12923,
711,
7491,
596,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7516,
5256,
481,
5460,
12565,
1435,
1071,
1338,
5256,
481,
288,
203,
565,
2583,
12,
5,
8443,
48,
3606,
10663,
203,
565,
2583,
12,
2629,
18,
5508,
1545,
813,
951,
758,
421,
67,
397,
12923,
2694,
67,
1769,
203,
565,
142... |
./full_match/1/0x4585812e089B5C5f941Ee508C64DF78204BdE01f/sources/src/IndieV1.sol | @notice Each indie member’s withholding by address | mapping(address => uint256) public withholdingPercentageByIndie;
| 16,461,037 | [
1,
3442,
1547,
1385,
3140,
163,
227,
252,
87,
598,
21056,
310,
635,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
21056,
310,
16397,
858,
3866,
1385,
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... |
./full_match/44787/0x89c63C0Bd5Ed84Da5A4a0D53501F03Fc36c6A19f/sources/contracts/subscriptions/CaskSubscriptions.sol | still in trial, just change now
| if (subscription.status == SubscriptionStatus.Trialing) { | 13,264,470 | [
1,
334,
737,
316,
12950,
16,
2537,
2549,
2037,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
11185,
18,
2327,
422,
12132,
1482,
18,
6251,
287,
310,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.19;
//
/* CONTRACT */
contract SafeMath {
function safeAdd(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function saf... | _______________________________________________________ | interface Exchg{
function sell_Exchg_Reg( uint amntTkns, uint tknPrice, address seller) public returns(bool success);
function buy_Exchg_booking( address seller, uint amntTkns, uint tknPrice, address buyer, uint payment ) public returns(bool success);
function buy_Exchg_BkgChk( addr... | 7,901,557 | [
1,
21157,
21157,
21157,
7198,
31268,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1560,
1312,
343,
75,
95,
203,
540,
203,
3639,
445,
357,
80,
67,
424,
343,
75,
67,
1617,
12,
2254,
2125,
496,
56,
79,
2387,
16,
2254,
13030,
82,
5147,
16,
1758,
29804,
13,
1071,
1135,
12,
6430,
2216,
1769,
203,
3639,
445,... |
pragma solidity ^0.4.24;
import "contracts/Issuer.sol";
import "contracts/NuCypherToken.sol";
import "contracts/proxy/Upgradeable.sol";
/**
* @dev Contract for testing internal methods in the Issuer contract
**/
contract IssuerMock is Issuer {
constructor(
NuCypherToken _token,
uint32 _hoursPer... | * @notice Contract for testing upgrading the Issuer contract/ | contract IssuerV2Mock is Issuer {
uint256 public valueToCheck;
constructor(
NuCypherToken _token,
uint32 _hoursPerPeriod,
uint256 _miningCoefficient,
uint256 _lockedPeriodsCoefficient,
uint16 _rewardedPeriods
)
public
Issuer(
_token,
... | 12,568,103 | [
1,
8924,
364,
7769,
731,
15210,
326,
23959,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
23959,
58,
22,
9865,
353,
23959,
288,
203,
203,
565,
2254,
5034,
1071,
460,
18126,
31,
203,
203,
565,
3885,
12,
203,
3639,
20123,
17992,
21496,
1345,
389,
2316,
16,
203,
3639,
2254,
1578,
389,
16814,
2173,
5027,
16,
203,
3... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.7.0;
pragma experimental ABIEncoderV2;
// File: witnet-ethereum-block-relay/contracts/BlockRelayInterface.sol
/**
* @title Block Relay Interface
* @notice Interface of a Block Relay to a Witnet network
* It defines how to interact with the Block Relay in o... | z1^2, z1^3, z2^2, z2^3
| uint[4] memory zs; | 901,068 | [
1,
94,
21,
66,
22,
16,
998,
21,
66,
23,
16,
998,
22,
66,
22,
16,
998,
22,
66,
23,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
63,
24,
65,
3778,
998,
87,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.26;
import './interfaces/IBancorXUpgrader.sol';
import './interfaces/IBancorX.sol';
import '../token/interfaces/ISmartTokenController.sol';
import '../utility/ContractRegistryClient.sol';
import '../utility/SafeMath.sol';
import '../utility/TokenHolder.sol';
import '../token/interfaces/ISma... | * @dev private method to release tokens held by the contract @param _to the address to release tokens to @param _amount the amount of tokens to release/ get the current release limit update the previous release limit and block number no need to require, reverts on failure | function releaseTokens(address _to, uint256 _amount) private {
uint256 currentReleaseLimit = getCurrentReleaseLimit();
require(_amount >= minLimit && _amount <= currentReleaseLimit);
prevReleaseLimit = currentReleaseLimit.sub(_amount);
prevReleaseBlockNumber = block.number;... | 986,561 | [
1,
1152,
707,
358,
3992,
2430,
15770,
635,
326,
6835,
225,
389,
869,
1377,
326,
1758,
358,
3992,
2430,
358,
225,
389,
8949,
225,
326,
3844,
434,
2430,
358,
3992,
19,
336,
326,
783,
3992,
1800,
1089,
326,
2416,
3992,
1800,
471,
1203,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3992,
5157,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
3238,
288,
203,
3639,
2254,
5034,
783,
7391,
3039,
273,
5175,
7391,
3039,
5621,
203,
203,
3639,
2583,
24899,
8949,
1545,
1131,
3039,
597,
389,
8949,
1648,
7... |
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol | * @dev Changes the admin of the proxy. Emits an {IERC1967-AdminChanged} event./ | function changeAdmin(address newAdmin) internal {
emit AdminChanged(getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
| 8,082,533 | [
1,
7173,
326,
3981,
434,
326,
2889,
18,
7377,
1282,
392,
288,
45,
654,
39,
3657,
9599,
17,
4446,
5033,
97,
871,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
4446,
12,
2867,
394,
4446,
13,
2713,
288,
203,
3639,
3626,
7807,
5033,
12,
588,
4446,
9334,
394,
4446,
1769,
203,
3639,
389,
542,
4446,
12,
2704,
4446,
1769,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2021-09-09
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are g... | pause all withdrawAll | function withdrawAllMoney(address payable _to) public onlyOwner() {
require(paused == false, "Contract Paused");
_to.transfer(address(this).balance);
}
| 15,445,747 | [
1,
19476,
777,
598,
9446,
1595,
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,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1595,
23091,
12,
2867,
8843,
429,
389,
869,
13,
1071,
1338,
5541,
1435,
288,
203,
3639,
2583,
12,
8774,
3668,
422,
629,
16,
315,
8924,
21800,
3668,
8863,
203,
3639,
389,
869,
18,
13866,
12,
2867,
12,
2211,
... |
./full_match/4/0xd84F1fefe13E91C52C41998D06d9182e879cb649/sources/contracts/Tokens/StakingRewardFactory.sol | immutables the staking tokens for which the rewards contract has been deployed info about rewards for a particular staking token | contract StakingRewardsFactory is Ownable {
address public rewardsToken;
uint256 public stakingRewardsGenesis;
address[] public stakingTokens;
struct StakingRewardsInfo {
address stakingRewards;
uint256 rewardAmount;
}
mapping(address => StakingRewardsInfo) public stakingR... | 670,265 | [
1,
381,
10735,
1538,
326,
384,
6159,
2430,
364,
1492,
326,
283,
6397,
6835,
711,
2118,
19357,
1123,
2973,
283,
6397,
364,
279,
6826,
384,
6159,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
934,
6159,
17631,
14727,
1733,
353,
14223,
6914,
288,
203,
565,
1758,
1071,
283,
6397,
1345,
31,
203,
565,
2254,
5034,
1071,
384,
6159,
17631,
14727,
7642,
16786,
31,
203,
203,
565,
1758,
8526,
1071,
384,
6159,
5157,
31,
203... |
/**
*Submitted for verification at Etherscan.io on 2022-02-07
*/
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
library LowGasSafeMath {
/// @notice Returns x + y, reverts if sum overflows uint256
/// @param x The augend
/// @param y The addend
/// @return z The sum of x and y
... | * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with `errorMessage` as a fallback revert reason when `target` reverts. _Available since v3.1._/ | function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
| 2,288,975 | [
1,
8650,
487,
288,
22044,
17,
1887,
17,
915,
1477,
17,
2867,
17,
3890,
17,
20294,
68,
915,
1477,
68,
6487,
1496,
598,
1375,
1636,
1079,
68,
487,
279,
5922,
15226,
3971,
1347,
1375,
3299,
68,
15226,
87,
18,
389,
5268,
3241,
331,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
445,
1477,
12,
203,
3639,
1758,
1018,
16,
7010,
3639,
1731,
3778,
501,
16,
7010,
3639,
533,
3778,
9324,
203,
565,
262,
2713,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
327,
389,
915,
26356,
620,
12,
3299,
16,
501,
16,... |
pragma solidity 0.4.15;
import './ownership/multiowned.sol';
import './crowdsale/FixedTimeBonuses.sol';
import './crowdsale/FundsRegistry.sol';
import './crowdsale/InvestmentAnalytics.sol';
import './security/ArgumentsChecker.sol';
import './STQToken.sol';
import 'zeppelin-solidity/contracts/ReentrancyGuard.sol';
impo... | @notice consider paused ICO as failed | {
changeState(IcoState.FAILED);
}
| 12,662,727 | [
1,
8559,
3585,
17781,
467,
3865,
487,
2535,
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,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2549,
1119,
12,
45,
2894,
1119,
18,
11965,
1769,
203,
565,
289,
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,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-15
*/
// File: node_modules\@openzeppelin\contracts\GSN\Context.sol
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* ... | Allows contract owner to withdraw the Ether the contract owns | function withdrawEther() onlyOwner public {
uint balance = address(this).balance;
msg.sender.transfer(balance);
}
| 6,813,107 | [
1,
19132,
6835,
3410,
358,
598,
9446,
326,
512,
1136,
326,
6835,
29065,
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,
565,
445,
598,
9446,
41,
1136,
1435,
1338,
5541,
1071,
288,
203,
3639,
2254,
11013,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
3639,
1234,
18,
15330,
18,
13866,
12,
12296,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
... |
pragma solidity ^0.5.16;
import "./VToken.sol";
import "./ErrorReporter.sol";
import "./Exponential.sol";
import "./PriceOracle.sol";
import "./ComptrollerInterface.sol";
import "./ComptrollerStorage.sol";
import "./Unitroller.sol";
import "./Governance/XVS.sol";
import "./VAI/VAI.sol";
/**
* @title Venus's Comptrol... | * @title Venus's Comptroller Contract @author Venus/ closeFactorMantissa must be strictly greater than this value closeFactorMantissa must not exceed this value No collateralFactorMantissa may exceed this value liquidationIncentiveMantissa must be no less than this value liquidationIncentiveMantissa must be no greater ... | contract ComptrollerG2 is ComptrollerV1Storage, ComptrollerInterfaceG1, ComptrollerErrorReporter, Exponential {
event MarketListed(VToken vToken);
event MarketEntered(VToken vToken, address account);
event MarketExited(VToken vToken, address account);
event NewCloseFactor(uint oldCloseFactorMantissa,... | 5,479,790 | [
1,
58,
11797,
1807,
1286,
337,
1539,
13456,
225,
776,
11797,
19,
1746,
6837,
49,
970,
21269,
1297,
506,
23457,
6802,
2353,
333,
460,
1746,
6837,
49,
970,
21269,
1297,
486,
9943,
333,
460,
2631,
4508,
2045,
287,
6837,
49,
970,
21269,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1286,
337,
1539,
43,
22,
353,
1286,
337,
1539,
58,
21,
3245,
16,
1286,
337,
1539,
1358,
43,
21,
16,
1286,
337,
1539,
668,
13289,
16,
29770,
649,
288,
203,
565,
871,
6622,
278,
682,
329,
12,
58,
1345,
331,
1345,
1769,
2... |
pragma solidity ^0.4.18;
import "zeppelin-solidity/contracts/token/ERC721/ERC721.sol";
import "zeppelin-solidity/contracts/math/SafeMath.sol";
import "./StorageConsumer.sol";
/**
* @title ERC721TokenKeyed
* Generic implementation for the required functionality of the ERC721 standard
*/
contract ERC721TokenKeyed is... | * @dev Internal function to remove a token ID from the list of a given address @param _from address representing the previous owner of the given token ID @param _tokenId uint256 ID of the token to be removed from the tokens list of the given address/ Note that this will handle single-element arrays. In that case, both ... | function removeToken(address _from, uint256 _tokenId) private {
require(ownerOf(_tokenId) == _from);
uint256 tokenIndex = getOwnedTokenIndex(_tokenId);
uint256 lastTokenIndex = balanceOf(_from).sub(1);
uint256 lastToken = getOwnedToken(_from, lastTokenIndex);
setTokenOwner(_tokenId, 0);
setO... | 958,636 | [
1,
3061,
445,
358,
1206,
279,
1147,
1599,
628,
326,
666,
434,
279,
864,
1758,
225,
389,
2080,
1758,
5123,
326,
2416,
3410,
434,
326,
864,
1147,
1599,
225,
389,
2316,
548,
2254,
5034,
1599,
434,
326,
1147,
358,
506,
3723,
628,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1206,
1345,
12,
2867,
389,
2080,
16,
2254,
5034,
389,
2316,
548,
13,
3238,
288,
203,
565,
2583,
12,
8443,
951,
24899,
2316,
548,
13,
422,
389,
2080,
1769,
203,
203,
565,
2254,
5034,
1147,
1016,
273,
336,
5460,
329,
13... |
./full_match/137/0x52a29e1f32DEd47B6FfF036e95667125921faE50/sources/src/Facets/WormholeFacet.sol | @param receiver The address of the token receiver after bridging. @param arbiterFee The amount of token to pay a relayer (can be zero if no relayer is used). @param nonce A random nonce to associate with the tx. | struct WormholeData {
bytes32 receiver;
uint256 arbiterFee;
uint32 nonce;
}
event WormholeInitialized(Config[] configs);
event WormholeChainIdMapped(
uint256 indexed lifiChainId,
uint256 indexed wormholeChainId
);
event WormholeChainIdsMapped(Config[] con... | 3,740,243 | [
1,
24454,
1021,
1758,
434,
326,
1147,
5971,
1839,
324,
1691,
1998,
18,
225,
419,
70,
2165,
14667,
1021,
3844,
434,
1147,
358,
8843,
279,
1279,
1773,
261,
4169,
506,
3634,
309,
1158,
1279,
1773,
353,
1399,
2934,
225,
7448,
432,
2744,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
1958,
678,
535,
27167,
751,
288,
203,
3639,
1731,
1578,
5971,
31,
203,
3639,
2254,
5034,
419,
70,
2165,
14667,
31,
203,
3639,
2254,
1578,
7448,
31,
203,
565,
289,
203,
203,
565,
871,
678,
535,
27167,
11459,
12,
809,
8526,
... |
// SPDX-License-Identifier: MIT
// @authors:
// Chiemezie Onyewuchi, MD <perry@perrycoin.com>
// Recluse Data
pragma solidity ^0.8.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uin... | * @dev Retrieves the total supply at the time `snapshotId` was created./ | function totalSupplyAt(uint256 snapshotId) public view virtual returns(uint256) {
(bool snapshotted, uint256 value) = _valueAt(snapshotId, _totalSupplySnapshots);
return snapshotted ? value : totalSupply();
}
| 185,759 | [
1,
6960,
326,
2078,
14467,
622,
326,
813,
1375,
11171,
548,
68,
1703,
2522,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2078,
3088,
1283,
861,
12,
11890,
5034,
4439,
548,
13,
1071,
1476,
5024,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
261,
6430,
4439,
2344,
16,
2254,
5034,
460,
13,
273,
389,
1132,
861,
12,
11171,
548,
16,
389,
4963,
3... |
./partial_match/1/0x3e33995883E5aB9911973C8f1023b82363F5E2ed/sources/PORN.sol | Possible ways this could break addressed 1) Accessing before event is over and resetting eth contributed -- added require 2) No uniswap pair - impossible at this moment because of the LPGenerationCompleted bool 3) LP per unit is 0 - impossible checked at generation function | function claimLPTokens() public {
require(LPGenerationCompleted, "Event not over yet");
require(ethContributed[msg.sender] > 0 , "Nothing to claim, move along");
IUniswapV2Pair pair = IUniswapV2Pair(tokenUniswapPair);
uint256 amountLPToTransfer = ethContributed[msg.sender].mul(LPperE... | 2,891,240 | [
1,
13576,
16226,
333,
3377,
898,
527,
4638,
404,
13,
5016,
310,
1865,
871,
353,
1879,
471,
30691,
13750,
356,
11050,
1493,
3096,
2583,
576,
13,
2631,
640,
291,
91,
438,
3082,
300,
23343,
622,
333,
10382,
2724,
434,
326,
511,
52,
138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
7516,
48,
1856,
3573,
1435,
1071,
288,
203,
3639,
2583,
12,
14461,
13842,
9556,
16,
315,
1133,
486,
1879,
4671,
8863,
203,
3639,
2583,
12,
546,
442,
11050,
63,
3576,
18,
15330,
65,
405,
374,
269,
315,
23814,
358,
7516,
... |
./full_match/11155111/0xbB1Bc864b3e8170a584433D4bfC4c07B9CB91Bf1/sources/contracts/swap.sol | Ensuring the contract has token balance before attempting transfer | if (tokenAmount > 0) {
require(
paymentToken.transfer(msg.sender, tokenAmount),
"Withdrawal of PaymentToken failed"
);
}
emit ProceedsWithdrawn(msg.sender, ethAmount, tokenAmount);
return true;
| 3,790,115 | [
1,
664,
87,
4017,
326,
6835,
711,
1147,
11013,
1865,
15600,
7412,
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,
3639,
309,
261,
2316,
6275,
405,
374,
13,
288,
203,
5411,
2583,
12,
203,
7734,
5184,
1345,
18,
13866,
12,
3576,
18,
15330,
16,
1147,
6275,
3631,
203,
7734,
315,
1190,
9446,
287,
434,
12022,
1345,
2535,
6,
203,
5411,
11272,
203,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.16 <0.8.0;
import "./ConsentMgr.sol";
/*
*@Title : User Profile Managment Contract
* Developed by Merlec Mpyana M.
* Email: mlecjm(a)korea.ac.kr
* Intelligent Blockchain Engineering Lab, Korea University
*/
contract UserProfileMgr{
... | Check if a user is a DataController | function isDataController(address _uProfileID) view public returns(bool){
return Profiles[_uProfileID].isDataController;
}
| 6,434,851 | [
1,
1564,
309,
279,
729,
353,
279,
1910,
2933,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
353,
751,
2933,
12,
2867,
389,
89,
4029,
734,
13,
1476,
1071,
1135,
12,
6430,
15329,
203,
5411,
327,
1186,
2354,
63,
67,
89,
4029,
734,
8009,
291,
751,
2933,
31,
203,
3639,
289,
203,
540,
203,
2,
-100,
-100,
-100,
... |
./partial_match/80001/0xf150b30099655721c6463d7579B6FaC52857dA90/sources/contracts/factory/NftTokenCrowdsale.sol | * Event for token purchase logging @param spender who paid for the tokens @param beneficiary who got the tokens @param typeId of the token sold @param totalSupply of the token type included the purchase that trigger the event @param tokenId of the token type sold @param value in wei involved in the purchase/* @param _v... | ) isValidAddress(_vault) {
_setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
_setupRole(PAUSER_ROLE, msg.sender);
_setupRole(MINTER_ROLE, msg.sender);
token = _token;
tokenToyo = _tokenToyo;
tokenBox = _tokenBox;
tokenAirdrop = _tokenAirdrop;
tokenStorage =... | 8,806,208 | [
1,
1133,
364,
1147,
23701,
2907,
225,
17571,
264,
10354,
30591,
364,
326,
2430,
225,
27641,
74,
14463,
814,
10354,
2363,
326,
2430,
225,
24361,
434,
326,
1147,
272,
1673,
225,
2078,
3088,
1283,
434,
326,
1147,
618,
5849,
326,
23701,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
4908,
1887,
24899,
26983,
13,
288,
203,
3639,
389,
8401,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
1234,
18,
15330,
1769,
203,
3639,
389,
8401,
2996,
12,
4066,
4714,
67,
16256,
16,
1234,
18,
15330,
1769,
203,
3639,
389,... |
./full_match/1/0x0ff0C2dA589108e3B41B502e0714298170932482/sources/contracts/2_Owner.sol | * @dev Change owner @param newOwner address of new owner/ | function changeOwner(address newOwner) public onlyOwner {
owner = newOwner;
}
| 2,984,596 | [
1,
3043,
3410,
225,
394,
5541,
1758,
434,
394,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
5541,
12,
2867,
394,
5541,
13,
1071,
1338,
5541,
288,
203,
3639,
3410,
273,
394,
5541,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.5.2;
// File: contracts/ERC20Interface.sol
// https://github.com/ethereum/EIPs/issues/20
interface ERC20 {
function totalSupply() external view returns (uint supply);
function balanceOf(address _owner) external view returns (uint balance);
function transfer(address _to, uint _value) exte... | * @dev Allows the pendingAdmin address to finalize the change admin process./ | function claimAdmin() public {
require(pendingAdmin == msg.sender, "admin address cannot be 0");
emit AdminClaimed(pendingAdmin, admin);
admin = pendingAdmin;
pendingAdmin = address(0);
}
event AlerterAdded (address newAlerter, bool isAdd);
| 5,418,262 | [
1,
19132,
326,
4634,
4446,
1758,
358,
12409,
326,
2549,
3981,
1207,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
4446,
1435,
1071,
288,
203,
3639,
2583,
12,
9561,
4446,
422,
1234,
18,
15330,
16,
315,
3666,
1758,
2780,
506,
374,
8863,
203,
3639,
3626,
7807,
9762,
329,
12,
9561,
4446,
16,
3981,
1769,
203,
3639,
3981,
273,
4634... |
/**
* Source Code first verified at https://etherscan.io on Friday, April 26, 2019
(UTC) */
pragma solidity >=0.4.23 <0.6.0;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflo... | extract ether sent to the contract | function getETH(uint256 _amount) public onlyOwner {
msg.sender.transfer(_amount);
}
mapping(address => uint) balances_re_ent36;
| 14,091,660 | [
1,
8004,
225,
2437,
3271,
358,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
1584,
44,
12,
11890,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
1234,
18,
15330,
18,
13866,
24899,
8949,
1769,
203,
565,
289,
203,
6770,
12,
2867,
516,
2254,
13,
324,
26488,
67,
266,
67,
319,
5718,
31... |
./full_match/80001/0x9647c8AA06A860D5989d18a3adFfa9638557F0B9/sources/node_modules/_hyperlane-xyz/core/contracts/Router.sol | ============ Virtual functions ============ ============ Internal functions ============* @notice Set the router for a given domain @param _domain The domain @param _address The new router/ | function _handle(
uint32 _origin,
bytes32 _sender,
bytes calldata _message
) internal virtual;
function _enrollRemoteRouter(uint32 _domain, bytes32 _address) internal {
_routers.set(_domain, _address);
emit RemoteRouterEnrolled(_domain, _address);
}
| 9,463,481 | [
1,
14468,
7269,
4186,
422,
1432,
631,
422,
1432,
631,
3186,
4186,
422,
1432,
631,
225,
1000,
326,
4633,
364,
279,
864,
2461,
225,
389,
4308,
1021,
2461,
225,
389,
2867,
1021,
394,
4633,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
4110,
12,
203,
3639,
2254,
1578,
389,
10012,
16,
203,
3639,
1731,
1578,
389,
15330,
16,
203,
3639,
1731,
745,
892,
389,
2150,
203,
565,
262,
2713,
5024,
31,
203,
203,
203,
565,
445,
389,
275,
2693,
5169,
8259,
12... |
pragma solidity ^0.4.23;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is ch... | @dev performs only allowed state transitions @dev records an investment @param _investor who invested @param _tokenAmount the amount of token bought, calculation is handled by ICO @param _currency the currency in which investor invested @param _amount the invested amount @dev get total invested in ETH @dev get total i... | contract BablosCrowdsaleWallet is BablosCrowdsaleWalletInterface, Ownable, ReentrancyGuard {
using SafeMath for uint;
function changeState(State _newState) external;
function invested(address _investor, uint _tokenAmount, PriceUpdaterInterface.Currency _currency, uint _amount) external payable;
function getT... | 5,452,327 | [
1,
457,
9741,
1338,
2935,
919,
13136,
225,
3853,
392,
2198,
395,
475,
225,
389,
5768,
395,
280,
10354,
2198,
3149,
225,
389,
2316,
6275,
326,
3844,
434,
1147,
800,
9540,
16,
11096,
353,
7681,
635,
467,
3865,
225,
389,
7095,
326,
546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
378,
383,
87,
39,
492,
2377,
5349,
16936,
353,
605,
378,
383,
87,
39,
492,
2377,
5349,
16936,
1358,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
225,
445,
... |
./full_match/1/0x17B00548003683C423eecce4371b4bA56eEd962b/sources/contracts/access/DramAccessControl.sol | * @inheritdoc IDramAccessControl/ | function revokeRole(
bytes32 role,
address account
) external virtual override onlyRoleOrAdmin(ROLE_MANAGER_ROLE) {
if (role == ADMIN_ROLE) revert DirectAdminUpdateError();
_revokeRole(role, account);
}
| 3,169,601 | [
1,
36,
10093,
1599,
1940,
16541,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18007,
2996,
12,
203,
3639,
1731,
1578,
2478,
16,
203,
3639,
1758,
2236,
203,
565,
262,
3903,
5024,
3849,
1338,
2996,
1162,
4446,
12,
16256,
67,
19402,
67,
16256,
13,
288,
203,
3639,
309,
261,
4615,
422,
25969,
67,
1625... |
./full_match/43114/0xD7cF61161F8f90068944395AaDe32D61BB1ef2AF/sources/MILF.sol | generate the joe pair path of token -> weth make the swap | function swapTokensForAvax(uint256 tokenAmount) private lockTheSwap{
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = joeV2Router.WAVAX();
_approve(address(this), address(joeV2Router), tokenAmount);
joeV2Router.swapExactTokensForAVAXSupportingFee... | 4,553,712 | [
1,
7163,
326,
525,
15548,
3082,
589,
434,
1147,
317,
341,
546,
1221,
326,
7720,
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,
7720,
5157,
1290,
3769,
651,
12,
11890,
5034,
1147,
6275,
13,
3238,
2176,
1986,
12521,
95,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
65,
273,
1758,
12,
2211,
1769,
2... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
contract Voting {
// Structures
struct Voter {
bool isRegistered;
bool hasVoted;
uint votedProposalId;
}
struct Proposal {
string description;
uint voteCount;
}
// vote mapping
struc... | We should have at least one Proposal to continue the workflow
| require(votes[index].proposals.length>=1, '6'); | 12,942,822 | [
1,
3218,
1410,
1240,
622,
4520,
1245,
19945,
358,
1324,
326,
6095,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
12,
27800,
63,
1615,
8009,
685,
22536,
18,
2469,
34,
33,
21,
16,
296,
26,
8284,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
interface TradeBotCommanderV2Interface {
// events
event ADDEDACCOUNT705(address account); //inject NONSTANDARD NAMING
event REMOVEDACCOUNT677(address account); //inject NONSTANDARD... | Note: the smart wallet at the expected address may have been modified so that the supplied user signing key is no longer a valid key. Therefore, treat this helper as a way to protect against race conditions, not as a primary mechanism for interacting with smart wallet contracts. | if (size == 0) {
require(
_WALLET_FACTORY.GETNEXTSMARTWALLET653(userSigningKey) == expectedSmartWallet,
"Smart wallet to be deployed does not match expected smart wallet."
);
smartWallet = _WALLET_FACTORY.NEWSMARTWALLET679(userSigningKey);
smartWallet = expectedSmartWallet;
... | 12,831,829 | [
1,
8067,
30,
326,
13706,
9230,
622,
326,
2665,
1758,
2026,
1240,
2118,
4358,
1427,
716,
326,
4580,
729,
10611,
498,
353,
1158,
7144,
279,
923,
498,
18,
17189,
16,
10116,
333,
4222,
487,
279,
4031,
358,
17151,
5314,
17996,
4636,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
309,
261,
1467,
422,
374,
13,
288,
203,
1377,
2583,
12,
203,
3639,
389,
59,
1013,
15146,
67,
16193,
18,
3264,
25539,
7303,
4928,
59,
1013,
15146,
26,
8643,
12,
1355,
12322,
653,
13,
422,
2665,
23824,
16936,
16,
203,
3639,
... |
./full_match/1/0x84b68BD08155D5BB4FB8c40882838684AB20F4f6/sources/Users/225153/Projects/zzz-contracts/contracts/LPTokenWrapper.sol | Align balances for the user | function withdraw(uint256 amount) public virtual {
_totalSupply = _totalSupply.sub(amount);
_balances[msg.sender] = _balances[msg.sender].sub(amount);
}
| 3,068,145 | [
1,
10044,
324,
26488,
364,
326,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
3844,
13,
1071,
5024,
288,
203,
3639,
389,
4963,
3088,
1283,
273,
389,
4963,
3088,
1283,
18,
1717,
12,
8949,
1769,
203,
3639,
389,
70,
26488,
63,
3576,
18,
15330,
65,
273,
389,
70,
26488,
6... |
./partial_match/42/0xF9712B026A1dEFF115BB5ee5172c76A80D2f6672/sources/XplosiveBNB.sol | * @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor... | library XSafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtract... | 9,069,106 | [
1,
24114,
1879,
348,
7953,
560,
1807,
30828,
5295,
598,
3096,
9391,
4271,
18,
27443,
5295,
316,
348,
7953,
560,
2193,
603,
9391,
18,
1220,
848,
17997,
563,
316,
22398,
16,
2724,
5402,
81,
414,
11234,
6750,
716,
392,
9391,
14183,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
1139,
9890,
10477,
288,
203,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
276,
273,
279,
397,
324,
31,
203,
3639,
2583,
12,
71,
1... |