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 |
|---|---|---|---|---|---|---|
/**
*Submitted for verification at Etherscan.io on 2021-09-09
*/
// Sources flattened with hardhat v2.6.2 https://hardhat.org
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers ca... | @title Base64 @author Brecht Devos - <[email protected]> @notice Provides a function for encoding some bytes in base64 | library Base64 {
string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
function encode(bytes memory data) internal pure returns (string memory) {
if (data.length == 0) return '';
string memory table = TABLE;
uint256 encodedLen = 4 * ((dat... | 2,417,392 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
3360,
1105,
632,
4161,
605,
266,
343,
88,
9562,
538,
300,
411,
63,
3652,
131,
259,
1117,
65,
34,
632,
20392,
28805,
279,
445,
364,
2688,
2690,
1731,
316,
1026,
1105,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
3360,
1105,
288,
203,
565,
533,
2713,
5381,
7567,
273,
296,
26904,
12904,
16715,
45,
19474,
17063,
3417,
28386,
10637,
20147,
59,
23479,
28953,
17680,
8302,
16391,
13607,
556,
85,
16114,
30900,
17177,
26684,
23447,
31,
203,
203,... |
pragma solidity ^0.4.22;
//Xinle Yang
//small contract for people to bet on specific item.
import "./WorldcupFun.sol";
contract Champion {
address public WorldcupFunAddress;
uint256 public TeamNumber;
constructor(address wf, uint256 teamNumber) public {
WorldcupFunAddress = wf;
TeamNumbe... | TODONeed to make sure this function call is not expensive`0) setup WorldcupFunContract1) send all money to WorldcupFun address, record the sender address and betting information to WorldcupFun | function() public payable {
WorldcupFun WorldcupFunContract = WorldcupFun(WorldcupFunAddress);
if (!WorldcupFunContract.ChampionBet.value(msg.value)(msg.sender, TeamNumber)) revert();
}
| 13,004,669 | [
1,
4625,
348,
7953,
560,
30,
399,
1212,
673,
73,
329,
358,
1221,
3071,
333,
445,
745,
353,
486,
19326,
68,
20,
13,
3875,
21820,
71,
416,
22783,
8924,
21,
13,
1366,
777,
15601,
358,
21820,
71,
416,
22783,
1758,
16,
1409,
326,
5793,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1435,
1071,
8843,
429,
288,
203,
3639,
21820,
71,
416,
22783,
21820,
71,
416,
22783,
8924,
273,
21820,
71,
416,
22783,
12,
18071,
71,
416,
22783,
1887,
1769,
203,
3639,
309,
16051,
18071,
71,
416,
22783,
8924,
18,
782,
... |
pragma solidity 0.4.24;
// File: zeppelin-solidity/contracts/ownership/Ownable.sol
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public... | can only add once.
| require(totalTokensLocked[beneficiary] == 0 && beneficiary != address(0)); | 2,535,118 | [
1,
4625,
348,
7953,
560,
30,
225,
848,
1338,
527,
3647,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4963,
5157,
8966,
63,
70,
4009,
74,
14463,
814,
65,
422,
374,
597,
27641,
74,
14463,
814,
480,
1758,
12,
20,
10019,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/1/0x7E8e384b57DCf4096bAa3221086f1236fC616bc6/sources/src/core/oracles/LSETHAggregator.sol | solhint-disable-next-line reason-string | function initialize(address _owner, string memory _description, uint256 _maxDelay) external initializer {
if (_owner == address(0)) revert();
_transferOwnership(_owner);
description = _description;
maxDelay = _maxDelay;
}
Override Upgrade Permission
| 16,538,639 | [
1,
4625,
348,
7953,
560,
30,
225,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
3971,
17,
1080,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
12,
2867,
389,
8443,
16,
533,
3778,
389,
3384,
16,
2254,
5034,
389,
1896,
6763,
13,
3903,
12562,
288,
203,
3639,
309,
261,
67,
8443,
422,
1758,
12,
20,
3719,
15226,
5621,
203,
203,
3639,
389,
13866,
5460,
12565,
... |
// SPDX-License-Identifier: MIT
// Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/53516bc555a454862470e7860a9b5254db4d00f5/contracts/token/ERC20/ERC20Permit.sol
pragma solidity ^0.8.0;
import "./ERC20.sol";
import "./IERC2612.sol";
/**
* @dev Extension of {ERC20} that allows token holders t... | * @dev Extension of {ERC20} that allows token holders to use their tokens without sending any transactions by setting {IERC20-allowance} with a signature using the {permit} method, and then spend them via {IERC20-transferFrom}. The {permit} signature mechanism conforms to the {IERC2612} interface./ | abstract contract ERC20Permit is ERC20, IERC2612 {
mapping (address => uint256) public override nonces;
bytes32 public immutable PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
bytes32 private immutable _DOMAIN_SEPARATOR;
uint256 public... | 12,534,717 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10021,
434,
288,
654,
39,
3462,
97,
716,
5360,
1147,
366,
4665,
358,
999,
3675,
2430,
2887,
5431,
1281,
8938,
635,
3637,
288,
45,
654,
39,
3462,
17,
5965,
1359,
97,
598,
279,
3372,
1450... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
3462,
9123,
305,
353,
4232,
39,
3462,
16,
467,
654,
39,
5558,
2138,
288,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
1071,
3849,
1661,
764,
31,
203,
203,
565,
1731,
1578,
1071,
11732,
10950,
6068,
67,
... |
pragma solidity ^0.6.12;
// SPDX-License-Identifier: Unlicensed
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) cal... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | contract Ownable is Context {
address private _owner;
address private _previousOwner;
uint256 private _lockTime;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
... | 512,380 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
1758,
3238,
389,
11515,
5541,
31,
203,
565,
2254,
5034,
3238,
389,
739,
950,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808... |
pragma solidity 0.4.19;
// The frontend for this smart contract is a dApp hosted at
// https://hire.kohweijie.com
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable... | The amount to be donated must be more than 0, or this contract is buggy | assert(_amount > 0);
| 10,624,761 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3844,
358,
506,
2727,
690,
1297,
506,
1898,
2353,
374,
16,
578,
333,
6835,
353,
324,
5696,
93,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1815,
24899,
8949,
405,
374,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./partial_match/4/0xCbC51FE2697d05C120859FE4D32704913f1B4D43/sources/src/contracts/ownership/CustomInitiallyOwnable.sol | * @title Ownable contract with custom intial owner @author Gnosis Developers @dev A contract extending Openzeppelin's Ownable contract that allows to specify the initial owner in the contructor instead of using the message sender./ | abstract contract CustomInitiallyOwnable is Ownable {
pragma solidity ^0.7.5;
constructor(address initialOwner) {
transferOwnership(initialOwner);
}
}
| 8,506,683 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14223,
6914,
6835,
598,
1679,
509,
649,
3410,
632,
4161,
611,
18050,
291,
1505,
8250,
414,
632,
5206,
432,
6835,
27147,
3502,
94,
881,
84,
292,
267,
1807,
14223,
6914,
6835,
716,
5360,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
17801,
6835,
6082,
2570,
6261,
5460,
429,
353,
14223,
6914,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
27,
18,
25,
31,
203,
565,
3885,
12,
2867,
2172,
5541,
13,
288,
203,
3639,
7412,
5460,
12565,
12,
6769,
5541,
1769,
203,
... |
pragma solidity ^0.5.0;
/** @title Supply Chain. */
contract SupplyChain {
address payable owner;
bool public contractPaused = false;
uint public skuCount;
mapping (uint => Item ) public items;
enum State {
ForSale,
Sold
}
struct Item {
string name;
uint sku;
uint price;
stri... | *@dev verifies that the buyer has payed enough Etherto complete the transaction / | modifier paidEnough(uint _price) { require(msg.value >= _price, "Not enough Ether."); _;}
| 12,961,919 | [
1,
4625,
348,
7953,
560,
30,
380,
36,
5206,
20761,
716,
326,
27037,
711,
8843,
329,
7304,
512,
1136,
869,
3912,
326,
2492,
225,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
225,
9606,
30591,
664,
4966,
12,
11890,
389,
8694,
13,
288,
2583,
12,
3576,
18,
1132,
1545,
389,
8694,
16,
315,
1248,
7304,
512,
1136,
1199,
1769,
389,
31,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xD334739B8C94a4B8Ae9ea468Aea97C8260187D58/sources/chfry-mainnet/Oven.sol | @notice Operation notice! @notice The assets((DAI/USDT/USDC)) total value should be equal or more than user's fryUSD. @notice Require upgradeAmount <= DAI/USDT/USDC - fryUSD | function upgrade() external requireImpl {
require(
upgradeAddress != address(0) && upgradeAmount > 0 && block.timestamp > upgradeTime && upgradeTime > 0,
'!upgrade'
);
token.safeApprove(upgradeAddress, upgradeAmount);
Oven(upgradeAddress).distribute(address(this), upgradeAmount);
upgradeAddress = addre... | 4,978,075 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
4189,
11690,
5,
632,
20392,
1021,
7176,
12443,
9793,
45,
19,
3378,
9081,
19,
3378,
5528,
3719,
2078,
460,
1410,
506,
3959,
578,
1898,
2353,
729,
1807,
284,
1176,
3378,
40,
18,
632,
20392... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
8400,
1435,
3903,
2583,
2828,
288,
203,
202,
202,
6528,
12,
203,
1082,
202,
15097,
1887,
480,
1758,
12,
20,
13,
597,
8400,
6275,
405,
374,
597,
1203,
18,
5508,
405,
8400,
950,
597,
8400,
950,
405,
374,
16,
203,
1082,
... |
pragma solidity ^0.4.25;
contract FundEIF {
mapping(address => uint256) public receivedFunds; //doesn't include interest returned but allows other addresses to send funds
uint256 public totalSent; //includes reinvested interest + totalOtherReceived outside PoEIF
uint256 public to... | includes reinvested interest + totalOtherReceived outside PoEIF
| uint256 public totalSent; | 2,542,557 | [
1,
4625,
348,
7953,
560,
30,
6104,
283,
5768,
3149,
16513,
397,
2078,
8290,
8872,
8220,
453,
83,
41,
5501,
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,... | [
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,
225,
2254,
5034,
1071,
2078,
7828,
31,
12900,
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... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
interface IHarvest {
function setHarvestRewardVault(address _harvestRewardVault) external;
function setHarvestRewardPool(address _harvestRewardPool) external;
function setHarvestPoolToken(address _harvestfToken) external;
function setFarmToken(a... | ----------------------------------------------------------------------------------------------------------------------------------------------------- Events ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | contract HarvestSCBase is StrategyBase, HarvestBase {
event RewardsExchanged(
address indexed user,
uint256 rewardsAmount,
uint256 obtainedAmount
);
event Deposit(
address indexed user,
address indexed origin,
uint256 amountToken,
uint256 amountfToke... | 11,767,030 | [
1,
4625,
348,
7953,
560,
30,
8879,
28253,
553,
9043,
8879,
5802,
2443,
17,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
670,
297,
26923,
2312,
2171,
353,
19736,
2171,
16,
670,
297,
26923,
2171,
288,
203,
203,
565,
871,
534,
359,
14727,
424,
6703,
12,
203,
3639,
1758,
8808,
729,
16,
203,
3639,
2254,
5034,
283,
6397,
6275,
16,
203,
3639,
2254... |
./partial_match/137/0x9a234B3899CAf15413987BF94e19539ccd43A9C1/sources/Swaps.sol | id whiteAddr id owner id baseAddr id quoteAddr id expire id swapped? id cancelled? id base/quote limit id base/quote raised id base/quote investors id ... | contract Swaps is Ownable, ISwaps, ReentrancyGuard {
using SafeMath for uint;
uint public MAX_INVESTORS = 10;
uint256 public feeAmount;
address payable public feeAddress;
Vault public vault;
mapping(bytes32 => address) public baseOnlyInvestor;
mapping(bytes32 => address) public owners;
... | 3,522,120 | [
1,
4625,
348,
7953,
560,
30,
1377,
612,
1850,
9578,
3178,
377,
612,
1850,
3410,
377,
612,
1850,
1026,
3178,
377,
612,
1850,
3862,
3178,
377,
612,
1850,
6930,
377,
612,
1850,
7720,
1845,
35,
377,
612,
1850,
13927,
35,
1377,
612,
7734... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5434,
6679,
353,
14223,
6914,
16,
4437,
91,
6679,
16,
868,
8230,
12514,
16709,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
31,
203,
203,
565,
2254,
1071,
4552,
67,
706,
3412,
882,
14006,
273,
1728,
31,
203,
203,
565,
225... |
// File: contracts/utils/math/Math.sol
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint... | * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. _Available since v3.4._/ | function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
| 12,593,409 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
10022,
434,
3739,
10415,
2795,
9088,
12321,
16,
598,
279,
16536,
635,
3634,
2982,
18,
389,
5268,
3241,
331,
23,
18,
24,
6315,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
775,
1739,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
6430,
16,
2254,
5034,
13,
288,
203,
3639,
203,
5411,
309,
261,
70,
422,
374,
13,
327,
261,
5743,
16,
374,
1769,
203,
5411,
327,
261,
... |
/**
* SPDX-License-Identifier: UNLICENSED
*/
pragma solidity =0.6.10;
pragma experimental ABIEncoderV2;
// File: contracts/packages/oz/SafeMath.sol
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily res... | * @notice minimum between two signed integers, a and b @param a FixedPointInt @param b FixedPointInt @return min of two signed integers/ | function min(FixedPointInt memory a, FixedPointInt memory b) internal pure returns (FixedPointInt memory) {
return a.value < b.value ? a : b;
}
| 1,551,660 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
5224,
3086,
2795,
6726,
12321,
16,
279,
471,
324,
632,
891,
279,
15038,
2148,
1702,
632,
891,
324,
15038,
2148,
1702,
632,
2463,
1131,
434,
2795,
6726,
12321,
19,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1131,
12,
7505,
2148,
1702,
3778,
279,
16,
15038,
2148,
1702,
3778,
324,
13,
2713,
16618,
1135,
261,
7505,
2148,
1702,
3778,
13,
288,
203,
3639,
327,
279,
18,
1132,
411,
324,
18,
1132,
692,
279,
294,
324,
31,
203,
565... |
./full_match/1/0x70832E3e9a3268Fe9A5a47803e945fC34280B976/sources/src/Registry.sol | ============================================= ADDRESS CONFIG ============================================= | contract Registry is Ownable {
event AddressChanged(uint256 indexed id, address oldAddress, address newAddress);
error Registry__ContractNotRegistered(uint256 id);
event DepositorOnBehalfChanged(address depositor, bool state);
uint256 public nextId;
mapping(uint256 => address) public getAddress... | 3,223,980 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
4428,
1432,
12275,
11689,
10203,
9128,
422,
4428,
1432,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
5438,
353,
14223,
6914,
288,
203,
203,
565,
871,
5267,
5033,
12,
11890,
5034,
8808,
612,
16,
1758,
1592,
1887,
16,
1758,
394,
1887,
1769,
203,
203,
565,
555,
5438,
972,
8924,
1248,
10868,
12,
11890,
5034,
612,
1769,
203,
2... |
// File: @openzeppelin/contracts/GSN/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be... | hope and cpdAllow on vat for collateralManager's addressRegister vault with collateral Manager | function createVault(bytes32 _collType, address _cm) internal returns (uint256 vaultId) {
ManagerLike manager = ManagerLike(ap.mcdManager());
vaultId = manager.open(_collType, address(this));
manager.cdpAllow(vaultId, address(this), 1);
VatLike(manager.vat()).hope(_cm);
mana... | 10,034,360 | [
1,
4625,
348,
7953,
560,
30,
27370,
471,
29660,
7009,
603,
17359,
364,
4508,
2045,
287,
1318,
1807,
1758,
3996,
9229,
598,
4508,
2045,
287,
8558,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
752,
12003,
12,
3890,
1578,
389,
12910,
559,
16,
1758,
389,
7670,
13,
2713,
1135,
261,
11890,
5034,
9229,
548,
13,
288,
203,
3639,
8558,
8804,
3301,
273,
8558,
8804,
12,
438,
18,
81,
4315,
1318,
10663,
203,
3639,
9229,
... |
./full_match/10/0xfc71bc5C15cA6C76d5890A48B49438380B680838/sources/contracts/oracle/OPrintOracle.sol | ensure that there's liquidity in the pair
| require(reserve0 != 0 && reserve1 != 0, 'OPrintOracle: NO_RESERVES'); | 3,783,047 | [
1,
4625,
348,
7953,
560,
30,
225,
3387,
716,
1915,
1807,
4501,
372,
24237,
316,
326,
3082,
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,
... | [
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,
3639,
2583,
12,
455,
6527,
20,
480,
374,
597,
20501,
21,
480,
374,
16,
296,
51,
5108,
23601,
30,
3741,
67,
862,
2123,
3412,
55,
8284,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0x1275F5fdCD2e094f27DbD513d90Da1AabAd76710/sources/PEPEWHALE.sol | Anti-bot and anti-whale mappings and variables exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract PEPEWHALE is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
bool private swapping;
bool public limitsInEffect = true;
bool public tradingActive = false;
bool public swapEnabled = false;
address private... | 3,591,296 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
279,
5859,
13667,
312,
6388,
5574,
18,
5502,
7412,
380,
869,
14,
4259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
16628,
1423,
12557,
37,
900,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
640,
291,
91,
438,
58,
22,
8259... |
./partial_match/1/0xDFF1091149bE811aDB2e5FE0fB48DBa8DcE5a755/sources/contracts/protocols/mainnet/compound_iii/helpers.sol | integer representing the decimal value scaled up by 10 ^ 18.integer representing the decimal value scaled up by 10 ^ 18. | struct AssetData {
Token token;
address priceFeed;
uint256 price;
uint64 borrowCollateralFactor;
uint64 liquidateCollateralFactor;
uint64 liquidationFactor;
uint128 supplyCapInWei;
uint128 totalCollateralInWei;
| 4,463,210 | [
1,
4625,
348,
7953,
560,
30,
3571,
5123,
326,
6970,
460,
12304,
731,
635,
1728,
3602,
6549,
18,
7745,
5123,
326,
6970,
460,
12304,
731,
635,
1728,
3602,
6549,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10494,
751,
288,
203,
3639,
3155,
1147,
31,
203,
3639,
1758,
6205,
8141,
31,
203,
3639,
2254,
5034,
6205,
31,
203,
3639,
2254,
1105,
29759,
13535,
2045,
287,
6837,
31,
203,
3639,
2254,
1105,
4501,
26595,
340,
13535,
2045... |
./full_match/5/0xcd3EAf02914169fE4D6cBf19Ce6494e2c0160E40/sources/contracts/Contract.sol | * @dev Ends the election and retrieves the winner(s) of the election. @return winners The array of candidate IDs who received the highest votes./ Find the maximum number of votes | function endElection() public onlyAdmin returns (uint[] memory winners) {
require(isElectionOpen, "Election is not open");
require(block.timestamp > electionEndTime, "Election is still ongoing");
uint maxVotes = 0;
uint winnerCount = 0;
for (uint i = 1; i <= candidateCount;... | 1,871,886 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1374,
2377,
326,
25526,
471,
9023,
326,
5657,
1224,
12,
87,
13,
434,
326,
25526,
18,
632,
2463,
5657,
9646,
1021,
526,
434,
5500,
7115,
10354,
5079,
326,
9742,
19588,
18,
19,
4163,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
679,
29110,
1435,
1071,
1338,
4446,
1135,
261,
11890,
8526,
3778,
5657,
9646,
13,
288,
203,
3639,
2583,
12,
291,
29110,
3678,
16,
315,
29110,
353,
486,
1696,
8863,
203,
3639,
2583,
12,
2629,
18,
5508,
405,
25526,
25255,
... |
// File: @openzeppelin\contracts\utils\Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally avai... | @notice Set the max tx. Must be no less than 0.1% of supply. @param newNum new number to set, without the 18 zeroes. | function updateMaxTxnAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set maxTransactionAmount lower than 0.1%"
);
maxTransactionAmount = newNum * (10**18);
}
| 10,327,749 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1000,
326,
943,
2229,
18,
6753,
506,
1158,
5242,
2353,
374,
18,
21,
9,
434,
14467,
18,
632,
891,
394,
2578,
394,
1300,
358,
444,
16,
2887,
326,
6549,
3634,
281,
18,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
2747,
13789,
6275,
12,
11890,
5034,
394,
2578,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
203,
5411,
394,
2578,
1545,
14015,
4963,
3088,
1283,
1435,
380,
404,
13,
342,
4336,
13,
342,
404,
73,
2643,
16,
203,
... |
pragma solidity ^0.4.18;
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original `owner` of the contract to the sender
* account.
*/
function Ownable() public {
owner = msg.sender;
}
/**
* @dev Throws if called by any account other t... | update the bookkeeper
| bookKeeper = bookKeeper.sub(amount); | 12,654,378 | [
1,
4625,
348,
7953,
560,
30,
1089,
326,
6978,
79,
9868,
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,
6978,
17891,
273,
6978,
17891,
18,
1717,
12,
8949,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.6;
... | inject NONSTANDARD NAMING
| function DECIMALS39() public view returns (uint8) { | 12,732,319 | [
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,
25429,
55,
5520,
1435,
1071,
1476,
1135,
261,
11890,
28,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0x640216Ea5b2aC018b1d1FDB3F0a206F652C92574/sources/contracts/CommunityRegistry/CommunityRegistry.sol | * @dev Executes before a token transfer. @param from The address transferring the token. @param to The address receiving the token. @param startTokenId The starting token ID of the transfer. @param quantity The quantity of tokens being transferred./ | function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual override {
for (uint256 i = 0; i < quantity; i++) {
uint256 tokenId = startTokenId + i;
if (from == address(0)) continue;
... | 9,808,383 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3889,
993,
1865,
279,
1147,
7412,
18,
632,
891,
628,
1021,
1758,
906,
74,
20245,
326,
1147,
18,
632,
891,
358,
1021,
1758,
15847,
326,
1147,
18,
632,
891,
787,
1345,
548,
1021,
5023,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
565,
445,
389,
5771,
1345,
1429,
18881,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
787,
1345,
548,
16,
203,
3639,
2254,
5034,
10457,
203,
565,
262,
2713,
5024,
3849,
288,
203,
3639,
364,
261,
... |
./full_match/9001/0x8773017C81C2Ee39dF8A893AC7ce0E433B1d338D/sources/contract-8b3a68c058.sol | @custom:security-contact zzz@idontexist | contract Catnip is ERC20, ERC20Burnable, ERC20Snapshot, Ownable, ERC20Permit, ERC20Votes, ERC20FlashMint {
pragma solidity ^0.8.4;
constructor() ERC20("Catnip", "MEOW") ERC20Permit("Catnip") {
_mint(msg.sender, 777777 * 10 ** decimals());
}
function snapshot() public onlyOwner {
_snapshot()... | 11,533,987 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
3662,
30,
7462,
17,
8994,
998,
6378,
36,
350,
1580,
7398,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
385,
270,
82,
625,
353,
4232,
39,
3462,
16,
4232,
39,
3462,
38,
321,
429,
16,
4232,
39,
3462,
4568,
16,
14223,
6914,
16,
4232,
39,
3462,
9123,
305,
16,
4232,
39,
3462,
29637,
16,
4232,
39,
3462,
11353,
49,
474,
288,
20... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
import "../lib/SafeMath.sol";
import "../eth/ERC20MintToken.sol";
/**
* @title Crowdsale
* @dev Crowdsale is a base contract for managing a token crowdsale.
* Crowdsales have a start and end timestamps, where investors can make
* token purchases and... | fallback function can be used to buy tokens | receive() external payable {
buyTokens(msg.sender);
}
| 12,579,362 | [
1,
4625,
348,
7953,
560,
30,
225,
5922,
445,
848,
506,
1399,
358,
30143,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
6798,
1435,
3903,
8843,
429,
288,
203,
565,
30143,
5157,
12,
3576,
18,
15330,
1769,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./partial_match/1/0xcC46b655d819382c2D76b64d7395772e1D64b569/sources/Evorium.sol | set as development wallet
| developmentWallet = address(0x4DCD5fa16cA819e49F8789C8ce59730c35c7121d); | 4,084,134 | [
1,
4625,
348,
7953,
560,
30,
225,
444,
487,
17772,
9230,
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,
17772,
16936,
273,
1758,
12,
20,
92,
24,
5528,
40,
25,
507,
2313,
71,
37,
28,
3657,
73,
7616,
42,
11035,
6675,
39,
28,
311,
6162,
27,
5082,
71,
4763,
71,
27,
26009,
72,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x3B3812BB9f6151bEb6fa10783F1ae848a77a0d46/sources/CollateralErc20.sol | scale down before transferring back. | function close(uint id) external {
uint collateral = closeInternal(msg.sender, id);
uint scaledCollateral = scaleDownCollateral(collateral);
IERC20(underlyingContract).transfer(msg.sender, scaledCollateral);
}
| 2,762,252 | [
1,
4625,
348,
7953,
560,
30,
225,
3159,
2588,
1865,
906,
74,
20245,
1473,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
12,
11890,
612,
13,
3903,
288,
203,
3639,
2254,
4508,
2045,
287,
273,
1746,
3061,
12,
3576,
18,
15330,
16,
612,
1769,
203,
203,
3639,
2254,
12304,
13535,
2045,
287,
273,
3159,
4164,
13535,
2045,
287,
12,
12910,
20... |
./partial_match/1/0x6b2C42D2Aa4CB2D859CF7a88546dB12ae294F303/sources/contracts/libraries/DesynSafeMath.sol | * @notice Safe unsigned subtraction @param a - first operand @param b - second operand @dev Do a signed subtraction, and check that it produces a positive value (i.e., a - b is valid if b <= a) @return - a - b; throws if underflow/ | function bsub(uint a, uint b) internal pure returns (uint) {
(uint c, bool negativeResult) = bsubSign(a, b);
require(!negativeResult, "ERR_SUB_UNDERFLOW");
return c;
}
| 2,714,673 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
14060,
9088,
720,
25693,
632,
891,
279,
300,
1122,
9886,
632,
891,
324,
300,
2205,
9886,
632,
5206,
2256,
279,
6726,
720,
25693,
16,
471,
866,
716,
518,
15505,
279,
6895,
460,
1377,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
324,
1717,
12,
11890,
279,
16,
2254,
324,
13,
2713,
16618,
1135,
261,
11890,
13,
288,
203,
3639,
261,
11890,
276,
16,
1426,
6092,
1253,
13,
273,
324,
1717,
2766,
12,
69,
16,
324,
1769,
203,
3639,
2583,
12,
5,
13258,
... |
./full_match/1/0x959eE2fC3bCE6A0f008deaBCAb5BF30A809d94a1/sources/contracts/UniswapPriceOracle.sol | Check caller = admin | function _addPool(address poolFactory_) public returns (uint) {
if (msg.sender != getMyAdmin()) {
return fail(Error.UNAUTHORIZED, FailureInfo.ADD_POOL_OR_COIN);
}
require(
poolFactory_ != address(0)
, 'Oracle: invalid address for factory'
);
... | 2,906,367 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
4894,
273,
3981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1289,
2864,
12,
2867,
2845,
1733,
67,
13,
1071,
1135,
261,
11890,
13,
288,
203,
3639,
309,
261,
3576,
18,
15330,
480,
2108,
93,
4446,
10756,
288,
203,
5411,
327,
2321,
12,
668,
18,
2124,
28383,
16,
13436,
966,
18... |
./full_match/80001/0x1E298C5bb202048f84Ec2416e7164d30F201d620/sources/src/LS1155.sol | ----------------------------------------------------------------------- errors ----------------------------------------------------------------------- Array lengths of accounts & percentAllocations don't match (`accountsLength` != `allocationsLength`) @param accountsLength Length of accounts array @param allocationsLe... | ) Owned(_owner) LiquidSplit(_splitMain, _distributorFee) {
if (accounts.length != initAllocations.length) {
revert InvalidLiquidSplit__AccountsAndAllocationsMismatch(
accounts.length,
initAllocations.length
);
}
{
uint32 s... | 5,639,502 | [
1,
4625,
348,
7953,
560,
30,
225,
24796,
1334,
24796,
1510,
10917,
434,
9484,
473,
5551,
8763,
1012,
2727,
1404,
845,
21863,
13739,
1782,
68,
480,
1375,
9853,
1012,
1782,
24065,
632,
891,
9484,
1782,
11311,
434,
9484,
526,
632,
891,
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,
262,
14223,
11748,
24899,
8443,
13,
511,
18988,
350,
5521,
24899,
4939,
6376,
16,
389,
2251,
19293,
14667,
13,
288,
203,
203,
3639,
309,
261,
13739,
18,
2469,
480,
1208,
8763,
1012,
18,
2469,
13,
288,
203,
5411,
15226,
1962,
... |
./partial_match/5/0x6e4dc15D5e5A246abfB883b7084D6FE23d2EdC80/sources/Unilayer.sol | * @dev Airdrop function to airdrop tokens. Best works upto 50 addresses in one time. Maximum limit is 200 addresses in one time. @param _addresses array of address in serial order @param _amount amount in serial order with respect to address array/ | function airdropByOwner(address[] memory _addresses, uint256[] memory _amount) public onlyOwner returns (bool){
require(_addresses.length == _amount.length,"Invalid Array");
uint256 count = _addresses.length;
for (uint256 i = 0; i < count; i++){
_transfer(msg.sender, _... | 16,861,137 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
432,
6909,
1764,
445,
358,
279,
6909,
1764,
2430,
18,
25717,
6330,
582,
21910,
6437,
6138,
316,
1245,
813,
18,
18848,
1800,
353,
4044,
6138,
316,
1245,
813,
18,
632,
891,
389,
13277,
526,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1377,
445,
279,
6909,
1764,
858,
5541,
12,
2867,
8526,
3778,
389,
13277,
16,
2254,
5034,
8526,
3778,
389,
8949,
13,
1071,
1338,
5541,
1135,
261,
6430,
15329,
203,
1850,
2583,
24899,
13277,
18,
2469,
422,
389,
8949,
18,
2469,
10837,... |
/**
* Copyright (c) 2018 blockimmo AG license@blockimmo.ch
* Non-Profit Open Software License 3.0 (NPOSL-3.0)
* https://opensource.org/licenses/NPOSL-3.0
*/
pragma solidity 0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multi... | 0x0f5ea0a652e851678ebf77b69484bfcd31f9459b;
| address public constant MEDIANIZER_ADDRESS = 0x729D19f657BD0614b4985Cf1D82531c67569197B; | 11,843,358 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
92,
20,
74,
25,
24852,
20,
69,
9222,
22,
73,
7140,
2313,
8285,
73,
17156,
4700,
70,
8148,
24,
5193,
17156,
4315,
6938,
74,
11290,
6162,
70,
31,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1758,
1071,
5381,
17226,
21634,
6867,
654,
67,
15140,
273,
374,
92,
27,
5540,
40,
3657,
74,
9222,
27,
18096,
7677,
3461,
70,
7616,
7140,
39,
74,
21,
40,
28,
2947,
6938,
71,
9599,
4313,
29,
31728,
38,
31,
282,
2,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2020-07-09
*/
pragma solidity ^0.5.5;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an addre... | 11111 11111111111111 add managerChange event 111111 | if (canChange) {
removeManager(tx1.removes, false);
addManager(tx1.adds, false);
current_withdraw_min_signatures = calMinSignatures(managerArray.length);
pendingChangeCount--;
address[] memory signers = getSigners(tx1.signature);
emit TxMan... | 943,712 | [
1,
4625,
348,
7953,
560,
30,
225,
16344,
2499,
16344,
23680,
23680,
20227,
527,
3301,
3043,
871,
16344,
20227,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
4169,
3043,
13,
288,
203,
5411,
1206,
1318,
12,
978,
21,
18,
2764,
10829,
16,
629,
1769,
203,
5411,
527,
1318,
12,
978,
21,
18,
25428,
16,
629,
1769,
203,
5411,
783,
67,
1918,
9446,
67,
1154,
67,
30730,
273,
1... |
// SPDX-License-Identifier: MIT
// pragma abicoder v2;
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* querie... | get total number of tokens owned by an address | function getTotalNumberOfTokensOwnedByAnAddress(address _owner)
public
view
returns (uint256)
{
uint256 totalNumberOfTokensOwned = balanceOf(_owner);
return totalNumberOfTokensOwned;
}
| 5,842,591 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
2078,
1300,
434,
2430,
16199,
635,
392,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12831,
9226,
5157,
5460,
18696,
979,
1887,
12,
2867,
389,
8443,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
2078,
9226,
5157,
5460,
329,
273,
11013,
... |
// File: contracts/intf/IERC20.sol
// This is a file copied from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.6.9;
pragma experimental ABIEncoderV2;
/**
* @dev Interface of the ERC20 standard as defined in the E... | * @title DODOMigration between Ethereum and BSC @author DODO Breeder/ ============ Storage ============ | contract DODOMigrationBSC is InitializableOwnable {
using SafeMath for uint256;
address public immutable _ETH_DODO_TOKEN_;
address public immutable _DODO_APPROVE_PROXY_;
mapping(address => uint256) internal balances;
constructor(address ethDodoToken, address dodoApproveProxy) public {
_E... | 13,932,332 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
463,
1212,
1872,
6574,
3086,
512,
18664,
379,
471,
605,
2312,
632,
4161,
463,
2311,
605,
15656,
264,
19,
422,
1432,
631,
5235,
422,
1432,
631,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
463,
1212,
1872,
6574,
38,
2312,
353,
10188,
6934,
5460,
429,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
1758,
1071,
11732,
389,
1584,
44,
67,
40,
2311,
67,
8412,
67,
31,
203,
565,
1758,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./EthicOnChainLib.sol";
/// @title EthicOnChain
/// @author Lahcen E. Dev / Jérôme Gauthier
/// @notice EthicOnChain contract to manage NPOs, P... | mise à jour de l'historique des retraits pour le NPO
| withdrawalNpo.withdrawalIds.push(withdrawalCount); | 1,022,493 | [
1,
4625,
348,
7953,
560,
30,
225,
312,
784,
225,
132,
259,
525,
477,
443,
328,
11,
11488,
19596,
2832,
283,
2033,
1282,
24601,
884,
423,
2419,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
598,
9446,
287,
50,
1631,
18,
1918,
9446,
287,
2673,
18,
6206,
12,
1918,
9446,
287,
1380,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/11155111/0xcF0a170690b598c515A39590cC9fd1eb51Fcb09f/sources/project_/contracts/ClipzoToken.sol | 定义unlockTokens函数,用于释放特定账户的代币 只有列出的账户才能发送消息,否则会返回 "Invalid account" 错误 获取当前年份和月份 获取最后解锁时间的年份和月份 要求当前年份大于最后解锁的年份,或者如果年份相同,月份不同。这样保证只能每月解锁一次 更新最后解锁时间为当前时间 根据您的解锁规则计算解锁的代币数量 | function unlockTokens(uint256 customTimestamp) public {
require(msg.sender == privateSaleAccount || msg.sender == seedRoundAccount || msg.sender == teamAccount || msg.sender == advisorsAccount || msg.sender == ecosystemAccount || msg.sender == watchToEarnAccount, "Invalid account");
uint256 currentY... | 3,832,540 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
166,
111,
253,
165,
122,
236,
26226,
5157,
166,
234,
126,
167,
248,
113,
176,
125,
239,
168,
247,
106,
165,
123,
241,
170,
234,
237,
167,
247,
127,
168,
236,
122,
166,
111,
253,
169,
117,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7186,
5157,
12,
11890,
5034,
1679,
4921,
13,
1071,
288,
203,
4202,
2583,
12,
3576,
18,
15330,
422,
3238,
30746,
3032,
747,
1234,
18,
15330,
422,
5009,
11066,
3032,
747,
1234,
18,
15330,
422,
5927,
3032,
747,
1234,
18,
1... |
./partial_match/1/0xF7f8F82cDcd4D1F8E0d467e60085E20d1cC54189/sources/Dollars.sol | 1 if true, 0 if false
| bool public lastRebaseNeutral; | 3,996,160 | [
1,
4625,
348,
7953,
560,
30,
225,
404,
309,
638,
16,
374,
309,
629,
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,
565,
1426,
1071,
1142,
426,
1969,
6586,
14566,
287,
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,
... |
pragma solidity 0.4.24;
/**
* @title Circa Token Contract
* @dev Circa is an ERC-20 Standar Compliant Token
* @author Fares A. Akel C. f.antonio.akel@gmail.com
*/
/**
* @title SafeMath by OpenZeppelin (partially)
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev... | Admin can be transfered
| function setAllowed(address _newAllowed) onlyAdmin public { | 14,417,294 | [
1,
4625,
348,
7953,
560,
30,
7807,
848,
506,
7412,
329,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14252,
12,
2867,
389,
2704,
5042,
13,
1338,
4446,
1071,
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,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
// Afterparty Pass allows you to attend Afterparty Music Festivals.
// Truffle imports
//import "../openzeppelin-contracts/contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol";
//import "../openzeppelin-contracts/contracts/utils/math/SafeMat... | SPDX-License-Identifier: MIT OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)* @dev Extension of {AccessControl} that allows enumerating the members of each role./ | abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {
using EnumerableSet for EnumerableSet.AddressSet;
mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;
function mint(
address to,
uint256 id,
uint256 amount,
bytes memory da... | 14,818,316 | [
1,
4625,
348,
7953,
560,
30,
225,
11405,
28826,
17,
13211,
17,
3004,
30,
490,
1285,
3502,
62,
881,
84,
292,
267,
30131,
261,
2722,
3526,
331,
24,
18,
25,
18,
20,
13,
261,
3860,
19,
16541,
3572,
25121,
18,
18281,
17653,
632,
5206,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
17801,
6835,
24349,
3572,
25121,
353,
467,
16541,
3572,
25121,
16,
24349,
288,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
203,
565,
2874,
12,
3890,
1578,
516,
6057,
25121,
694,
18,
1887,
694,
... |
pragma solidity >= 0.5.0;
// Token contract - ALLBEBET Token
// https://allbebet.bet
// SPORTS BETTING PLATFORM
// ___¶¶¶____________¶¶¶¶¶¶¶
//__¶¶¶¶__________¶¶¶¶¶¶¶¶¶¶¶
//_¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶¶¶
//__¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶¶¶
//_¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶¶¶
//¶¶¶¶¶¶¶_________¶¶¶¶¶¶¶¶¶¶¶
//¶¶¶¶¶¶¶¶_________¶¶¶... | ------------------------------------------------------------------------ Owner can transfer out any accidentally sent ERC20 tokens ------------------------------------------------------------------------ | function transferAnyERC20Token(address _token, address _to, uint _value) public onlyOwner returns (bool) {
return IERC20(_token).transfer(_to, _value);
}
| 2,494,096 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
16837,
848,
7412,
596,
1281,
25961,
1230,
3271,
4232,
39,
3462,
2430,
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,
... | [
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,
7412,
2961,
654,
39,
3462,
1345,
12,
2867,
389,
2316,
16,
1758,
389,
869,
16,
2254,
389,
1132,
13,
1071,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
3639,
327,
467,
654,
39,
3462,
24899,
2316,
2934,
13866,
24899,
869,
... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;
import {IUniswapV2Router02} from "@sushiswap/core/contracts/uniswapv2/interfaces/IUniswapV2Router02.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {SafeMath} from "@openzeppelin/contracts/math/Sa... | first addr: reward token, last addr: _tokenB
| address[] tokenBPath; | 12,876,463 | [
1,
4625,
348,
7953,
560,
30,
225,
1122,
3091,
30,
19890,
1147,
16,
1142,
3091,
30,
389,
2316,
38,
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,
... | [
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,
202,
202,
2867,
8526,
1147,
38,
743,
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,
-1... |
./partial_match/1/0x105Aa95947C16999F32190f3EaC8dabDdc8E39D1/sources/CORE_LGE_3.sol | /// Admin balancing functions CORE is token0 | function buyCOREforWETH(uint256 amountWETH, uint256 minAmountCOREOut) onlyOwner public {
(uint256 COREValueETH, uint256 DAIValueETH) = getDAIandCOREReservesValueInETH();
require(COREValueETH.add(amountWETH) <= DAIValueETH, "Buying too much CORE");
safeTransfer(WETH, address(pair), amountWETH... | 9,182,080 | [
1,
4625,
348,
7953,
560,
30,
18378,
7807,
324,
16142,
4186,
7910,
862,
353,
1147,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
30143,
15715,
1884,
59,
1584,
44,
12,
11890,
5034,
3844,
59,
1584,
44,
16,
2254,
5034,
1131,
6275,
15715,
1182,
13,
1338,
5541,
1071,
288,
203,
3639,
261,
11890,
5034,
7910,
862,
620,
1584,
44,
16,
2254,
5034,
463,
1819... |
./full_match/1/0xDEfF106B9eaF5c8fD821cFCe302E5Ec6D4499618/sources/SnoopDOGE.sol | * @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 Uniswap 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 (addr... | 8,398,045 | [
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,
1351,
291,
91,
438,
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,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
2648... |
//Address: 0xc67a3da58b43b0652a22c6f50826c9ebe7b78e49
//Contract name: CryptoTorch
//Balance: 0 Ether
//Verification Date: 4/26/2018
//Transacion Count: 7
// CODE STARTS HERE
// CryptoTorch Source code
// copyright 2018 CryptoTorch <https://cryptotorch.io>
pragma solidity 0.4.19;
/**
* @title SafeMath
* Math op... | * DateTime Contract Interface Live Contract Address: 0x1a6184CD4C5Bea62B0116de7962EE7315B7bcBce/ | contract DateTime {
function getMonth(uint timestamp) public pure returns (uint8);
function getDay(uint timestamp) public pure returns (uint8);
}
| 2,522,377 | [
1,
4625,
348,
7953,
560,
30,
380,
3716,
13456,
6682,
21559,
13456,
5267,
30,
374,
92,
21,
69,
26,
29242,
10160,
24,
39,
25,
1919,
69,
8898,
38,
1611,
2313,
323,
7235,
8898,
9383,
9036,
3600,
38,
27,
13459,
38,
311,
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,
16351,
3716,
288,
203,
565,
445,
19627,
12,
11890,
2858,
13,
1071,
16618,
1135,
261,
11890,
28,
1769,
203,
565,
445,
20444,
12,
11890,
2858,
13,
1071,
16618,
1135,
261,
11890,
28,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x31577476950ec86E2D6D99dcc756A35AEa14389a/sources/MultiProductEscrow.sol | * @dev The buyer can release the funds to the seller allowing the seller to withdraw the funds./ | function releaseFunds(string calldata transactionId)
public
onlyBuyer(transactionId)
{
transactions[transactionId].fundsReleased = true;
}
| 16,070,567 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
27037,
848,
3992,
326,
284,
19156,
358,
326,
29804,
15632,
326,
29804,
358,
598,
9446,
326,
284,
19156,
18,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3992,
42,
19156,
12,
1080,
745,
892,
24112,
13,
203,
202,
202,
482,
203,
202,
202,
3700,
38,
16213,
12,
7958,
548,
13,
203,
202,
95,
203,
202,
202,
20376,
63,
7958,
548,
8009,
74,
19156,
26363,
273,
638,
31,
203,
20... |
/*
Zethr | https://zethr.io
(c) Copyright 2018 | All Rights Reserved
This smart contract was developed by the Zethr Dev Team and its source code remains property of the Zethr Project.
*/
pragma solidity ^0.4.24;
// File: contracts/Libraries/SafeMath.sol
library SafeMath {
function mul(uint a, uint b) interna... | Minimum bet should always be >= 1 | uint minBet = 1e18;
| 404,834 | [
1,
4625,
348,
7953,
560,
30,
225,
23456,
2701,
1410,
3712,
506,
1545,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
1131,
38,
278,
273,
404,
73,
2643,
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,... |
// SPDX-License-Identifier: MIT
// File: contracts/INftStaker.sol
pragma solidity ^0.8.4;
/// @dev Interface allowing calling of stake and unstake on staking contract.
interface INftStaker {
function stake(uint256 _tokenId, address _tokenOwner) external;
function unstake(uint256 _tokenId, address _tokenOwn... | @dev Push a value onto `whitelistedUsers`. | function pushWhitelist(address _newUser) external onlyOwner {
require(_newUser != address(0), "TinyPugs: cannot whitelist the zero address.");
require(!isWhitelistedUser(_newUser), "TinyPugs: cannot redundantly whitelist a user.");
whitelistedUsers.push(_newUser);
}
| 13,520,753 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
8547,
279,
460,
10170,
1375,
20409,
329,
6588,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
1817,
18927,
12,
2867,
389,
2704,
1299,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
2704,
1299,
480,
1758,
12,
20,
3631,
315,
56,
11652,
52,
9024,
30,
2780,
10734,
326,
3634,
1758,
1199,
1769,
203,
3639,
2583,
12... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IPriceFeed.sol";
import "../interfaces/IPriceProvider.sol";
import "../interfaces/IConfigurationManager.sol";
/**
* @title PriceProvider
* @author Pods Finance
* @notice Storage ... | * @notice Unregister price feeds @dev Will not remove unregistered assets @param _assets Array of assets/ | function removeAssetFeeds(address[] memory _assets) external override onlyOwner {
for (uint256 i = 0; i < _assets.length; i++) {
address removedFeed = address(_assetPriceFeeds[_assets[i]]);
if (removedFeed != address(0)) {
delete _assetPriceFeeds[_assets[i]];
... | 13,467,162 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1351,
4861,
6205,
27684,
632,
5206,
9980,
486,
1206,
24352,
7176,
632,
891,
389,
9971,
1510,
434,
7176,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
6672,
8141,
87,
12,
2867,
8526,
3778,
389,
9971,
13,
3903,
3849,
1338,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
9971,
18,
2469,
31,
277,
27245,
288,
203,
5411,
1758,
3723,
8... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is cheaper... | * @dev The Ownable constructor sets the original `owner` of the contract to the sender account./ | function Ownable() {
owner = msg.sender;
}
| 937,102 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
14223,
6914,
3885,
1678,
326,
2282,
1375,
8443,
68,
434,
326,
6835,
358,
326,
5793,
2236,
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... | [
1,
1,
1,
1,
1,
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,
445,
14223,
6914,
1435,
288,
203,
565,
3410,
273,
1234,
18,
15330,
31,
203,
225,
289,
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,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
import "./BattleRoyale.sol";
import "./AddressArray.sol";
import "./CustomAccessControl.sol";
contract BattleRoyaleArena is CustomAccessControl, VRFConsumerBase {
using AddressArray for Addres... | Toggle auto-start on or off/ | function autoPayoutOn(bool _autoPayout) external payable {
require(msg.sender == delegate || msg.sender == owner());
autoPayout = _autoPayout;
}
| 1,384,348 | [
1,
4625,
348,
7953,
560,
30,
225,
399,
9891,
3656,
17,
1937,
603,
578,
3397,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
3656,
52,
2012,
1398,
12,
6430,
389,
6079,
52,
2012,
13,
3903,
8843,
429,
288,
203,
565,
2583,
12,
3576,
18,
15330,
422,
7152,
747,
1234,
18,
15330,
422,
3410,
10663,
203,
565,
3656,
52,
2012,
273,
389,
6079,
52,
2012... |
./full_match/1/0x2e0a081C4a229FDC3c80Bd98048f148985A3D9B8/sources/contracts/token.sol | disable Transfer delay - cannot be reenabled | function disableTransferDelay() external onlyOwner returns (bool){
transferDelayEnabled = false;
return true;
}
| 8,490,984 | [
1,
4625,
348,
7953,
560,
30,
225,
4056,
12279,
4624,
300,
2780,
506,
283,
5745,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4056,
5912,
6763,
1435,
3903,
1338,
5541,
1135,
261,
6430,
15329,
203,
3639,
7412,
6763,
1526,
273,
629,
31,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
21281,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract Harbergia is ERC20 {
address contract_owner;
uint map_size;
address default_parcel_owner;
uint default_parcel_price;
string default_parcel_... | TODO: check if this is a valid color | function setParcelColor(uint parcelId, string memory new_color) external {
require(parcelId < map_size, "Inexisting Parcel");
require(owners[parcelId] == msg.sender, "Only parcel owner can change color");
colors[parcelId] = new_color;
}
| 6,382,683 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
30,
866,
309,
333,
353,
279,
923,
2036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
1553,
2183,
2957,
12,
11890,
779,
2183,
548,
16,
533,
3778,
394,
67,
3266,
13,
3903,
288,
203,
3639,
2583,
12,
1065,
2183,
548,
411,
852,
67,
1467,
16,
315,
382,
11711,
2280,
2183,
8863,
203,
3639,
2583,
12,
995,... |
pragma solidity ^0.4.14;
contract DSMath {
/*
standard uint256 functions
*/
function add(uint256 x, uint256 y) constant internal returns (uint256 z) {
assert((z = x + y) >= x);
}
function sub(uint256 x, uint256 y) constant internal returns (uint256 z) {
asse... | transfer tokens to participant
| token.transfer(msg.sender, buy_amount); | 2,480,908 | [
1,
4625,
348,
7953,
560,
30,
7412,
2430,
358,
14188,
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,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1147,
18,
13866,
12,
3576,
18,
15330,
16,
30143,
67,
8949,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xe50424Df644BC6d7f623c3Dcf4B2C3F38e339063/sources/NftTransfer.sol | * @notice Returns true if the contract is a supported ERC20. @param _contract The address of the contract./ | function coveredByDailyLimit(address _contract) internal view returns (bool) {
return tokenPriceRegistry.getTokenPrice(_contract) > 0;
}
| 9,321,126 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
638,
309,
326,
6835,
353,
279,
3260,
4232,
39,
3462,
18,
632,
891,
389,
16351,
1021,
1758,
434,
326,
6835,
18,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18147,
858,
40,
12857,
3039,
12,
2867,
389,
16351,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
1147,
5147,
4243,
18,
588,
1345,
5147,
24899,
16351,
13,
405,
374,
31,
203,
565,
289,
203,
203,
2,
-100,
-10... |
./full_match/1/0x74c8eED2b92dD0721D8ECA7513BcA38b6f1c045B/sources/contracts/PaperBagBoys.sol | ===================================== Promotion =====================================/ | function togglePromotion() external onlyOwner {
PROMOTION_ACTIVE = !PROMOTION_ACTIVE;
}
| 5,014,988 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
4428,
12275,
17552,
8240,
422,
4428,
12275,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10486,
13224,
8240,
1435,
3903,
1338,
5541,
288,
203,
3639,
453,
3942,
1974,
1146,
67,
13301,
273,
401,
3373,
49,
1974,
1146,
67,
13301,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
/**
*Submitted for verification at Etherscan.io on 2020-08-28
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.10;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because prog... | * @notice Active set of withdrawal roots/ | mapping(bytes32 => uint256) public withdrawalRootToNonce;
| 5,380,162 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8857,
444,
434,
598,
9446,
287,
12876,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
3890,
1578,
516,
2254,
5034,
13,
1071,
598,
9446,
287,
2375,
774,
13611,
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,... |
pragma solidity >=0.4.21 <0.7.0;
import "./SafeMath.sol";
import "./Ownable.sol";
// Contarct Interface /////////////////////////////////////////////////////////////////////////////////////////////
contract TokenInterface {
function transfer(address to, uint256 value) public returns (bool);
function tr... | @notice setTokenContractAddress sets the ocntract address of the token interface, that way its tokens can be used | function setTokenContractAddress(address ContractAddress) public onlyOwner {
token = TokenInterface(ContractAddress);
}
| 5,465,156 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
22629,
8924,
1887,
1678,
326,
320,
10305,
1575,
1758,
434,
326,
1147,
1560,
16,
716,
4031,
2097,
2430,
848,
506,
1399,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22629,
8924,
1887,
12,
2867,
13456,
1887,
13,
1071,
1338,
5541,
288,
203,
540,
203,
3639,
1147,
273,
29938,
12,
8924,
1887,
1769,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/71402/0x67f0CB20E6F325CBd94EEe4a77F119c64C9a1AD5/sources/contracts/NFTSVG.sol | @title NFTSVG @notice Provides a function for generating an SVG associated with a Uniswap NFT | library NFTSVG {
pragma solidity ^0.8.21;
struct SVGParams {
uint256 rotation;
string angel1;
string angel2;
string angel3;
string angel4;
string angel5;
string angel6;
string colorPolygon1;
string colorPolygon2;
string colorPolygon3;
... | 7,092,855 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
423,
4464,
26531,
632,
20392,
28805,
279,
445,
364,
12516,
392,
11281,
3627,
598,
279,
1351,
291,
91,
438,
423,
4464,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
423,
4464,
26531,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
5340,
31,
203,
565,
1958,
11281,
1370,
288,
203,
3639,
2254,
5034,
6752,
31,
203,
203,
3639,
533,
7603,
292,
21,
31,
203,
3639,
533,
7603,
292,
22,... |
./full_match/1/0x3596fB4e61dE7d5Cca41Ae5a3fFFcCdedE313a4e/sources/src/CCIPeth.sol | @notice Best effort check to ensure Cozys are sent from EOAs, as destinations address is same as sender address @dev Can be circumvented via constructor call - doesn't benefit caller | modifier onlyEOA() {
address sender = msg.sender;
uint256 size;
assembly {
size := extcodesize(sender)
}
if (size > 0) {
revert NotEOA();
}
_;
}
| 3,132,941 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
25717,
23445,
866,
358,
3387,
7695,
94,
1900,
854,
3271,
628,
512,
51,
1463,
16,
540,
487,
20456,
1758,
353,
1967,
487,
5793,
1758,
632,
5206,
4480,
506,
29951,
616,
329,
3970,
3885,
745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9606,
1338,
41,
28202,
1435,
288,
203,
3639,
1758,
5793,
273,
1234,
18,
15330,
31,
203,
3639,
2254,
5034,
963,
31,
203,
3639,
19931,
288,
203,
5411,
963,
519,
1110,
7000,
554,
12,
15330,
13,
203,
3639,
289,
203,
3639,
309,
... |
./partial_match/4/0xE03830fE2C66Dc9B32cf5c25C1235a89B10eBd44/sources/OptionFactory.sol | * Buy `optionsOut` quantity of options/ mint options for sender calculate amount to be paid calculate trading fee transfer base tokens from sender | function buy(
bool isLongToken,
uint256 strikeIndex,
uint256 optionsOut,
uint256 maxAmountIn
) external payable nonReentrant returns (uint256 amountIn) {
require(b > 0, "Cannot be called before b is set");
require(!isExpired(), "Already expired");
require(... | 8,659,970 | [
1,
4625,
348,
7953,
560,
30,
380,
605,
9835,
1375,
2116,
1182,
68,
10457,
434,
702,
19,
312,
474,
702,
364,
5793,
4604,
3844,
358,
506,
30591,
4604,
1284,
7459,
14036,
7412,
1026,
2430,
628,
5793,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
12,
203,
3639,
1426,
353,
3708,
1345,
16,
203,
3639,
2254,
5034,
609,
2547,
1016,
16,
203,
3639,
2254,
5034,
702,
1182,
16,
203,
3639,
2254,
5034,
943,
6275,
382,
203,
565,
262,
3903,
8843,
429,
1661,
426,
8230,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import './interfaces/IUniswapV2Pair.sol';
import './UniswapV2ERC20.sol';
import './libraries/Math.sol';
import './libraries/UQ112x112.sol';
import './interfaces/IERC20.sol';
import './interfaces/IUniswapV2Factory.sol';
contract UniswapV2Pair is IUniswapV2Pair, Un... | this low-level function should be called from a contract which performs important safety checks bool feeOn = false;_mintFee(_reserve0, _reserve1); uint _totalSupply = totalSupply; gas savings, must be defined here since totalSupply can update in _mintFee _mint(address(0), MINIMUM_LIQUIDITY); permanently lock the fir... | function mint(address to) external override lock returns (uint256 liquidity) {
uint256 balance0 = IERC20(token0).balanceOf(address(this));
uint256 balance1 = IERC20(token1).balanceOf(address(this));
uint256 amount0 = balance0.sub(_reserve0);
uint256 amount1 = balance1.sub(_reserve1);... | 565,667 | [
1,
4625,
348,
7953,
560,
30,
225,
333,
4587,
17,
2815,
445,
1410,
506,
2566,
628,
279,
6835,
1492,
11199,
10802,
24179,
4271,
1426,
14036,
1398,
273,
629,
31,
67,
81,
474,
14667,
24899,
455,
6527,
20,
16,
389,
455,
6527,
21,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
312,
474,
12,
2867,
358,
13,
3903,
3849,
2176,
1135,
261,
11890,
5034,
4501,
372,
24237,
13,
288,
203,
3639,
2254,
5034,
11013,
20,
273,
467,
654,
39,
3462,
12,
2316,
20,
2934,
12296,
951,
12,
2867,
12,
2211,
10019,
2... |
./partial_match/1/0xd353fB1c33202441373524d3Cc5d94cd74113e25/sources/KaliFactory.sol | Skip previous proposal processing requirement in case of escape hatch. If quorum and approval threshold are met, skip voting period for fast processing. If a grace period has been set, or if quorum is set to nothing, maintain voting period check. This is safe from overflow because `votingPeriod` and `gracePeriod` are ... | function processProposal(
uint256 proposal,
Call[] calldata calls,
ProposalType setting,
string calldata details
) public payable virtual nonReentrant returns (bool passed) {
Proposal storage prop = proposals[proposal];
if (prop.creationTime == 0) revert InvalidP... | 2,821,462 | [
1,
4625,
348,
7953,
560,
30,
225,
6611,
2416,
14708,
4929,
12405,
316,
648,
434,
4114,
366,
505,
18,
971,
31854,
471,
23556,
5573,
854,
5100,
16,
2488,
331,
17128,
3879,
364,
4797,
4929,
18,
971,
279,
13658,
3879,
711,
2118,
444,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
14592,
12,
203,
3639,
2254,
5034,
14708,
16,
203,
3639,
3049,
8526,
745,
892,
4097,
16,
203,
3639,
19945,
559,
3637,
16,
203,
3639,
533,
745,
892,
3189,
203,
565,
262,
1071,
8843,
429,
5024,
1661,
426,
8230,
970,
... |
./full_match/56/0x5864D0573FD3219cCC1BB7Ea8b3c28bB2D4790e9/sources/project_/contracts/StakepadNFT.sol | 25% of mint revenue goes to DAO treasury
| uint256 DAOshare = 2500; | 3,239,798 | [
1,
4625,
348,
7953,
560,
30,
6969,
9,
434,
312,
474,
283,
24612,
13998,
358,
463,
20463,
9787,
345,
22498,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
463,
20463,
14419,
273,
6969,
713,
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,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./utils/HomoraMath.sol";
import "../interfaces/ILPSwap.sol";
import "../interfaces/swaps/IUniswapV2Pair.sol";
contract LPSwap is ILPSwap {
using SafeMath for uint256;
using HomoraMath... | @dev View function for testing the routing of the strategy @param tokenIn Token user wants to exchange @param weth Weth Address @param amountIn Total Tokens user wants to exchange @param router Uniswap router Address @return px Price Exchange Check uni (Can Revert) We ignore as it means it's zero | function _checkUni(
address tokenIn,
address weth,
uint256 amountIn,
IUniswapRouterV2 router
) internal returns (uint256 px) {
address[] memory path = new address[](2);
path[0] = address(weth);
path[1] = address(tokenIn);
try router.getAmountsOut(... | 5,544,527 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
4441,
445,
364,
7769,
326,
7502,
434,
326,
6252,
632,
891,
1147,
382,
3155,
729,
14805,
358,
7829,
632,
891,
341,
546,
678,
546,
5267,
632,
891,
3844,
382,
10710,
13899,
729,
14805,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
1893,
984,
77,
12,
203,
3639,
1758,
1147,
382,
16,
203,
3639,
1758,
341,
546,
16,
203,
3639,
2254,
5034,
3844,
382,
16,
203,
3639,
467,
984,
291,
91,
438,
8259,
58,
22,
4633,
203,
565,
262,
2713,
1135,
261,
118... |
/**
*Submitted for verification at Etherscan.io on 2020-07-02
*/
// File: contracts/sol6/IERC20.sol
pragma solidity 0.6.6;
interface IERC20 {
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function approve(address _spender, uint256 _value) external returns (bool success)... | Update brrAndEpochData | function getBRR()
public
returns (
uint256 rewardBps,
uint256 rebateBps,
uint256 epoch
)
if (now > expiryTimestamp && kyberDao != IKyberDao(0)) {
uint256 burnBps;
(burnBps, rewardBps, rebateBps, epoch, expiryTimestamp) = ky... | 5,363,684 | [
1,
4625,
348,
7953,
560,
30,
225,
2315,
324,
523,
1876,
14638,
751,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2882,
17950,
1435,
203,
3639,
1071,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
19890,
38,
1121,
16,
203,
5411,
2254,
5034,
283,
70,
340,
38,
1121,
16,
203,
5411,
2254,
5034,
7632,
203,
3639,
262,
203,
3639,
309,
261,
... |
./partial_match/1/0xa6d8C77FFf3CDcc43804275aD9997b603a7817c5/sources/src/ETHButtonswapRouter.sol | * @inheritdoc IETHButtonswapRouter/ | constructor(address _factory, address _WETH) BasicButtonswapRouter(_factory) {
WETH = _WETH;
}
| 3,642,057 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
10093,
467,
1584,
44,
3616,
22270,
8259,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
2867,
389,
6848,
16,
1758,
389,
59,
1584,
44,
13,
7651,
3616,
22270,
8259,
24899,
6848,
13,
288,
203,
3639,
678,
1584,
44,
273,
389,
59,
1584,
44,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/42161/0x2B33B06724dFE71D2C9a43bF00Ab73D3f2b67D4d/sources/MasterchefToken/ERC20.sol | * @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 ERC20 is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symb... | 16,306,534 | [
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,
4232,
39,
3462,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
3... |
// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.7;
import "./OUTPACE.sol";
import "./libs/SafeERC20.sol";
import "./interfaces/IStakingPool.sol";
contract Guardian {
// validator => pool contract
mapping (address => address) public poolForValidator;
// validator -> refundInterestPromilles
mapping (addres... | Do not send interest if there is no lastStateRoot (channel has not been used) cause without it, it's possible to open non-legit channels with real validators, let them expire and try to claim the interest Only apply the interest if the channel has been used and there's a pool from which to get it, and there's no opt o... | uint interest = refundInterestPromilles[blamed];
| 5,381,726 | [
1,
4625,
348,
7953,
560,
30,
225,
2256,
486,
1366,
16513,
309,
1915,
353,
1158,
1142,
1119,
2375,
261,
4327,
711,
486,
2118,
1399,
13,
4620,
2887,
518,
16,
518,
1807,
3323,
358,
1696,
1661,
17,
1935,
305,
5750,
598,
2863,
11632,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
202,
11890,
16513,
273,
16255,
29281,
13224,
737,
281,
63,
3083,
2808,
15533,
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... |
./full_match/42/0x5Ceb231D831Cc60715e32834D41532338C8D2DcF/sources/LoserLotteryContract_flat.sol | * **************************************************************************** @notice Interface for contracts using VRF randomness @dev PURPOSE @dev Reggie the Random Oracle (not his real job) wants to provide randomness @dev to Vera the verifier in such a way that Vera can be sure he's not @dev making his output up ... | abstract contract VRFConsumerBase is VRFRequestIDBase {
using SafeMath for uint256;
function fulfillRandomness(bytes32 requestId, uint256 randomness)
internal virtual;
function requestRandomness(bytes32 _keyHash, uint256 _fee, uint256 _seed)
internal returns (bytes32 requestId)
{
LINK.transferAn... | 9,588,656 | [
1,
4625,
348,
7953,
560,
30,
380,
19756,
1644,
14465,
632,
20392,
6682,
364,
20092,
1450,
776,
12918,
2744,
4496,
225,
632,
5206,
30817,
632,
5206,
2526,
75,
1385,
326,
8072,
28544,
261,
902,
18423,
2863,
1719,
13,
14805,
358,
5615,
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,
17801,
6835,
776,
12918,
5869,
2171,
353,
776,
12918,
691,
734,
2171,
288,
203,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
225,
445,
22290,
8529,
4496,
12,
3890,
1578,
14459,
16,
2254,
5034,
2744,
4496,
13,
203,
... |
./partial_match/1/0x5BbC4fb9C4b59d63a444A24BE250574D04Ca93a1/sources/Kumamon11.sol | addresses limits status flags | contract Kumamon11 is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable router;
address public immutable uniswapV2Pair;
address public devWallet;
address private marketingWallet;
uint256 private maxBuyAmount;
uint256 private maxSellAmount;
uint256 p... | 4,358,713 | [
1,
4625,
348,
7953,
560,
30,
225,
6138,
8181,
1267,
2943,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1475,
379,
301,
265,
2499,
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,
4633,
31,
203,
565,
1758,
1... |
//Address: 0x0509a863569f2e9253a1fc8d4bc90a7a0cf9d2e4
//Contract name: CTToken
//Balance: 0 Ether
//Verification Date: 2/6/2018
//Transacion Count: 3
// CODE STARTS HERE
pragma solidity ^0.4.19;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) publ... | Public variables of the token 18 decimals is the strongly suggested default, avoid changing it This creates an array with all balances This generates a public event on the blockchain that will notify clients This notifies clients about the amount burnt | contract TokenERC20 {
string public name;
string public symbol;
uint8 constant public decimals = 18;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from, address i... | 12,835,557 | [
1,
4625,
348,
7953,
560,
30,
225,
7224,
3152,
434,
326,
1147,
6549,
15105,
353,
326,
11773,
715,
22168,
805,
16,
4543,
12770,
518,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
654,
39,
3462,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
28,
5381,
1071,
15105,
273,
6549,
31,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
203,
565,
2874,
261,
286... |
// SPDX-License-Identifier: MIT
// AND GPL-3.0-or-later
pragma solidity 0.8.4;
// includes Openzeppelin 3.4.0 contracts:
// ... Context -> Ownable
// ... SafeMath, Address, SafeERC20
// ... IERC20, ERC20(aka ERC20Detailed),
//import "hardhat/console.sol";
//sol800
abstract contract Context {
function _msgSender() ... | ---------------------==sol8.0.0 | library SafeERC20 {
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) in... | 12,669,281 | [
1,
4625,
348,
7953,
560,
30,
12146,
553,
631,
18281,
28,
18,
20,
18,
20,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
12083,
14060,
654,
39,
3462,
288,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
445,
4183,
5912,
12,
45,
654,
39,
3462,
1147,
16,
1758,
358,
16,
2254,
5034,
460,
13,
2713,
288,
203,
3639,
389,
1991,
6542,
990,
12,
2316,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | @dev Helper to run ValueInterpreter.calcCanonicalAssetValue(), reverting if a returned rate is invalid | function __calcCanonicalAssetValueOrRevertInvalid(
address _baseAsset,
uint256 _amount,
address _quoteAsset
) private returns (uint256 value_) {
bool isValid;
(value_, isValid) = ValueInterpreter(getValueInterpreter()).calcCanonicalAssetValue(
_baseAsset,
... | 6,135,057 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
9705,
358,
1086,
1445,
30010,
18,
12448,
15512,
6672,
620,
9334,
15226,
310,
309,
279,
2106,
4993,
353,
2057,
2,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
12448,
15512,
6672,
620,
1162,
426,
1097,
1941,
12,
203,
3639,
1758,
389,
1969,
6672,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
1758,
389,
6889,
6672,
203,
565,
262,
3238,
1135,
261,
11890,
5034,
460,
6... |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.7.5;
pragma abicoder v2;
import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/cryptography/ECDSAUpgradeable.sol";
im... | * @dev See {IOracles-initialize}./ migrate data from previous Oracles contract | function initialize(
address admin,
address oraclesV1,
address _rewardEthToken,
address _pool,
address _poolValidators,
address _merkleDistributor
)
external override initializer
{
require(admin != address(0), "Pool: invalid admin address");
... | 14,888,844 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
4294,
354,
9558,
17,
11160,
5496,
19,
13187,
501,
628,
2416,
531,
354,
9558,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
203,
3639,
1758,
3981,
16,
203,
3639,
1758,
578,
69,
9558,
58,
21,
16,
203,
3639,
1758,
389,
266,
2913,
41,
451,
1345,
16,
203,
3639,
1758,
389,
6011,
16,
203,
3639,
1758,
389,
6011,
19420,
16,
203,
3639,
... |
// SPDX-License-Identifier: GPL-3.0
/*
This file is part of the Enzyme Protocol.
(c) Enzyme Council <[email protected]>
For the full license information, please view the LICENSE
file that was distributed with this source code.
*/
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/E... | @notice Universal method for calling third party contract functions through adapters @param _caller The caller of this function via the ComptrollerProxy @param _vaultProxy The VaultProxy of the fund @param _callArgs The encoded args for this function - _adapter Adapter of the integration on which to execute a call - _... | function __callOnIntegration(
address _caller,
address _vaultProxy,
bytes memory _callArgs
) private {
(
address adapter,
bytes4 selector,
bytes memory integrationData
) = __decodeCallOnIntegrationArgs(_callArgs);
__preCoIHook(... | 1,697,449 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
27705,
707,
364,
4440,
12126,
18285,
6835,
4186,
3059,
17272,
632,
891,
389,
16140,
1021,
4894,
434,
333,
445,
3970,
326,
1286,
337,
1539,
3886,
632,
891,
389,
26983,
3886,
1021,
17329,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1001,
1991,
1398,
15372,
12,
203,
3639,
1758,
389,
16140,
16,
203,
3639,
1758,
389,
26983,
3886,
16,
203,
3639,
1731,
3778,
389,
1991,
2615,
203,
565,
262,
3238,
288,
203,
3639,
261,
203,
5411,
1758,
4516,
16,
203,
5411... |
pragma solidity ^0.5.2;
pragma experimental ABIEncoderV2;
import "truffle/Assert.sol";
import "../../contracts/Core/Core.sol";
/** Covered test cases:
- cycle not set, different overlaps, with or without endtime
- Different overlaps of segment and cycle with or without addEndtime
- start before, end... | Wednesday, 2018-08-01 00:00:00 UTC
| result_t9[7] = uint256(1533081600); | 6,451,522 | [
1,
4625,
348,
7953,
560,
30,
225,
678,
329,
23712,
2881,
16,
14863,
17,
6840,
17,
1611,
9631,
30,
713,
30,
713,
9951,
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,
... | [
1,
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,
3639,
563,
67,
88,
29,
63,
27,
65,
273,
2254,
5034,
12,
3600,
3707,
6840,
2313,
713,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//
// ██████╗ ██╗ ██╗ ██████╗██████╗ ██╗ ██╗███████╗████████╗ █████╗ ██╗ ███████╗
// ██╔═████╗╚██╗██╔╝██╔════╝██╔══██╗╚██╗ ██╔╝██╔════╝╚══██╔══╝██╔══██╗██║ ██╔════╝
// ██║██╔██║ ╚███╔╝ ██║ ██████╔╝ ╚████╔╝ ███████╗ ██║ ███████║██║ ███████╗
// ████╔╝██║ ██╔██╗ ██║ ██╔══██╗ ╚██╔╝ ╚════██... | * @dev See {IERC1155-safeBatchTransferFrom}./ | function safeBatchTransferFrom(
address from,
address to,
uint256[] memory ids,
uint256[] memory amounts,
bytes memory data
)
public
virtual
override
{
require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
... | 6,332,081 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
2499,
2539,
17,
4626,
4497,
5912,
1265,
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... | [
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,
4183,
4497,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
8526,
3778,
3258,
16,
203,
3639,
2254,
5034,
8526,
3778,
30980,
16,
203,
3639,
1731,
3778,
501,
203,
565,
262,
203,
... |
./full_match/1/0x2A77Ac6b6c7E4E3fF06CCA52537360EE2C13992E/sources/src/ERC721SeaDropUpgradeable.sol | * @notice Update the token gated drop stage data for this nft contract on SeaDrop. Only the owner can use this function. Note: If two INonFungibleSeaDropToken tokens are doing simultaneous token gated drop promotions for each other, they can be minted by the same actor until ... | function updateTokenGatedDrop(
address seaDropImpl,
address allowedNftToken,
TokenGatedDropStage calldata dropStage
) external virtual override onlyOwner onlyAllowedSeaDrop(seaDropImpl) {
ISeaDropUpgradeable(seaDropImpl).updateTokenGatedDrop(
allowedNftToken,
... | 4,946,130 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2315,
326,
1147,
314,
690,
3640,
6009,
501,
364,
333,
290,
1222,
6835,
540,
603,
3265,
69,
7544,
18,
540,
5098,
326,
3410,
848,
999,
333,
445,
18,
540,
3609,
30,
971,
2795,
2120,
265,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
1345,
43,
690,
7544,
12,
203,
3639,
1758,
695,
69,
7544,
2828,
16,
203,
3639,
1758,
2935,
50,
1222,
1345,
16,
203,
3639,
3155,
43,
690,
7544,
8755,
745,
892,
3640,
8755,
203,
565,
262,
3903,
5024,
3849,
1338,
55... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
//Import abstractions
import { IUniswapV2Router02, IBalancer, IFreeFromUpTo, Ownable, SafeMath } from 'Contracts/Balancer.sol';
import { DSL } from 'Contracts/DSL.sol';
import 'UniswapV2/libraries/TransferHelper.sol';
//Import uniswap interfaces
... | Sell half of balance tokens to eth and add liqSend tokens to balancer | function rebalanceLiquidity() public discountCHI {
require(hasMinRebalanceBalance(msg.sender), "!hasMinRebalanceBalance");
require(rebalanceable(), '!rebalanceable');
lastRebalance = block.timestamp;
if(!approved) {
ApproveInf(address(this),uniswapV2Router);
... | 5,360,906 | [
1,
4625,
348,
7953,
560,
30,
225,
348,
1165,
8816,
434,
11013,
2430,
358,
13750,
471,
527,
4501,
85,
3826,
2430,
358,
14887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
283,
12296,
48,
18988,
24237,
1435,
1071,
12137,
1792,
45,
288,
203,
3639,
2583,
12,
5332,
2930,
426,
12296,
13937,
12,
3576,
18,
15330,
3631,
17528,
5332,
2930,
426,
12296,
13937,
8863,
203,
3639,
2583,
12,
266,
12296,
4... |
pragma solidity ^0.4.23;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 {
uint public _totalSupply;
function totalSupply() public view returns (uint);
function balanceOf(address who) public view returns (uint);
function transfer(address to, uint ... | Transfer multi token ERC20 | function transferMultiToken(address tokenAddress, address[] receivers, uint256[] amounts) public {
require(receivers.length == amounts.length && receivers.length != 0);
ERC20 token = ERC20(tokenAddress);
for (uint i = 0; i < receivers.length; i++) {
require(amounts[i] > 0 && rec... | 213,435 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
3309,
1147,
4232,
39,
3462,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
5002,
1345,
12,
2867,
1147,
1887,
16,
1758,
8526,
22686,
16,
2254,
5034,
8526,
30980,
13,
1071,
288,
203,
3639,
2583,
12,
8606,
6760,
18,
2469,
422,
30980,
18,
2469,
597,
22686,
18,
2469,
480,
374,
1769,
203,
3639... |
./full_match/80001/0x9f9a4f3CD309D7f4609fE82F9106d1fb529932EA/sources/contracts/staking.sol | Function to calculate the ID of the winning NFTID. Chances of winning are proportional to the amount staked by the users. Only NFTs with stakingStatus true are counted. Calculate the cumulative staking amounts of users with stakingStatus set to true | function calculateWinningNFTID() internal view returns (uint) {
uint totalStakingAmount = 0;
for (uint i = 0; i < nftTokenAddress.getNextTokenID(); i++) {
if (users[i].stakingStatus) {
totalStakingAmount += users[i].stakingAmount;
}
}
for (u... | 9,518,688 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
358,
4604,
326,
1599,
434,
326,
5657,
2093,
423,
4464,
734,
18,
1680,
6872,
434,
5657,
2093,
854,
23279,
287,
358,
326,
3844,
384,
9477,
635,
326,
3677,
18,
5098,
423,
4464,
87,
598,
384,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4604,
18049,
2093,
50,
4464,
734,
1435,
2713,
1476,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
2078,
510,
6159,
6275,
273,
374,
31,
203,
203,
3639,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
290,
1222,
1345,
1887,
... |
// SPDX-License-Identifier: MIT
// https://etherscan.io/address/0xb28f5e8da53de004e8cb2b3bfe744126a47081a5#code
pragma solidity ^0.8.7;
/// @title Base64
/// @author Brecht Devos - <brecht@loopring.org>
/// @notice Provides a function for encoding some bytes in base64
library Base64 {
string internal constant TABLE... | send back whats more then list price
| payable(msg.sender).transfer(msg.value - amount); | 1,775,857 | [
1,
4625,
348,
7953,
560,
30,
225,
1366,
1473,
600,
2323,
1898,
1508,
666,
6205,
7010,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
8843,
429,
12,
3576,
18,
15330,
2934,
13866,
12,
3576,
18,
1132,
300,
3844,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// contracts/ERC721PresetMinterPauserAutoIdUpgradeableCustomized.sol
// SPDX-License-Identifier: None
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@... | import "@openzeppelin/contracts-upgradeable/proxy/utils/ClonesUpgradeable.sol"; | import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
| 12,136,182 | [
1,
4625,
348,
7953,
560,
30,
225,
1930,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
17,
15097,
429,
19,
5656,
19,
5471,
19,
2009,
5322,
10784,
429,
18,
18281,
14432,
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,
5666,
8787,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
17,
15097,
429,
19,
5471,
19,
7957,
10784,
429,
18,
18281,
14432,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
//SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
/*
Decentralized deployment of Auctions
*/
contract auctionCreator {
address public creatorOwner; // public state variable automatically has getter function
Auction[] public deployedAuctions; // public array automatically has getter functio... | track these auctions
| deployedAuctions.push(new_auction_address); | 12,771,514 | [
1,
4625,
348,
7953,
560,
30,
225,
3298,
4259,
279,
4062,
87,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19357,
37,
4062,
87,
18,
6206,
12,
2704,
67,
69,
4062,
67,
2867,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.1;
import "./NUGGS.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
i... | * @dev Moves `amount` of tokens from `sender` to `recipient`. This internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `from` mus... | function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (from == address(0xB1aCd7f40a13022f0DD4587... | 12,237,227 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
1375,
8949,
68,
434,
2430,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
1220,
2713,
445,
353,
7680,
358,
288,
13866,
5779,
471,
848,
506,
1399,
358,
425,
18,
75,
18,
2348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
./full_match/42220/0x194f6811Ac5F2FaC8c02eAfBd70567c8597C1B69/sources/contracts/token/ImpactLabsVestingImplementation.sol | * @notice Transfers an amount of PACTs from this contract to impactLabs address @param _amount amount of the transaction/ | function transferToImpactLabs(uint256 _amount) internal nonReentrant {
if (_amount > 0) {
require(
PACT.balanceOf(address(this)) >= _amount,
"ImpactLabsVesting::transferToImpactLabs: ERR_REWARD_TOKEN_BALANCE"
);
PACT.safeTransfer(impactLabs... | 16,324,919 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2604,
18881,
392,
3844,
434,
453,
6526,
87,
628,
333,
6835,
358,
15800,
48,
5113,
1758,
632,
891,
389,
8949,
3844,
434,
326,
2492,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
774,
22683,
621,
48,
5113,
12,
11890,
5034,
389,
8949,
13,
2713,
1661,
426,
8230,
970,
288,
203,
3639,
309,
261,
67,
8949,
405,
374,
13,
288,
203,
5411,
2583,
12,
203,
7734,
453,
6526,
18,
12296,
951,
12,
2867,
... |
./partial_match/1/0xEa5eDEF1169713C425ce57Cf5c154D732b1B7af6/sources/contracts/core/RcaShieldBase.sol | * @notice Grabs full underlying balance to make frontend fetching much easier./ | function uBalance() external view returns (uint256) {
return _uBalance();
}
| 2,777,717 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
10812,
2038,
1983,
6808,
11013,
358,
1221,
15442,
16191,
9816,
15857,
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,
... | [
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,
582,
13937,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
389,
89,
13937,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x9b12f48A2C998a2Fe010db54bc45f814eF1f78b0/sources/project:/contracts/WHAPcoin.sol | remainder is just added to liquidityAmount
| uint256 remainder = fee % 2; | 844,625 | [
1,
4625,
348,
7953,
560,
30,
225,
10022,
353,
2537,
3096,
358,
4501,
372,
24237,
6275,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10022,
273,
14036,
738,
576,
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,
... |
pragma solidity ^0.4.20;
/**
* Standard Interface for ERC20 Contract
*/
contract IERC20 {
function totalSupply() public constant returns (uint _totalSupply);
function balanceOf(address _owner) public constant returns (uint balance);
function transfer(address _to, uint _value) public returns (boo... | * @notice Check `_value` tokens allowed to `_spender` by `_owner` @param _owner The address of the Owner @param _spender The address of the Spender/ | function allowance(address _owner, address _spender) constant public returns (uint256 remaining) {
return approved[_owner][_spender];
}
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint2... | 13,026,523 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2073,
1375,
67,
1132,
68,
2430,
2935,
358,
1375,
67,
87,
1302,
264,
68,
635,
1375,
67,
8443,
68,
632,
891,
389,
8443,
1021,
1758,
434,
326,
16837,
632,
891,
389,
87,
1302,
264,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1699,
1359,
12,
2867,
389,
8443,
16,
1758,
389,
87,
1302,
264,
13,
5381,
1071,
1135,
261,
11890,
5034,
4463,
13,
288,
203,
3639,
327,
20412,
63,
67,
8443,
6362,
67,
87,
1302,
264,
15533,
203,
565,
289,
203,
540,
203,
... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;
import 'hardhat/console.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '../base/ERC721FullUpgradeable.sol';
import '../base/SignatureVerifier.sol';
import '../erc721/Worlds.sol';
import '../erc721/Degens.sol';
import '../utility/DegenDa... | store the data contract | tokenMeta[_id] = DystopianToken(_class, _data);
| 5,346,034 | [
1,
4625,
348,
7953,
560,
30,
225,
1707,
326,
501,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
2781,
63,
67,
350,
65,
273,
463,
1094,
556,
2779,
1345,
24899,
1106,
16,
389,
892,
1769,
203,
2,
-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;
contract PriceOracleInterface {
/**
* @notice Gets the price of a given asset
* @dev fetches the price of a given asset
* @param asset Asset to get the price of
* @return the price scaled by 10**18, or zero if the price is not available
*/
function assetPr... | Step 2 of 2: We add the liquidator's supplyCurrent of collateral asset and subtract their checkpointedBalance (which has the desired effect of adding accrued interest from the calling user) | (err, localResults.newTotalSupply_ProtocolCollateralAsset) = addThenSub(localResults.newTotalSupply_ProtocolCollateralAsset, localResults.currentSupplyBalance_LiquidatorCollateralAsset, supplyBalance_LiquidatorCollateralAsset.principal);
| 2,476,789 | [
1,
4625,
348,
7953,
560,
30,
225,
8693,
576,
434,
576,
30,
1660,
527,
326,
4501,
26595,
639,
1807,
14467,
3935,
434,
4508,
2045,
287,
3310,
471,
10418,
3675,
9776,
329,
13937,
261,
12784,
711,
326,
6049,
5426,
434,
6534,
4078,
86,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
261,
370,
16,
1191,
3447,
18,
2704,
5269,
3088,
1283,
67,
5752,
13535,
2045,
287,
6672,
13,
273,
527,
20112,
1676,
12,
3729,
3447,
18,
2704,
5269,
3088,
1283,
67,
5752,
13535,
2045,
287,
6672,
16,
1191,
3447,
18,
2972,
3088... |
/* $$\ $$\
$$ | $$ |
$$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\ $$\ ... | the required minimum collateral, as a percentage of loan token amount
| uint256 collateralizationRate; | 1,810,748 | [
1,
4625,
348,
7953,
560,
30,
225,
326,
1931,
5224,
4508,
2045,
287,
16,
487,
279,
11622,
434,
28183,
1147,
3844,
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,
... | [
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,
3639,
2254,
5034,
4508,
2045,
287,
1588,
4727,
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,
... |
pragma solidity >=0.5.0;
//Interfaces
import './interfaces/IAddressResolver.sol';
import './interfaces/IERC20.sol';
import './interfaces/ISettings.sol';
import './interfaces/IBaseUbeswapAdapter.sol';
//Libraries
import './libraries/SafeMath.sol';
//Inheritance
import './interfaces/IInsuranceFund.sol';
contract Insu... | * @dev Withdraws from reserves @param amountUSD Amount of cUSD to withdraw @param amountTGEN Amount of TGEN (in USD) to withdraw @param user Address of user to send withdrawal to/Get number of TGEN neededSwap TGEN for cUSD | function _withdraw(uint amountUSD, uint amountTGEN, address user) internal {
address settingsAddress = ADDRESS_RESOLVER.getContractAddress("Settings");
address stableCoinAddress = ISettings(settingsAddress).getStableCoinAddress();
address baseTradegenAddress = ADDRESS_RESOLVER.getContractAdd... | 15,796,652 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
3423,
9446,
87,
628,
400,
264,
3324,
632,
891,
3844,
3378,
40,
16811,
434,
276,
3378,
40,
358,
598,
9446,
632,
891,
3844,
56,
16652,
16811,
434,
399,
16652,
261,
267,
587,
9903,
13,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
1918,
9446,
12,
11890,
3844,
3378,
40,
16,
2254,
3844,
56,
16652,
16,
1758,
729,
13,
2713,
288,
203,
3639,
1758,
1947,
1887,
273,
11689,
10203,
67,
17978,
2204,
18,
588,
8924,
1887,
2932,
2628,
8863,
203,
3639,
175... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
import "..//utility/Utils.sol";
import "..//utility/Time.sol";
import "..//utility/interfaces... | * @dev removes a program @param poolToken the pool token representing the rewards pool/ | function removePoolProgram(IDSToken poolToken) external override onlyManager {
require(_pools.remove(address(poolToken)), "ERR_POOL_NOT_PARTICIPATING");
delete _programs[poolToken];
emit PoolProgramRemoved(poolToken);
}
| 13,006,093 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7157,
279,
5402,
632,
891,
2845,
1345,
326,
2845,
1147,
5123,
326,
283,
6397,
2845,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
2864,
9459,
12,
734,
882,
969,
2845,
1345,
13,
3903,
3849,
1338,
1318,
288,
203,
3639,
2583,
24899,
27663,
18,
4479,
12,
2867,
12,
6011,
1345,
13,
3631,
315,
9712,
67,
20339,
67,
4400,
67,
15055,
2871,
2579,
28054... |
pragma solidity ^0.4.23;
// File: contracts/erc/erc20/ERC20Interface.sol
/**
* @title ERC-20 Token Standard.
* @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md.
*/
contract ERC20Interface {
/**
* @dev MUST trigger when tokens are transferred, including zero value transfers.
* @dev A tok... | * @notice Transfers `_value` amount of tokens from address `_from` to address `_to`. @param _from The address of the sender. @param _to The address of the recipient. @param _value The amount of token to be transferred. @return Whether the transfer was successful or not./ | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
_balance[_from] = _balance[_from].sub(_value);
_balance[_to] = _balance[_to].add(_value);
_allowed[_from][msg.sender] = _allowed[_from][msg.sender].sub(_value);
emit Transfer(_fr... | 6,593,092 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2604,
18881,
1375,
67,
1132,
68,
3844,
434,
2430,
628,
1758,
1375,
67,
2080,
68,
358,
1758,
1375,
67,
869,
8338,
632,
891,
389,
2080,
1021,
1758,
434,
326,
5793,
18,
632,
891,
389,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
203,
565,
389,
12296,
63,
67,
2080,
65,
... |
/**
*Submitted for verification at Etherscan.io on 2021-10-18
*/
// File: @openzeppelin/contracts/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can ... | * @notice Validates log signature, withdrawer address then sends the correct tokenId, amount to withdrawer callable only by manager @param rootToken Token which gets withdrawn @param log Valid ChainExit log from child chain/ | function exitTokens(
address,
address rootToken,
bytes memory log
) public override only(MANAGER_ROLE) {
RLPReader.RLPItem[] memory logRLPList = log.toRlpItem().toList();
RLPReader.RLPItem[] memory logTopicRLPList = logRLPList[1].toList();
bytes memory logData = l... | 8,072,209 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2364,
815,
613,
3372,
16,
598,
9446,
264,
1758,
1508,
9573,
326,
3434,
1147,
548,
16,
3844,
358,
598,
9446,
264,
4140,
1338,
635,
3301,
632,
891,
1365,
1345,
3155,
1492,
5571,
598,
9446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2427,
5157,
12,
203,
3639,
1758,
16,
203,
3639,
1758,
1365,
1345,
16,
203,
3639,
1731,
3778,
613,
203,
565,
262,
1071,
3849,
1338,
12,
19402,
67,
16256,
13,
288,
203,
3639,
534,
14461,
2514,
18,
54,
48,
1102,
874,
852... |
./full_match/3/0xAEaB6350C6fa4985006bD94A99283626cc7F30b4/sources/BEP20.sol | * @dev Moves tokens `amount` from `sender` to `recipient`. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`./ | function _transfer(
address sender,
address recipient,
uint256 amount
)
internal
virtual
{
require(
sender != address(0x0)
);
require(
recipient != address(0x0)
);
_balances[sender] =
_balances[... | 8,116,219 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
10829,
2430,
1375,
8949,
68,
628,
1375,
15330,
68,
358,
1375,
20367,
8338,
7377,
1282,
279,
288,
5912,
97,
871,
18,
29076,
30,
300,
1375,
15330,
68,
2780,
506,
326,
3634,
1758,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
203,
3639,
2713,
203,
3639,
5024,
203,
565,
288,
203,
3639,
2583,
12,
203,
5411,
5793,
480,
1758,
12,
2... |