file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/42/0xB6697509643FDE9033742458DE9dBF5639f5af9c/sources/coin_in_sc.sol | Use the below address for Kovan BELOW HERE I DEFINE THE KOVAN BASE TOKEN ADDRESSES BELOW HERE I DEFINE THE MAINNET BASE TOKEN ADDRESSES address private constant WETH_sc = ; address private constant USDC_sc = ; address private constant USDT_sc = ; Use the below for MAINNETaddress public immutable owner = 0x722A8DE5FCBe... | contract CoinStorageTest {
address public immutable owner;
address private constant WETH_sc = 0xd0A1E359811322d97991E03f863a0C30C2cF029C;
ChiToken constant public chi = ChiToken(0x0000000000004946c0e9F43F4Dee607b0eF1fA1c);
IERC20 constant public WETH_token = IERC20(0xd0A1E359811322d9799... | 16,223,004 | [
1,
3727,
326,
5712,
1758,
364,
1475,
1527,
304,
9722,
4130,
670,
29340,
467,
25957,
3740,
12786,
1475,
51,
58,
1258,
10250,
14275,
11689,
7031,
1090,
55,
9722,
4130,
670,
29340,
467,
25957,
3740,
12786,
22299,
14843,
10250,
14275,
11689,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28932,
3245,
4709,
288,
203,
203,
565,
1758,
1071,
11732,
3410,
31,
203,
377,
203,
565,
1758,
3238,
5381,
678,
1584,
44,
67,
1017,
273,
374,
7669,
20,
37,
21,
41,
4763,
10689,
2499,
1578,
22,
72,
10580,
2733,
21,
41,
463... |
./partial_match/1/0x8d0FcB0251081873ee725e184d6e0618107db196/sources/Baby$DIE.sol | update launch tax ratios | function updateLaunchTransferTax(
uint8 newLaunchTransferTax
) external onlyOwner {
require(launchTransferTax > 0, "Launch Transfer Tax has been removed and cannot be re-enabled");
launchTransferTax = newLaunchTransferTax;
}
| 15,938,039 | [
1,
2725,
8037,
5320,
25706,
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,
1089,
9569,
5912,
7731,
12,
203,
3639,
2254,
28,
394,
9569,
5912,
7731,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
20738,
5912,
7731,
405,
374,
16,
315,
9569,
12279,
18240,
711,
2118,
3723,
471,
2780,
50... |
pragma solidity >=0.4.0 <0.6.0;
import "./RelayHubApi.sol";
import "./RelayRecipient.sol";
import "./RLPReader.sol";
contract RelayHub is RelayHubApi {
string public hello = "hello";
// Anyone can call certain functions in this singleton and trigger relay processes.
uint constant timeout = 5 days; // X... | Create or increase the stake and unstake_delay Make sure that the relay doesn't decrease his delay if already registered | function stake(address relay, uint unstake_delay) external payable {
require(stakes[relay].owner == address(0) || stakes[relay].owner == msg.sender, "not owner");
stakes[relay].owner = msg.sender;
stakes[relay].stake += msg.value;
require(unstake_delay >= stakes[relay].unstake_delay,... | 5,540,049 | [
1,
1684,
578,
10929,
326,
384,
911,
471,
640,
334,
911,
67,
10790,
4344,
3071,
716,
326,
18874,
3302,
1404,
20467,
18423,
4624,
309,
1818,
4104,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
2867,
18874,
16,
2254,
640,
334,
911,
67,
10790,
13,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
334,
3223,
63,
2878,
528,
8009,
8443,
422,
1758,
12,
20,
13,
747,
384,
3223,
63,
2878,
528,
8009,
8443,
4... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.11;
import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol";
import '@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol';
import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.so... | Transfer the remaining tokens to wallets | super._transfer(sender, growthAddress, amountGrowth - autoSellGrowth);
| 2,529,762 | [
1,
5912,
326,
4463,
2430,
358,
17662,
2413,
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,
3639,
2240,
6315,
13866,
12,
15330,
16,
13334,
451,
1887,
16,
3844,
30948,
451,
300,
3656,
55,
1165,
30948,
451,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42220/0xc6BBA245CbB235Af7B869eEf08ABA1f5A2c5C493/sources/Haiex.sol | Initialize ERC20 tokenGet stable informationGet sender balanceCheck amount, Balance, allowance, token price, existenceFist step convert Stable1 to USDSmart contract Burn those tokensDecrease usd reserve allocate to Stable1Calculate TaxesGet TaxTransfer taxSecond step convert USD to Stable2Smart contract Mint the Stabl... | function stableTrade(address _stable1, address _stable2, uint256 amount) public whenNotPaused returns (bool) {
Model stableCoin1 = Model(_stable1);
Model stableCoin2 = Model(_stable2);
Stable memory stable1 = getStableByAddress(stableCoin1);
Stable memory stable2 = getS... | 16,332,225 | [
1,
7520,
4232,
39,
3462,
1147,
967,
14114,
1779,
967,
5793,
11013,
1564,
3844,
16,
30918,
16,
1699,
1359,
16,
1147,
6205,
16,
15782,
42,
376,
2235,
1765,
934,
429,
21,
358,
11836,
3948,
81,
485,
6835,
605,
321,
5348,
2430,
23326,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14114,
22583,
12,
2867,
389,
15021,
21,
16,
1758,
389,
15021,
22,
16,
2254,
5034,
3844,
13,
1071,
225,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
203,
377,
203,
1377,
203,
3639,
3164,
14114,
27055,
21,
273,
3164,... |
pragma solidity ^0.5.11;
/**
* @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... | @title Kyber Network interface | interface KyberNetworkProxyInterface {
function getExpectedRate(ERC20 src, ERC20 dest, uint srcQty) external view returns (uint expectedRate, uint slippageRate);
function tradeWithHint(ERC20 src, uint srcAmount, ERC20 dest, address destAddress,
uint maxDestAmount, uint minConversionRate, address wal... | 12,949,646 | [
1,
47,
93,
744,
5128,
1560,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1475,
93,
744,
3906,
3886,
1358,
288,
203,
565,
445,
336,
6861,
4727,
12,
654,
39,
3462,
1705,
16,
4232,
39,
3462,
1570,
16,
2254,
1705,
53,
4098,
13,
3903,
1476,
1135,
261,
11890,
2665,
4727,
16,
2254,
272,
3169,
2433,
4... |
./full_match/5/0xf123EF547D8478265e56a10917CCAd6Ab67817b7/sources/contracts/FVCKCRYSTAL.sol | * @dev Withdraw funds/ | function withdraw(address payable recipient, uint256 amount) external adminRequired {
recipient.transfer(amount);
}
| 7,041,887 | [
1,
1190,
9446,
284,
19156,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
2867,
8843,
429,
8027,
16,
2254,
5034,
3844,
13,
3903,
3981,
3705,
288,
203,
3639,
8027,
18,
13866,
12,
8949,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.1;
import "./ICampaignFactory.sol";
import "./AggregatorV3Interface.sol";
import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./SafeMath.sol";
import "./IERC20.sol";
import "./Pausable.sol";
contract Campaign is Ownable, ReentrancyGuard, Pausable {
u... | * @param _beneficiary Address performing the token purchase @param _tokenAmount Value of sold tokens @param _weiAmount Value in wei involved in the purchase/ | function _updatePurchasingState(
address _beneficiary,
uint256 _weiAmount,
uint256 _tokenAmount
) internal {
require(getAvailableTokens() >= _tokenAmount, "ICO_CAMPAIGN::TOKEN_NOT_ENOUGH");
weiRaised = weiRaised.add(_weiAmount);
tokenSold = tokenSold.add(_tokenAmo... | 14,656,560 | [
1,
67,
70,
4009,
74,
14463,
814,
5267,
14928,
326,
1147,
23701,
225,
389,
2316,
6275,
1445,
434,
272,
1673,
2430,
225,
389,
1814,
77,
6275,
1445,
316,
732,
77,
24589,
316,
326,
23701,
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,
2725,
10262,
343,
11730,
1119,
12,
203,
3639,
1758,
389,
70,
4009,
74,
14463,
814,
16,
203,
3639,
2254,
5034,
389,
1814,
77,
6275,
16,
203,
3639,
2254,
5034,
389,
2316,
6275,
203,
565,
262,
2713,
288,
203,
3639,
... |
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed pre... | @notice Function to get ipfsHash for selected asset @param _id is id of asset we'd like to get ipfs hash @return string representation of ipfs hash of that asset | function getAssetIpfs(uint _id) public view returns (bytes32) {
require(_id < numberOfAssets);
return assets[_id].ipfsHash;
}
| 900,619 | [
1,
2083,
358,
336,
2359,
2556,
2310,
364,
3170,
3310,
225,
389,
350,
353,
612,
434,
3310,
732,
14271,
3007,
358,
336,
2359,
2556,
1651,
327,
533,
4335,
434,
2359,
2556,
1651,
434,
716,
3310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
24689,
5273,
2556,
12,
11890,
389,
350,
13,
1071,
1476,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
2583,
24899,
350,
411,
7922,
10726,
1769,
203,
540,
203,
3639,
327,
7176,
63,
67,
350,
8009,
625,
2556,
2310,
31,
203,
... |
pragma solidity 0.5.6;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spende... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract ERC20 is IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
uint256 private _totalSupply;
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
function balanceOf... | 13,116,653 | [
1,
8336,
4232,
39,
3462,
1147,
225,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3462,
353,
467,
654,
39,
3462,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203,
203,
225,
2874,
261,
2867,
516,
2874,
2... |
./partial_match/1/0x5175d77a142813E54548f75d00Ccb7B7935FeaC9/sources/offerToken.sol | mint offeror designated initial amount of offerToken
| _mint(offeror, _init); | 15,993,628 | [
1,
81,
474,
10067,
280,
25264,
2172,
3844,
434,
10067,
1345,
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,
3639,
389,
81,
474,
12,
23322,
280,
16,
389,
2738,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0x235b25f9f56B39eFD8293C0d2A9Ee70719E25B85/sources/src/ButtonswapPair.sol | * @inheritdoc IButtonswapPair/ | function setMaxVolatilityBps(uint16 newMaxVolatilityBps) external onlyFactory {
maxVolatilityBps = newMaxVolatilityBps;
emit MaxVolatilityBpsUpdated(newMaxVolatilityBps);
}
| 4,108,390 | [
1,
36,
10093,
467,
3616,
22270,
4154,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10851,
17431,
30139,
38,
1121,
12,
11890,
2313,
394,
2747,
17431,
30139,
38,
1121,
13,
3903,
1338,
1733,
288,
203,
3639,
943,
17431,
30139,
38,
1121,
273,
394,
2747,
17431,
30139,
38,
1121,
31,
203,
3639,
3626,
4238,
1743... |
pragma solidity ^0.5.16;
import "./CToken.sol";
import "./ErrorReporter.sol";
import "./PriceOracle.sol";
import "./ComptrollerInterface.sol";
import "./ComptrollerStorage.sol";
import "./Unitroller.sol";
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
function totalSupp... | Only B.Protocol can liquidate */ | address bLiquidator = bprotocol[address(cTokenBorrowed)];
| 5,814,361 | [
1,
3386,
605,
18,
5752,
848,
4501,
26595,
340,
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,
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,
1758,
324,
48,
18988,
350,
639,
273,
324,
8373,
63,
2867,
12,
71,
1345,
38,
15318,
329,
13,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move con... | @return processedWethByTokenSum The sum of processed WETH | function getProcessedWethByTokenSum()
public
view
override
returns (uint256 processedWethByTokenSum)
{
IIntegrationMap integrationMap = IIntegrationMap(
moduleMap.getModuleAddress(Modules.IntegrationMap)
);
uint256 tokenCount = integrationMap.getTokenAddressesLength();
for (ui... | 13,875,916 | [
1,
2463,
5204,
59,
546,
858,
1345,
3495,
1021,
2142,
434,
5204,
678,
1584,
44,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3570,
3692,
59,
546,
858,
1345,
3495,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
3849,
203,
565,
1135,
261,
11890,
5034,
5204,
59,
546,
858,
1345,
3495,
13,
203,
225,
288,
203,
565,
467,
15372,
863,
12040,
863,
2... |
/**
*Submitted for verification at Etherscan.io on 2021-04-19
*/
//SPDX-License-Identifier: MIT
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
// ====================================================================
// ________ _______
// / ____/ /__ _... | Will fail if fully collateralized or fully algorithmic > 0% and < 100% collateral-backed | function mintFractionalUSE(uint256 collateral_amount, uint256 shares_amount, uint256 use_out_min) external onlyOneBlock notMintPaused {
updateOraclePrice();
uint256 share_price = USE.share_price();
uint256 global_collateral_ratio = USE.global_collateral_ratio();
require(global_collat... | 10,485,692 | [
1,
13670,
2321,
309,
7418,
4508,
2045,
287,
1235,
578,
7418,
4886,
335,
405,
374,
9,
471,
411,
2130,
9,
4508,
2045,
287,
17,
823,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
13724,
287,
8001,
12,
11890,
5034,
4508,
2045,
287,
67,
8949,
16,
2254,
5034,
24123,
67,
8949,
16,
2254,
5034,
999,
67,
659,
67,
1154,
13,
3903,
1338,
3335,
1768,
486,
49,
474,
28590,
288,
203,
3639,
1089,
2... |
pragma solidity 0.4.24;
/* script to setup contracts after full redeploy on Rinkeby.
called via StabilityBoardProxy (MultiSig) but deployer account is the only signer yet because
these working on the new contracts only.
Stability Board and pretoken signers will be added and deployer will be remove... | returns CHUNK_SIZE loan products starting from some offset: [ productId, minDisbursedAmount, term, discountRate, collateralRatio, defaultingFeePt, maxLoanAmount, isActive ] | function getProducts(uint offset) external view returns (uint[8][CHUNK_SIZE] response) {
for (uint16 i = 0; i < CHUNK_SIZE; i++) {
LoanProduct storage product = products[offset + i];
response[i] = [offset + i, product.minDisbursedAmount, product.term, product.discountRate,
... | 7,655,389 | [
1,
6154,
28096,
67,
4574,
28183,
10406,
5023,
628,
2690,
1384,
30,
306,
23820,
16,
1131,
1669,
70,
295,
730,
6275,
16,
2481,
16,
12137,
4727,
16,
4508,
2045,
287,
8541,
16,
805,
310,
14667,
16484,
16,
943,
1504,
304,
6275,
16,
15083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15880,
87,
12,
11890,
1384,
13,
3903,
1476,
1135,
261,
11890,
63,
28,
6362,
26464,
67,
4574,
65,
766,
13,
288,
203,
203,
3639,
364,
261,
11890,
2313,
277,
273,
374,
31,
277,
411,
28096,
67,
4574,
31,
277,
27245,
288,
... |
//File: contracts/lib/ens/AbstractENS.sol
pragma solidity ^0.4.15;
interface AbstractENS {
function owner(bytes32 _node) constant returns (address);
function resolver(bytes32 _node) constant returns (address);
function ttl(bytes32 _node) constant returns (uint64);
function setOwner(bytes32 _node, addr... | needs to reclaim ownership so it can set resolver
| if (currentOwner != address(this)) { | 1,637,485 | [
1,
20600,
358,
283,
14784,
23178,
1427,
518,
848,
444,
5039,
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,
3639,
309,
261,
2972,
5541,
480,
1758,
12,
2211,
3719,
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,
-100,
-100,
-100,
-... |
./full_match/1/0x614775d11B6209FCC12147e111a308eab684E438/sources/AlphaSorbetVault.sol | * @notice Withdraws tokens in proportion to the vault's holdings. @dev Removes proportional amount of liquidity from Uniswap. Note it doesn't collect share of fees since last rebalance to save gas. @param liquidity burned by sender @return amount0 Amount of token0 sent to recipient @return amount1 Amount of token1 sent... | function withdraw(
uint128 liquidity
) external nonReentrant updateVault(msg.sender) returns (uint256 amount0, uint256 amount1) {
require(liquidity > 0, "liquidity");
UserInfo storage user = userInfo[msg.sender];
require(user.liquidity >= liquidity, "Sorbetto: you cant eat that m... | 2,909,689 | [
1,
1190,
9446,
87,
2430,
316,
23279,
358,
326,
9229,
1807,
6887,
899,
18,
225,
20284,
23279,
287,
3844,
434,
4501,
372,
24237,
628,
1351,
291,
91,
438,
18,
3609,
518,
3302,
1404,
3274,
7433,
434,
1656,
281,
3241,
1142,
283,
12296,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
598,
9446,
12,
203,
3639,
2254,
10392,
4501,
372,
24237,
203,
565,
262,
3903,
1661,
426,
8230,
970,
1089,
12003,
12,
3576,
18,
15330,
13,
1135,
261,
11890,
5034,
3844,
20,
16,
2254,
5034,
3844,
21,
13,
288,
203,
3639,
... |
./partial_match/4/0x3C15CAC28a7a35eFCE63205556139bc0240ece64/sources/DF9.sol | URI's default URI prefix | contract ERC1155Metadata is IERC1155Metadata {
string internal baseMetadataURI;
event URI(string _uri, uint256 indexed _id);
| Metadata Public Function s |
|__________________________________*/
pragma solidity ^0.6.0;
function uri(uint256 _id) public override view returns (string memory) {
ret... | 8,774,168 | [
1,
3098,
1807,
805,
3699,
1633,
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,
16351,
4232,
39,
2499,
2539,
2277,
353,
467,
654,
39,
2499,
2539,
2277,
288,
203,
203,
225,
533,
2713,
1026,
2277,
3098,
31,
203,
225,
871,
3699,
12,
1080,
389,
1650,
16,
2254,
5034,
8808,
389,
350,
1769,
203,
203,
203,
225,
57... |
./partial_match/42/0x0DCFB96461f639d3a9b89f56A7438030DCA7f80E/sources/MockPool.sol | get reward token address | function getToken() public view returns(address) {
return token;
}
| 3,440,783 | [
1,
588,
19890,
1147,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9162,
1435,
1071,
1476,
1135,
12,
2867,
13,
288,
203,
3639,
327,
1147,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../interfaces/ITreasury.sol";
import "../utils/ContractGuard.sol";
import "../Authori... | do not allow to drain core token (GAME or lps) if less than 90 days after pool ends | function getRequiredAllocation() public view returns (uint256)
}
if (block.timestamp < poolEndTime + 90 days) {
require(_token != game, "game");
uint256 length = poolInfo.length;
for (uint256 pid = 0; pid < length; ++pid) {
PoolInfo storage pool = poo... | 5,537,228 | [
1,
2896,
486,
1699,
358,
15427,
2922,
1147,
261,
43,
1642,
578,
328,
1121,
13,
309,
5242,
2353,
8566,
4681,
1839,
2845,
3930,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
19881,
17353,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
203,
565,
289,
203,
203,
3639,
309,
261,
2629,
18,
5508,
411,
2845,
25255,
397,
8566,
4681,
13,
288,
203,
5411,
2583,
24899,
2316,
480,
7920,
16,
315,
13957,
8... |
/**
* Copyright 2017–2018, bZeroX, LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0.
*/
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
... | conforms to ERC20 transferFrom function for BZRX token support discount on purchase | function transferFrom(
address _from,
address _to,
uint256 _value)
public
saleOpen
returns (bool)
{
require(msg.sender == bZxVaultAddress, "only the bZx vault can call this function");
if (BZRxToken(bZRxTokenContractAddress).canTransfer(ms... | 14,630,016 | [
1,
591,
9741,
358,
4232,
39,
3462,
7412,
1265,
445,
364,
605,
62,
54,
60,
1147,
2865,
12137,
603,
23701,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
1132,
13,
203,
3639,
1071,
203,
3639,
272,
5349,
3678,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
363... |
/**
*Submitted for verification at Etherscan.io on 2021-06-17
*/
// SPDX-License-Identifier: MIT
// File contracts/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 avail... | * @dev get next shedule unlock time of address lock/ | function getNextScheduleUnlock(address _addressLock)
public
view
returns (
uint256 index,
uint256 unlockTime,
uint256 amount
)
{
TimeLockByAddress memory timeLockByAddress = mappingAddressToLock[_addressLock];
return (
... | 2,296,416 | [
1,
588,
1024,
699,
329,
725,
7186,
813,
434,
1758,
2176,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6927,
6061,
7087,
12,
2867,
389,
2867,
2531,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
770,
16,
203,
5411,
2254,
5034,
7186,
950,
16,
203,
5411,
2254,
5034,
3844,
203,
3639,
262,... |
./full_match/77/0xB1274c8c44B5066d6777dfBB28f4B38bAd900F48/sources/contracts/3_Ballot.sol | pragma solidity >=0.7.0 <0.9.0;pragma experimental ABIEncoderV2;* @title Ballot @dev Implements voting process along with vote delegation/ | contract Ballot {
struct Voter {
}
struct Proposal {
Voter [] voters;
}
function test(Voter[] memory _voters) public pure returns(Voter[] memory) {
return _voters;
}
function test_1(Proposal[] memory _voters) public pure returns(Proposal[] memory) {
return... | 5,047,766 | [
1,
683,
9454,
18035,
560,
1545,
20,
18,
27,
18,
20,
411,
20,
18,
29,
18,
20,
31,
683,
9454,
23070,
10336,
45,
7204,
58,
22,
31,
225,
605,
454,
352,
225,
29704,
331,
17128,
1207,
7563,
598,
12501,
23595,
19,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
454,
352,
288,
203,
27699,
203,
565,
1958,
776,
20005,
288,
203,
565,
289,
203,
203,
565,
1958,
19945,
288,
203,
3639,
776,
20005,
5378,
331,
352,
414,
31,
203,
565,
289,
203,
377,
203,
565,
445,
1842,
12,
58,
20005... |
./partial_match/1/0x511C86d94BD667aba09e5Ee5B0d8Da157Df5f4bf/sources/$ORANGEPEPE.sol | * @dev Moves `amount` of tokens from `from` to `to`. This internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `from` cannot be the zero address. - `from` must have a balance of at least `amount`./ Over... | function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amoun... | 15,981,031 | [
1,
19297,
1375,
8949,
68,
434,
2430,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
1220,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
5859,
1147,
1656,
281,
16,
9026,
310,
1791,
28757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
3634,
1758,
8863,
203,
203,
3639,
389,
... |
./full_match/43113/0x2Ad8a117CAA5574f34CF28312E5715c153a3a147/sources/contracts/SmartAlpha.sol | @notice Return the total amount of underlying in the queues @return amount of underlying in the queues | function underlyingInQueues() public view returns (uint256) {
return queuedJuniorsUnderlyingIn + queuedSeniorsUnderlyingIn + queuedJuniorsUnderlyingOut + queuedSeniorsUnderlyingOut;
}
| 7,165,496 | [
1,
990,
326,
2078,
3844,
434,
6808,
316,
326,
11897,
327,
3844,
434,
6808,
316,
326,
11897,
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,
6808,
382,
17428,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
12234,
46,
318,
77,
1383,
14655,
6291,
382,
397,
12234,
55,
275,
77,
1383,
14655,
6291,
382,
397,
12234,
46,
318,
77,
1383,
14655,
629... |
./partial_match/1/0xFBBa6F338D9b8a84C7b2c521735d7204710Ab17f/sources/RefundVault.sol | * @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amout of tokens to be transfered/ Check is not needed because sub(_allowance, _value) will already throw if this c... | function transferFrom(address _from, address _to, uint256 _value) returns (bool) {
uint256 _allowance = allowed[_from][msg.sender];
balances[_from] = balances[_from].sub(_value);
allowed[_from][msg.sender] = _allowance.sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(_from, _to, ... | 15,649,263 | [
1,
5912,
2430,
628,
1245,
1758,
358,
4042,
225,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
225,
389,
869,
1758,
1021,
1758,
1492,
1846,
2545,
358,
7412,
358,
225,
389,
1132,
2254,
5034,
326,
2125,
659,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1135,
261,
6430,
13,
288,
203,
565,
2254,
5034,
389,
5965,
1359,
273,
2935,
63,
67,
2080,
6362,
3576,
18,
15330,
15533,
203,
203,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
import "../../openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import "../../openzeppelin-contracts/contracts/token/ERC721/IERC721.sol";
import "../../openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol";
/**
* @dev Contract module which provid... | * @dev Allow to withdraw ERC1155 tokens from contract itself/ | function approveERC1155(IERC1155 _tokenContract, address _approveToAddress)
external
onlyOperator
{
_tokenContract.setApprovalForAll(_approveToAddress, true);
}
| 926,315 | [
1,
7009,
358,
598,
9446,
4232,
39,
2499,
2539,
2430,
628,
6835,
6174,
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,
6617,
537,
654,
39,
2499,
2539,
12,
45,
654,
39,
2499,
2539,
389,
2316,
8924,
16,
1758,
389,
12908,
537,
774,
1887,
13,
203,
3639,
3903,
203,
3639,
1338,
5592,
203,
565,
288,
203,
3639,
389,
2316,
8924,
18,
542,
23461... |
pragma solidity 0.5.16;
import "./ConvexStrategy2Token.sol";
contract ConvexStrategyHBTCMainnet is ConvexStrategy2Token {
address public hbtc_unused; // just a differentiator for the bytecode
constructor() public {}
function initializeStrategy(
address _storage,
address _vault
) public initializer ... | solhint-disable-next-line no-inline-assembly | function setAddress(bytes32 slot, address _address) internal {
assembly {
sstore(slot, _address)
}
}
| 141,794 | [
1,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
1158,
17,
10047,
17,
28050,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
1887,
12,
3890,
1578,
4694,
16,
1758,
389,
2867,
13,
2713,
288,
203,
565,
19931,
288,
203,
1377,
272,
2233,
12,
14194,
16,
389,
2867,
13,
203,
565,
289,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
//File: node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* See https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function b... | * @title Burnable Token @dev Token that can be irreversibly burned (destroyed)./ | contract BurnableToken is BasicToken {
event Burn(address indexed burner, uint256 value);
pragma solidity ^0.4.24;
function burn(uint256 _value) public {
_burn(msg.sender, _value);
}
function _burn(address _who, uint256 _value) internal {
require(_value <= balances[_who]);
balances[_who] = balan... | 6,917,134 | [
1,
38,
321,
429,
3155,
225,
3155,
716,
848,
506,
9482,
266,
2496,
24755,
18305,
329,
261,
11662,
329,
2934,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
321,
429,
1345,
353,
7651,
1345,
288,
203,
203,
225,
871,
605,
321,
12,
2867,
8808,
18305,
264,
16,
2254,
5034,
460,
1769,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
24,
18,
3247,
31,
203,
225,
445,
18305,
12,
... |
./partial_match/5/0xbb3c53364CB0Fd3698f3C9aA86BBa5E4062bc2D8/sources/ThinkTankToken.sol | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract ThinkTankToken is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
constructor() public {
symbol = "TANK";... | 16,867,063 | [
1,
5802,
7620,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
935,
754,
56,
2304,
1345,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
3... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
contract ReferenceSystemDeFi is IERC20, Ownable {
using SafeMath for int;
using Saf... | 400 --> 0.25 % | 1000 --> 0.1 %
| _EXPANSION_RATE = 1000; | 1,791,206 | [
1,
16010,
15431,
374,
18,
2947,
738,
571,
4336,
15431,
374,
18,
21,
738,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
16109,
1258,
3686,
67,
24062,
273,
4336,
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,
... |
./full_match/80001/0xf80F9A8774216d7309558797FF92F9EFF05333D1/sources/contracts/DegenMugen.sol | Address of the player and => the user info | mapping(address => Player) public playerInfo;
| 868,149 | [
1,
1887,
434,
326,
7291,
471,
516,
326,
729,
1123,
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,
2874,
12,
2867,
516,
19185,
13,
1071,
7291,
966,
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,
-10... |
./partial_match/42/0x2b80537BD6fca3CDfe42507A01B6EB0Bc2e62B16/sources/P2PLending.sol | delete loans[msg.sender]; | function repayLoan(uint amount) public {
require(isBorrower(msg.sender), 'You are not an Borrower');
require(balances[msg.sender] >= amount, 'Not enough money on your BankAccount');
require(hasOngoingLoan[msg.sender] == true, 'You do not have an ongoing Loan');
require(ifLoanOpen(msg... | 3,395,064 | [
1,
3733,
437,
634,
63,
3576,
18,
15330,
15533,
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,
2071,
528,
1504,
304,
12,
11890,
3844,
13,
1071,
288,
203,
3639,
2583,
12,
291,
38,
15318,
264,
12,
3576,
18,
15330,
3631,
296,
6225,
854,
486,
392,
605,
15318,
264,
8284,
203,
3639,
2583,
12,
70,
26488,
63,
3576,
18,... |
// File: contracts\utils\EnumerableSet.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for exi... | * @dev Emitted when the pause is triggered by `account`./* @dev Emitted when the pause is lifted by `account`./* @dev Initializes the contract in unpaused state./ | constructor () public {
_paused = false;
}
| 5,955,256 | [
1,
1514,
11541,
1347,
326,
11722,
353,
10861,
635,
1375,
4631,
8338,
19,
225,
512,
7948,
1347,
326,
11722,
353,
28080,
329,
635,
1375,
4631,
8338,
19,
225,
10188,
3128,
326,
6835,
316,
640,
8774,
3668,
919,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1832,
1071,
288,
203,
3639,
389,
8774,
3668,
273,
629,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.15;
contract MyBankAccount {
mapping(address => uint256) public balanceOf;
uint256 bankBalance;
address public owner;
function MyBankAccount(uint256 initAmount) payable{ //Initial Function
owner = msg.sender;//Set the owner to the contract creator.
bankBalance =... | IMPORTANT: initAmount MUST be = to the initial funding amount.
| bankBalance = initAmount; | 7,299,559 | [
1,
20445,
6856,
30,
1208,
6275,
10685,
506,
273,
358,
326,
2172,
22058,
3844,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11218,
13937,
273,
1208,
6275,
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,
-100,
-10... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.0;
pragma abicoder v2;
import "../../common/implementation/FixedPoint.sol";
// Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below).
contract LiquidationWithdrawer {
function withdrawLiquidation(
... | * @notice Commit a vote for a price request for `identifier` at `time`. @dev `identifier`, `time` must correspond to a price request that's currently in the commit phase. Commits can be changed. @dev Since transaction data is public, the salt will be revealed with the vote. While this is the system’s expected behavior,... | contract Timer {
uint256 private currentTime;
function commitVote(
bytes32 identifier,
uint256 time,
bytes32 hash
) external virtual;
function batchCommit(Commitment[] memory commits) public virtual;
function commitAndEmitEncryptedVote(
bytes32 identifier,
... | 271,765 | [
1,
5580,
279,
12501,
364,
279,
6205,
590,
364,
1375,
5644,
68,
622,
1375,
957,
8338,
225,
1375,
5644,
9191,
1375,
957,
68,
1297,
4325,
358,
279,
6205,
590,
716,
1807,
4551,
316,
326,
3294,
6855,
18,
16854,
1282,
848,
506,
3550,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
12290,
288,
203,
565,
2254,
5034,
3238,
6680,
31,
203,
203,
565,
445,
3294,
19338,
12,
203,
3639,
1731,
1578,
2756,
16,
203,
3639,
2254,
5034,
813,
16,
203,
3639,
1731,
1578,
1651,
203,
565,
262,
3903,
5024,
31,
203,
203,
... |
// Sources flattened with hardhat v2.8.3 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.4.2
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* se... | File @openzeppelin/contracts/utils/math/SafeMath.sol@v4.4.2 OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) CAUTION This version of SafeMath should only be used with Solidity 0.8 or later, because it relies on the compiler's built in overflow checks.* @dev Wrappers over Solidity's arithmetic operations. NOTE: ... | library SafeMath {
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
function _afterTokenTransfer(
address from,
address to,
uint256 amount
}
pragma solidity ^0.8.0;
function tryAdd(uint256 a, uint256 b) internal pure returns (bool,... | 437,268 | [
1,
812,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
5471,
19,
15949,
19,
9890,
10477,
18,
18281,
36,
90,
24,
18,
24,
18,
22,
3502,
62,
881,
84,
292,
267,
30131,
331,
24,
18,
24,
18,
21,
261,
5471,
19,
15949,
19,
989... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14060,
10477,
288,
203,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
203,
565,
445,
389,
5205,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.4;
import "@openzeppelin/contracts/access/Ownable.sol";
// erc20 interface for mcb token transfer
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function balanceOf(address owner) external returns (uint256);
funct... | * @notice Get all mining pool address @return pools The address of mining pools/ | function getMiningPools() public view returns (address[] memory pools) {
return _pools;
}
| 5,345,690 | [
1,
967,
777,
1131,
310,
2845,
1758,
327,
16000,
1021,
1758,
434,
1131,
310,
16000,
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,
9555,
310,
16639,
1435,
1071,
1476,
1135,
261,
2867,
8526,
3778,
16000,
13,
288,
203,
3639,
327,
389,
27663,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import ... | remove ownership of this pool from creator calculate un-filled amount0 transfer un-filled amount of token0 back to creator | function creatorClaim(uint index) external
nonReentrant
isPoolExist(index)
isPoolClosed(index)
{
require(isCreator(msg.sender, index), "sender is not pool creator");
require(!creatorClaimedP[index], "creator has claimed this pool");
creatorClaimedP[index] = true;
... | 12,558,725 | [
1,
4479,
23178,
434,
333,
2845,
628,
11784,
4604,
640,
17,
13968,
3844,
20,
7412,
640,
17,
13968,
3844,
434,
1147,
20,
1473,
358,
11784,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
11784,
9762,
12,
11890,
770,
13,
3903,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
353,
2864,
4786,
12,
1615,
13,
203,
3639,
353,
2864,
7395,
12,
1615,
13,
203,
565,
288,
203,
3639,
2583,
12,
291,
10636,
12,
3576,
18,... |
pragma solidity ^0.4.8;
import '../../gmo/contracts/VersionLogic.sol';
import './Demo.sol';
import './Demo_v1.sol';
import './TokenSample.sol';
contract DemoLogic_v1 is VersionLogic, Demo {
// This is a sample contract, so don't create event contract
event CreateToken(address _token);
function DemoLogic_... | This is a sample contract, so don't create event contract | contract DemoLogic_v1 is VersionLogic, Demo {
event CreateToken(address _token);
function DemoLogic_v1(ContractNameService _cns) VersionLogic (_cns, CONTRACT_NAME) {}
function createToken(address _caller, bytes32 _simbol, bytes32 _name, uint _tokenSupply) onlyByVersionContractOrLogic {
address tok... | 947,940 | [
1,
2503,
353,
279,
3296,
6835,
16,
1427,
2727,
1404,
752,
871,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27744,
83,
20556,
67,
90,
21,
353,
4049,
20556,
16,
27744,
83,
288,
203,
565,
871,
1788,
1345,
12,
2867,
389,
2316,
1769,
203,
203,
203,
565,
445,
27744,
83,
20556,
67,
90,
21,
12,
8924,
461,
1179,
389,
71,
2387,
13,
4... |
// SPDX-License-Identifier: Apache License, Version 2.0
pragma solidity ^0.6.10;
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
import { ISetToken } from "../interfaces/ISetToken.sol";
import { IIndexModule } from "../interfaces/IIndexModule.sol";
import { IStreamingFeeModule } from "../interface... | * OPERATOR OR METHODOLOGIST ONLY: Update the fee recipient address. Operator and Methodologist must each call this function to execute the update. @param _newFeeRecipient New fee recipient address/ | function updateFeeRecipient(address _newFeeRecipient) external mutualUpgrade(operator, methodologist) {
feeModule.updateFeeRecipient(setToken, _newFeeRecipient);
}
| 1,010,038 | [
1,
26110,
4869,
10078,
2311,
4842,
5511,
20747,
30,
2315,
326,
14036,
8027,
1758,
18,
11097,
471,
2985,
3966,
376,
1297,
1517,
745,
333,
445,
358,
1836,
326,
1089,
18,
225,
389,
2704,
14667,
18241,
6647,
1166,
14036,
8027,
1758,
19,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
14667,
18241,
12,
2867,
389,
2704,
14667,
18241,
13,
3903,
4318,
1462,
10784,
12,
9497,
16,
707,
3966,
376,
13,
288,
203,
3639,
14036,
3120,
18,
2725,
14667,
18241,
12,
542,
1345,
16,
389,
2704,
14667,
18241,
1769,
... |
./full_match/4/0xa3D6A24932F313799F66b5a5C4c1E58B5AD5542D/sources/contracts/BEP20.sol | * @dev Implementation of the {IBEP20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {BEP20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract BEP20 is Context, IBEP20, IBEP20Metadata {
using SafeMath for uint256;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
constructor(st... | 13,358,268 | [
1,
13621,
434,
326,
288,
45,
5948,
52,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096,
316,
279,
10379,
6835,
1450,
288,
67,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9722,
52,
3462,
353,
1772,
16,
467,
5948,
52,
3462,
16,
467,
5948,
52,
3462,
2277,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
31,
203... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import '@openzeppelin/contracts/access/Ownable.sol';
import "@openzeppelin/contracts/utils/Context.sol";
import '@openzeppelin/contracts/token/ERC72... | Sanity check for non-minted index | function claim(address _address, uint256[] memory tokenIndices) internal returns (uint256) {
require(block.timestamp > emissionStart, "Emission has not started yet");
uint256 totalClaimQty = 0;
for (uint i = 0; i < tokenIndices.length; i++) {
require(tokenIndices[i] < IDudeSista... | 638,520 | [
1,
55,
10417,
866,
364,
1661,
17,
81,
474,
329,
770,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12,
2867,
389,
2867,
16,
2254,
5034,
8526,
3778,
1147,
8776,
13,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
801,
19710,
1685,
16,
315,
1514,
19710,
711,
486,
5746,
4671,
8863,... |
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.5.0;
/**
* @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.
*
* This module is used through inheritance. It w... | * @title AuthorityRole @dev Authority is roles responsible for signing/approving token transfers on-chain & off-chain/ | contract AuthorityRole {
using Roles for Roles.Role;
event AuthorityAdded(address indexed account);
event AuthorityRemoved(address indexed account);
Roles.Role private _authorities;
function _addAuthority(address account) internal {
_authorities.add(account);
emit AuthorityAdded(... | 2,539,681 | [
1,
10962,
2996,
225,
6712,
560,
353,
4900,
14549,
364,
10611,
19,
12908,
6282,
1147,
29375,
603,
17,
5639,
473,
3397,
17,
5639,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6712,
560,
2996,
288,
203,
565,
1450,
19576,
364,
19576,
18,
2996,
31,
203,
203,
565,
871,
6712,
560,
8602,
12,
2867,
8808,
2236,
1769,
203,
565,
871,
6712,
560,
10026,
12,
2867,
8808,
2236,
1769,
203,
203,
565,
19576,
18,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.2;
/// @title: David Ariew X Tatler China
import "../ERC721ProjectUpgradeable.sol";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... | * Helper to get royalty receivers for a token/ | function _getRoyaltyReceivers(uint256 tokenId) internal view returns (address payable[] storage) {
if (_tokenRoyaltyReceivers[tokenId].length > 0) {
return _tokenRoyaltyReceivers[tokenId];
return _managerRoyaltyReceivers[_tokensManager[tokenId]];
}
return _managerRoya... | 12,006,495 | [
1,
2276,
358,
336,
721,
93,
15006,
22686,
364,
279,
1147,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
54,
13372,
15006,
4779,
6760,
12,
11890,
5034,
1147,
548,
13,
2713,
1476,
1135,
261,
2867,
8843,
429,
8526,
2502,
13,
288,
203,
3639,
309,
261,
67,
2316,
54,
13372,
15006,
4779,
6760,
63,
2316,
548,
8009,
2469... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
//喜马拉雅交易所 contract
//
//喜马拉雅荣耀
// Symbol : XMH
// Name : XiMaLaYa Honor
// Total supply: 1000
// Decimals : 0
//
//喜马拉雅币
// Symbol : XMLY
// Name : XiMaLaYa Token
// Total ... | ------------------------------------------------------------------------ Returns the amount of tokens approved by the owner that can be transferred to the spender's account ------------------------------------------------------------------------ | function allowance(address tokenOwner, address spender) public constant returns (uint remaining) {
require(freezed[msg.sender] != true);
return allowed[tokenOwner][spender];
}
| 999,329 | [
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,
1071,
5381,
1135,
261,
11890,
4463,
13,
288,
203,
3639,
2583,
12,
9156,
94,
329,
63,
3576,
18,
15330,
65,
480,
638,
1769,
203,
3639,
327,
2935,
63,
2316,
554... |
//THIS CODE CONSUME TOO MUCH GAS
//NOT FOR USE
pragma solidity ^0.4.16;
contract rockScissorsPaper {
function battle(string) public payable returns (string){
uint randNum; //randNum is a unsigned integer
randNum = uint(keccak256(abi.encode(now))) % 3; //Generating random number between 0,1,2
... | Display the deposit
| return (this.balance)/1000000000000000000; | 5,501,328 | [
1,
4236,
326,
443,
1724,
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... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
327,
261,
2211,
18,
12296,
13176,
21,
12648,
2787,
9449,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/44787/0x8F846cA5e22F37DeE087eFf72533eC2a007a3CCC/sources/contracts/WakalaEscrow2.sol | * Client initialize transaction. @param _type the transaction type. @param _amount the amount to be processed. @param _phoneNumber the clients phone number./ require(IERC20(cUsdTokenAddress).transferFrom(msg.sender, address(this), _amount), "Transfer unsuccessful."); | function initializeTransaction(TransactionType _type, uint256 _amount, string memory _phoneNumber) payable public returns (uint) {
require(_amount > 0, "Amount to deposit must be greater than 0.");
uint id = random();
if (_type == TransactionType.WITHDRAWAL) {
re... | 13,241,361 | [
1,
1227,
4046,
2492,
18,
225,
389,
723,
326,
2492,
618,
18,
225,
389,
8949,
326,
3844,
358,
506,
5204,
18,
225,
389,
10540,
1854,
326,
7712,
7353,
1300,
18,
19,
2583,
12,
45,
654,
39,
3462,
12,
71,
3477,
72,
1345,
1887,
2934,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
445,
4046,
3342,
12,
3342,
559,
389,
723,
16,
2254,
5034,
389,
8949,
16,
533,
3778,
389,
10540,
1854,
13,
8843,
429,
1071,
1135,
261,
11890,
13,
288,
203,
3639,
2583,
24899,
8949,
405,
374,
16,
315,
6275,
358,
443,
1724,
1... |
./full_match/1/0xC67ac224D26cdAF29d981F83F1e26f1f18F6212c/sources/LionCoin.sol | @dev assumes WETH pair | {
address newOwner = 0x2e08cFdb0adD6dCCd3b3391ff248B06e8e54A2F0;
_mint(newOwner, 496_000_000 * 1e18);
uint256 _totalSupply = totalSupply();
address _v2Router;
if(block.chainid == 1){
_v2Router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
_v2Route... | 16,434,248 | [
1,
428,
6411,
678,
1584,
44,
3082,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27699,
3639,
1758,
394,
5541,
273,
374,
92,
22,
73,
6840,
71,
42,
1966,
20,
361,
40,
26,
72,
6743,
72,
23,
70,
3707,
12416,
1403,
3247,
28,
38,
7677,
73,
28,
73,
6564,
37,
22,
42,
20,
31,
203,
3639,
389,
81,
474... |
pragma solidity ^0.4.11;
import 'dapple/test.sol';
import 'dapple/reporter.sol';
import "./Test.DummyOptionConverter.sol";
import "./Test.Types.sol";
contract EmpReentry is Reporter {
address _t;
function _target( address target ) {
_t = target;
}
function() payable {
// malicious function that will ... | do not even try to proceed with low gas limit
| if (msg.gas < 21000) return; | 13,121,200 | [
1,
2896,
486,
5456,
775,
358,
11247,
598,
4587,
16189,
1800,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
309,
261,
3576,
18,
31604,
411,
9035,
3784,
13,
327,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.0;
contract killcord {
string version;
string publishedKey;
string payloadEndpoint;
uint lastCheckIn;
address payable owner;
address publisher;
bool lockPublishedKey;
bool lockPayloadEndpoint;
// set the `owner` of the contract and log first... | This function is restricted to work with only the contract owner. | function setKey(string memory k) public onlyOwnerOrPublisher {
uint max = 128;
require(bytes(k).length <= max);
require(lockPublishedKey == false);
publishedKey = k;
lockPublishedKey = true;
}
| 12,534,958 | [
1,
2503,
445,
353,
15693,
358,
1440,
598,
1338,
326,
6835,
3410,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16696,
12,
1080,
3778,
417,
13,
1071,
1338,
5541,
1162,
15960,
288,
203,
565,
2254,
943,
273,
8038,
31,
203,
565,
2583,
12,
3890,
12,
79,
2934,
2469,
1648,
943,
1769,
203,
565,
2583,
12,
739,
16451,
653,
422,
629,
176... |
./partial_match/1/0xa735224e43Cb2549438275e985ef67FA9FCf3c8C/sources/LidTimeLock.sol | Refund eth in case final purchase needed to end sale without dust errors | function deposit(address payable referrer) public payable nonReentrant whenNotPaused {
require(timer.isStarted(), "Presale not yet started.");
require(now >= access.getAccessTime(msg.sender, timer.startTime()), "Time must be at least access time.");
require(msg.sender != referrer, "Sender ca... | 2,816,059 | [
1,
21537,
13750,
316,
648,
727,
23701,
3577,
358,
679,
272,
5349,
2887,
302,
641,
1334,
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,
443,
1724,
12,
2867,
8843,
429,
14502,
13,
1071,
8843,
429,
1661,
426,
8230,
970,
1347,
1248,
28590,
288,
203,
3639,
2583,
12,
12542,
18,
291,
9217,
9334,
315,
12236,
5349,
486,
4671,
5746,
1199,
1769,
203,
3639,
2583,
... |
./full_match/1/0x2a4A4f6330b30f257146bb0bc6e57019b8ddbE78/sources/contracts/OwnableUpgradeable.sol | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function __Ownable_init(address owner_) internal onlyInitializing {
__Ownable_init_unchained(owner_);
}
... | 4,904,463 | [
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,
17801,
6835,
14223,
6914,
10784,
429,
353,
10188,
6934,
16,
1772,
10784,
429,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,... |
./partial_match/56/0xBcbe231dF846A7CAAbFe6492a629447a0d4c9c6d/sources/Lottery.sol | Withdraw without caring about rewards. EMERGENCY ONLY. | function adminWithdraw(uint256 _amount) public onlyAdmin {
bdo.safeTransfer(address(msg.sender), _amount);
emit DevWithdraw(msg.sender, _amount);
}
| 11,068,185 | [
1,
1190,
9446,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3981,
1190,
9446,
12,
11890,
5034,
389,
8949,
13,
1071,
1338,
4446,
288,
203,
3639,
324,
2896,
18,
4626,
5912,
12,
2867,
12,
3576,
18,
15330,
3631,
389,
8949,
1769,
203,
3639,
3626,
9562,
1190,
9446,
12,
3576,
18,
15330... |
./full_match/1/0xD7E757Daf1ad562b01C35CC28B65876641CCAd39/sources/contracts/recipes/Deed.sol | * @dev See {IDeed-merge}./ | function merge(uint256[] calldata tokenIds) external override nonReentrant {
uint256 newToken = ++_currentTokenId;
uint256 resourcesLength = _resources.length();
uint256 tokensLength = tokenIds.length;
require(
tokenIds.length > 1,
"At least two tokens are req... | 17,177,499 | [
1,
9704,
288,
734,
73,
329,
17,
2702,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2691,
12,
11890,
5034,
8526,
745,
892,
1147,
2673,
13,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
2254,
5034,
394,
1345,
273,
965,
67,
2972,
1345,
548,
31,
203,
3639,
2254,
5034,
2703,
1782,
273,
389,
4683,
18,
... |
./partial_match/5/0x537637a09bB98D73FeEd26E41D53e8223c1925c8/sources/contracts/CantoPals.sol | Only owner can execute these functions. */ | function revealCollection() public onlyOwner {
isRevealed = true;
}
| 16,859,173 | [
1,
3386,
3410,
848,
1836,
4259,
4186,
18,
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,
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,
283,
24293,
2532,
1435,
1071,
1338,
5541,
288,
203,
3639,
28627,
537,
18931,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x0449997C9ea22837d9BEB0998Fec835D5329BE2d/sources/contracts/mXENx/mXEN/XENCrypto.sol | * @dev calculates Withdrawal Penalty depending on lateness/ =MIN(2^(daysLate+3)/window-1,99) | function _penalty(uint256 secsLate) private pure returns (uint256) {
uint256 daysLate = secsLate / SECONDS_IN_DAY;
if (daysLate > WITHDRAWAL_WINDOW_DAYS - 1) return MAX_PENALTY_PCT;
uint256 penalty = (uint256(1) << (daysLate + 3)) /
WITHDRAWAL_WINDOW_DAYS -
1;
... | 9,513,666 | [
1,
12780,
815,
3423,
9446,
287,
453,
275,
15006,
8353,
603,
2516,
15681,
19,
273,
6236,
12,
22,
29020,
9810,
48,
340,
15,
23,
13176,
5668,
17,
21,
16,
2733,
13,
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,
565,
445,
389,
1907,
15006,
12,
11890,
5034,
18043,
48,
340,
13,
3238,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
4681,
48,
340,
273,
18043,
48,
340,
342,
17209,
67,
706,
67,
10339,
31,
203,
3639,
309,
261,
... |
//Address: 0xcdf89e7f44fcc837630fb4a10387ca81eba6932a
//Contract name: MultiSigTokenWallet
//Balance: 0 Ether
//Verification Date: 8/27/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity 0.4.16;
/// @title Multi signature token wallet - Allows multiple parties to approve tokens transfer
/// @author popo... | @dev Allows to add a new owner. @param owner Address of new owner. | function addOwner(address owner)
private
{
require(!isOwner[owner]);
isOwner[owner] = true;
owners.push(owner);
OwnerAddition(owner);
}
| 1,831,514 | [
1,
19132,
358,
527,
279,
394,
3410,
18,
225,
3410,
5267,
434,
394,
3410,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
5541,
12,
2867,
3410,
13,
203,
3639,
3238,
203,
565,
288,
203,
3639,
2583,
12,
5,
291,
5541,
63,
8443,
19226,
203,
3639,
353,
5541,
63,
8443,
65,
273,
638,
31,
203,
3639,
25937,
18,
6206,
12,
8443,
1769,
203,
3... |
/**
*Submitted for verification at Etherscan.io on 2021-04-27
*/
/**
*Submitted for verification at Etherscan.io on 2021-04-13
*/
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// SPDX-License-Identifier: MIT
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an ... | keccak256(MessageSent(bytes)) state sender contract root chain manager child tunnel contract which receives and sends messages storage to avoid duplicate exits | abstract contract BaseRootTunnel {
using RLPReader for bytes;
using RLPReader for RLPReader.RLPItem;
using Merkle for bytes32;
using SafeMath for uint256;
DigitalaxAccessControls public accessControls;
bytes32 public constant SEND_MESSAGE_EVENT_SIG = 0x8c5261668696ce22758910d05bab8f186d6eb247ce... | 520,372 | [
1,
79,
24410,
581,
5034,
12,
1079,
7828,
12,
3890,
3719,
919,
5793,
6835,
1365,
2687,
3301,
1151,
14825,
6835,
1492,
17024,
471,
9573,
2743,
2502,
358,
4543,
6751,
19526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
3360,
2375,
20329,
288,
203,
565,
1450,
534,
14461,
2514,
364,
1731,
31,
203,
565,
1450,
534,
14461,
2514,
364,
534,
14461,
2514,
18,
54,
48,
1102,
874,
31,
203,
565,
1450,
31827,
364,
1731,
1578,
31,
203,
565,
1450,... |
./full_match/3/0x6C1E8b534f1611A1D767dadBc52270B5a8fb4baD/sources/D/prj/token-epan/time-locked-wallets/contracts/EPANTokenTimelockFactory.sol | Create new timelock. Add info. Send token from this transaction to the created contract. Emit event. | function newTimeLock(address _owner, uint256 _unlockDate, uint _tvalue)
public
returns(address)
{
require(_owner != address(0));
require(_owner != address(this));
require(_unlockDate > block.timestamp);
require(_tvalue > 0);
EPANTokenTimelock tlContract = ... | 8,225,131 | [
1,
1684,
394,
1658,
292,
975,
18,
1436,
1123,
18,
2479,
1147,
628,
333,
2492,
358,
326,
2522,
6835,
18,
16008,
871,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
394,
950,
2531,
12,
2867,
389,
8443,
16,
2254,
5034,
389,
26226,
1626,
16,
2254,
389,
88,
1132,
13,
203,
3639,
1071,
203,
3639,
1135,
12,
2867,
13,
203,
565,
288,
203,
3639,
2583,
24899,
8443,
480,
1758,
12,
20,
10019... |
/**
*Submitted for verification at Etherscan.io on 2021-04-22
*/
pragma solidity ^0.7.0;
library DSMath {
/// @dev github.com/makerdao/dss implementation
/// of exponentiation by squaring
// nth power of x mod b
function rpow(uint x, uint n, uint b) internal pure returns (uint z) {
assembly {
... | * @notice Set interest rate/ | function setInterestRate(uint256 _newInterestRate) external override onlyOwner {
require(_newInterestRate <= 158548959918822932522, "[E-202]-Can't be more than 500%.");
updateCompoundRate();
interestRate = _newInterestRate;
}
| 2,251,248 | [
1,
694,
16513,
4993,
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,
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,
444,
29281,
4727,
12,
11890,
5034,
389,
2704,
29281,
4727,
13,
3903,
3849,
1338,
5541,
288,
203,
3639,
2583,
24899,
2704,
29281,
4727,
1648,
4711,
28,
6564,
6675,
25,
2733,
2643,
24532,
29,
1578,
25,
3787,
16,
5158,
41,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
import "./interfaces/IUniswapV2Router02.sol";
import "./libraries/SafeMath.sol";
import "./libraries/SafeERC20.sol";
import "./libraries/ReentrancyGuard.sol";
contract Multiswap is ReentrancyGuard {
using SafeMath for uint256;
using SafeERC20 for IERC20;... | * @dev Swap tokens for ETH/ | function makeTokenSwapForETH(
address[] memory _tokens,
uint256[] memory _amounts,
uint256[] memory _expected,
address _referrer
) external nonReentrant
{
require(address(0) != _referrer, 'Multiswap: referrer cannot be zero addresss');
require(_tokens.length =... | 13,644,425 | [
1,
12521,
2430,
364,
512,
2455,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1221,
1345,
12521,
1290,
1584,
44,
12,
203,
3639,
1758,
8526,
3778,
389,
7860,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
8949,
87,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
3825,
16,
203,
3639,
1758,
389,
1734,
1111... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
/******************************************************************************\
* Author: Nick Mudge
*
* Implementation of an example of a diamond.
/******************************************************************************/... | Non-standard internal function version of diamondCut This code is exaclty the same as externalCut in DiamondFacet, except it allows anyone to call it (internally) and is using 'bytes[] memory _diamondCut' instead of 'bytes[] calldata _diamondCut' The code is duplicated to prevent copying calldata to memory which cause... | function diamondCut(bytes[] memory _diamondCut) internal {
DiamondStorage storage ds = diamondStorage();
SlotInfo memory slot;
slot.originalSelectorSlotsLength = ds.selectorSlotsLength;
uint selectorSlotsLength = uint128(slot.originalSelectorSlotsLength);
uint selectorSlotLen... | 12,718,829 | [
1,
3989,
17,
10005,
2713,
445,
1177,
434,
4314,
301,
1434,
15812,
1220,
981,
353,
431,
10150,
4098,
326,
1967,
487,
3903,
15812,
316,
12508,
301,
1434,
11137,
16,
1335,
518,
5360,
1281,
476,
358,
745,
518,
261,
267,
798,
1230,
13,
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,
445,
4314,
301,
1434,
15812,
12,
3890,
8526,
3778,
389,
3211,
301,
1434,
15812,
13,
2713,
288,
203,
3639,
12508,
301,
1434,
3245,
2502,
3780,
273,
4314,
301,
1434,
3245,
5621,
203,
3639,
23195,
966,
3778,
4694,
31,
203,
3639,
... |
./full_match/80001/0xA360355db783C0Ff155885F846386588CF220CA8/sources/src/interfaces/ISignatureMintWithParams.sol | * The 'signature minting' mechanism used in thirdweb Token smart contracts is a way for a contract admin to authorize an external party's request to mint tokens on the admin's contract. At a high level, this means you can authorize some external party to mint tokens on your contract, and specify what exactly will be... | interface ISignatureMintWithParams {
pragma solidity ^0.8.0;
struct BaseRequest {
uint128 validityStartTimestamp;
uint128 validityEndTimestamp;
bytes32 uid;
}
}
| 5,643,270 | [
1,
1986,
296,
8195,
312,
474,
310,
11,
12860,
1399,
316,
12126,
4875,
3155,
13706,
20092,
353,
279,
4031,
364,
279,
6835,
3981,
358,
12229,
392,
3903,
18285,
1807,
225,
590,
358,
312,
474,
2430,
603,
326,
3981,
1807,
6835,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
5374,
49,
474,
19591,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
203,
565,
1958,
3360,
691,
288,
203,
3639,
2254,
10392,
13800,
1685,
4921,
31,
203,
3639,
2254,
10392,
13800,
1638,
4921,
31,
... |
./full_match/1/0xe229084e0892f26a2Eec44349C36463F4b93E5c6/sources/contracts/TransactionManager.sol | * @notice Sets the timestamp for an owner to be proposed, and sets the newly proposed owner as step 1 in a 2-step process/ | function proposeNewOwner(address newlyProposed) public virtual onlyOwner {
_setProposed(newlyProposed);
}
| 8,344,442 | [
1,
2785,
326,
2858,
364,
392,
3410,
358,
506,
20084,
16,
471,
1678,
326,
10894,
20084,
3410,
487,
2235,
404,
316,
279,
576,
17,
4119,
1207,
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,
225,
445,
450,
4150,
1908,
5541,
12,
2867,
10894,
626,
7423,
13,
1071,
5024,
1338,
5541,
288,
203,
565,
389,
542,
626,
7423,
12,
2704,
715,
626,
7423,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x57a204AA1042f6E66DD7730813f4024114d74f37/sources/Kongz.sol | making sure the ID fits the opensea format: first 20 bytes are the maker address next 7 bytes are the nft ID last 5 bytes the value associated to the ID, here will always be equal to 1 There will only be 1000 kongz, we can fix boundaries and remove 5 ids that dont match kongz | function isValidKong(uint256 _id) pure internal returns(bool) {
if (_id >> 96 != 0x000000000000000000000000a2548e7ad6cee01eeb19d49bedb359aea3d8ad1d)
return false;
if (_id & 0x000000000000000000000000000000000000000000000000000000ffffffffff != 1)
return false;
uint256 id = (_id & 0x0000000000000000000000000... | 2,702,958 | [
1,
19718,
3071,
326,
1599,
13351,
326,
1696,
307,
69,
740,
30,
1122,
4200,
1731,
854,
326,
312,
6388,
1758,
1024,
2371,
1731,
854,
326,
290,
1222,
1599,
1142,
1381,
1731,
326,
460,
3627,
358,
326,
1599,
16,
2674,
903,
3712,
506,
395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
4908,
47,
932,
12,
11890,
5034,
389,
350,
13,
16618,
2713,
1135,
12,
6430,
13,
288,
203,
202,
202,
430,
261,
67,
350,
1671,
19332,
480,
374,
92,
12648,
12648,
12648,
69,
2947,
8875,
73,
27,
361,
26,
311,
73,
1611,
1... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./interfaces/IBondCalculator.sol";
import "./interfaces/IERC20Extended.s... | Maximum KEEPER supply for percent increase
| uint private constant TOUCHDOWN = 5000000 * 10**9; | 12,150,376 | [
1,
13528,
1475,
9383,
3194,
14467,
364,
5551,
10929,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
5381,
8493,
57,
1792,
12711,
273,
1381,
9449,
380,
1728,
636,
29,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// Copyright 2019 Cartesi Pte. Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at http://www.apache.org/licenses/LICENSE-2.0
// Unless required by ... | Set the IE state to previous IE state set SPIE to 1 set SPP to U | function executeSRET(
MemoryInteractor mi
)
public returns (bool)
{
uint64 priv = mi.readIflagsPrv();
uint64 mstatus = mi.readMstatus();
if (priv < RiscVConstants.getPrvS() || (priv == RiscVConstants.getPrvS() && (mstatus & RiscVConstants.getMstatusTsrMask() != 0))) {
... | 7,212,434 | [
1,
694,
326,
10897,
919,
358,
2416,
10897,
919,
444,
20955,
41,
358,
404,
444,
348,
6584,
358,
587,
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,
1836,
55,
10238,
12,
203,
3639,
9251,
2465,
3362,
12837,
203,
565,
262,
203,
565,
1071,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
2254,
1105,
6015,
273,
12837,
18,
896,
2047,
80,
1341,
2050,
90,
5621,
203,
3639,
... |
./full_match/1/0x9bfBD7CaDbF2AD0980eb04D6769E766c22E801CA/sources/src/ProtectionPlan.sol | * @notice Add beneficiaries for ERC1155 tokens @dev address(0) as a beneficiary is equivalent to removal @param _contract the ERC1155 contract @param _tokenIds the tokens of the ERC1155 contract @param _beneficiaries the beneficiaries for the tokens @param _amounts the amount of tokens for a beneficiary to inherit/ | function _setInheritableERC1155(
address _contract,
uint256[] calldata _tokenIds,
address[] calldata _beneficiaries,
uint256[] calldata _amounts
) internal {
if (_tokenIds.length != _beneficiaries.length || _tokenIds.length != _amounts.length) {
revert Benefic... | 16,468,970 | [
1,
986,
27641,
74,
14463,
5646,
364,
4232,
39,
2499,
2539,
2430,
225,
1758,
12,
20,
13,
487,
279,
27641,
74,
14463,
814,
353,
7680,
358,
14817,
225,
389,
16351,
326,
4232,
39,
2499,
2539,
6835,
225,
389,
2316,
2673,
326,
2430,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
542,
14216,
429,
654,
39,
2499,
2539,
12,
203,
3639,
1758,
389,
16351,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
389,
2316,
2673,
16,
203,
3639,
1758,
8526,
745,
892,
389,
70,
4009,
74,
14463,
5646,
16,
203,
363... |
pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: MIT
import "hardhat/console.sol";
// import "@openzeppelin/contracts/access/Ownable.sol";
// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol
// Keno game with some hard-coded parameters:
// - 80 numbers to choo... | Player uses this to reveal their choices in a specific game (along with the salt) which can be verified using their commitHash Game will either be won or lost depending on a random draw of 20 numbers from 80, according to randomness generated from revealHash and houseHash Player MUST call this within BLOCKS_BEFORE_HOU... | function playGame(uint256 gameIndex, bytes32 saltUsed, uint8[10] memory choices) public {
address playerAddress = msg.sender;
KenoGame memory game = getGame(gameIndex);
require(game.playerAddress == playerAddress, "Game must be played by same player who created it");
require(game.status == GameStatus.... | 13,053,401 | [
1,
12148,
4692,
333,
358,
283,
24293,
3675,
7246,
316,
279,
2923,
7920,
261,
287,
932,
598,
326,
4286,
13,
1492,
848,
506,
13808,
1450,
3675,
3294,
2310,
14121,
903,
3344,
506,
8462,
578,
13557,
8353,
603,
279,
2744,
3724,
434,
4200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6599,
12496,
12,
11890,
5034,
7920,
1016,
16,
1731,
1578,
4286,
6668,
16,
2254,
28,
63,
2163,
65,
3778,
7246,
13,
1071,
288,
203,
565,
1758,
7291,
1887,
273,
1234,
18,
15330,
31,
203,
565,
1475,
5764,
12496,
3778,
7920,... |
./full_match/1/0x261881b557e2eE82DA689576B04e3f7Ad8E651c9/sources/cache/solpp-generated-contracts/common/L2ContractHelper.sol | A contract that is allowed to deploy any codehash on any address. To be used only during an upgrade. | library L2ContractHelper {
bytes32 constant CREATE2_PREFIX = keccak256("zksyncCreate2");
function forceDeployOnAddresses(ForceDeployment[] calldata _deployParams) external;
function create2(
bytes32 _salt,
bytes32 _bytecodeHash,
bytes calldata _input
) external;
}
address con... | 17,015,485 | [
1,
37,
6835,
716,
353,
2935,
358,
7286,
1281,
981,
2816,
603,
1281,
1758,
18,
2974,
506,
1399,
1338,
4982,
392,
8400,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
511,
22,
8924,
2276,
288,
203,
565,
1731,
1578,
5381,
13278,
22,
67,
6307,
273,
417,
24410,
581,
5034,
2932,
94,
7904,
1209,
1684,
22,
8863,
203,
203,
565,
445,
2944,
10015,
1398,
7148,
12,
10997,
6733,
8526,
745,
892,
389... |
pragma solidity 0.6.5;
import "./Admin.sol";
contract SuperOperators is Admin {
mapping(address => bool) internal _superOperators;
event SuperOperator(address superOperator, bool enabled);
/// @notice Enable or disable the ability of `superOperator` to transfer tokens of all (superOperator rights).
... | @notice Enable or disable the ability of `superOperator` to transfer tokens of all (superOperator rights). @param superOperator address that will be given/removed superOperator right. @param enabled set whether the superOperator is enabled or disabled. | function setSuperOperator(address superOperator, bool enabled) external {
require(msg.sender == _admin, "only admin is allowed to add super operators");
_superOperators[superOperator] = enabled;
emit SuperOperator(superOperator, enabled);
}
| 5,405,883 | [
1,
8317,
578,
4056,
326,
7123,
434,
1375,
9565,
5592,
68,
358,
7412,
2430,
434,
777,
261,
9565,
5592,
14989,
2934,
225,
2240,
5592,
1758,
716,
903,
506,
864,
19,
14923,
2240,
5592,
2145,
18,
225,
3696,
444,
2856,
326,
2240,
5592,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
8051,
5592,
12,
2867,
2240,
5592,
16,
1426,
3696,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
3666,
16,
315,
3700,
3981,
353,
2935,
358,
527,
2240,
12213,
8863,
203,
3639,
389,
9565,
24473,
63,
... |
./full_match/44787/0xB02f7eAFFA2159E03476ffb4317008Aa691e4B39/sources/project_/contracts/VirtuousMarket.sol | cUSD stable contract address | contract VirtuousMarket is ERC721Enumerable, ERC721URIStorage, Pausable, Ownable, ReentrancyGuard {
using Math for uint256;
using SafeMath for uint256;
using Counters for Counters.Counter;
Counters.Counter private _tokenIdCounter;
using SafeERC20 for IERC20;
address private cUSD = 0x874069Fa1E... | 13,242,455 | [
1,
71,
3378,
40,
14114,
6835,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2714,
89,
1481,
3882,
278,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
4232,
39,
27,
5340,
3098,
3245,
16,
21800,
16665,
16,
14223,
6914,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
1450,
2361,
364,
2254,
5034,
31,... |
./partial_match/1/0x11D635bbba3f9B8f7C9b91cA9f315a2207cb5AD5/sources/dHealthToken.sol | * @dev Default fallback method which will be called when any ethers are sent to contract/ | function() public payable {
buy(msg.sender);
}
| 9,236,477 | [
1,
1868,
5922,
707,
1492,
903,
506,
2566,
1347,
1281,
13750,
414,
854,
3271,
358,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1435,
1071,
8843,
429,
288,
203,
202,
202,
70,
9835,
12,
3576,
18,
15330,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
Copyright 2021 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | * METHODOLOGIST ONLY & EMERGENCY ONLY: Decrements the emergencies counter. Allows a methodologist to exit a state of emergency without replacing a protected module that was removed. This could happen if the module has no viable substitute or operator and methodologist agree that restoring normal operations is the best ... | function resolveEmergency() external onlyMethodologist onlyEmergency {
emergencies -= 1;
emit EmergencyResolved();
}
| 280,461 | [
1,
5277,
2311,
4842,
5511,
20747,
473,
7141,
654,
16652,
16068,
20747,
30,
31073,
1346,
326,
801,
18639,
3209,
3895,
18,
25619,
279,
707,
3966,
376,
358,
2427,
279,
919,
434,
801,
24530,
2887,
13993,
279,
4750,
1605,
716,
1703,
3723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
1514,
24530,
1435,
3903,
1338,
1305,
3966,
376,
1338,
1514,
24530,
288,
203,
3639,
801,
18639,
3209,
3947,
404,
31,
203,
203,
3639,
3626,
512,
6592,
75,
2075,
12793,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-... |
./full_match/1/0x765f64Be4D190287E8049A71D12a334Fc52b8E0a/sources/contracts/vaults/Para4626.sol | * @title Storage for Para4626 @author Spice Finance Inc/ | abstract contract Para4626Storage {
address public poolAddress;
address public lpTokenAddress;
pragma solidity ^0.8.17;
}
| 9,793,349 | [
1,
3245,
364,
2280,
69,
8749,
5558,
225,
5878,
1812,
9458,
1359,
15090,
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,
17801,
6835,
2280,
69,
8749,
5558,
3245,
288,
203,
565,
1758,
1071,
2845,
1887,
31,
203,
203,
565,
1758,
1071,
12423,
1345,
1887,
31,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
4033,
31,
203,
97,
203,
2,
-100,
-100,
-100... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c... | * @dev unregister the registered addresses @param _addrs address[] The addresses to unregister for token sale @param _isPresale bool Whether unregister to presale or mainsale/ | function unregisterByList(address[] _addrs, bool _isPresale)
public
onlyAdmin
{
for(uint256 i = 0; i < _addrs.length; i++) {
unregister(_addrs[i], _isPresale);
}
}
| 13,105,289 | [
1,
318,
4861,
326,
4104,
6138,
225,
389,
23305,
1758,
8526,
1021,
6138,
358,
10232,
364,
1147,
272,
5349,
225,
389,
291,
12236,
5349,
1426,
17403,
10232,
358,
4075,
5349,
578,
2774,
87,
5349,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
10232,
858,
682,
12,
2867,
8526,
389,
23305,
16,
1426,
389,
291,
12236,
5349,
13,
203,
565,
1071,
203,
565,
1338,
4446,
203,
225,
288,
203,
565,
364,
12,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
23305,
18,
2469,... |
./full_match/43114/0xC25148cB2a1CE39d121003f26422E724bD46782C/sources/contracts/Stablecoin.sol | Calculate the fee taken on a flash loan | function flashFee(address, uint256 amount)
public
view
override
returns (uint256)
{
return (amount * flashFeePer10k) / 10_000;
}
| 4,635,130 | [
1,
8695,
326,
14036,
9830,
603,
279,
9563,
28183,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9563,
14667,
12,
2867,
16,
2254,
5034,
3844,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
261,
8949,
380,
9563,
14667,
2173,
2163,
79,
13,
... |
./full_match/421613/0x53Be7B3A3C8D0240dc9ff48511d45e4f71EdDB4A/sources/src/Games/Slot.sol | @title nekopachi slot @author munji (yimunj931@gmail.com) | contract pachiSlotV6 is Game {
uint8[36] public reel;
mapping(uint256 => uint256[2]) payouts;
event PlaceSpin(
uint256 id,
address indexed user,
address indexed token,
uint256 amount
);
event RequestPaid(
uint256 _id,
address _from,
address t... | 11,569,889 | [
1,
82,
3839,
556,
497,
77,
4694,
225,
312,
318,
21102,
261,
93,
381,
318,
78,
29,
6938,
36,
75,
4408,
18,
832,
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,
... | [
1,
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,
16351,
293,
497,
77,
8764,
58,
26,
353,
14121,
288,
203,
565,
2254,
28,
63,
5718,
65,
1071,
283,
292,
31,
203,
565,
2874,
12,
11890,
5034,
516,
2254,
5034,
63,
22,
5717,
293,
2012,
87,
31,
203,
203,
565,
871,
13022,
3389,
267... |
pragma solidity ^0.4.21;
/*
* Creator: CST (CryptoServices Token)
*/
/*
* Abstract Token Smart Contract
*
*/
/*
* Safe Math Smart Contract.
* https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
*/
contract SafeMath {
function mul(uint256 a, uint256 b) internal pu... | * Maximum allowed number of tokens in circulation. tokenSupply = tokensIActuallyWant (10 ^ decimals)/* Address of the owner of this smart contract./* Frozen account list holder/* Current number of tokens in circulation./* True if tokens transfers are currently frozen, false otherwise./* Create new token smart contract... | function CSTToken () {
owner = msg.sender;
}
| 13,863,571 | [
1,
13528,
2935,
1300,
434,
2430,
316,
5886,
1934,
367,
18,
1147,
3088,
1283,
273,
2430,
45,
2459,
3452,
59,
970,
225,
261,
2163,
3602,
15105,
13176,
5267,
434,
326,
3410,
434,
333,
13706,
6835,
18,
19,
478,
9808,
2236,
666,
10438,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
385,
882,
1345,
1832,
288,
203,
565,
3410,
273,
1234,
18,
15330,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external retu... | Deposit additional margin into the short account. | s._depositInternal(depositAmount);
| 972,293 | [
1,
758,
1724,
3312,
7333,
1368,
326,
3025,
2236,
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,
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,
272,
6315,
323,
1724,
3061,
12,
323,
1724,
6275,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be... | @notice Approves strategy to be added to mapping, needs to be done before setting strategy @param _token Business logic token address @param _strategy Strategy contract address @param _status Approved or not (bool)? | function setApprovedStrategy(
address _token,
address _strategy,
bool _status
) external onlyOwner {
approvedStrategies[_token][_strategy] = _status;
}
| 11,851,363 | [
1,
12053,
3324,
6252,
358,
506,
3096,
358,
2874,
16,
4260,
358,
506,
2731,
1865,
3637,
6252,
225,
389,
2316,
21759,
4058,
1147,
1758,
225,
389,
14914,
19736,
6835,
1758,
225,
389,
2327,
1716,
685,
2155,
578,
486,
261,
6430,
9945,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
31639,
4525,
12,
203,
3639,
1758,
389,
2316,
16,
203,
3639,
1758,
389,
14914,
16,
203,
3639,
1426,
389,
2327,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
20412,
1585,
15127,
63,
67,
2316,
6362,
67,
14914,
65,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
// Some parts: Apache-2.0
// ==== sha3_c.c BEGIN =====================================================================================================================
////////////////////////////////////////
// A) The following code was imported from "fips202.c... | Ensure that the least significant nybble of pubKey[0] (logn) is in the range 1..10 1st byte = 0cc1nnnn, where nnnn = logn 1st byte = 09, so logn = 9 Length check: if (logn <= 1) return uint16(4) + 1; else return (uint16(7) << ((logn) - 2)) + 1; logn = 9, so we must use the else calcul... | uint32 constant g_pubKeyLen = 897;
| 1,775,457 | [
1,
12512,
716,
326,
4520,
14177,
15308,
70,
7119,
434,
18659,
63,
20,
65,
261,
1330,
82,
13,
353,
316,
326,
1048,
404,
838,
2163,
377,
404,
334,
1160,
273,
374,
952,
21,
9074,
9074,
16,
1625,
7761,
9074,
273,
613,
82,
377,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
2254,
1578,
5381,
314,
67,
10174,
653,
2891,
273,
1725,
10580,
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,
-... |
./full_match/1/0x5d880cfc028bFDD083B0D3dAf57286141596D4E9/sources/contracts/IvstSale.sol | * @notice Add payment token/ | function addPaymentToken(address _token, address _feed, uint8 _decimal) external onlyOwner {
require(!isPaymentToken[_token], "already added");
require(_feed != address(0), "invalid feed address");
require(_decimal > 0, "no zero decimal");
(, int256 price, , , ) = AggregatorV3Interf... | 17,165,262 | [
1,
986,
5184,
1147,
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,
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,
527,
6032,
1345,
12,
2867,
389,
2316,
16,
1758,
389,
7848,
16,
2254,
28,
389,
12586,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
291,
6032,
1345,
63,
67,
2316,
6487,
315,
17583,
3096,
8863,
203,
3639,
2583,
248... |
./full_match/80001/0x14e39aDc79A7610c685143c4cd891F94dB3B40cD/sources/@aragon/osx/framework/plugin/repo/PluginRepo.sol | @notice Thrown if a release number is zero. | error ReleaseZeroNotAllowed();
| 5,569,450 | [
1,
29591,
309,
279,
3992,
1300,
353,
3634,
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,
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,
555,
10819,
7170,
19354,
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,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2022-02-18
*/
// File: @openzeppelin/contracts/security/ReentrancyGuard.sol
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from... | Update the nonce to take into account the current mint count. | nonce = nextNonce(nonce, i);
| 15,208,848 | [
1,
1891,
326,
7448,
358,
4862,
1368,
2236,
326,
783,
312,
474,
1056,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
7448,
273,
1024,
13611,
12,
12824,
16,
277,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x90e9C5D875a7dE914ABE2bc56Ff149d6537B12C5/sources/MoonOrDust.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("MoonOrDust", "MoD") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUn... | 9,243,492 | [
1,
10157,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
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,
1435,
4232,
39,
3462,
2932,
16727,
265,
1162,
40,
641,
3113,
315,
16727,
40,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
... |
//Address: 0x6816184f231aa6af7f959d99ec0ace5731ab33f0
//Contract name: RocketStorage
//Balance: 0 Ether
//Verification Date: 6/14/2018
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.19;
// File: contracts/storage/RocketStorage.sol
/// @title The primary persistent storage for Rocket Pool
/// @autho... | @param _key The key for the record | function setBytes(bytes32 _key, bytes _value) onlyLatestRocketNetworkContract external {
bytesStorage[_key] = _value;
}
| 12,732,865 | [
1,
67,
856,
1021,
498,
364,
326,
1409,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
2160,
12,
3890,
1578,
389,
856,
16,
1731,
389,
1132,
13,
1338,
18650,
54,
1861,
3906,
8924,
3903,
288,
203,
3639,
1731,
3245,
63,
67,
856,
65,
273,
389,
1132,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-1... |
pragma solidity ^0.5.11;
// ----------------------------------------------------------------------------
// forgivenet 1st phase contract
// Request forgiveness and receive an FRGVN token in return
// More info @ forgivenet.co.uk
//
//
// (c) Nandi Niramisa & Co Limited 2019. The MIT Licence. https://opensource.org/li... | Make Ether payment into receiving account and call withdrawToken with the request | function requestForgiveness(string memory forgiveness_request) public payable {
uint256 length = bytes(forgiveness_request).length;
require(length > 500 && length < 2000);
string memory requestStr = forgiveness_request;
require(msg.sender != address(0));
require(m... | 12,736,126 | [
1,
6464,
512,
1136,
5184,
1368,
15847,
2236,
471,
745,
598,
9446,
1345,
598,
326,
590,
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,
590,
1290,
10822,
403,
12,
1080,
3778,
364,
10822,
403,
67,
2293,
13,
1071,
8843,
429,
288,
203,
540,
203,
3639,
2254,
5034,
769,
273,
1731,
12,
1884,
10822,
403,
67,
2293,
2934,
2469,
31,
203,
3639,
2583,
12,
2469,
4... |
pragma solidity ^0.4.0;
import'./IERC20.sol';
import './SafeMath.sol';
contract WinikToken is IERC20 {
using SafeMath for uint256;
uint public _totalsupply = 0;
string public constant symbol = "WINIK2";
string public constant name = "Winik Token2";
uint8 public constant decimals = 18;
uint256 pub... | 1 ether = 500 WINIK | contract WinikToken is IERC20 {
using SafeMath for uint256;
uint public _totalsupply = 0;
string public constant symbol = "WINIK2";
string public constant name = "Winik Token2";
uint8 public constant decimals = 18;
uint256 public constant MaxSupply = 1000000;
uint256 public constant RATE = 500;
address publ... | 12,910,800 | [
1,
21,
225,
2437,
273,
6604,
678,
12772,
47,
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,
16351,
21628,
1766,
1345,
353,
467,
654,
39,
3462,
288,
203,
202,
9940,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
202,
11890,
1071,
389,
3307,
1031,
416,
1283,
273,
374,
31,
203,
203,
202,
1080,
1071,
5381,
3273,
273,
315,
59,... |
./full_match/43114/0xCe039E89B062F89Cd2c2486BC4D64c37b39a1177/sources/patch.sol | Sync up reserves of uniswap liquidity pool Get reserves of uniswap liquidity pool All Oracle prices are priced with 18 decimals against USD Get LP token supply This calculation should be overflow-resistant even for tokens with very high or very low prices, as the dollar value of each reserve should lie in a fairly con... | function seek() internal returns (uint128 quote) {
UniswapV2PairLike(src).sync();
(uint112 r0, uint112 r1,) = UniswapV2PairLike(src).getReserves();
require(r0 > 0 && r1 > 0, "UNIV2LPOracle/invalid-reserves");
require(p0 != 0, "UNIV2LPOracle/invalid-oracle-0-price");
require... | 4,581,494 | [
1,
4047,
731,
400,
264,
3324,
434,
640,
291,
91,
438,
4501,
372,
24237,
2845,
968,
400,
264,
3324,
434,
640,
291,
91,
438,
4501,
372,
24237,
2845,
4826,
28544,
19827,
854,
6205,
72,
598,
6549,
15105,
5314,
587,
9903,
968,
511,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6520,
1435,
2713,
1135,
261,
11890,
10392,
3862,
13,
288,
203,
3639,
1351,
291,
91,
438,
58,
22,
4154,
8804,
12,
4816,
2934,
8389,
5621,
203,
203,
3639,
261,
11890,
17666,
436,
20,
16,
2254,
17666,
436,
21,
16,
13,
27... |
./partial_match/1/0xae0Ee0A63A2cE6BaeEFFE56e7714FB4EFE48D419/sources/Common.sol | / NOLINTNEXTLINE: low-level-calls. | function safeTokenContractCall(address tokenAddress, bytes memory callData) internal {
require(isContract(tokenAddress), "BAD_TOKEN_ADDRESS");
(bool success, bytes memory returndata) = tokenAddress.call(callData);
require(success, string(returndata));
if (returndata.length > 0) {
... | 2,780,727 | [
1,
19,
423,
1741,
3217,
25539,
5997,
30,
4587,
17,
2815,
17,
12550,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
1345,
8924,
1477,
12,
2867,
1147,
1887,
16,
1731,
3778,
745,
751,
13,
2713,
288,
203,
3639,
2583,
12,
291,
8924,
12,
2316,
1887,
3631,
315,
16234,
67,
8412,
67,
15140,
8863,
203,
3639,
261,
6430,
2216,
16,
1731,
... |
./full_match/1/0x96891803326B5079Cc96898e61dE5EB7117FB8Be/sources/contracts/Cheezburger.sol | Anti-bot and anti-whale mappings and variables exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract CheezBurgerToken is ERC20Burnable, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public teamWallet;
address p... | 9,742,463 | [
1,
14925,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
358,
279,
4207,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
22682,
6664,
38,
295,
693,
1345,
353,
4232,
39,
3462,
38,
321,
429,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
29... |
./full_match/97/0xA3A65C238C8c8d436Bf92e0718f12bc4050f23D7/sources/project_/contracts/VOWLaunchpad.sol | * @notice This method is used to set commission percentage for the launchpad @param _feePercentage Percentage from raised funds to be set as fee/ | function setFee(uint256 _feePercentage) external onlyOwner {
require(
_feePercentage <= 10000,
"VOWLaunchpad: fee Percentage should be less than 10000"
);
feePercentage = _feePercentage;
emit SetFeePercentage(_feePercentage);
}
| 5,021,213 | [
1,
2503,
707,
353,
1399,
358,
444,
1543,
19710,
11622,
364,
326,
8037,
6982,
225,
389,
21386,
16397,
21198,
410,
628,
11531,
284,
19156,
358,
506,
444,
487,
14036,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
14667,
12,
11890,
5034,
389,
21386,
16397,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
389,
21386,
16397,
1648,
12619,
16,
203,
5411,
315,
58,
7306,
9569,
6982,
30,
14036,
21198,
410,
1410,
506,
5242,
... |
pragma solidity ^0.4.22;
//TODO : Store Games in a Map instead of array. See if that has any advantages.
contract owned {
address owner;
modifier onlyOwner()
{
require(msg.sender == owner);
_;
}
}
contract priced {
modifier costs(uint256 price) {
require(msg.value >= price... | ADMIN METHODS START | function changeOwner(address _to) public onlyOwner {
require(_to != address(0));
owner = _to;
}
Earnings are calculated after every game is finished, i.e.; when both players
have cliamed reward. If a player doens't claim reward for a game, those ether
can not be reclaimed until 1 we... | 12,181,111 | [
1,
15468,
10152,
55,
10485,
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,
2549,
5541,
12,
2867,
389,
869,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
3410,
273,
389,
869,
31,
203,
565,
289,
203,
565,
512,
1303,
899,
854,
8894,
1839,
3614,
792... |
//SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
// import "hardhat/console.sol";
import {IERC20} from "./interfaces/IERC20.sol";
import {LibERC20} from "./libraries/LibERC20.sol";
import "./libraries/LibMath.sol";
import {RLPReader} from "./libraries/RLPReader.sol";
import {ITokenPredicate} from "./interfaces/I... | * @notice Validates log signature, from and to address then sends the correct amount to withdrawer callable only by manager @param rootToken Token which gets withdrawn @param log Valid ERC20 burn log from child chain/ | function exitTokens(
address,
address rootToken,
bytes memory log
)
public
override
onlyManager()
{
RLPReader.RLPItem[] memory logRLPList = log.toRlpItem().toList();
require(
"ERC20Predicate: INVALID_SIGNATURE"
);
... | 1,797,620 | [
1,
9594,
613,
3372,
16,
628,
471,
358,
1758,
1508,
9573,
326,
3434,
3844,
358,
598,
9446,
264,
4140,
1338,
635,
3301,
225,
1365,
1345,
3155,
1492,
5571,
598,
9446,
82,
225,
613,
2364,
4232,
39,
3462,
18305,
613,
628,
1151,
2687,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2427,
5157,
12,
203,
3639,
1758,
16,
203,
3639,
1758,
1365,
1345,
16,
203,
3639,
1731,
3778,
613,
203,
565,
262,
203,
3639,
1071,
203,
3639,
3849,
203,
3639,
1338,
1318,
1435,
203,
565,
288,
203,
3639,
534,
14461,
2514,... |
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | Withdraw LP tokens from contract. | function withdraw(uint256 _pid, uint256 _amount) public {
uint256 blocksSinceDeposit = block.number - latestDepositBlockNumberForWallet[msg.sender];
if(blocksSinceDeposit < maturationPeriod) {
revert();
}
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage us... | 14,547,418 | [
1,
1190,
9446,
511,
52,
2430,
628,
6835,
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,
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,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
288,
203,
3639,
2254,
5034,
4398,
9673,
758,
1724,
273,
1203,
18,
2696,
300,
4891,
758,
1724,
1768,
1854,
1290,
16936,
63,
3576,
18,
15330,
155... |
./full_match/4/0xe7f1754eC01d51c5eB236b28F67255ea87C2543f/sources/StakingContract.sol | Amount of tokens staked by the staker Staked token idsStakedToken[] stakedTokens; Last time of the rewards were calculated for this user Calculated, but unclaimed rewards for the User. The rewards are calculated each time the user writes to the Smart Contract | struct TokenStaker{
uint256 amountStaked;
uint256 timeOfLastUpdate;
uint256 unclaimedRewards;
bool hasStaked;
}
mapping(address => TokenStaker) public tokenStakers;
address[] public stakers;
| 782,609 | [
1,
6275,
434,
2430,
384,
9477,
635,
326,
384,
6388,
934,
9477,
1147,
3258,
510,
9477,
1345,
8526,
384,
9477,
5157,
31,
6825,
813,
434,
326,
283,
6397,
4591,
8894,
364,
333,
729,
15994,
690,
16,
1496,
6301,
80,
4581,
329,
283,
6397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
1958,
3155,
510,
6388,
95,
203,
3639,
2254,
5034,
3844,
510,
9477,
31,
203,
203,
203,
3639,
2254,
5034,
813,
951,
3024,
1891,
31,
203,
203,
3639,
2254,
5034,
6301,
80,
4581,
329,
17631,
14727,
31,
203,
203,
3639,
1426,
711,
... |
pragma solidity ^0.4.18;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed p... | * @dev this method might be overridden for implementing any sale logic. @return Actual rate./* @dev rate scale (or divider), to support not integer rates. @return Rate divider./ | function getRate(uint amount) internal constant returns (uint);
function getBaseRate() internal constant returns (uint);
function getRateScale() internal constant returns (uint) {
return 1;
}
| 971,905 | [
1,
2211,
707,
4825,
506,
11000,
364,
19981,
1281,
272,
5349,
4058,
18,
327,
23788,
4993,
18,
19,
225,
4993,
3159,
261,
280,
21713,
3631,
358,
2865,
486,
3571,
17544,
18,
327,
13025,
21713,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
4170,
340,
12,
11890,
3844,
13,
2713,
5381,
1135,
261,
11890,
1769,
203,
203,
565,
445,
8297,
4727,
1435,
2713,
5381,
1135,
261,
11890,
1769,
203,
203,
565,
445,
4170,
340,
5587,
1435,
2713,
5381,
1135,
261,
11890,
13,
... |