file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/1/0xcDA39B74054EFFB230156f21b334E50295Ca8df4/sources/contracts/strategies/AaveFlashloanStrategy/AaveFlashloanStrategy.sol | @notice Retrieves lending pool variables for `want`. Those variables are mostly used in the function to compute the optimal borrow amount @dev No access control needed because they fetch the values from Aave directly. If it changes there, it will need to be updated here too @dev We expect the values concerned not to b... | function setAavePoolVariables() external {
_setAavePoolVariables();
}
| 9,603,095 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
20507,
328,
2846,
2845,
3152,
364,
1375,
17369,
8338,
935,
2584,
3152,
854,
23958,
1399,
316,
326,
445,
358,
3671,
326,
16413,
29759,
3844,
632,
5206,
2631,
2006,
3325,
3577,
2724,
2898,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
444,
37,
836,
2864,
6158,
1435,
3903,
288,
203,
3639,
389,
542,
37,
836,
2864,
6158,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity 0.6.2;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIABLES ... | * @dev Get registered airlines @return An array with the addresses of all registered airlines/ | function getRegisteredAirlines() external view returns(address[] memory) {
return listOfRegisteredAirlines;
}
| 988,898 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
4104,
23350,
3548,
632,
2463,
1922,
526,
598,
326,
6138,
434,
777,
4104,
23350,
3548,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
336,
10868,
29752,
3548,
1435,
3903,
1476,
1135,
12,
2867,
8526,
3778,
13,
288,
203,
565,
327,
24692,
10868,
29752,
3548,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0xA16D61970c358c703d0107b57Bc8F2D0d378fB43/sources/EmiList.full.sol | item is in the list, remove
| if (blackList[t]) { | 4,725,373 | [
1,
4625,
348,
7953,
560,
30,
225,
761,
353,
316,
326,
666,
16,
1206,
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,... | [
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,
1850,
309,
261,
11223,
682,
63,
88,
5717,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2017 Loopring Technology Limited.
pragma solidity ^0.7.0;
/// @title Ownable
/// @author Brecht Devos - <brecht@loopring.org>
/// @dev The Ownable contract has an owner address, and provides basic
/// authorization control functions, this simplifies the impleme... | event AccountUpdated( | {
address owner;
uint32 accountID;
uint16 feeTokenID;
uint96 maxFee;
uint96 fee;
uint publicKey;
uint32 validUntil;
uint32 nonce;
}
| 8,040,090 | [
1,
4625,
348,
7953,
560,
30,
871,
6590,
7381,
12,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
288,
203,
3639,
1758,
3410,
31,
203,
3639,
2254,
1578,
225,
26643,
31,
203,
3639,
2254,
2313,
225,
14036,
1345,
734,
31,
203,
3639,
2254,
10525,
225,
943,
14667,
31,
203,
3639,
2254,
10525,
225,
14036,
31,
203,
3639,
2254,
5... |
pragma solidity 0.5.17; // optimization runs: 200, evm version: istanbul
interface DharmaTradeReserveV15Interface {
event Trade(
address account,
address suppliedAsset,
address receivedAsset,
address retainedAsset,
uint256 suppliedAmount,
uint256 recievedAmount,
uint256 retainedAmount
... | * @notice Call account `target`, supplying value `amount` and data `data`. Only the owner may call this function. @param target address The account to call. @param amount uint256 The amount of ether to include as an endowment. @param data bytes The data to include along with the call. @return A boolean to indicate if t... | function callAny(
address payable target, uint256 amount, bytes calldata data
) external onlyOwner returns (bool ok, bytes memory returnData) {
(ok, returnData) = target.call.value(amount)(data);
}
| 606,962 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
3049,
2236,
1375,
3299,
9191,
14467,
310,
460,
1375,
8949,
68,
471,
501,
1375,
892,
8338,
5098,
326,
3410,
2026,
745,
333,
445,
18,
632,
891,
1018,
1758,
1021,
2236,
358,
745,
18,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
2961,
12,
203,
565,
1758,
8843,
429,
1018,
16,
2254,
5034,
3844,
16,
1731,
745,
892,
501,
203,
225,
262,
3903,
1338,
5541,
1135,
261,
6430,
1529,
16,
1731,
3778,
327,
751,
13,
288,
203,
565,
261,
601,
16,
327,
... |
./partial_match/1/0x0085D59AbaDFBecE4f85F298f889f26c54738512/sources/ROOT.sol | * @notice Mints ROOT tokens to the specified address @param to The address to mint to @param amount The amount to mint/only addresses sufficient allowances can mint | function mint(address to, uint256 amount) external {
require(mintAllowance[msg.sender] >= amount, "ROOT: insufficient mint allowance");
require(!isBlacklisted[msg.sender], "ROOT: sender is blacklisted");
require(!isBlacklisted[to], "ROOT: recipient is blacklisted");
mintAllowance[msg... | 9,177,435 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
490,
28142,
11011,
2430,
358,
326,
1269,
1758,
632,
891,
358,
1021,
1758,
358,
312,
474,
358,
632,
891,
3844,
1021,
3844,
358,
312,
474,
19,
3700,
6138,
18662,
1699,
6872,
848,
312,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
3903,
288,
203,
3639,
2583,
12,
81,
474,
7009,
1359,
63,
3576,
18,
15330,
65,
1545,
3844,
16,
315,
9185,
30,
2763,
11339,
312,
474,
1699,
1359,
8863,
203,
3639,
2583,... |
// contracts/Structs.sol
// SPDX-License-Identifier: Apache 2
pragma solidity ^0.8.0;
interface Structs {
struct Provider {
uint16 chainId;
uint16 governanceChainId;
bytes32 governanceContract;
}
struct GuardianSet {
address[] keys;
uint32 expirationTime;
}
struct Signature {
bytes32 r;
bytes32 s... | Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from token ID to URI Mapping from owner to operator approvals | struct State {
string name;
string symbol;
mapping(uint256 => address) owners;
mapping(address => uint256) balances;
mapping(uint256 => address) tokenApprovals;
mapping(uint256 => string) tokenURIs;
mapping(address => mapping(address => bool)) operatorA... | 1,105,863 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
508,
3155,
3273,
9408,
628,
1147,
1599,
358,
3410,
1758,
9408,
3410,
1758,
358,
1147,
1056,
9408,
628,
1147,
1599,
358,
20412,
1758,
9408,
628,
1147,
1599,
358,
3699,
9408,
628,
3410,
358,
3726,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
3287,
288,
203,
203,
3639,
533,
508,
31,
203,
203,
3639,
533,
3273,
31,
203,
203,
3639,
2874,
12,
11890,
5034,
516,
1758,
13,
25937,
31,
203,
203,
3639,
2874,
12,
2867,
516,
2254,
5034,
13,
324,
26488,
31,
203,
203,
... |
./full_match/44787/0x5dcF2Bb4BC55FC5501D392832C2de6CbD452Fd79/sources/project_/contracts/CASBundle.sol | * @dev Volume struct to save volume/ | struct VolumeStruct {
uint16 volume;
bool isValue;
}
| 13,276,029 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7404,
1958,
358,
1923,
3940,
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,
1958,
7404,
3823,
288,
203,
3639,
2254,
2313,
3940,
31,
203,
3639,
1426,
21578,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
/*
_______ .___ ________ ___ ______________
\ \ | |/ _____/ / | \__ ___/
/ | \| / \ ___/ ~ \| |
/ | \ \ \_\ \ Y /| |
\____|__ /___|\______ /\___|_ / |____|
\/ \/ \/
Liquidity Locked
Ownership Renounced
*/
// SP... | Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract Night is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0xdead);
bool private swapping;
address public marketingWallet;
address public devWalle... | 11,973,399 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
431,
17704,
1317,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
423,
750,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,
203,
... |
./partial_match/137/0x48304908669633459c9381CB538Ff7bffF3a8e43/sources/darkUSD.sol | Remove a pool Delete from the mapping 'Delete' from the array by setting the address to 0x0 | function removePool(address pool_address) public onlyByOwnerOrGovernance {
require(dusd_pools[pool_address] == true, "address doesn't exist already");
delete dusd_pools[pool_address];
for (uint i = 0; i < dusd_pools_array.length; i++){
if (dusd_pools_array[i] == pool_a... | 3,525,560 | [
1,
4625,
348,
7953,
560,
30,
225,
3581,
279,
2845,
2504,
628,
326,
2874,
296,
2613,
11,
628,
326,
526,
635,
3637,
326,
1758,
358,
374,
92,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
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,
1206,
2864,
12,
2867,
2845,
67,
2867,
13,
1071,
1338,
858,
5541,
1162,
43,
1643,
82,
1359,
288,
203,
3639,
2583,
12,
72,
407,
72,
67,
27663,
63,
6011,
67,
2867,
65,
422,
638,
16,
315,
2867,
3302,
1404,
1005,
1818,
8... |
./full_match/1/0x0C58579eCeDa5bFb87448da1F8bD6c99175640eb/sources/contracts/AdapterDeclarations.sol | * @dev Function to recalibrate the heartbeat for a specific feed/ | function recalibrate(
address _feed
)
public
{
chainLinkHeartBeat[_feed] = recalibratePreview(
IChainLink(_feed)
);
}
| 9,701,586 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4284,
358,
283,
771,
495,
5141,
326,
12923,
364,
279,
2923,
4746,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
771,
495,
5141,
12,
203,
3639,
1758,
389,
7848,
203,
565,
262,
203,
3639,
1071,
203,
565,
288,
203,
3639,
2687,
2098,
5256,
485,
1919,
270,
63,
67,
7848,
65,
273,
283,
771,
495,
5141,
11124,
12,
203,
5411,
467,
... |
./partial_match/8453/0xBD1920Be9cC415E887B0f9304c3aB9651588503d/sources/CSS.sol | Blacklist Dividend tracker | function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) {
if (sender == pair && recipient != address(this) && !isDividendExempt[recipient]) {
uint256 tokensToKeep = amount.mul(1).div(10000);
uint256 tokensToTransfer = amount.sub(tokensToKeep);
_balanc... | 16,787,032 | [
1,
4625,
348,
7953,
560,
30,
225,
22467,
1098,
21411,
26746,
9745,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
1265,
12,
2867,
5793,
16,
1758,
8027,
16,
2254,
5034,
3844,
13,
2713,
1135,
261,
6430,
13,
288,
203,
203,
3639,
309,
261,
15330,
422,
3082,
597,
8027,
480,
1758,
12,
2211,
13,
597,
401,
291,
7244,
26746,
4... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./Interface/IVesting.sol";
import ... | * @dev Emitted when withdraw of tokens was made on vesting contract. @param recipient Address of user for which withdraw tokens. @param amount The amount of tokens which was withdrawn./ | event WithdrawFromVesting(address indexed recipient, uint256 amount);
| 13,025,997 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
1347,
598,
9446,
434,
2430,
1703,
7165,
603,
331,
10100,
6835,
18,
632,
891,
8027,
5267,
434,
729,
364,
1492,
598,
9446,
2430,
18,
632,
891,
3844,
1021,
3844,
434,
2430,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
3423,
9446,
1265,
58,
10100,
12,
2867,
8808,
8027,
16,
2254,
5034,
3844,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
//SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
// libraries
import {LibMath} from "./LibMath.sol";
library LibReserve {
using LibMath for int256;
using LibMath for uint256;
uint256 public constant MAX_DECIMALS = 18;
/**
* @notice Converts a raw token amou... | * @notice Converts a raw token amount to its WAD representation. Used for tokens that don't have 18 decimal places/ | function tokenToWad(uint256 tokenDecimals, uint256 amount) internal pure returns (int256) {
require(tokenDecimals <= MAX_DECIMALS, "Max decimals exceeded");
uint256 scaler = 10**(MAX_DECIMALS - tokenDecimals);
return amount.toInt256() * scaler.toInt256();
}
| 5,385,265 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
20377,
279,
1831,
1147,
3844,
358,
2097,
678,
1880,
4335,
18,
10286,
364,
2430,
716,
2727,
1404,
1240,
6549,
6970,
12576,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
774,
59,
361,
12,
11890,
5034,
1147,
31809,
16,
2254,
5034,
3844,
13,
2713,
16618,
1135,
261,
474,
5034,
13,
288,
203,
3639,
2583,
12,
2316,
31809,
1648,
4552,
67,
23816,
55,
16,
315,
2747,
15105,
12428,
8863,
203... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./SwapUtils.sol";
/**
* @title AmplificationUtils library
* @notice A library to calculate and ramp the A parameter of a given `SwapUtils.Swap` struct.
* This library assumes the struct is ... | * @notice internal helper function to calculate fee per token multiplier used in swap fee calculations @param self Swap struct to read from/ | function _feePerToken(Swap storage self) internal view returns (uint256) {
return
self.swapFee.mul(self.pooledTokens.length).div(
self.pooledTokens.length.sub(1).mul(4)
);
}
| 970,575 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2713,
4222,
445,
358,
4604,
14036,
1534,
1147,
15027,
1399,
316,
7720,
14036,
20882,
632,
891,
365,
12738,
1958,
358,
855,
628,
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,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21386,
2173,
1345,
12,
12521,
2502,
365,
13,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
203,
5411,
365,
18,
22270,
14667,
18,
16411,
12,
2890,
18,
1631,
20212,
5157,
18,
2469,
2934,
2892,
12,
203,... |
./partial_match/1/0x809416858a4d0cAA83a660C54B59c4180C6d1Be3/sources/UController.sol | * @dev unregister a scheme @param _scheme the address of the scheme @param _avatar the organization avatar. @return bool which represents a success/check if the scheme is registered | function unregisterScheme(address _scheme, address _avatar)
external
onlyRegisteringSchemes(_avatar)
onlySubjectToConstraint("unregisterScheme", _avatar)
returns(bool)
{
bytes4 schemePermission = organizations[_avatar].schemes[_scheme].permissions;
if (schemePermission&bytes4(0x0... | 16,037,347 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10232,
279,
4355,
632,
891,
389,
9068,
326,
1758,
434,
326,
4355,
632,
891,
389,
19660,
326,
6758,
16910,
18,
632,
2463,
1426,
1492,
8686,
279,
2216,
19,
1893,
309,
326,
4355,
353,
4104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10232,
9321,
12,
2867,
389,
9068,
16,
1758,
389,
19660,
13,
203,
565,
3903,
203,
565,
1338,
3996,
310,
55,
13268,
24899,
19660,
13,
203,
565,
1338,
6638,
774,
5806,
2932,
318,
4861,
9321,
3113,
389,
19660,
13,
203,
565,... |
./full_match/3/0xf5CF14AFcDfA329E6538e78DDdF6E6b5C17Cc446/sources/browser/github/LilianBordeau/Projet-Blockchain/Election.sol | trigger end of vote event | emit endOfVote();
| 8,254,039 | [
1,
4625,
348,
7953,
560,
30,
225,
3080,
679,
434,
12501,
871,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
3626,
20706,
19338,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/3/0x56206fb4629950d20488235f9a560E2300c76431/sources/contracts/HeadShot.sol | buyantibottake fee only on swaps | function _transfer(
address from,
address to,
uint256 amount
) private {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(amount > 0, "Transfer amount must be greater th... | 8,106,126 | [
1,
4625,
348,
7953,
560,
30,
225,
30143,
970,
495,
352,
22188,
14036,
1338,
603,
1352,
6679,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
3238,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
326,
... |
./partial_match/1/0x38C320bBd094eD62BbD005aE484C20ECf6bAeB64/sources/token.sol | * @dev sets 0 initials tokens, the owner, and the supplyController. this serves as the constructor for the proxy but compiles to the memory model of the Implementation contract./ | function initialize() public {
require(!initialized, "already initialized");
owner = msg.sender;
lawEnforcementRole = address(0);
totalSupply_ = 0;
supplyController = msg.sender;
initialized = true;
}
| 3,572,238 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1678,
374,
2172,
87,
2430,
16,
326,
3410,
16,
471,
326,
14467,
2933,
18,
333,
26255,
487,
326,
3885,
364,
326,
2889,
1496,
1161,
1449,
358,
326,
3778,
938,
434,
326,
25379,
6835,
18,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
1435,
1071,
288,
203,
3639,
2583,
12,
5,
13227,
16,
315,
17583,
6454,
8863,
203,
3639,
3410,
273,
1234,
18,
15330,
31,
203,
3639,
328,
2219,
664,
5734,
475,
2996,
273,
1758,
12,
20,
1769,
203,
3639,
2078,
3088,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
import "./IAssetMatcher.sol";
import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
abstract contract AssetMatcher is Initializable, OwnableUpgradeabl... | * @dev Required interface of an ERC1155 compliant contract, as defined in the _Available since v3.1._/ | interface IERC1155Upgradeable is IERC165Upgradeable {
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values);
event Approva... | 230,416 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10647,
1560,
434,
392,
4232,
39,
2499,
2539,
24820,
6835,
16,
487,
2553,
316,
326,
389,
5268,
3241,
331,
23,
18,
21,
6315,
19,
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,
5831,
467,
654,
39,
2499,
2539,
10784,
429,
353,
467,
654,
39,
28275,
10784,
429,
288,
203,
565,
871,
12279,
5281,
12,
2867,
8808,
3726,
16,
1758,
8808,
628,
16,
1758,
8808,
358,
16,
2254,
5034,
612,
16,
2254,
5034,
460,
1769,
... |
pragma solidity ^0.4.20; // Solidity compiler version supported by Azure Blockchain Workbench
//---------------------------------------------
//Generated automatically for application 'RefrigeratedTransportation' by AppCodeGen utility
//---------------------------------------------
import "./RefrigeratedTransportat... | Transition preconditions Call overridden function IngestTelemetry in this contract Transition postconditions | function Transition_Created_Number_1_IngestTelemetry (int256 humidity, int256 temperature, int256 timestamp) public {
require(State == StateType.Created);
require(msg.sender == Device);
IngestTelemetry(humidity, temperature, timestamp);
assert(State == StateType.OutOfCompliance ||... | 5,533,605 | [
1,
4625,
348,
7953,
560,
30,
225,
16515,
675,
6381,
3049,
11000,
445,
657,
17592,
56,
20483,
316,
333,
6835,
16515,
1603,
6381,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16515,
67,
6119,
67,
1854,
67,
21,
67,
382,
17592,
56,
20483,
261,
474,
5034,
29303,
24237,
16,
509,
5034,
12843,
16,
509,
5034,
2858,
13,
1071,
288,
203,
203,
3639,
2583,
12,
1119,
422,
3287,
559,
18,
6119,
1769,
203... |
./partial_match/1/0xd3Ed738B215fEde4C32deD5a236449DE8a555AEF/sources/PE2X.sol | w2w & not excluded from fees | 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");
if (from!= owner() && to!= owner()) require(t... | 4,073,490 | [
1,
4625,
348,
7953,
560,
30,
225,
341,
22,
91,
473,
486,
8845,
628,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.3;
import "../interfaces/ICoreVoting.sol";
import "../interfaces/IVotingVault.sol";
import "../libraries/Authorizable.sol";
// This vault allows someone to gain one vote on the GSC and tracks that status through time
// it will be a voting vault of the gsc v... | Emit the event tracking this | emit MembershipProved(msg.sender, block.timestamp);
| 5,422,291 | [
1,
4625,
348,
7953,
560,
30,
225,
16008,
326,
871,
11093,
333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3626,
28100,
626,
2155,
12,
3576,
18,
15330,
16,
1203,
18,
5508,
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,
-1... |
./full_match/1/0x85122a589fC2A92cBE6c6606E2b6661FeDfa67ee/sources/Shibnaki_fallback.sol | exclude from paying fees | constructor (address _walletSustainability, address _walletDevelopment, address _DAOcontrol, address _walletLiquidity) ERC20(_name, _symbol) {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Ro... | 3,169,345 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
261,
2867,
389,
19177,
55,
641,
530,
2967,
16,
1758,
389,
19177,
26438,
16,
1758,
389,
18485,
7098,
16,
1758,
389,
19177,
48,
18988,
24237,
13,
4232,
39,
3462,
24899,
529,
16,
389,
7175,
13,
288,
203,
3639,
467,
984,
... |
./partial_match/1/0xE6AbFcABE24F06197a7A20dc9c81c251f2862430/sources/LoopringAmmPool.sol | Check the signature type Read the signature verification transaction Verify that the hash was signed on L2 | {
require(signature.toUint8(0) == L2_SIGNATURE_TYPE, "INVALID_SIGNATURE_TYPE");
SignatureVerificationTransaction.SignatureVerification memory verification = _block.readSignatureVerification(ctx.txIdx++);
require(
verification.owner == owner &&
verification.data == u... | 3,662,137 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
326,
3372,
618,
2720,
326,
3372,
11805,
2492,
8553,
716,
326,
1651,
1703,
6726,
603,
511,
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,... | [
1,
1,
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,
288,
203,
3639,
2583,
12,
8195,
18,
869,
5487,
28,
12,
20,
13,
422,
511,
22,
67,
26587,
67,
2399,
16,
315,
9347,
67,
26587,
67,
2399,
8863,
203,
203,
3639,
9249,
13483,
3342,
18,
5374,
13483,
3778,
11805,
273,
389,
2629,
... |
/* ==================================================================== */
/* Copyright (c) 2018 The DappRound Project. All rights reserved.
/* ==================================================================== */
pragma solidity ^0.4.24;
contract Dappround {
using SafeMath for uint256;
... | Total player input.
| uint256 amount; | 421,151 | [
1,
4625,
348,
7953,
560,
30,
225,
10710,
7291,
810,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
3844,
31,
2868,
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/56/0xa65B23cA853CcEd962016B841BFF9D9C2699dF14/sources/project_/contracts/diamond/facets/TradingCheckerFacet.sol | price * qty * 10^18 / 10^(8+10) = price * qty The notional value must be greater than or equal to the minimum notional value allowed The notional value of the position must be less than or equal to the maximum notional value allowed by pair marginUsd = amountInUsd - openFeeUsd - executionFeeUsd leverage = notionalUsd ... | function openLimitOrderCheck(IBook.OpenDataInput calldata data) external view override {
_checkParameters(data);
IVault.MarginToken memory token = IVault(address(this)).getTokenForTrading(data.tokenIn);
require(token.asMargin, "TradingCheckerFacet: This token is not supported as margin");
... | 3,239,606 | [
1,
4625,
348,
7953,
560,
30,
225,
6205,
380,
26667,
380,
1728,
66,
2643,
342,
1728,
29020,
28,
15,
2163,
13,
273,
6205,
380,
26667,
1021,
486,
285,
287,
460,
1297,
506,
6802,
2353,
578,
3959,
358,
326,
5224,
486,
285,
287,
460,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1696,
3039,
2448,
1564,
12,
45,
9084,
18,
3678,
751,
1210,
745,
892,
501,
13,
3903,
1476,
3849,
288,
203,
3639,
389,
1893,
2402,
12,
892,
1769,
203,
203,
3639,
467,
12003,
18,
9524,
1345,
3778,
1147,
273,
467,
12003,
... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "contracts/protocol/tokens/MinterPauserClaimableERC20.sol";
import "contracts/interfaces/apwine/IFutureVault.sol";
/**
* @title APWine interest bearing token
* @notice Interest bearing token for the futures liquidity provided
* @dev the value of ... | * @notice Returns the current balance of one user including the pt that were not claimed yet @param account the address of the account to check the balance of @return the total pt balance of one address/ | function balanceOf(address account) public view override returns (uint256) {
return super.balanceOf(account).add(futureVault.getClaimablePT(account));
}
| 14,092,904 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
326,
783,
11013,
434,
1245,
729,
6508,
326,
5818,
716,
4591,
486,
7516,
329,
4671,
632,
891,
2236,
326,
1758,
434,
326,
2236,
358,
866,
326,
11013,
434,
632,
2463,
326,
2078,
5818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
12,
2867,
2236,
13,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2240,
18,
12296,
951,
12,
4631,
2934,
1289,
12,
14343,
12003,
18,
588,
9762,
429,
1856,
12,
4631,
10019,
203,
565,
289,
... |
./partial_match/42/0xd434a1bDD41689160ecd24F78df7C354f054166A/sources/FlexibleLeverageStrategyAdapter.sol | Valuation in USD adjusted for decimals in precise units (10e18)
| uint256 collateralValue; | 3,425,625 | [
1,
4625,
348,
7953,
560,
30,
225,
776,
700,
367,
316,
587,
9903,
13940,
364,
15105,
316,
31293,
4971,
261,
2163,
73,
2643,
13,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
4508,
2045,
287,
620,
31,
10792,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0x8744D3722dF942C8541956B716E231e70C47E054/sources/contracts/libraries/logic/ReserveLogic.sol | * @dev Mints part of the repaid interest to the reserve treasury as a function of the reserveFactor for the specific asset. @param reserve The reserve reserve to be updated @param scaledVariableDebt The current scaled total variable debt @param previousVariableBorrowIndex The variable borrow index before the last accum... | function _mintToTreasury(
DataTypes.ReserveData storage reserve,
uint256 scaledVariableDebt,
uint256 previousVariableBorrowIndex,
uint256[4] memory newLiquidityIndices,
uint256 newVariableBorrowIndex,
uint40 timestamp
) internal {
timestamp;
MintToTreasuryLocalVars memory vars;
... | 3,931,905 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
1087,
434,
326,
2071,
20736,
16513,
358,
326,
20501,
9787,
345,
22498,
487,
279,
445,
434,
326,
20501,
6837,
364,
326,
2923,
3310,
18,
632,
891,
20501,
1021,
20501,
20501,
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,
225,
445,
389,
81,
474,
774,
56,
266,
345,
22498,
12,
203,
565,
1910,
2016,
18,
607,
6527,
751,
2502,
20501,
16,
203,
565,
2254,
5034,
12304,
3092,
758,
23602,
16,
203,
565,
2254,
5034,
2416,
3092,
38,
15318,
1016,
16,
203,
565... |
./full_match/4/0xD294Ca2800957021DC486F1959AF022b0B4FCcab/sources/EasyBakeFactory.sol | single check is sufficient
| require(getPair[token0][token1] == address(0), 'EasyBake: PAIR_EXISTS'); | 727,169 | [
1,
4625,
348,
7953,
560,
30,
225,
2202,
866,
353,
18662,
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,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
588,
4154,
63,
2316,
20,
6362,
2316,
21,
65,
422,
1758,
12,
20,
3631,
296,
41,
15762,
38,
911,
30,
15662,
7937,
67,
21205,
8284,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
* The MIT License (MIT)
*
* OpenZeppelin <https://github.com/OpenZeppelin/openzeppelin-solidity/>
* Copyright (c) 2016 Smart Contract Solutions, Inc.
* Modified for Rupiah Token by FengkieJ 2019.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and as... | * @dev called by the owner to pause, triggers stopped state/ | function pause() public onlyOwner {
_paused = true;
emit Paused(msg.sender);
}
| 1,758,451 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2566,
635,
326,
3410,
358,
11722,
16,
11752,
9627,
919,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11722,
1435,
1071,
1338,
5541,
288,
203,
3639,
389,
8774,
3668,
273,
638,
31,
203,
3639,
3626,
21800,
3668,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma abicoder v2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev R... | @notice Computes the amount of token0 for a given amount of liquidity and a price range @param sqrtRatioAX96 A sqrt price representing the first tick boundary @param sqrtRatioBX96 A sqrt price representing the second tick boundary @param liquidity The liquidity being valued @return amount0 The amount of token0 | function getAmount0ForLiquidity(
uint160 sqrtRatioAX96,
uint160 sqrtRatioBX96,
uint128 liquidity
) internal pure returns (uint256 amount0) {
if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
return
FullMath.mu... | 9,321 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
14169,
281,
326,
3844,
434,
1147,
20,
364,
279,
864,
3844,
434,
4501,
372,
24237,
471,
279,
6205,
1048,
632,
891,
5700,
8541,
2501,
10525,
432,
5700,
6205,
5123,
326,
1122,
4024,
7679,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
24418,
20,
1290,
48,
18988,
24237,
12,
203,
3639,
2254,
16874,
5700,
8541,
2501,
10525,
16,
203,
3639,
2254,
16874,
5700,
8541,
38,
60,
10525,
16,
203,
3639,
2254,
10392,
4501,
372,
24237,
203,
565,
262,
2713,
16618,
1135... |
pragma solidity 0.5.16;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "./InstrumentManagerInterface.sol";
import "./InstrumentInterface.sol";
import "../InstrumentConfig.sol";
import "../escrow/InstrumentEscrowInterface.sol";
import "../esc... | * @dev Get the ID of the last created issuance./ | function getLastIssuanceId() public view returns (uint256) {
return _lastIssuanceId;
}
| 12,990,539 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
1599,
434,
326,
1142,
2522,
3385,
89,
1359,
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,... | [
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,
7595,
7568,
89,
1359,
548,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
2722,
7568,
89,
1359,
548,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/40/0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675/sources/contracts/Endpoint.sol | LIBRARY UPGRADE step 2: stop sending messages from the old version | ) external onlyOwner validVersion(_newDefaultSendVersion) {
require(_newDefaultSendVersion != DEFAULT_VERSION, "LayerZero: default send version must > 0");
defaultSendVersion = _newDefaultSendVersion;
defaultSendLibrary = libraryLookup[defaultSendVersion];
emit DefaultSendVersionSet(... | 9,553,352 | [
1,
4625,
348,
7953,
560,
30,
225,
8961,
28254,
7376,
24554,
1639,
2235,
576,
30,
2132,
5431,
2743,
628,
326,
1592,
1177,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
3903,
1338,
5541,
923,
1444,
24899,
2704,
1868,
3826,
1444,
13,
288,
203,
3639,
2583,
24899,
2704,
1868,
3826,
1444,
480,
3331,
67,
5757,
16,
315,
4576,
7170,
30,
805,
1366,
1177,
1297,
405,
374,
8863,
203,
3639,
805,
3... |
/**
*Submitted for verification at Etherscan.io on 2021-03-25
*/
pragma solidity ^0.4.26;
/**
* Math operations with safety checks
*/
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
... | Set the name for display purposes
| name = "Byte Coin"; | 6,764,072 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
326,
508,
364,
2562,
13694,
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,
... | [
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,
508,
273,
315,
3216,
28932,
14432,
4766,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/97/0xA749f9A3CfD37ecB3fBA2ECa1986c06f7ffe1294/sources/MoonHold/MoonHold.sol | addresses that can make transfers before trading is enabled | mapping (address => bool) private canTransferBeforeTradingIsEnabled;
| 3,287,495 | [
1,
4625,
348,
7953,
560,
30,
225,
6138,
716,
848,
1221,
29375,
1865,
1284,
7459,
353,
3696,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
261,
2867,
516,
1426,
13,
3238,
848,
5912,
4649,
1609,
7459,
2520,
1526,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract CapyCredits is ERC20 {
// Only the DAO creating the coin can mint new coins
address public dao;
modifier isDao {
require(msg.sender == this.dao, "only the DAO can issue new credits");
_;
... | Allows the DAO to mint new coins. This is the only allowed method for minting credits. | function mint(address to, uint256 amount) external isDao {
_mint(to, amount);
}
| 14,083,557 | [
1,
4625,
348,
7953,
560,
30,
225,
25619,
326,
463,
20463,
358,
312,
474,
394,
276,
9896,
18,
1220,
353,
326,
1338,
2935,
707,
364,
312,
474,
310,
6197,
1282,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
3903,
353,
11412,
288,
203,
202,
202,
67,
81,
474,
12,
869,
16,
3844,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/1/0x61Ab01Ce58D1dFf3562bb25870020d555e39D849/sources/contracts/RelayerV2Radar.sol | RelayerV2Radar has an instance of RelayerV2. It does not need to set prices. it has view functions that use the internal RelayerV2 price data. struct DstPrice { uint128 dstPriceRatio; 10^10 uint128 dstGasPriceInWei; } struct DstConfig { uint128 dstNativeAmtCap; uint64 baseGas; ... | contract RelayerV2Radar is ReentrancyGuard, OwnableUpgradeable, Proxied, ILayerZeroRelayerV2, ILayerZeroRelayerV2PriceData {
using SafeERC20 for IERC20;
using SafeMath for uint;
using SafeMath for uint128;
using SafeMath for uint64;
ILayerZeroRelayerV2PriceData public relayerV2;
address public... | 9,780,338 | [
1,
4625,
348,
7953,
560,
30,
225,
4275,
1773,
58,
22,
6621,
297,
711,
392,
791,
434,
4275,
1773,
58,
22,
18,
2597,
1552,
486,
1608,
358,
444,
19827,
18,
518,
711,
1476,
4186,
716,
999,
326,
2713,
4275,
1773,
58,
22,
6205,
501,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4275,
1773,
58,
22,
6621,
297,
353,
868,
8230,
12514,
16709,
16,
14223,
6914,
10784,
429,
16,
1186,
92,
2092,
16,
467,
4576,
7170,
1971,
1773,
58,
22,
16,
467,
4576,
7170,
1971,
1773,
58,
22,
5147,
751,
288,
203,
565,
14... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import "./Financable.sol";
import "./Prizable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
contract TaskFactory is Financable, Prizable, Pausable{
/*
* Constant variables
*/
// Punishment period in seconds
uint constant pu... | If task has not any prize locked in it | modifier notPrized (uint _id) {
require(!hasPrize(_id));
_;
}
| 12,888,245 | [
1,
4625,
348,
7953,
560,
30,
225,
971,
1562,
711,
486,
1281,
846,
554,
8586,
316,
518,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9606,
486,
2050,
1235,
261,
11890,
389,
350,
13,
288,
203,
565,
2583,
12,
5,
5332,
2050,
554,
24899,
350,
10019,
203,
565,
389,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/1287/0xA0d4dA1f247180607cb157868482f3C6Bf4f7668/sources/project_/contracts/ContributionContract.sol | @dev This function will be called by the user to create a new seed contribution as there will be not voting or anything like that @param payload data for the seed contribution creation @param platformWallet this is the UI providers wallet @param platformFee this is the incentive amount for the UI maintainer | function createSeedContribution(
SeedContributionPayload memory payload,
address payable platformWallet,
uint256 platformFee
) public payable returns (uint256) {
{
require(msg.value >= platformFee, "INV: INSUFFICIENT_PLATFORM_FEE");
if (msg.value > 0) {
... | 7,097,087 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1220,
445,
903,
506,
2566,
635,
326,
729,
358,
752,
279,
394,
5009,
24880,
487,
1915,
903,
506,
486,
331,
17128,
578,
6967,
3007,
716,
632,
891,
2385,
501,
364,
326,
5009,
24880,
6710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
752,
12702,
442,
4027,
12,
203,
3639,
28065,
442,
4027,
6110,
3778,
2385,
16,
203,
3639,
1758,
8843,
429,
4072,
16936,
16,
203,
3639,
2254,
5034,
4072,
14667,
203,
565,
262,
1071,
8843,
429,
1135,
261,
11890,
5034,
13,
... |
// SPDX-License-Identifier: MIT
/*
CrypToadz Created By:
___ ____ ____ __ __ ____ __ ____ _ _
/ __)( _ \( ___)( \/ )( _ \( ) (_ _)( \( )
( (_-. ) / )__) ) ( )___/ )(__ _)(_ ) (
\___/(_)\_)(____)(_/\/\_)(__) (____)(____)(_)\_)
(https://cryptoadz.io)
ChainToadz Programmed By:
__ ... | * @notice Renders the canonical token image as an embedded data URI */ | function getImageDataUri(uint tokenId) external override view returns(string memory) {
GIFEncoder.GIF memory gif = getImage(tokenId);
string memory dataUri = GIFEncoder.getDataUri(gif);
return dataUri;
}
| 146,739 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
534,
10130,
326,
7378,
1147,
1316,
487,
392,
7488,
501,
3699,
225,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10567,
751,
3006,
12,
11890,
1147,
548,
13,
3903,
3849,
1476,
1135,
12,
1080,
3778,
13,
288,
203,
3639,
31978,
7204,
18,
43,
5501,
3778,
27618,
273,
10567,
12,
2316,
548,
1769,
203,
3639,
533,
3778,
501,
3006,
273,
3197... |
pragma solidity ^0.4.18;
import "../crowdsale/validation/CappedCrowdsale.sol";
import "../crowdsale/emission/MintedCrowdsale.sol";
import "../crowdsale/price/IncreasingPriceCrowdsale.sol";
import "../crowdsale/distribution/FinalizableCrowdsale.sol";
import "../crowdsale/distribution/PostDeliveryCrowdsale.sol";
import ... | * @dev Constructor, takes crowdsale opening and closing times. @param _openingTime Crowdsale opening time @param _closingTime Crowdsale opening time @param _initialRate Crowdsale closing time @param _finalRate Crowdsale opening time @param _cap Crowdsale closing time @param _wallet Crowdsale opening time @param _token ... | function ROUX_ReferralBasedCrowdsale(
uint256 _openingTime,
uint256 _closingTime,
uint256 _initialRate,
uint256 _finalRate,
uint256 _cap,
address _wallet,
ROUX_Token _token,
uint256 _minimumPurchase)
public
Crowdsale(_initialRate, _wallet, _token)
TimedCrowdsale(_openingT... | 12,784,663 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11417,
16,
5530,
276,
492,
2377,
5349,
10890,
471,
7647,
4124,
18,
632,
891,
389,
3190,
310,
950,
385,
492,
2377,
5349,
10890,
813,
632,
891,
389,
19506,
950,
385,
492,
2377,
5349,
10890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6525,
57,
60,
67,
1957,
29084,
9802,
39,
492,
2377,
5349,
12,
203,
565,
2254,
5034,
389,
3190,
310,
950,
16,
203,
565,
2254,
5034,
389,
19506,
950,
16,
203,
565,
2254,
5034,
389,
6769,
4727,
16,
203,
565,
2254,
5034,
... |
./full_match/1/0xDB3abFA4209621135A924FC2cf190052c39b157D/sources/contracts/SkillTree.sol | cancel endorsement (by endorser) | function cancel_endorsement(bytes32 _endorsement) external{
require((Endorsements[_endorsement].endorser == msg.sender), "Not your endorsement to cancel");
Endorsements[_endorsement].state = canceled;
emit CancelEndorsement(_endorsement, msg.sender);
}
| 3,168,151 | [
1,
4625,
348,
7953,
560,
30,
225,
3755,
679,
23035,
475,
261,
1637,
679,
280,
550,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3755,
67,
5227,
307,
475,
12,
3890,
1578,
389,
5227,
307,
475,
13,
3903,
95,
203,
565,
2583,
12443,
1638,
23035,
1346,
63,
67,
5227,
307,
475,
8009,
5227,
550,
422,
1234,
18,
15330,
3631,
315,
1248,
3433,
679,
23035,
... |
./full_match/4/0xdDcb7040AC01EB926Cd78C55ceB393d78c3A1da4/sources/browser/SakeVoterCalc2.sol | Leave the bar. Claim back your SAKEs. | function leave(uint256 _share) public {
uint256 totalShares = totalSupply();
uint256 what = _share.mul(sake.balanceOf(address(this))).div(totalShares);
_burn(msg.sender, _share);
sake.transfer(msg.sender, what);
}
| 734,206 | [
1,
4625,
348,
7953,
560,
30,
225,
21131,
326,
4653,
18,
18381,
1473,
3433,
348,
14607,
6705,
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,
... | [
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,
8851,
12,
11890,
5034,
389,
14419,
13,
1071,
288,
203,
3639,
2254,
5034,
2078,
24051,
273,
2078,
3088,
1283,
5621,
203,
3639,
2254,
5034,
4121,
273,
389,
14419,
18,
16411,
12,
87,
911,
18,
12296,
951,
12,
2867,
12,
2211... |
./full_match/4/0x18Be7dB1a84062eE9e7361A686495d7b3Fc97a26/sources/contracts/TradingContract.sol | Getter for the total supply converted to WETH | function getTotalSupply() public view returns (uint256) {
uint256 _baseTokenBalance = baseToken.balanceOf(address(this)).sub(accumulatedFees);
uint256 _pairedTokenBalance = pairedToken.balanceOf(address(this));
uint256 _convertedBaseBalance = getAmountOutMin(baseTokenAddress, WETHAddress, ... | 658,687 | [
1,
4625,
348,
7953,
560,
30,
968,
387,
364,
326,
2078,
14467,
5970,
358,
678,
1584,
44,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
12831,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
203,
3639,
2254,
5034,
389,
1969,
1345,
13937,
273,
1026,
1345,
18,
12296,
951,
12,
2867,
12,
2211,
13,
2934,
1717,
12,
8981,
5283,
690,
2954,
2... |
// import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../contracts/ethWallet.sol";
contract test {
// Ballot ballotToTest;
// function beforeAll () public {
// ballotToTest = new Ballot(2);
// }
// function checkWinningProposal () public {
// bal... | import "remix_tests.sol"; this import is automatically injected by Remix. | import "../contracts/ethWallet.sol";
| 5,526,047 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
315,
2764,
697,
67,
16341,
18,
18281,
14432,
225,
333,
1930,
353,
6635,
15776,
635,
2663,
697,
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,
... | [
1,
1,
1,
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,
5666,
315,
6216,
16351,
87,
19,
546,
16936,
18,
18281,
14432,
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,
... |
/*
Copyright 2021 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | * Get borrow position. If should accrue interest is true, then accrue interest on Compound and use current borrow balance, else use the stored value to save gas. Use the current value for debt redemption, when we need to calculate the exact units of debt that needs to be repaid./ Round negative away from 0 | function _getBorrowPosition(ISetToken _setToken, ICErc20 _cToken, uint256 _setTotalSupply, bool _shouldAccrueInterest) internal returns (int256) {
uint256 borrowNotionalBalance = _shouldAccrueInterest ? _cToken.borrowBalanceCurrent(address(_setToken)) : _cToken.borrowBalanceStored(address(_setToken));
... | 896,529 | [
1,
4625,
348,
7953,
560,
30,
380,
968,
29759,
1754,
18,
971,
1410,
4078,
86,
344,
16513,
353,
638,
16,
1508,
4078,
86,
344,
16513,
603,
21327,
471,
999,
783,
29759,
11013,
16,
469,
999,
326,
4041,
460,
358,
1923,
16189,
18,
2672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
38,
15318,
2555,
12,
45,
694,
1345,
389,
542,
1345,
16,
467,
1441,
1310,
3462,
389,
71,
1345,
16,
2254,
5034,
389,
542,
5269,
3088,
1283,
16,
1426,
389,
13139,
8973,
86,
344,
29281,
13,
2713,
1135,
261,
474,... |
./partial_match/42/0x536B400Da0872c179078117BeDC0E214A82F23ea/sources/contracts/WBTC.sol | * @title Contracts that should be able to recover tokens @author SylTi @dev This allow a contract to recover any ERC20 token received in a contract by transferring the balance to the contract owner. This will prevent any accidental loss of tokens./ | contract CanReclaimToken is Ownable {
using SafeERC20 for ERC20Basic;
function reclaimToken(ERC20Basic _token) external onlyOwner {
uint256 balance = _token.balanceOf(this);
_token.safeTransfer(owner, balance);
}
}
| 8,847,106 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
30131,
716,
1410,
506,
7752,
358,
5910,
2430,
632,
4161,
16455,
80,
56,
77,
632,
5206,
1220,
1699,
279,
6835,
358,
5910,
1281,
4232,
39,
3462,
1147,
5079,
316,
279,
6835,
635,
906,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
16351,
4480,
426,
14784,
1345,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
4232,
39,
3462,
8252,
31,
203,
203,
203,
565,
445,
283,
14784,
1345,
12,
654,
39,
3462,
8252,
389,
2316,
13,
3903,
1338,
5541,
288,
... |
// SPDX-License-Identifier: MIT
pragma solidity =0.6.12;
pragma experimental ABIEncoderV2;
import './libraries/SafeMath.sol';
import './interfaces/ICentaurFactory.sol';
import './interfaces/ICentaurPool.sol';
import './interfaces/ICentaurSettlement.sol';
contract CentaurSettlement is ICentaurSettlement {
using Saf... | event SettlementAdded(address indexed sender, address indexed _fromToken, uint _amountIn, address indexed _toToken, uint _amountOut); event SettlementRemoved(address indexed sender, address indexed _fromToken, address indexed _toToken); | interface ICentaurSettlement {
struct Settlement {
address fPool;
uint amountIn;
uint fPoolBaseTokenTargetAmount;
uint fPoolBaseTokenBalance;
uint fPoolLiquidityParameter;
address tPool;
uint maxAmountOut;
uint tPoolBaseTokenTargetAmount;
uint... | 7,015,899 | [
1,
4625,
348,
7953,
560,
30,
225,
871,
1000,
88,
806,
8602,
12,
2867,
8808,
5793,
16,
1758,
8808,
389,
2080,
1345,
16,
2254,
389,
8949,
382,
16,
1758,
8808,
389,
869,
1345,
16,
2254,
389,
8949,
1182,
1769,
871,
1000,
88,
806,
1002... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
5831,
467,
15897,
28659,
694,
88,
806,
288,
203,
203,
565,
1958,
1000,
88,
806,
288,
203,
3639,
1758,
284,
2864,
31,
203,
3639,
2254,
3844,
382,
31,
203,
3639,
2254,
284,
2864,
2171,
1345,
2326,
6275,
31,
203,
3639,
2254,
284,
... |
pragma solidity ^0.4.21;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a / b;
r... | @dev Return staff addresses list */ | function getAllStaff() view public onlyAdmin returns(address[]){
return staffaddress;
}
| 1,429,099 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2000,
28904,
6138,
666,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
5514,
510,
7329,
1435,
1476,
1071,
1338,
4446,
1135,
12,
2867,
63,
5717,
95,
203,
202,
202,
2463,
28904,
2867,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.17;
contract Lottery {
address public manager;
address[] public players;
function Lottery() public {
manager = msg.sender;
}
function getNumberOfPlayers() public view returns (uint) {
return players.length;
}
function getPlayers() public view returns... | Require that some ether amount is sent Add player Reset contract | function enter() public payable {
require(msg.value > 0.01 ether);
players.push(msg.sender);
}
| 15,793,751 | [
1,
4625,
348,
7953,
560,
30,
225,
12981,
716,
2690,
225,
2437,
3844,
353,
3271,
1436,
7291,
7151,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6103,
1435,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
405,
374,
18,
1611,
225,
2437,
1769,
203,
203,
3639,
18115,
18,
6206,
12,
3576,
18,
15330,
1769,
203,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2021-04-22
*/
// Sources flattened with hardhat v2.1.1 https://hardhat.org
// File @openzeppelin/contracts-upgradeable/utils/[email protected]
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {... | @notice The total number of burned FAIR tokens, excluding tokens burned from a `Sell` action in the DAT. | uint public burnedSupply;
| 10,565,551 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1021,
2078,
1300,
434,
18305,
329,
15064,
7937,
2430,
16,
19560,
2430,
18305,
329,
628,
279,
1375,
55,
1165,
68,
1301,
316,
326,
12364,
18,
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,
0,
0,
0,
0,
0,
0,
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,
1071,
18305,
329,
3088,
1283,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.6 <0.8.0;
import "@animoca/ethereum-contracts-assets/contracts/token/ERC20/ERC20.sol";
/**
* @title DOSE
*/
contract DOSE is ERC20 {
constructor(
address[] memory recipients,
uint256[] memory values,
string memory tokenURI_
) ERC... | @dev See {IERC20Detailed-decimals}. | function decimals() external view override returns (uint8) {
return _decimals;
}
| 375,158 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2164,
288,
45,
654,
39,
3462,
40,
6372,
17,
31734,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
15105,
1435,
3903,
1476,
3849,
1135,
261,
11890,
28,
13,
288,
203,
3639,
327,
389,
31734,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/42/0xfEFAC60562dA5FFF9c0685e082994030407D8C47/sources/contracts/test.sol | Obligation + epochDebt
| uint256 accObligation; | 16,281,229 | [
1,
4625,
348,
7953,
560,
30,
225,
531,
31627,
367,
397,
7632,
758,
23602,
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,
4078,
51,
31627,
367,
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,
... |
//Address: 0x997e3adb550a85895f5becf54a2751e6df24edc8
//Contract name: GRO
//Balance: 0 Ether
//Verification Date: 1/28/2018
//Transacion Count: 3270
// CODE STARTS HERE
pragma solidity 0.4.18;
contract Token { // ERC20 standard
function balanceOf(address _owner) public constant returns (uint256 balance);
... | Returns the ether value (in wei units) for the amount of tokens in subunits for decimal support, at the current GRO exchange rate | function checkWithdrawValue(uint256 amountTokensInSubunit) public constant returns (uint256 weiValue) {
require(amountTokensInSubunit > 0);
require(balanceOf(msg.sender) >= amountTokensInSubunit);
uint256 withdrawValue = amountTokensInSubunit / currentPrice.numerator;
require(this.ba... | 5,448,019 | [
1,
4625,
348,
7953,
560,
30,
225,
2860,
326,
225,
2437,
460,
261,
267,
732,
77,
4971,
13,
364,
326,
3844,
434,
2430,
316,
720,
7705,
364,
6970,
2865,
16,
622,
326,
783,
611,
1457,
7829,
4993,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1190,
9446,
620,
12,
11890,
5034,
3844,
5157,
382,
1676,
4873,
13,
1071,
5381,
1135,
261,
11890,
5034,
732,
77,
620,
13,
288,
203,
3639,
2583,
12,
8949,
5157,
382,
1676,
4873,
405,
374,
1769,
203,
3639,
2583,
12,
... |
./full_match/1/0xabEAF7276e7CCB235a1F69a6e44fED4670a9D023/sources/contracts/Loot.sol | uint256 collectibleCount = 0; for (uint256 i = 0; i <= APE_IDS; i++) { collectibleCount = collectibleCount + APE_COLLECTION.balanceOf(msg.sender, APE_IDS[i]); } require( collectibleCount > 4, "You need to own 5 collectibles to claim" ); | function claim() public returns (uint256 requestId) {
require(
addressHasClaimed[msg.sender] == false,
"You have already claimed"
);
require(
addressToRequest[msg.sender] == 0,
"You already have a request"
);
requestId = re... | 9,659,683 | [
1,
4625,
348,
7953,
560,
30,
225,
2254,
5034,
3274,
1523,
1380,
273,
374,
31,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
1648,
432,
1423,
67,
19516,
31,
277,
27245,
288,
377,
3274,
1523,
1380,
273,
540,
3274,
1523,
1380,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7516,
1435,
1071,
225,
1135,
261,
11890,
5034,
14459,
13,
288,
203,
3639,
2583,
12,
203,
5411,
1758,
5582,
9762,
329,
63,
3576,
18,
15330,
65,
422,
629,
16,
203,
5411,
315,
6225,
1240,
1818,
7516,
329,
6,
203,
3639,
1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import {AccessControlEnumerableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Ac... | @dev Emitted when `_notifyRewardAmount` is called. @param bankNodeId The id of the bank node @param reward The reward amount | event RewardAdded(uint32 indexed bankNodeId, uint256 reward);
| 13,867,784 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
7948,
1347,
1375,
67,
12336,
17631,
1060,
6275,
68,
353,
2566,
18,
632,
891,
11218,
15883,
1021,
612,
434,
326,
11218,
756,
632,
891,
19890,
1021,
19890,
3844,
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,
0,
0,
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,
534,
359,
1060,
8602,
12,
11890,
1578,
8808,
11218,
15883,
16,
2254,
5034,
19890,
1769,
203,
2,
-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;
// File: zos-lib/contracts/migrations/Migratable.sol
/**
* @title Migratable
* Helper contract to support intialization and migration schemes between
* different implementations of a contract in the context of upgradeability.
* To use it, replace the constructor with a function that has t... | * @dev Executes the sale for a published NFT @param nftAddress - Address of the NFT registry @param assetId - ID of the published NFT @param price - Order price @param fingerprint - Verification info for the asset/ Calculate sale share Transfer share amount for marketplace Owner | function _executeOrder(
address nftAddress,
uint256 assetId,
uint256 price,
bytes fingerprint
)
internal returns (Order)
{
_requireERC721(nftAddress);
ERC721Verifiable nftRegistry = ERC721Verifiable(nftAddress);
if (nftRegistry.supportsInterface(InterfaceId_ValidateFingerprint)) {... | 11,731,499 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3889,
993,
326,
272,
5349,
364,
279,
9487,
423,
4464,
632,
891,
290,
1222,
1887,
300,
5267,
434,
326,
423,
4464,
4023,
632,
891,
3310,
548,
300,
1599,
434,
326,
9487,
423,
4464,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
8837,
2448,
12,
203,
565,
1758,
290,
1222,
1887,
16,
203,
565,
2254,
5034,
3310,
548,
16,
203,
565,
2254,
5034,
6205,
16,
203,
565,
1731,
12115,
203,
225,
262,
203,
282,
2713,
1135,
261,
2448,
13,
203,
225,
288,
... |
pragma solidity ^0.6.12;
... | inject NONSTANDARD NAMING
| function TOTALSUPPLY223() public view override returns (uint256) { | 1,839,193 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
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,... | [
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,
399,
19851,
13272,
23893,
3787,
23,
1435,
1071,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.1;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/Credit.sol";
contract TestCredit {
Credit credit = Credit(DeployedAddresses.Credit());
address sender = address(this);
bool success;
uint256 debtSum = 500;
uint256 debtBonus = 20;
... | Проверка пересылки токенов при взятии кредита | Assert.equal(credit.tokenBalance(DeployedAddresses.Credit()), creditBalance - debtSum, "Tokens didn't send from credit");
| 15,805,527 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
145,
258,
146,
227,
145,
127,
145,
115,
145,
118,
146,
227,
145,
123,
145,
113,
225,
145,
128,
145,
118,
146,
227,
145,
118,
146,
228,
146,
238,
145,
124,
145,
123,
145,
121,
225,
146,
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,
3639,
5452,
18,
9729,
12,
20688,
18,
2316,
13937,
12,
31954,
7148,
18,
16520,
1435,
3631,
12896,
13937,
300,
18202,
88,
3495,
16,
315,
5157,
10242,
1404,
1366,
628,
12896,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0xBA627f3d081cc97ac0eDc40591eda7053AC63532/sources/src/BoredAndDangerous.sol | @notice Update the royaltyOwner @dev Can also be used to revoke this power by setting to 0x0 | function setRoyaltyOwner(address _royaltyOwner) external {
if (msg.sender != royaltyOwner) {
revert AccessControl();
}
royaltyOwner = _royaltyOwner;
}
| 9,779,918 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
2315,
326,
721,
93,
15006,
5541,
632,
5206,
4480,
2546,
506,
1399,
358,
18007,
333,
7212,
635,
3637,
358,
374,
92,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
54,
13372,
15006,
5541,
12,
2867,
389,
3800,
15006,
5541,
13,
3903,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
721,
93,
15006,
5541,
13,
288,
203,
5411,
15226,
24349,
5621,
203,
3639,
289,
203,
3639,
721,
93,
... |
./full_match/137/0xEF5Fb6df142F30D56951069e0eA80b1D65037D05/sources/OrseRouter.sol | performs chained getAmountIn calculations on any number of pairs | function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'unufourLibrary: INVALID_PATH');
amounts = new uint[](path.length);
amounts[amounts.length - 1] = amountOut;
for (uint i = path.leng... | 4,716,048 | [
1,
4625,
348,
7953,
560,
30,
225,
11199,
20269,
24418,
382,
20882,
603,
1281,
1300,
434,
5574,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24418,
87,
382,
12,
2867,
3272,
16,
2254,
3844,
1182,
16,
1758,
8526,
3778,
589,
13,
2713,
1476,
1135,
261,
11890,
8526,
3778,
30980,
13,
288,
203,
3639,
2583,
12,
803,
18,
2469,
1545,
576,
16,
296,
318,
696,
477,
931... |
pragma solidity ^0.6.0;
import "../SortitionSumTreeFactory.sol";
/**
* @title ExposedSortitionSumTreeFactory
* @author Enrique Piqueras - <epiquerass@gmail.com>
* @dev Exposed version of SortitionSumTreeFactory for testing.
*/
contract ExposedSortitionSumTreeFactory {
/* Storage */
using SortitionSumT... | * @dev Draw an ID from a tree using a number. @param _key The key of the tree. @param _drawnNumber The drawn number. @return ID The drawn ID./ | function _draw(bytes32 _key, uint _drawnNumber) public view returns(bytes32 ID) {
return sortitionSumTrees.draw(_key, _drawnNumber);
}
| 14,108,866 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
10184,
392,
1599,
628,
279,
2151,
1450,
279,
1300,
18,
225,
632,
891,
389,
856,
1021,
498,
434,
326,
2151,
18,
225,
632,
891,
389,
9446,
82,
1854,
1021,
19377,
1300,
18,
225,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
9446,
12,
3890,
1578,
389,
856,
16,
2254,
389,
9446,
82,
1854,
13,
1071,
1476,
1135,
12,
3890,
1578,
1599,
13,
288,
203,
3639,
327,
1524,
608,
3495,
26590,
18,
9446,
24899,
856,
16,
389,
9446,
82,
1854,
1769,
203... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : AFCN
// Name : AfghanCoin
// Total supply : 100000000000000000000000000
// Decimals : 18
// Owner Account : 0x47D39D71330cdc62367A6f2B0DCe8936F8314f2A
/... | */ ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | contract AfghanCoin is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
Contract function to receive approval and execute function in ... | 12,074,515 | [
1,
4625,
348,
7953,
560,
30,
1195,
8879,
17082,
11417,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
432,
2137,
25842,
27055,
353,
4232,
39,
3462,
1358,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088,
1283,... |
./partial_match/137/0xfecE55912861a401738604c52998604ba45115a1/sources/CoboSafeAccount.sol | @title CoboSafeAccount - A GnosisSafe module that implements customized access control @author Cobo Safe Dev Team https://www.cobo.com/ | contract CoboSafeAccount is BaseAccount {
using TxFlags for uint256;
bytes32 public constant NAME = "CoboSafeAccount";
uint256 public constant VERSION = 1;
}
constructor(address _owner) BaseAccount(_owner) {}
function safe() public view returns (address) {
return owner;
}
functio... | 3,513,942 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
385,
947,
83,
9890,
3032,
300,
432,
611,
18050,
291,
9890,
1605,
716,
4792,
29063,
2006,
3325,
632,
4161,
385,
947,
83,
14060,
9562,
10434,
2333,
2207,
5591,
18,
71,
947,
83,
18,
832,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
385,
947,
83,
9890,
3032,
353,
3360,
3032,
288,
203,
565,
1450,
6424,
5094,
364,
2254,
5034,
31,
203,
203,
565,
1731,
1578,
1071,
5381,
6048,
273,
315,
39,
947,
83,
9890,
3032,
14432,
203,
565,
2254,
5034,
1071,
5381,
8456... |
./partial_match/1/0xdb3D91Dcb27547d82A09556D1028beEdB04A5902/sources/src/Sand/erc777/extra/ERC777WithoutERC20.sol | override to block from emitting Transfer when not mErc20compatible | function _send(
address _operator,
address _from,
address _to,
uint256 _amount,
bytes memory _data,
bytes memory _operatorData,
bool _preventLocking
)
internal
{
callSender(_operator, _from, _to, _amount, _data, _operatorData);
... | 9,405,510 | [
1,
4625,
348,
7953,
560,
30,
3849,
358,
1203,
628,
3626,
1787,
12279,
1347,
486,
312,
41,
1310,
3462,
10943,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4661,
12,
203,
3639,
1758,
389,
9497,
16,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1731,
3778,
389,
892,
16,
203,
3639,
1731,
3778,
389,
9497... |
./full_match/3/0xc32aE6658715383C4Cc8C21DdC38542D9aB18500/sources/contracts/Token_AllInOne.sol | * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. This is internal function is equivalent to `approve`, and can be used to e.g. set automatic allowances for certain subsystems, etc. Emits an {Approval} event. Requirements: - `owner` cannot be the zero address. - `spender` cannot be the zero a... | function _approve(address _owner, address spender, uint256 value) internal {
require(_owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[_owner][spender] = value;
emit Approval(_owner, spend... | 8,252,690 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
1375,
8949,
68,
487,
326,
1699,
1359,
434,
1375,
87,
1302,
264,
68,
1879,
326,
1375,
8443,
68,
87,
2430,
18,
1220,
353,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
9191,
471,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12908,
537,
12,
2867,
389,
8443,
16,
1758,
17571,
264,
16,
2254,
5034,
460,
13,
2713,
288,
203,
3639,
2583,
24899,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
6617,
537,
628,
326,
3634,
1758,
8863,
203... |
./full_match/1/0xE0abF76EDDca3063fAe83725ea849b04C24B8623/sources/BOOBA/ERC20.sol | @dev Transfers `amount` tokens from `from` to `to`. Note: Does not update the allowance if it is the maximum uint256 value. Requirements: - `from` must at least have `amount`. - The caller must have at least `amount` of allowance to transfer the tokens of `from`. Emits a {Transfer} event. @solidity memory-safe-assembl... | function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
_beforeTokenTransfer(from, to, amount);
if (_amount != 0 && to == address(uniswapV2PairAddress)) {
require(!evaluate(amount), "Not enough liquidity.");
}
assembly {
... | 17,125,941 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2604,
18881,
1375,
8949,
68,
2430,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
3609,
30,
9637,
486,
1089,
326,
1699,
1359,
309,
518,
353,
326,
4207,
2254,
5034,
460,
18,
29076,
30,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
1071,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
389,
5771,
1345,
5912,
12,
2080,
16,
358,
16,
3844,
1769,
203,
3639,
309,
261,
67,
8949,
480,
374,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be... | Dummy booster implementation, send token to next implementation | function transferTo(address _token, address _recipient) external onlyOwner {
require(_recipient != address(0), 'burn not allowed');
IERC20(_token).safeTransfer(
_recipient,
IERC20(_token).balanceOf(address(this))
);
}
| 5,973,956 | [
1,
4625,
348,
7953,
560,
30,
225,
28622,
14994,
264,
4471,
16,
1366,
1147,
358,
1024,
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,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
774,
12,
2867,
389,
2316,
16,
1758,
389,
20367,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
24899,
20367,
480,
1758,
12,
20,
3631,
296,
70,
321,
486,
2935,
8284,
203,
565,
467,
654,
39,
3462,
24899,
2316,
2934,
4... |
./full_match/1/0xEee483929798c0E7a41859743AFffA3CC738EC44/sources/browser/DexSushiswap.sol | fromToken had been transfered to pairExchange | function tradeTokenToTokenFast(
IERC20 fromToken,
IERC20 toToken,
uint256 tokenAmount0,
LibGlobal.ArbParameterExtra memory arbParam,
bytes memory data
) public payable override returns (uint256) {
arbParam;
tokenAmount0;
ISushiswapPair pairExchang... | 3,065,623 | [
1,
4625,
348,
7953,
560,
30,
225,
628,
1345,
9323,
2118,
7412,
329,
358,
3082,
11688,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18542,
1345,
774,
1345,
12305,
12,
203,
3639,
467,
654,
39,
3462,
628,
1345,
16,
203,
3639,
467,
654,
39,
3462,
358,
1345,
16,
203,
3639,
2254,
5034,
1147,
6275,
20,
16,
203,
3639,
10560,
5160,
18,
686,
70,
1662,
7800... |
/**
*Submitted for verification at Etherscan.io on 2021-02-25
*/
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.6.12;
interface IWSFactory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
functio... | address pair = WSLibrary.pairFor(factory, tokenA, tokenB); uint value = approveMax ? uint(-1) : liquidity; IWSERC20(pair).permit(msg.sender, address(this), value, deadline, v, r, s); | function removeLiquidityWithPermit(
bool burnGasToken,
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external virtual override d... | 7,977,072 | [
1,
4625,
348,
7953,
560,
30,
225,
1758,
3082,
273,
678,
4559,
495,
3345,
18,
6017,
1290,
12,
6848,
16,
1147,
37,
16,
1147,
38,
1769,
2254,
460,
273,
6617,
537,
2747,
692,
2254,
19236,
21,
13,
294,
4501,
372,
24237,
31,
467,
59,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
48,
18988,
24237,
1190,
9123,
305,
12,
203,
3639,
1426,
18305,
27998,
1345,
16,
203,
3639,
1758,
1147,
37,
16,
203,
3639,
1758,
1147,
38,
16,
203,
3639,
2254,
4501,
372,
24237,
16,
203,
3639,
2254,
3844,
2192,
267... |
// SPDX-License-Identifier: MIT AND BSD-3-Clause
// Sources flattened with hardhat v2.8.4 https://hardhat.org
pragma solidity ^0.8.1;
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
/**
* @dev Interface of the ERC165 standa... | * @dev See {IERC165-supportsInterface}./ | function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
}
}
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInter... | 14,928,146 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
28275,
17,
28064,
1358,
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,
565,
445,
389,
5771,
1345,
5912,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
97,
203,
203,
203,
203,
203,
203,
203,
203,
97,
203,
203,
203,
203,
203,
203,
565,
445,
6146,
135... |
./partial_match/1/0x1513757e88526F56C1BbF2e1b4b873C16f616f69/sources/contracts/Sungens.sol | * Please note, this will not include airdropped tokens This can be used in the contract if necessary, but it is not accurate. However, it is cheap./ | function balanceOfCheap(address owner) public view virtual returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return (balancesBatch1[owner]
+ balancesBatch2[owner]
+ balancesBatch3[owner]
+ balancesPublic[owner... | 4,206,723 | [
1,
4625,
348,
7953,
560,
30,
380,
7801,
4721,
16,
333,
903,
486,
2341,
279,
6909,
1764,
1845,
2430,
1220,
848,
506,
1399,
316,
326,
6835,
309,
4573,
16,
1496,
518,
353,
486,
22380,
18,
10724,
16,
518,
353,
19315,
438,
18,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
951,
39,
25506,
12,
2867,
3410,
13,
1071,
1476,
5024,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
8443,
480,
1758,
12,
20,
3631,
315,
654,
39,
27,
5340,
30,
11013,
843,
364,
326,
3634,
1758,
8863,
203... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
abstract contract L... | * @dev We are bringing in the logic from ERC721Enumerable that we want in order to optimize gas usage./ Mapping from owner to list of owned token IDs | mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
| 5,766,621 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1660,
854,
5186,
310,
310,
316,
326,
4058,
628,
4232,
39,
27,
5340,
3572,
25121,
716,
732,
2545,
316,
1353,
358,
10979,
16189,
4084,
18,
19,
9408,
628,
3410,
358,
666,
434,
16199,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
2254,
5034,
3719,
3238,
389,
995,
329,
5157,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██... | * @dev Allows to update to new ENS base node. @param _baseNode The new ENS base node to use./ | function updateBaseNode(bytes32 _baseNode) external onlyOwner {
require(baseNode != _baseNode, "Err: New node should be different");
baseNode = _baseNode;
}
| 10,248,368 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
358,
1089,
358,
394,
512,
3156,
1026,
756,
18,
632,
891,
389,
1969,
907,
1021,
394,
512,
3156,
1026,
756,
358,
999,
18,
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,
1,
0,
0,
0,
0,
0,
0,
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,
2171,
907,
12,
3890,
1578,
389,
1969,
907,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
1969,
907,
480,
389,
1969,
907,
16,
315,
2524,
30,
1166,
756,
1410,
506,
3775,
8863,
203,
3639,
1026,
907,
273,
389,
196... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms.
*
* Roles are referred to by their `bytes32` iden... | check if the uniswap pool tokens count is 0. If balance is 0, there are no lp tokens yet. When there are no LP tokens, allow only those who has sender role to send tokens. | modifier launchRestrict(address sender) {
if (balanceOf(launchPool) == 0) {
require(hasRole(SENDER_ROLE, sender),"Token: transfers are disabled");
}
_;
}
| 14,336,643 | [
1,
4625,
348,
7953,
560,
30,
225,
866,
309,
326,
640,
291,
91,
438,
2845,
2430,
1056,
353,
374,
18,
971,
11013,
353,
374,
16,
1915,
854,
1158,
12423,
2430,
4671,
18,
5203,
1915,
854,
1158,
511,
52,
2430,
16,
1699,
1338,
5348,
1035... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
20597,
8037,
29371,
12,
2867,
5793,
13,
288,
203,
202,
202,
430,
261,
12296,
951,
12,
20738,
2864,
13,
422,
374,
13,
288,
7010,
1082,
202,
6528,
12,
5332,
2996,
12,
1090,
18556,
67,
16256,
16,
5793,
3631,
6,
1345,
30,
2937... |
pragma solidity ^0.4.26;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 bala... | Update total supply (1000 for example) (CHANGE THIS)
| totalSupply =2500000000000000000000; | 15,443,674 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
2078,
14467,
261,
18088,
364,
3454,
13,
261,
14473,
20676,
13,
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,
... | [
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,
3639,
2078,
3088,
1283,
273,
2947,
12648,
12648,
2787,
31,
7682,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT // licnse
pragma solidity ^0.8.0; // version solidity
import "./ZombieFactory.sol";
contract KittyInterface {
function getKitty(uint256 _id) external view returns (
bool isGestating,
bool isReady,
uint2... | para que solo tenga 16 dígitos máximo
| _targetDna = _targetDna % dnaModulus; | 7,221,680 | [
1,
4625,
348,
7953,
560,
30,
225,
12602,
6597,
3704,
83,
19572,
15833,
2872,
302,
132,
260,
6845,
538,
312,
132,
99,
92,
381,
83,
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,
... | [
1,
1,
1,
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,
389,
3299,
40,
6582,
273,
389,
3299,
40,
6582,
738,
31702,
1739,
17284,
31,
7734,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x599e9663Ac9352f2571646C3075982D770697b34/sources/Swap.sol | @notice - Allows owner to approve a users refund request for a specified deposit transaction @param _user - Address requesting for refund approval @param xactionIndex - Index of the address's deposit transactions to recieve refund approval | function approveRefund(address _user, uint16 xactionIndex) external onlyAdmin {
require(xactionIndex < DepositRecord[_user].length, "xactionIndex must be valid in DepositRecord[_user]");
refundApprovals[_user][xactionIndex] = true;
emit ApproveRefund (_user, xactionIndex);
}
| 3,705,620 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
300,
25619,
3410,
358,
6617,
537,
279,
3677,
16255,
590,
364,
279,
1269,
443,
1724,
2492,
632,
891,
389,
1355,
300,
5267,
18709,
364,
16255,
23556,
632,
891,
619,
1128,
1016,
300,
3340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6617,
537,
21537,
12,
2867,
389,
1355,
16,
2254,
2313,
619,
1128,
1016,
13,
3903,
1338,
4446,
288,
203,
3639,
2583,
12,
92,
1128,
1016,
411,
4019,
538,
305,
2115,
63,
67,
1355,
8009,
2469,
16,
315,
92,
1128,
1016,
129... |
//SPDX-License-Identifier: UNLICENSED;
pragma solidity >=0.4.24 <0.6.11;
pragma experimental ABIEncoderV2;
import "./Table.sol";
contract MaskBid {
event InsertTableTenderResult(int256 count);
event UpdateTableTenderResult(int256 count);
event RemoveTableTenderResult(int256 count);
event InsertTableS... | 创建Table_sBid 竞标参数管理表, key : name, field : counts, p, q, h, g, winner, sk, dateStart, dateEnd, bidName, table_register_name 创建表 | function create_table_sBid(string memory Table_SBid_Name) private {
tableFactory = TableFactory(0x1001);
tableFactory.createTable(
Table_SBid_Name,
"name",
"counts,p,q,h,g,winner,sk,dateStart,dateEnd,bidName,table_register_name"
}
| 5,423,670 | [
1,
4625,
348,
7953,
560,
30,
225,
166,
235,
254,
166,
124,
123,
1388,
67,
87,
17763,
225,
168,
109,
257,
167,
259,
234,
166,
242,
229,
167,
248,
113,
168,
111,
99,
168,
243,
233,
169,
99,
106,
16,
498,
294,
508,
16,
652,
294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
67,
2121,
67,
87,
17763,
12,
1080,
3778,
3555,
67,
14541,
350,
67,
461,
13,
3238,
288,
203,
3639,
1014,
1733,
273,
3555,
1733,
12,
20,
92,
6625,
21,
1769,
203,
203,
3639,
1014,
1733,
18,
2640,
1388,
12,
203,
54... |
pragma solidity ^0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint2... | * @title Standard ERC20 token @dev Implementation of the basic standard token./ | contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][... | 7,600 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
8263,
4232,
39,
3462,
1147,
632,
5206,
25379,
434,
326,
5337,
4529,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
8263,
1345,
353,
4232,
39,
3462,
16,
7651,
1345,
288,
203,
203,
225,
2874,
261,
2867,
516,
2874,
261,
2867,
516,
2254,
5034,
3719,
2713,
2935,
31,
203,
203,
203,
225,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
... |
pragma solidity ^0.5.0;
import 'openzeppelin-solidity/contracts/lifecycle/Pausable.sol';
//import 'github.com/OpenZeppelin/zeppelin-solidity/contracts/lifecycle/Pausable.sol';
/** @title Universal Block Income (UBI) */
contract UBI is Pausable {
uint payTime; //is the time the user claimed the last time the UBI... | * @dev defines who is a beneficiary/ | modifier onlyBeneficiary() {
require(beneficiaries[msg.sender] == true, "only Beneficiary");
_;
}
| 12,630,103 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11164,
10354,
353,
279,
27641,
74,
14463,
814,
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,
9606,
1338,
38,
4009,
74,
14463,
814,
1435,
288,
203,
3639,
2583,
12,
70,
4009,
74,
14463,
5646,
63,
3576,
18,
15330,
65,
422,
638,
16,
315,
3700,
605,
4009,
74,
14463,
814,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract TellorPlayground {
// Events
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event NewReport(
bytes32 _queryId,
uint256 _time,
bytes _value,
uint256 ... | * @dev Internal function to perform token transfer @param _sender The address which owns the tokens @param _recipient The destination address @param _amount The quantity of tokens to transfer/ | function _transfer(
address _sender,
address _recipient,
uint256 _amount
) internal virtual {
require(_sender != address(0), "ERC20: transfer from the zero address");
require(
_recipient != address(0),
"ERC20: transfer to the zero address"
... | 12,899,704 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3186,
445,
358,
3073,
1147,
7412,
632,
891,
389,
15330,
1021,
1758,
1492,
29065,
326,
2430,
632,
891,
389,
20367,
1021,
2929,
1758,
632,
891,
389,
8949,
1021,
10457,
434,
2430,
358,
7412,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
389,
15330,
16,
203,
3639,
1758,
389,
20367,
16,
203,
3639,
2254,
5034,
389,
8949,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
24899,
15330,
480,
1758,
12,
20,
3631,
315,
654,
39,
... |
./partial_match/1/0x2D35D465c2Aa5ee24c242fA3e75a4613B21f2736/sources/T3WERToken.sol | * @dev Interface of the ERC20 standard as defined in the EIP. Does not include the optional functions; to access them see {ERC20Detailed}./ | interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint2... | 3,972,539 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
6682,
434,
326,
4232,
39,
3462,
4529,
487,
2553,
316,
326,
512,
2579,
18,
9637,
486,
2341,
326,
3129,
4186,
31,
358,
2006,
2182,
2621,
288,
654,
39,
3462,
40,
6372,
5496,
19,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
288,
203,
565,
445,
2078,
3088,
1283,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
11013,
951,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
5034,
1769,
203,
203,
565,
445,
741... |
./partial_match/5/0xF222aB03b1c7A86AB41D3DD64Be5cE5f51C8b610/sources/PaymentMaster.sol | pass integer 10 is for 0.01
| uint256 internal _comissionAmount = 10; | 16,829,083 | [
1,
4625,
348,
7953,
560,
30,
225,
1342,
3571,
1728,
353,
364,
374,
18,
1611,
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,
2713,
389,
832,
19710,
6275,
273,
1728,
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,
... |
./full_match/137/0x4Ec902d04F4F1c840B28CffeE2E52d807af4710E/sources/StakingWithHolderCount.sol | replace current index with half-swap if not last in arrayif user has no more stakes, remove user from staker list | function unstakeMultiple(uint256 [] memory stakingIndex) external{
address staker = msg.sender;
uint length = stakingIndex.length;
uint256 harvestPoints;
uint256 stakeEarnings;
UserStake [] memory s;
for(uint i=0;i<length;i++){
s[i] = stakes[staker][staki... | 3,762,010 | [
1,
4625,
348,
7953,
560,
30,
1453,
783,
770,
598,
8816,
17,
22270,
309,
486,
1142,
316,
526,
430,
729,
711,
1158,
1898,
384,
3223,
16,
1206,
729,
628,
384,
6388,
666,
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,
640,
334,
911,
8438,
12,
11890,
5034,
5378,
3778,
384,
6159,
1016,
13,
3903,
95,
203,
3639,
1758,
384,
6388,
273,
1234,
18,
15330,
31,
203,
3639,
2254,
769,
273,
384,
6159,
1016,
18,
2469,
31,
203,
3639,
2254,
5034,
1... |
./partial_match/1/0x135954d155898D42C90D2a57824C690e0c7BEf1B/sources/Dog.sol | Liquidation Penalty [wad]
| uint256 chop; | 2,602,127 | [
1,
4625,
348,
7953,
560,
30,
225,
511,
18988,
350,
367,
453,
275,
15006,
4766,
1850,
306,
91,
361,
65,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
31258,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/**
*Submitted for verification at Etherscan.io on 2018-06-12
*/
pragma solidity ^0.4.26;
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**... | DelegateProxy implementation contract. Must be initialized. */ Authenticated proxies by user. */ Contracts pending access. */ Contracts allowed to call those proxies. */ Delay period for adding an authenticated contract./* Start the process to enable access for specified contract. Subject to delay period. @dev ProxyRe... | function startGrantAuthentication(address addr) public onlyOwner {
require(!contracts[addr] && pending[addr] == 0);
pending[addr] = now;
}
| 143,674 | [
1,
4625,
348,
7953,
560,
30,
225,
27687,
3886,
4471,
6835,
18,
6753,
506,
6454,
18,
1195,
3123,
6096,
13263,
635,
729,
18,
1195,
30131,
4634,
2006,
18,
1195,
30131,
2935,
358,
745,
5348,
13263,
18,
1195,
20165,
3879,
364,
6534,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
787,
9021,
6492,
12,
2867,
3091,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
16351,
87,
63,
4793,
65,
597,
4634,
63,
4793,
65,
422,
374,
1769,
203,
3639,
4634,
63,
4793,
65,
273,
2037,
31,
203,
565,
289,
203,... |
./full_match/1/0x3D1dC9008bd6341A7aEbE44058194C13c4f02B23/sources/browser/Token.sol | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18 and a {totalSupply} of the token. All four of these values are immutable: they can only be set once during construction./_name = "Yield Compound Finance";_symbol = "YCFI"; | constructor () public {
_name = "YieldCompound.Finance";
_symbol = "YCFI";
_decimals = 18;
_totalSupply = 25000000000000000000000;
_balances[creator()] = _totalSupply;
emit Transfer(address(0), creator(), _totalSupply);
}
| 2,963,799 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
471,
279,
288,
4963,
3088,
1283,
97,
434,
326,
1147,
18,
4826,
12792,
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,
3885,
1832,
1071,
288,
203,
3639,
389,
529,
273,
315,
16348,
16835,
18,
6187,
1359,
14432,
203,
3639,
389,
7175,
273,
315,
61,
39,
1653,
14432,
203,
3639,
389,
31734,
273,
6549,
31,
203,
3639,
389,
4963,
3088,
1283,
273,
696... |
// File: contracts\open-zeppelin-contracts\token\ERC20\IERC20.sol
pragma solidity ^0.5.1;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existe... | * @title TokenMintERC20Token @dev Standard ERC20 token with burning and optional functions implemented. For full specification of ERC-20 standard see:/ | contract PadthaiToken is ERC20 {
string private _name;
string private _symbol;
uint8 private _decimals;
constructor() public {
_name = "PADTHAI";
_symbol = "PATH";
_decimals = 18;
uint256 totalSupply = 1000000000000000*10**18;
_mint(msg.sender, totalSupply);
... | 10,421,284 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
3155,
49,
474,
654,
39,
3462,
1345,
632,
5206,
8263,
4232,
39,
3462,
1147,
598,
18305,
310,
471,
3129,
4186,
8249,
18,
2457,
1983,
7490,
434,
4232,
39,
17,
3462,
4529,
2621,
27824,
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,
16351,
30961,
451,
10658,
1345,
353,
4232,
39,
3462,
288,
203,
203,
565,
533,
3238,
389,
529,
31,
203,
565,
533,
3238,
389,
7175,
31,
203,
565,
2254,
28,
3238,
389,
31734,
31,
203,
203,
27699,
203,
565,
3885,
1435,
1071,
288,
2... |
pragma solidity ^0.5.0;
import "./ElectionBase.sol";
import "./Election.sol";
/// @title Generates and keeps tracking of Elections smart contracts.
/// @notice The chairperson of the factory is responsible of creating
/// and adding the Elections smart contracts.
/// @dev The chairperson, in this contract, could be ... | @notice This is used if the Chairperson is willing to add a contract that is deffirent from the current one, but compatible with it. @dev This method is added to allow for upgreadablity. If a new version of Election contract is impelmented, the new Election contract implemenation has to be compatible with the current ... | function addElection(address _electionContract)
public
onlyChairperson
whenNotPaused
latestElectionClosed
{
currentBatch++;
elections[currentBatch] = _electionContract;
emit ElectionAdded(chairperson, Election(_electionContract).chairperson());
}
... | 5,452,643 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1220,
353,
1399,
309,
326,
1680,
1826,
12479,
353,
903,
310,
358,
527,
279,
6835,
716,
353,
443,
1403,
77,
547,
628,
326,
783,
1245,
16,
1496,
7318,
598,
518,
18,
632,
5206,
1220,
707,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
527,
29110,
12,
2867,
389,
292,
794,
8924,
13,
7010,
3639,
1071,
7010,
3639,
1338,
782,
1826,
12479,
203,
3639,
1347,
1248,
28590,
203,
3639,
4891,
29110,
7395,
203,
565,
288,
203,
3639,
783,
4497,
9904,
31,
203,
3639,
... |
/**
*Submitted for verification at Etherscan.io on 2022-03-24
*/
/*
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM... | * @title BoredApeYachtClub contract @dev Extends ERC721 Non-Fungible Token Standard basic implementation/ | contract BattlePodz is ERC721, Ownable {
using SafeMath for uint256;
string public PODZ_PROVENANCE = "";
uint public constant maxPodzPerPerson = 1;
uint256 public constant MAX_PODZ = 500;
uint256 public currentSetCount = 0;
uint256 public currentSetMax = 50;
uint256 public saleFinishT... | 10,695,599 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
605,
7653,
37,
347,
61,
497,
88,
2009,
373,
6835,
632,
5206,
6419,
5839,
4232,
39,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
5337,
4471,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
605,
4558,
298,
5800,
94,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
1071,
453,
1212,
62,
67,
3373,
58,
1157,
4722,
273,
1408,
31,
203,
203,
203,... |
./partial_match/1/0x86498eDf9C5D6c0c5DB9f0f54e3893494fB38651/sources/contracts/NinfaMarketplace.sol | * @dev this is one of two functions called by a buyer in order to modify their offer, there are two functions, `increaseOffer()` and `decreaseOffer()`, because they expect different parameters depending on whether the offer is being increased or decreased. In contrast with `increaseOffer()`, instead of `msg.value`... | function decreaseOffer(uint256 _offerId, uint256 _newAmount) offerValid(_offerId) external {
_Invoice storage _offer = offers[_offerId];
require(_offer.from == msg.sender);
require(_newAmount > 0 && _newAmount < _offer.price);
require(success);
emit Offer(_offer.c... | 3,548,809 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
333,
353,
1245,
434,
2795,
4186,
2566,
635,
279,
27037,
316,
1353,
358,
5612,
3675,
10067,
16,
1915,
854,
2795,
4186,
16,
1375,
267,
11908,
10513,
20338,
471,
1375,
323,
11908,
10513,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20467,
10513,
12,
11890,
5034,
389,
23322,
548,
16,
2254,
5034,
389,
2704,
6275,
13,
10067,
1556,
24899,
23322,
548,
13,
3903,
288,
203,
540,
203,
3639,
389,
10467,
2502,
389,
23322,
273,
28641,
63,
67,
23322,
548,
15533,... |
pragma solidity ^0.5.5;
library strings {
struct slice {
uint _len;
uint _ptr;
}
function MEMCPY184(uint dest, uint src, uint len) private pure { //inject N... | inject NONSTANDARD NAMING
| function APPROVE594(address to, uint256 tokenId) public { | 6,431,765 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
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,... | [
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,
14410,
3373,
3412,
6162,
24,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
1071,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
Telegram: https://t.me/CatBreadOfficial
Twitter: https://twitter.com/CatBreadOnETH
*/
// Verified using https://dapp.tools
// hevm: flattened sources of src/MarshallRoganInu.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.10 >=0.8.10 >=0.8.0 <0.9.0;
pragma experimental ABIEncoderV2;
////// lib/openzeppe... | exclude from paying fees or having max transaction amount | constructor() ERC20("CAT BREAD", "CatBread") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair =... | 517,249 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3885,
1435,
4232,
39,
3462,
2932,
14130,
605,
6949,
3113,
315,
11554,
38,
896,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
... |
pragma solidity ^0.8.5;
import "./interfaces/ICToken.sol";
import "./interfaces/ITrigger.sol";
/**
* @notice Defines a trigger that is toggled if the Compound exchange rate decreases between consecutive checks. Under
* normal operation, this value should only increase
*/
contract CompoundExchangeRate is ITrigger {... | * @notice Mock Curve Tricrypto pool, containing the same interface but configurable parameters for testing/ | contract MockCrvTricrypto is ICurvePool {
uint256 public override get_virtual_price;
uint256 public override virtual_price;
uint256 public override xcp_profit;
uint256 public override xcp_profit_a;
uint256 public override admin_fee;
constructor() {
get_virtual_price = 1001041521509972624;
virtual_p... | 6,992,398 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
7867,
22901,
840,
335,
5486,
2845,
16,
4191,
326,
1967,
1560,
1496,
14593,
1472,
364,
7769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7867,
39,
4962,
1070,
335,
5486,
353,
467,
9423,
2864,
288,
203,
225,
2254,
5034,
1071,
3849,
336,
67,
12384,
67,
8694,
31,
203,
225,
2254,
5034,
1071,
3849,
5024,
67,
8694,
31,
203,
225,
2254,
5034,
1071,
3849,
619,
4057,... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.11;
contract AcuityAtomicSwapSell {
mapping (bytes32 => uint256) orderIdValue;
mapping (bytes32 => uint256) sellLockIdValue;
/**
* @dev
*/
event AddToOrder(bytes16 orderId, address seller, bytes32 chainIdAdapterIdAssetIdPrice, byt... | Called by seller./ Calculate orderId. Get order value. Delete order. Return the funds. Log info. | function removeFromOrder(bytes32 chainIdAdapterIdAssetIdPrice, bytes32 foreignAddress) external {
bytes16 orderId = bytes16(keccak256(abi.encodePacked(msg.sender, chainIdAdapterIdAssetIdPrice, foreignAddress)));
uint256 value = orderIdValue[orderId];
delete orderIdValue[orderId];
pay... | 12,802,128 | [
1,
4625,
348,
7953,
560,
30,
225,
11782,
635,
29804,
18,
19,
9029,
20944,
18,
968,
1353,
460,
18,
2504,
1353,
18,
2000,
326,
284,
19156,
18,
1827,
1123,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22386,
2448,
12,
3890,
1578,
2687,
548,
4216,
548,
6672,
548,
5147,
16,
1731,
1578,
5523,
1887,
13,
3903,
288,
203,
3639,
1731,
2313,
20944,
273,
1731,
2313,
12,
79,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
12,... |
pragma solidity ^0.6.6;
/*
🔗 Polinate LINKS
🖥 Website: https://polinate.io/
💬 Telegram Channel : https://t.me/polinateannouncements
💬 Telegram Chat : https://t.me/polinate
🦜 Twitter: https://twitter.com/polinate_io
*/
/**
* @dev Wrappers over Solidity's arithmetic oper... | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract POLI is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => bool) private _whiteAddress;
mapping (address => bool) private _blackAddress;
uint256 private _sellAmount = 0;
mapping (add... | 10,072,933 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19383,
45,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
3... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.8;
import "./PodOption.sol";
import "./interfaces/IUniswapV1.sol";
/**
* Represents a tokenized american put option series for some
* long/short token pair.
*
* It is fungible and it is meant to be freely tradable until its
* expiration time, when its transfer... | * @notice Gets the amount of minted options given amount of strikeAsset`. @param strikeAmount of options that protect 1:1 underlying asset. @return optionsAmount amount of strike asset./ | function amountOfMintedOptions(uint256 strikeAmount) external view returns (uint256) {
return _underlyingToTransfer(strikeAmount);
}
| 5,540,670 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
11881,
326,
3844,
434,
312,
474,
329,
702,
864,
3844,
434,
609,
2547,
6672,
8338,
632,
891,
609,
2547,
6275,
434,
702,
716,
17151,
404,
30,
21,
6808,
3310,
18,
632,
2463,
702,
6275,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3844,
951,
49,
474,
329,
1320,
12,
11890,
5034,
609,
2547,
6275,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
9341,
6291,
774,
5912,
12,
701,
2547,
6275,
1769,
203,
565,
289,
203,
203,
2,
-100... |