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 |
|---|---|---|---|---|---|---|
./partial_match/1/0xFB15127f6464fcBB82b05Dc4b772283236C65167/sources/LexSecurityToken.sol | * prev. withdrawableDividendOf @notice View the amount of funds that an address can withdraw. @param _owner The address of a token holder. @return The amount funds that `_owner` can withdraw./ | function withdrawableFundsOf(address _owner) public view returns(uint256) {
return accumulativeFundsOf(_owner).sub(withdrawnFunds[_owner]);
}
| 3,647,131 | [
1,
10001,
18,
598,
9446,
429,
7244,
26746,
951,
225,
4441,
326,
3844,
434,
284,
19156,
716,
392,
1758,
848,
598,
9446,
18,
225,
389,
8443,
1021,
1758,
434,
279,
1147,
10438,
18,
327,
1021,
3844,
284,
19156,
716,
1375,
67,
8443,
68,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
598,
9446,
429,
42,
19156,
951,
12,
2867,
389,
8443,
13,
1071,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
202,
202,
2463,
8822,
1535,
42,
19156,
951,
24899,
8443,
2934,
1717,
12,
1918,
9446,
82,
42,
19156,
63,
67,
844... |
pragma solidity 0.5.16;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "./interfaces/IIdleTokenV3.sol";
import "./others/BasicMetaTransaction.sol";
import "./GST2Consumer.sol";
contrac... | One should approve this contract first to spend idleTokens _amount of idleTokens to redeem _idleTokenAddr : idle address | function redeemIdleTokensProxy(uint256 _amount, address _idleTokenAddr)
external gasDiscountFrom(address(this)) returns (uint256 tokens) {
IIdleTokenV3 idleToken = IIdleTokenV3(_idleTokenAddr);
IERC20 underlying = IERC20(idleToken.token());
IERC20(address(idleToken)).safeTransferFrom(msgSender(), add... | 1,768,374 | [
1,
3335,
1410,
6617,
537,
333,
6835,
1122,
358,
17571,
12088,
5157,
389,
8949,
434,
12088,
5157,
358,
283,
24903,
389,
20390,
1345,
3178,
294,
12088,
1758,
2,
0,
0,
0,
0,
0,
0,
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,
283,
24903,
13834,
5157,
3886,
12,
11890,
5034,
389,
8949,
16,
1758,
389,
20390,
1345,
3178,
13,
203,
565,
3903,
16189,
9866,
1265,
12,
2867,
12,
2211,
3719,
1135,
261,
11890,
5034,
2430,
13,
288,
203,
565,
467,
13834,
... |
pragma solidity 0.4.24;
import "../Derivative.sol";
import "../interfaces/FundInterface.sol";
import "../interfaces/implementations/OlympusExchangeInterface.sol";
import "../interfaces/WithdrawInterface.sol";
import "../interfaces/MarketplaceInterface.sol";
import "../interfaces/ChargeableInterface.sol";
import "../in... | ----------------------------- CONFIG ----------------------------- One time call Set PausedCycle | function initialize(address _componentList, uint _initialFundFee, uint _withdrawFrequency ) external onlyOwner payable {
require(_componentList != 0x0);
require(status == DerivativeStatus.New);
pausedCycle = 365 days;
super._initialize(_componentList);
excludedComponents[TO... | 13,009,674 | [
1,
1271,
16982,
9128,
12146,
7620,
6942,
813,
745,
1000,
21800,
3668,
13279,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
12,
2867,
389,
4652,
682,
16,
2254,
389,
6769,
42,
1074,
14667,
16,
2254,
389,
1918,
9446,
13865,
262,
3903,
1338,
5541,
8843,
429,
288,
203,
3639,
2583,
24899,
4652,
682,
480,
374,
92,
20,
1769,
203,
3639,
2583,
... |
./full_match/1/0x1111306F3d849B133f533D6E9F7341d40De0cB4b/sources/src/RPVault.sol | @notice vaultState = array of vault states per epoch | mapping(uint256 => VaultState) public vaultStates;
| 8,293,554 | [
1,
26983,
1119,
273,
526,
434,
9229,
5493,
1534,
7632,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
5034,
516,
17329,
1119,
13,
1071,
9229,
7629,
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,
-... |
pragma solidity ^0.4.24;
import "./PreSaleSTO.sol";
import "../ModuleFactory.sol";
import "../../libraries/Util.sol";
/**
* @title Factory for deploying PreSaleSTO module
*/
contract PreSaleSTOFactory is ModuleFactory {
/**
* @notice Constructor
* @param _polyAddress Address of the polytoken
*/
... | solium-disable-next-line security/no-low-level-calls*/ | require(address(preSaleSTO).call(_data), "Unsuccessfull call");
| 1,000,719 | [
1,
18281,
5077,
17,
8394,
17,
4285,
17,
1369,
4373,
19,
2135,
17,
821,
17,
2815,
17,
12550,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
2867,
12,
1484,
30746,
31487,
2934,
1991,
24899,
892,
3631,
315,
984,
4768,
2854,
745,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x8531b6118C70924BFcE5643D0e4306631418648c/sources/DSCCoin.sol | uint8 temp = self.initPercent; | function check(Rule storage self, uint256 totalFrozenValue) internal view returns (uint256) {
if (totalFrozenValue == uint256(0)) {
return 0;
}
if (self.timeT == uint256(0) || self.timeT > block.timestamp) {
return totalFrozenValue.sub(totalFrozenValue.mul(self.initPe... | 4,391,461 | [
1,
11890,
28,
1906,
273,
365,
18,
2738,
8410,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
12,
2175,
2502,
365,
16,
2254,
5034,
2078,
42,
9808,
620,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
4963,
42,
9808,
620,
422,
2254,
5034,
12,
20,
3719,
288,
203,
5411,
327,
374,
31,
... |
./partial_match/1/0x11b2164DDf1C3c0a420cEaD050d422B26530d11C/sources/contracts/facets/AccessControl/AccessControlLib.sol | @notice query admin role for given role @param role role to query @return admin role/ | function getRoleAdmin(
bytes32 role
) internal view returns (bytes32) {
return AccessControlStorage.layout().roles[role].adminRole;
}
| 9,188,880 | [
1,
2271,
3981,
2478,
364,
864,
2478,
225,
2478,
2478,
358,
843,
327,
3981,
2478,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15673,
4446,
12,
203,
3639,
1731,
1578,
2478,
203,
565,
262,
2713,
1476,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
327,
24349,
3245,
18,
6741,
7675,
7774,
63,
4615,
8009,
3666,
2996,
31,
203,
565,
289,
203,
203,
2,
-... |
pragma solidity 0.4.24;
import "../../upgradeability/EternalStorage.sol";
import "../../libraries/Bytes.sol";
contract MessageProcessor is EternalStorage {
/**
* @dev Returns a status of the message that came from the other side.
* @param _messageId id of the message from the other side that triggered a c... | * @dev Sets a status of the message that came from the other side. @param _messageId id of the message from the other side that triggered a call. @param _status execution status, true if executed successfully./ | function setMessageCallStatus(bytes32 _messageId, bool _status) internal {
boolStorage[keccak256(abi.encodePacked("messageCallStatus", _messageId))] = _status;
}
| 980,223 | [
1,
2785,
279,
1267,
434,
326,
883,
716,
22497,
628,
326,
1308,
4889,
18,
225,
389,
2150,
548,
612,
434,
326,
883,
628,
326,
1308,
4889,
716,
10861,
279,
745,
18,
225,
389,
2327,
4588,
1267,
16,
638,
309,
7120,
4985,
18,
19,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15227,
1477,
1482,
12,
3890,
1578,
389,
2150,
548,
16,
1426,
389,
2327,
13,
2713,
288,
203,
3639,
1426,
3245,
63,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
2932,
2150,
1477,
1482,
3113,
389,
2150,
548,
3719,... |
./full_match/1/0x2B6d357b0585Be3DBc448366A23486437ba2015C/sources/lib/solady/src/utils/FixedPointMathLib.sol | @dev Returns a non-zero number if `b` is true, else 0. If `b` is from plain Solidity, the non-zero number will be 1. | function rawBoolToUint(bool b) internal pure returns (uint256 z) {
assembly {
z := b
}
}
| 4,914,269 | [
1,
1356,
279,
1661,
17,
7124,
1300,
309,
1375,
70,
68,
353,
638,
16,
469,
374,
18,
971,
1375,
70,
68,
353,
628,
7351,
348,
7953,
560,
16,
326,
1661,
17,
7124,
1300,
903,
506,
404,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1831,
7464,
774,
5487,
12,
6430,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
998,
13,
288,
203,
3639,
19931,
288,
203,
5411,
998,
519,
324,
203,
3639,
289,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0xC509703234E675623C5eA75258e4E19ec51Cb58E/sources/contracts/BaseBallersNft.sol | uint256 public costForDev = 0 ether; address[] public DevAdrdresses = ["0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2","0x5c6B0f7Bf3E7ce046039Bd8FABdfD3f9F5021678","0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db" ]; | contract BaseBallersNft is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public cost = 0.04 ether;
uint256 public maxSupply = 7000;
uint256 public maxMintAmount = 15;
uint256 public maxMintAm... | 12,400,443 | [
1,
11890,
5034,
1071,
6991,
1290,
8870,
273,
374,
225,
2437,
31,
1758,
8526,
1071,
9562,
1871,
13623,
15807,
273,
8247,
20,
92,
5895,
5193,
10261,
42,
1105,
72,
29,
39,
26,
72,
21,
23057,
42,
29,
70,
5193,
29,
37,
73,
26,
4700,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3360,
38,
454,
414,
50,
1222,
353,
4232,
39,
27,
5340,
3572,
25121,
16,
14223,
6914,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
225,
533,
1071,
1026,
3098,
31,
203,
225,
533,
1071,
1026,
3625,
273,
3552,
1... |
pragma solidity 0.5.11;
// Rollup solidity implementation
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./Hasher.sol";
import "./Whitelist.sol";
import "./MerkleTree.sol";
import {WithdrawVerifier as WithdrawVerifier} from "./WithdrawVerifier.sol";
import {TxVerifier as TxVerifier} from "./TxVerifier.s... | index => hash(public key) | mapping(uint256 => uint256) balanceTreeKeys;
| 2,566,730 | [
1,
1615,
516,
1651,
12,
482,
498,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
2874,
12,
11890,
5034,
516,
2254,
5034,
13,
11013,
2471,
2396,
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,
-... |
./partial_match/1/0x7b05cE308915299B0a31D5E5f020b4DE66779BCa/sources/contracts/BSGGStaking.sol | @notice Pause new Staking @return bool | function pause() external onlyOwner returns (bool) {
_pause();
emit Paused(true);
return true;
}
| 9,150,371 | [
1,
19205,
394,
934,
6159,
327,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11722,
1435,
3903,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
3639,
389,
19476,
5621,
203,
3639,
3626,
21800,
3668,
12,
3767,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/8453/0x2d3D67271C48D5E952113799828bcBC02cd70a82/sources/RouterV2.sol | helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false | library TransferHelper {
function safeApprove(
address token,
address to,
uint256 value
pragma solidity >=0.6.0;
) internal {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
require(
success && (data.length == 0... | 16,730,160 | [
1,
4759,
2590,
364,
16592,
310,
598,
4232,
39,
3462,
2430,
471,
5431,
512,
2455,
716,
741,
486,
11071,
715,
327,
638,
19,
5743,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
12279,
2276,
288,
203,
565,
445,
4183,
12053,
537,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
203,
203,
203,
683,
9454,
18035,
560,
1545,
20,
18,
26,
18,
20,
31,
203,
565,
262,
... |
// SPDX-License-Identifier: MIT
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";
pragma solidity >=0.8.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint2... | -------------------- Randomness Functions ---------------------* Requests randomness/ | function getRandomNumber() public returns (bytes32 requestId) {
require(
LINK.balanceOf(address(this)) >= fee,
"Not enough LINK - fill contract with faucet"
);
return requestRandomness(keyHash, fee);
}
| 1,752,494 | [
1,
1271,
553,
8072,
4496,
15486,
12146,
553,
7090,
2744,
4496,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20581,
1854,
1435,
1071,
1135,
261,
3890,
1578,
14459,
13,
288,
203,
3639,
2583,
12,
203,
5411,
22926,
18,
12296,
951,
12,
2867,
12,
2211,
3719,
1545,
14036,
16,
203,
5411,
315,
1248,
7304,
22926,
300,
3636,
6835,
598,
... |
pragma solidity >=0.5;
pragma experimental ABIEncoderV2;
/**
* @title DexStatus
* @dev Status for Dex
*/
contract DexStatus {
string constant ONLY_RELAYER = "ONLY_RELAYER";
string constant ONLY_AIRDROP = "ONLY_AIRDROP";
string constant ONLY_INACTIVITY = "ONLY_INACTIVITY";
string... | * @dev set account that receive the fee/ | function setFeeAccount(address feeAccount) public onlyOwner {
_feeAccount = feeAccount;
}
| 1,805,284 | [
1,
542,
2236,
716,
6798,
326,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
14667,
3032,
12,
2867,
14036,
3032,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
21386,
3032,
273,
14036,
3032,
31,
203,
565,
289,
203,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x936dF79234533F9A7765841653E2e191441A9Ee2/sources/contracts/HoneyBBToken.sol | start from 1 to avoid swap on first tx
| uint256 public transferTxCount = 1; | 4,482,003 | [
1,
1937,
628,
404,
358,
4543,
7720,
603,
1122,
2229,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
7412,
4188,
1380,
273,
404,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/*
* -PlayerBook - v0.3.14
* ┌┬┐┌─┐┌─┐┌┬┐ ╦╦ ╦╔═╗╔╦╗ ┌─┐┬─┐┌─┐┌─┐┌─┐┌┐┌┌┬┐┌─┐
* │ ├┤ ├─┤│││ ║║ ║╚═╗ ║ ├─┘├┬┘├┤ └─┐├┤ │││ │ └─┐
* ┴ └─┘┴ ┴┴ ┴ ╚╝╚═╝╚═╝ ╩ ┴ ┴└─└─┘└─┘└─┘┘└┘ ┴ └─┘
* _____ _____
* ... | ============================================================================== _ _ _|_ _ . _\(/_ | |_||_) .=============|================================================================ PlayerBookReceiverInterface(games_[gID_]).receivePlayerInfo(1, plyr_[1].addr, plyr_[1].name, 0); | function addGame(address _gameAddress, bytes32 _gameNameStr)
external
onlyDevs()
{
require(
gameIDs_[_gameAddress] == 0,
"derp, that games already been registered"
);
if (multiSigDev("addGame") == true) {
deleteProposal("addGame");
... | 997,511 | [
1,
9917,
26678,
282,
389,
389,
389,
96,
67,
565,
389,
282,
263,
225,
389,
30351,
18510,
571,
571,
67,
20081,
67,
13,
225,
263,
14468,
33,
96,
9917,
5411,
19185,
9084,
12952,
1358,
12,
75,
753,
67,
63,
75,
734,
67,
65,
2934,
1814... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
12496,
12,
2867,
389,
13957,
1887,
16,
1731,
1578,
389,
13957,
461,
1585,
13,
203,
3639,
3903,
203,
3639,
1338,
758,
6904,
1435,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
7920,
5103,
67,
63,
67,
13957,
1887,
... |
./full_match/1/0xd5324D3e0Fe24FaB2f05fd70b342aA209119E568/sources/contracts/PermissionedExecutors.sol | @dev To transfer out any ERC20s received | function transfer(
IERC20 _token,
address _recipient,
uint256 _amount
) external onlyOwner {
_token.transfer(_recipient, _amount);
}
| 16,475,760 | [
1,
774,
7412,
596,
1281,
4232,
39,
3462,
87,
5079,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
203,
3639,
467,
654,
39,
3462,
389,
2316,
16,
203,
3639,
1758,
389,
20367,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
389,
2316,
18,
13866,
24899,
20367,
16,
389,
... |
./partial_match/1/0x73D6df4395CD54DF2E07fD3880c1B47Aeb2Aed97/sources/StrategyCurveRenBTC.sol | * @dev Earning strategy that accepts renCRV, earns CRV and converts CRV back to renCRV as yield./ | contract StrategyCurveRenBTC is IStrategy {
using SafeERC20 for IERC20;
using SafeMath for uint256;
event Harvested(address indexed token, uint256 amount);
address public vault;
}
constructor(address _vault) public {
require(_vault != address(0x0), "vault not set");
vault = _vaul... | 4,206,260 | [
1,
41,
9542,
6252,
716,
8104,
1654,
5093,
58,
16,
425,
1303,
87,
6732,
58,
471,
7759,
6732,
58,
1473,
358,
1654,
5093,
58,
487,
2824,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19736,
9423,
16290,
38,
15988,
353,
467,
4525,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
670,
297,
90,
3149,
12,
2867,
... |
./full_match/1/0x2a281305a50627a22eC3e7d82aE656AdFee6D964/sources/BarnOwlz.sol | IPFS URL WILL BE ADDED WHEN OWLS ARE ALL SOLD OUT
| string public OWL_PROVENANCE = ""; | 16,437,921 | [
1,
2579,
4931,
1976,
678,
15125,
9722,
11738,
7660,
29707,
18233,
3045,
432,
862,
8061,
348,
11846,
8210,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1071,
25266,
67,
3373,
58,
1157,
4722,
273,
1408,
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,
-10... |
pragma solidity ^0.4.22;
// 0xdBe3A455Ae330645D931817B7440b1C4f6DcF549, uses 21480 of gas
contract LowGasConsumingPayableFallback {
function() public payable {
for (uint i = 0; i < 10; i++) {}
}
} | 0xdBe3A455Ae330645D931817B7440b1C4f6DcF549, uses 21480 of gas | contract LowGasConsumingPayableFallback {
function() public payable {
}
for (uint i = 0; i < 10; i++) {}
} | 6,410,038 | [
1,
20,
7669,
1919,
23,
37,
24,
2539,
37,
73,
3707,
20,
1105,
25,
40,
11180,
2643,
4033,
38,
5608,
7132,
70,
21,
39,
24,
74,
26,
40,
71,
42,
6564,
29,
16,
4692,
30149,
3672,
434,
16189,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
23629,
27998,
11911,
310,
9148,
429,
12355,
288,
203,
203,
565,
445,
1435,
1071,
8843,
429,
288,
7010,
203,
203,
565,
289,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
1728,
31,
277,
27245,
2618,
203,
97,
2,
... |
/**
* @title Campaign
* @section DESCRIPTION
* Campaign contract created for every new campaign, by invoking the createCampaign(args..)
* in CampaignFactory. Caller of createCamapign will be the manager of the Campign instance.
*/
pragma solidity ^0.4.24;
import "./SafeMath.sol";
import "./Ownable.sol";
import "... | * @dev Payable function recieve funds from backers/ | function contribute() public payable whenNotPaused nonReentrant {
require(msg.value >= minimumContribution && block.timestamp <= deadline);
uint checkAmount = amountRaised.add(msg.value);
if(checkAmount > MAX_LIMIT_FOR_CONTRIB) {
revert();
}
if(backers[msg.sende... | 12,737,753 | [
1,
9148,
429,
445,
1950,
21271,
284,
19156,
628,
1473,
414,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
356,
887,
1435,
1071,
8843,
429,
1347,
1248,
28590,
1661,
426,
8230,
970,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
5224,
442,
4027,
597,
1203,
18,
5508,
1648,
14096,
1769,
203,
3639,
2254,
866,
6275,
273,
3844,
1... |
pragma solidity ^0.4.17;
/**
* The GiftRegistry contract is designed to store funds put up by a "giver" to
* a "recipient" whose Ethereum address is not known or who may not have an
* Ethereum account yet.
*
* To accomplish this, we validate the recipient's claim against a 'signer'
* address. This is defined in... | on failure, will revert state
| payee.transfer(amount); | 884,931 | [
1,
265,
5166,
16,
903,
15226,
919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
8843,
1340,
18,
13866,
12,
8949,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x6Fa7312aBAA3aF6B0D73c7d9CBfb1cafA327a1D8/sources/ERC721ART.sol | transfer to winner
| token223.transfer(_from, nftList[nftIndex].main_prize); | 10,999,402 | [
1,
13866,
358,
5657,
1224,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
3787,
23,
18,
13866,
24899,
2080,
16,
290,
1222,
682,
63,
82,
1222,
1016,
8009,
5254,
67,
683,
554,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2020-10-03
*/
pragma solidity 0.6.0;
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not ... | injected INTEGER OVERFLOW OR UNDERFLOW
| _totalSupply = _totalSupply.sub(_burnAmount); | 7,273,202 | [
1,
267,
6059,
16481,
22577,
17430,
4869,
587,
18556,
17430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
389,
4963,
3088,
1283,
273,
389,
4963,
3088,
1283,
18,
1717,
24899,
70,
321,
6275,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/42220/0xE7E1573c32859Dc022001f3ee5a3bcdCEb921C9d/sources/contracts/PoolBalances.sol | * @dev Stores the Asset Managers (by Pool and token), and implements the top level Asset Manager and Pool interfaces, such as registering and deregistering tokens, joining and exiting Pools, and informational functions like `getPool` and `getPoolTokens`, delegating to specialization-specific functions as needed. `manag... | abstract contract PoolBalances is Fees, ReentrancyGuard, PoolTokens, UserBalance {
using Math for uint256;
using SafeERC20 for IERC20;
using BalanceAllocation for bytes32;
using BalanceAllocation for bytes32[];
function joinPool(
bytes32 poolId,
address sender,
address recip... | 16,340,271 | [
1,
13125,
326,
10494,
490,
11113,
261,
1637,
8828,
471,
1147,
3631,
471,
4792,
326,
1760,
1801,
10494,
8558,
471,
8828,
7349,
16,
4123,
487,
22845,
471,
24310,
310,
2430,
16,
21239,
471,
15702,
453,
8192,
16,
471,
1779,
287,
4186,
300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8828,
38,
26488,
353,
5782,
281,
16,
868,
8230,
12514,
16709,
16,
8828,
5157,
16,
2177,
13937,
288,
203,
565,
1450,
2361,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
... |
pragma solidity ^0.4.25;
import "../contracts/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLES *... | * @dev Transfers eligible payout funds to insuree/ | function pay(address airline, address insuree, uint256 payoutAmount) external
requireIsOperational
{
require(msg.sender == airline);
insurees[insuree].account.transfer(payoutAmount);
emit PayInsuree(airline, insuree, payoutAmount);
}
| 13,048,874 | [
1,
1429,
18881,
21351,
293,
2012,
284,
19156,
358,
316,
2055,
73,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
12,
2867,
23350,
1369,
16,
1758,
316,
2055,
73,
16,
2254,
5034,
293,
2012,
6275,
13,
3903,
203,
565,
2583,
2520,
2988,
287,
203,
565,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
23350,
1369,
1769,
203,
3639,
... |
./partial_match/3/0x6cc9b43f81C40E3BB3Fe544472F2653EE539E75C/sources/MyLotto.sol | * @dev get total eth by user address and saleId/ | function getTotalSaleAmountByAddAndSaleID(uint256 _saleId, address _userAddress) external view returns(uint256){
return totalSaleAmountByAddAndSaleID[_saleId][_userAddress];
}
| 5,278,822 | [
1,
588,
2078,
13750,
635,
729,
1758,
471,
272,
5349,
548,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
12831,
30746,
6275,
858,
986,
1876,
30746,
734,
12,
11890,
5034,
389,
87,
5349,
548,
16,
1758,
389,
1355,
1887,
13,
3903,
1476,
1135,
12,
11890,
5034,
15329,
203,
3639,
327,
2078,
30746,
6275,
858,
986,
1876,
30746,
734,
... |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/access/IAccessControl.sol
pragma solidity ^0.8.0;
interface IAccessControl {
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
event RoleGranted(bytes32 indexed role, address indexed a... | restricted to the house of the role passed as an object to obey | modifier obey(bytes32 role) {
_checkRole(role, _msgSender());
_;
}
| 956,994 | [
1,
29306,
358,
326,
23867,
434,
326,
2478,
2275,
487,
392,
733,
358,
3768,
402,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
3768,
402,
12,
3890,
1578,
2478,
13,
288,
203,
3639,
389,
1893,
2996,
12,
4615,
16,
389,
3576,
12021,
10663,
203,
3639,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/* ==================================================================== */
/* Copyright (c) 2018 The TokenTycoon Project. All rights reserved.
/*
/* https://tokentycoon.io
/*
/* authors rickhunter.shen@gmail.com
/* ssesunding@gmail.com
/* ===============================================... | ManagerId: 6, tokenId: 361~390
| uint64 public nextDiscountTTMTokenId6 = 361; | 7,217,092 | [
1,
1318,
548,
30,
1666,
16,
1147,
548,
30,
6580,
21,
98,
5520,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
1105,
1071,
1024,
9866,
1470,
49,
1345,
548,
26,
273,
6580,
21,
31,
377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x6B473bB10A8b6B8Bea4a0F0D23811f3b620e8384/sources/contracts/token/TokenERC721.sol | @dev Resolves 'stack too deep' error in `recoverAddress`. | function _encodeRequest(MintRequest calldata _req) private pure returns (bytes memory) {
return
abi.encode(
TYPEHASH,
_req.to,
_req.royaltyRecipient,
_req.royaltyBps,
_req.primarySaleRecipient,
keccak... | 661,256 | [
1,
17453,
296,
3772,
4885,
4608,
11,
555,
316,
1375,
266,
3165,
1887,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
3015,
691,
12,
49,
474,
691,
745,
892,
389,
3658,
13,
3238,
16618,
1135,
261,
3890,
3778,
13,
288,
203,
3639,
327,
203,
5411,
24126,
18,
3015,
12,
203,
7734,
3463,
15920,
16,
203,
7734,
389,
3658,
18,
869,
16,
... |
pragma solidity 0.5.9;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
require(a... | * @title Roles @dev Library for managing addresses assigned to a Role./ | library Roles {
struct Role {
mapping (address => bool) bearer;
}
function add(Role storage role, address account) internal {
require(account != address(0));
require(!has(role, account));
role.bearer[account] = true;
}
function remove(Role storage role, address account) internal {
require(account != a... | 1,035,650 | [
1,
6898,
225,
18694,
364,
30632,
6138,
6958,
358,
279,
6204,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12083,
19576,
288,
203,
202,
1697,
6204,
288,
203,
202,
202,
6770,
261,
2867,
516,
1426,
13,
28802,
31,
203,
202,
97,
203,
203,
202,
915,
527,
12,
2996,
2502,
2478,
16,
1758,
2236,
13,
2713,
288,
203,
202,
202,
6528,
12,
4631,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-05
*/
/*
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal... | prevent hoarding and dumping restrict selling at 0.5% restrict buying at 2% make the swapif any account belongs to _isExcludedFromFee discount fee for user buy token | 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... | 10,524,258 | [
1,
29150,
26025,
1060,
310,
471,
4569,
1382,
13108,
357,
2456,
622,
374,
18,
25,
9,
13108,
30143,
310,
622,
576,
9,
1221,
326,
7720,
430,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
12137,
14036,
364,
729,
30143,
1147,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
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/1/0xe08852902868aDEE71CA490D9d93Fd55f5bEc200/sources/SteamedHams.sol | * @dev Returns true if `account` is a contract. [IMPORTANT] ==== It is unsafe to assume that an address for which this function returns false is an externally-owned account (EOA) and not a contract. Among others, `isContract` will return false for the following types of addresses: - an externally-owned account - a co... | function isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
| 3,536,690 | [
1,
1356,
638,
309,
1375,
4631,
68,
353,
279,
6835,
18,
306,
20445,
6856,
65,
422,
631,
2597,
353,
7127,
358,
6750,
716,
392,
1758,
364,
1492,
333,
445,
1135,
629,
353,
392,
18885,
1230,
17,
995,
329,
2236,
261,
41,
28202,
13,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
7010,
3639,
327,
2236,
18,
710,
18,
2469,
405,
374,
31,
7010,
565,
289,
7010,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/4/0x0F73DAca635CaA591dda9e242e98F781dcF6E7A2/sources/OroNetwork.sol | * Swap Get back USDC with Asset/ | function swapOut(address assetAdd, uint256 asset)
external
whenNotPaused
validateAsset(assetAdd) {
_swapOut(assetAdd, asset);
}
| 8,601,968 | [
1,
12521,
968,
1473,
11836,
5528,
598,
10494,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1182,
12,
2867,
3310,
986,
16,
2254,
5034,
3310,
13,
7010,
3639,
3903,
203,
3639,
1347,
1248,
28590,
203,
3639,
1954,
6672,
12,
9406,
986,
13,
288,
203,
3639,
389,
22270,
1182,
12,
9406,
986,
16,
3310,
1769,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/utils/SafeERC20.sol";
import "./OwnableInitializable.sol";
import "./MathUtils.... | * @notice Owner cancel the lock and return the balance in the contract @dev Can only be called by the owner/ | function cancelLock() external onlyOwner {
require(isAccepted == false, "Cannot cancel accepted contract");
token.safeTransfer(owner(), currentBalance());
emit LockCanceled();
}
| 1,768,270 | [
1,
5541,
3755,
326,
2176,
471,
327,
326,
11013,
316,
326,
6835,
225,
4480,
1338,
506,
2566,
635,
326,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3755,
2531,
1435,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
291,
18047,
422,
629,
16,
315,
4515,
3755,
8494,
6835,
8863,
203,
203,
3639,
1147,
18,
4626,
5912,
12,
8443,
9334,
783,
13937,
10663,
203,
203,
3639,
3626,
3... |
/*
* @title String & slice utility library for Solidity contracts.
* @author Nick Johnson <arachnid@notdot.net>
*
* Source: https://github.com/Arachnid/solidity-stringutils/
*/
pragma solidity ^0.5.2;
library Strings {
struct slice {
uint _len;
uint _ptr;
}
function memcpy(uint dest,... | @dev Counts the number of nonoverlapping occurrences of `needle` in `self`. @param self The slice to search. @param needle The text to search for in `self`. @return The number of occurrences of `needle` found in `self`./ | function count(slice memory self, slice memory needle) internal pure returns (uint cnt) {
uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
while (ptr <= self._ptr + self._len) {
cnt++;
ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._... | 899,693 | [
1,
9211,
326,
1300,
434,
1661,
17946,
1382,
15698,
434,
1375,
14891,
298,
68,
316,
1375,
2890,
8338,
225,
365,
1021,
2788,
358,
1623,
18,
225,
9936,
1021,
977,
358,
1623,
364,
316,
1375,
2890,
8338,
327,
1021,
1300,
434,
15698,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1056,
12,
6665,
3778,
365,
16,
2788,
3778,
9936,
13,
2713,
16618,
1135,
261,
11890,
7599,
13,
288,
203,
3639,
2254,
6571,
273,
1104,
5263,
12,
2890,
6315,
1897,
16,
365,
6315,
6723,
16,
9936,
6315,
1897,
16,
9936,
6315,... |
// File: contracts/interface/ICash.sol
pragma solidity >=0.4.24;
interface ICash {
function claimDividends(address account) external returns (uint256);
function transfer(address to, uint256 value) external returns(bool);
function transferFrom(address from, address to, uint256 value) external returns(boo... | * @dev Decrease the amount of tokens that an owner has allowed to a spender. @param spender The address which will spend the funds. @param subtractedValue The amount of tokens to decrease the allowance by./ | function decreaseAllowance(address spender, uint256 subtractedValue)
public
updateAccount(msg.sender)
updateAccount(spender)
returns (bool)
{
uint256 oldValue = _allowedShares[msg.sender][spender];
if (subtractedValue >= oldValue) {
_allowedShares[msg.... | 7,912,283 | [
1,
23326,
448,
326,
3844,
434,
2430,
716,
392,
3410,
711,
2935,
358,
279,
17571,
264,
18,
225,
17571,
264,
1021,
1758,
1492,
903,
17571,
326,
284,
19156,
18,
225,
10418,
329,
620,
1021,
3844,
434,
2430,
358,
20467,
326,
1699,
1359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
203,
3639,
1071,
203,
3639,
1089,
3032,
12,
3576,
18,
15330,
13,
203,
3639,
1089,
3032,
12,
87,
1302,
264,
13,
203,
3639,
1135,
261,
6430,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./FuelToken.... | Safe reward transfer function, just in case if rounding error causes pool to not have enough reward tokens. | function safeRewardTransfer(address _to, uint256 _amount) internal {
uint256 rewardBal = rewardToken.balanceOf(address(this));
if (_amount > rewardBal) {
rewardToken.transfer(_to, rewardBal);
rewardToken.transfer(_to, _amount);
}
}
| 919,098 | [
1,
9890,
19890,
7412,
445,
16,
2537,
316,
648,
309,
13885,
555,
14119,
2845,
358,
486,
1240,
7304,
19890,
2430,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
17631,
1060,
5912,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
2713,
288,
203,
3639,
2254,
5034,
19890,
38,
287,
273,
19890,
1345,
18,
12296,
951,
12,
2867,
12,
2211,
10019,
203,
3639,
309,
261,
67,
8949,
... |
pragma solidity ^ 0.4.24;
// pragma experimental ABIEncoderV2;
import "./List.sol";
import "./Util.sol";
contract SimpleExchange is
Recoverable
{
using ExchangeHelper for ExchangeHelper.t;
ExchangeHelper.t infoOp;
constructor() public {
infoOp.init();
}
function link(TokenVault vault)
external onlyMaste... | uint256[] orderType, uint256[] weis, uint256[] weisLeft, uint256[] tokenAmount, | function orderList(address _token)
external
view
returns (
uint256[] id,
address[] token,
address[] user,
uint256[] tokenAmountLeft
)
{
return infoOp.orderList(_token);
}
| 12,734,761 | [
1,
11890,
5034,
8526,
1353,
559,
16,
2254,
5034,
8526,
732,
291,
16,
2254,
5034,
8526,
732,
291,
3910,
16,
2254,
5034,
8526,
1147,
6275,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
1353,
682,
12,
2867,
389,
2316,
13,
203,
202,
9375,
203,
202,
1945,
203,
202,
6154,
261,
203,
202,
202,
11890,
5034,
8526,
612,
16,
203,
202,
202,
2867,
8526,
1147,
16,
203,
202,
202,
2867,
8526,
729,
16,
203,
202,
... |
./partial_match/1/0xD0715fE663de4EAA5a44941C11C66080eA725315/sources/PiranhasAttack.sol | remove address to UniswapPairs list | function removePair(address account) public onlyOwner {
address[] memory OldUniswapPairs = UniswapPairs;
delete UniswapPairs;
for (uint256 i = 0; i < OldUniswapPairs.length; i++) {
if (OldUniswapPairs[i] != account) {
UniswapPairs.push(OldUniswapPairs[i]);
... | 2,790,602 | [
1,
4479,
1758,
358,
1351,
291,
91,
438,
10409,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
4154,
12,
2867,
2236,
13,
1071,
1338,
5541,
288,
203,
3639,
1758,
8526,
3778,
18613,
984,
291,
91,
438,
10409,
273,
1351,
291,
91,
438,
10409,
31,
203,
3639,
1430,
1351,
291,
91,
438,
10409,
31,
203,
3639,
364,
... |
/**
* SourceUnit: c:\Users\Jad\Documents\code\Cryptoware\dcb-lottery\blockend\contracts\DCBW721.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction a... | * @notice changes the minting beneficiary payable address @param beneficiary the contract Splitter that will receive minting funds/ | function changeMintBeneficiary(address beneficiary) public onlyOwner {
require(
beneficiary != address(0),
"DCBW721: Minting beneficiary cannot be address 0"
);
require(
beneficiary != _mintingBeneficiary,
"DCBW721: beneficiary cannot be same a... | 12,806,477 | [
1,
6329,
326,
312,
474,
310,
27641,
74,
14463,
814,
8843,
429,
1758,
225,
27641,
74,
14463,
814,
326,
6835,
5385,
387,
716,
903,
6798,
312,
474,
310,
284,
19156,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
49,
474,
38,
4009,
74,
14463,
814,
12,
2867,
27641,
74,
14463,
814,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
27641,
74,
14463,
814,
480,
1758,
12,
20,
3631,
203,
5411,
315,
5528,
38,
59,
27,
... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.4;
import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import {IStandardERC20} from '../../../base/interfaces/IStandardERC20.sol';
import {
MintableBurnableIERC20
} from '../../../tokens/interfaces/MintableBurnableIERC20.sol';
import {... | * @notice Transfers `collateralAmount` of `feePayerData.collateralCurrency` into the caller's position. @dev Increases the collateralization level of a position after creation. This contract must be approved to spend at least `collateralAmount` of `feePayerData.collateralCurrency`. @param collateralAmount total amount ... | function deposit(uint256 collateralAmount) external {
depositTo(msg.sender, collateralAmount);
}
| 1,791,527 | [
1,
1429,
18881,
1375,
12910,
2045,
287,
6275,
68,
434,
1375,
21386,
52,
1773,
751,
18,
12910,
2045,
287,
7623,
68,
1368,
326,
4894,
1807,
1754,
18,
225,
657,
1793,
3304,
326,
4508,
2045,
287,
1588,
1801,
434,
279,
1754,
1839,
6710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
443,
1724,
12,
11890,
5034,
4508,
2045,
287,
6275,
13,
3903,
288,
203,
565,
443,
1724,
774,
12,
3576,
18,
15330,
16,
4508,
2045,
287,
6275,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0x43A586FC911442F167F2DfE54b3D469584b22E69/sources/contracts/Todo.sol | We will declare an array of strings called todos We will take _todo as an input and push it inside the array in this function | contract Todos {
string[] public todos;
pragma solidity ^0.8.0;
function setTodo(string memory _todo) public {
todos.push(_todo);
}
function getTodo() public view returns (string[] memory) {
return todos;
}
function getTodosLength() public view returns (uint) {
... | 5,646,593 | [
1,
3218,
903,
14196,
392,
526,
434,
2064,
2566,
31754,
1660,
903,
4862,
389,
9012,
487,
392,
810,
471,
1817,
518,
4832,
326,
526,
316,
333,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
399,
369,
538,
288,
203,
565,
533,
8526,
1071,
31754,
31,
203,
377,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
20,
31,
203,
565,
445,
444,
56,
7370,
12,
1080,
3778,
389,
9012,
13,
1071,
288,
203,
3639,
3175... |
/**
*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 adds a sale to the list of open sales. Also fires the SaleCreated event. @param _tokenId The ID of the token to be put on sale. @param _sale Sale to add. | function _addSale(address _sellerId, uint256 _tokenId, Sale memory _sale, uint256 _saleStarted) internal {
tokenIdToSale[_tokenId] = _sale;
emit SaleCreated(
address(_sellerId),
uint256(_tokenId),
uint256(_sale.price),
uint... | 6,768,920 | [
1,
25428,
279,
272,
5349,
358,
326,
666,
434,
1696,
272,
5408,
18,
8080,
29564,
326,
348,
5349,
6119,
871,
18,
225,
389,
2316,
548,
1021,
1599,
434,
326,
1147,
358,
506,
1378,
603,
272,
5349,
18,
225,
389,
87,
5349,
348,
5349,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
389,
1289,
30746,
12,
2867,
389,
1786,
749,
548,
16,
2254,
5034,
389,
2316,
548,
16,
348,
5349,
3778,
389,
87,
5349,
16,
2254,
5034,
389,
87,
5349,
9217,
13,
2713,
288,
203,
5411,
1147,
28803,
30746,
63,
67,
2316,
54... |
./full_match/43113/0xBf8D6bf3Bb1E16416CbB9B577dcF4A96073E13B0/sources/_contracts/rain-protocol/contracts/redeemableERC20/RedeemableERC20.sol | Admin can add up to 8 redeemables to this contract. Each redeemable will be sent to token holders when they call redeem functions in `Phase.ONE` to burn tokens. If the admin adds a non-compliant or malicious IERC20 address then token holders can override the list with `redeemSpecific`. @param newRedeemable_ The redeem... | function addRedeemable(IERC20 newRedeemable_) external {
require(
hasRole(REDEEMABLE_ADDER, msg.sender),
"ONLY_REDEEMABLE_ADDER"
);
require(redeemables.length<MAX_REDEEMABLES, "MAX_REDEEMABLES");
for (uint256 i_ = 0; i_<redeemables.length;i_++) {
r... | 7,166,334 | [
1,
4446,
848,
527,
731,
358,
1725,
283,
24903,
1538,
358,
333,
6835,
18,
8315,
283,
24903,
429,
903,
506,
3271,
358,
1147,
366,
4665,
1347,
2898,
745,
283,
24903,
4186,
316,
1375,
11406,
18,
5998,
68,
358,
18305,
2430,
18,
971,
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,
527,
426,
24903,
429,
12,
45,
654,
39,
3462,
394,
426,
24903,
429,
67,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
28335,
12,
862,
1639,
3375,
2782,
67,
1880,
4179,
16,
1234,
18,
15330,
3631,
203,
5411,
315,
10857,... |
./full_match/43113/0xf7eEF3926FDDE09cD2b4954e5498C68220315560/sources/contracts/WOOFI.sol | todo for burn? make burn contract
| uint256 toD = newBalance.sub(toH); | 7,166,878 | [
1,
9012,
364,
18305,
35,
1221,
18305,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
2254,
5034,
358,
40,
273,
394,
13937,
18,
1717,
12,
869,
44,
1769,
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,... |
pragma solidity ^0.5.8;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLE... | * @dev Add an airline to the registration queue Can only be called from FlightSuretyApp contract/ | function registerAirline(address airline, address elector) external requireIsOperational requireAuthorized requireBeAnAirline(elector) requireAcceptedAirline(elector) requirePaidAirline(elector){
_registerAirline(airline, elector);
}
| 15,788,530 | [
1,
986,
392,
23350,
1369,
358,
326,
7914,
2389,
1377,
4480,
1338,
506,
2566,
628,
3857,
750,
55,
594,
4098,
3371,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
1744,
29752,
1369,
12,
2867,
23350,
1369,
16,
1758,
415,
1229,
13,
3903,
2583,
2520,
2988,
287,
2583,
15341,
2583,
1919,
979,
29752,
1369,
12,
292,
1229,
13,
2583,
18047,
29752,
1369,
12,
292,
1229,
13,
2583,
16507,
350,
... |
//Address: 0xc5bbae50781be1669306b9e001eff57a2957b09d
//Contract name: Gifto
//Balance: 0 Ether
//Verification Date: 12/14/2017
//Transacion Count: 188860
// CODE STARTS HERE
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------------------------
// Gifto Token by ... | @dev Withdraws Ether in contract (Owner only) @return Status of withdrawal | function withdraw() onlyOwner
public
returns (bool) {
return owner.send(this.balance);
}
| 1,826,961 | [
1,
1190,
9446,
87,
512,
1136,
316,
6835,
261,
5541,
1338,
13,
327,
2685,
434,
598,
9446,
287,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
1435,
1338,
5541,
7010,
3639,
1071,
7010,
3639,
1135,
261,
6430,
13,
288,
203,
3639,
327,
3410,
18,
4661,
12,
2211,
18,
12296,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0xC62B223D22b10D45A03Ad8993D7FC6Ec14786bE5/sources/interfaces/v1/ISwylClub.sol | ========== Struct(s) ========== | interface ISwylClub {
@dev: Logan (Nam) Nguyen
pragma solidity ^0.8.11;
struct Club {
uint256 clubId;
address clubOwner;
uint256 date;
address currency;
uint256 totalMembers;
uint256 totalActiveMembers;
}
struct Tier {
uint256 tierId;
u... | 9,443,931 | [
1,
1432,
631,
225,
7362,
12,
87,
13,
565,
422,
1432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5831,
4437,
91,
93,
80,
2009,
373,
288,
203,
203,
203,
565,
632,
5206,
30,
1827,
304,
261,
50,
301,
13,
423,
6891,
24515,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
2499,
31,
203,
565,
1958,
3905,
373,
288,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2022-04-25
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Im... | @notice Mint function that will check to make sure the public mint is active and the correct funds have been sent in msg.value @param _mintAmount the amount of NFTs that the caller would like to mint. @param _tier the tier of NFT that the caller would like to mint (Tier 1, 2, or 3). | function mint(uint256 _mintAmount, uint256 _tier) public payable mintCompliance(_mintAmount, _tier) {
require(!publicMintActive, "Public mint is not active!");
if(_tier == 1){
require(msg.value >= tierCosts[0] * _mintAmount, "Insufficient funds for tier 1 mint!!");
}
else if(... | 2,102,781 | [
1,
49,
474,
445,
716,
903,
866,
358,
1221,
3071,
326,
1071,
312,
474,
353,
2695,
471,
326,
3434,
284,
19156,
1240,
2118,
3271,
316,
1234,
18,
1132,
225,
389,
81,
474,
6275,
326,
3844,
434,
423,
4464,
87,
716,
326,
4894,
4102,
3007... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
389,
81,
474,
6275,
16,
2254,
5034,
389,
88,
2453,
13,
1071,
8843,
429,
312,
474,
16687,
24899,
81,
474,
6275,
16,
389,
88,
2453,
13,
288,
203,
3639,
2583,
12,
5,
482,
49,
474,
3896,
16,
... |
./full_match/4/0x164c24d0844c267DA15a4c841eaBae817d211EA1/sources/Users/hristiyangeorgiev/Documents/Projects/Redemeum/ERC20/bsn-core-prototype/contracts/VoucherKernel.sol | we simplify the value for the demoapp, otherwise voucher details would be packed in one bytes32 field value | struct Promise {
bytes32 promiseId;
uint256 validFrom;
uint256 validTo;
uint256 price;
uint256 depositSe;
uint256 depositBu;
uint idx;
}
| 13,350,900 | [
1,
1814,
16499,
326,
460,
364,
326,
21477,
2910,
16,
3541,
331,
14329,
3189,
4102,
506,
12456,
316,
1245,
1731,
1578,
652,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1958,
5835,
288,
203,
3639,
1731,
1578,
5109,
548,
31,
203,
540,
203,
3639,
2254,
5034,
923,
1265,
31,
203,
3639,
2254,
5034,
923,
774,
31,
203,
3639,
2254,
5034,
6205,
31,
203,
3639,
2254,
5034,
443,
1724,
1761,
31,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
/**
* @title Small library for working with strings
* @author yearn.finance
*/
library Strings {
/**
* @notice Search for a needle in a haystack
* @param haystack The string to search
* @param needle The string to search for
*/
function string... | * @notice Convert integer to ASCII @param input Integer as a string (ie. "345") @param base Base to use for the conversion (10 for decimal) @return output Returns string representation of input integer @dev Based on GemERC721 utility but includes a fix/ | function itoa(uint256 input, uint8 base)
public
pure
returns (string memory output)
{
require(base == 2 || base == 8 || base == 10 || base == 16);
if (input == 0) {
return "0";
}
bytes memory buf = new bytes(256);
uint256 idx = 0;
while (input > 0) {
uint8 digit = uin... | 235,586 | [
1,
2723,
3571,
358,
11768,
225,
810,
2144,
487,
279,
533,
261,
1385,
18,
315,
25574,
7923,
225,
1026,
3360,
358,
999,
364,
326,
4105,
261,
2163,
364,
6970,
13,
327,
876,
2860,
533,
4335,
434,
810,
3571,
225,
25935,
603,
611,
351,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
518,
11867,
12,
11890,
5034,
810,
16,
2254,
28,
1026,
13,
203,
565,
1071,
203,
565,
16618,
203,
565,
1135,
261,
1080,
3778,
876,
13,
203,
225,
288,
203,
565,
2583,
12,
1969,
422,
576,
747,
1026,
422,
1725,
747,
1026,
... |
./partial_match/8453/0xDF9d1FeD7F0098118C68Ed656624c55839fAC001/sources/Comptroller.sol | * @notice Set COMP speed for a single market @param cToken The market whose COMP speed to update @param supplySpeed New supply-side COMP speed for market @param borrowSpeed New borrow-side COMP speed for market/ Supply speed updated so let's update supply state to ensure that 1. COMP accrued properly for the old speed... | function setCompSpeedInternal(
CToken cToken,
uint256 supplySpeed,
uint256 borrowSpeed
) internal {
Market storage market = markets[address(cToken)];
require(market.isListed, "comp market is not listed");
if (compSupplySpeeds[address(cToken)] != supplySpeed) {
... | 16,820,339 | [
1,
694,
13846,
8632,
364,
279,
2202,
13667,
225,
276,
1345,
1021,
13667,
8272,
13846,
8632,
358,
1089,
225,
14467,
16562,
1166,
14467,
17,
5564,
13846,
8632,
364,
13667,
225,
29759,
16562,
1166,
29759,
17,
5564,
13846,
8632,
364,
13667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
2945,
16562,
3061,
12,
203,
3639,
385,
1345,
276,
1345,
16,
203,
3639,
2254,
5034,
14467,
16562,
16,
203,
3639,
2254,
5034,
29759,
16562,
203,
565,
262,
2713,
288,
203,
3639,
6622,
278,
2502,
13667,
273,
2267,
2413,
... |
// contracts/twigsProject.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by othe... | Cut the graft from one twig and attach it to another | function MoveGraft (uint _twigId, uint _graftId, uint _newTwigId)
external
{
onlyTwigOwner (_twigId);
uint pos = CheckGraft(_twigId, _graftId);
GraftsData[_newTwigId].push (GraftsData[_twigId][pos]);
GraftsData[_twigId][pos] = GraftsData[_twigId][GraftsData[_t... | 14,634,494 | [
1,
15812,
326,
3087,
1222,
628,
1245,
11733,
471,
3306,
518,
358,
4042,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9933,
43,
5015,
261,
11890,
389,
9359,
548,
16,
2254,
389,
2752,
1222,
548,
16,
2254,
389,
2704,
22422,
548,
13,
7010,
3639,
3903,
203,
565,
288,
203,
3639,
1338,
22422,
5541,
261,
67,
9359,
548,
1769,
7010,
540,
203,
... |
./full_match/1/0xacBD0767418b8C00ff70df1fF9D5c317F4349384/sources/src/arbi-fed/AuraFarmer.sol | * @dev Allows current chair of the Aura Farmer to resign/ | function resign() onlyChair external {
l2Chair = address(0);
}
| 17,101,151 | [
1,
19132,
783,
462,
1826,
434,
326,
432,
21401,
478,
4610,
264,
358,
400,
724,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
400,
724,
1435,
1338,
782,
1826,
3903,
288,
203,
3639,
328,
22,
782,
1826,
273,
1758,
12,
20,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// via https://github.com/ethereum/dapp-bin/blob/master/library/math.sol
library Math {
/// @dev Computes the modular exponential (x ** k) % m.
function modExp(uint x, uint k, uint m) constant returns (uint r) {
r = 1;
for (uint s = 1; s <= k; s *= 2) {
if (k & s != 0)
... | @dev Computes the modular exponential (x ** k) % m. | function modExp(uint x, uint k, uint m) constant returns (uint r) {
r = 1;
for (uint s = 1; s <= k; s *= 2) {
if (k & s != 0)
r = mulmod(r, x, m);
x = mulmod(x, x, m);
}
}
| 1,796,956 | [
1,
10743,
326,
681,
2490,
21774,
261,
92,
225,
417,
13,
738,
312,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
681,
2966,
12,
11890,
619,
16,
2254,
417,
16,
2254,
312,
13,
5381,
1135,
261,
11890,
436,
13,
288,
203,
3639,
436,
273,
404,
31,
203,
3639,
364,
261,
11890,
272,
273,
404,
31,
272,
1648,
417,
31,
272,
6413,
576,
13,... |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementer... | max total mints is 100 marketing, 150 earlybird,
| require(supply < 250, "Error: Maximum limit surpassed"); | 13,664,857 | [
1,
1896,
2078,
312,
28142,
353,
2130,
13667,
310,
16,
18478,
11646,
31245,
16,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
2859,
1283,
411,
16927,
16,
315,
668,
30,
18848,
1800,
5056,
23603,
8863,
225,
2,
-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.7.3;
import "./lib/FxBaseRootTunnel.sol";
import "./TunnelEnd.sol";
contract ZodiacPolygonRootTunnel is FxBaseRootTunnel, TunnelEnd {
constructor(address _checkpointManager, address _fxRoot)
FxBaseRootTunnel(_checkpointManager, _fxRoot)
{}
/// @dev Requests... | @dev Provides the end executor contract with the id of the network where the call originated | function _processMessageFromChild(bytes memory message) internal virtual;
}
pragma solidity 0.7.3;
function messageSourceChainId() public view returns (bytes32) {
return latestSourceChainId;
}
| 14,733,888 | [
1,
17727,
326,
679,
6601,
6835,
598,
326,
612,
434,
326,
2483,
1625,
326,
745,
4026,
690,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
445,
389,
2567,
1079,
1265,
1763,
12,
3890,
3778,
883,
13,
2713,
5024,
31,
203,
97,
203,
203,
683,
9454,
18035,
560,
374,
18,
27,
18,
23,
31,
203,
203,
225,
445,
883,
1830,
3893,
548,
1435,
1071,
1476,
1135,
261,
3890,
1... |
/**
*Submitted for verification at Etherscan.io on 2021-05-06
*/
pragma solidity 0.5.10;
// ----------------------------------------------------------------------------
// WUMI token contract (2021)
//
// Symbol : WUMI
// Name : WUMI
// Total supply : 1.175.000 (burnable)
// Decimals : 18
// ------... | ------------------------------------------------------------------------ Start-stop contract functions: transfer, approve, transferFrom, approveAndCall ------------------------------------------------------------------------ | modifier isRunning {
require(running);
_;
}
| 10,786,936 | [
1,
29461,
3603,
17,
5681,
6835,
4186,
30,
7412,
16,
6617,
537,
16,
7412,
1265,
16,
6617,
537,
1876,
1477,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
19858,
288,
203,
3639,
2583,
12,
8704,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x130F2Bd05f45E44D01B83bF05AEd31CE9533097A/sources/project_/contracts/Waves.sol | * @dev Converts bytes32 to uint16/ | function bytes2uint(bytes32 _a) private pure returns (uint16) {
return uint16(uint256(_a));
}
| 3,000,923 | [
1,
5692,
1731,
1578,
358,
2254,
2313,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1731,
22,
11890,
12,
3890,
1578,
389,
69,
13,
3238,
16618,
1135,
261,
11890,
2313,
13,
288,
203,
3639,
327,
2254,
2313,
12,
11890,
5034,
24899,
69,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.20;
import './owner.sol';
//===========
//转账接口
//==========
interface token{
function transfer(address _to,uint amount) external ;
}
//=====================================================
//ico合约,继承token的owner,另外定义一个账本保存信息和两个事件输出显示众筹实现输出信息
//=========================================... | =====================================================ico合约,继承token的owner,另外定义一个账本保存信息和两个事件输出显示众筹实现输出信息================================================================================================================================构造函数,定义了众筹的目标,截止时间,每个代币的价格,还有就是投资人的收益哦====================================================... | contract ico is owner{
uint public fundingGoal;
uint public deadline ;
uint public price;
uint public fundAmount;
token public tokenReward;
address public beneficiary;
mapping(address=>uint )public balanceOf;
event FundingTransfer(address backer ,uint amount);
event CheckGoal(bool s... | 12,623,161 | [
1,
20775,
894,
33,
10764,
166,
243,
235,
168,
123,
104,
176,
125,
239,
168,
124,
105,
167,
236,
128,
2316,
168,
253,
231,
8443,
176,
125,
239,
166,
242,
104,
166,
102,
249,
166,
111,
253,
165,
122,
236,
165,
121,
227,
165,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
277,
2894,
353,
3410,
95,
203,
565,
2254,
1071,
22058,
27716,
31,
203,
565,
2254,
1071,
225,
14096,
274,
203,
565,
2254,
1071,
6205,
31,
203,
565,
2254,
1071,
284,
1074,
6275,
31,
203,
565,
1147,
1071,
1147,
17631,
1060,
3... |
pragma solidity ^0.6.0;
import "../Initializable.sol";
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when de... | Mint junior tokens to the SeniorPool, equal to current cl balance; Hardcode to always get the JuniorTranche, since the migration case is when the senior pool took the entire investment. Which we're expressing as the junior tranche | function migrateDeposits(IV1CreditLine clToMigrate, uint256 totalInterestPaid) internal {
require(!locked(), "Pool has been locked");
uint256 tranche = uint256(ITranchedPool.Tranches.Junior);
TrancheInfo storage trancheInfo = getTrancheInfo(tranche);
require(trancheInfo.lockedUntil == 0, "Tranche has ... | 12,976,852 | [
1,
49,
474,
525,
318,
9659,
2430,
358,
326,
348,
275,
9659,
2864,
16,
3959,
358,
783,
927,
11013,
31,
670,
1060,
710,
358,
3712,
336,
326,
804,
318,
9659,
17730,
18706,
16,
3241,
326,
6333,
648,
353,
1347,
326,
28901,
9659,
2845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
225,
445,
13187,
758,
917,
1282,
12,
8188,
21,
16520,
1670,
927,
774,
19594,
16,
2254,
5034,
2078,
29281,
16507,
350,
13,
2713,
288,
203,
565,
2583,
12,
5,
15091,
9334,
315,
2864,
711,
2118,
8586,
8863,
203,
565,
2254,
5034,
1363... |
./full_match/1/0x068d23dbc3A6Bddc0916205e15d841C6fD9B0fCB/sources/contracts/DoughV1Dsa.sol | ========== CONSTANTS ========== */ ========== STATE VARIABLES ========== */ ========== CONSTRUCTOR ========== */ | constructor(address _owner, address _DoughV1Index, address _doughFlashloan) {
owner = _owner;
DoughV1Index = _DoughV1Index;
doughFlashloan = _doughFlashloan;
}
| 3,211,122 | [
1,
1432,
631,
24023,
55,
422,
1432,
342,
422,
1432,
7442,
22965,
55,
422,
1432,
342,
422,
1432,
3492,
13915,
916,
422,
1432,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
8443,
16,
1758,
389,
3244,
2127,
58,
21,
1016,
16,
1758,
389,
2896,
2127,
11353,
383,
304,
13,
288,
203,
3639,
3410,
273,
389,
8443,
31,
203,
3639,
2256,
2127,
58,
21,
1016,
273,
389,
3244,
2127,
58,
... |
pragma solidity ^0.6.4;
import "@openzeppelin/contracts/access/Ownable.sol";
contract Tournaments is Ownable {
/**
`Data
*/
enum TournamentState {
Active,
Ended,
WinnersDeclared
}
struct Tournament {
address payable organizer;
uint endTime;
string data;
uin... | / uintParams[0] = prize uintParams[1] = buyInAmount uintParams[2] = triesPerBuyIn check and calculate shares | function createTournament(
address payable organizer,
string calldata data,
uint endTime,
uint256[] calldata shares,
uint256[] calldata uintParams
)
external
payable
notInPast(endTime)
noTournamentsOverflow()
correctPaymentAmount(uintParams[0])
re... | 6,367,869 | [
1,
19,
2254,
1370,
63,
20,
65,
273,
846,
554,
2254,
1370,
63,
21,
65,
273,
30143,
382,
6275,
2254,
1370,
63,
22,
65,
273,
9327,
2173,
38,
9835,
382,
866,
471,
4604,
24123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
752,
774,
30751,
12,
203,
565,
1758,
8843,
429,
377,
15501,
1824,
16,
203,
565,
533,
745,
892,
377,
501,
16,
203,
565,
2254,
7734,
13859,
16,
203,
565,
2254,
5034,
8526,
745,
892,
225,
24123,
16,
203,
565,
2254,
5034,... |
/*
Copyright [2019] - [2021], PERSISTENCE TECHNOLOGIES PTE. LTD. and the pStake-smartContracts contributors
SPDX-License-Identifier: Apache-2.0
*/
pragma solidity >=0.7.0;
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgra... | * @dev Constructor for initializing the LiquidStaking contract. @param uAddress - address of the UToken contract. @param sAddress - address of the SToken contract. @param pauserAddress - address of the pauser admin. @param unstakingLockTime - varies from 21 hours to 21 days. @param epochInterval - varies from 3 hours t... | ) public virtual initializer {
__AccessControl_init();
__Pausable_init();
_setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
_setupRole(PAUSER_ROLE, pauserAddress);
setUTokensContract(uAddress);
setSTokensContract(sAddress);
setUnstakingLockTime(unstakingLockTime);
setMinimumValues(1, 1);
_valueDivisor = ... | 5,473,701 | [
1,
6293,
364,
22584,
326,
511,
18988,
350,
510,
6159,
6835,
18,
225,
582,
1887,
300,
1758,
434,
326,
587,
1345,
6835,
18,
225,
272,
1887,
300,
1758,
434,
326,
348,
1345,
6835,
18,
225,
6790,
1355,
1887,
300,
1758,
434,
326,
6790,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
1071,
5024,
12562,
288,
203,
202,
202,
972,
16541,
67,
2738,
5621,
203,
202,
202,
972,
16507,
16665,
67,
2738,
5621,
203,
202,
202,
67,
8401,
2996,
12,
5280,
67,
15468,
67,
16256,
16,
389,
3576,
12021,
10663,
203,
202,
... |
./full_match/5/0x195DA0e844b2F4d6D52eF82BfCedee5e1F8CDacF/sources/contracts/15yrslater.sol | using TWBitMaps for TWBitMaps.BitMap; bytes memory _data | contract XVYrsLater is ERC1155Drop, DefaultOperatorFilterer{
constructor(
string memory _name,
string memory _symbol,
address _royaltyRecipient,
uint128 _royaltyBps,
address _primarySaleRecipient
)
ERC1155Drop(
_name,
_symbol,
_... | 1,906,187 | [
1,
9940,
24722,
5775,
8903,
364,
24722,
5775,
8903,
18,
5775,
863,
31,
1731,
3778,
389,
892,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
1139,
58,
61,
5453,
20607,
353,
4232,
39,
2499,
2539,
7544,
16,
2989,
5592,
1586,
264,
95,
203,
565,
3885,
12,
203,
3639,
533,
3778,
389,
529,
16,
203,
3639,
533,
3778,
389,
7175,
16,
203,
3639,
1758,
389,
3800,
15006,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// copied from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC721/ERC721.sol
// and merged with: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC721/extensions/ERC721Enumerable.sol
imp... | * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. `_data` is additional data, it has no specified format and it is sent in call to `to`. This internal function is equivalent to {safeTransferF... | function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "EvaNFT: transfer to non ERC721Receiver implementer");
}
| 14,449,413 | [
1,
26946,
2357,
29375,
1375,
2316,
548,
68,
1147,
628,
1375,
2080,
68,
358,
1375,
869,
9191,
6728,
1122,
716,
6835,
12045,
854,
18999,
434,
326,
4232,
39,
27,
5340,
1771,
358,
5309,
2430,
628,
3832,
21238,
8586,
18,
1375,
67,
892,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
4626,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
16,
1731,
3778,
389,
892,
13,
2713,
5024,
288,
203,
3639,
389,
13866,
12,
2080,
16,
358,
16,
1147,
548,
1769,
203,
3639,
2583,
24899,
1893,
139... |
// SPDX-License-Identifier: LGPL-3.0-or-later
pragma solidity ^0.8.10;
import "./mixins/NonTransferrableErc20.sol";
import "./mixins/Vesting.sol";
import "./mixins/Claiming.sol";
import "./mixins/MerkleDistributor.sol";
import "./vendored/mixins/StorageAccessible.sol";
/// @dev The token that manages how the CoW Prot... | @dev All types of transfers are permanently disabled. | function transfer(address, uint256) public pure returns (bool) {
revert NotSupported();
}
| 12,096,430 | [
1,
1595,
1953,
434,
29375,
854,
16866,
715,
5673,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
16,
2254,
5034,
13,
1071,
16618,
1135,
261,
6430,
13,
288,
203,
3639,
15226,
31865,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.18;
contract DogCoreInterface {
address public ceoAddress;
address public cfoAddress;
function getDog(uint256 _id)
external
view
returns (
//冷却期索引号
uint256 cooldownIndex,
//本次冷却期结束所在区块
uint256 nextActionAt,
//配种的公狗ID
... | / 获取当前中奖信息 如果7个基因都完成开奖并且当期没有发奖,则说明当期所有基因已经开奖完毕在等待发奖,退出 触发事件,返回查询的基因分别返回查询基因,状态1 (表示当期所有基因开奖完毕在等待发奖) 如果上个基因开奖和本次开奖在同一个区块,退出 触发事件,返回查询的基因分别返回查询基因,状态2 (当前基因开奖区块与上个基因开奖区块相同) 如果当前开奖基因位为0且当期已经发奖,则进入下一期开奖 初始化当前lottery信息 如果前两期都没有一等奖产生,则该期产生必中奖,退出随机开奖函数 如果奖金池金额为零,则退出 触发事件,返回查询的基因分别返回查询基因,状态3 (奖金池金额不足) | function openLottery(uint8 _viewId) public returns(uint8,uint8) {
uint8 viewId = _viewId;
require(viewId < 7);
uint256 currentTerm = CLotteries.length - 1;
CLottery storage clottery = CLotteries[currentTerm];
if (currentGene == 0 && clottery.openBlock > 0 && clottery.isRewar... | 7,663,473 | [
1,
19,
225,
169,
241,
120,
166,
242,
249,
166,
126,
246,
166,
236,
240,
165,
121,
260,
166,
103,
249,
165,
128,
99,
167,
228,
112,
225,
166,
104,
229,
167,
257,
255,
27,
165,
121,
108,
166,
258,
123,
166,
254,
259,
170,
230,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
48,
352,
387,
93,
12,
11890,
28,
389,
1945,
548,
13,
1071,
1135,
12,
11890,
28,
16,
11890,
28,
13,
288,
203,
3639,
2254,
28,
1476,
548,
273,
389,
1945,
548,
31,
203,
3639,
2583,
12,
1945,
548,
411,
2371,
1769,... |
/**
*Submitted for verification at Etherscan.io on 2021-12-13
*/
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
// File: contracts/lib/AddressUtil.sol
// Copyright 2017 Loopring Technology Limited.
/// @title Utility Functions for addresses
/// @author Daniel Wang ... | We alow anyone to withdraw these funds for the account owner Make sure the funds aren't withdrawn already. Verify that the provided Merkle tree data is valid by using the Merkle proof. Make sure the balance can only be withdrawn once Transfer the tokens to the account owner | function withdrawFromMerkleTree(
ExchangeData.State storage S,
ExchangeData.MerkleProof calldata merkleProof
)
public
{
require(S.isInWithdrawalMode(), "NOT_IN_WITHDRAW_MODE");
address owner = merkleProof.accountLeaf.owner;
uint32 accountID = merkl... | 7,920,864 | [
1,
3218,
279,
821,
1281,
476,
358,
598,
9446,
4259,
284,
19156,
364,
326,
2236,
3410,
4344,
3071,
326,
284,
19156,
11526,
1404,
598,
9446,
82,
1818,
18,
8553,
716,
326,
2112,
31827,
2151,
501,
353,
923,
635,
1450,
326,
31827,
14601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
598,
9446,
1265,
8478,
15609,
2471,
12,
203,
3639,
18903,
751,
18,
1119,
4202,
2502,
225,
348,
16,
203,
3639,
18903,
751,
18,
8478,
15609,
20439,
745,
892,
30235,
20439,
203,
3639,
262,
203,
3639,
1071,
203,
565,
288,
2... |
./full_match/42/0x98E92765012798FcFD47cd7633b7434Cb999cA57/sources/browser/gists/536123b71478ad4442cfc4278e8de577/RandomNumberConsumer.sol | * Callback function used by VRF Coordinator/ | function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
randomResult = randomness;
uint256 totalAmount = 0;
for (uint i=0; i<entries.length; i++) {
totalAmount = totalAmount + entries[i].amount;
}
uint256 winningNumber... | 9,565,681 | [
1,
2428,
445,
1399,
635,
776,
12918,
10320,
4240,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22290,
8529,
4496,
12,
3890,
1578,
14459,
16,
2254,
5034,
2744,
4496,
13,
2713,
3849,
288,
203,
3639,
2744,
1253,
273,
2744,
4496,
31,
203,
540,
203,
3639,
2254,
5034,
2078,
6275,
273,
374,
31,
203,
3639,
364,
261,
1189... |
pragma solidity ^0.4.10;
contract Token {
uint256 public totalSupply;
function balanceOf(address _owner) constant returns (uint256 balance);
function transfer(address _to, uint256 _value) returns (bool success);
function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
... | PLATFORM DEVELOPMENT
| uint256 public constant PLATFORM_DEVELOPMENT = 1000000000 * 10**decimals; | 6,962,056 | [
1,
6253,
789,
4983,
2030,
24397,
52,
3212,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
453,
12190,
4983,
67,
31771,
52,
3212,
273,
15088,
3784,
380,
1728,
636,
31734,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.5.0;
/// @title A facet of KittyCore that manages special access privileges.
/// @author Axiom Zen (https://www.axiomzen.co)
/// @dev See the KittyCore contract documentation to understand how the various contract facets are arranged.
contract AccessControl {
// This facet controls access contro... | * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), Reverts when dividing by zero. Counterpart to Solidity's `%` operator. This function uses a `revert` opcode (which leaves remaining gas untouched) while Solidity uses an invalid opcode to revert (consuming all remaining gas). Req... | function mod(uint32 a, uint32 b) internal pure returns (uint32) {
return mod(a, b, "SafeMath: modulo by zero");
}
| 15,817,559 | [
1,
1356,
326,
10022,
434,
3739,
10415,
2795,
9088,
12321,
18,
261,
22297,
3571,
26109,
3631,
868,
31537,
1347,
3739,
10415,
635,
3634,
18,
9354,
2680,
358,
348,
7953,
560,
1807,
12430,
68,
3726,
18,
1220,
445,
4692,
279,
1375,
266,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
681,
12,
11890,
1578,
279,
16,
2254,
1578,
324,
13,
2713,
16618,
1135,
261,
11890,
1578,
13,
288,
203,
3639,
327,
681,
12,
69,
16,
324,
16,
315,
9890,
10477,
30,
26109,
635,
3634,
8863,
203,
565,
289,
203,
203,
2,
-... |
pragma solidity ^0.5.0;
interface Exchange1 {
function sellTokens(address _token, uint _amount) external returns (uint amount);
}
interface Exchange2 {
function buyTokens(address _token) external payable returns (uint amount);
}
interface ERC20 {
function transfer(address _to, uint _value) external retur... | Uniswap V2 Router on Mainnet
| address public exchange2 = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; | 12,887,475 | [
1,
984,
291,
91,
438,
776,
22,
9703,
603,
12740,
2758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
7829,
22,
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,
5482,
40,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,... |
// File: contracts/interfaces/IDelegable.sol
pragma solidity ^0.6.10;
interface IDelegable {
function ADDDELEGATE653(address) external; //inject NONSTANDARD NAMING
function ADDDELEGATEBYSIGNATURE882(address, address, uint, uint8, bytes32, byt... | inject NONSTANDARD NAMING
| function RATEGROWTH408() external view returns(uint); | 12,707,142 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
534,
1777,
43,
11226,
2455,
24,
6840,
1435,
3903,
1476,
1135,
12,
11890,
1769,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x3a23F943181408EAC424116Af7b7790c94Cb97a5/sources/src/bridges/optimism/l1/NativeOptimism.sol | * @notice function to handle ERC20 bridging to receipent via NativeOptimism-Bridge @notice This method is payable because the caller is doing token transfer and briding operation @param token address of token being bridged @param receiverAddress address of receiver of bridged tokens @param customBridgeAddress OptimismB... | function bridgeERC20To(
address token,
address receiverAddress,
address customBridgeAddress,
uint32 l2Gas,
OptimismERC20Data calldata optimismData,
uint256 amount,
uint256 interfaceId,
address l2Token,
bytes calldata data
) external payable... | 11,003,315 | [
1,
915,
358,
1640,
4232,
39,
3462,
324,
1691,
1998,
358,
2637,
625,
319,
3970,
16717,
13930,
6228,
17,
13691,
225,
1220,
707,
353,
8843,
429,
2724,
326,
4894,
353,
9957,
1147,
7412,
471,
324,
1691,
310,
1674,
225,
1147,
1758,
434,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
10105,
654,
39,
3462,
774,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
5971,
1887,
16,
203,
3639,
1758,
1679,
13691,
1887,
16,
203,
3639,
2254,
1578,
328,
22,
27998,
16,
203,
3639,
19615,
6228,
654,
39,
3462,
751,
... |
/*
* Safe Math Smart Contract.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
*/
pragma solidity ^0.4.16;
/**
* Provides methods to safely add, subtract and multiply uint256 numbers.
*/
contract SafeMath {
uint256 constant private MAX_UINT256 =
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF... | * First address that ever had non-zero token balance plus 2^160, or 2^256-1 if there are no such addresses./ | uint256 firstAddress = MAX_UINT256;
| 13,057,837 | [
1,
3759,
1758,
716,
14103,
9323,
1661,
17,
7124,
1147,
11013,
8737,
576,
66,
16874,
16,
578,
576,
66,
5034,
17,
21,
309,
1915,
854,
1158,
4123,
6138,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
1122,
1887,
273,
4552,
67,
57,
3217,
5034,
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,
-10... |
pragma solidity ^0.4.2;
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
function transferOwnership(address newOwner) onlyOwner {
if (newOwner == 0x00000000... | refund To Owner */ Send ether to the owner. It's important To do this last to avoid recursion attacks Execute an event reflecting on the change | function refundToOwner (uint256 amountOfEth, uint256 dcn) onlyOwner {
uint256 eth = amountOfEth * 1 ether;
if (!msg.sender.send(eth)) {
throw;
Transfer(msg.sender, this, amountOfEth);
}
if (balanceOf[this] < dcn) throw;
| 5,456,585 | [
1,
1734,
1074,
2974,
16837,
342,
2479,
225,
2437,
358,
326,
3410,
18,
2597,
1807,
10802,
2974,
741,
333,
1142,
358,
4543,
13917,
28444,
7903,
392,
871,
3037,
310,
603,
326,
2549,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16255,
774,
5541,
261,
11890,
5034,
3844,
951,
41,
451,
16,
2254,
5034,
6744,
82,
13,
1338,
5541,
288,
203,
3639,
2254,
5034,
13750,
273,
3844,
951,
41,
451,
380,
404,
225,
2437,
31,
203,
3639,
309,
16051,
3576,
18,
1... |
// Dependency 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... | * @dev Determine whether the address is an already added address/ | modifier onlyJoined(address addr) {
require(accounts[addr].id > 0, "ANR");
_;
}
| 433,520 | [
1,
8519,
2856,
326,
1758,
353,
392,
1818,
3096,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
1338,
4572,
329,
12,
2867,
3091,
13,
288,
203,
3639,
2583,
12,
13739,
63,
4793,
8009,
350,
405,
374,
16,
315,
1258,
54,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@op... | * @dev Returns the total supply/ | function getTotalMintedPossums() public view returns (uint256) {
return totalMintedPossums;
}
| 1,766,832 | [
1,
1356,
326,
2078,
14467,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
445,
12831,
49,
474,
329,
1616,
1364,
87,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
540,
327,
2078,
49,
474,
329,
1616,
1364,
87,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2022-03-29
*/
// Sources flattened with hardhat v2.9.1 https://hardhat.org
// File contracts/interfaces/IDepositExecute.sol
pragma solidity ^0.8.0;
/**
@title Interface for handler contracts that support deposits and deposit executions.
@author Gamejam.
... | / resourceID => token contract address token contract address => resourceID token contract address => is whitelisted token contract address => is burnable | contract HandlerHelpers is IERCHandler {
bytes32 public _handlerType;
address public _bridgeAddress;
mapping(bytes32 => address) public _resourceIDToTokenContractAddress;
mapping(address => bytes32) public _tokenContractAddressToResourceID;
mapping(address => bool) public _contractWhitelist;
... | 2,306,908 | [
1,
19,
1058,
734,
516,
1147,
6835,
1758,
1147,
6835,
1758,
516,
1058,
734,
1147,
6835,
1758,
516,
353,
26944,
1147,
6835,
1758,
516,
353,
18305,
429,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4663,
13375,
353,
467,
654,
39,
1503,
288,
203,
565,
1731,
1578,
1071,
389,
4176,
559,
31,
203,
565,
1758,
1071,
389,
18337,
1887,
31,
203,
203,
565,
2874,
12,
3890,
1578,
516,
1758,
13,
1071,
389,
3146,
734,
774,
1345,
... |
./full_match/1/0x0000000000C480563CCbc2832FB38Ea654387922/sources/contracts/tokens/ERC1155/extensions/ERC1155PSupply.sol | * @dev See {ERC1155-_beforeTokenTransfer}./ | function _beforeBatchTokenTransfer(
address,
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes memory
) internal virtual override {
if (from == address(0)) {
for (uint256 i; i < ids.length; ) {
... | 9,714,984 | [
1,
9704,
288,
654,
39,
2499,
2539,
17,
67,
5771,
1345,
5912,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5771,
4497,
1345,
5912,
12,
203,
3639,
1758,
16,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
3258,
16,
203,
3639,
2254,
5034,
8526,
745,
892,
30980,
16,
203,
3639,
1... |
pragma solidity ^0.4.6;
contract FourWaySplit {
// balances and account list are publicly visible
mapping(address => uint) public beneficiaryBalance;
address[4] public beneficiaryList;
// emit events for real-time listeners and state history
event LogReceived(address sender, uint amount);
e... | ignoring values not evenly divisible by 4. We round down and keep the change. (No way to remove the loose change, so it's effectively destroyed.) | function pay()
public
payable
returns(bool success)
{
if(msg.value==0) throw;
uint forth = msg.value / 4;
beneficiaryBalance[beneficiaryList[0]] += forth;
beneficiaryBalance[beneficiaryList[1]] += forth;
beneficiaryBalance[beneficiaryList[2]] += forth;
beneficiaryBalance[bene... | 12,720,157 | [
1,
724,
6053,
924,
486,
5456,
715,
3739,
18932,
635,
1059,
18,
1660,
3643,
2588,
471,
3455,
326,
2549,
18,
261,
2279,
4031,
358,
1206,
326,
28393,
2549,
16,
1427,
518,
1807,
23500,
17689,
12998,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
8843,
1435,
7010,
565,
1071,
203,
565,
8843,
429,
203,
565,
1135,
12,
6430,
2216,
13,
203,
225,
288,
203,
565,
309,
12,
3576,
18,
1132,
631,
20,
13,
604,
31,
203,
203,
203,
565,
2254,
364,
451,
273,
1234,
18,
1132,
... |
./partial_match/56/0x79Ed648f0Fb424Ec37897DF87B9ee80cca65B230/sources/ProofOfApes.sol | * Retrieve the tokens owned by the caller./ | function myTokens() public view returns (uint256) {
address _customerAddress = msg.sender;
return balanceOf(_customerAddress);
}
| 11,213,884 | [
1,
5767,
326,
2430,
16199,
635,
326,
4894,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3399,
5157,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
1758,
389,
10061,
1887,
273,
1234,
18,
15330,
31,
203,
565,
327,
11013,
951,
24899,
10061,
1887,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/util... | * @notice Update existing batch by its index @param batchIndex the index of the batch to be changed @param batchStartId index of the first batch token @param batchEndId index of the last batch token @param baseURI ipfs batch URI @param rarity batch rarity Note: batch ids can change over time and reorder as the result o... | function setBatch(
uint256 batchIndex,
uint256 batchStartId,
uint256 batchEndId,
string memory baseURI,
uint256 rarity
) external onlyRole(DEFAULT_ADMIN_ROLE) {
uint256 _batchesLength = _batches.length;
require(_batchesLength > 0, "setBatch: batches is emp... | 11,682,375 | [
1,
1891,
2062,
2581,
635,
2097,
770,
225,
2581,
1016,
326,
770,
434,
326,
2581,
358,
506,
3550,
225,
2581,
1685,
548,
770,
434,
326,
1122,
2581,
1147,
225,
2581,
1638,
548,
770,
434,
326,
1142,
2581,
1147,
225,
1026,
3098,
2359,
255... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4497,
12,
203,
3639,
2254,
5034,
2581,
1016,
16,
203,
3639,
2254,
5034,
2581,
1685,
548,
16,
203,
3639,
2254,
5034,
2581,
1638,
548,
16,
203,
3639,
533,
3778,
1026,
3098,
16,
203,
3639,
2254,
5034,
436,
20498,
203,... |
./full_match/1/0x0e6Ff4E3EC935578673fF04D815544e7503E4A45/sources/home/jenja/stobox-contract/contracts/Roles.sol | * @notice Add the transporter role for the address. @param _address Address for assigning the transporter role./ | function addTransporter(address _address)
external
onlySuperAdmin
{
_assignRole(_address, TRANSPORTER_ROLE);
}
| 4,840,690 | [
1,
986,
326,
906,
7988,
2478,
364,
326,
1758,
18,
225,
389,
2867,
5267,
364,
28639,
326,
906,
7988,
2478,
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,
... | [
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,
527,
1429,
7988,
12,
2867,
389,
2867,
13,
203,
3639,
3903,
203,
3639,
1338,
8051,
4446,
203,
565,
288,
203,
3639,
389,
6145,
2996,
24899,
2867,
16,
14996,
3118,
916,
2560,
67,
16256,
1769,
203,
565,
289,
203,
203,
2,
... |
pragma solidity ^0.4.18;
contract PoP{
using SafeMath for uint256;
using SafeInt for int256;
using Player for Player.Data;
using BettingRecordArray for BettingRecordArray.Data;
using WrappedArray for WrappedArray.Data;
using FixedPoint for FixedPoint.Data;
// Contract Info
string public name;
s... | Delete entry from mapping | self.storedValues[element].active = false;
| 5,507,624 | [
1,
2613,
1241,
628,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
202,
2890,
18,
22601,
1972,
63,
2956,
8009,
3535,
273,
629,
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... |
// File: @openzeppelin/contracts/access/IAccessControl.sol
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)
pragma solidity ^0.8.0;
/**
* @dev External interface of AccessControl declared to support ERC165 detection.
*/
interface IAccessControl {
/**
* @dev Emitted when `newAdminRole` is set ... | verify call is valid | function claim(
uint256 numPieces,
uint256 amount,
uint256 editionIndex,
bytes32[] calldata merkleProof
) external payable {
require(isValidClaim(numPieces,amount,editionIndex,merkleProof));
_mint(msg.sender, editionIndex, numPieces, "");
editions... | 213,002 | [
1,
8705,
745,
353,
923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
12,
203,
3639,
2254,
5034,
818,
16539,
8610,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
5034,
28432,
1016,
16,
203,
3639,
1731,
1578,
8526,
745,
892,
30235,
20439,
203,
565,
262,
3903,
8843,
429,
288,
2... |
./full_match/42/0xe4E1B33043dD92aCB919E1862dA00124Fe8220A7/sources/contracts/UserProxy.sol | *********************************************************** Management functions for Operator / | function setAMMStatus(bool _enable) public onlyOperator {
AMMWrapperStorage.getStorage().isEnabled = _enable;
}
| 9,588,596 | [
1,
10998,
4186,
364,
11097,
9079,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2192,
49,
1482,
12,
6430,
389,
7589,
13,
1071,
1338,
5592,
288,
203,
3639,
432,
8206,
3611,
3245,
18,
588,
3245,
7675,
291,
1526,
273,
389,
7589,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x414Cb1508B05e5556650D59d55Ed9A94bFb1A140/sources/contracts/MBS.sol | * @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut... | abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
| 4,991,671 | [
1,
17727,
1779,
2973,
326,
783,
4588,
819,
16,
6508,
326,
5793,
434,
326,
2492,
471,
2097,
501,
18,
21572,
4259,
854,
19190,
2319,
3970,
1234,
18,
15330,
471,
1234,
18,
892,
16,
2898,
1410,
486,
506,
15539,
316,
4123,
279,
2657,
212... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
565,
445,
389,
3576,
751,
1435,
2713,
1476,
5024,
1135,... |
./full_match/11155111/0xbF3520fB0f9F48C638CD49C68f7E7405cebf9dc1/sources/contracts/Contract.sol | Request memory newRequest; requests.push(newRequest); | function createRequest(string memory description, uint256 value, address payable recipient) public restricted {
Request storage newRequest = requests.push();
newRequest.description = description;
newRequest.value = value;
newRequest.recipient = recipient;
newRequest.complete ... | 3,831,075 | [
1,
691,
3778,
7428,
31,
3285,
18,
6206,
12,
2704,
691,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15798,
12,
1080,
3778,
2477,
16,
2254,
5034,
460,
16,
1758,
8843,
429,
8027,
13,
1071,
15693,
288,
203,
3639,
1567,
2502,
7428,
273,
3285,
18,
6206,
5621,
203,
3639,
7428,
18,
3384,
273,
2477,
31,
203,
3639,
7428,
18,
... |
/**
*Submitted for verification at Etherscan.io on 2019-12-19
*/
// hevm: flattened sources of src/Redeemer.sol
pragma solidity =0.5.11 >0.4.13 >0.4.20 >=0.4.23 >=0.5.0 <0.6.0 >=0.5.5 <0.6.0 >=0.5.11 <0.6.0;
////// lib/dpass/lib/openzeppelin-contracts/src/GSN/Context.sol
/* pragma solidity ^0.5.0; */
/*
* @dev Pro... | fees are sent in this token_
| token_ = sellToken_; | 13,091,114 | [
1,
3030,
281,
854,
3271,
316,
333,
1147,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7734,
1147,
67,
273,
357,
80,
1345,
67,
31,
4766,
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... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/math... | * @notice Withdraws all funds for a user/ | function withdrawAll() external {
withdrawShares(balanceOf(msg.sender));
}
| 5,517,328 | [
1,
1190,
9446,
87,
777,
284,
19156,
364,
279,
729,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
1595,
1435,
3903,
288,
203,
3639,
598,
9446,
24051,
12,
12296,
951,
12,
3576,
18,
15330,
10019,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/3/0x5f79da5f2C8cd80D699cd6D73130D7a517e32B4F/sources/Nexon.sol | * @title Nexon Contract For ERC20 Tokens @dev NEXON tokens as per ERC20 Standards/address private _purchaseableTokensAddress; Address for managing token for token purchase.address private _referralAddress; Referral amount. uint256 private _claimTokens; Number of tokens per claim. | contract Nexon is IERC20 {
using SafeMath for uint256;
bool public _lockStatus = false;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowed;
constructor (string memory name, string memory symbol, uint8 decimals, uint256 totalS... | 5,184,101 | [
1,
50,
338,
265,
13456,
2457,
4232,
39,
3462,
13899,
225,
24011,
673,
2430,
487,
1534,
4232,
39,
3462,
8263,
87,
19,
2867,
3238,
389,
12688,
12104,
429,
5157,
1887,
31,
1377,
5267,
364,
30632,
1147,
364,
1147,
23701,
18,
2867,
3238,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
423,
338,
265,
353,
467,
654,
39,
3462,
288,
203,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
1426,
565,
1071,
225,
389,
739,
1482,
273,
629,
31,
540,
203,
377,
203,
225,
2874,
261,
2867,
516,
2254,... |
pragma solidity ^0.4.15;
/**
* @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(uint... | provides the bonus % | function getBonus() constant returns (uint8) {
return getCurrentBonusRate();
}
| 12,837,451 | [
1,
685,
13427,
326,
324,
22889,
738,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
22889,
1435,
5381,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
5175,
38,
22889,
4727,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2020-08-21
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.10;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error.
*/
library SafeMath {
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
... | inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
| if (limit > minterInfo[account].minted) { | 15,808,689 | [
1,
22170,
18708,
14939,
8350,
13255,
40,
6953,
17187,
478,
21163,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
3595,
405,
1131,
387,
966,
63,
4631,
8009,
81,
474,
329,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0xD60B881c35F0e5eB578d9BBF305f14D0Da5B651d/sources/scripts/NOMAD_AirDrop.sol | * Allows for the distribution of an ERC20 token to be transferred to multiple recipients at a time. This function facilitates batch transfers of differing values (i.e., all recipients can receive different amounts of tokens). @param _addressOfToken The contract address of an ERC20 token. @param _recipients The list of ... | function multiValueTokenAirdrop(
address _addressOfToken,
address[] memory _recipients,
uint256[] memory _values
) public returns (bool) {
ERCInterface token = ERCInterface(_addressOfToken);
require(
_recipients.length == _values.length,
"Total num... | 5,628,156 | [
1,
19132,
364,
326,
7006,
434,
392,
4232,
39,
3462,
1147,
358,
506,
906,
4193,
358,
3229,
12045,
622,
279,
813,
18,
1220,
445,
5853,
330,
305,
815,
2581,
29375,
434,
15221,
310,
924,
261,
77,
18,
73,
12990,
777,
12045,
848,
6798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3309,
620,
1345,
37,
6909,
1764,
12,
203,
3639,
1758,
389,
2867,
951,
1345,
16,
203,
3639,
1758,
8526,
3778,
389,
27925,
16,
203,
3639,
2254,
5034,
8526,
3778,
389,
2372,
203,
565,
262,
1071,
1135,
261,
6430,
13,
288,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./TokenPayment... | * @dev Set a new fee (perentage 0 - 100) for calling the ConvertAndTransfer function./ | function setTriggerFee(uint256 _triggerFee) public onlyOwner {
require(_triggerFee <= 100, "FEE_TOO_HIGH");
triggerFee = _triggerFee;
}
| 2,492,690 | [
1,
694,
279,
394,
14036,
261,
457,
319,
410,
374,
300,
2130,
13,
364,
4440,
326,
4037,
1876,
5912,
445,
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,
... | [
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,
225,
445,
444,
6518,
14667,
12,
11890,
5034,
389,
10668,
14667,
13,
1071,
1338,
5541,
288,
203,
565,
2583,
24899,
10668,
14667,
1648,
2130,
16,
315,
8090,
41,
67,
4296,
51,
67,
29996,
8863,
203,
565,
3080,
14667,
273,
389,
10668,
... |
./partial_match/1/0x5a007dA6F25b6991f15aC0372821Ae3521133943/sources/EBULL.sol | Rebalance function changes the price of ebull in uniswap depending on the leveraged fluctuation in Eth Price | function ReBalance()
public
returns (bool)
{ require(EnableReb==1,"Rebalance not enabled");
EthNow = getPriceETH_USD();
if(EthNow >= EthOld)
{
TokenBurn = _updatedBalance[UniLP].sub(_updatedBalance[UniLP].mul(PrPrecision).div(Change));
TokenBurn=TokenBurn.... | 4,275,456 | [
1,
426,
12296,
445,
3478,
326,
6205,
434,
20371,
420,
316,
640,
291,
91,
438,
8353,
603,
326,
884,
502,
11349,
1183,
853,
11407,
316,
512,
451,
20137,
2,
0,
0,
0,
0,
0,
0,
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,
565,
445,
868,
13937,
1435,
203,
1377,
1071,
203,
565,
1135,
261,
6430,
13,
203,
565,
288,
2583,
12,
8317,
426,
70,
631,
21,
10837,
426,
12296,
486,
3696,
8863,
203,
203,
3639,
512,
451,
8674,
273,
25930,
1584,
44,
67,
3378,
40... |