file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import "../strategy-univ3-base.sol";
import "../../interfaces/backscratcher/IStrategyProxy.sol";
contract StrategyFraxDaiUniV3 is StrategyUniV3Base {
address public strategyProxy;
address public frax_dai_pool = 0x97e7d... | * @notice Withdraws liquidity in share proportion to the Sorbetto's totalSupply. @param pool Uniswap V3 pool @param tickLower The lower tick of the range @param tickUpper The upper tick of the range @param totalSupply The amount of total shares in existence @param share to burn @param to Recipient of amounts @return am... | function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);
function exactInput(ExactInputParams memory params) external payable returns (uint256 amountOut);
}
}
pragma solidity ^0.6.12;
}
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
impor... | 11,873,927 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3423,
9446,
87,
4501,
372,
24237,
316,
7433,
23279,
358,
326,
348,
16640,
278,
869,
1807,
2078,
3088,
1283,
18,
632,
891,
2845,
1351,
291,
91,
438,
776,
23,
2845,
632,
891,
4024,
4070,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5565,
1210,
5281,
12,
14332,
1210,
5281,
1370,
745,
892,
859,
13,
3903,
8843,
429,
1135,
261,
11890,
5034,
3844,
1182,
1769,
203,
203,
565,
445,
5565,
1210,
12,
14332,
1210,
1370,
3778,
859,
13,
3903,
8843,
429,
1135,
2... |
./partial_match/4/0x95E6FcEDE6bFfb9ec5bE1e2EF5555F7a43B09CC2/sources/contracts/interfaces/IAvalanche.sol | function addEthReward() external virtual payable; | interface IAvalanche {
function active() external view returns (bool);
function activate() external;
function addPwdrReward(address _from, uint256 _amount) external;
function stake(uint256 _amount) external;
function stakeFor(address _user, uint256 _amount) external;
function claim() external;
... | 8,565,824 | [
1,
4625,
348,
7953,
560,
30,
225,
445,
527,
41,
451,
17631,
1060,
1435,
3903,
5024,
8843,
429,
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,
... | [
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,
5831,
467,
37,
1125,
304,
18706,
288,
203,
565,
445,
2695,
1435,
3903,
1476,
1135,
261,
6430,
1769,
203,
565,
445,
10235,
1435,
3903,
31,
203,
203,
565,
445,
527,
52,
91,
3069,
17631,
1060,
12,
2867,
389,
2080,
16,
2254,
5034,
... |
pragma solidity ^0.8.0;
pragma experimental ABIEncoderV2;
// import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol";
import "./SafeBEP20.sol";
// import "@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol";
import "./IBEP20.sol";
import "./IPancakeRouter02.sol";
import "./IPancakePair.... | IBunnyMinterV2 internal _minter; IBunnyChef internal _bunnyChef; | abstract contract VaultController is IVaultController, PausableUpgradeable, WhitelistUpgradeable {
using SafeBEP20 for IBEP20;
IBEP20 private constant BUNNY = IBEP20(0xC9849E6fdB743d08fAeE3E34dd2D1bc69EA11a51);
address public keeper;
IBEP20 internal _stakingToken;
uint256[49] private __gap;
... | 7,282,914 | [
1,
4625,
348,
7953,
560,
30,
225,
23450,
318,
18538,
49,
2761,
58,
22,
2713,
389,
1154,
387,
31,
23450,
318,
18538,
39,
580,
74,
2713,
389,
70,
318,
18538,
39,
580,
74,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
17329,
2933,
353,
467,
12003,
2933,
16,
21800,
16665,
10784,
429,
16,
3497,
7523,
10784,
429,
288,
203,
565,
1450,
14060,
5948,
52,
3462,
364,
467,
5948,
52,
3462,
31,
203,
203,
565,
467,
5948,
52,
3462,
3238,
5381,
... |
./partial_match/1/0xD0b84F42b3B88eeF7AA88c48Ac8EC08130d48595/sources/src/v0.8/ccip/pools/LockReleaseTokenPool.sol | @notice Token pool used for tokens on their native chain. This uses a lock and release mechanism. Because of lock/unlock requiring liquidity, this pool contract also has function to add and remove liquidity. This allows for proper bookkeeping for both user and liquidity provider balances. @dev One token per LockReleas... | contract LockReleaseTokenPool is TokenPool {
using SafeERC20 for IERC20;
event LiquidityAdded(address indexed provider, uint256 indexed amount);
event LiquidityRemoved(address indexed provider, uint256 indexed amount);
error InsufficientLiquidity();
error WithdrawalTooHigh();
bytes4 private constant LOCK... | 4,447,990 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
3155,
2845,
1399,
364,
2430,
603,
3675,
6448,
2687,
18,
1220,
4692,
279,
2176,
471,
3992,
12860,
18,
15191,
434,
2176,
19,
26226,
29468,
4501,
372,
24237,
16,
333,
2845,
6835,
2546,
711,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3488,
7391,
1345,
2864,
353,
3155,
2864,
288,
203,
225,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
225,
871,
511,
18988,
24237,
8602,
12,
2867,
8808,
2893,
16,
2254,
5034,
8808,
3844,
1769,
203,
225... |
pragma experimental ABIEncoderV2;
import "./DummyERC20A.sol";
interface IERC20WithDummyFunctionality {
function transfer(address to, uint amt) external;
function transferFrom(address from, address to, uint amt) external;
function balanceOf(address who) external returns (uint);
function allowance(addre... | HCEther */function repayBorrowBehalf(address borrower) external payable returns (uint256) { | uint pay = msg.value;
| 2,520,747 | [
1,
4625,
348,
7953,
560,
30,
225,
670,
1441,
1136,
1195,
915,
2071,
528,
38,
15318,
1919,
20222,
12,
2867,
29759,
264,
13,
3903,
8843,
429,
1135,
261,
11890,
5034,
13,
288,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
8843,
273,
1234,
18,
1132,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x30a3Eb8f3580Eb63081AA8605D828D9C7421577F/sources/contracts/SoxialPug.sol | * @dev Destroys `tokenId`. The approval is cleared when the token is burned. Requirements: - `tokenId` must exist. Emits a {Transfer} event./ Clear approvalsafter sending to null address. Send accumalated rewards of $BONES to owner address. | function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
... | 9,812,642 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
2316,
548,
8338,
1021,
23556,
353,
16054,
1347,
326,
1147,
353,
18305,
329,
18,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
18,
7377,
1282,
279,
288,
5912,
97,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
70,
321,
12,
11890,
5034,
1147,
548,
13,
2713,
5024,
288,
203,
3639,
1758,
3410,
273,
4232,
39,
27,
5340,
18,
8443,
951,
12,
2316,
548,
1769,
203,
203,
3639,
389,
5771,
1345,
5912,
12,
8443,
16,
1758,
12,
20,
3... |
ο»Ώautomat sg
{
#region MODIF_TYPE:ADV
// ------------------------------------------------------
// Π½Π°ΡΠ΅ΡΠΈΡ, ΠΊΠΎΡΠΎΡΡΠ΅ ΠΌΠΎΠ³ΡΡ ΠΌΠΎΠ΄ΠΈΡΠΈΡΠΈΡΠΎΠ²Π°ΡΡ Π΄ΡΡΠ³ΠΈΠ΅ Π½Π°ΡΠ΅ΡΠΈΡ,
// Π²ΡΡΡΡΠΏΠ°Ρ Π² ΡΠΎΠ»ΠΈ ΠΏΡΠ΅Π΄ΡΠ΅ΡΡΠ²ΡΡΡΠΈΡ
ΠΌΠΎΠ΄ΠΈΡΠΈΠΊΠ°ΡΠΎΡΠΎΠ².
// ------------------------------------------------------
tag eng_adverb:straight{ MODIF_TYPE:ADV } // Go straight bac... | He unerringly fixed things for us.
| tag eng_adverb:unerringly{ MODIF_TYPE:VERB } | 6,445,931 | [
1,
4625,
348,
7953,
560,
30,
225,
8264,
640,
20245,
715,
5499,
9198,
364,
584,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
2692,
24691,
67,
361,
16629,
30,
318,
20245,
715,
95,
8663,
5501,
67,
2399,
30,
2204,
38,
289,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x0a02b9e9ab934a911Fb182C564c92aa55ed4245B/sources/contracts/WorkCredentialNFT.sol | * @dev Sets the image URL of a specific NFT. @param tokenId The ID of the token for which the image URL will be set. @param imageUrl The new image URL to be set for the specified token. Requirements: - The token with the given tokenId must exist. - Only addresses with the admin role can call this function./ | function setImageUrl(
uint256 tokenId,
string memory imageUrl
) public onlyAdmin {
require(_exists(tokenId), "URI query for nonexistent token");
require(ownerOf(tokenId) != address(0), "Token does not exist");
TokenData storage tokenData = _tokenData[tokenId];
tok... | 1,928,249 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
1316,
1976,
434,
279,
2923,
423,
4464,
18,
632,
891,
1147,
548,
1021,
1599,
434,
326,
1147,
364,
1492,
326,
1316,
1976,
903,
506,
444,
18,
632,
891,
27544,
1021,
394,
1316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18893,
1489,
12,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
533,
3778,
27544,
203,
565,
262,
1071,
1338,
4446,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
3098,
843,
364,
1661,
19041,
1147,
8863,
... |
./full_match/1/0x807ad0f31cb7FCa705913C1c35A6027c9BB9A917/sources/Users/dingyp/vsCode/splitharvest/audit/contracts/storage/GatlingStorage.sol | UniLP ([usdt-eth].part) MatchPair.address Uniswsap V2RouterUpdate every half day by default | contract GatlingStorage {
address public stakeLpPair;
address public profitStrategy;
address public matchPair;
address public v2Router;
uint256 public totalAmount;
uint256 public _presentRate = 1e18;
uint256 public reprofitCountTotal;
uint256 public createAt;
uint256 public upda... | 2,918,608 | [
1,
4625,
348,
7953,
560,
30,
225,
1351,
77,
14461,
23265,
407,
7510,
17,
546,
8009,
2680,
13,
4639,
4154,
18,
2867,
1351,
291,
4749,
438,
776,
22,
8259,
1891,
3614,
8816,
2548,
635,
805,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
611,
270,
2456,
3245,
288,
203,
565,
1758,
1071,
225,
384,
911,
48,
84,
4154,
31,
203,
203,
565,
1758,
1071,
450,
7216,
4525,
31,
203,
203,
565,
1758,
1071,
845,
4154,
31,
203,
565,
1758,
1071,
331,
22,
8259,
31,
203,
... |
./full_match/56/0xF5532d7433Cfd6f201f658a963C5e500CAF46434/sources/project_/contracts/Insignia.sol | * @dev Blocks an address/ | function blockAddress(address _address) public onlyOwner {
_blockedAddresses[_address] = true;
}
| 3,249,122 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22713,
392,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1203,
1887,
12,
2867,
389,
2867,
13,
1071,
1338,
5541,
288,
203,
3639,
389,
23156,
7148,
63,
67,
2867,
65,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x9490CCf93Cd750dc47f72402A163022cfB94CFC9/sources/contracts/vaults/TreasuryVault/RibbonAutocallVault.sol | * @notice Initializes the OptionVault contract with storage variables. @param _initParams is the struct with vault initialization parameters @param _vaultParams is the struct with vault general data @param _optionType is type of the next put option @param _couponState is the coupon state @param _obsFreq is the observat... | function initialize(
VaultLifecycleTreasury.InitParams calldata _initParams,
Vault.VaultParams calldata _vaultParams,
OptionType _optionType,
CouponState calldata _couponState,
uint256 _obsFreq,
address _autocallSeller
) external initializer {
_initialize(... | 3,540,628 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10188,
3128,
326,
2698,
12003,
6835,
598,
2502,
3152,
18,
632,
891,
389,
2738,
1370,
353,
326,
1958,
598,
9229,
10313,
1472,
632,
891,
389,
26983,
1370,
353,
326,
1958,
598,
9229,
7470,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
203,
3639,
17329,
9977,
56,
266,
345,
22498,
18,
2570,
1370,
745,
892,
389,
2738,
1370,
16,
203,
3639,
17329,
18,
12003,
1370,
745,
892,
389,
26983,
1370,
16,
203,
3639,
2698,
559,
389,
3482,
559,
16,
203,
3... |
./full_match/1/0x2DE9441C3e22725474146450FC3467A2c778040F/sources/pickle.sol | @dev Mints synthetic tokens by either claiming credit or increasing the debt. Claiming credit will take priority over increasing the debt. This function reverts if the debt is increased and the CDP health check fails. @param _amount the amount of alchemic tokens to borrow. | function mint(uint256 _amount) external nonReentrant noContractAllowed onLinkCheck expectInitialized {
CDP.Data storage _cdp = _cdps[msg.sender];
_cdp.update(_ctx);
uint256 _totalCredit = _cdp.totalCredit;
if (_totalCredit < _amount) {
uint256 _remainingAmount = _amount.sub(_totalCredit);
... | 3,122,690 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
490,
28142,
25535,
2430,
635,
3344,
7516,
310,
12896,
578,
21006,
326,
18202,
88,
18,
18381,
310,
12896,
903,
4862,
4394,
1879,
21006,
326,
18202,
88,
18,
1220,
445,
15226,
87,
309,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
312,
474,
12,
11890,
5034,
389,
8949,
13,
3903,
1661,
426,
8230,
970,
1158,
8924,
5042,
603,
2098,
1564,
4489,
11459,
288,
203,
203,
565,
385,
8640,
18,
751,
2502,
389,
4315,
84,
273,
389,
4315,
1121,
63,
3576,
18,
15... |
./full_match/84531/0x62eD7fd3A9CDd4633C4Bcc7baA60aCA8A75ca5eD/sources/token.sol | * @dev See {BEP20-totalSupply}./ | function totalSupply() override external view returns (uint256) {
return _totalSupply;
}
| 11,521,070 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
5948,
52,
3462,
17,
4963,
3088,
1283,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2078,
3088,
1283,
1435,
3849,
225,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
389,
4963,
3088,
1283,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x8a0607460C56949052B6b66786D794ec41E575C4/sources/Arb.sol | (bool success, bytes memory data) = calls[i].to.call.value(calls[i].value)(calls[i].data); | function batch(Call[] memory calls) onlyOwner saveGas public returns (bytes[] memory returnData) {
returnData = new bytes[](calls.length);
for(uint8 i = 0; i < calls.length; i++) {
require(success, string(data));
returnData[i] = data;
}
}
| 4,966,179 | [
1,
4625,
348,
7953,
560,
30,
225,
261,
6430,
2216,
16,
1731,
3778,
501,
13,
273,
4097,
63,
77,
8009,
869,
18,
1991,
18,
1132,
12,
12550,
63,
77,
8009,
1132,
21433,
12550,
63,
77,
8009,
892,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
2581,
12,
1477,
8526,
3778,
4097,
13,
1338,
5541,
1923,
27998,
1071,
1135,
261,
3890,
8526,
3778,
327,
751,
13,
288,
203,
3639,
327,
751,
273,
394,
1731,
8526,
12,
12550,
18,
2469,
1769,
203,
3639,
364,
12,
11890,
28,
... |
pragma solidity ^0.4.24;
// Example. Token and crowdsale contact
// ====================================
// Crowdsale basic information:
// ------------------------------------
// Token name: Tutorial_name
// Token symbol: TTN
// Decimals: 0
// Total supply cap: 5 000 000 tokens
// Price: 500 tokens per 1 ether
// Bon... | ------------------------------------------------------------------------ Get the token balance for account `tokenOwner` ------------------------------------------------------------------------ | function checkBalanceOf(address tokenOwner) public view returns (uint balance) {
return balances[tokenOwner];
}
| 6,392,954 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
968,
326,
1147,
11013,
364,
2236,
1375,
2316,
5541,
68,
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,
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,
866,
13937,
951,
12,
2867,
1147,
5541,
13,
1071,
1476,
1135,
261,
11890,
11013,
13,
288,
203,
3639,
327,
324,
26488,
63,
2316,
5541,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/4/0x6356AB9717536b9402f02612b73DddD8AA0eCDF9/sources/Users/legendarypanda/Desktop/verucallevels/merged_contracts/LevelsCore.sol | console.log("5 days since start is", contractStartTimestamp.add(5 days), "Time now is", block.timestamp);console.log("liquidity generation ongoing", contractStartTimestamp.add(5 days) < block.timestamp); | function liquidityGenerationOngoing() public view returns (bool) {
return contractStartTimestamp.add(LGEPeriod) > block.timestamp || isTesting;
}
| 12,394,692 | [
1,
4625,
348,
7953,
560,
30,
2983,
18,
1330,
2932,
25,
4681,
3241,
787,
353,
3113,
6835,
1685,
4921,
18,
1289,
12,
25,
4681,
3631,
315,
950,
2037,
353,
3113,
1203,
18,
5508,
1769,
8698,
18,
1330,
2932,
549,
372,
24237,
9377,
30542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
565,
445,
4501,
372,
24237,
13842,
1398,
8162,
1435,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
6835,
1685,
4921,
18,
1289,
12,
48,
7113,
5027,
13,
405,
1203,
18,
5508,
747,
353,
22218,
31,
203,
565,
289,
203,
203,
2... |
pragma solidity ^0.4.11;
import 'zeppelin-solidity/contracts/math/SafeMath.sol';
import 'zeppelin-solidity/contracts/lifecycle/Pausable.sol';
import './GifToken.sol';
/**
* @title Crowdsale contract for GIF Token.
* @author SOCIFI Ltd, 2017
* @dev This is the main contract for the SOCIFI ICO. This crowdsale cont... | * @dev Mint tokens in given amount and assign them to given address. Be aware of max supply of tokens. @param _to address The address that will receive the minted tokens. @param _amount uint256 The amount of tokens to mint. @return bool A boolean that indicates if the operation was successful./ | function mintTokens(address _to, uint256 _amount) onlyOwner public returns (bool) {
require(now <= endTime);
return token.mint(_to, _amount);
}
| 6,381,966 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
2430,
316,
864,
3844,
471,
2683,
2182,
358,
864,
1758,
18,
4823,
18999,
434,
943,
14467,
434,
2430,
18,
632,
891,
389,
869,
1758,
1021,
1758,
716,
903,
6798,
326,
312,
474,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
5157,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1338,
5541,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
3338,
1648,
13859,
1769,
203,
203,
3639,
327,
1147,
18,
81,
474,
24899,
869,
16,
389,... |
./full_match/80001/0xb897aeC5F100C906B859D7f1D307DdBeDE002F2A/sources/project_/contracts/NFTMarketPlace.sol | Fetch all unsold nft items[1,2,3,4,5] | function getAllUnsoldItems() public view returns (NftMerketItem[] memory) {
uint256 totalItemCount = itemId.current();
uint256 myItemCount = itemId.current() - itemsSold.current();
uint256 myCurrentIndex = 0;
for (uint256 i = 0; i < totalItemCount; i++) {
if (idForMarket... | 5,575,819 | [
1,
4625,
348,
7953,
560,
30,
8065,
225,
777,
16804,
1673,
290,
1222,
1516,
63,
21,
16,
22,
16,
23,
16,
24,
16,
25,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5514,
984,
87,
1673,
3126,
1435,
1071,
1476,
1135,
261,
50,
1222,
8478,
79,
278,
1180,
8526,
3778,
13,
288,
203,
3639,
2254,
5034,
2078,
30687,
273,
18424,
18,
2972,
5621,
203,
3639,
2254,
5034,
3399,
30687,
273,
18424,
... |
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(uint256 a, uint256 ... | Override Auction.endAuction to transfer The Tulip Token in the same transaction. | function endAuction() {
transfer(highestBidder, 1);
Auction.endAuction();
}
| 2,153,332 | [
1,
4625,
348,
7953,
560,
30,
225,
1439,
432,
4062,
18,
409,
37,
4062,
358,
7412,
1021,
399,
332,
625,
3155,
316,
326,
1967,
2492,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
679,
37,
4062,
1435,
288,
203,
1377,
7412,
12,
8766,
395,
17763,
765,
16,
404,
1769,
203,
1377,
432,
4062,
18,
409,
37,
4062,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// Practitioner: Can approved to policy with defult consent for procedure and track authenticity.
pragma solidity ^0.5.0;
// Import the library 'Roles'
import "./Roles.sol";
// Define a contract 'PractitionerRole' to manage this role - add, remove, check
contract Practitioner {
using Roles for Roles.Role;
... | Define a function 'addPractitioner' that adds this role | function addPractitioner(address account) public onlyPractitioner {
_addPractitioner(account);
}
| 1,015,160 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
279,
445,
296,
1289,
52,
14266,
608,
264,
11,
716,
4831,
333,
2478,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
52,
14266,
608,
264,
12,
2867,
2236,
13,
1071,
1338,
52,
14266,
608,
264,
288,
203,
3639,
389,
1289,
52,
14266,
608,
264,
12,
4631,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/5/0xaA261fC9574174090A290fF74a50C5cFA70A0E68/sources/contracts/deneme.sol | @notice Allows contract to transfer and amount of funds to an address | function _withdraw(address _address, uint256 _amount) private {
if (!success) revert TransferFailed();
}
| 1,865,360 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25619,
6835,
358,
7412,
471,
3844,
434,
284,
19156,
358,
392,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
389,
1918,
9446,
12,
2867,
389,
2867,
16,
2254,
5034,
389,
8949,
13,
3238,
288,
203,
3639,
309,
16051,
4768,
13,
15226,
12279,
2925,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/1/0xcf1c168450314D67892527108E577b5d9Cb1663F/sources/TetherToken.sol | / Getter to allow the same blacklist to be used also by other contracts (including upgraded Tether) / | function getBlackListStatus(address _maker) external constant returns (bool) {
return isBlackListed[_maker];
}
mapping (address => bool) public isBlackListed;
| 4,316,298 | [
1,
4625,
348,
7953,
560,
30,
342,
968,
387,
358,
1699,
326,
1967,
11709,
358,
506,
1399,
2546,
635,
1308,
20092,
261,
31348,
31049,
399,
2437,
13,
342,
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,
28373,
484,
682,
1482,
12,
2867,
389,
29261,
13,
3903,
5381,
1135,
261,
6430,
13,
288,
203,
3639,
327,
353,
13155,
682,
329,
63,
67,
29261,
15533,
203,
565,
289,
203,
203,
565,
2874,
261,
2867,
516,
1426,
13,
1071,
35... |
./full_match/42/0x42A94d2E5f033D8dEA4Aa7B45682935182834c3D/sources/contracts/protocol/libraries/logic/GenericLogic.sol | * @dev Calculates the user data across the reserves. this includes the total liquidity/collateral/borrow balances in ETH, the average Loan To Value, the average Liquidation Ratio, and the Health factor. @param user The address of the user @param reservesData Data of all the reserves @param userConfig The configuration ... | function calculateUserAccountData(
address user,
mapping(address => DataTypes.ReserveData) storage reservesData,
DataTypes.UserConfigurationMap memory userConfig,
mapping(uint256 => address) storage reserves,
uint256 reservesCount,
address oracle
)
internal
view
returns (
u... | 16,241,056 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
26128,
326,
729,
501,
10279,
326,
400,
264,
3324,
18,
333,
6104,
326,
2078,
4501,
372,
24237,
19,
12910,
2045,
287,
19,
70,
15318,
324,
26488,
316,
512,
2455,
16,
326,
8164,
3176,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
1299,
3032,
751,
12,
203,
565,
1758,
729,
16,
203,
565,
2874,
12,
2867,
516,
1910,
2016,
18,
607,
6527,
751,
13,
2502,
400,
264,
3324,
751,
16,
203,
565,
1910,
2016,
18,
1299,
1750,
863,
3778,
729,
809,
16,
20... |
pragma solidity >=0.5.0 <0.6.0;
/**
* @title IERC20Permit
* @dev Interface for ERC20 with minting function
* Sourced from OpenZeppelin
* (https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/token/ERC20/IERC20.sol)
* and with an added permit() and mint() function.
*/
contract IERC20Per... | * @title IERC20Permit @dev Interface for ERC20 with minting function Sourced from OpenZeppelin and with an added permit() and mint() function./ | contract IERC20Permit {
mapping (address => uint) public nonces;
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external... | 15,820,046 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
467,
654,
39,
3462,
9123,
305,
632,
5206,
6682,
364,
4232,
39,
3462,
598,
312,
474,
310,
445,
4998,
72,
628,
3502,
62,
881,
84,
292,
267,
471,
598,
392,
3096,
21447,
1435,
471,
312,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
467,
654,
39,
3462,
9123,
305,
288,
203,
203,
565,
2874,
261,
2867,
516,
2254,
13,
8227,
1071,
1661,
764,
31,
203,
565,
445,
7412,
12,
2867,
358,
16,
2254,
5034,
460,
13,
3903,
1135,
261,
6430,
1769,
203,
203,
565,
445,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./utils/SafeERC20.sol";
import "./interfaces/PLBTStaking/IPLBTStaking.sol";
... | total produced rewards in wETH
| uint256 public totalProducedWETH; | 13,533,785 | [
1,
4625,
348,
7953,
560,
30,
225,
2078,
14929,
283,
6397,
316,
341,
1584,
44,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
2254,
5034,
1071,
2078,
8390,
3263,
59,
1584,
44,
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,
-1... |
./full_match/1/0x4637EAef1d9488955cBf08376bb3BE0F2371A58F/sources/BancorArbitrage/contracts/arbitrage/BingArbitrage.sol | modifier to check if caller is owner | modifier isOwner() {
require(msg.sender == _owner, "Caller is not owner");
_;
}
address bancorNetworkV3Address = 0xeEF417e1D5CC832e619ae18D2F140De2999dD4fB;
address uniswapV2RouterAddress = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
address uniswapV3RouterAddress = 0xE5... | 16,488,677 | [
1,
4625,
348,
7953,
560,
30,
225,
9606,
358,
866,
309,
4894,
353,
3410,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
9606,
353,
5541,
1435,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
389,
8443,
16,
315,
11095,
353,
486,
3410,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
3639,
1758,
25732,
3850,
3906,
58,
23,
1887,
273,
374,
65... |
./partial_match/1/0x09c07C439333E387E501Df5cDBa8CEF3E26aD455/sources/YSTToken.sol | EnergyToken with Governance. Copied and modified from YAM code: https:github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol https:github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol Which is copied and modified from COMPOUND: https:github.com/compound-fi... | contract YSTToken is ERC20("YSTToken", "YST"), Ownable {
using SafeMath for uint256;
mapping(address => address) internal _delegates;
struct Checkpoint {
uint32 fromBlock;
uint256 votes;
}
"EIP712Domain(string name,uint256 chainId,address verifyingContract)"
);
... | 2,588,077 | [
1,
4625,
348,
7953,
560,
30,
225,
512,
1224,
7797,
1345,
598,
611,
1643,
82,
1359,
18,
28506,
2092,
471,
4358,
628,
1624,
2192,
981,
30,
2333,
30,
6662,
18,
832,
19,
93,
301,
17,
926,
1359,
19,
93,
301,
17,
8373,
19,
10721,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
1624,
882,
1345,
353,
4232,
39,
3462,
2932,
61,
882,
1345,
3113,
315,
61,
882,
6,
3631,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
2874,
12,
2867,
516,
1758,
13,
2713,
389,
3... |
./full_match/1/0x26925aaB1a8A8C3EC344a40Fa350d1aCc3F6DBb7/sources/VaiB.sol | exlcude from fees and max transaction amount Store the automatic market maker pair addresses. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract VaiB is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
uint256 public maxSellTransactionAmount;
uint256 public... | 4,944,072 | [
1,
4625,
348,
7953,
560,
30,
225,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
4994,
326,
5859,
13667,
312,
6388,
3082,
6138,
18,
5502,
7412,
380,
869,
14,
4259,
6138,
3377,
506,
3221,
358,
279,
4207,
7412,
3844,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
776,
10658,
38,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
... |
/**
*Submitted for verification at Etherscan.io on 2021-06-08
*/
//SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external v... | @notice this function allows the contract controller to create a tranche @notice tranche zero is perma-locked and already exists prior to running this function, making the first vesting tranche "tranche:1" @param cliff_start is a timestamp in seconds of when vesting begins for this tranche @param duration is the numbe... | function create_tranche(uint256 cliff_start, uint256 duration) public only_controller {
tranches[tranche_count] = tranche(cliff_start, duration);
emit TrancheCreated(tranche_count, cliff_start, duration);
tranche_count++;
| 10,633,206 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
333,
445,
5360,
326,
6835,
2596,
358,
752,
279,
13637,
18706,
632,
20392,
13637,
18706,
3634,
353,
4641,
69,
17,
15091,
471,
1818,
1704,
6432,
358,
3549,
333,
445,
16,
10480,
326,
1122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
67,
13171,
18706,
12,
11890,
5034,
927,
3048,
67,
1937,
16,
2254,
5034,
3734,
13,
1071,
1338,
67,
5723,
288,
203,
565,
13637,
11163,
63,
13171,
18706,
67,
1883,
65,
273,
13637,
18706,
12,
830,
3048,
67,
1937,
16,
... |
pragma solidity ^0.4.17;
library SafeMathMod {// Partial SafeMath Library
function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
require((c = a - b) < a);
}
function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
require((c = a + b) > a);
}
}
contract E... | * @notice `msg.sender` approves `_spender` to spend `_value` tokens @param _spender The address of the account able to transfer the tokens @param _value The amount of tokens to be approved for transfer @return Whether the approval was successful or not/ | function approve(address _spender, uint256 _value) public returns (bool success) {
require(_spender != address(0));
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
| 2,025,393 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1375,
3576,
18,
15330,
68,
6617,
3324,
1375,
67,
87,
1302,
264,
68,
358,
17571,
1375,
67,
1132,
68,
2430,
632,
891,
389,
87,
1302,
264,
1021,
1758,
434,
326,
2236,
7752,
358,
7412,
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,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
24899,
87,
1302,
264,
480,
1758,
12,
20,
10019,
203,
203,
3639,
2935,
63,
3576,
18,
15330,... |
./full_match/1/0x5D8217F64fA8620F6EE4270De2e773C4795f4cea/sources/contracts/StackedMonkeys.sol | check deposit amount. | function depositsOf(address account, bool checkStacked)
external
view
returns (uint256[] memory)
{
uint256 _stacked = boolToUint(checkStacked);
EnumerableSet.UintSet storage depositSet = _deposits[_stacked][account];
uint256[] memory tokenIds = new uint256[](depos... | 16,556,033 | [
1,
4625,
348,
7953,
560,
30,
866,
443,
1724,
3844,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
443,
917,
1282,
951,
12,
2867,
2236,
16,
1426,
866,
2624,
329,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
8526,
3778,
13,
203,
565,
288,
203,
3639,
2254,
5034,
389,
3772,
329,
273,
1426,
... |
./partial_match/1/0xEb2Bf7f5A441b43Ed197a8b4d347B275652a879E/sources/CompoundIntegration.sol | **************************************/**************************************/* @dev Simple helper func to get the min of two values/ | function _abstractSetPToken(address _bAsset, address _pToken) internal;
function reApproveAllTokens() external;
ABSTRACT
function deposit(address _bAsset, uint256 _amount, bool _hasTxFee)
external returns (uint256 quantityDeposited);
function withdraw(address _receiver, a... | 3,723,486 | [
1,
4625,
348,
7953,
560,
30,
20210,
1007,
5549,
5021,
17097,
14,
632,
5206,
4477,
4222,
1326,
358,
336,
326,
1131,
434,
2795,
924,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17801,
694,
52,
1345,
12,
2867,
389,
70,
6672,
16,
1758,
389,
84,
1345,
13,
2713,
31,
203,
203,
565,
445,
283,
12053,
537,
1595,
5157,
1435,
3903,
31,
203,
203,
10792,
10336,
21398,
203,
203,
565,
445,
443,
1724,... |
./partial_match/1/0x811614dAAc8f37EDf25a86F3bDE774B1e886ccF5/sources/ArmorToken.sol | @notice Total amount of tokens at a specific `_blockNumber`. @param _blockNumber The block number when the totalSupply is queried @return The total amount of tokens at `_blockNumber` These next few lines are used when the totalSupply of the token is requested before a check point was ever created for this token, it ... | function totalSupplyAt(uint _blockNumber) public view returns(uint) {
if ((totalSupplyHistory.length == 0)
|| (totalSupplyHistory[0].fromBlock > _blockNumber)) {
return 0;
return getValueAt(totalSupplyHistory, _blockNumber);
}
}
| 4,325,791 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
10710,
3844,
434,
2430,
622,
279,
2923,
1375,
67,
2629,
1854,
8338,
632,
891,
389,
2629,
1854,
1021,
1203,
1300,
1347,
326,
2078,
3088,
1283,
353,
23264,
632,
2463,
1021,
2078,
3844,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
2078,
3088,
1283,
861,
12,
11890,
389,
2629,
1854,
13,
1071,
1476,
1135,
12,
11890,
13,
288,
203,
203,
3639,
309,
14015,
4963,
3088,
1283,
5623,
18,
2469,
422,
374,
13,
203,
5411,
747,
261,
4963,
3088,
1283,
5623,
63,
... |
pragma solidity 0.5.9;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/math/Math.sol";
import "../token/ERC20Acceptor.sol";
import "../utils/Expression.sol";
import "../utils/Fractional.sol";
import "../Parameters.sol";
contract TCRBase is ERC20Acceptor {
using F... | / Amount token that is not on challenge stake
| uint256 deposit; | 2,497,386 | [
1,
4625,
348,
7953,
560,
30,
342,
16811,
1147,
716,
353,
486,
603,
12948,
384,
911,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
443,
1724,
31,
1850,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0xC4C7722125148Aba8cBC4599AC71BC361c1e8F71/sources/project_/contracts/NissanApp.sol | * @dev Returns whether `spender` is allowed to manage `tokenId`. Requirements: - `tokenId` must exist./ | function _isApprovedOrOwner(address spender, uint256 tokenId)
internal
view
override
returns (bool)
{
return super._isApprovedOrOwner(spender, tokenId) || hasRole(OPERATOR_ROLE, spender) || (_proxyApproved && hasRole(PROXY_ROLE, spender));
}
| 5,661,908 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
2856,
1375,
87,
1302,
264,
68,
353,
2935,
358,
10680,
1375,
2316,
548,
8338,
29076,
30,
300,
1375,
2316,
548,
68,
1297,
1005,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
291,
31639,
1162,
5541,
12,
2867,
17571,
264,
16,
2254,
5034,
1147,
548,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
2240,
6315,
291,
31639,... |
./partial_match/1/0x3eDd52172e8dA2629E4F2D1672522E3e3f75E5d6/sources/SpartanCouncil.sol | * @dev Mint function to mint a new token given a tokenId and assign it to an address Reverts if the tokenId is 0 or the token already exist @param to address the address to assign the token to @param tokenId uint256 ID of the token to mint/ | function mint(address to, uint256 tokenId) public onlyOwner isValidAddress(to) {
_mint(to, tokenId);
emit Transfer(address(0), to, tokenId);
}
| 3,968,023 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
474,
445,
358,
312,
474,
279,
394,
1147,
864,
279,
1147,
548,
471,
2683,
518,
358,
392,
1758,
868,
31537,
309,
326,
1147,
548,
353,
374,
578,
326,
1147,
1818,
1005,
632,
891,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
1071,
1338,
5541,
4908,
1887,
12,
869,
13,
288,
203,
3639,
389,
81,
474,
12,
869,
16,
1147,
548,
1769,
203,
203,
3639,
3626,
12279,
12,
2867,
12,
20,
3631,
358... |
./full_match/1/0x3674615294BA0eF41bc456a4bc8d414c21eCF28E/sources/browser/WalletSimple.sol | * Gets signer's address using ecrecover @param operationHash see Data Formats @param signature see Data Formats returns address recovered from the signature/ We need to unpack the signature, which is given as an array of 65 bytes (like eth.sign) solhint-disable-next-line | function recoverAddressFromSignature(
bytes32 operationHash,
bytes memory signature
) private pure returns (address) {
require(signature.length == 65, "Invalid signature - wrong length");
bytes32 r;
bytes32 s;
uint8 v;
assembly {
r := mload(add(signature, 32))
s := mload(ad... | 8,372,730 | [
1,
4625,
348,
7953,
560,
30,
380,
11881,
10363,
1807,
1758,
1450,
425,
1793,
3165,
632,
891,
1674,
2310,
2621,
1910,
2748,
2323,
632,
891,
3372,
2621,
1910,
2748,
2323,
1135,
1758,
24616,
628,
326,
3372,
19,
1660,
1608,
358,
6167,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
5910,
1887,
1265,
5374,
12,
203,
565,
1731,
1578,
1674,
2310,
16,
203,
565,
1731,
3778,
3372,
203,
225,
262,
3238,
16618,
1135,
261,
2867,
13,
288,
203,
565,
2583,
12,
8195,
18,
2469,
422,
15892,
16,
315,
1941,
3372,
... |
// File: contracts/IManager.sol
pragma solidity ^0.5.11;
contract IManager {
event SetController(address controller);
event ParameterUpdate(string param);
function setController(address _controller) external;
}
// File: contracts/zeppelin/Ownable.sol
pragma solidity ^0.5.11;
/**
* @title Ownable
*... | Amount of funds deposited
| uint256 deposit; | 14,020,844 | [
1,
4625,
348,
7953,
560,
30,
225,
16811,
434,
284,
19156,
443,
1724,
329,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
443,
1724,
31,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.6;
/**
* @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(uint256... | * Sends an mail to the specific list of recipients with amount of MAIL tokens to spend on them, hash message, time unti when is message available and tokens @param _to List of recipients @param _weight Tokens to be spent on messages @param _hashedMessage Hashed content of mail @param _validUntil Mail is available until... | function sendMail(address[] _to, uint256 _weight, bytes32 _hashedMessage, uint256 _validUntil, bytes32 _attachmentToken, uint256 _attachmentAmount) {
bool useFreeTokens = false;
if (_weight == 0 && freeToUseTokens > 0) {
_weight = _to.length;
useFreeTokens = true;
}
... | 13,006,035 | [
1,
4625,
348,
7953,
560,
30,
380,
2479,
87,
392,
4791,
358,
326,
2923,
666,
434,
12045,
598,
3844,
434,
490,
6575,
2430,
358,
17571,
603,
2182,
16,
1651,
883,
16,
813,
640,
9096,
1347,
353,
883,
2319,
471,
2430,
632,
891,
389,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
6759,
12,
2867,
8526,
389,
869,
16,
2254,
5034,
389,
4865,
16,
1731,
1578,
389,
2816,
329,
1079,
16,
2254,
5034,
389,
877,
9716,
16,
1731,
1578,
389,
11461,
1345,
16,
2254,
5034,
389,
11461,
6275,
13,
288,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-03-03
*/
/*
PRIME1000.io
PRIME ERC-721 TOKEN
$PRIME
Each $PRIME token represents one of the first 1000 prime numbers.
$PRIME tokens are issued from the largest prime number in the set (7919) - ID 1 and end ... | * @dev Gets PRIME Prices/ | function getNFTPrice(uint numTokens) public view returns (uint256) {
require(totalSupply() < MAX_NFT_SUPPLY, "Sale has already ended");
uint currentSupply = totalSupply()+numTokens;
uint totalPrice = 0;
for(uint i=1;i<= numTokens;i++){
if (currentSupply >= 1000) {
... | 2,016,486 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
10365,
958,
2301,
1242,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11069,
4464,
5147,
12,
11890,
818,
5157,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
4963,
3088,
1283,
1435,
411,
4552,
67,
50,
4464,
67,
13272,
23893,
16,
315,
30746,
711,
1818,
16926,
8863,
2... |
/**
*Submitted for verification at Etherscan.io on 2020-11-16
*/
/**
* Fleek.Finance will issue $FLEEK token which use for discount when buy clothing, accessories,tech products,...
* in our store through Fleek Network.
* Totaly 10,000 tokens will be issued and when burn tokens reach 9,000 token, this process will ... | Transfer recipient recives amount - fee | function transfer(address recipient, uint256 amount) public override returns (bool) {
if (activeFee && (feeException[msg.sender] == false)) {
uint256 fee = transferFee.mul(amount).div(10000);
uint amountLessFee = amount.sub(fee);
_transfer(_msgSender(), recipient, amountLessFee);
if (feeRe... | 7,749,395 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
8027,
1950,
3606,
3844,
300,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
565,
309,
261,
3535,
14667,
597,
261,
21386,
503,
63,
3576,
18,
15330,
65,
422,
629,
3719,
288,
203,
1377,
2254,
5034,
14036,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzep... | * @dev Callback function used by the VRFCoordinator. Determines the winners by taking the random value from the VRF response and expanding it to 3 random values for the top 3 places. Afterwards a new lottery starts automatically. Emits a {WinnersAnnounced} event/ save number of tokens/tickets for current lottery select... | function fulfillRandomness(bytes32 requestId, uint256 randomness)
internal
override
{
uint256 currentLotteryId = requestIdLottery[requestId];
uint256 randWinner0 = uint256(keccak256(abi.encode(randomness, 0)));
uint256 randWinner1 = uint256(keccak256(abi.encode(randomness... | 5,523,531 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8444,
445,
1399,
635,
326,
776,
12918,
25307,
18,
30778,
326,
5657,
9646,
635,
13763,
326,
2744,
460,
628,
326,
776,
12918,
766,
471,
31283,
518,
358,
890,
2744,
924,
364,
326,
1760,
890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22290,
8529,
4496,
12,
3890,
1578,
14459,
16,
2254,
5034,
2744,
4496,
13,
203,
3639,
2713,
203,
3639,
3849,
203,
565,
288,
203,
3639,
2254,
5034,
783,
48,
352,
387,
93,
548,
273,
14459,
48,
352,
387,
93,
63,
2293,
548... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.6;
import "@yield-protocol/utils-v2/contracts/token/IERC20.sol";
import "@yield-protocol/utils-v2/contracts/token/IERC20Metadata.sol";
import "@yield-protocol/utils-v2/contracts/token/ERC20Permit.sol";
import "@yield-protocol/utils-v2/contracts/token/SafeERC20Na... | Cache can never be above balances
| retrieved = _getBaseBalance() - baseCached; | 223,851 | [
1,
4625,
348,
7953,
560,
30,
225,
4379,
848,
5903,
506,
5721,
324,
26488,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
10295,
273,
389,
588,
2171,
13937,
1435,
300,
1026,
9839,
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,
... |
pragma solidity ^0.4.24;
/* SLUGROAD
Simple Fomo Game with fair scaling.
Slugroad has 3 different tracks: different networks, with different settings.
This is the Ethereum track.
A car drives to hyperspeed.
Speed starts at a min of 100mph and rises to a max 1000mph over 7 days.
Buy Slugs with ETH.
Slugs... | give miles to driverReset timer and start new loopAdjust loop and slug potsMake sure the car isn't driving freelyCalculate rewardChange loopchestGive rewardElse, start a new loop with different eventChange loopchest | function TimeWarp() public {
require(gameStarted == true, "game hasn't started yet");
require(now >= timer, "race isn't finished yet");
uint256 _mile = ComputeMileDriven();
mile[driver] = mile[driver].add(_mile);
timer = now.add(RACE_TIMER_START).add(HYPERSPEED_LE... | 6,346,511 | [
1,
4625,
348,
7953,
560,
30,
8492,
312,
1449,
358,
3419,
7013,
5441,
471,
787,
394,
2798,
10952,
2798,
471,
4959,
5974,
87,
6464,
3071,
326,
5926,
5177,
1404,
5081,
9288,
22010,
2357,
8695,
19890,
3043,
2798,
343,
395,
43,
688,
19890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2647,
59,
11441,
1435,
1071,
288,
203,
202,
202,
6528,
12,
13957,
9217,
422,
638,
16,
315,
13957,
13342,
1404,
5746,
4671,
8863,
203,
3639,
2583,
12,
3338,
1545,
5441,
16,
315,
9963,
5177,
1404,
6708,
4671,
8863,
203,
5... |
./full_match/5/0xFc043b77f2c29DC96B169224a3Af1107cf09EFC5/sources/contracts/epochs/EpochManager.sol | * @dev Return blockhash for a block. @return BlockHash for `_block` number/ | function blockHash(uint256 _block) external view override returns (bytes32) {
uint256 currentBlock = blockNum();
require(_block < currentBlock, "Can only retrieve past block hashes");
require(
currentBlock < 256 || _block >= currentBlock - 256,
"Can only retrieve has... | 11,610,941 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2000,
1203,
2816,
364,
279,
1203,
18,
632,
2463,
3914,
2310,
364,
1375,
67,
2629,
68,
1300,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31493,
12,
11890,
5034,
389,
2629,
13,
3903,
1476,
3849,
1135,
261,
3890,
1578,
13,
288,
203,
3639,
2254,
5034,
30610,
273,
1203,
2578,
5621,
203,
203,
3639,
2583,
24899,
2629,
411,
30610,
16,
315,
2568,
1338,
4614,
8854,... |
//SPDX-License-Identifier: MIT
pragma solidity 0.7.5;
pragma abicoder v2;
import "./StakingLockable.sol";
/// @author umb.network
/// @notice Math is based on synthetix staking contract
/// Contract allows to stake and lock tokens. For rUMB tokens only locking option is available.
/// When locking us... | @notice returns array of max 100 booleans, where index corresponds to lock id. `true` means lock can be withdraw | function getVestedLockIds(StakingLockable _pool, address _account, uint256 _offset)
external
view
returns (bool[] memory results)
{
(,,uint256 nextLockIndex,,) = _pool.balances(_account);
uint256 batch = 100;
if (nextLockIndex == 0) return results;
if (ne... | 14,641,435 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1135,
526,
434,
943,
2130,
31050,
16,
1625,
770,
13955,
358,
2176,
612,
18,
1375,
3767,
68,
4696,
2176,
848,
506,
598,
9446,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11031,
3149,
2531,
2673,
12,
510,
6159,
2531,
429,
389,
6011,
16,
1758,
389,
4631,
16,
2254,
5034,
389,
3348,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
8526,
3778,
1686,
13,
203,
565,
288,
203,
... |
/**
*Submitted for verification at Etherscan.io on 2021-12-09
*/
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.0 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decreme... | File: GentleTiger.sol ##### ####### # # ####### # ####### ####### ### ##### ####### ###### ##### # # # ###### # # # ## # # # # # # # # # # # # # # # # # # # # # # # ... | contract GTClub2021 is ERC721, Ownable, PaymentSplitter, RandomlyAssigned {
using Strings for uint256;
using SafeMath for uint256;
uint256 public NftCount;
uint256 public CurrentPrice;
uint256 public MAX_MINT_NOW;
uint256 public PreSale_Price = 0.03 ether;
uint256 public Sale_Price = 0.07 ether;
uint2... | 2,385,282 | [
1,
4625,
348,
7953,
560,
30,
225,
1387,
30,
611,
319,
298,
56,
360,
264,
18,
18281,
6647,
468,
1970,
225,
468,
1970,
1189,
468,
377,
468,
468,
1970,
1189,
468,
4202,
468,
1970,
1189,
565,
468,
1970,
1189,
11849,
225,
468,
1970,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19688,
2009,
373,
18212,
21,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
16,
12022,
26738,
16,
8072,
715,
20363,
288,
203,
225,
1450,
8139,
364,
2254,
5034,
31,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
22... |
./full_match/137/0xCF77e2E32EDDc54d29cF8BF106024b1012bFbcCC/sources/home/hellwolf/Projects/superfluid/protocol-monorepo/packages/ethereum-contracts/contracts/superfluid/Superfluid.sol | @dev ISuperfluid.forwardBatchCall implementation | function forwardBatchCall(Operation[] memory operations)
external override
{
_batchCall(_getTransactionSigner(), operations);
}
| 4,754,839 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
467,
8051,
2242,
1911,
18,
11565,
4497,
1477,
4471,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5104,
4497,
1477,
12,
2988,
8526,
3778,
5295,
13,
203,
3639,
3903,
3849,
203,
565,
288,
203,
3639,
389,
5303,
1477,
24899,
588,
3342,
15647,
9334,
5295,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
// tg: @fuckshib | tw: @fuck_shibeth | web: www.fuckshib.net
// tired of all these shib token? then fuck shib!
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
abstract co... | once enabled, can never be turned off | function enableTrading() external onlyOwner {
tradingActive = true;
swapEnabled = true;
lastLpBurnTime = block.timestamp;
}
| 59,720 | [
1,
4625,
348,
7953,
560,
30,
225,
3647,
3696,
16,
848,
5903,
506,
21826,
3397,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4237,
1609,
7459,
1435,
3903,
1338,
5541,
288,
203,
3639,
1284,
7459,
3896,
273,
638,
31,
203,
3639,
7720,
1526,
273,
638,
31,
203,
3639,
1142,
48,
84,
38,
321,
950,
273,
1203,
18,
5508,
31,
203,
565,
289,
203,
377,
... |
./partial_match/1/0xff51056c9AE1bef9370875cB23483fBD9186BD37/sources/XRPrinter.sol | @dev Internal function that reduces an amount of the token of a given account. Update magnifiedDividendCorrections to keep dividends unchanged. @param account The account whose tokens will be burnt. @param value The amount that will be burnt. | function _reduce(address account, uint256 value) internal {
for (uint256 i; i < rewardTokens.length; i++){
magnifiedDividendCorrections[rewardTokens[i]][account] = magnifiedDividendCorrections[rewardTokens[i]][account]
.add( (magnifiedDividendPerShare[rewardTokens[i]].mul(value)).toInt256Safe(... | 15,607,582 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
3186,
445,
716,
30568,
392,
3844,
434,
326,
1147,
434,
279,
864,
2236,
18,
2315,
28160,
939,
7244,
26746,
20884,
87,
358,
3455,
3739,
350,
5839,
14827,
18,
632,
891,
2236,
1021,
2236,
827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
225,
445,
389,
12498,
12,
2867,
2236,
16,
2254,
5034,
460,
13,
2713,
288,
203,
1377,
364,
261,
11890,
5034,
277,
31,
277,
411,
19890,
5157,
18,
2469,
31,
277,
27245,
95,
203,
3639,
28160,
939,
7244,
26746,
20884,
87,
63,
266,
2... |
./full_match/42220/0x77744692A673EF93370E996AeC1DD04d10fed190/sources/contracts/SpecificGroupStrategy.sol | * @notice Initialize the contract with registry and owner. @param _owner The address of the contract owner. @param _manager The address of the Manager contract./ | function initialize(address _owner, address _manager) external initializer {
_transferOwnership(_owner);
__Managed_init(_manager);
}
| 16,329,080 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
9190,
326,
6835,
598,
4023,
471,
3410,
18,
632,
891,
389,
8443,
1021,
1758,
434,
326,
6835,
3410,
18,
632,
891,
389,
4181,
1021,
1758,
434,
326,
8558,
6835,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
2867,
389,
8443,
16,
1758,
389,
4181,
13,
3903,
12562,
288,
203,
3639,
389,
13866,
5460,
12565,
24899,
8443,
1769,
203,
3639,
1001,
10055,
67,
2738,
24899,
4181,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-... |
./partial_match/1/0x7b05cE308915299B0a31D5E5f020b4DE66779BCa/sources/contracts/BSGGStaking.sol | @notice Calculates pending rewards @return amount amount | function _calculatePendingRewards(
uint timestamp,
uint mintTimestamp,
uint lockedToTimestamp,
uint amountToGain
) pure internal returns (uint amount){
return amountToGain * (timestamp - mintTimestamp) / (lockedToTimestamp - mintTimestamp);
}
| 9,150,420 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
26128,
4634,
283,
6397,
632,
2463,
3844,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
11162,
8579,
17631,
14727,
12,
203,
3639,
2254,
2858,
16,
203,
3639,
2254,
312,
474,
4921,
16,
203,
3639,
2254,
8586,
774,
4921,
16,
203,
3639,
2254,
3844,
774,
43,
530,
203,
565,
262,
16618,
2713,
1135,
261,
11890... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol";
import "@openzepp... | * @dev Stake liquidity in position/ | function _stake(uint256 amount0, uint256 amount1)
private
returns (uint256 stakedAmount0, uint256 stakedAmount1)
{
return
UniswapLibrary.stake(
amount0,
amount1,
uniContracts.positionManager,
tokenId
... | 1,686,604 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
934,
911,
4501,
372,
24237,
316,
1754,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
334,
911,
12,
11890,
5034,
3844,
20,
16,
2254,
5034,
3844,
21,
13,
203,
3639,
3238,
203,
3639,
1135,
261,
11890,
5034,
384,
9477,
6275,
20,
16,
2254,
5034,
384,
9477,
6275,
21,
13,
203,
565,
288,
203,
3639,
327,
... |
/**
*Submitted for verification at Etherscan.io on 2019-07-11
*/
pragma solidity ^0.4.25;
/*
* Hubii Nahmii
*
* Compliant with the Hubii Nahmii specification v0.12.
*
* Copyright (C) 2017-2018 Hubii AS
*/
/**
* @title TransferController
* @notice A base contract to handle transfers of different currency... | * @title ERC20TransferController @notice Handles transfers of ERC20 tokens/ Functions ----------------------------------------------------------------------------------------------------------------- | contract ERC20TransferController is TransferController {
function isFungible()
public
view
returns (bool)
{
return true;
}
function receive(address from, address to, uint256 amount, address currencyCt, uint256 currencyId)
public
{
require(msg.sender != address(0));
... | 10,717,576 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
4232,
39,
3462,
5912,
2933,
632,
20392,
27020,
29375,
434,
4232,
39,
3462,
2430,
19,
15486,
8879,
9634,
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,
4232,
39,
3462,
5912,
2933,
353,
12279,
2933,
288,
203,
565,
445,
17646,
20651,
1523,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
6430,
13,
203,
203,
565,
288,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
... |
// SPDX-License-Identifier: MIT
/*
* @date: 2020-08-06
* @authors: Devang, Sainath and Aditya
* @version: 1.0
* @platformInfo: Remix IDE - compiler version 0.7.0
* @about: An implementation of a game of BlackJack in Solidity using Remix IDE
*/
pragma solidity ^0.7.0;
contract Blackjack{
struct gameInst... | check faceDownCard whether it is 10 or a face card
| if(gameIdMap[_gameId].dealerDeck[1] == 10){ | 6,418,774 | [
1,
4625,
348,
7953,
560,
30,
866,
7945,
4164,
6415,
2856,
518,
353,
1728,
578,
279,
7945,
5270,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
10792,
309,
12,
13957,
548,
863,
63,
67,
13957,
548,
8009,
323,
6774,
758,
363,
63,
21,
65,
422,
1728,
15329,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 < 0.9.0;
contract DStorage{
string public name ="DStorage";
uint public fileCount=1;
struct File{
uint fileId;
string fileHash;
uint fileSize;
string fileType;
string fileName;
string fileDescription;... | TODO: validate dataTODO: add a new file | function uploadFile(
string memory _fileHash,
uint _fileSize,
string memory _fileType,
string memory _fileName,
string memory _fileDescription
) public
{
require(bytes(_fileHash).length > 0,"File Hash Must Be Provided");
require(bytes(_fileType).l... | 6,376,787 | [
1,
4625,
348,
7953,
560,
30,
2660,
30,
1954,
501,
6241,
30,
527,
279,
394,
585,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29661,
12,
203,
3639,
533,
3778,
389,
768,
2310,
16,
203,
3639,
2254,
389,
768,
1225,
16,
203,
3639,
533,
3778,
389,
768,
559,
16,
203,
3639,
533,
3778,
389,
17812,
16,
203,
3639,
533,
3778,
389,
768,
3291,
203,
3639,... |
./partial_match/42/0x2F45ae4ABDeef85952a438d242AD2E3a8232292d/sources/DebtIssuanceModule.sol | * @title DebtIssuanceModule @author Set Protocol The DebtIssuanceModule is a module that enables users to issue and redeem SetTokens that contain default and all external positions, including debt positions. Module hooks are added to allow for syncing of positions, and component level hooks are added to ensure position... | contract DebtIssuanceModule is ModuleBase, ReentrancyGuard {
using Invoke for ISetToken;
using Position for ISetToken;
using PreciseUnitMath for uint256;
using SafeMath for uint256;
using SafeCast for int256;
using SignedSafeMath for int256;
using AddressArrayUtils for address[];
event... | 9,004,291 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
1505,
23602,
7568,
89,
1359,
3120,
632,
4161,
1000,
4547,
1021,
1505,
23602,
7568,
89,
1359,
3120,
353,
279,
1605,
716,
19808,
3677,
358,
5672,
471,
283,
24903,
1000,
5157,
716,
912,
805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1505,
23602,
7568,
89,
1359,
3120,
353,
5924,
2171,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14373,
364,
467,
694,
1345,
31,
203,
565,
1450,
11010,
364,
467,
694,
1345,
31,
203,
565,
1450,
2962,
30708,
2802,
10477,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
import "../openzeppelin/access/AccessControl.sol";
import "../openzeppelin/utils/math/SafeMath.sol";
import "../openzeppelin/token/ERC20/SafeERC20.sol";
import "../openzeppelin/token/ERC20/IERC20.sol";
import "../sablierh... | * @dev Multiply an Exp by a scalar, returning a new Exp./ | function mulScalar(Exp memory a, uint256 scalar)
internal
pure
returns (MathError, Exp memory)
{
(MathError err0, uint256 scaledMantissa) = mulUInt(a.mantissa, scalar);
if (err0 != MathError.NO_ERROR) {
}
}
| 12,569,865 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
5991,
1283,
392,
7784,
635,
279,
4981,
16,
5785,
279,
394,
7784,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
14064,
13639,
12,
2966,
3778,
279,
16,
2254,
5034,
4981,
13,
203,
202,
202,
7236,
203,
202,
202,
84,
594,
203,
202,
202,
6154,
261,
10477,
668,
16,
7784,
3778,
13,
203,
202,
95,
203,
202,
202,
12,
10477,
668,
393,
2... |
// File: contracts/src/common/interface/IGroup.sol
pragma solidity ^0.5.0;
contract IGroup {
function isGroup(address _addr) public view returns (bool);
function addGroup(address _addr) external;
function getGroupKey(address _addr) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("_group", _... | * Set the latest PropertyFactory contract address. Only the owner can execute this function./ | function setPropertyFactory(address _addr) external onlyOwner {
propertyFactory = _addr;
}
| 1,388,610 | [
1,
4625,
348,
7953,
560,
30,
380,
1000,
326,
4891,
4276,
1733,
6835,
1758,
18,
5098,
326,
3410,
848,
1836,
333,
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,
... | [
1,
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,
202,
915,
7486,
1733,
12,
2867,
389,
4793,
13,
3903,
1338,
5541,
288,
203,
202,
202,
4468,
1733,
273,
389,
4793,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1313161554/0x19b7010d31c4612bB38498ad1dDe16E59a649Fd2/sources/BeefyZapOneInch.sol | our main swap function call. we call the aggregator contract with our fed data. if we get an error we revert and return the error result. | function _swapViaOneInch(address _inputToken, bytes memory _callData) private returns (uint) {
_approveTokenIfNeeded(_inputToken, address(oneInchRouter));
(bool success, bytes memory retData) = oneInchRouter.call(_callData);
propagateError(success, retData, "1inch");
requ... | 16,939,174 | [
1,
4625,
348,
7953,
560,
30,
225,
3134,
2774,
7720,
445,
745,
18,
732,
745,
326,
20762,
6835,
598,
3134,
22572,
501,
18,
309,
732,
336,
392,
555,
732,
15226,
471,
327,
326,
555,
563,
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,
0,
0,
0,
0,
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,
22270,
21246,
3335,
382,
343,
12,
2867,
389,
2630,
1345,
16,
1731,
3778,
389,
1991,
751,
13,
3238,
1135,
261,
11890,
13,
288,
203,
540,
203,
3639,
389,
12908,
537,
1345,
18299,
24899,
2630,
1345,
16,
1758,
12,
476,... |
/**
*Submitted for verification at Etherscan.io on 2021-11-16
*/
pragma solidity ^0.6.12;
// SPDX-License-Identifier: Creative Commons Attribution Non Commercial Share Alike 4.0 International
interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view r... | * @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `... | function _transfer(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "trnfr frm 0 addr");
require(recipient != address(0), "trnfr to 0 addr");
require(!blackList[sender],"you have been flagged as a bot please contact the devs");
require(!blackList[recipient],"... | 2,391,045 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
2430,
1375,
8949,
68,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
353,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
13866,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
565,
2583,
12,
15330,
480,
1758,
12,
20,
3631,
315,
313,
82,
4840,
31074,
374,
3091,
8863,
203,
565,
2583,
12,
20367,
480,
1758,
12... |
/**
*Submitted for verification at Etherscan.io on 2021-06-18
*/
pragma solidity 0.6.7;
contract GebMath {
uint256 public constant RAY = 10 ** 27;
uint256 public constant WAD = 10 ** 18;
function ray(uint x) public pure returns (uint z) {
z = multiply(x, 10 ** 9);
}
function rad(uint x) ... | @notify Modify an address param @param parameter The name of the parameter to change @param addr The new address for the parameter/ | function modifyParameters(bytes32 parameter, address addr) external isAuthorized {
require(addr != address(0), "AutoSurplusBufferSetter/null-address");
if (parameter == "accountingEngine") accountingEngine = AccountingEngineLike(addr);
else if (parameter == "treasury") treasury = StabilityFe... | 7,978,383 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
12336,
9518,
392,
1758,
579,
632,
891,
1569,
1021,
508,
434,
326,
1569,
358,
2549,
632,
891,
3091,
1021,
394,
1758,
364,
326,
1569,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5612,
2402,
12,
3890,
1578,
1569,
16,
1758,
3091,
13,
3903,
353,
15341,
288,
203,
3639,
2583,
12,
4793,
480,
1758,
12,
20,
3631,
315,
4965,
7719,
10103,
1892,
8465,
19,
2011,
17,
2867,
8863,
203,
3639,
309,
261,
6775,
... |
/**
*Submitted for verification at Etherscan.io on 2021-07-01
*/
// SPDX-License-Identifier: Apache License, Version 2.0
pragma solidity 0.7.6;
// Part: Address
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
... | * PRIVILEGED MODULE FUNCTION. Function that update manager address./ | function updateManager(address newAddress) external onlyManager {
require(newAddress != address(0), "Manager address must not be null address");
manager = newAddress;
}
| 15,090,977 | [
1,
4625,
348,
7953,
560,
30,
380,
10365,
4136,
19384,
2056,
14057,
13690,
18,
4284,
716,
1089,
3301,
1758,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1318,
12,
2867,
394,
1887,
13,
3903,
1338,
1318,
288,
203,
3639,
2583,
12,
2704,
1887,
480,
1758,
12,
20,
3631,
315,
1318,
1758,
1297,
486,
506,
446,
1758,
8863,
203,
3639,
3301,
273,
394,
1887,
31,
203,
565,
28... |
./full_match/80001/0xfEe3EecdB22d4635F1807ecBD86C99F02ef7CeF7/sources/contracts/interfaces/IOracleManagerFixedEpoch.sol | Manages price feeds from different oracle implementations./ | interface IOracleManagerFixedEpoch {
error EmptyArrayOfIndexes();
error InvalidOracleExecutionRoundId(uint80 oracleRoundId);
error InvalidOraclePrice(int256 oraclePrice);
function chainlinkOracle() external view returns (AggregatorV3Interface);
function oracleDecimals() external view returns (uint8);
f... | 9,502,253 | [
1,
4625,
348,
7953,
560,
30,
225,
490,
940,
281,
6205,
27684,
628,
3775,
20865,
16164,
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,
... | [
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,
5831,
1665,
16873,
1318,
7505,
14638,
288,
203,
225,
555,
8953,
1076,
951,
8639,
5621,
203,
203,
225,
555,
1962,
23601,
3210,
11066,
548,
12,
11890,
3672,
20865,
11066,
548,
1769,
203,
203,
225,
555,
1962,
23601,
5147,
12,
474,
503... |
//Address: 0x049a5bf874f241d94232137ef728a9c7dd0d7550
//Contract name: DataTradingToken
//Balance: 0 Ether
//Verification Date: 1/9/2018
//Transacion Count: 682
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Interface
* @dev Standart version of ERC20 interface
*/
contract ERC20Interface {
uin... | * @dev Transfer tokens from one address to another @param _from The address which you want to send tokens from @param _to The address which you want to transfer to @param _value The amout of tokens to be transfered/ | function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
assert(balances[_to] + _value >= balances[_to]);
balances[... | 1,071,388 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
12279,
2430,
628,
1245,
1758,
358,
4042,
632,
891,
389,
2080,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
632,
891,
389,
869,
1021,
1758,
1492,
1846,
2545,
358,
7412,
358,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,
1132,
1648,
324,
... |
pragma solidity ^0.5.7;
/**
* @title ERC20 interface
* @dev see https://eips.ethereum.org/EIPS/eip-20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address fro... | * @dev Give an account access to this role./ | function add(Role storage role, address account) internal {
require(!has(role, account));
role.bearer[account] = true;
}
| 49,789 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
22374,
392,
2236,
2006,
358,
333,
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,
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,
527,
12,
2996,
2502,
2478,
16,
1758,
2236,
13,
2713,
288,
203,
3639,
2583,
12,
5,
5332,
12,
4615,
16,
2236,
10019,
203,
203,
3639,
2478,
18,
29400,
264,
63,
4631,
65,
273,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
... |
./full_match/3/0xDaA1298b45E11f64f9698141Dc52baf2e538743c/sources/contracts/TestCollectible.sol | Increment tokenId If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after the end of pre-sale, set the starting index block | function mint (uint8 section, uint256 numberOfTokens) public whenNotPaused payable {
require(saleIsActive, "Sale not active");
uint8 level = 0;
require(section <= 4, "Nonexistent section");
require(numberOfTokens <= maxPurchase, "Can only mint 20 tokens at a time");
require(m... | 14,199,174 | [
1,
4625,
348,
7953,
560,
30,
225,
17883,
1147,
548,
971,
732,
15032,
1404,
444,
326,
5023,
770,
471,
333,
353,
3344,
404,
13,
326,
1142,
272,
5349,
429,
1147,
578,
576,
13,
326,
1122,
1147,
358,
506,
272,
1673,
1839,
326,
679,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
261,
11890,
28,
2442,
16,
2254,
5034,
7922,
5157,
13,
1071,
1347,
1248,
28590,
8843,
429,
288,
203,
3639,
2583,
12,
87,
5349,
2520,
3896,
16,
315,
30746,
486,
2695,
8863,
203,
3639,
2254,
28,
1801,
273,
374,
... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'SCU' 'Space.Cloud.Unit Token' token contract
//
// Symbol : SCU
// Name : Space.Cloud.Unit
// Total supply: 150,000,000.000000000000000000
// Decimals : 18
//
// (c) openzepplin / Smart Contract ... | * @title Capped token @dev Mintable token with a token cap./ | contract CappedToken is MintableToken {
uint256 public cap;
constructor() public {
}
constructor(uint256 _cap) public {
require(_cap > 0);
cap = _cap;
}
function mint(
address _to,
uint256 _amount
)
public
returns (bool)
{
require(total... | 5,831,332 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
11200,
1845,
1147,
632,
5206,
490,
474,
429,
1147,
598,
279,
1147,
3523,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
11200,
1845,
1345,
353,
490,
474,
429,
1345,
288,
203,
203,
565,
2254,
5034,
1071,
3523,
31,
203,
203,
565,
3885,
1435,
1071,
288,
203,
565,
289,
203,
203,
565,
3885,
12,
11890,
5034,
389,
5909,
13,
1071,
288,
203,
3639,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
interface IMintable {
function mint(address to, uint256 amount) external;
function decimals() external returns (uint256);
}
/// @title A Minter contract for Splinterlands
/// @author Splinterlands Team (@fbslo)
contract SPSMinter {
/// @notice Address tha... | * @notice Update admin address @param newAdmin Address of the new admin/ | function updateAdmin(address newAdmin) external onlyAdmin {
emit UpdateAdmin(admin, newAdmin);
admin = newAdmin;
}
| 1,765,028 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
3981,
1758,
632,
891,
394,
4446,
5267,
434,
326,
394,
3981,
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,
1089,
4446,
12,
2867,
394,
4446,
13,
3903,
1338,
4446,
288,
203,
565,
3626,
2315,
4446,
12,
3666,
16,
394,
4446,
1769,
203,
565,
3981,
273,
394,
4446,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0x5Ec09Dc83080A17De87aE0bd22097F360e078cf7/sources/src/strategies/BasePulseStrategy.sol | @notice Emited when a uniswap position is burned @param tokenId nft of uniswap position | event PositionBurned(uint256 tokenId);
| 4,887,538 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
16008,
329,
1347,
279,
640,
291,
91,
438,
1754,
353,
18305,
329,
632,
891,
1147,
548,
290,
1222,
434,
640,
291,
91,
438,
1754,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
11010,
38,
321,
329,
12,
11890,
5034,
1147,
548,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.18;
contract ERC20 {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
function allowance(address owner, address spender) public view returns (uint256);
function transferFr... | the time when mintTokensWithinTime can be called | uint256 public constant MINTTIME = 7200;
| 12,687,876 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
813,
1347,
312,
474,
5157,
18949,
950,
848,
506,
2566,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
5381,
6989,
1470,
3114,
273,
2371,
6976,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mu... | if sell, multiply by 1.2 | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(lockTilStart != true || from == owner... | 6,359,474 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
357,
80,
16,
10194,
635,
404,
18,
22,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
pragma solidity ^0.8.4;
contract Token{
struct Metadata{
string dateStamp; //author, title, abstractData;
string hash;
address delegatorWallet;
uint256 nodeLocation;
//public can be deleted in order to hide public view of location
//make sure has comes first an... | author, title, abstractData;
| string dateStamp; | 7,312,827 | [
1,
4625,
348,
7953,
560,
30,
2869,
16,
2077,
16,
8770,
751,
31,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
533,
1509,
8860,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x1098B35828bf70A2209FC6fEA916f378841d7fdD/sources/contracts/TicTacToe/TicTacToe.sol | winnerInColumn returns the player that wins in any column. To win in a column, all cells in the column must belong to the same player and that player must not be the `None` player. | function winnerInColumn(Players[3][3] memory _board) private pure returns (Players winner) {
for (uint8 y = 0; y < 3; y++) {
if (_board[0][y] == _board[1][y] && _board[1][y] == _board[2][y] && _board[0][y] != Players.None) {
return _board[0][y];
}
}
r... | 9,526,732 | [
1,
4625,
348,
7953,
560,
30,
225,
5657,
1224,
382,
1494,
1135,
326,
7291,
716,
31307,
316,
1281,
1057,
18,
2974,
5657,
316,
279,
1057,
16,
777,
5983,
316,
326,
1057,
1297,
10957,
358,
326,
1967,
7291,
471,
716,
7291,
1297,
486,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5657,
1224,
382,
1494,
12,
1749,
3907,
63,
23,
6362,
23,
65,
3778,
389,
3752,
13,
3238,
16618,
1135,
261,
1749,
3907,
5657,
1224,
13,
288,
203,
3639,
364,
261,
11890,
28,
677,
273,
374,
31,
677,
411,
890,
31,
677,
2... |
//Address: 0x31fe7e62254B239305CBbddA71822186a0b3B38c
//Contract name: ILOTContract
//Balance: 0.00098 Ether
//Verification Date: 3/27/2018
//Transacion Count: 2
// CODE STARTS HERE
pragma solidity ^0.4.19;
/******************************************************************************
ILOT - An Interest-paying ER... | 147k tokens per ETH
| uint tokensPerEthereum = 147000; | 12,715,591 | [
1,
4625,
348,
7953,
560,
30,
225,
5045,
27,
79,
2430,
1534,
512,
2455,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2254,
2430,
2173,
41,
18664,
379,
273,
5045,
27,
3784,
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.6.0;
pragma experimental ABIEncoderV2;
import "./Permission.sol";
contract ProductContract is Permission {
address potentialCustodian;
uint256 public containerless = 0;
struct Product {
string trackingID;
string productName;
string health;
b... | *@dev The containerID gets updated in productSupplyChain when a product gets added to a container.The getContainerlessAt function will get called to iterate though the allProduct array to get the trackingID of each productThen it lookups that product using the productSupplyChain map.It converts the string containerID i... | function getContainerlessAt (uint256 index) public view returns(Product memory){
string memory containerlessTrackingID;
containerlessTrackingID = allProducts[index].trackingID;
bytes memory containerIDLength = bytes(productSupplyChain[containerlessTrackingID].containerID);
if(contain... | 2,546,823 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
5206,
1021,
24257,
5571,
3526,
316,
3017,
3088,
1283,
3893,
1347,
279,
3017,
5571,
3096,
358,
279,
1478,
18,
1986,
9272,
2656,
861,
445,
903,
336,
2566,
358,
7401,
11376,
326,
777,
4133,
526,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
9272,
2656,
861,
261,
11890,
5034,
770,
13,
1071,
1476,
1135,
12,
4133,
3778,
15329,
203,
3639,
533,
3778,
1478,
2656,
12642,
734,
31,
203,
3639,
1478,
2656,
12642,
734,
273,
777,
13344,
63,
1615,
8009,
6440,
734,
31,
2... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.6;
import "./FlightSuretyData.sol";
/************************************************** */
/* FlightSurety Smart Contract */
/************************************************** */
contract FlightSuretyApp is Ownable {
/***************... | 5th and subsequent airline need 50% of the votes of all registered airlines | airlineVotes[airline]++;
| 15,869,951 | [
1,
4625,
348,
7953,
560,
30,
225,
1381,
451,
471,
10815,
23350,
1369,
1608,
6437,
9,
434,
326,
19588,
434,
777,
4104,
23350,
3548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
23350,
1369,
29637,
63,
1826,
1369,
3737,
15,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns(uint256 c) {
// Gas optimizatio... | * @dev Convert ETH to USD and return amount @param _weiAmount ETH amount which will convert to USD/ | function _getEthToUsdPrice(uint256 _weiAmount) internal view returns(uint256) {
return _weiAmount.mul(_getEthUsdPrice()).div(1 ether);
}
| 2,538,473 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4037,
512,
2455,
358,
587,
9903,
471,
327,
3844,
632,
891,
389,
1814,
77,
6275,
512,
2455,
3844,
1492,
903,
1765,
358,
587,
9903,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
41,
451,
774,
3477,
72,
5147,
12,
11890,
5034,
389,
1814,
77,
6275,
13,
2713,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
389,
1814,
77,
6275,
18,
16411,
24899,
588,
41,
451,
3477,
72,
5147,
1435,
... |
pragma solidity 0.4.15;
/// @dev `Owned` is a base level contract that assigns an `owner` that can be
/// later changed
contract Owned {
/// @dev `owner` is the only address that can call a function with this
/// modifier
modifier onlyOwner() {
require(msg.sender == owner);
_;
... | @notice Pays an affiliate if they are valid and present in the transaction data @param _tokens The contribution tokens used to calculate affiliate payment amount @param _etherValue The Ether value sent @param _caller The address of the caller | function payAffiliate(uint256 _tokens, uint256 _etherValue, address _caller) internal {
if (affiliateUtility.isAffiliateValid(_caller)) {
address affiliate = affiliateUtility.getAffiliate(_caller);
var (affiliateBonus, contributorBonus) = affiliateUtility.applyAffiliate(_caller, _tok... | 5,546,177 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
453,
8271,
392,
7103,
330,
3840,
309,
2898,
854,
923,
471,
3430,
316,
326,
2492,
501,
632,
891,
389,
7860,
1021,
24880,
2430,
1399,
358,
4604,
7103,
330,
3840,
5184,
3844,
632,
891,
389,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
565,
445,
8843,
13785,
330,
3840,
12,
11890,
5034,
389,
7860,
16,
2254,
5034,
389,
2437,
620,
16,
1758,
389,
16140,
13,
2713,
288,
203,
3639,
309,
261,
7329,
330,
3840,
6497,
18,
291,
13785,
330,
3840,
1556,
24899,
16140,
3719,
2... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.21 <0.7.0;
pragma experimental ABIEncoderV2;
contract Administrateur {
string idAdmin;
string nomAdmin;
string prenomAdmin;
uint256 numeroTel;
string mailAdmin;
string password;
//declaration de structure pour les roles
struct ro... | rΓ©cupΓ©rΓ© les nom de roles contenu dans le tableau listRole | function changeTel(uint256 newTel) public {
numeroTel = newTel;
}
| 12,779,396 | [
1,
4625,
348,
7953,
560,
30,
436,
132,
107,
71,
416,
132,
107,
86,
132,
107,
18022,
12457,
443,
4900,
466,
2104,
26224,
884,
1014,
8377,
666,
2996,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2549,
56,
292,
12,
11890,
5034,
394,
56,
292,
13,
1071,
565,
288,
203,
3639,
818,
2439,
56,
292,
273,
394,
56,
292,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-29
*/
// File: contracts/@openzeppelin/contracts/token/ERC20/IERC20.sol
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)
//
// _______ __ _______ __
// | _ | |--.---.-.-----.-... | * @dev Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unl... | function decimals() public view virtual override returns (uint8) {
return 6;
}
| 15,403,754 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
1300,
434,
15105,
1399,
358,
336,
2097,
729,
4335,
18,
2457,
3454,
16,
309,
1375,
31734,
68,
1606,
1375,
22,
9191,
279,
11013,
434,
1375,
3361,
25,
68,
2430,
1410,
506,
10453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15105,
1435,
1071,
1476,
5024,
3849,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
1666,
31,
7010,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Ownable.sol";
contract FeesStorage is Ownable {
/**
* @dev Fallback function
*/
receive() external payable {}
/**
* @dev Allows the `owner` to withdraw the selected `_amount`
* @param _recipient Address of the recipient... | * @dev Allows the `owner` to withdraw the selected `_amount` @param _recipient Address of the recipient @param _amount Amount of ETHs being withdrawed/ | {
require(
_amount <= address(this).balance,
"Not enough ETHs in the storage"
);
require(success, "Transfer failed.");
}
| 14,014,874 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
326,
1375,
8443,
68,
358,
598,
9446,
326,
3170,
1375,
67,
8949,
68,
632,
891,
389,
20367,
5267,
434,
326,
8027,
632,
891,
389,
8949,
16811,
434,
512,
2455,
87,
3832,
598,
9446,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
2583,
12,
203,
5411,
389,
8949,
1648,
1758,
12,
2211,
2934,
12296,
16,
203,
5411,
315,
1248,
7304,
512,
2455,
87,
316,
326,
2502,
6,
203,
3639,
11272,
203,
203,
3639,
2583,
12,
4768,
16,
315,
5912,
2535,
11... |
pragma solidity ^0.4.24;
import "./Enigma.sol";
contract CoinMixer {
Enigma public enigma;
struct Deal {
address organizer;
uint48 startTime;
uint8 status; // 0: active; 1: funded; 2: executed; 3: cancelled
uint depositSum;
uint numDeposits;
uint depositInWei;... | Returns an array of encrypted addresses | function getEncryptedAddress(uint32 _dealId, uint index)
public
view
returns (bytes)
{
return deals[_dealId].encryptedDestAddresses[index];
}
| 13,062,027 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
392,
526,
434,
6901,
6138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
14678,
1887,
12,
11890,
1578,
389,
323,
287,
548,
16,
2254,
770,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
3890,
13,
203,
565,
288,
203,
3639,
327,
443,
1031,
63,
67,
323,
287,
548,
8009,
18702,... |
./full_match/10/0x7CfD0DA84ea138544C0c1DD2f5643EC526c1E2b9/sources/contracts/GrowiLPBeta.sol | As of now, only pools pairing a stablecoin with a non-stable token are supported
| assert(stableToken[token0] || stableToken[token1]); | 3,781,991 | [
1,
4625,
348,
7953,
560,
30,
2970,
434,
2037,
16,
1338,
16000,
3082,
310,
279,
14114,
12645,
598,
279,
1661,
17,
15021,
1147,
854,
3260,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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,
3639,
1815,
12,
15021,
1345,
63,
2316,
20,
65,
747,
14114,
1345,
63,
2316,
21,
19226,
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,... |
pragma solidity ^0.4.18;
interface Whitelist {
function add(address _wlAddress) public;
function addBulk(address[] _wlAddresses) public;
function remove(address _wlAddresses) public;
function removeBulk(address[] _wlAddresses) public;
function getAll() public constant returns(address[]);
funct... | BountyWe accept different cryptocurrencies. You should have ETH wallet to get UNIT Tokens
| add(0x794EF9c680bDD0bEf48Bef46bA68471e449D67Fb); | 13,436,175 | [
1,
4625,
348,
7953,
560,
30,
605,
592,
93,
3218,
2791,
3775,
13231,
504,
295,
14695,
18,
4554,
1410,
1240,
512,
2455,
9230,
358,
336,
28721,
13899,
203,
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,
3639,
527,
12,
20,
92,
7235,
24,
26897,
29,
71,
26,
3672,
70,
5698,
20,
70,
41,
74,
8875,
1919,
74,
8749,
70,
37,
26,
5193,
11212,
73,
6334,
29,
40,
9599,
42,
70,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/97/0xb3C30D0A846aE1c2559Fba64b72Cca5578BdC2cb/sources/EggToken.sol | * @dev Creates `amount` tokens and assigns them to `account`, increasing the total supply. Emits a {Transfer} event with `from` set to the zero address. Requirements - `to` cannot be the zero address./ | function _mint(address account, uint256 amount) internal {
require(account != address(0), 'BEP20: mint to the zero address');
_totalSupply = _totalSupply.add(amount);
_rOwned[account] = _rOwned[account].add(amount);
emit Transfer(address(0), account, amount);
}
| 11,433,567 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
2430,
471,
22698,
2182,
358,
1375,
4631,
9191,
21006,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
2080,
68,
444,
358,
326,
3634,
1758,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
296,
5948,
52,
3462,
30,
312,
474,
358,
326,
3634,
1758,
8284,
203,
3639,
389,
4963,
3088,
1283,
... |
./full_match/100/0xd2FDc59405d1D6B5F293AB3E8fC2fC62D110Ecd6/sources/contracts/ERC20_Reputation.sol | * @dev Private: Returns the vote weight for a member based on the community's governance type, for TokenOwnership communities we check if the vote weight indicated by the user is correct (based on merkle proof) @param _member: Address of the member for whom we are checking the vote weight/ | ) private view returns(uint) {
IOrbis.GovernanceTypes _governanceType = IOrbis(orbisContract).getGovernanceType(communityID);
function _getVoteWeight(
address _member,
uint _voteWeight,
bytes32[] memory _merkleProof,
bytes32 _merkleRoot,
uint _snapshotI... | 14,267,163 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
8726,
30,
2860,
326,
12501,
3119,
364,
279,
3140,
2511,
603,
326,
19833,
1807,
314,
1643,
82,
1359,
618,
16,
364,
3155,
5460,
12565,
8391,
1961,
732,
866,
309,
326,
12501,
3119,
17710,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
3238,
1476,
1135,
12,
11890,
13,
288,
203,
3639,
467,
1162,
70,
291,
18,
43,
1643,
82,
1359,
2016,
389,
75,
1643,
82,
1359,
559,
273,
467,
1162,
70,
291,
12,
16640,
291,
8924,
2934,
588,
43,
1643,
82,
1359,
559,
12,... |
pragma solidity ^0.4.13;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
require(c / a == b);
return c;
}
... | Admin {status | platformName | tokenSymbol | compareSymbol | account}totalSupply = 10 * (10 ** 8) * (10 ** 9); | function init() internal {
admin.status = 3;
admin.platformName = "ETH";
admin.tokenSymbol = "INK";
admin.compareSymbol = "+=";
admin.account = msg.sender;
lockBalance = 10 * (10 ** 8) * (10 ** 9);
token = Token(0xc15d8f30fa3137eee6be111c2933f1624972f45... | 14,619,497 | [
1,
4625,
348,
7953,
560,
30,
225,
7807,
288,
2327,
571,
4072,
461,
571,
1147,
5335,
571,
3400,
5335,
571,
2236,
97,
4963,
3088,
1283,
273,
1728,
380,
261,
2163,
2826,
1725,
13,
380,
261,
2163,
2826,
2468,
1769,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1208,
1435,
2713,
288,
203,
203,
3639,
3981,
18,
2327,
273,
890,
31,
203,
203,
3639,
3981,
18,
9898,
461,
273,
315,
1584,
44,
14432,
203,
203,
3639,
3981,
18,
2316,
5335,
273,
315,
8476,
14432,
203,
203,
3639,
3981,
1... |
pragma solidity ^0.5.10;
/*This is the buggy smart contract you should try to hack*/
contract WealthShares {
uint sharePrice = 10 ether;
mapping(address=>uint) public shares;
event Ints(uint, uint, uint, uint);
function buyShares(uint numShares) public payable {
require(msg.value/sharePrice >= numShares, ... | send this contract 10 ether to begin the game we simulate various parties paying the vulnerable contract this ether, your goal is to steal it back | function createSimulation( ) public payable {
require(address(vuln) == address(0x0), "Game already created");
require(msg.value >= 100 ether, "To create the game, deposit one hundred ether to steal back");
vuln = new WealthShares();
for(uint i = 0; i < 5; i++) {
Payer p = new Payer();
p... | 1,802,038 | [
1,
4625,
348,
7953,
560,
30,
1366,
333,
6835,
1728,
225,
2437,
358,
2376,
326,
7920,
732,
20089,
11191,
1087,
606,
8843,
310,
326,
331,
19063,
429,
6835,
333,
225,
2437,
16,
3433,
17683,
353,
358,
18654,
287,
518,
1473,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18419,
12,
262,
1071,
8843,
429,
288,
203,
565,
2583,
12,
2867,
12,
90,
332,
82,
13,
422,
1758,
12,
20,
92,
20,
3631,
315,
12496,
1818,
2522,
8863,
203,
565,
2583,
12,
3576,
18,
1132,
1545,
2130,
225,
2437,
16,... |
pragma solidity ^0.5.0;
import './IERC721.sol';
import './IERC721Enumerable.sol';
/**
* @title The PublicLock Interface
* @author Nick Furfaro (unlock-protocol.com)
*/
contract IPublicLockV5 is IERC721Enumerable, IERC721 {
// See indentationissue description here:
// https://github.com/duaraghav8/Ethlint/issues/2... | See indentationissue description here: https:github.com/duaraghav8/Ethlint/issues/268 solium-disable indentation | contract IPublicLockV5 is IERC721Enumerable, IERC721 {
event Destroy(
uint balance,
address indexed owner
);
event Disable();
event Withdrawal(
address indexed sender,
address indexed tokenAddress,
address indexed beneficiary,
uint amount
);
event CancelKey(
uint indexed tok... | 5,531,154 | [
1,
4625,
348,
7953,
560,
30,
225,
2164,
12018,
13882,
2477,
2674,
30,
2333,
30,
6662,
18,
832,
19,
2544,
297,
346,
76,
842,
28,
19,
41,
451,
5671,
19,
9618,
19,
5558,
28,
3704,
5077,
17,
8394,
12018,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
2971,
447,
2531,
58,
25,
353,
467,
654,
39,
27,
5340,
3572,
25121,
16,
467,
654,
39,
27,
5340,
288,
203,
203,
203,
225,
871,
15701,
12,
203,
565,
2254,
11013,
16,
203,
565,
1758,
8808,
3410,
203,
225,
11272,
203,
203,
... |
./full_match/42/0xee3831f6E442Ba85Ca8e403e8855c8f8e8FEff97/sources/Context.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 executi... | abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
} | 16,270,282 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
28805,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,... |
pragma solidity 0.4.25;
import 'openzeppelin-solidity/contracts/math/SafeMath.sol';
import 'openzeppelin-solidity/contracts/ownership/Ownable.sol';
import './token/OceanToken.sol';
import './tcr/OceanRegistry.sol';
/**
@title Ocean Protocol Marketplace Contract
@author Team: Fang Gong, Samer Sallam, Ahmed Ali, Sebas... | * @dev verify the payment of consumer is received by OceanMarket @param _paymentId the integer identifier of payment @return valid Boolean indication of payment is received/ | function verifyPaymentReceived(bytes32 _paymentId) public view returns (bool) {
if (mPayments[_paymentId].state == PaymentState.Locked) {
return true;
}
return false;
}
| 890,585 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3929,
326,
5184,
434,
4765,
353,
5079,
635,
531,
31393,
3882,
278,
632,
891,
389,
9261,
548,
326,
3571,
2756,
434,
5184,
632,
2463,
923,
3411,
1547,
829,
434,
5184,
353,
5079,
19,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3929,
6032,
8872,
12,
3890,
1578,
389,
9261,
548,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
309,
261,
81,
23725,
63,
67,
9261,
548,
8009,
2019,
422,
12022,
1119,
18,
8966,
13,
288,
203,
5411,
327,
638,
31,
... |
//βββββββ ββββββ βββ ββββββ βββββββ βββββββ βββ
//βββββββββββββββββββ ββββββββββββββββββββββββ βββ
//βββββββββββββββββββ βββββββββββ ββββββββββββ βββ
//βββββββ βββββββββββ βββββββββββ ββββββββββββββββ
//βββ βββ ββββββββββββββ βββββββββββββββββ ββββββ
//βββ βββ ββββββββββββββ βββββββββ... | * @notice Check if Deposit was correctly done @param palPool address of PalPool @param dest address to send the minted palTokens @param amount amount of underlying tokens deposited @return bool : Verification Success/no method yet | function depositVerify(address palPool, address dest, uint amount) external view override returns(bool){
require(isPalPool(msg.sender), "Call not allowed");
palPool;
dest;
amount;
return false;
}
| 13,039,068 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2073,
309,
4019,
538,
305,
1703,
8783,
2731,
632,
891,
25995,
2864,
1758,
434,
453,
287,
2864,
632,
891,
1570,
1758,
358,
1366,
326,
312,
474,
329,
25995,
5157,
632,
891,
3844,
3844,
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,
0,
0,
0,
0,
0... | [
1,
565,
445,
443,
1724,
8097,
12,
2867,
25995,
2864,
16,
1758,
1570,
16,
2254,
3844,
13,
3903,
1476,
3849,
1135,
12,
6430,
15329,
203,
3639,
2583,
12,
291,
14320,
2864,
12,
3576,
18,
15330,
3631,
315,
1477,
486,
2935,
8863,
203,
203... |
/**
*Submitted for verification at Etherscan.io on 2022-04-27
*/
/**
*Submitted for verification at Etherscan.io on 2022-01-22
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev... | * @dev Updates signer address./ | function updateSignerAddress(address signerAddress) public onlyOwner {
_signer = signerAddress;
}
| 6,162,318 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
15419,
10363,
1758,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
15647,
1887,
12,
2867,
10363,
1887,
13,
1071,
1338,
5541,
288,
203,
1377,
389,
2977,
264,
273,
10363,
1887,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x3d8B48648B4A826097a37E818Bdaa2D7ecC17E1d/sources/Context.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 GSN meta-transactions the account sending and paying for exe... | contract Context {
constructor () internal { }
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
return msg.data;
}
} | 2,633,424 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
28805,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
288,
203,
203,
203,
565,
3885,
1832,
2713,
288,
289,
203,
565,
445,
389,
3576,
12021,
1435,
2713,
1476,
1135,
261,
2867,
8843,
429,
13,
288,
203,
3639,
327,
1234,
18,
15330,
31,
203,
565,
289,
203,
203,
565,
445,
3... |
./full_match/1/0x73C6Fb358dDA8e84D50e98A98F7c0dF32e15C7e9/sources/src/contracts/libs/Errors.sol | a bridge adapter address can not be the 0 address
| string public constant INVALID_BRIDGE_ADAPTER = '20'; | 8,353,747 | [
1,
4625,
348,
7953,
560,
30,
225,
279,
10105,
4516,
1758,
848,
486,
506,
326,
374,
1758,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
533,
1071,
5381,
10071,
67,
7192,
734,
7113,
67,
1880,
37,
1856,
654,
273,
296,
3462,
13506,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/3/0xC2B3D062F995703A8Ab5B46677226dFe454B2756/sources/LnFeeSystemTest.sol | build lusd calc debt update debt data | function BuildAsset(uint256 amount) public whenNotPaused returns (bool) {
address user = msg.sender;
uint256 buildRatio = mConfig.getUint(mConfig.BUILD_RATIO());
uint256 maxCanBuild =
collaterSys.MaxRedeemableInUsd(user).multiplyDecimal(buildRatio);
require(
a... | 5,234,143 | [
1,
4625,
348,
7953,
560,
30,
225,
1361,
328,
407,
72,
7029,
18202,
88,
1089,
18202,
88,
501,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3998,
6672,
12,
11890,
5034,
3844,
13,
1071,
1347,
1248,
28590,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
729,
273,
1234,
18,
15330,
31,
203,
3639,
2254,
5034,
1361,
8541,
273,
312,
809,
18,
588,
5487,
12,
81,
809,
1... |
./full_match/80001/0xBA2823c6a03c479DB8253B8De9d0370b21581181/sources/interfaces/v1/ISwylClub.sol | @dev Emitted when a subscription is canceled | event SubscriptionCancel(uint256 indexed subscriptionId, uint256 indexed tierId, address subscriptor, Subscription[] subscriptions);
| 9,491,326 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
7948,
1347,
279,
4915,
353,
17271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
871,
12132,
6691,
12,
11890,
5034,
8808,
15107,
16,
2254,
5034,
8808,
17742,
548,
16,
1758,
31855,
280,
16,
12132,
8526,
11912,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.18;
import "../node_modules/zeppelin-solidity/contracts/math/SafeMath.sol";
import "../node_modules/zeppelin-solidity/contracts/ownership/Ownable.sol";
// UbiatarCoin Abstract Contract
contract UACAC {
function transfer(address _to, uint256 _value) public returns(bool);
}
/*
This contrac... | UbiatarCoin contract address setter | function setUacTokenAddress(address _uacTokenAddress)
public
onlyOwner
{
uacTokenAddress = _uacTokenAddress;
uacToken = UACAC(_uacTokenAddress);
}
| 1,805,361 | [
1,
4625,
348,
7953,
560,
30,
225,
587,
13266,
8761,
27055,
6835,
1758,
7794,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
57,
1077,
1345,
1887,
12,
2867,
389,
89,
1077,
1345,
1887,
13,
203,
565,
1071,
203,
565,
1338,
5541,
203,
565,
288,
203,
3639,
582,
1077,
1345,
1887,
273,
389,
89,
1077,
1345,
1887,
31,
203,
3639,
582,
1077,
1345... |
// File: contracts/external/govblocks-protocol/interfaces/IProposalCategory.sol
/* Copyright (C) 2017 GovBlocks.io
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the Li... | * @dev Gets Total number of categories added till now/ | function totalCategories() external view returns (uint256) {
return allCategory.length;
}
| 14,744,346 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11881,
10710,
1300,
434,
6477,
3096,
21364,
2037,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
10487,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
777,
4457,
18,
2469,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |