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/43113/0x6b9c8c5ac8161a932FF63308D0dF500a76c069AF/sources/src/Comptroller/IronControllerV2.sol | hypothetical account shortfall below collateral requirements)/ For each asset the account is in Read the balances and exchange rate from the rToken Calculate effects of interacting with rTokenModify redeem effect sumBorrowPlusEffects += tokensToDenom * redeemTokens borrow effect sumBorrowPlusEffects += oracle... | function getHypotheticalAccountLiquidityInternal(
address account,
RToken rTokenModify,
uint redeemTokens,
uint borrowAmount) internal view returns (Error, uint, uint) {
uint oErr;
RToken[] memory assets = accountAssets[account];
for (uint i = 0; i < assets.... | 7,113,062 | [
1,
76,
879,
10370,
278,
1706,
2236,
3025,
25602,
5712,
4508,
2045,
287,
8433,
13176,
2457,
1517,
3310,
326,
2236,
353,
316,
2720,
326,
324,
26488,
471,
7829,
4993,
628,
326,
436,
1345,
9029,
16605,
434,
16592,
310,
598,
436,
1345,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7628,
879,
10370,
278,
1706,
3032,
48,
18988,
24237,
3061,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
534,
1345,
436,
1345,
11047,
16,
203,
3639,
2254,
283,
24903,
5157,
16,
203,
3639,
2254,
29759,
6275,
13,
2713,
1476,
... |
./full_match/1/0xD7EA1B7f45508cEd22aD2C39cd0CaA48CCB0E3D2/sources/contracts/Rmlq.sol | Replace with the UniswapSwap router address
| address private constant UNISWAP_ROUTER_ADDRESS = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; | 3,024,138 | [
1,
5729,
598,
326,
1351,
291,
91,
438,
12521,
4633,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1758,
3238,
5381,
5019,
5127,
59,
2203,
67,
1457,
1693,
654,
67,
15140,
273,
374,
92,
27,
69,
26520,
72,
4313,
5082,
38,
24,
71,
42,
25,
5520,
27,
5520,
72,
42,
22,
39,
25,
72,
37,
7358,
24,
71,
26,
6162,
42,
3247,
5... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.11;
import './Bet.sol';
import "@chainlink/contracts/src/v0.8/KeeperCompatible.sol";
/// @title Bet factory contract.
/// @author Fermin Carranza
/// @notice Basic contract to create bets. Only ETH/USD currently supported.
/// @dev Chainlink Keeper not curren... | @notice Resolves a bet by ID @dev Used to resolve a bet and bypass the Chainlink Keeper | function resolveBet(uint index) public {
Bet currentBet = bets[index];
removeFromBets(index);
numberOfBets--;
(bool success, ) = address(currentBet).call(abi.encodeWithSignature("resolveBet()"));
require(success, "It failed to resolve bet.");
}
| 15,863,257 | [
1,
17453,
279,
2701,
635,
1599,
225,
10286,
358,
2245,
279,
2701,
471,
17587,
326,
7824,
1232,
1475,
9868,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2245,
38,
278,
12,
11890,
770,
13,
1071,
288,
203,
3639,
605,
278,
783,
38,
278,
273,
324,
2413,
63,
1615,
15533,
203,
3639,
22386,
38,
2413,
12,
1615,
1769,
203,
3639,
7922,
38,
2413,
413,
31,
203,
3639,
261,
6430,
... |
pragma solidity 0.5.16;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./InstrumentManagerInterface.sol";
import "./InstrumentInterface.sol";
import "../InstrumentConfig.sol";
import "../escrow/InstrumentEscrowInterface.sol";
import "../esc... | * @dev Updates the maker whitelist. The maker whitelist only affects new issuances. @param makerAddress The maker address to update in whitelist @param allowed Whether this maker is allowed to create new issuance./ | function setMakerWhitelist(address makerAddress, bool allowed) public {
require(msg.sender == _fspAddress, "Only FSP can whitelist");
_makerWhitelist.setAllowed(makerAddress, allowed);
}
| 12,990,542 | [
1,
5121,
326,
312,
6388,
10734,
18,
1021,
312,
6388,
10734,
1338,
30058,
394,
3385,
89,
6872,
18,
225,
312,
6388,
1887,
1021,
312,
6388,
1758,
358,
1089,
316,
10734,
225,
2935,
17403,
333,
312,
6388,
353,
2935,
358,
752,
394,
3385,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
444,
12373,
18927,
12,
2867,
312,
6388,
1887,
16,
1426,
2935,
13,
1071,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
10749,
1887,
16,
315,
3386,
478,
3118,
848,
10734,
8863,
203,
3639,
389,
29261,
18927,
18,
542... |
/**
*Submitted for verification at Etherscan.io on 2021-10-27
*/
// File: contracts/common/Initializable.sol
pragma solidity ^0.8.0;
contract Initializable {
bool inited = false;
modifier initializer() {
require(!inited, "already inited");
_;
inited = true;
}
}
// File: contr... | @dev Removes a sale from the list of open sales @param _tokenId - ID of NFT on sale. | function _removeSale(uint256 _tokenId) internal {
delete tokenIdToSale[_tokenId];
}
| 6,768,927 | [
1,
6220,
279,
272,
5349,
628,
326,
666,
434,
1696,
272,
5408,
225,
389,
2316,
548,
300,
1599,
434,
423,
4464,
603,
272,
5349,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
389,
4479,
30746,
12,
11890,
5034,
389,
2316,
548,
13,
2713,
288,
203,
5411,
1430,
1147,
28803,
30746,
63,
67,
2316,
548,
15533,
203,
3639,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x42801294b70e298f05A5B83EDe052d39684E96CF/sources/contracts/rewards/BaseRewardPoolV2.sol | if a reward stopped queuing, no need to recalculate to save gas fee | modifier updateRewards(address _account, address[] memory _rewards) {
uint256 length = _rewards.length;
uint256 userShare = balanceOf(_account);
for (uint256 index = 0; index < length; ++index) {
address rewardToken = _rewards[index];
UserInfo storage userInf... | 2,728,682 | [
1,
430,
279,
19890,
9627,
6597,
22370,
16,
1158,
1608,
358,
26657,
358,
1923,
16189,
14036,
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,
9606,
1089,
17631,
14727,
12,
2867,
389,
4631,
16,
1758,
8526,
3778,
389,
266,
6397,
13,
288,
203,
3639,
2254,
5034,
769,
273,
389,
266,
6397,
18,
2469,
31,
203,
3639,
2254,
5034,
729,
9535,
273,
11013,
951,
24899,
4631,
176... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
//implementation of ERC721 Non-Fungible Token Standard
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
//implementation of ERC721 where tokens can be irreversibly burned (destroyed).
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnabl... | * @dev Removes a fee/ | function deallocate(address recipient)
external virtual onlyAdmin
{
_deallocateFee(recipient);
}
| 1,017,641 | [
1,
6220,
279,
14036,
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,
225,
445,
443,
16247,
12,
2867,
8027,
13,
203,
565,
3903,
5024,
1338,
4446,
203,
225,
288,
203,
565,
389,
323,
16247,
14667,
12,
20367,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./StakingRewards.sol";
abstract contract StakingRewardsWithFarming is StakingReward... | Get total balance of our staking token (both in farm and outside farm) | function getBalanceOfStaking() public view returns (uint256) {
return getDepositedToFarm().add(getDepositableToFarm());
}
| 6,398,755 | [
1,
967,
2078,
11013,
434,
3134,
384,
6159,
1147,
261,
18237,
316,
284,
4610,
471,
8220,
284,
4610,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2882,
6112,
951,
510,
6159,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
336,
758,
1724,
329,
774,
42,
4610,
7675,
1289,
12,
588,
758,
1724,
429,
774,
42,
4610,
10663,
203,
565,
289,
203,
203,
2,... |
pragma solidity 0.7.2;
// SPDX-License-Identifier: JPLv1.2-NRS Public License; Special Conditions with IVT being the Token, ItoVault the copyright holder
import "./SafeMath.sol";
import "./GeneralToken.sol";
contract VaultSystem {
using SafeMath for uint256;
event loguint(string name, uint value);
... | Counter Vault Functions Transfer Tokens from sender, then double-entry account for it | function depositvSPYCounterVault(uint _vSPYDepositE18) public {
require( _vSPYDepositE18 < 10 ** 30, "Protective max bound for uint argument");
vSPYToken.ownerApprove(msg.sender, _vSPYDepositE18);
vSPYToken.transferFrom(msg.sender, address(this), _vSPYDepositE18);
vSPYAsse... | 1,523,038 | [
1,
4789,
17329,
15486,
12279,
13899,
628,
5793,
16,
1508,
1645,
17,
4099,
2236,
364,
518,
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,
443,
1724,
90,
3118,
61,
4789,
12003,
12,
11890,
389,
90,
3118,
61,
758,
1724,
41,
2643,
13,
1071,
288,
7010,
3639,
2583,
12,
389,
90,
3118,
61,
758,
1724,
41,
2643,
411,
1728,
2826,
5196,
16,
315,
29599,
688,
943,
... |
./full_match/3/0x2F4459080cb108C23DAa285ABE093401a152C6ea/sources/contracts/Octopus/KiboAdmin.sol | KToken has 4 decimals and WBTC has 4 decimals
| seller.notional = _uniswapInitialUSDT * 1e4; | 8,225,443 | [
1,
47,
1345,
711,
1059,
15105,
471,
678,
38,
15988,
711,
1059,
15105,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
29804,
18,
902,
285,
287,
273,
389,
318,
291,
91,
438,
4435,
3378,
9081,
380,
404,
73,
24,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: --GRISE--
pragma solidity =0.7.6;
import './Interfaces.sol';
import './Randomness.sol';
contract LiquidityTransformer {
using SafeMathLT for uint256;
using SafeMathLT for uint128;
Randomness public randomness;
IGriseToken public GRISE_CONTRACT;
RefundSponsorI public ... | * @notice checks for invesments on all days @dev used in forwardLiquidity() requirements @return $fundedDays - amount of funded days 0-50/ | function fundedDays() public view returns (
uint8 $fundedDays
) {
for (uint8 i = 1; i <= INVESTMENT_DAYS; i++) {
if (dailyTotalInvestment[i] > 0) $fundedDays++;
}
}
| 1,197,618 | [
1,
12366,
364,
2198,
281,
1346,
603,
777,
4681,
225,
1399,
316,
5104,
48,
18988,
24237,
1435,
8433,
327,
271,
12125,
785,
9384,
300,
3844,
434,
9831,
785,
4681,
374,
17,
3361,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
9831,
785,
9384,
1435,
1071,
1476,
1135,
261,
203,
3639,
2254,
28,
271,
12125,
785,
9384,
203,
565,
262,
288,
203,
3639,
364,
261,
11890,
28,
277,
273,
404,
31,
277,
1648,
2120,
3412,
882,
3212,
67,
31551,
31,
277,
27... |
./full_match/1/0x9965cCd16803432C6a0842f1D5690f32E427aEDd/sources/contracts/DutchMarketplace.sol | Sale Currently Active
| return CurrentPrice; | 8,471,105 | [
1,
30746,
15212,
8857,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6562,
5147,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity w... | * @notice allows a keeper to transfer their keeper rights and bonds to another address @param bonding the asset being transfered to new address as bond collateral @param from the address keeper rights and bonding amount is transfered from @param to the address keeper rights and bonding amount is transfered to/Set the u... | function transferKeeperRight(address bonding,address from,address to) public {
require(KeeperAllowancesPassed[from][to][bonding],"pass doKeeperrightChecks first");
doDataInit(to);
keepers[from] = false;
keepers[to] = true;
uint currentbond = bonds[from][bonding];
_u... | 1,429,918 | [
1,
5965,
87,
279,
417,
9868,
358,
7412,
3675,
417,
9868,
14989,
471,
15692,
358,
4042,
1758,
225,
8427,
310,
326,
3310,
3832,
7412,
329,
358,
394,
1758,
487,
8427,
4508,
2045,
287,
225,
628,
326,
1758,
417,
9868,
14989,
471,
8427,
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,
7412,
17891,
4726,
12,
2867,
8427,
310,
16,
2867,
628,
16,
2867,
358,
13,
1071,
288,
203,
3639,
2583,
12,
17891,
7009,
6872,
22530,
63,
2080,
6362,
869,
6362,
26425,
310,
6487,
6,
5466,
741,
11523,
370,
750,
4081,
1122,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // si... | * @dev Removes a value from a set. O(1). Returns true if the value was removed from the set, that is if it was present./ | function remove(UintSet storage set, uint256 value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(value));
}
| 11,733,587 | [
1,
6220,
279,
460,
628,
279,
444,
18,
531,
12,
21,
2934,
2860,
638,
309,
326,
460,
1703,
3723,
628,
326,
444,
16,
716,
353,
309,
518,
1703,
3430,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
1206,
12,
5487,
694,
2502,
444,
16,
2254,
5034,
460,
13,
203,
5411,
2713,
203,
5411,
1135,
261,
6430,
13,
203,
3639,
288,
203,
5411,
327,
389,
4479,
12,
542,
6315,
7872,
16,
1731,
1578,
12,
1132,
10019,
203,
3639,
28... |
//Address: 0xc4fa0ac077a69934d2db0a37654c31395a05b8c9
//Contract name: SimplePHXExchange
//Balance: 0.0004 Ether
//Verification Date: 3/19/2018
//Transacion Count: 31
// CODE STARTS HERE
pragma solidity ^0.4.21;
/*
* Basic PHX-Ethereum Exchange
*
* This contract keeps a list of buy/sell orders for PHX coins
* ... | Make sure that this offeror has an offer out there | function updateTknPrice(uint _newPrice) public {
require(tknTokensOffered[msg.sender] != 0);
tknPricePerToken[msg.sender] = _newPrice;
}
| 5,394,618 | [
1,
6464,
3071,
716,
333,
10067,
280,
711,
392,
10067,
596,
1915,
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,
1089,
56,
21112,
5147,
12,
11890,
389,
2704,
5147,
13,
1071,
288,
203,
3639,
2583,
12,
16099,
82,
5157,
10513,
329,
63,
3576,
18,
15330,
65,
480,
374,
1769,
7010,
3639,
13030,
82,
5147,
2173,
1345,
63,
3576,
18,
15330,
... |
./partial_match/56/0x5720e28DC258961e15a4445D6e6e3335dcB46e99/sources/NinjaPair.sol | force balances to match reserves | function skim(address to) external lock {
_safeTransfer(_token0, to, IBEP20(_token0).balanceOf(address(this)).sub(reserve0));
_safeTransfer(_token1, to, IBEP20(_token1).balanceOf(address(this)).sub(reserve1));
}
| 11,238,219 | [
1,
5734,
324,
26488,
358,
845,
400,
264,
3324,
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,
4343,
381,
12,
2867,
358,
13,
3903,
2176,
288,
203,
3639,
389,
4626,
5912,
24899,
2316,
20,
16,
358,
16,
467,
5948,
52,
3462,
24899,
2316,
20,
2934,
12296,
951,
12,
2867,
12,
2211,
13,
2934,
1717,
12,
455,
6527,
20,
... |
pragma solidity 0.5.17;
import {ITokenRecipient} from "../interfaces/ITokenRecipient.sol";
import {TBTCDepositToken} from "../system/TBTCDepositToken.sol";
import {TBTCToken} from "../system/TBTCToken.sol";
import {FeeRebateToken} from "../system/FeeRebateToken.sol";
import {VendingMachine} from "../system/VendingMach... | Call the VendingMachine. We could explictly encode the call to vending machine, but this would involve manually parsing _extraData and allocating variables. We capture the `returnData` in order to forward any nested revert message from the contract call. solium-disable-next-line security/no-low-level-calls */ A revert... | functionSignature == vendingMachine.unqualifiedDepositToTbtc.selector,
"Bad _extraData signature. Call must be to unqualifiedDepositToTbtc."
);
(bool success, bytes memory returnData) = address(vendingMachine).call(_extraData);
string memory revertMessage;
assem... | 885,048 | [
1,
1477,
326,
776,
2846,
6981,
18,
1660,
3377,
22991,
933,
715,
2017,
326,
745,
358,
331,
2846,
5228,
16,
1496,
333,
4102,
2198,
5390,
10036,
5811,
389,
7763,
751,
471,
4767,
1776,
3152,
18,
1660,
7477,
326,
1375,
2463,
751,
68,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5411,
445,
5374,
422,
331,
2846,
6981,
18,
318,
19724,
758,
1724,
774,
56,
70,
5111,
18,
9663,
16,
203,
5411,
315,
6434,
389,
7763,
751,
3372,
18,
3049,
1297,
506,
358,
640,
19724,
758,
1724,
774,
56,
70,
5111,
1199,
203,
3639,... |
./full_match/5/0xc465F392eFFCcE7149E3081e7A150CEE3f4Fd34f/sources/contracts/Contract.sol | If _maxFreeMintAmountPerWallet is 0, reset the freeMint mapping for all addresses to false | function setMintCritera(
uint256 _maxSupply,
uint256 _publicMintCost,
uint256 _maxMintAmountPerWallet,
uint256 _maxFreeMintAmountPerWallet,
uint256 _teamSupply,
string memory _uriPrefix
) public onlyOwner {
require(_maxFreeMintAmountPerWallet >= 0, 'Max Free Mint Amount must be non-negativ... | 11,617,381 | [
1,
2047,
389,
1896,
9194,
49,
474,
6275,
2173,
16936,
353,
374,
16,
2715,
326,
4843,
49,
474,
2874,
364,
777,
6138,
358,
629,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
15430,
474,
39,
1091,
69,
12,
203,
565,
2254,
5034,
389,
1896,
3088,
1283,
16,
203,
565,
2254,
5034,
389,
482,
49,
474,
8018,
16,
203,
565,
2254,
5034,
389,
1896,
49,
474,
6275,
2173,
16936,
16,
203,
565,
2254,
5034,
389,
... |
./full_match/1/0xE1Ef01C19751540778b73c122B4fc9a5EF543ECf/sources/TestNet_ReLaunch.sol | Betting functions Transfer the MOMO tokens from the user to the contract | function placeBet(BetChoice _choice, uint256 amount) external {
require(amount >= minBet, "Bet amount is below minimum");
require(balanceOf(msg.sender) >= amount, "Insufficient MOMO tokens");
_transfer(msg.sender, address(this), amount);
bytes32 betId = keccak256(abi.encodePacked(msg.sender, b... | 8,462,627 | [
1,
38,
278,
1787,
4186,
12279,
326,
490,
1872,
51,
2430,
628,
326,
729,
358,
326,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3166,
38,
278,
12,
38,
278,
10538,
389,
11569,
16,
2254,
5034,
3844,
13,
3903,
288,
203,
565,
2583,
12,
8949,
1545,
1131,
38,
278,
16,
315,
38,
278,
3844,
353,
5712,
5224,
8863,
203,
565,
2583,
12,
12296,
951,
12,
3... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contract... | * @dev Returns the amount of tokens in existence./* @dev Returns the amount of tokens owned by `account`./* @dev Moves `amount` tokens from the caller's account to `recipient`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event./* @dev Returns the remaining number of tokens tha... | abstract contract ERC20Permit is ERC20, IERC2612Permit {
using Counters for Counters.Counter;
mapping(address => Counters.Counter) private _nonces;
bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
bytes32 public DOMAIN_SEPARATOR;
funct... | 6,244,470 | [
1,
1356,
326,
3844,
434,
2430,
316,
15782,
18,
19,
225,
2860,
326,
3844,
434,
2430,
16199,
635,
1375,
4631,
8338,
19,
225,
490,
10829,
1375,
8949,
68,
2430,
628,
326,
4894,
1807,
2236,
358,
1375,
20367,
8338,
2860,
279,
1250,
460,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
3462,
9123,
305,
353,
4232,
39,
3462,
16,
467,
654,
39,
5558,
2138,
9123,
305,
288,
203,
565,
1450,
9354,
87,
364,
9354,
87,
18,
4789,
31,
203,
203,
565,
2874,
12,
2867,
516,
9354,
87,
18,
4789,
13,
323... |
./partial_match/1/0x52F4f7fEC21C8845FC4845Afe5E4541bB432cD5e/sources/ARBITRUM.sol | exclude from fees and max transaction amount Anti-bot and anti-whale mappings and variables store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract ARBITRUM is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public uniswapV2Pair;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
bool private swapping;
... | 4,110,357 | [
1,
10157,
628,
1656,
281,
471,
943,
2492,
3844,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
358,
4259,
6138,
3377,
506,
3221,
358,
279,
4207,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6052,
15650,
54,
2799,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,... |
pragma solidity ^0.4.21;
contract tokenRecipient { function receiveApproval(address from, uint256 value, address token, bytes extraData) public; }
contract CERB_Coin
{
/* Variables */
string public name; // name of contract
string public symbol;... | values are in cents
| icoTokenPrice = 50; | 6,850,355 | [
1,
2372,
854,
316,
276,
4877,
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,
1377,
277,
2894,
1345,
5147,
273,
6437,
31,
4766,
13491,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.19;
pragma solidity ^0.4.19;
/**
* @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);
... | Only granter can revoke it
| require(grant.granter == msg.sender); | 979,229 | [
1,
3386,
15889,
387,
848,
18007,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
16243,
18,
75,
2450,
387,
422,
1234,
18,
15330,
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... |
//Address: 0xa9877b1e05d035899131dbd1e403825166d09f92
//Contract name: MNTToken
//Balance: 0 Ether
//Verification Date: 12/16/2017
//Transacion Count: 31
// CODE STARTS HERE
pragma solidity ^0.4.18;
// https://github.com/ethereum/EIPs/issues/20
contract ERC20 {
function totalSupply() public constant returns (u... | Public variables of the token This creates an array with all balances This creates an array with all allowances | contract MNTToken is ERC20, Owned {
string public name = "Media Network Token";
string public symbol = "MNT";
uint8 public decimals = 18;
uint256 public maxSupply = 125 * 10**6 * 10**18;
address public cjTeamWallet = 0x9887c2da3aC5449F3d62d4A04372a4724c21f54C;
mapping (address => uint256) publi... | 13,111,935 | [
1,
4782,
3152,
434,
326,
1147,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1220,
3414,
392,
526,
598,
777,
1699,
6872,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
490,
1784,
1345,
353,
4232,
39,
3462,
16,
14223,
11748,
288,
203,
565,
533,
1071,
508,
273,
315,
5419,
5128,
3155,
14432,
203,
565,
533,
1071,
3273,
273,
315,
49,
1784,
14432,
203,
565,
2254,
28,
1071,
15105,
273,
6549,
31... |
pragma solidity ^0.5.3;
import "./testing/AbstractAddrResolver.sol";
import "@rsksmart/rns-registry/contracts/AbstractRNS.sol";
contract SubdomainBatchRegistrar {
AbstractRNS private rns;
mapping (bytes32 => address) public nodeOwner;
mapping (bytes32 => mapping (address => bool)) public approvedToRegist... | @notice Return if a given account can registers subdomains for a given node. @param node Node to query the approval for. @param registrant The registrant to query for. @return True if the registrant can register subnodes for node. | function isRegistrant(bytes32 node, address registrant) public view returns (bool) {
return approvedToRegister[node][registrant];
}
| 1,791,900 | [
1,
990,
309,
279,
864,
2236,
848,
10285,
720,
14180,
364,
279,
864,
756,
18,
225,
756,
2029,
358,
843,
326,
23556,
364,
18,
225,
17450,
970,
1021,
17450,
970,
358,
843,
364,
18,
327,
1053,
309,
326,
17450,
970,
848,
1744,
720,
469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
20175,
970,
12,
3890,
1578,
756,
16,
1758,
17450,
970,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
20412,
774,
3996,
63,
2159,
6362,
1574,
3337,
970,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-... |
./partial_match/1/0xcfea8666972993eA7117027824F8DD13a56C9244/sources/LiquidityPool.sol | Function to create an exchange on Uniswap | function createExchange(address token) external {
uniswapFactory.createExchange(token);
}
| 2,705,634 | [
1,
2083,
358,
752,
392,
7829,
603,
1351,
291,
91,
438,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
11688,
12,
2867,
1147,
13,
3903,
288,
203,
3639,
640,
291,
91,
438,
1733,
18,
2640,
11688,
12,
2316,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-14
*/
pragma solidity 0.8.9;
// SPDX-License-Identifier: MIT
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @... | * @dev Transfers `tokenId` from `from` to `to`. As opposed to {transferFrom}, this imposes no restrictions on msg.sender. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner | function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(msg.value >= NFTPrice, "insufficient amount");
require(
ERC721.ownerOf(tokenId) == from,
"ERC721: transfer of token that is not own"
);
requi... | 6,784,364 | [
1,
1429,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
225,
2970,
1061,
7423,
358,
288,
13866,
1265,
5779,
333,
709,
10522,
1158,
17499,
603,
1234,
18,
15330,
18,
29076,
30,
300,
1375,
869,
68,
2780,
506,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
423,
4464,
5147,
16,
315,
2679,
11339,
3... |
./full_match/4/0x2c16a5b12634A43Eeac34Cc72bc66F582751E923/sources/browser/Untitled.sol | this ref ID will be used if user joins without any ref ID
| uint public defaultRefID = 1; | 758,480 | [
1,
2211,
1278,
1599,
903,
506,
1399,
309,
729,
13471,
2887,
1281,
1278,
1599,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
1071,
805,
1957,
734,
273,
404,
31,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.8.6;
import "ERC721.sol";
import "Ownable.sol";
import "ReentrancyGuard.sol";
import "Strings.sol";
import "Base64.sol";
/**
////////////////// \\\ /// ///////////\\\ /// \\\ ////////////// ////////////\\\
///////////////// \\\ /// //////... | parts of color band that have less variance nearby | function svgSignatureRow(bytes memory writer, uint256 rowIdx, uint256 colorScheme) internal view returns (string memory) {
bytes memory rectString;
uint256 addrInd = 0;
uint256 stepSize = 2;
if(colorScheme == 206 || colorScheme == 312 || colorScheme == 270 || colorScheme == 0 || col... | 6,069,370 | [
1,
6019,
434,
2036,
8937,
716,
1240,
5242,
12380,
13378,
1637,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9804,
5374,
1999,
12,
3890,
3778,
2633,
16,
2254,
5034,
1027,
4223,
16,
2254,
5034,
2036,
9321,
13,
2713,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
1731,
3778,
4917,
780,
31,
203,
3639,
2254,
5034,
3091,
3866,
27... |
./partial_match/1/0x4f252cFd54aa500BAe69EA405fd30B8D6F31fA6d/sources/ImmortalsStaking.sol | * @dev Destroys `tokenId`. The approval is cleared when the token is burned. This is an internal function that does not check if the sender is authorized to operate on the token. Requirements: - `tokenId` must exist. Emits a {Transfer} event./ Update ownership in case tokenId was transferred by `_beforeTokenTransfer` h... | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId, 1);
owner = ERC721.ownerOf(tokenId);
delete _tokenApprovals[tokenId];
unchecked {
_balances[owner] -= 1;
}
... | 2,586,642 | [
1,
9378,
28599,
1375,
2316,
548,
8338,
1021,
23556,
353,
16054,
1347,
326,
1147,
353,
18305,
329,
18,
1220,
353,
392,
2713,
445,
716,
1552,
486,
866,
309,
326,
5793,
353,
10799,
358,
20829,
603,
326,
1147,
18,
29076,
30,
300,
1375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
70,
321,
12,
11890,
5034,
1147,
548,
13,
2713,
5024,
288,
203,
3639,
1758,
3410,
273,
4232,
39,
27,
5340,
18,
8443,
951,
12,
2316,
548,
1769,
203,
203,
3639,
389,
5771,
1345,
5912,
12,
8443,
16,
1758,
12,
20,
3... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
/**
* @dev ERC20 Contract Implementation
*/
contract ERC20 {
mapping(address => uint256) internal _balances;
mapping(address => mapping(address => uint256)) internal _allowances;
uint256 internal _totalSupply;
string public constant name ... | Mmmmmmmmmmm slightly corrupt cheeky premine aka 6.66% founder reward | _totalSupply = 1998 * CURRENCY_MULTIPLIER;
| 629,316 | [
1,
49,
7020,
7020,
7020,
7020,
7020,
21980,
16899,
462,
3317,
93,
675,
3081,
28105,
1666,
18,
6028,
9,
284,
465,
765,
19890,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
389,
4963,
3088,
1283,
273,
23673,
28,
380,
4706,
25231,
67,
24683,
2053,
654,
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,
-1... |
pragma solidity ^0.4.23;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address _owner) public view returns (uint balance);
function transfer(address _to, uint _value) public returns (bool success);
function transferFrom(address _from, address _to, uint ... | Setting the reservingStep value, allowed only for owner | function setReservingStep(uint _value) public onlyOwner returns (bool success) {
assert(_value > 0);
reservingStep = _value;
emit SetReservingStep(_value);
return true;
}
| 7,952,821 | [
1,
5568,
326,
400,
264,
6282,
4160,
460,
16,
2935,
1338,
364,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
607,
264,
6282,
4160,
12,
11890,
389,
1132,
13,
1071,
1338,
5541,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
1815,
24899,
1132,
405,
374,
1769,
203,
3639,
400,
264,
6282,
4160,
273,
389,
1132,
31,
203,
3639,
3626,
... |
./full_match/42220/0xE0EE7Cd0890e8f290A1A1e5E2300658A4016EEd9/sources/SuperVault_flat.sol | * @notice Custom logic for how much the vault allows to be borrowed @dev The contract puts 100% of the tokens to work./ | function available() public view returns (uint256) {
return STAKED_TOKEN.balanceOf(address(this));
}
| 16,330,046 | [
1,
3802,
4058,
364,
3661,
9816,
326,
9229,
5360,
358,
506,
29759,
329,
225,
1021,
6835,
8200,
2130,
9,
434,
326,
2430,
358,
1440,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2319,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2347,
14607,
2056,
67,
8412,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
pragma experimental ABIEncoderV2;
library Internal_Merkle_Library_Sorted_Hash {
// Hashes a and b in the order they are passed
function hash_node(bytes32 a, bytes32 b) internal pure returns (bytes32 hash) {
assembly {
mstore(0x00, a)
... | Get current and update leafs from current bytes32 elements in calldata and update bytes32 elements in calldata, in reverse order | function get_reversed_leafs_from_current_and_update_elements_c(
bytes32[] calldata elements,
bytes32[] calldata update_elements
) internal pure returns (bytes32[] memory leafs, bytes32[] memory update_leafs) {
uint256 element_count = elements.length;
require(update_elements.length == element_count, ... | 12,859,651 | [
1,
967,
783,
471,
1089,
7839,
87,
628,
783,
1731,
1578,
2186,
316,
745,
892,
471,
1089,
1731,
1578,
2186,
316,
745,
892,
16,
316,
4219,
1353,
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,
336,
67,
266,
7548,
67,
12070,
87,
67,
2080,
67,
2972,
67,
464,
67,
2725,
67,
6274,
67,
71,
12,
203,
565,
1731,
1578,
8526,
745,
892,
2186,
16,
203,
565,
1731,
1578,
8526,
745,
892,
1089,
67,
6274,
203,
225,
262,
... |
pragma solidity ^0.4.11;
contract ERC20_Transferable {
function balanceOf(address addr) public returns(uint);
function transfer(address to, uint value) public returns (bool);
}
contract TimeLockedRewardFaucet {
// =========== CONFIG START ===========
address constant public MULTISIG_OWNER ... | collect addresses for payout setup amount to distributepayout processingcollect unclaimed token to team wallet | function () payable {
State state = _state();
if (state==State.INIT) {
require(indexOf(team_accounts,msg.sender)==-1);
team_accounts.push(msg.sender);
if (amount_to_distribute==0) amount_to_distribute = token.balanceOf(this);
require(indexOf(team_acco... | 1,781,921 | [
1,
14676,
6138,
364,
293,
2012,
3875,
3844,
358,
25722,
84,
2012,
4929,
14676,
6301,
80,
4581,
329,
1147,
358,
5927,
9230,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
8843,
429,
288,
203,
203,
3639,
3287,
919,
273,
389,
2019,
5621,
203,
3639,
309,
261,
2019,
631,
1119,
18,
12919,
13,
288,
203,
5411,
2583,
12,
31806,
12,
10035,
67,
13739,
16,
3576,
18,
15330,
13,
631,
17,
21,
... |
// Правила для изменения достоверности распознавания конкретных словоформ в русском словаре.
// Обычное предназначение этих правил - изменить равновероятные распознавания
// омонимичных форм жаль(безличный глагол)>жаль(императив),
// либо повлиять на выбор многословных форм в противовес
// выбору отдельных слов: [сле... | нарвал нарвал --> нарвать нарвал
| wordform_score "нарвал" { существительное } = -1 | 7,303,802 | [
1,
145,
126,
145,
113,
146,
227,
145,
115,
145,
113,
145,
124,
225,
145,
126,
145,
113,
146,
227,
145,
115,
145,
113,
145,
124,
15431,
225,
145,
126,
145,
113,
146,
227,
145,
115,
145,
113,
146,
229,
146,
239,
225,
145,
126,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
2076,
687,
67,
6355,
315,
145,
126,
145,
113,
146,
227,
145,
115,
145,
113,
145,
124,
6,
288,
225,
146,
228,
146,
230,
146,
236,
145,
118,
146,
228,
146,
229,
145,
115,
145,
121,
146,
229,
145,
118,
145,
124,
146,
239,
145,... |
/**
*Submitted for verification at Etherscan.io on 2019-09-22
*/
pragma solidity ^0.5.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256)... | If transfer amount is zero emit event and stop execution If the transaction is not whitelisted calculate fees Subtract fees from receiver amount Burn tokens Transfer balance to DanPan | function transfer(address to, uint256 value) public returns (bool) {
require(value <= _balances[msg.sender]);
require(to != address(0));
if (value == 0) {
emit Transfer(msg.sender, to, 0);
return true;
}
uint256 tokensToBurn = 0;
uint256 t... | 12,830,807 | [
1,
2047,
7412,
3844,
353,
3634,
3626,
871,
471,
2132,
4588,
971,
326,
2492,
353,
486,
26944,
4604,
1656,
281,
2592,
1575,
1656,
281,
628,
5971,
3844,
605,
321,
2430,
12279,
11013,
358,
463,
304,
4069,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
1132,
1648,
389,
70,
26488,
63,
3576,
18,
15330,
19226,
203,
565,
2583,
12,
869,
480,
1758,
12,
20,
10019,
203,
377,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-12
*/
// File: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in... | CumulativeHoldersRewardCap | function setStorageCumulativeHoldersRewardCap(uint256 _value) internal {
eternalStorage().setUint(
getStorageCumulativeHoldersRewardCapKey(),
_value
);
}
| 5,442,620 | [
1,
39,
11276,
27003,
17631,
1060,
4664,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
3245,
39,
11276,
27003,
17631,
1060,
4664,
12,
11890,
5034,
389,
1132,
13,
2713,
288,
203,
565,
225,
847,
82,
287,
3245,
7675,
542,
5487,
12,
203,
1377,
13840,
39,
11276,
27003,
17631,
1060,
4664,
653,
9334,
203,
1... |
pragma solidity ^0.4.11;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal returns (uint) {
// assert(b > 0); // So... | * @title Shareable @dev inheritable "property" contract that enables methods to be protected by requiring the acquiescence of either a single, or, crucially, each of a number of, designated owners. @dev Usage: use modifiers onlyowner (just own owned) or onlymanyowners(hash), whereby the same hash must be provided by so... | contract Shareable {
struct PendingState {
uint yetNeeded;
uint ownersDone;
uint index;
}
bytes32[] pendingsIndex;
event Revoke(address owner, bytes32 operation);
uint public required;
address[256] owners;
mapping(address => uint) ownerIndex;
mapping(bytes32 => PendingState) pendings;... | 971,107 | [
1,
9535,
429,
225,
6811,
429,
315,
4468,
6,
6835,
716,
19808,
2590,
358,
506,
4750,
635,
29468,
326,
1721,
372,
606,
71,
802,
434,
3344,
279,
2202,
16,
578,
16,
4422,
5286,
6261,
16,
1517,
434,
279,
1300,
434,
16,
25264,
25937,
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,
25805,
429,
288,
203,
203,
225,
1958,
16034,
1119,
288,
203,
565,
2254,
4671,
11449,
31,
203,
565,
2254,
25937,
7387,
31,
203,
565,
2254,
770,
31,
203,
225,
289,
203,
203,
203,
225,
1731,
1578,
8526,
31472,
899,
1016,
31,
... |
./partial_match/42/0x20A02F27a25db188B7f068aF93BF31fbAB631Fff/sources/AthleteData.sol | Find athletes have same distance | function sameDistance(uint distance) public{
for(uint i=0; i<athletes.length; i++){
if(athletes[i].distance == distance)
memberDistance.push(athletes[i].name);
}
}
| 3,465,434 | [
1,
3125,
225,
421,
1810,
281,
1240,
1967,
3888,
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,
1967,
7200,
12,
11890,
3888,
13,
1071,
95,
203,
3639,
364,
12,
11890,
277,
33,
20,
31,
277,
32,
421,
1810,
281,
18,
2469,
31,
277,
27245,
95,
203,
5411,
309,
12,
421,
1810,
281,
63,
77,
8009,
8969,
422,
3888,
13,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
// ---------------------- Built with 💘 for everyone --------------------------
/// @author Kinois Le Roi
/// @title SmACV1 [Smart Ads Contract V1] - This contract enables addresses to deploy smart ads.
/// Token : Paid Per Click - The winning crypto of the int... | Report this SmAC as a scam. feedbacks. | function scamReport() public returns (bool reported) {
uint256 claimerBalance = PPeC(PPeCAddress).balanceOf(msg.sender);
bool claimedStatus = claimed[address(this)][msg.sender];
if (claimedStatus == true)
revert Claimed();
if (minClaimerBalance > claimerBalance)
... | 14,095,642 | [
1,
4820,
333,
9425,
2226,
487,
279,
888,
301,
18,
10762,
87,
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,
565,
445,
888,
301,
4820,
1435,
1071,
1135,
261,
6430,
14010,
13,
288,
203,
203,
3639,
2254,
5034,
927,
69,
4417,
13937,
273,
453,
11227,
39,
12,
6584,
73,
39,
1887,
2934,
12296,
951,
12,
3576,
18,
15330,
1769,
203,
203,
3639,
... |
./partial_match/1/0x4d7D5F90554aa9775114c64a332ebeb9652FAb0c/sources/YUTA.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("Yuta", "YUTA") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswap... | 15,540,320 | [
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,
61,
322,
69,
3113,
315,
61,
1693,
37,
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,
22,
8259,... |
./partial_match/4/0x50daF484c888BFBccd0E383c6CB943a0A337ee1B/sources/SocialGovernor.sol | add Liquidity or -stake-, requires inputs of the particular mine, the tokens to be staked, the amount to be staked, the reward tier, socialID => date tokens are free to un-stake and token rewards question here..... the requirement for minStakeAmt is only in the SLM contract, which means that a user could get reverted ... | function stake(address _mine, address stAddress, uint sTokens, uint _tier, uint sID, address to) public returns (uint _unLockTime, uint rewards, uint socialNum) {
require(m.stakeToken == stAddress, "This isn't the right token");
require(m.remainingRewards >= _rewards, "Sorry no more rewards left!");... | 8,666,753 | [
1,
1289,
511,
18988,
24237,
578,
300,
334,
911,
17,
16,
4991,
4540,
434,
326,
6826,
312,
558,
16,
326,
2430,
358,
506,
384,
9477,
16,
326,
3844,
358,
506,
384,
9477,
16,
326,
19890,
17742,
16,
16702,
734,
516,
1509,
2430,
854,
484... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
384,
911,
12,
2867,
389,
3081,
16,
1758,
384,
1887,
16,
2254,
272,
5157,
16,
2254,
389,
88,
2453,
16,
2254,
272,
734,
16,
1758,
358,
13,
1071,
1135,
261,
11890,
389,
318,
2531,
950,
16,
2254,
283,
6397,
16,
2254,
16... |
pragma solidity ^0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
contract SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow.
*/
function safeSub(uint256 x, uint256 y) internal pure returns (uint256) {
assert(y <= x);
... | * Name and symbol were updated. */* Period were updated. */ creating initial tokens set voting rules _minimumQuorum = 50% _requisiteMajority = 25% _debatingPeriodDuration = 1 day add ETH | constructor(string _name, string _symbol, uint _start, uint _period, address _dexowner) public {
name = _name;
symbol = _symbol;
start = _start;
period = _period;
totalSupply_ = initialSupply*10**decimals;
balances[_dexowner] = totalSupply_;
emit Transfer(0x0, _dexowner, balances[_de... | 15,818,681 | [
1,
461,
471,
3273,
4591,
3526,
18,
342,
12698,
4591,
3526,
18,
342,
4979,
2172,
2430,
444,
331,
17128,
2931,
389,
15903,
31488,
273,
6437,
9,
389,
4523,
291,
1137,
17581,
560,
273,
6969,
9,
389,
31888,
1776,
5027,
5326,
273,
404,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
3885,
12,
1080,
389,
529,
16,
533,
389,
7175,
16,
2254,
389,
1937,
16,
2254,
389,
6908,
16,
1758,
389,
561,
8443,
13,
1071,
288,
203,
565,
508,
273,
389,
529,
31,
203,
565,
3273,
273,
389,
7175,
31,
203,
565,
787,
273,
... |
pragma solidity ^0.5.6;
import "./ownership/Ownable.sol";
import "./math/SafeMath.sol";
import "./interface/IGusuelV2.sol";
import "./token/KIP37/KIP37Burnable.sol";
import "./token/KIP17/IKIP17.sol";
contract GuseulKongChick is Ownable, IGuseulV2 {
using SafeMath for uint256;
KIP37Burnable public... | round => user => uint256, bool | mapping(uint256 => mapping(address => bool)) private _betBool;
| 14,041,932 | [
1,
2260,
516,
729,
516,
2254,
5034,
16,
1426,
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,
2874,
12,
11890,
5034,
516,
2874,
12,
2867,
516,
1426,
3719,
3238,
389,
70,
278,
7464,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x82a7b5842085f434c6584A8c44b6A1C15c25a512/sources/contracts/LiquidityManager.sol | Update processed count */ | processedIndices += 1;
| 9,659,048 | [
1,
1891,
5204,
1056,
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,
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,
5411,
5204,
8776,
1011,
404,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/4/0xB942536a4255a04622C16dB974f54002DE78Da7a/sources/Inflator.sol | * @notice Inflates position exactly by `value` (one borrow-supply) cycle @dev This internal method doesnt checks risk and allowed borrow @param value Amount to inflate/ Encoding EVM script with 2 operations - borrow, supply | function inflateOnceExact(uint256 value) internal {
bytes memory borrowCalldata = abi.encodeWithSelector(ctoken.borrow.selector, value);
bytes memory supplyCalldata = abi.encodeWithSelector(ctoken.mint.selector, value);
bytes memory evmscript = abi.encodePacked(
uint32(borrowCall... | 8,607,068 | [
1,
27040,
815,
1754,
8950,
635,
1375,
1132,
68,
261,
476,
29759,
17,
2859,
1283,
13,
8589,
225,
1220,
2713,
707,
31272,
4271,
18404,
471,
2935,
29759,
225,
460,
16811,
358,
26809,
19,
13400,
512,
7397,
2728,
598,
576,
5295,
300,
29759... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26809,
12212,
14332,
12,
11890,
5034,
460,
13,
2713,
288,
203,
3639,
1731,
3778,
29759,
1477,
892,
273,
24126,
18,
3015,
1190,
4320,
12,
299,
969,
18,
70,
15318,
18,
9663,
16,
460,
1769,
203,
3639,
1731,
3778,
14467,
14... |
./full_match/5/0xd3C803fc4f113BEac108A3406c09C32dB8671fbc/sources/contracts/GovernanceContract.sol | CrowdProject[] memory allProjects = new CrowdProject[](crowdProjectIds.length); | function getProjects() public view returns (ProjectMetaData[] memory) {
ProjectMetaData[] memory allMetaData;
for(uint32 i = 0; i < crowdProjectIds.length; i++) {
CrowdProject storage foundProject = crowdProjects[i];
if(foundProject.projectId != 0) {
Projec... | 1,920,047 | [
1,
39,
492,
72,
4109,
8526,
3778,
777,
15298,
273,
394,
385,
492,
72,
4109,
8526,
12,
71,
492,
72,
4109,
2673,
18,
2469,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
4202,
445,
11080,
87,
1435,
1071,
1476,
1135,
261,
4109,
6998,
8526,
3778,
13,
288,
203,
3639,
5420,
6998,
8526,
3778,
777,
6998,
31,
203,
3639,
364,
12,
11890,
1578,
277,
273,
374,
31,
277,
411,
276,
492,
72,
4109,
2673,
18,
2... |
pragma solidity 0.5.7;
import "./../interfaces/ifoladt.sol";
import "./../helpers/ownable.sol";
/**
* @title fixed ordered bidirectional linked list concrete implementation of ifoladt
* @dev all fobll operation O(1) [note max iterations count eq capacity]
* @dev note all indexations start from 1
* inheritdoc
*/
... | inheritdoc in case of invalid address specified iterate over all fobll nodes from head to tail in case we pass finish break update fobll iterator update iteration break index skip while we not find right node | function index(address key) external view returns(uint32) {
require(key != address(0), "Invalid index key specified");
address it = __head;
address end = __nodes[__tail].next;
while (it != end) {
if (idx > __capacity) {
break;
}
N... | 5,441,787 | [
1,
10093,
316,
648,
434,
2057,
1758,
1269,
7401,
1879,
777,
284,
947,
2906,
2199,
628,
910,
358,
5798,
316,
648,
732,
1342,
4076,
898,
1089,
284,
947,
2906,
2775,
1089,
6532,
898,
770,
2488,
1323,
732,
486,
1104,
2145,
756,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
770,
12,
2867,
498,
13,
3903,
1476,
1135,
12,
11890,
1578,
13,
288,
203,
3639,
2583,
12,
856,
480,
1758,
12,
20,
3631,
315,
1941,
770,
498,
1269,
8863,
203,
203,
3639,
1758,
518,
273,
1001,
1978,
31,
203,
3639,
1758,
... |
./partial_match/1/0xEd177746E5C5b7a321237dC900841491E10ACb25/sources/YANG.sol | uint256 DeveloperShare = _buyDevTax.add(_sellDevTax); | function swapBack(uint256 tAmount) private lockThatSwap {
uint256 totalShares = _totalBuyFee.add(_totalSellFee);
uint256 liquidityShare = _buyLPTax.add(_sellLPTax);
uint256 MarketingShare = _buyMarketTax.add(_sellMarketTax);
uint256 tokenForLp = tAmount.mul(liquidityShare).... | 9,294,886 | [
1,
11890,
5034,
14526,
9535,
273,
389,
70,
9835,
8870,
7731,
18,
1289,
24899,
87,
1165,
8870,
7731,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
7720,
2711,
12,
11890,
5034,
268,
6275,
13,
3238,
2176,
18163,
12521,
288,
203,
3639,
2254,
5034,
2078,
24051,
273,
389,
4963,
38,
9835,
14667,
18,
1289,
24899,
4963,
55,
1165,
14667,
1769,
203,
203,
3639,
2254,
5034,
450... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {ERC721} from "@solidstate/contracts/token/ERC721/ERC721.sol";
import {ERC721BaseStorage} from "@solidstate/contracts/token/ERC721/base/ERC721BaseStorage.sol";
import {OwnableInternal} from "@solidstate/contracts/access/OwnableInternal.sol";
import {VRFCo... | * @inheritdoc IERC721/ | function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public payable override {
safeTransferFrom(from, to, tokenId, '');
}
| 73,654 | [
1,
36,
10093,
467,
654,
39,
27,
5340,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
8843,
429,
3849,
288,
203,
3639,
4183,
5912,
1265,
12,
2080,
16,
358,
16,
1147,
548,
16,... |
/**
*Submitted for verification at Etherscan.io on 2021-05-15
*/
// File: contracts/zeppelin/SafeMath.sol
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Subtracts two numbers, reverts on overflow (i.e. if subtr... | * @dev sets 0 initial tokens, the owner, the supplyController, the fee controller and fee recipient. this serves as the constructor for the proxy but compiles to the memory model of the Implementation contract./ | function initialize() public {
require(!initialized, "already initialized");
owner = msg.sender;
proposedOwner = address(0);
assetProtectionRole = address(0);
totalSupply_ = 0;
supplyController = msg.sender;
feeRate = 0;
feeController = msg.sender;
... | 2,024,289 | [
1,
4424,
374,
2172,
2430,
16,
326,
3410,
16,
326,
14467,
2933,
16,
326,
14036,
2596,
471,
14036,
8027,
18,
333,
26255,
487,
326,
3885,
364,
326,
2889,
1496,
1161,
1449,
358,
326,
3778,
938,
434,
326,
25379,
6835,
18,
19,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
1435,
1071,
288,
203,
3639,
2583,
12,
5,
13227,
16,
315,
17583,
6454,
8863,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
3639,
20084,
5541,
273,
1758,
12,
20,
1769,
203,
3639,
3310,
16938,
2996,
273,
1758,
12,
... |
./partial_match/1/0xF13e21653AEB763595D5E4baA1dC115689Da49b9/sources/contracts/thirdparty/proxies/Proxy.sol | * @dev Tells the address of the implementation where every call will be delegated. @return impl address of the implementation to which it will be delegated/ | receive() payable external {
_fallback();
}
| 4,025,231 | [
1,
21009,
87,
326,
1758,
434,
326,
4471,
1625,
3614,
745,
903,
506,
30055,
18,
327,
9380,
1758,
434,
326,
4471,
358,
1492,
518,
903,
506,
30055,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
6798,
1435,
8843,
429,
3903,
288,
203,
565,
389,
16471,
5621,
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,
-100,
-100,
-100... |
./partial_match/3/0xD0D14e32105E95058a28d8753eF930B024ee38eE/sources/SpotLogic.sol | from StorJ -- https:github.com/nginnever/storj-audit-verifier/contracts/MerkleVerifyv3.sol use the index to determine the node ordering (index ranges 1 to n) we don't assume that the tree is padded to a power of 2 if the index is odd then the proof will start with a hash at a higher layer, so we have to adjust the ind... | function checkProofOrdered(bytes memory proof, bytes32 root, bytes32 leaf, uint index) public pure returns (bool) {
bytes32 element;
bytes32 hash = leaf;
uint remaining;
for (uint j = 32; j <= proof.length; j += 32) {
assembly {
element := mload(add(proof, j))
}
while (rem... | 5,086,587 | [
1,
2080,
934,
280,
46,
1493,
2333,
30,
6662,
18,
832,
19,
82,
1912,
4644,
502,
19,
334,
280,
78,
17,
17413,
17,
31797,
19,
16351,
87,
19,
8478,
15609,
8097,
90,
23,
18,
18281,
999,
326,
770,
358,
4199,
326,
756,
9543,
261,
1615,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
20439,
16756,
12,
3890,
3778,
14601,
16,
1731,
1578,
1365,
16,
1731,
1578,
7839,
16,
2254,
770,
13,
1071,
16618,
1135,
261,
6430,
13,
288,
203,
203,
565,
1731,
1578,
930,
31,
203,
565,
1731,
1578,
1651,
273,
7839,
... |
./partial_match/1/0x00000000000006c7676171937C444f6BDe3D6282/sources/contracts/helpers/PointerLibraries.sol | @dev Reads the uint72 at `mPtr` in memory. | function readUint72(
MemoryPointer mPtr
) internal pure returns (uint72 value) {
assembly {
value := mload(mPtr)
}
}
| 4,300,624 | [
1,
7483,
326,
2254,
9060,
622,
1375,
81,
5263,
68,
316,
3778,
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,
565,
445,
855,
5487,
9060,
12,
203,
3639,
9251,
4926,
312,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
9060,
460,
13,
288,
203,
3639,
19931,
288,
203,
5411,
460,
519,
312,
945,
12,
81,
5263,
13,
203,
3639,
289,
203,
565... |
// ZuFinance is a DeFi Token issued on Binance Smart Chain (BEP-20),
// Designed to serve the gaming and sports betting industry, with three simple features implemented at its core;
// LP Acquisition 5%
// Burning on each trade 3%
// Static Reward (Reflection) 2% to ... | require(account != 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, 'We can not exclude Uniswap router.'); | function _excludeAccount(address account) internal {
require(!_isExcluded[account], "Account is already excluded");
if (_rOwned[account] > 0) {
_tOwned[account] = tokenFromReflection(_rOwned[account]);
}
_isExcluded[account] = true;
_excluded.push(account);
... | 15,802,276 | [
1,
6528,
12,
4631,
480,
374,
92,
27,
69,
26520,
72,
4313,
5082,
38,
24,
71,
42,
25,
5520,
27,
5520,
72,
42,
22,
39,
25,
72,
37,
7358,
24,
71,
26,
6162,
42,
3247,
5482,
40,
16,
296,
3218,
848,
486,
4433,
1351,
291,
91,
438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
10157,
3032,
12,
2867,
2236,
13,
2713,
288,
203,
3639,
2583,
12,
5,
67,
291,
16461,
63,
4631,
6487,
315,
3032,
353,
1818,
8845,
8863,
203,
3639,
309,
261,
67,
86,
5460,
329,
63,
4631,
65,
405,
374,
13,
288,
203... |
pragma solidity >=0.5.4 <0.6.0;
interface tokenRecipient { function RECEIVEAPPROVAL172(address _from, uint256 _value, address _token, bytes calldata _extraData) external; } //inject NONSTANDARD NAMING
library SafeMath {
... | inject NONSTANDARD NAMING
| function DETERMINEPOSITION456(address _sender, address _id) external view returns (uint256); | 13,026,329 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
463,
1584,
654,
49,
3740,
15258,
24,
4313,
12,
2867,
389,
15330,
16,
1758,
389,
350,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42/0xA18Cfc81E9DaE65447F7e4323a062E5C2f1DdFe4/sources/browser/Bitcoin.sol | * @notice Delegates votes from signatory to `delegatee` @param delegatee The address to delegate votes to @param nonce The contract state required to match the signature @param expiry The time at which to expire the signature @param v The recovery byte of the signature @param r Half of the ECDSA signature pair @param s... | function delegateBySig(
address delegatee,
uint nonce,
uint expiry,
uint8 v,
bytes32 r,
bytes32 s
)
external
{
bytes32 domainSeparator = keccak256(
abi.encode(
DOMAIN_TYPEHASH,
keccak256(bytes(name())... | 9,587,066 | [
1,
15608,
815,
19588,
628,
1573,
8452,
358,
1375,
22216,
73,
68,
225,
7152,
73,
1021,
1758,
358,
7152,
19588,
358,
225,
7448,
1021,
6835,
919,
1931,
358,
845,
326,
3372,
225,
10839,
1021,
813,
622,
1492,
358,
6930,
326,
3372,
225,
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,
7152,
858,
8267,
12,
203,
3639,
1758,
7152,
73,
16,
203,
3639,
2254,
7448,
16,
203,
3639,
2254,
10839,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
203,
565,
262,
203,
... |
pragma solidity ^0.4.24;
import "../contracts/SafeToken.sol";
contract SafeTokenHarness is SafeToken {
// adding the completely valid 'view' declaration to this function causes gas usage test in SafeTokenHarnessTest.js
// to fail because the result of calling this function is 'undefined.'
// TODO: Figure... | adding the completely valid 'view' declaration to this function causes gas usage test in SafeTokenHarnessTest.js to fail because the result of calling this function is 'undefined.' TODO: Figure out how SafeTokenHarnessTest of checkInboundTransfer can be modified so it doesn't fail if this is declared as view | contract SafeTokenHarness is SafeToken {
function checkInboundTransfer(address asset, address from, uint amount) public view returns (uint256) {
Error err = checkTransferIn(asset, from, amount);
return uint(err);
}
function doInboundTransfer(address asset, address from, uint amount) publi... | 7,286,500 | [
1,
3439,
326,
14416,
923,
296,
1945,
11,
8266,
358,
333,
445,
14119,
16189,
4084,
1842,
316,
14060,
1345,
44,
1303,
403,
4709,
18,
2924,
358,
2321,
2724,
326,
563,
434,
4440,
333,
445,
353,
296,
5978,
1093,
2660,
30,
18818,
596,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14060,
1345,
44,
1303,
403,
353,
14060,
1345,
288,
203,
203,
565,
445,
866,
20571,
5912,
12,
2867,
3310,
16,
1758,
628,
16,
2254,
3844,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
1068,
393,
273,
866,
5912,... |
./partial_match/1/0x5094a8f54B12AEc540bF7cCd0Dd7B62f4FecF7f2/sources/Users/Elena/Source/argent-contracts/contracts/modules/TransferManager.sol | * @notice Implementation of EIP 1271. Should return whether the signature provided is valid for the provided data. @param _msgHash Hash of a message signed on the behalf of address(this) @param _signature Signature byte array associated with _msgHash/ | function isValidSignature(bytes32 _msgHash, bytes memory _signature) public view returns (bytes4) {
require(_signature.length == 65, "TM: invalid signature length");
address signer = Utils.recoverSigner(_msgHash, _signature, 0);
require(isOwner(msg.sender, signer), "TM: Invalid signer");
... | 9,255,172 | [
1,
13621,
434,
512,
2579,
2593,
11212,
18,
9363,
327,
2856,
326,
3372,
2112,
353,
923,
364,
326,
2112,
501,
18,
225,
389,
3576,
2310,
2474,
434,
279,
883,
6726,
603,
326,
12433,
6186,
434,
1758,
12,
2211,
13,
225,
389,
8195,
9249,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4908,
5374,
12,
3890,
1578,
389,
3576,
2310,
16,
1731,
3778,
389,
8195,
13,
1071,
1476,
1135,
261,
3890,
24,
13,
288,
203,
3639,
2583,
24899,
8195,
18,
2469,
422,
15892,
16,
315,
22903,
30,
2057,
3372,
769,
8863,
203,
... |
./partial_match/3/0xB81bFfBf4E1e1d2C4100F71425F98Df17D5bF272/sources/BountyMoneyV1Miner.sol | record token mint block | uint256 public lastProduceBlock;
| 5,314,346 | [
1,
3366,
1147,
312,
474,
1203,
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,
2254,
5034,
1071,
1142,
25884,
1768,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/3/0xdd77AC2db94D5Ba21c537B244E2DfE7Ff898D208/sources/browser/insurance/insuranceEvents.sol | * Votes for the event using given user. Must be admin to execute */ | function voteForEventByAdmin(
uint256 eventId,
address userAddress
) public whenNotPaused {
require(hasRole(ADMIN_ROLE, msg.sender), "Can be issued only by admin");
_voteForEvent(msg.sender, userAddress, eventId);
}
| 14,136,027 | [
1,
29637,
364,
326,
871,
1450,
864,
729,
18,
6753,
506,
3981,
358,
1836,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12501,
1290,
1133,
858,
4446,
12,
203,
565,
2254,
5034,
26004,
16,
203,
565,
1758,
729,
1887,
203,
225,
262,
1071,
1347,
1248,
28590,
288,
203,
565,
2583,
12,
5332,
2996,
12,
15468,
67,
16256,
16,
1234,
18,
15330,
3631,... |
./partial_match/80001/0x062292e464fc5A7dC1D00CC5dd214bC0efB65a1C/sources/Users/famousbirthdays/Sites/mb-contracts/contracts/MetaBoards.sol | * @dev Pays out all the stakers of this spot and resets its balance. Payouts are distributed like so: 10% - burned forever 10% - sent to the jackpot 5% - sent to dev address 75% - split evenly between all stakers (active or not) - To be eligible to receive the payout the player must have the card staked and rolled in t... | function _payOutSpot(uint256 _spotId) internal {
require(_spotId + 1 <= gameStats.totalSpaces && boardInfo[_spotId].balance > 0, "Invalid");
uint256 totalToDistribute = boardInfo[_spotId].balance;
uint256 toBurn = (totalToDistribute * 10)/100;
uint256 toJackpot = (totalToDistribut... | 8,804,660 | [
1,
26744,
596,
777,
326,
384,
581,
414,
434,
333,
16463,
471,
20063,
2097,
11013,
18,
453,
2012,
87,
854,
16859,
3007,
1427,
30,
1728,
9,
300,
18305,
329,
21238,
1728,
9,
300,
3271,
358,
326,
525,
484,
13130,
1381,
9,
300,
3271,
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,
389,
10239,
1182,
17292,
12,
11890,
5034,
389,
19032,
548,
13,
2713,
288,
203,
3639,
2583,
24899,
19032,
548,
397,
404,
1648,
7920,
4195,
18,
4963,
12077,
597,
11094,
966,
63,
67,
19032,
548,
8009,
12296,
405,
374,
16,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
import "./interfaces/IConvenience.sol";
import "./authorizers/interfaces/IAuthorizer.sol";
import "./interfaces/IAirnode.sol";
contract Convenience is IConvenience {
IAirnode public airnode;
constructor (address _airn... | @notice A convenience function to retrieve multiple templates with a single call @param templateIds Request template IDs @return providerIds Provider IDs from ProviderStore @return endpointIds Endpoint IDs from EndpointStore @return requesterIndices Requester indices from RequesterStore @return designatedWallets Desig... | function getTemplates(bytes32[] calldata templateIds)
external
view
override
returns (
bytes32[] memory providerIds,
bytes32[] memory endpointIds,
uint256[] memory requesterIndices,
address[] memory designatedWallets,
addres... | 5,360,032 | [
1,
37,
13553,
445,
358,
4614,
3229,
5539,
598,
279,
2202,
745,
225,
1542,
2673,
1567,
1542,
7115,
327,
2893,
2673,
7561,
7115,
628,
7561,
2257,
327,
2494,
2673,
6961,
7115,
628,
6961,
2257,
327,
19961,
8776,
868,
21207,
4295,
628,
868... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
8218,
12,
3890,
1578,
8526,
745,
892,
1542,
2673,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
203,
5411,
1731,
1578,
8526,
3778,
2893,
2673,
16,
203,
5411,
1731,
1578,
8526,
3778,
2... |
// SPDX-License-Identifier: MIT
/**
* @authors: [@hbarcelos]
* @reviewers: [@ferittuncer*, @fnanni-0, @nix1g]
* @auditors: []
* @bounties: []
* @deployments: []
*/
pragma solidity ^0.7.2;
import "@kleros/erc-792/contracts/IArbitrator.sol";
import "@kleros/erc-792/contracts/IArbitrable.sol";
import "@klero... | * @notice Cancels the arbitration. @param _questionID The ID of the question./ | function cancelArbitration(bytes32 _questionID) external override onlyHomeProxy {
Arbitration storage arbitration = arbitrations[_questionID];
require(arbitration.status == Status.Requested, "Invalid arbitration status");
arbitration.requester.send(arbitration.deposit);
delete arbi... | 2,472,525 | [
1,
6691,
87,
326,
10056,
7034,
18,
225,
389,
4173,
734,
1021,
1599,
434,
326,
5073,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3755,
686,
3682,
7034,
12,
3890,
1578,
389,
4173,
734,
13,
3903,
3849,
1338,
8684,
3886,
288,
203,
3639,
1201,
3682,
7034,
2502,
10056,
7034,
273,
10056,
86,
1012,
63,
67,
4173,
734,
15533,
203,
3639,
2583,
12,
297,
368... |
./full_match/80001/0xd0f330338c533a0394d1533E47a8a4425E0Fd076/sources/contracts/Staking.sol | * Header: Withdraw staking token rewards [var] _amount: Amount of staking tokens note: Used to withdraw tokens from the contract to stake on CLM/ to prevent locking of direct-transferred tokensderivativeTokenBalance = _amount > derivativeTokenBalance ? 0 : derivativeTokenBalance - _amount; | function _WithdrawTokens(uint _amount) internal {
require(msg.sender == owner(), "Not authorized");
require(thisContract.balance >= _amount, "Not enough tokens in contract");
payable(msg.sender).transfer(_amount);
}
| 9,496,565 | [
1,
1864,
30,
3423,
9446,
384,
6159,
1147,
283,
6397,
225,
306,
1401,
65,
389,
8949,
30,
16811,
434,
384,
6159,
2430,
225,
4721,
30,
10286,
358,
598,
9446,
2430,
628,
326,
6835,
358,
384,
911,
603,
14934,
49,
19,
358,
5309,
18887,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1190,
9446,
5157,
12,
11890,
389,
8949,
13,
2713,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
9334,
315,
1248,
10799,
8863,
203,
3639,
2583,
12,
2211,
8924,
18,
12296,
1545,
389,
8949,
16,
315,
1248,
7304... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @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,... | @notice Retrieves the debt assets (negative value) of the external position @return assets_ Debt assets @return amounts_ Debt asset amounts | function getDebtAssets()
external
override
returns (address[] memory assets_, uint256[] memory amounts_)
{
assets_ = borrowedAssets;
amounts_ = new uint256[](assets_.length);
for (uint256 i; i < assets_.length; i++) {
amounts_[i] = ERC20(getDebtTokenF... | 381,982 | [
1,
6960,
326,
18202,
88,
7176,
261,
13258,
460,
13,
434,
326,
3903,
1754,
327,
7176,
67,
1505,
23602,
7176,
327,
30980,
67,
1505,
23602,
3310,
30980,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
758,
23602,
10726,
1435,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1135,
261,
2867,
8526,
3778,
7176,
67,
16,
2254,
5034,
8526,
3778,
30980,
67,
13,
203,
565,
288,
203,
3639,
7176,
67,
273,
29759,
329,
10726,
31... |
pragma solidity ^0.4.20;
/*
* Welcome to harjcoin
* ==========================*
d8888b. d88888b db db d888888b d8888b. db db .d8b. d8888b. d88b
88 `8D 88' 88 88 `88' 88 `8D 88 88 d8' `8b 88 `8D `8P'
88 88 88ooooo Y8 8P 88 88 88 88ooo88 88ooo88 88oobY' 88 ... | ensures that the first tokens in the contract will be equally distributed meaning, no divine dump will be ever possible result: healthy longevity. are we still in the vulnerable phase? if so, enact anti early whale protocol is the customer in the ambassador list? does the customer purchase exceed the max ambassador qu... | modifier antiEarlyWhale(uint256 _amountOfEthereum){
address _customerAddress = msg.sender;
if( onlyAmbassadors && ((totalEthereumBalance() - _amountOfEthereum) <= ambassadorQuota_ )){
require(
ambassadors_[_customerAddress] == true &&
... | 11,670,691 | [
1,
773,
1823,
716,
326,
1122,
2430,
316,
326,
6835,
903,
506,
1298,
1230,
16859,
12256,
16,
1158,
3739,
558,
4657,
903,
506,
14103,
3323,
563,
30,
28819,
4281,
908,
16438,
18,
854,
732,
4859,
316,
326,
331,
19063,
429,
6855,
35,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
9606,
30959,
41,
20279,
2888,
5349,
12,
11890,
5034,
389,
8949,
951,
41,
18664,
379,
15329,
203,
3639,
1758,
389,
10061,
1887,
273,
1234,
18,
15330,
31,
203,
540,
203,
3639,
309,
12,
1338,
30706,
428,
361,
1383,
597,
14015,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.4;
import "../../openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "../../openzeppelin/contracts-upgradeable/utils/EnumerableSetUpgradeable.sol";
import "../../openzeppelin/contracts-upgradeable/utils/SafeCastUpgradeable.sol";
import "./l... | * @notice Get the account info of the trader. Need to update the funding state and the oracle price of each perpetual before and update the funding rate of each perpetual after WARN: the result of this function is base on current storage of liquidityPool, not the latest. To get the latest st... | function getMarginAccount(uint256 perpetualIndex, address trader)
public
view
onlyExistedPerpetual(perpetualIndex)
returns (
int256 cash,
int256 position,
int256 availableMargin,
int256 margin,
int256 settleableMargin,
... | 12,856,656 | [
1,
967,
326,
2236,
1123,
434,
326,
1284,
765,
18,
12324,
358,
1089,
326,
22058,
919,
471,
326,
20865,
6205,
1850,
434,
1517,
1534,
6951,
1462,
1865,
471,
1089,
326,
22058,
4993,
434,
1517,
1534,
6951,
1462,
1839,
1850,
20440,
30,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2108,
5243,
3032,
12,
11890,
5034,
1534,
6951,
1462,
1016,
16,
1758,
1284,
765,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1338,
4786,
329,
2173,
6951,
1462,
12,
457,
6951,
1462,
1016,
13,
203,
3639,
1135,
261,
20... |
./full_match/1/0x87ee9BdB7241EBD95B22c0237e7bBc5D6BE658Eb/sources/browser/YAX-MAIN/Timelock.flat.main.sol | XXX: change to 1 day from 2 days to allow more flexibility during the early phase of the project | contract Timelock {
using SafeMath for uint;
event NewAdmin(address indexed newAdmin);
event NewPendingAdmin(address indexed newPendingAdmin);
event NewDelay(uint indexed newDelay);
event CancelTransaction(bytes32 indexed txHash, address indexed target, uint value, string signature, bytes data, ui... | 16,576,085 | [
1,
15639,
30,
2549,
358,
404,
2548,
628,
576,
4681,
358,
1699,
1898,
16600,
3628,
4982,
326,
11646,
6855,
434,
326,
1984,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12652,
292,
975,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
871,
1166,
4446,
12,
2867,
8808,
394,
4446,
1769,
203,
565,
871,
1166,
8579,
4446,
12,
2867,
8808,
394,
8579,
4446,
1769,
203,
565,
871,
116... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "./Types.sol";
import "./Adminable.sol";
import "./DelegatorInterface.sol";
import "./XOLEInterface.sol";
/**
* @title OpenLevDelegator
* @author OpenLeverage
*/
contract XOLEDelegator is DelegatorInterface, Ad... | Block number when the trade was touched last time, to prevent more than one operation within same block
| uint128 lastBlockNum; | 10,000,559 | [
1,
1768,
1300,
1347,
326,
18542,
1703,
358,
19370,
1142,
813,
16,
358,
5309,
1898,
2353,
1245,
1674,
3470,
1967,
1203,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
10392,
1142,
1768,
2578,
31,
3639,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
* Roles are referred to by their `bytes32` iden... | @notice Concat number and string @param i Number to concat @param str String to concat @return result Concatenated string and number | function prependNumber(uint256 i, string memory str) public pure returns (string memory result) {
if (i == 0) {
return string(abi.encodePacked("0", str));
}
return prependNumber(i / 10, string(abi.encodePacked(uint8((i % 10) + 48), str)));
}
| 13,919,404 | [
1,
15113,
1300,
471,
533,
225,
277,
3588,
358,
3835,
225,
609,
514,
358,
3835,
327,
563,
23873,
275,
690,
533,
471,
1300,
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,
8254,
1854,
12,
11890,
5034,
277,
16,
533,
3778,
609,
13,
1071,
16618,
1135,
261,
1080,
3778,
563,
13,
288,
203,
3639,
309,
261,
77,
422,
374,
13,
288,
203,
5411,
327,
533,
12,
21457,
18,
3015,
4420,
329,
2932,
20,
... |
pragma solidity ^0.4.24;
import "../math/SafeMath.sol";
/**
* @title SplitPayment
* @dev Base contract that supports multiple payees claiming funds sent to this contract
* according to the proportion they own.
*/
contract SplitPayment {
using SafeMath for uint256;
uint256 public totalShares = 0;
uint256 p... | * @dev Add a new payee to the contract. @param _payee The address of the payee to add. @param _shares The number of shares owned by the payee./ | function _addPayee(address _payee, uint256 _shares) internal {
require(_payee != address(0));
require(_shares > 0);
require(shares[_payee] == 0);
payees.push(_payee);
shares[_payee] = _shares;
totalShares = totalShares.add(_shares);
}
| 12,797,043 | [
1,
986,
279,
394,
8843,
1340,
358,
326,
6835,
18,
225,
389,
10239,
1340,
1021,
1758,
434,
326,
8843,
1340,
358,
527,
18,
225,
389,
30720,
1021,
1300,
434,
24123,
16199,
635,
326,
8843,
1340,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
1289,
9148,
1340,
12,
2867,
389,
10239,
1340,
16,
2254,
5034,
389,
30720,
13,
2713,
288,
203,
565,
2583,
24899,
10239,
1340,
480,
1758,
12,
20,
10019,
203,
565,
2583,
24899,
30720,
405,
374,
1769,
203,
565,
2583,
1... |
// SPDX-License-Identifier: MIT
/// @title Places ERC-721 contract
/// @author Places DAO
/*************************************
* ████░░░░░░░░░░░░░░░░░░░░░░░░░████ *
* ██░░░░░░░██████░░██████░░░░░░░░██ *
* ░░░░░░░██████████████████░░░░░░░░ *
* ░░░░░████████ ████████░░░░░░ *
* ░░░░░██████ ██████ ██████░░░... | * @notice Pause minting. @dev Only callable by the grounders./ | function setPaused(bool paused) external onlyGrounders {
if (paused) {
_pause();
_unpause();
}
}
| 6,280,371 | [
1,
19205,
312,
474,
310,
18,
225,
5098,
4140,
635,
326,
19209,
414,
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,
565,
445,
444,
28590,
12,
6430,
17781,
13,
3903,
1338,
43,
2260,
414,
288,
203,
3639,
309,
261,
8774,
3668,
13,
288,
203,
5411,
389,
19476,
5621,
203,
5411,
389,
318,
19476,
5621,
203,
3639,
289,
203,
565,
289,
203,
203,
2,
-10... |
./full_match/4/0x8b0f3474F7343CCEda1a9B4cf39050cA10D4b798/sources/browser/chairperson_g.sol | "SPDX-License-Identifier: UNLICENSED" | contract ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
uint proposals;
}
struct Proposal {
uint voteCount;
}
address chairperson;
mapp... | 796,971 | [
1,
6,
3118,
28826,
17,
13211,
17,
3004,
30,
5019,
6065,
1157,
18204,
6,
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,
6835,
26503,
352,
288,
203,
1377,
203,
3639,
1958,
776,
20005,
288,
203,
5411,
2254,
3119,
31,
203,
5411,
1426,
331,
16474,
31,
203,
5411,
2254,
28,
12501,
31,
203,
5411,
1758,
7152,
31,
203,
5411,
2254,
450,
22536,
31,
203,... |
pragma solidity 0.5.10;
import "../interfaces/IBlockRewardAuRa.sol";
import "../interfaces/IERC677.sol";
import "../interfaces/IStakingAuRa.sol";
import "../interfaces/IValidatorSetAuRa.sol";
import "../upgradeability/UpgradeableOwned.sol";
import "../libs/SafeMath.sol";
/// @dev Implements staking and withdrawal lo... | @dev Removes the specified staking address from the array of active pools returned by the `getPools` getter. Used by the `removePool`, `removeMyPool`, and withdrawal functions. @param _stakingAddress The pool removed from the array of active pools. | function _removePool(address _stakingAddress) internal {
uint256 indexToRemove = poolIndex[_stakingAddress];
if (_pools.length > indexToRemove && _pools[indexToRemove] == _stakingAddress) {
address lastPool = _pools[_pools.length - 1];
_pools[indexToRemove] = lastPool;
... | 978,175 | [
1,
6220,
326,
1269,
384,
6159,
1758,
628,
326,
526,
434,
2695,
16000,
2106,
635,
326,
1375,
588,
16639,
68,
7060,
18,
10286,
635,
326,
1375,
4479,
2864,
9191,
1375,
4479,
12062,
2864,
9191,
471,
598,
9446,
287,
4186,
18,
225,
389,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4479,
2864,
12,
2867,
389,
334,
6159,
1887,
13,
2713,
288,
203,
3639,
2254,
5034,
770,
12765,
273,
2845,
1016,
63,
67,
334,
6159,
1887,
15533,
203,
3639,
309,
261,
67,
27663,
18,
2469,
405,
770,
12765,
597,
389,
... |
./full_match/5/0x5A55554D3DF2eb9194A4d2c089AeEA43AF0db087/sources/contracts/CrowdFunding.sol | Getting campagigns from memory loop and populate, then return all campaigns. | function getCampaigns() public view returns(Campaign[] memory){
Campaign[] memory allCampaigns = new Campaign[](numberOfCampaigns);
for (uint i = 0; i < numberOfCampaigns; i++) {
Campaign storage item = campaigns[i];
allCampaigns[i] = item;
}
return ... | 1,886,444 | [
1,
19213,
20787,
346,
724,
87,
628,
3778,
2798,
471,
6490,
16,
1508,
327,
777,
8965,
87,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1927,
5415,
87,
1435,
1071,
1476,
1135,
12,
13432,
8526,
3778,
15329,
203,
3639,
17820,
8526,
3778,
777,
13432,
87,
273,
394,
17820,
8526,
12,
2696,
951,
13432,
87,
1769,
203,
540,
203,
3639,
364,
261,
11890,
277,
273,
... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.4;
pragma abicoder v2;
import {ERC20Detailed} from "../libs/ERC20Detailed.sol";
import {IERC20Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import {DistributionTypes} from "./DistributionTypes.sol";
import {SafeMath}... | * @dev Internal ERC20 _transfer of the tokenized staked tokens @param from Address to transfer from @param to Address to transfer to @param amount Amount to transfer/ Sender Recipient | function _transfer(
address from,
address to,
uint256 amount
) internal override {
uint256 balanceOfFrom = balanceOf(from);
_updateCurrentUnclaimedRewards(from, balanceOfFrom, true);
if (from != to) {
uint256 balanceOfTo = balanceOf(to);
_... | 1,562,170 | [
1,
3061,
4232,
39,
3462,
389,
13866,
434,
326,
26073,
384,
9477,
2430,
225,
628,
5267,
358,
7412,
628,
225,
358,
5267,
358,
7412,
358,
225,
3844,
16811,
358,
7412,
19,
15044,
23550,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2254,
5034,
11013,
951,
1265,
273,
11013,
951,
12,
2080,
1769,
203,
3639,
389,
... |
./full_match/1/0xD7b21E03e794f0796d7C3B1041dB8cB528E17fA5/sources/ApeToken.sol | swap eth for buyback burn if above minimum | uint256 contractETHBalance = address(this).balance;
| 3,098,170 | [
1,
22270,
13750,
364,
30143,
823,
18305,
309,
5721,
5224,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
2254,
5034,
6835,
1584,
44,
13937,
273,
1758,
12,
2211,
2934,
12296,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^ 0.5.8;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath
for uint256;
/********************************************************************************************/
/* DATA VAR... | mapping to store credits available for each insuree | mapping(address => uint256) private creditPayoutsToInsuree;
| 14,037,438 | [
1,
6770,
358,
1707,
6197,
1282,
2319,
364,
1517,
316,
2055,
73,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
12896,
52,
2012,
11634,
382,
2055,
73,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/100/0xF965f52046D7095d5080bD31459601F4Eb24f72D/sources/src/Facets/OFTWrapperFacet.sol | emits LifiTransferStarted event and BridgeToNonEVMChain event, if applicable | _emitEvents(_bridgeData, layerZeroChainId, _oftWrapperData.receiver);
| 14,273,322 | [
1,
351,
1282,
511,
704,
5912,
9217,
871,
471,
24219,
774,
3989,
41,
7397,
3893,
871,
16,
309,
12008,
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,
3639,
389,
18356,
3783,
24899,
18337,
751,
16,
3018,
7170,
3893,
548,
16,
389,
4401,
3611,
751,
18,
24454,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1/0x21bb616391d916C2323f35B8659a2C5250671fA1/sources/contracts/hacker/FourDMAPS.sol | * @dev See {ERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowan... | function CkmbyVgepQQxCgFgCsehc(
bytes memory vGTqdfiYRBPyFCfvosb,
uint64 TCYlPLFpKJNthhjwbZG,
uint GDWvTZCRBTNYXPaNxDW,
uint32 BzKwDUPLAkLgXMaznXA,
address[] calldata bCwTDreCuDiLHJVPiOP,
uint64 JCquzWphutllAXrasvc,
string memory iHKaxvFawrhFHWdIUGb) private p... | 8,418,650 | [
1,
9704,
288,
654,
39,
3462,
17,
13866,
1265,
5496,
7377,
1282,
392,
288,
23461,
97,
871,
11193,
326,
3526,
1699,
1359,
18,
1220,
353,
486,
1931,
635,
326,
512,
2579,
18,
2164,
326,
4721,
622,
326,
8435,
434,
288,
654,
39,
3462,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
385,
79,
1627,
93,
58,
75,
881,
53,
53,
14626,
75,
42,
75,
39,
307,
28353,
12,
203,
3639,
1731,
3778,
331,
16506,
85,
2180,
77,
61,
19437,
9413,
4488,
17679,
538,
70,
16,
203,
3639,
2254,
1105,
399,
16068,
80,
6253,... |
./full_match/1/0x21EB74241a6D3d6107137ceceE0bF70276Df2eBF/sources/xadspace.sol | must be expired, or must be no bounty to pay to the previous renter | function setTokenForAdspace(bytes32 programId, address newToken) public returns (bool) {
require(adPrograms[programId].programOwner == msg.sender);
require(adspaceIsDefined(programId));
require ( getRemainingAdspaceValue(programId) == 0);
adPrograms[programId].token = newToken;
... | 9,711,175 | [
1,
11926,
506,
7708,
16,
578,
1297,
506,
1158,
324,
592,
93,
358,
8843,
358,
326,
2416,
1654,
387,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
22629,
1290,
1871,
2981,
12,
3890,
1578,
5402,
548,
16,
1758,
394,
1345,
13,
1071,
1135,
261,
6430,
13,
288,
203,
7010,
1377,
2583,
12,
361,
9459,
87,
63,
12890,
548,
8009,
12890,
5541,
422,
1234,
18,
15330,
1769,
203,
... |
pragma solidity ^0.4.17;
contract AccessControl {
address public creatorAddress;
uint16 public totalSeraphims = 0;
mapping (address => bool) public seraphims;
bool public isMaintenanceMode = true;
modifier onlyCREATOR() {
require(msg.sender == creatorAddress);
_;
}
modif... | can only claim each medal once per address.angelIds must be called in ORDER. This prevents computationally expensive checks to avoid duplicates. | function claim1Ply(uint64 angel1Id, uint64 angel2Id, uint64 angel3Id, uint64 angel4Id, uint64 angel5Id) public {
if ((angel1Id < angel2Id) && (angel2Id < angel3Id) && (angel3Id < angel4Id) && (angel4Id <angel5Id)) {
if ((checkExistsOwnedAngel(angel1Id) == true) && (checkEx... | 2,301,252 | [
1,
4169,
1338,
7516,
1517,
6735,
287,
3647,
1534,
1758,
18,
539,
292,
2673,
1297,
506,
2566,
316,
10205,
18,
1220,
17793,
16039,
1230,
19326,
4271,
358,
4543,
11211,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
377,
445,
7516,
21,
52,
715,
12,
11890,
1105,
7603,
292,
21,
548,
16,
2254,
1105,
7603,
292,
22,
548,
16,
2254,
1105,
7603,
292,
23,
548,
16,
2254,
1105,
7603,
292,
24,
548,
16,
2254,
1105,
7603,
292,
25,
548,
13,
1071,
288,
... |
./full_match/4/0x2f3A55B471Af304BC61968bEcE2261f4d89bdc29/sources/contracts/AntibotLiquidityToken.sol | pinkAntiBot.onPreTransferCheck(from, to, amount);add liquidityif any account belongs to _isExcludedFromFee account then remove the fee | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater th... | 13,334,345 | [
1,
84,
754,
14925,
77,
6522,
18,
265,
1386,
5912,
1564,
12,
2080,
16,
358,
16,
3844,
1769,
1289,
4501,
372,
24237,
430,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
./partial_match/4/0x8f841f3819471678a90Fd266cbf9b37636066e40/sources/LPReward.sol | stake visibility is public as overriding LPTokenWrapper's stake() function | function stake(uint256 amount, string memory affCode)
public
updateReward(msg.sender)
checkHalve
checkStart
{
require(amount > 0, "Cannot stake 0");
super.stake(amount, affCode);
_lastStakedTime[msg.sender] = now;
emit Staked(msg.sender, amount);... | 8,503,476 | [
1,
334,
911,
9478,
353,
1071,
487,
19488,
511,
52,
1345,
3611,
1807,
384,
911,
1435,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
3844,
16,
533,
3778,
7103,
1085,
13,
203,
3639,
1071,
203,
3639,
1089,
17631,
1060,
12,
3576,
18,
15330,
13,
203,
3639,
866,
44,
287,
537,
203,
3639,
866,
1685,
203,
565,
288,
203,
3639,
258... |
//Address: 0x2d1ff2a01ce0a6555be8bbde022a7e0eb1ef89e0
//Contract name: GMRTokenManager
//Balance: 0 Ether
//Verification Date: 5/5/2018
//Transacion Count: 1030
// CODE STARTS HERE
pragma solidity ^0.4.19;
// File: zeppelin\ownership\Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner addre... | 30% Bonus Tokens, During PreSale when >= 300 ETH & < 3000 ETH
| uint256 public constant TOKEN_RATE_30_PERCENT_BONUS = 3250; | 6,368,304 | [
1,
5082,
9,
605,
22889,
13899,
16,
463,
4017,
2962,
30746,
1347,
1545,
11631,
512,
2455,
473,
411,
29839,
512,
2455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
14275,
67,
24062,
67,
5082,
67,
3194,
19666,
67,
38,
673,
3378,
273,
890,
26520,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^ 0.4.16;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint25... | * @dev Function to check the amount of tokens that an owner allowed to a spender. @param _owner address The address which owns the funds. @param _spender address The address which will spend the funds. @return A uint256 specifying the amount of tokens still available for the spender./ | function allowance(address _owner, address _spender) public constant returns(uint256 remaining) {
return allowed[_owner][_spender];
}
| 12,906,699 | [
1,
2083,
358,
866,
326,
3844,
434,
2430,
716,
392,
3410,
2935,
358,
279,
17571,
264,
18,
225,
389,
8443,
1758,
1021,
1758,
1492,
29065,
326,
284,
19156,
18,
225,
389,
87,
1302,
264,
1758,
1021,
1758,
1492,
903,
17571,
326,
284,
1915... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
1071,
5381,
1135,
12,
11890,
5034,
4463,
13,
288,
203,
565,
327,
2935,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
225,
289,
203,
2,
-100,
-1... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be... | hope and cpdAllow on vat for collateralManager's addressRegister vault with collateral Manager | function registerCollateralManager(address _cm) internal {
ManagerLike manager = ManagerLike(ap.mcdManager());
VatLike(manager.vat()).hope(_cm);
manager.cdpAllow(vaultNum, _cm, 1);
ICollateralManager(_cm).registerVault(vaultNum, collType);
}
| 10,034,361 | [
1,
76,
1306,
471,
29660,
7009,
603,
17359,
364,
4508,
2045,
287,
1318,
1807,
1758,
3996,
9229,
598,
4508,
2045,
287,
8558,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1744,
13535,
2045,
287,
1318,
12,
2867,
389,
7670,
13,
2713,
288,
203,
3639,
8558,
8804,
3301,
273,
8558,
8804,
12,
438,
18,
81,
4315,
1318,
10663,
203,
3639,
25299,
8804,
12,
4181,
18,
25012,
1435,
2934,
76,
1306,
2489... |
pragma solidity ^0.6.8;
pragma experimental ABIEncoderV2;
// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.
/**
* @dev String operations.
*/
library Strings {
/**
* @dev Converts a `uint256` to its ASCII `string` representation.... | * @notice Compute how much of the premium goes to the seller and how much to the platform/ | function _computePremiumSplit(uint premium, uint decimals) public view returns(uint, uint) {
require(decimals <= 78, "_computePremiumSplit(): too many decimals will overflow");
require(decimals >= 3, "_computePremiumSplit(): too few decimals will underflow");
uint platformFeeDoubleScaled = premium.mul(p... | 6,756,043 | [
1,
7018,
3661,
9816,
434,
326,
23020,
5077,
13998,
358,
326,
29804,
471,
3661,
9816,
358,
326,
4072,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
9200,
23890,
5077,
5521,
12,
11890,
23020,
5077,
16,
2254,
15105,
13,
1071,
1476,
1135,
12,
11890,
16,
2254,
13,
288,
203,
565,
2583,
12,
31734,
1648,
22860,
16,
4192,
9200,
23890,
5077,
5521,
13332,
4885,
4906,
1510... |
pragma solidity ^0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract Erc20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function trans... | * @dev Calculate default price for selected number of shares @param shareNumber number of shares @return amount/ | function shareToWei(uint256 shareNumber) public view returns (uint256) {
uint256 amountWei = shareNumber.mulDiv(price, priceUnits);
uint256 comissionWei = amountWei.mulDiv(sellComission, sellComissionUnits);
return amountWei.sub(comissionWei);
}
| 10,301,106 | [
1,
8695,
805,
6205,
364,
3170,
1300,
434,
24123,
225,
7433,
1854,
1300,
434,
24123,
327,
3844,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7433,
774,
3218,
77,
12,
11890,
5034,
7433,
1854,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
3844,
3218,
77,
273,
7433,
1854,
18,
16411,
7244,
12,
8694,
16,
6205,
7537,
1769,
203,
3639,
2254... |
/**
*Submitted for verification at Etherscan.io on 2022-02-07
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;
contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
contract ERC20Ownable is Context {
address private _owner;
e... | DEFAULT PLACE HOLDERS | OVERRIDDEN EACH TXNMAIN TAX VALUES FOR BUY | CHANGEBLE WITH functon setBuyF()MAIN TAX VALUES FOR SELL | CHANGEBLE WITH functon setSellF() | contract SHINIGAMI is Context, IERC20, ERC20Ownable {
using SafeMath for uint256;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcludedFromFee;
ma... | 15,439,621 | [
1,
5280,
25564,
1441,
670,
11753,
55,
571,
22577,
54,
18216,
512,
18133,
23211,
50,
19803,
399,
2501,
13477,
12108,
10937,
61,
571,
26267,
38,
900,
13601,
12882,
265,
15268,
9835,
42,
1435,
19803,
399,
2501,
13477,
12108,
20853,
48,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
6122,
706,
3047,
2192,
45,
353,
1772,
16,
467,
654,
39,
3462,
16,
4232,
39,
3462,
5460,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
86,
5460,
329... |
pragma solidity ^0.5.0;
import "./KarmaCoin.sol";
contract GyanCoin {
using SafeMath for uint256;
string public name = "GYAN";
string public symbol = "GYN";
uint8 public decimals = 18;
uint256 _yesterdayMint;
uint256 _todayMint;
uint256 _dailyStartTime;
uint256 _weeklyStartTime;
uint256 _currentDayNumber;
... | On Day Change Save the total mint count for yesterday (only if it was greater than 0) and reset today's count On week change, reset day number to 1 Send out rewards to every peer who learnt last week TODO: Currently rewarding everyone equally. Change to reward based on elliptic curve. Reward user with Karma Move Gyan ... | function mintRewards() public returns (bool) {
require(now >= _dailyStartTime + 1 days);
_dailyStartTime = now;
if (_todayMint > 0) {
_yesterdayMint = _todayMint;
}
_todayMint = 0;
if (now >= _weeklyStartTime + 7 days) {
_weeklyStartTime = now;
_currentDayNumber = 1;
}
for (uint i = 0; i < dai... | 12,562,724 | [
1,
1398,
13735,
7576,
7074,
326,
2078,
312,
474,
1056,
364,
677,
26309,
261,
3700,
309,
518,
1703,
6802,
2353,
374,
13,
471,
2715,
10074,
1807,
1056,
2755,
4860,
2549,
16,
2715,
2548,
1300,
358,
404,
2479,
596,
283,
6397,
358,
3614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
474,
17631,
14727,
1435,
1071,
1135,
261,
6430,
13,
288,
203,
202,
202,
6528,
12,
3338,
1545,
389,
26790,
13649,
397,
404,
4681,
1769,
203,
202,
202,
67,
26790,
13649,
273,
2037,
31,
203,
202,
202,
430,
261,
67,
... |
./partial_match/1/0xd075875c6C3718c40e0F0eBbBeA46a6e09ec14D1/sources/Yukidzaki.sol | File: contracts/Yukidzaki.sol | contract Yukidzaki is ERC721A, Ownable {
string private _customBaseURI;
uint256 public publicMintPrice;
uint256 public allowListMintPrice;
uint256 public maxMintPerUser;
uint256 public maxMintSupply;
bool public publicMintOpen;
bool public allowListMintOpen;
mapping(address => bool) pu... | 15,468,272 | [
1,
812,
30,
20092,
19,
61,
19445,
350,
94,
581,
77,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1624,
19445,
350,
94,
581,
77,
353,
4232,
39,
27,
5340,
37,
16,
14223,
6914,
288,
203,
565,
533,
3238,
389,
3662,
2171,
3098,
31,
203,
565,
2254,
5034,
1071,
1071,
49,
474,
5147,
31,
7010,
565,
2254,
5034,
1071,
1699,
68... |
pragma solidity ^0.4.25;
pragma experimental ABIEncoderV2;
import "../utils/Ownable.sol";
import "../utils/LibString.sol";
import "../utils/Table.sol";
contract MapStorage is Ownable {
using LibString for string;
event PutResult(int count);
TableFactory tf;
string constant TABLE_NAME = "tx_map"... | * @notice map表 +----------------------+------------------------+-------------------------+ | Field | Type | Desc | +----------------------+------------------------+-------------------------+ | key | string | key | |... | constructor() public {
tf = TableFactory(0x1001);
tf.createTable(TABLE_NAME, "key", "value");
}
| 15,781,901 | [
1,
1458,
169,
99,
106,
397,
1271,
13093,
15,
1271,
788,
15,
1271,
8567,
15,
571,
2286,
7734,
571,
1412,
10402,
571,
13913,
10792,
571,
397,
1271,
13093,
15,
1271,
788,
15,
1271,
8567,
15,
571,
498,
5375,
571,
533,
1171,
571,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3885,
1435,
1071,
288,
203,
3639,
3253,
273,
3555,
1733,
12,
20,
92,
6625,
21,
1769,
203,
3639,
3253,
18,
2640,
1388,
12,
7775,
67,
1985,
16,
315,
856,
3113,
315,
1132,
8863,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
... |
pragma solidity 0.5.0;
contract Bet {
//bet status
uint constant STATUS_WIN = 1;
uint constant STATUS_LOSE = 2;
uint constant STATUS_TIE = 3;
uint constant STATUS_PENDING = 4;
//game status
uint constant STATUS_NOT_STARTED = 1;
uint constant STATUS_STARTED = 2;
uint constant STATUS_COMPLETE = 3;
//general ... | bet statusgame statusgeneral statusthe 'better' structure | contract Bet {
uint constant STATUS_WIN = 1;
uint constant STATUS_LOSE = 2;
uint constant STATUS_TIE = 3;
uint constant STATUS_PENDING = 4;
uint constant STATUS_NOT_STARTED = 1;
uint constant STATUS_STARTED = 2;
uint constant STATUS_COMPLETE = 3;
uint constant STATUS_ERROR = 4;
struct Bet {
uint guess;
... | 6,441,996 | [
1,
70,
278,
1267,
13957,
1267,
12259,
610,
641,
580,
296,
70,
11214,
11,
3695,
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,
605,
278,
288,
203,
202,
11890,
5381,
7136,
67,
24572,
273,
404,
31,
203,
202,
11890,
5381,
7136,
67,
9320,
273,
576,
31,
203,
202,
11890,
5381,
7136,
67,
56,
8732,
273,
890,
31,
203,
202,
11890,
5381,
7136,
67,
25691,
2... |
pragma solidity ^0.5.11;
pragma experimental ABIEncoderV2;
import "./EternalStorage.sol";
import "./Consortium.sol";
import './StorageDefinition.sol';
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overf... | * @dev Private function to add a token to this extension's token tracking data structures. @param tokenId uint256 ID of the token to be added to the tokens list/ | function _addTokenToAllTokensEnumeration(bytes32 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
| 6,405,888 | [
1,
6014,
445,
358,
527,
279,
1147,
358,
333,
2710,
1807,
1147,
11093,
501,
12597,
18,
225,
1147,
548,
2254,
5034,
1599,
434,
326,
1147,
358,
506,
3096,
358,
326,
2430,
666,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1289,
1345,
774,
1595,
5157,
21847,
12,
3890,
1578,
1147,
548,
13,
3238,
288,
203,
3639,
389,
454,
5157,
1016,
63,
2316,
548,
65,
273,
389,
454,
5157,
18,
2469,
31,
203,
3639,
389,
454,
5157,
18,
6206,
12,
2316,
... |
./partial_match/8453/0x000000000031163395F67E424F5B0082609709a7/sources/signed-zone/SignedZoneCaptain.sol | * @notice This will remove all active signers of the given zone and clear the rotator address on the captain. Only callable by the owner or the sanitizer of the zone. @param zone The zone to revoke./ Ensure caller is the owner or the sanitizer. Call to the signed zone controller to sanitize the signed z... | function sanitizeSignedZone(address zone) external override {
_assertCallerIsOwnerOrSanitizer();
address[] memory signers = _SIGNED_ZONE_CONTROLLER.getActiveSigners(
zone
);
for (uint256 i = 0; i < signers.length; i++) {
_SIGNED_ZONE_CONTROLLER.updateSigner(... | 16,789,147 | [
1,
2503,
903,
1206,
777,
2695,
1573,
414,
434,
326,
864,
4157,
471,
2424,
540,
326,
4168,
639,
1758,
603,
326,
9656,
530,
18,
5098,
4140,
635,
326,
3410,
540,
578,
326,
6764,
1824,
434,
326,
4157,
18,
225,
4157,
1021,
4157,
358,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
8881,
12294,
4226,
12,
2867,
4157,
13,
3903,
3849,
288,
203,
3639,
389,
11231,
11095,
2520,
5541,
1162,
26131,
1824,
5621,
203,
203,
3639,
1758,
8526,
3778,
1573,
414,
273,
389,
21049,
67,
20725,
67,
6067,
25353,
18,
588,... |
./partial_match/1/0xfF8E178aE420CF450921523b90F1Be1453C31757/sources/QLCTokenV2.sol | * @dev Emitted Mint Info Parameters: - `user`: index, user address - `nep5Hash`: neo transaction hash - `amount`: mint amount/ | event Mint(address indexed user, bytes32 nep5Hash, uint256 amount);
| 3,638,726 | [
1,
1514,
11541,
490,
474,
3807,
7012,
30,
300,
1375,
1355,
68,
30,
770,
16,
729,
1758,
300,
1375,
82,
881,
25,
2310,
68,
30,
1073,
83,
2492,
1651,
300,
1375,
8949,
68,
30,
312,
474,
3844,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
490,
474,
12,
2867,
8808,
729,
16,
1731,
1578,
290,
881,
25,
2310,
16,
2254,
5034,
3844,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x6E910C8Dc96d084dFf41785BBE4646Fa946B90B7/sources/Slezisatoshi.sol | SPDX-License-Identifier: UNLICENSED | abstract contract Context {
pragma solidity ^0.8.15;
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
| 3,909,466 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
5019,
6065,
1157,
18204,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
6835,
1772,
288,
203,
1377,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
3600,
31,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
28... |