file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/3/0xE34E9689401Bc5c684F1D3964aeA4f524503af35/sources/browser/TaxaToken.sol | * @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/ | function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
require(_to != address(0));
require(_to != address(this));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_valu... | 8,135,085 | [
1,
5912,
2430,
628,
1245,
1758,
358,
4042,
225,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
225,
389,
869,
1758,
1021,
1758,
1492,
1846,
2545,
358,
7412,
358,
225,
389,
1132,
2254,
5034,
326,
3844,
434,
2430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
22... |
pragma solidity 0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than re... | * @title SafeMath @dev Math operations with safety checks that revert on error/ | library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint... | 131,706 | [
1,
9890,
10477,
225,
2361,
5295,
598,
24179,
4271,
716,
15226,
603,
555,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
203,
225,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,
203,
565,
289... |
/**
*Submitted for verification at Etherscan.io on 2021-12-09
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC20 {
function totalSupply() external v... | Buy FeeSell FeeOriginal Fee | contract Snoopyinu is Context, IERC20, Ownable {
using SafeMath for uint256;
string private constant _name = "Snoopy Inu";
string private constant _symbol = "Snoopy";
uint8 private constant _decimals = 9;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tO... | 7,964,054 | [
1,
38,
9835,
30174,
55,
1165,
30174,
8176,
30174,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
2135,
1101,
6860,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
377,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
533,
3238,
5381,
389,
529,
273,
315,
55,
2135,
1101,
657,
89,
14... |
./full_match/1/0xf917147d8ED7b57C107D36576f4cCDe410ae29B6/sources/contracts/DToken.sol | * @dev Returns the address of the lending pool where this aToken is used/ | function POOL() public view returns (IMoneyPool) {
return _moneyPool;
}
| 9,716,177 | [
1,
1356,
326,
1758,
434,
326,
328,
2846,
2845,
1625,
333,
279,
1345,
353,
1399,
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,
225,
445,
13803,
1741,
1435,
1071,
1476,
1135,
261,
3445,
265,
402,
2864,
13,
288,
203,
565,
327,
389,
2586,
402,
2864,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0x603AF458e784A90b752f29D5F53AAf1c5ba3a987/sources/contracts/SuiCityPassports.sol | bool onlyWhitelists | contract Sgd is ERC721Drop {
constructor(
string memory _name,
string memory _symbol,
address _royaltyRecipient,
uint128 _royaltyBps,
address _primarySaleRecipient
function tokenURI(
uint256 _tokenId
pragma solidity ^0.8.0;
) ERC721Drop(_name, _symbol, msg.se... | 5,701,181 | [
1,
6430,
1338,
2888,
305,
292,
1486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
19016,
353,
4232,
39,
27,
5340,
7544,
288,
203,
565,
3885,
12,
203,
3639,
533,
3778,
389,
529,
16,
203,
3639,
533,
3778,
389,
7175,
16,
203,
3639,
1758,
389,
3800,
15006,
18241,
16,
203,
3639,
2254,
10392,
389,
3800,
... |
pragma solidity >=0.4.21 <0.7.0;
import "./Ownable.sol";
// The contract inherits from Onlyowner, a standardize Smart contract used to create a modifier which allows only the deployer (auctioneer) of the contract to call the function
contract Marketplace is Ownable {
enum BidStatus {Open, Closed}
// S... | We update the higest bid
| SellerToOffer[seller][index].Price = msg.value; | 7,289,948 | [
1,
3218,
1089,
326,
366,
360,
395,
9949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
4352,
749,
774,
10513,
63,
1786,
749,
6362,
1615,
8009,
5147,
273,
1234,
18,
1132,
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... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* Imports
*/
import "./GSN/Context.sol";
import "./token/EIP20/IEIP20.sol";
import "./token/EIP20/SafeEIP20.sol";
import "./utils/ReentrancyGuard.sol";
/**
* Smart contract implementing an investment fund logic.
*/
contract InvestmentFund is Context, Ree... | Events for funds returned by fund manager to all investors after investment | event FundManagerFundsReturnedToAllInvestors();
| 14,116,094 | [
1,
3783,
364,
284,
19156,
2106,
635,
284,
1074,
3301,
358,
777,
2198,
395,
1383,
1839,
2198,
395,
475,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
478,
1074,
1318,
42,
19156,
22360,
774,
1595,
3605,
395,
1383,
5621,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
// Contract setup ====================
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Ownable() {
owner = msg.sender;
}
modifier onlyOwner() {
require(msg.sender == own... | for doubled profit
| plyrRnds_[_pID][_rID].genWithdraw = plyr_[_pID].gen.add(plyrRnds_[_pID][_rID].genWithdraw); | 2,160,687 | [
1,
1884,
1645,
72,
450,
7216,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
293,
715,
86,
54,
82,
2377,
67,
63,
67,
84,
734,
6362,
67,
86,
734,
8009,
4507,
1190,
9446,
273,
293,
715,
86,
67,
63,
67,
84,
734,
8009,
4507,
18,
1289,
12,
1283,
86,
54,
82,
2377,
67,
63,
67,
84,
734,
6362,
67,
... |
./partial_match/4/0x64fD3aea4Df3b76348a8cC9F2A18930fD6927738/sources/RAYv2.sol | @dev Only called on mints | {
uint totalPortfolioBalance = getPortfolioTotalBalance(opportunities, underlying, roboTokenAddress, raised, availableUnderlying, ExchangeRates.MINT);
return calculatePortfolioNAV(totalPortfolioBalance, raised, roboTokenAddress);
}
| 8,750,865 | [
1,
3386,
2566,
603,
312,
28142,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
288,
203,
203,
565,
2254,
2078,
17163,
13937,
273,
11036,
10270,
5269,
13937,
12,
556,
655,
318,
1961,
16,
6808,
16,
721,
1075,
1345,
1887,
16,
11531,
16,
2319,
14655,
6291,
16,
18903,
20836,
18,
49,
3217,
1769,
203,
203,
56... |
./full_match/137/0xABBB4d0074C0361fBf7e07FD3d4d4e9cCCB9128f/sources/contracts/PrimexDNS/PrimexDNS.sol | * @inheritdoc IPrimexDNS/ | function setDexAdapter(address _newAdapterAddress) external override onlyRole(BIG_TIMELOCK_ADMIN) {
_require(
IERC165Upgradeable(_newAdapterAddress).supportsInterface(type(IDexAdapter).interfaceId),
Errors.ADDRESS_NOT_SUPPORTED.selector
);
dexAdapter = _newAdapterAddr... | 4,668,690 | [
1,
36,
10093,
467,
2050,
381,
338,
11602,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
40,
338,
4216,
12,
2867,
389,
2704,
4216,
1887,
13,
3903,
3849,
1338,
2996,
12,
19044,
67,
4684,
6589,
67,
15468,
13,
288,
203,
3639,
389,
6528,
12,
203,
5411,
467,
654,
39,
28275,
10784,
429,
24899,
2704,
4216,
... |
./partial_match/1/0x91Bfce317111F14737b6f5C892785C2aAF4Dfd7b/sources/ScotchMarketplace.sol | change beneficiary of the Scotch Marketplace | function changeBeneficiary(BeneficiaryMode mode, address payable recipient) public virtual onlyOwner {
if (mode == BeneficiaryMode.None)
require(recipient == address(0), "Beneficiar mode None requires zero address for recipient!");
else
require(recipient != address(0), "Beneficiary recipient addre... | 3,671,429 | [
1,
3427,
27641,
74,
14463,
814,
434,
326,
2850,
352,
343,
6622,
24577,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2549,
38,
4009,
74,
14463,
814,
12,
38,
4009,
74,
14463,
814,
2309,
1965,
16,
1758,
8843,
429,
8027,
13,
1071,
5024,
1338,
5541,
288,
203,
565,
309,
261,
3188,
422,
605,
4009,
74,
14463,
814,
2309,
18,
7036,
13,
203,
... |
./full_match/1/0x6b44B4307aCB2356DE98Db6c004C1cB35686b001/sources/browser/Component.sol | * @dev Collection of functions related to the address type/ | library Address {
pragma solidity 0.6.12;
function isContract(address account) internal view returns (bool) {
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
return (codehash != accountHash && codehash != 0x0);
}
asse... | 16,514,850 | [
1,
2532,
434,
4186,
3746,
358,
326,
1758,
618,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
5267,
288,
203,
683,
9454,
18035,
560,
374,
18,
26,
18,
2138,
31,
203,
203,
203,
565,
445,
353,
8924,
12,
2867,
2236,
13,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
1731,
1578,
981,
2816,
31,
203,
3639,
1731,
1578,... |
./full_match/5/0x9B65F6C78101c2E81E7aE0ff832377FB7D27Bc89/sources/contracts/Staking.sol | If address already has ERC721 Token/s staked, calculate the rewards. For every new Token Id in param transferFrom user to this Smart Contract, increment the amountStaked and map msg.sender to the Token Id of the staked Token to later send back on withdrawal. Finally give timeOfLastUpdate the value of now. Transfer the... | function stake(uint256[] calldata _tokenIds) external {
require(_tokenIds.length != 0, "Staking: No tokenIds provided");
for (uint256 i; i < _tokenIds.length; ++i) {
require(
nftCollection.ownerOf(_tokenIds[i]) == msg.sender,
"Ownable: caller is not the o... | 7,059,044 | [
1,
2047,
1758,
1818,
711,
4232,
39,
27,
5340,
3155,
19,
87,
384,
9477,
16,
4604,
326,
283,
6397,
18,
2457,
3614,
394,
3155,
3124,
316,
579,
7412,
1265,
729,
358,
333,
19656,
13456,
16,
5504,
326,
3844,
510,
9477,
471,
852,
1234,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
384,
911,
12,
11890,
5034,
8526,
745,
892,
389,
2316,
2673,
13,
3903,
288,
203,
3639,
2583,
24899,
2316,
2673,
18,
2469,
480,
374,
16,
315,
510,
6159,
30,
2631,
1147,
2673,
2112,
8863,
203,
203,
3639,
364,
261,
11890,
... |
pragma solidity ^0.4.13;
import './math/SafeMath.sol';
import './time/Clock.sol';
import './FiatBase.sol';
import './ownership/Ownable.sol';
import './LibSort.sol';
contract OpenBids is Ownable {
using SafeMath for uint256;
// beware: constant is not enforced
uint constant uintMAX = 2**256-1;
struct Bid {... | Bid on the auction with the value sent together with this transaction. The value will only be refunded if the auction is not won. The keyword payable is required for the function to be able to receive Ether. Revert the call if the bidding period is over. | function bid(uint _fiat) payable {
require(minimumEth <= msg.value);
uint balanceThis = fiatcoin.balanceOf(this);
require(amountFiat <= balanceThis);
require(false == ended);
uint time_now = clock.get_time();
require(time_now >= auctionStart );
require(time_now <= (auctionSt... | 12,619,554 | [
1,
17763,
603,
326,
279,
4062,
598,
326,
460,
3271,
9475,
598,
333,
2492,
18,
1021,
460,
903,
1338,
506,
1278,
12254,
309,
326,
279,
4062,
353,
486,
8462,
18,
1021,
4932,
8843,
429,
353,
1931,
364,
326,
445,
358,
506,
7752,
358,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
225,
445,
9949,
12,
11890,
389,
22056,
270,
13,
8843,
429,
288,
203,
1377,
2583,
12,
15903,
41,
451,
1648,
1234,
18,
1132,
1769,
203,
1377,
2254,
11013,
2503,
273,
7314,
270,
12645,
18,
12296,
951,
12,
2211,
1769,
203,
1377,
2583... |
pragma solidity ^0.4.0;
interface ERC20 {
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(address to,... | 25% price flip increase
| rareItemPrice[rareId] = (ethCost * 5) / 4; | 1,496,684 | [
1,
2947,
9,
6205,
9668,
10929,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
25671,
1180,
5147,
63,
354,
266,
548,
65,
273,
261,
546,
8018,
380,
1381,
13,
342,
1059,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.6.12;
//
// _░▒███████
// ░██▓▒░░▒▓██
// ██▓▒░__░▒▓██___██████
// ██▓▒░____░▓███▓__░▒▓██
// ██▓▒░___░▓██▓_____░▒▓██
// ██▓▒░_______________░▒▓█... | number of assets available of any type | uint256 public totalNumberAvailable;
| 6,043,697 | [
1,
2696,
434,
7176,
2319,
434,
1281,
618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
2078,
1854,
5268,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.6.0;
import "../utils/OnlyOwner.sol";
/**
* @dev Maps token symbols to contract and migartion addreses addresses.
* If no contract address, not supported.
* If no migration address, is a native swap.
* If both a contract address and a migration address, uses an external swap.
*/
contract Mappi... | * @dev Maps token symbols to contract and migartion addreses addresses. If no contract address, not supported. If no migration address, is a native swap. If both a contract address and a migration address, uses an external swap./ | contract Mappings is OnlyOwner {
struct Details {
bool _isERC20;
address _contractAddress;
address _migrationAddress;
}
mapping(string => Details) public swapDetails;
function getDetails(string memory symbol) public view returns (bool, address, address) {
require(swapDe... | 13,089,519 | [
1,
8903,
1147,
7963,
358,
6835,
471,
312,
360,
485,
285,
527,
455,
281,
6138,
18,
971,
1158,
6835,
1758,
16,
486,
3260,
18,
971,
1158,
6333,
1758,
16,
353,
279,
6448,
7720,
18,
971,
3937,
279,
6835,
1758,
471,
279,
6333,
1758,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1635,
4675,
353,
5098,
5541,
288,
203,
203,
565,
1958,
21897,
288,
203,
3639,
1426,
389,
291,
654,
39,
3462,
31,
203,
3639,
1758,
389,
16351,
1887,
31,
203,
3639,
1758,
389,
15746,
1887,
31,
203,
565,
289,
203,
565,
2874,
... |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/AccessControl.sol)
pragma solidity ^0.8.0;
import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/util... | * @dev Get member backer asset @param account Member address @param borrower Borrower address @return trustAmount vouchingAmount lockedStake. Trust amount, vouch amount, and locked stake amount/ | function getBorrowerAsset(address account, address borrower)
public
view
override
returns (
uint256 trustAmount,
uint256 vouchingAmount,
uint256 lockedStake
)
{
trustAmount = members[account].creditLine.borrowers[borrower];
... | 528,795 | [
1,
967,
3140,
1473,
264,
3310,
282,
2236,
8596,
1758,
282,
29759,
264,
605,
15318,
264,
1758,
225,
327,
10267,
6275,
331,
7309,
310,
6275,
8586,
510,
911,
18,
20246,
3844,
16,
331,
7309,
3844,
16,
471,
8586,
384,
911,
3844,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15318,
264,
6672,
12,
2867,
2236,
16,
1758,
29759,
264,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
3849,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
10267,
6275,
16,
203,
5411,
2254,
5034,
331,
7309,
310,
6... |
./full_match/4/0xB34756f8D9682ab6C26F77f9461207a65c52c8bC/sources/contracts/IVaultHandler.sol | @notice Id To Vault | mapping(uint256 => Vault) public vaults;
| 12,419,647 | [
1,
548,
2974,
17329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
6770,
12,
11890,
5034,
516,
17329,
13,
1071,
9229,
87,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/1/0xd187C6C8C6aeE0F021F92cB02887A21D529e26cb/sources/home/hackfs/wfil-token/contracts/WFIL.sol | @notice Fallback function @dev Added not payable to revert transactions not matching any other function which send value | fallback() external {
revert("WFIL: function not matching any other");
}
| 3,081,875 | [
1,
12355,
445,
225,
25808,
486,
8843,
429,
358,
15226,
8938,
486,
3607,
1281,
1308,
445,
1492,
1366,
460,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
5922,
1435,
3903,
288,
203,
3639,
15226,
2932,
59,
10474,
30,
445,
486,
3607,
1281,
1308,
8863,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma experimental ABIEncoderV2;
import "./Ownable.sol";
import "./SafeMath.sol";
/// PubFree contract.
///
/// TODO: missing comments.
contract PubFree is Ownable {
using SafeMath for uint256;
/// Abstraction of a book published on PubFree.
///
/// Life of a Book:
/// - Published by ... | Author publishes a book. TODO: missing comments. Add created Book to Author. TODO: Assuming there are no duplicate books published. StatusOk(); | function PublishBook(string title, uint price, string password) external returns (bool) {
uint authorId = _getUserIdCreateIfNotExist();
User storage author = users[authorId];
uint newBookId = _makeBook(title, price, password);
author.publishedBooks.push(newBookId);
... | 13,009,963 | [
1,
3594,
17060,
279,
6978,
18,
2660,
30,
3315,
5678,
18,
1436,
2522,
20258,
358,
6712,
18,
2660,
30,
4725,
21249,
1915,
854,
1158,
6751,
6978,
87,
9487,
18,
2685,
8809,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
9761,
9084,
12,
1080,
2077,
16,
2254,
6205,
16,
533,
2201,
13,
3903,
1135,
261,
6430,
13,
288,
203,
3639,
2254,
2869,
548,
273,
389,
588,
10502,
1684,
2047,
8418,
5621,
203,
203,
3639,
2177,
2502,
2869,
273,
3677,
63,
... |
./full_match/100/0xd2FDc59405d1D6B5F293AB3E8fC2fC62D110Ecd6/sources/contracts/OrbisMain.sol | TODO: Finalize function to allow community admins to make someone a moderator | ) public onlyAdmin(_communityID) {
uint _membershipID = _getMembership(_communityID, _member);
function invite(
uint _communityID,
address _member
}
function setModerator(
uint _communityID,
address _member
if(_membershipID == 0) {
_crea... | 14,267,225 | [
1,
6241,
30,
30740,
445,
358,
1699,
19833,
31116,
358,
1221,
18626,
279,
681,
7385,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
1338,
4446,
24899,
20859,
734,
13,
288,
203,
3639,
2254,
389,
19679,
734,
273,
389,
588,
13447,
24899,
20859,
734,
16,
389,
5990,
1769,
203,
565,
445,
19035,
12,
203,
3639,
2254,
389,
20859,
734,
16,
7010,
3639,
1... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;
// ----------------------------------------------------------------------------
// Tov token contract - Mainnet
//
// Deployed to :
// Symbol : TOV
// Name : Tov
// Total supply: 70000000
// Decimals : 18
//
// ------------------------------------... | ---------------------------------------------------------------------------- Owned contract ---------------------------------------------------------------------------- | contract Owned {
address public owner;
address public newOwner;
event OwnershipTransferred(address indexed _from, address indexed _to);
constructor() {
owner = 0x5968f23FEcc232715f9DF4c6CeB1069B6554bbEd;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
... | 10,080,248 | [
1,
5802,
7620,
14223,
11748,
6835,
8879,
13849,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14223,
11748,
288,
203,
565,
1758,
1071,
3410,
31,
203,
565,
1758,
1071,
394,
5541,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
389,
2080,
16,
1758,
8808,
389,
869,
1769,
203,
203,
203,
565,
3885... |
./full_match/1/0x09547C53FF7EC3ccA0E7905a406cD862c12d08f8/sources/contracts/Routerv2.sol | calculates the CREATE2 address for a pair without making any external callshex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' init code hash | function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
(address token0, address token1) = sortTokens(tokenA, tokenB);
pair = address(uint(keccak256(abi.encodePacked(
hex'ff',
factory,
keccak256(abi.enco... | 16,464,771 | [
1,
12780,
815,
326,
13278,
22,
1758,
364,
279,
3082,
2887,
10480,
1281,
3903,
745,
674,
338,
11,
10525,
73,
28,
1077,
9452,
4700,
30234,
1403,
28,
70,
26,
74,
8285,
6564,
8285,
7598,
29,
69,
5520,
74,
24,
4630,
7358,
6669,
28,
449... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3082,
1290,
12,
2867,
3272,
16,
1758,
1147,
37,
16,
1758,
1147,
38,
13,
2713,
16618,
1135,
261,
2867,
3082,
13,
288,
203,
3639,
261,
2867,
1147,
20,
16,
1758,
1147,
21,
13,
273,
1524,
5157,
12,
2316,
37,
16,
1147,
3... |
pragma solidity ^0.5.2;
contract Geolocation {
address private creator;
enum Category {None, Hospital, Gym, Pharmacy}
uint256 public numberOfParticipants = 0;
mapping (address => uint256) addressToParticipantID;
mapping (uint256 => bool) public sharingEnabled;
mapping (uint256 => mapping(uint... | Check if msg.sender is a new Participant
| if (addressToParticipantID[msg.sender] == 0) { | 5,384,944 | [
1,
1564,
309,
1234,
18,
15330,
353,
279,
394,
31333,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
2867,
774,
22540,
734,
63,
3576,
18,
15330,
65,
422,
374,
13,
288,
10402,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x57A88f6e773eE3901F20334bf0ED962D6479ABb6/sources/pacman/pacman.sol | Mapeo para almacenar las puntuaciones de los jugadores
| mapping(address => uint256) public playerScores; | 5,565,264 | [
1,
49,
1273,
83,
12602,
524,
5821,
6804,
27596,
293,
25348,
19861,
281,
443,
22148,
525,
637,
361,
3485,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
7291,
20037,
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,
-1... |
./full_match/1/0x8B7A8CacE30cFB5570a6cff62E95e4c82DB52EBB/sources/Pika_Router1.sol | **** SWAP (supporting fee-on-transfer tokens) **** requires the initial amount to have already been sent to the first pair | function _swapSupportingFeeOnTransferTokens(address[] memory path, address _to) internal virtual {
for (uint i; i < path.length - 1; i++) {
(address input, address output) = (path[i], path[i + 1]);
(address token0,) = PikatokenswapV1Library.sortTokens(input, output);
IPik... | 2,954,409 | [
1,
18746,
2203,
261,
13261,
310,
14036,
17,
265,
17,
13866,
2430,
13,
225,
4991,
326,
2172,
3844,
358,
1240,
1818,
2118,
3271,
358,
326,
1122,
3082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
22270,
6289,
310,
14667,
1398,
5912,
5157,
12,
2867,
8526,
3778,
589,
16,
1758,
389,
869,
13,
2713,
5024,
288,
203,
3639,
364,
261,
11890,
277,
31,
277,
411,
589,
18,
2469,
300,
404,
31,
277,
27245,
288,
203,
541... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
... | * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension/ | contract ERC721Enumerable is ERC721Basic {
function totalSupply() public view returns (uint256);
function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId);
function tokenByIndex(uint256 _index) public view returns (uint256);
}
}
| 12,560,597 | [
1,
654,
39,
17,
27,
5340,
3858,
17,
42,
20651,
1523,
3155,
8263,
16,
3129,
16836,
2710,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
27,
5340,
3572,
25121,
353,
4232,
39,
27,
5340,
8252,
288,
203,
225,
445,
2078,
3088,
1283,
1435,
1071,
1476,
1135,
261,
11890,
5034,
1769,
203,
225,
445,
1147,
951,
5541,
21268,
12,
2867,
389,
8443,
16,
2254,
50... |
/**
*Submitted for verification at Etherscan.io on 2022-02-01
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS ... | * @dev See {IERC721-isApprovedForAll}./ | function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
| 2,096,811 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
291,
31639,
1290,
1595,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
353,
31639,
1290,
1595,
12,
2867,
3410,
16,
1758,
3726,
13,
1071,
1476,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
2463,
389,
9497,
12053,
4524,
63,
8443,
6362,
9497,
15533,
203,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100... |
./full_match/4/0x1d50a1bAfEa591435101E0486bB6af3211c764Cd/sources/ballot.sol | candidate's votecount
| uint candidateVoteCount; | 686,511 | [
1,
19188,
1807,
331,
352,
557,
592,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
11890,
225,
5500,
19338,
1380,
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,
... |
pragma solidity ^0.4.18;
// クラウドファンディングのコントラクト
contract CrowdFunding {
// オーナーのモデル
struct Owner {
// オーナーのアドレス
address mAddress;
}
// 投資家のモデル
struct Investor {
// 投資家のアドレス
address mAddress;
// 投資額
uint mAmount;
}
// キャンペーンのモデル
struct Pr... | キャンペーンのモデル ステータス 投資の達成額 投資の目標額 締切日 投資の最低額 | struct Promotion {
Status mStatus;
uint mTotalAmount;
uint mGoalAmount;
uint mFinishDate;
uint mMinAmount;
}
| 5,400,974 | [
1,
164,
229,
260,
164,
230,
101,
164,
230,
116,
164,
230,
253,
164,
230,
125,
164,
230,
116,
164,
228,
111,
164,
230,
100,
164,
230,
234,
164,
230,
109,
225,
164,
229,
122,
164,
230,
233,
164,
230,
125,
164,
229,
128,
164,
229... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
17552,
8240,
288,
203,
3639,
2685,
312,
1482,
31,
203,
3639,
2254,
312,
5269,
6275,
31,
203,
3639,
2254,
312,
27716,
6275,
31,
203,
3639,
2254,
312,
11641,
1626,
31,
203,
3639,
2254,
312,
2930,
6275,
31,
203,
565,
289,... |
./full_match/432204/0xDD23b1253020B8C66DB630fc091D1cC3E984A878/sources/contracts/TradePairs.sol | * @notice Returns order details given the trader and the clientOrderId @param _trader user's address @param _clientOrderId client Order id assigned by the user @return Order Order Struct/ | function getOrderByClientOrderId(
address _trader,
bytes32 _clientOrderId
) external view override returns (Order memory) {
return orderMap[clientOrderIDMap[_trader][_clientOrderId]];
}
| 16,381,178 | [
1,
1356,
1353,
3189,
864,
326,
1284,
765,
471,
326,
1004,
21303,
565,
389,
313,
1143,
225,
729,
1807,
1758,
565,
389,
2625,
21303,
282,
1004,
4347,
612,
6958,
635,
326,
729,
327,
225,
4347,
225,
4347,
7362,
19,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11973,
858,
1227,
21303,
12,
203,
3639,
1758,
389,
313,
1143,
16,
203,
3639,
1731,
1578,
389,
2625,
21303,
203,
565,
262,
3903,
1476,
3849,
1135,
261,
2448,
3778,
13,
288,
203,
3639,
327,
1353,
863,
63,
2625,
2448,
734,... |
./partial_match/1/0x000000F20032b9e171844B00EA507E11960BD94a/sources/lib/solady/src/tokens/ERC1155.sol | @solidity memory-safe-assembly Revert if `to` is the zero address. Increase and store the updated balance of `to`. | assembly {
let to_ := shl(96, to)
if iszero(to_) {
revert(0x1c, 0x04)
}
{
mstore(0x20, _ERC1155_MASTER_SLOT_SEED)
mstore(0x14, to)
mstore(0x00, id)
let toBalanceSlot := keccak256(0x00,... | 2,652,835 | [
1,
36,
30205,
560,
3778,
17,
4626,
17,
28050,
868,
1097,
309,
1375,
869,
68,
353,
326,
3634,
1758,
18,
657,
11908,
471,
1707,
326,
3526,
11013,
434,
1375,
869,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
19931,
288,
203,
5411,
2231,
358,
67,
519,
699,
80,
12,
10525,
16,
358,
13,
203,
5411,
309,
353,
7124,
12,
869,
67,
13,
288,
203,
7734,
15226,
12,
20,
92,
21,
71,
16,
374,
92,
3028,
13,
203,
5411,
289,
203,
5411,
288,... |
pragma solidity ^0.8.0;
// Copyright 2020 Keyko GmbH.
// This product includes software developed at BigchainDB GmbH and Ocean Protocol
// SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
// Code is Apache-2.0 and docs are CC-BY-4.0
import './AgreementStoreLibrary.sol';
import '../conditions/ConditionStoreManager.... | * @param _templateId is the address of the agreement template. @return the agreement IDs for a given DID/ | function getAgreementIdsForTemplateId(address _templateId)
public
view
returns (bytes32[] memory)
{
return agreementList.templateIdToAgreementIds[_templateId];
}
| 2,473,893 | [
1,
67,
3202,
548,
353,
326,
1758,
434,
326,
19602,
1542,
18,
327,
326,
19602,
7115,
364,
279,
864,
463,
734,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
17420,
2673,
1290,
2283,
548,
12,
2867,
389,
3202,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
3890,
1578,
8526,
3778,
13,
203,
565,
288,
203,
3639,
327,
19602,
682,
18,
3202,
28803,
17420,
267... |
/*
Copyright 2017 ZeroEx Intl.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | @dev Verifies that an order signature is valid. @param signer address of signer. @param hash Signed Keccak-256 hash. @param v ECDSA signature parameter v. @param r ECDSA signature parameters r. @param s ECDSA signature parameters s. @return Validity of order signature. | function isValidSignature(
address signer,
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s)
public
pure
returns (bool)
{
return signer == ecrecover(
keccak256("\x19Ethereum Signed Message:\n32", hash),
v,
r,
... | 2,051,091 | [
1,
19802,
716,
392,
1353,
3372,
353,
923,
18,
225,
10363,
1758,
434,
10363,
18,
225,
1651,
16724,
1475,
24410,
581,
17,
5034,
1651,
18,
225,
331,
7773,
19748,
3372,
1569,
331,
18,
225,
436,
7773,
19748,
3372,
1472,
436,
18,
225,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
4908,
5374,
12,
203,
3639,
1758,
10363,
16,
203,
3639,
1731,
1578,
1651,
16,
203,
3639,
2254,
28,
331,
16,
203,
3639,
1731,
1578,
436,
16,
203,
3639,
1731,
1578,
272,
13,
203,
3639,
1071,
203,
3639,
16618,
203,
3639,
... |
./partial_match/1/0x1DfF114dfBBcaedcA5f0d46DC8e9615dfC2645bd/sources/MigrationTool.sol | Deposit into new position | TokenUtils.safeApprove(targetParams.underlyingToken, address(alchemist), underlyingWithdrawn);
| 4,021,711 | [
1,
758,
1724,
1368,
394,
1754,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3155,
1989,
18,
4626,
12053,
537,
12,
3299,
1370,
18,
9341,
6291,
1345,
16,
1758,
12,
287,
1036,
376,
3631,
6808,
1190,
9446,
82,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity >=0.8.4;
// SPDX-License-Identifier: MIT
import "hardhat/console.sol";
error CheesecakePortalError();
contract CheesecakePortal {
uint256[3] private cakeCount;
address payable public owner;
Cheesecake[] private cheesecakes;
event NewCheesecake(
string name,
string mes... | Returns how many cheesecakes were donated | function getCakeCount() public view returns (uint256[3] memory) {
return cakeCount;
}
| 14,093,724 | [
1,
1356,
3661,
4906,
19315,
281,
557,
3223,
4591,
2727,
690,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1927,
911,
1380,
1435,
1071,
1476,
1135,
261,
11890,
5034,
63,
23,
65,
3778,
13,
288,
203,
3639,
327,
276,
911,
1380,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/********************************
* Welcome to the *
* EVER RISING TOKEN *
* *
* $EVERTOKEN *
* *
* New Automatic *
* buyback mechanics *
* *
* Official ch... | * @dev Initializes the contract setting the deployer as the initial owner./ | constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
womanpower = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
| 14,875,574 | [
1,
9685,
326,
6835,
3637,
326,
7286,
264,
487,
326,
2172,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1832,
2713,
288,
203,
565,
1758,
1234,
12021,
273,
389,
3576,
12021,
5621,
203,
565,
389,
8443,
273,
1234,
12021,
31,
203,
565,
341,
362,
304,
12238,
273,
1234,
12021,
31,
203,
565,
3626,
14223,
9646,
5310,
1429,
4193,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.7.0 <0.9.0;
import "./test.sol";
import "../contracts/Dao.sol";
import "../contracts/DaoContract.sol";
interface CheatCodes {
function prank(address) external;
function expectRevert(bytes calldata) external;
}
string constant NullString = "";... | ============ Test setters ============ | function testSetMaxUsers() public {
uint32 newMaxUsers = 500000;
dao.setMaxUsers(newMaxUsers);
assertEq(dao.getMaxUsers(), newMaxUsers);
dao.setMaxUsers(gMaxUsers);
assertEq(dao.getMaxUsers(), gMaxUsers);
}
| 14,053,758 | [
1,
14468,
7766,
25627,
422,
1432,
631,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1842,
30643,
6588,
1435,
1071,
288,
203,
3639,
2254,
1578,
394,
2747,
6588,
273,
1381,
11706,
31,
203,
3639,
15229,
18,
542,
2747,
6588,
12,
2704,
2747,
6588,
1769,
203,
3639,
1815,
19508,
12,
2414,
83,
18,
588,
2747,
6... |
pragma solidity 0.5.16;
import "./AccessControl.sol";
contract LandModel is AccessControl {
/*** EVENTS ***/
/// @dev The Creation event is fired whenever new piece of land comes into existence. This obviously
/// includes any time land is created through the _createland method
event Creation(addres... | @dev A mapping from landIDs to an address that has been approved to call transferFrom(). Each land can only have one approved address for transfer at any time. A zero value means no approval is outstanding. | mapping (uint256 => address) public landIndexToApproved;
| 1,765,089 | [
1,
37,
2874,
628,
19193,
5103,
358,
392,
1758,
716,
711,
2118,
20412,
358,
745,
225,
7412,
1265,
7675,
8315,
19193,
848,
1338,
1240,
1245,
20412,
1758,
364,
7412,
225,
622,
1281,
813,
18,
432,
3634,
460,
4696,
1158,
23556,
353,
20974,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
5034,
516,
1758,
13,
1071,
19193,
1016,
774,
31639,
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,
... |
./partial_match/42220/0x7ef2EA0939Fa35f3fA78616E3E12246324739203/sources/lib/staked-celo/contracts/Manager.sol | * @notice The set of deprecated groups. These are groups that should no longer receive new votes from deposits, but still need to be kept track of because the Account contract is still voting for them./ | EnumerableSet.AddressSet private deprecatedGroups;
| 3,497,643 | [
1,
1986,
444,
434,
6849,
3252,
18,
8646,
854,
3252,
716,
1410,
1158,
7144,
6798,
394,
19588,
628,
443,
917,
1282,
16,
1496,
4859,
1608,
358,
506,
16555,
3298,
434,
2724,
326,
6590,
6835,
353,
4859,
331,
17128,
364,
2182,
18,
19,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6057,
25121,
694,
18,
1887,
694,
3238,
6849,
3621,
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,
-... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;
// ----------------------------------------------------------------------------
// 'SWFL' Staking smart contract
// ----------------------------------------------------------------------------
// -----------------------------------------------------------... | ------------------------------------------------------------------------ Stakers can un stake the staked tokens using this function @param tokens the number of tokens to withdraw ------------------------------------------------------------------------ add pending rewards to remainder to be claimed by user later, if th... | function WITHDRAW(uint256 tokens) external {
require(stakers[msg.sender].stakedTokens >= tokens && tokens > 0, "Invalid token amount to withdraw");
uint256 _unstakingFee = (onePercent(tokens).mul(unstakingFee)).div(10);
uint256 owing = pendingReward(msg.sender);
... | 6,324,654 | [
1,
29461,
934,
581,
414,
848,
640,
384,
911,
326,
384,
9477,
2430,
1450,
333,
445,
225,
2430,
326,
1300,
434,
2430,
358,
598,
9446,
8879,
17082,
527,
4634,
283,
6397,
358,
10022,
358,
506,
7516,
329,
635,
729,
5137,
16,
309,
1915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
565,
445,
13601,
40,
10821,
12,
11890,
5034,
2430,
13,
3903,
288,
203,
540,
203,
3639,
2583,
12,
334,
581,
414,
63,
3576,
18,
15330,
8009,
334,
9477,
5157,
1545,
2430,
597,
2430,
405,
374,
16,
315,
1941,
1147,
3844,
358,
598,
9... |
./full_match/1/0x53A89B1EBd030540d6203CC3C731D7b7FA3C6cc6/sources/shua.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 SpaceX 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 (a... | 3,846,215 | [
1,
13621,
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,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14059,
60,
353,
1772,
16,
467,
654,
39,
3462,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
377,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
3... |
./full_match/1/0xF7873f6F603b3C3d2C8a5e2b123A386373F2095f/sources/contracts/interfaces/ILoanPriceOracle.sol | * @title Interface to a LoanPriceOracle/ | interface ILoanPriceOracle {
error UnsupportedCollateral();
error InsufficientTimeRemaining();
error ParameterOutOfBounds(uint256 index);
function currencyToken() external view returns (IERC20);
function priceLoan(
address collateralToken,
uint256 collateralTokenId,
uint... | 17,037,615 | [
1,
1358,
358,
279,
3176,
304,
5147,
23601,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
1504,
304,
5147,
23601,
288,
203,
203,
565,
555,
7221,
13535,
2045,
287,
5621,
203,
565,
555,
22085,
11339,
950,
11429,
5621,
203,
565,
555,
5498,
11224,
5694,
12,
11890,
5034,
770,
1769,
203,
203,
203,
565,
445,
5462,
... |
pragma solidity ^0.5.7;
library safemath63 { //inject NONSTANDARD NAMING
function MUL45(uint256 A51, uint256 B68) internal pure returns (uint256) { //inject NONSTANDARD NAMING
if (A51 == 0) {
return 0;
}
uint256 C15 = A51 * B68; //inject NONSTANDARD NAMING
require(C15 /... | inject NONSTANDARD NAMING
| uint256 C15 = A51 * B68; | 6,396,910 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
385,
3600,
273,
432,
10593,
380,
605,
9470,
31,
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,
-100,
-100,
-... |
pragma solidity ^0.4.24;
import "zeppelin/token/ERC20/SafeERC20.sol";
import "contracts/Issuer.sol";
/**
* @notice PolicyManager interface
**/
contract PolicyManagerInterface {
function register(address _node, uint16 _period) external;
function updateReward(address _node, uint16 _period) external;
funct... | * @notice Implementation of the receiveApproval(address,uint256,address,bytes) method (see NuCypherToken contract). Deposit all tokens that were approved to transfer @param _from Miner @param _value Amount of tokens to deposit @param _tokenContract Token contract address @notice (param _extraData) Amount of periods dur... | function receiveApproval(
address _from,
uint256 _value,
address _tokenContract,
bytes /* _extraData */
)
external
{
require(_tokenContract == address(token) && msg.sender == address(token));
uint256 payloadSize;
uint256 payload;
assemb... | 1,068,865 | [
1,
13621,
434,
326,
6798,
23461,
12,
2867,
16,
11890,
5034,
16,
2867,
16,
3890,
13,
707,
261,
5946,
20123,
17992,
21496,
1345,
6835,
2934,
4019,
538,
305,
777,
2430,
716,
4591,
20412,
358,
7412,
225,
389,
2080,
5444,
264,
225,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
6798,
23461,
12,
203,
3639,
1758,
389,
2080,
16,
203,
3639,
2254,
5034,
389,
1132,
16,
203,
3639,
1758,
389,
2316,
8924,
16,
203,
3639,
1731,
1748,
389,
7763,
751,
1195,
203,
565,
262,
203,
3639,
3903,
203,
565,
288,
... |
./full_match/1/0xf6aa125a49c7B371f27dEA01E7407DAa85AB91ed/sources/contracts/feeDistributor/Erc4337Account.sol | @notice Returns the client address @return address client address @inheritdoc IOwnable @inheritdoc IOwnableWithOperator @notice withdraw function selector @dev since withdraw function in derived contracts can have arguments, its signature can vary and can be overridden in derived contracts @return bytes4 withdraw func... | function client() public view virtual returns (address);
function owner() public view virtual returns (address);
function operator() public view virtual returns (address);
function withdrawSelector() public pure virtual returns (bytes4) {
return defaultWithdrawSelector;
}
| 3,847,854 | [
1,
1356,
326,
1004,
1758,
327,
1758,
1004,
1758,
632,
10093,
1665,
91,
6914,
632,
10093,
1665,
91,
6914,
1190,
5592,
225,
598,
9446,
445,
3451,
225,
3241,
598,
9446,
445,
316,
10379,
20092,
848,
1240,
1775,
16,
2097,
3372,
848,
23674,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
1004,
1435,
1071,
1476,
5024,
1135,
261,
2867,
1769,
203,
203,
565,
445,
3410,
1435,
1071,
1476,
5024,
1135,
261,
2867,
1769,
203,
203,
565,
445,
3726,
1435,
1071,
1476,
5024,
1135,
261,
2867,
1769,
203,
203,
565,
445,
... |
./full_match/4/0x5D44d627B9785B9404c432900bC47437d98C1962/sources/browser/tests/4_Ballot_test.sol | * decrease allowance./ | function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
require(spender != address(0));
allowed[msg.sender][spender] = allowed[msg.sender][spender].sub(subtractedValue);
emit Approval(msg.sender, spender, allowed[msg.sender][spender]);
return true;
}
| 734,963 | [
1,
323,
11908,
1699,
1359,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2583,
12,
87,
1302,
264,
480,
1758,
12,
20,
10019,
203,
565,
2935,
63,
3576,
18,
15330,
6362,
87,... |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.8.6;
pragma abicoder v2;
import { StakedToken } from "./StakedToken.sol";
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
* @title StakedTo... | * @dev Gets the multiplier awarded for a given weightedTimestamp @param _ts WeightedTimestamp of a user @return timeMultiplier Ranging from 20 (0.2x) to 60 (0.6x)/ If the user has no ts yet, they are not in the system 0-3 months = 1x 3 months = 1.2x 6 months = 1.3x 12 months = 1.4x 18 months = 1.5x > 24 months = 1.6x | function _timeMultiplier(uint32 _ts) internal view returns (uint8 timeMultiplier) {
if (_ts == 0) return 0;
uint256 hodlLength = block.timestamp - _ts;
if (hodlLength < 13 weeks) {
return 0;
return 20;
return 30;
return 40;
return ... | 1,746,176 | [
1,
3002,
326,
15027,
279,
11804,
364,
279,
864,
13747,
4921,
225,
389,
3428,
15437,
329,
4921,
434,
279,
729,
327,
813,
23365,
534,
18183,
628,
4200,
261,
20,
18,
22,
92,
13,
358,
4752,
261,
20,
18,
26,
92,
13176,
971,
326,
729,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
957,
23365,
12,
11890,
1578,
389,
3428,
13,
2713,
1476,
1135,
261,
11890,
28,
813,
23365,
13,
288,
203,
3639,
309,
261,
67,
3428,
422,
374,
13,
327,
374,
31,
203,
203,
3639,
2254,
5034,
366,
369,
80,
1782,
273,
... |
./full_match/1/0x911a768fF40e6477736AA009EF0055563982bE3a/sources/src/ExternalRefinancing.sol | * @dev Triggered when the contract has been initialized or reinitialized./ | event Initialized(uint8 version);
| 3,218,058 | [
1,
6518,
329,
1347,
326,
6835,
711,
2118,
6454,
578,
283,
13227,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
871,
10188,
1235,
12,
11890,
28,
1177,
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,
... |
./full_match/42220/0xb851A5f1dbC743FdCe3009a3410df317cb33e24b/sources/project:/contracts/common/interfaces/IFeeHandlerSeller.sol | in case some funds need to be returned or moved to another contract | interface IFeeHandlerSeller {
function sell(
address sellTokenAddress,
address buyTokenAddress,
uint256 amount,
uint256 minAmount
) external returns (uint256);
function transfer(address token, uint256 amount, address to) external returns (bool);
}
| 16,338,027 | [
1,
267,
648,
2690,
284,
19156,
1608,
358,
506,
2106,
578,
10456,
358,
4042,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
11083,
1340,
1503,
22050,
288,
203,
225,
445,
357,
80,
12,
203,
565,
1758,
357,
80,
1345,
1887,
16,
203,
565,
1758,
30143,
1345,
1887,
16,
203,
565,
2254,
5034,
3844,
16,
203,
565,
2254,
5034,
1131,
6275,
203,
225,
262,
3... |
pragma solidity >=0.5.1 <0.6.0;
... | inject NONSTANDARD NAMING
| modifier WHENPAUSED355() { | 5,371,220 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
29707,
4066,
20093,
23,
2539,
1435,
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,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.12;
/**
* @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, which is the standard behavior in high ... | * @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 Akita 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 (addres... | 13,502,612 | [
1,
13621,
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,
316,
279,
10379,
6835,
1450,
288,
67,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
8691,
69,
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,
26488,
31... |
./full_match/11155111/0xdd8E19b29b2530Bc9b34BeBd69C31cf7B176c33b/sources/src/RepoDriver.sol | @notice The Drips address used by this driver. @notice The driver ID which this driver uses when calling Drips. @notice The Link token used for paying the operators. @notice The ERC-1967 storage slot holding a single `RepoDriverStorage` structure. @notice The ERC-1967 storage slot holding a single `RepoDriverAnyApiSto... | struct RepoDriverStorage {
mapping(uint256 userId => address) userOwners;
| 3,824,996 | [
1,
1986,
463,
566,
1121,
1758,
1399,
635,
333,
3419,
18,
225,
1021,
3419,
1599,
1492,
333,
3419,
4692,
1347,
4440,
463,
566,
1121,
18,
225,
1021,
4048,
1147,
1399,
364,
8843,
310,
326,
12213,
18,
225,
1021,
4232,
39,
17,
3657,
9599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1958,
15118,
4668,
3245,
288,
203,
3639,
2874,
12,
11890,
5034,
6249,
516,
1758,
13,
729,
5460,
414,
31,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0x65bf82914a2BA0999c5b3aB034C1Da3EeBBE256c/sources/contracts/GameContract.sol | Transfer winnings to the winner | chosenToken.transfer(_winner, winnings);
| 4,948,219 | [
1,
5912,
5657,
82,
899,
358,
326,
5657,
1224,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10447,
1345,
18,
13866,
24899,
91,
7872,
16,
5657,
82,
899,
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,
-... |
pragma solidity ^0.5.13;
import "./TokenController.sol";
import "../Proxy/OwnedUpgradeabilityProxy.sol";
/*
This contract is the owner of TokenController.
This contract is responsible for calling all onlyOwner functions in
TokenController.
This contract has a copy of all functions in TokenController.
Functions with ... | * @dev Veto the current in flight action. Reverts if no current action/ | function msVeto() public onlyOwner {
require(!voted[msg.sender], "already voted");
require(ownerAction.callData.length > 0, "no action in flight");
if (ownerAction.disappoveSigs >= 1) {
emit ActionVetoed(ownerAction.actionName);
_deleteOwnerAction();
owner... | 6,366,641 | [
1,
58,
11453,
326,
783,
316,
25187,
1301,
18,
868,
31537,
309,
1158,
783,
1301,
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,
4086,
58,
11453,
1435,
1071,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
90,
16474,
63,
3576,
18,
15330,
6487,
315,
17583,
331,
16474,
8863,
203,
3639,
2583,
12,
8443,
1803,
18,
1991,
751,
18,
2469,
405,
374,
16,
315,
21... |
pragma solidity ^0.4.17;
import "./Factory.sol";
import "./ProcedureTable.sol";
contract CapabilityManager is ProcedureTable {
// CAPABILITY_TYPES
uint8 constant CAP_PROC_CALL = 3;
uint8 constant CAP_PROC_REGISTER = 4;
uint8 constant CAP_PROC_DELETE = 5;
uint8 constant ... | Check that all of the topics required by the cap are satisfied. That is, for every topic in the capability, the corresponding exists in the system call and is set to that exact value. First we check that there are enough topics in the request. The system call specifies an insufficient number of topics | if (reqTopics.length < nTopics) {
return false;
}
| 2,499,338 | [
1,
1564,
716,
777,
434,
326,
11204,
1931,
635,
326,
3523,
854,
18958,
18,
12466,
353,
16,
364,
3614,
3958,
316,
326,
12593,
16,
326,
4656,
1704,
316,
326,
2619,
745,
471,
353,
444,
358,
716,
5565,
460,
18,
5783,
732,
866,
716,
191... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3639,
309,
261,
3658,
17477,
18,
2469,
411,
290,
17477,
13,
288,
203,
5411,
327,
629,
31,
203,
3639,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.5.16;
contract JoetrollerErrorReporter {
enum Error {
NO_ERROR,
UNAUTHORIZED,
JOETROLLER_MISMATCH,
INSUFFICIENT_SHORTFALL,
INSUFFICIENT_LIQUIDITY,
INVALID_CLOSE_FACTOR,
INVALID_COLLATERAL_FACTOR,
... | hypothetical account shortfall below collateral requirements)/ If credit limit is set to MAX, no need to check account liquidity. Read the balances and exchange rate from the jToken semi-opaque error code, we assume NO_ERROR == 0 is invariant between upgrades Unlike compound protocol, getUnderlyingPrice is re... | function getHypotheticalAccountLiquidityInternal(
address account,
JToken jTokenModify,
uint256 redeemTokens,
uint256 borrowAmount
)
internal
view
returns (
Error,
uint256,
uint256
)
{
if (creditLimit... | 1,810,313 | [
1,
76,
879,
10370,
278,
1706,
2236,
3025,
25602,
5712,
4508,
2045,
287,
8433,
13176,
971,
12896,
1800,
353,
444,
358,
4552,
16,
1158,
1608,
358,
866,
2236,
4501,
372,
24237,
18,
2720,
326,
324,
26488,
471,
7829,
4993,
628,
326,
525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7628,
879,
10370,
278,
1706,
3032,
48,
18988,
24237,
3061,
12,
203,
3639,
1758,
2236,
16,
203,
3639,
804,
1345,
525,
1345,
11047,
16,
203,
3639,
2254,
5034,
283,
24903,
5157,
16,
203,
3639,
2254,
5034,
29759,
6275,
203,
... |
pragma solidity ^0.4.22;
import "./Store.sol";
import "./library/Utils.sol";
import "./EIP20.sol";
import "./library/SafeMath.sol";
/**
* There are a list of stores on a central marketplace where shoppers can purchase goods posted by the store owners.
* The central marketplace is managed by a group of administrators... | * this function will be used for retriving all the stores of a given store owner/ The caller is looking for all the stores in the market place | function getStores(address storeOwnerAddress) public view returns(address[]) {
if ( storeOwnerAddress != 0 ) {
return storeFrontMap[storeOwnerAddress];
}
else {
uint totalStoreCount = 0;
uint storeOwnersCount;
for (storeOwnersCount = 0; storeO... | 1,844,452 | [
1,
2211,
445,
903,
506,
1399,
364,
17343,
9288,
777,
326,
9064,
434,
279,
864,
1707,
3410,
19,
1021,
4894,
353,
7849,
364,
777,
326,
9064,
316,
326,
13667,
3166,
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,
336,
13125,
12,
2867,
1707,
5541,
1887,
13,
1071,
1476,
1135,
12,
2867,
63,
5717,
288,
203,
3639,
309,
261,
1707,
5541,
1887,
480,
374,
262,
288,
203,
5411,
327,
1707,
9580,
863,
63,
2233,
5541,
1887,
15533,
203,
3639,
... |
// File: contracts/tokens/IERC20.sol
pragma solidity 0.5.14;
/**
* Abstract contract(interface) for the full ERC 20 Token standard
* see https://github.com/ethereum/EIPs/issues/20
* This is a simple fixed supply token contract.
*/
contract ERC20 {
/**
* Get the total token supply
*/
function totalSu... | * @dev Extension of {ERC223} that adds a set of accounts with the {MinterRole}, which have permission to mint (create) new tokens as they see fit. At construction, the deployer of the contract is the only minter./ | contract ERC223Mintable is ERC223Token {
event MinterAdded(address indexed account);
event MinterRemoved(address indexed account);
mapping(address => bool) public _minters;
constructor () internal {
_addMinter(msg.sender);
}
modifier onlyMinter() {
require(isMinter(msg.sender), "MinterRole: cal... | 12,745,770 | [
1,
3625,
434,
288,
654,
39,
3787,
23,
97,
716,
4831,
279,
444,
434,
9484,
598,
326,
288,
49,
2761,
2996,
5779,
1492,
1240,
4132,
358,
312,
474,
261,
2640,
13,
394,
2430,
487,
2898,
2621,
4845,
18,
2380,
16171,
16,
326,
7286,
264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4232,
39,
3787,
23,
49,
474,
429,
353,
4232,
39,
3787,
23,
1345,
288,
203,
203,
225,
871,
490,
2761,
8602,
12,
2867,
8808,
2236,
1769,
203,
225,
871,
490,
2761,
10026,
12,
2867,
8808,
2236,
1769,
203,
203,
225,
2874,
12,... |
./full_match/4/0xbdB88734C86D0613Daad4218865A2d5474F13173/sources/browser/OroNetwork.sol | * To View Total Staking Amount/ | function viewUserTotalStaking(address user, address stakingToken) public view returns(uint) {
return(stakings[user].amount[stakingToken]);
}
| 728,356 | [
1,
774,
4441,
10710,
934,
6159,
16811,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1476,
1299,
5269,
510,
6159,
12,
2867,
729,
16,
1758,
384,
6159,
1345,
13,
1071,
1476,
1135,
12,
11890,
13,
288,
203,
3639,
327,
12,
334,
581,
899,
63,
1355,
8009,
8949,
63,
334,
6159,
1345,
19226,
203,
565,
289,
203,... |
pragma solidity ^0.7.1;
//SPDX-License-Identifier: UNLICENSED
/* New ERC23 contract interface */
interface IErc223 {
function totalSupply() external view returns (uint);
function balanceOf(address who) external view returns (uint);
function transfer(address to, uint value) external returns (bool ok);
... | make sure that there is a cache graph linked, otherwise revert.checks on consent-driven trust channels that the end user and the relayer have in commonif there are any matches continue on or revert if there are no matches found. | if (onlyAcceptsKycInput[_to] == true) {
if (shyftCacheGraphAddress != address(0)) {
IShyftCacheGraph shyftCacheGraph = IShyftCacheGraph(shyftCacheGraphAddress);
uint8 kycCanSendResult = shyftCacheGraph.getKycCanSend(msg.sender, _to, _amount, ShyftTokenType, true, fal... | 314,242 | [
1,
6540,
3071,
716,
1915,
353,
279,
1247,
2667,
8459,
16,
3541,
15226,
18,
12366,
603,
28243,
17,
3069,
837,
10267,
5750,
716,
326,
679,
729,
471,
326,
1279,
1773,
1240,
316,
2975,
430,
1915,
854,
1281,
1885,
1324,
603,
578,
15226,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
261,
3700,
26391,
47,
93,
71,
1210,
63,
67,
869,
65,
422,
638,
13,
288,
203,
5411,
309,
261,
674,
93,
1222,
1649,
4137,
1887,
480,
1758,
12,
20,
3719,
288,
203,
7734,
467,
1555,
93,
1222,
1649,
4137,
699,
93,
1222,... |
./partial_match/1/0x373ae78a14577682591E088F2E78EF1417612c68/sources/contracts/HomoraBank.sol | @dev Initialize the bank smart contract, using msg.sender as the first governor. @param _oracle The oracle smart contract address. @param _feeBps The fee collected to Homora bank. | function initialize(IOracle _oracle, uint _feeBps) external initializer {
__Governable__init();
_GENERAL_LOCK = _NOT_ENTERED;
_IN_EXEC_LOCK = _NOT_ENTERED;
POSITION_ID = _NO_ID;
SPELL = _NO_ADDRESS;
caster = address(new HomoraCaster());
oracle = _oracle;
require(address(_oracle) != add... | 4,169,075 | [
1,
7520,
326,
11218,
13706,
6835,
16,
1450,
1234,
18,
15330,
487,
326,
1122,
314,
1643,
29561,
18,
225,
389,
280,
16066,
1021,
20865,
13706,
6835,
1758,
18,
225,
389,
21386,
38,
1121,
1021,
14036,
12230,
358,
670,
362,
10610,
11218,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
445,
4046,
12,
4294,
16873,
389,
280,
16066,
16,
2254,
389,
21386,
38,
1121,
13,
3903,
12562,
288,
203,
565,
1001,
43,
1643,
6914,
972,
2738,
5621,
203,
565,
389,
13990,
1013,
67,
6589,
273,
389,
4400,
67,
12278,
2056,
31,
... |
./full_match/11155111/0x131fF587aDDd4D633508CeD979409DB370Fd421C/sources/project_/contracts/InnerProductVerifier.sol | could probably just access / overwrite the parameter directly.
| ipAuxiliaries.o = salt; | 3,833,656 | [
1,
15195,
8656,
2537,
2006,
342,
6156,
326,
1569,
5122,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2359,
21981,
15700,
5646,
18,
83,
273,
4286,
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: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../interfaces/IController.sol";
import "../interfaces/IConverter.sol";
import "../in... | * @notice Returns the balance of the given token on the vault @param _token The address of the token/ | function balanceOf(
address _token
)
external
view
onlyToken(_token)
returns (uint256)
{
return token.balanceOf(address(this))
.add(IERC20(address(vault)).balanceOf(address(this)));
}
| 12,830,418 | [
1,
1356,
326,
11013,
434,
326,
864,
1147,
603,
326,
9229,
225,
389,
2316,
1021,
1758,
434,
326,
1147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11013,
951,
12,
203,
3639,
1758,
389,
2316,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1338,
1345,
24899,
2316,
13,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
1147,
18,
12296,... |
pragma solidity ^0.4.19;
// File: contracts/SafeMath.sol
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint a, uint b) internal pure returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal pure re... | get current price in token millis / ETH | function getCurrentPrice() public view withinCrowdsaleTime returns (uint256) {
if (now < stage2_start) {
return stage1_price;
return stage2_price;
return stage3_price;
return stage4_price;
}
}
| 12,548,793 | [
1,
588,
783,
6205,
316,
1147,
14833,
342,
512,
2455,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
5175,
5147,
1435,
1071,
1476,
3470,
39,
492,
2377,
5349,
950,
1135,
261,
11890,
5034,
13,
288,
203,
282,
202,
430,
261,
3338,
411,
6009,
22,
67,
1937,
13,
288,
203,
21114,
202,
2463,
6009,
21,
67,
8694,
31,
203,
21114... |
./full_match/1/0xee415688D294C2956B5d5e4220db281DB2cF4076/sources/browser/Arbitrage22.sol | contract Whitelist {/ | abstract contract UniswapFactory {
function getExchange(address tokenAddress) public view virtual returns(address);
}
| 3,179,567 | [
1,
16351,
3497,
7523,
288,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
1351,
291,
91,
438,
1733,
288,
203,
565,
445,
336,
11688,
12,
2867,
1147,
1887,
13,
1071,
1476,
5024,
1135,
12,
2867,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.10;
import {StringsUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import {ERC165Upgradeable} from "@openzeppelin/contract... | @notice Mint with signed message data We allow any user to execute a signature to mint the NFt. signer is the signer | function mintWithSign(
address signer,
address to,
uint256 tokenId,
uint256 deadline,
uint256 nonce,
bytes memory signature
)
external
withValidNonceAndDeadline(nonce, deadline)
needsRole(SIGNER_ROLE, signer)
{
require(to == msg... | 965,069 | [
1,
49,
474,
598,
6726,
883,
501,
1660,
1699,
1281,
729,
358,
1836,
279,
3372,
358,
312,
474,
326,
423,
42,
88,
18,
10363,
353,
326,
10363,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
1190,
2766,
12,
203,
3639,
1758,
10363,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
2254,
5034,
14096,
16,
203,
3639,
2254,
5034,
7448,
16,
203,
3639,
1731,
3778,
3372,
203,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
/**
* @dev For details, read the README.md file in the Github repo @ https://github.com/Curiosity-DAO/Curiosity-DAO/blob/main/README.md
*/
// Setup
import "./setup.sol";
// set a hard cap on number of tokens
uint constant initialSupply = 5000000 ether; // ... | Allows DAO to mint new tokens | function mintNew(uint amount) external onlyOwner {
_mint(_daoTreasury, amount);
emit newMinted(_daoTreasury, amount);
| 5,529,884 | [
1,
19132,
463,
20463,
358,
312,
474,
394,
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,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
1908,
12,
11890,
3844,
13,
3903,
1338,
5541,
288,
203,
203,
3639,
389,
81,
474,
24899,
2414,
83,
56,
266,
345,
22498,
16,
3844,
1769,
203,
203,
3639,
3626,
394,
49,
474,
329,
24899,
2414,
83,
56,
266,
345,
... |
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
/* Internal Imports */
import { ExecutionManager } from "./ExecutionManager.sol";
/**
* @title L2ExecutionManager
* @notice This extension of ExecutionManager that should only run in L2 because it has optimistic execution details
* that are unnecess... | * @title L2ExecutionManager @notice This extension of ExecutionManager that should only run in L2 because it has optimistic execution details that are unnecessary and inefficient to run in L1./ | contract L2ExecutionManager is ExecutionManager {
mapping(bytes32 => bytes32) ovmHashToEvmHash;
mapping(bytes32 => bytes32) evmHashToOvmHash;
mapping(bytes32 => bytes) ovmHashToOvmTx;
constructor(
uint256 _opcodeWhitelistMask,
address _owner,
uint _gasLimit,
bool _ove... | 938,837 | [
1,
48,
22,
3210,
1318,
225,
1220,
2710,
434,
8687,
1318,
716,
1410,
1338,
1086,
316,
511,
22,
2724,
518,
711,
5213,
5846,
4588,
3189,
540,
716,
854,
19908,
471,
316,
25403,
358,
1086,
316,
511,
21,
18,
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,
1,
0,
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,
511,
22,
3210,
1318,
353,
8687,
1318,
288,
203,
203,
565,
2874,
12,
3890,
1578,
516,
1731,
1578,
13,
320,
3489,
2310,
774,
41,
3489,
2310,
31,
203,
565,
2874,
12,
3890,
1578,
516,
1731,
1578,
13,
2113,
81,
2310,
774,
51,... |
./full_match/8453/0x72cc6E4DE47f673062c41C67505188144a0a3D84/sources/contracts/core/Dao.sol | These addresses can rule without voting These contracts help burn LP's Factory Address Shop Address LP Token Address Quorum >=1 <=100 Executed Voting | contract Dao is ReentrancyGuard, ERC20 {
using EnumerableSet for EnumerableSet.AddressSet;
using SafeERC20 for IERC20;
using Address for address;
using Address for address payable;
using ECDSA for bytes32;
uint32 public constant VOTING_DURATION = 3 days;
EnumerableSet.AddressSet private p... | 11,547,491 | [
1,
29690,
6138,
848,
1720,
2887,
331,
17128,
8646,
20092,
2809,
18305,
511,
52,
1807,
7822,
5267,
17568,
5267,
511,
52,
3155,
5267,
4783,
16105,
1545,
21,
1648,
6625,
3889,
4817,
776,
17128,
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,
0,
0,
0,
0,
0,
0,
0,
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,
6033,
353,
868,
8230,
12514,
16709,
16,
4232,
39,
3462,
288,
203,
565,
1450,
6057,
25121,
694,
364,
6057,
25121,
694,
18,
1887,
694,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
565,
1... |
pragma solidity ^0.4.25; //
contract EntryToken
{
mapping(address => uint256[]) inventory;
uint256[] public spawnedTokens;
mapping(bytes32 => bool) signatureChecked;
address public organiser;
address public paymaster;
string public name;
uint8 public constant decimals = 0; //no deci... | pushes each element with ordering | function transferFrom(address _from, address _to, uint256[] TokenIndices)
organiserOnly public
{
uint index = uint(TokenIndices[i]);
require(inventory[_from][index] != uint256(0));
inventory[_to].push(inventory[_from][index]);
delete inventory[_... | 15,818,085 | [
1,
6206,
281,
1517,
930,
598,
9543,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
8526,
3155,
8776,
13,
203,
203,
3639,
15501,
15914,
3386,
1071,
203,
203,
3639,
288,
203,
203,
5411,
2254,
770,
273,
2254,
12,
1345,
8776,
63,
77,
1... |
pragma solidity ^0.4.19;
/**
* @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 owner;
event OwnershipTransferred(address indexed previousOw... | time after which can transfer the some part of ether
| uint [] timeStageFinance; | 1,081,571 | [
1,
957,
1839,
1492,
848,
7412,
326,
2690,
1087,
434,
225,
2437,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5378,
813,
8755,
6187,
1359,
31,
3639,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.6.11;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./utils/EnumerableSet.sol";
import "./interfaces/... | SPDX-License-Identifier: UNLICENSED* @title Interface to access APY.Finance's address registry @author APY.Finance @notice The address registry has two important purposes, one which is fairly concrete and another abstract. 1. The registry enables components of the APY.Finance system and externa... | interface IAddressRegistryV2 {
function getIds() external view returns (bytes32[] memory);
function getAddress(bytes32 id) external view returns (address);
function poolManagerAddress() external view returns (address);
function tvlManagerAddress() external view returns (address);
function chainl... | 195,627 | [
1,
3118,
28826,
17,
13211,
17,
3004,
30,
5019,
6065,
1157,
18204,
225,
6682,
358,
2006,
14410,
61,
18,
6187,
1359,
1807,
1758,
4023,
225,
14410,
61,
18,
6187,
1359,
225,
1021,
1758,
4023,
711,
2795,
10802,
13694,
16,
1245,
1492,
540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
1887,
4243,
58,
22,
288,
203,
565,
445,
2634,
87,
1435,
3903,
1476,
1135,
261,
3890,
1578,
8526,
3778,
1769,
203,
203,
565,
445,
14808,
12,
3890,
1578,
612,
13,
3903,
1476,
1135,
261,
2867,
1769,
203,
203,
565,
445,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.1;
//import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/AccessControl.sol";
//import '@openzeppelin/contracts/access/AccessControl.sol';
import './oz-contracts/access/AccessControl.sol';
import './iAcademyStudentQuiz.sol';
/... | CreateWhat quizzes a student did?Who did a quiz? | function addStudentQuizAnswer (address student, string memory quiz, string memory answer, uint8 total, uint8 grade) public onlyOwner returns(uint256) {
require (!compareStrings(quiz, ""), "quiz: invalid quiz");
uint256 index = studentQuizIndex[student][quiz];
uint8 lastAttempt = 0;
... | 5,450,495 | [
1,
1684,
23801,
16479,
94,
281,
279,
18110,
5061,
35,
2888,
83,
5061,
279,
16479,
35,
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,
527,
19943,
319,
928,
452,
13203,
261,
2867,
18110,
16,
533,
3778,
16479,
16,
533,
3778,
5803,
16,
2254,
28,
2078,
16,
2254,
28,
7324,
13,
1071,
1338,
5541,
1135,
12,
11890,
5034,
13,
288,
203,
203,
3639,
2583,
16051,
... |
pragma solidity ^0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/math/SafeMath.sol";
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import... | true only if the proposal has been processed
| bool tabulated; | 5,517,508 | [
1,
3767,
1338,
309,
326,
14708,
711,
2118,
5204,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1426,
3246,
11799,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity >=0.6.2 <0.8.0;
pragma experimental ABIEncoderV2;
/**
* @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 address for which this function... | Listing time < close time | function setUniswapInfo(
uint256 _uniListingPriceInWei,
uint256 _uniLiquidityAddingTime,
uint256 _uniLPTokensLockDurationInDays,
uint256 _uniLiquidityPercentageAllocation
) external onlyDifiFactory {
require(_uniListingPriceInWei > 0);
require(_uniLiquidityAddingT... | 5,887,737 | [
1,
19081,
813,
411,
1746,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
984,
291,
91,
438,
966,
12,
203,
3639,
2254,
5034,
389,
318,
77,
19081,
5147,
382,
3218,
77,
16,
203,
3639,
2254,
5034,
389,
318,
77,
48,
18988,
24237,
13962,
950,
16,
203,
3639,
2254,
5034,
389,
318,
77,
48,
1... |
pragma solidity ^0.4.19;
/*
* LooksCoin token sale contract
*
* Refer to https://lookscoin.com for more information.
*
* Developer: LookRev
*
*/
/*
* ERC20 Token Standard
*/
contract ERC20 {
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _... | * @dev Set new token sale contract. May only be called by owner. @param _newTokenSaleContract new token sale manage contract./ | function setTokenSaleContract(address _newTokenSaleContract) {
require(msg.sender == owner);
assert(_newTokenSaleContract != 0x0);
tokenSaleContract = _newTokenSaleContract;
}
| 13,036,682 | [
1,
694,
394,
1147,
272,
5349,
6835,
18,
16734,
1338,
506,
2566,
635,
3410,
18,
225,
389,
2704,
1345,
30746,
8924,
394,
1147,
272,
5349,
10680,
6835,
18,
19,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30746,
8924,
12,
2867,
389,
2704,
1345,
30746,
8924,
13,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
3410,
1769,
203,
3639,
1815,
24899,
2704,
1345,
30746,
8924,
480,
374,
92,
20,
1769,
203,
3639,
1147,
30746,
... |
pragma solidity ^0.5.0;
import "./SafeMath.sol";
import "./Pausable.sol";
contract SalePlace is Pausable{
using SafeMath for uint;
struct Item {
string name;
string image;
string description;
uint price;
uint numberOfItems;
uint timestamp;
address payable seller;
}
/* Staus Enum... | send the money to seller
| items[_itemId].seller.transfer(items[_itemId].price); | 15,787,809 | [
1,
4661,
326,
15601,
358,
29804,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1516,
63,
67,
1726,
548,
8009,
1786,
749,
18,
13866,
12,
3319,
63,
67,
1726,
548,
8009,
8694,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
//Address: 0xd411d1c7fd2e1a9adf44ef852e82658bb739f8e1
//Contract name: Standix
//Balance: 0 Ether
//Verification Date: 6/4/2018
//Transacion Count: 5
// CODE STARTS HERE
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(u... | called by the owner, pause ICO | function pauseICO() external onlyOwner
{
paused = true;
}
| 989,406 | [
1,
11777,
635,
326,
3410,
16,
11722,
467,
3865,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
11722,
2871,
51,
1435,
3903,
1338,
5541,
203,
202,
95,
203,
202,
202,
8774,
3668,
273,
638,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract FundMe
{
// TYPES
struct Funder
{
bool isFunder;
uint256 index;
uint256 amountFunded;
}
// VARIABLES
address public m_Owner;... | Add funder to data if first time | function fund() public payable
{
uint256 minimumUSD = 50;
require(this._weiToUsd(msg.value) >= minimumUSD, "Try spending more $ETH !");
if (this._isFunder(msg.sender) == false)
{
m_Funders.push(msg.sender);
m_AddressToFunderData[msg.sender] = Funder({
... | 6,476,992 | [
1,
986,
284,
9341,
358,
501,
309,
1122,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
284,
1074,
1435,
1071,
8843,
429,
203,
565,
288,
203,
3639,
2254,
5034,
5224,
3378,
40,
273,
6437,
31,
203,
203,
3639,
2583,
12,
2211,
6315,
1814,
77,
774,
3477,
72,
12,
3576,
18,
1132,
13,
1545,
5224,
3378,
40,
16,
... |
pragma solidity 0.5.12;
pragma experimental ABIEncoderV2;
import { DaiFiActions } from "./implementations/DaiFiActions.sol";
import { Types } from "./lib/Types.sol";
/**
* @title DaiFi Contract
* @notice The DaiFi main contract
* @author DaiFi
*/
contract DaiFi is DaiFiActions {
/**
* @notice constructor se... | * @title DaiFi Contract @notice The DaiFi main contract @author DaiFi/ | contract DaiFi is DaiFiActions {
import { DaiFiActions } from "./implementations/DaiFiActions.sol";
import { Types } from "./lib/Types.sol";
constructor(address daiAddress, address daiPriceOracle) DaiFiActions(daiAddress, daiPriceOracle) public {}
function getTotalWei() external view returns (Types.Balances m... | 6,419,475 | [
1,
40,
10658,
42,
77,
13456,
225,
1021,
463,
10658,
42,
77,
2774,
6835,
225,
463,
10658,
42,
77,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
463,
10658,
42,
77,
353,
463,
10658,
42,
77,
6100,
288,
203,
203,
203,
5666,
288,
463,
10658,
42,
77,
6100,
289,
628,
25165,
10442,
1012,
19,
40,
10658,
42,
77,
6100,
18,
18281,
14432,
203,
5666,
288,
7658,
289,
628,
251... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific function... | @notice Mint one token to `to` @dev Caller needs to be contract owner @param to the recipient of the token @param tokenURI_ the tokenURI of the token @param royaltyRecipient the recipient for royalties (if royaltyValue > 0) @param royaltyValue the royalties asked for (EIP2981) | function mint(
address to,
string memory tokenURI_,
address royaltyRecipient,
uint256 royaltyValue
) external onlyOwner {
uint256 tokenId = nextTokenId;
_safeMint(to, tokenId, '');
_setTokenURI(tokenId, tokenURI_);
if (royaltyValue > 0) {
... | 5,759,945 | [
1,
49,
474,
1245,
1147,
358,
1375,
869,
68,
225,
20646,
4260,
358,
506,
6835,
3410,
225,
358,
326,
8027,
434,
326,
1147,
225,
1147,
3098,
67,
326,
1147,
3098,
434,
326,
1147,
225,
721,
93,
15006,
18241,
326,
8027,
364,
721,
93,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
3639,
1758,
358,
16,
203,
3639,
533,
3778,
1147,
3098,
67,
16,
203,
3639,
1758,
721,
93,
15006,
18241,
16,
203,
3639,
2254,
5034,
721,
93,
15006,
620,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639... |
./partial_match/56/0x5430033735D32a4f73D1729fc4e005e86e0F1ad3/sources/Strategy1InchBnbLP.sol | * @dev Tokens Used: {wbnb} - Required for liquidity routing when doing swaps. {inch} - Token generated by staking our funds. In this case it's the 1INCH token. {bnb} - 0 address representing BNB(ETH) native token in 1Inch LP pairs. {bifi} - BeefyFinance token, used to send funds to the treasury. {lpPair} - Token that ... | constructor(address _vault, address _strategist) public {
vault = _vault;
strategist = _strategist;
IERC20(lpPair).safeApprove(rewardPool, uint(-1));
IERC20(inch).safeApprove(lpPair, uint(-1));
IERC20(wbnb).safeApprove(unirouter, uint(-1));
}
| 11,121,043 | [
1,
5157,
10286,
30,
288,
9464,
6423,
97,
300,
10647,
364,
4501,
372,
24237,
7502,
1347,
9957,
1352,
6679,
18,
288,
267,
343,
97,
300,
3155,
4374,
635,
384,
6159,
3134,
284,
19156,
18,
657,
333,
648,
518,
1807,
326,
404,
706,
1792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
3885,
12,
2867,
389,
26983,
16,
1758,
389,
701,
1287,
376,
13,
1071,
288,
203,
3639,
9229,
273,
389,
26983,
31,
203,
3639,
609,
1287,
376,
273,
389,
701,
1287,
376,
31,
203,
203,
3639,
467,
654,
39,
3462,
12,
9953,
4154,
... |
/**
*Submitted for verification at Etherscan.io on 2021-05-05
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return ... | * @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./ | constructor () public {
_mint(_msgSender(), 1000000000e18);
}
| 10,735,206 | [
1,
2785,
326,
924,
364,
288,
529,
97,
471,
288,
7175,
5779,
11643,
288,
31734,
97,
598,
279,
805,
460,
434,
6549,
18,
2974,
2027,
279,
3775,
460,
364,
288,
31734,
5779,
999,
288,
67,
8401,
31809,
5496,
4826,
8925,
434,
4259,
924,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
3885,
1832,
1071,
288,
203,
3639,
389,
81,
474,
24899,
3576,
12021,
9334,
15088,
3784,
73,
2643,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.19;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint2... | * @title SafeMath @dev Math operations with safety checks that throw on error/ | library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 ... | 961 | [
1,
9890,
10477,
225,
2361,
5295,
598,
24179,
4271,
716,
604,
603,
555,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
203,
225,
445,
14064,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
309,
261,
69,
422,
374,
13,
288,
203,
1377,
327,
374,
31,
203,
565,
289... |
./partial_match/1/0x9DE6bcF7b7477D008f1f2609093a13c43fA5A776/sources/DAPPM.sol | create new one by recursioncheck referrer active level | function updateX3Referrer(address userAddress, address referrerAddress, uint8 level) private {
users[referrerAddress].x3Matrix[level].referrals.push(userAddress);
if (users[referrerAddress].x3Matrix[level].referrals.length < 3) {
emit NewUserPlace(userAddress, referrerAddress, 1, level,... | 3,969,652 | [
1,
2640,
394,
1245,
635,
13917,
1893,
14502,
2695,
1801,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
60,
23,
1957,
11110,
12,
2867,
729,
1887,
16,
1758,
14502,
1887,
16,
2254,
28,
1801,
13,
3238,
288,
203,
3639,
3677,
63,
1734,
11110,
1887,
8009,
92,
23,
4635,
63,
2815,
8009,
1734,
370,
1031,
18,
6206,
12,
1355... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/ac... | * @dev This contract should not hold any funds in the first place. This method exists to transfer out stuck funds./ | function emergencyERC20Transfer(address erc20, address to, uint256 amount)
external virtual onlyRole(DEFAULT_ADMIN_ROLE)
{
SafeERC20.safeTransfer(IERC20(erc20), to, amount);
}
| 5,535,855 | [
1,
2503,
6835,
1410,
486,
6887,
1281,
284,
19156,
316,
326,
1122,
3166,
18,
1220,
707,
1704,
358,
7412,
596,
384,
9031,
284,
19156,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
801,
24530,
654,
39,
3462,
5912,
12,
2867,
6445,
71,
3462,
16,
1758,
358,
16,
2254,
5034,
3844,
13,
7010,
565,
3903,
5024,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
203,
225,
288,
203,
565,
14060,
654,
39,
3462,... |
/**
*Submitted for verification at Etherscan.io on 2020-07-08
*/
// File: contracts/IERC165.sol
pragma solidity ^0.5.11;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
... | * @dev Gets the balance of the specified address. @param tokenOwner address to query the balance of @return uint256 representing the amount owned by the passed address/ | function balanceOf(address tokenOwner) public view returns (uint256) {
require(
tokenOwner != address(0),
"CANNOT_QUERY_ZERO_ADDRESS"
);
return _ownedTokensCount[tokenOwner].current();
}
| 922,029 | [
1,
3002,
326,
11013,
434,
326,
1269,
1758,
18,
225,
1147,
5541,
1758,
358,
843,
326,
11013,
434,
327,
2254,
5034,
5123,
326,
3844,
16199,
635,
326,
2275,
1758,
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,
565,
445,
11013,
951,
12,
2867,
1147,
5541,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
203,
3639,
2583,
12,
203,
5411,
1147,
5541,
480,
1758,
12,
20,
3631,
203,
5411,
315,
39,
16791,
67,
10753,
67,
24968,
67,
15140,
... |
./partial_match/1/0x2B42a6D12750e78eA88FAFAd58B35A47382fd020/sources/BeverageFeeSplitExtension.sol | Dependency file: @openzeppelin/contracts/math/SignedSafeMath.sol pragma solidity >=0.6.0 <0.8.0;* @title SignedSafeMath @dev Signed math operations with safety checks that revert on error./ | library SignedSafeMath {
int256 constant private _INT256_MIN = -2**255;
function getFee(ISetToken _setToken) external view returns (uint256);
function accrueFee(ISetToken _setToken) external;
function updateStreamingFee(ISetToken _setToken, uint256 _newFee) external;
function updateFeeRecipient(ISe... | 9,165,165 | [
1,
7787,
585,
30,
632,
3190,
94,
881,
84,
292,
267,
19,
16351,
87,
19,
15949,
19,
12294,
9890,
10477,
18,
18281,
10878,
18035,
560,
1545,
20,
18,
26,
18,
20,
411,
20,
18,
28,
18,
20,
31,
225,
16724,
9890,
10477,
225,
16724,
4233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
16724,
9890,
10477,
288,
203,
565,
509,
5034,
5381,
3238,
389,
3217,
5034,
67,
6236,
273,
300,
22,
636,
10395,
31,
203,
203,
565,
445,
2812,
1340,
12,
45,
694,
1345,
389,
542,
1345,
13,
3903,
1476,
1135,
261,
11890,
5034,
... |
pragma solidity ^0.4.15;
import './Insurance.sol';
contract CarInsurance is Insurance {
struct InsuranceTaker {
bool banned;
bool policyValid;
uint256 lastPayment;
uint256 numAccidents;
}
mapping(address => InsuranceTaker) public insuranceTakers;
uint256 public payme... | do not accept new customers that have been banned previously in order to underwrite the customer needs to pay the first premium upfront | function underwrite() payable public {
InsuranceTaker storage customer = insuranceTakers[msg.sender];
require(!customer.banned);
require(msg.value == getPremium(msg.sender));
customer.lastPayment = now;
customer.policyValid = true;
}
| 5,438,829 | [
1,
2896,
486,
2791,
394,
29380,
716,
1240,
2118,
324,
10041,
7243,
316,
1353,
358,
3613,
2626,
326,
6666,
4260,
358,
8843,
326,
1122,
23020,
5077,
731,
10211,
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,
3613,
2626,
1435,
8843,
429,
1071,
288,
203,
3639,
657,
10050,
1359,
56,
6388,
2502,
6666,
273,
2763,
295,
1359,
56,
581,
414,
63,
3576,
18,
15330,
15533,
203,
203,
3639,
2583,
12,
5,
10061,
18,
70,
10041,
1769,
203,
... |
pragma solidity ^0.5.0;
// Copyright © 2017, 2018 Weald Technology Trading Limited
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//... | * @dev allow actions only if the contract is in either of two given states/ | modifier ifInEitherState(State _state1, State _state2) {
require(currentState == _state1 || currentState == _state2);
_;
}
| 15,883,888 | [
1,
5965,
4209,
1338,
309,
326,
6835,
353,
316,
3344,
434,
2795,
864,
5493,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
309,
382,
26091,
1119,
12,
1119,
389,
2019,
21,
16,
3287,
389,
2019,
22,
13,
288,
203,
3639,
2583,
12,
2972,
1119,
422,
389,
2019,
21,
747,
17773,
422,
389,
2019,
22,
1769,
203,
3639,
389,
31,
203,
565,
289,
203,
2... |
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
uint constant public MAX_UINT256 =
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) ... | /retrieve the size of the code on target address, this needs assembly | function isContract(address _addr) private view returns (bool is_contract) {
uint length;
assembly {
length := extcodesize(_addr)
}
return (length>0);
}
@param amount The number of coins to mint
@condition
-the sender of this message must be the owner/minter/creator of this ... | 12,171,831 | [
1,
19,
17466,
326,
963,
434,
326,
981,
603,
1018,
1758,
16,
333,
4260,
19931,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
353,
8924,
12,
2867,
389,
4793,
13,
3238,
1476,
1135,
261,
6430,
353,
67,
16351,
13,
288,
203,
565,
2254,
769,
31,
203,
565,
19931,
288,
203,
1850,
769,
519,
1110,
7000,
554,
24899,
4793,
13,
203,
565,
289,
203,
565,
... |
./full_match/10/0xa48666D91Ac494A3CCA96A3A4357d998d8619387/sources/src/UMATrigger.sol | @notice UMA callback for settlement. This code is run when the protocol has confirmed an answer to the query. @dev This callback is kept intentionally lean, as we don't want to risk reverting and blocking settlement. @param _identifier price identifier being requested. @param _timestamp timestamp of the original query... | function priceSettled(
bytes32 _identifier,
uint256 _timestamp,
bytes memory _ancillaryData,
int256 _answer
) external {
OptimisticOracleV2Interface _oracle = getOracle();
if (
msg.sender != address(_oracle) ||
_timestamp != requestTimestamp ||
keccak256(_ancillaryData) !=... | 3,781,925 | [
1,
2799,
37,
1348,
364,
26319,
806,
18,
1220,
981,
353,
1086,
1347,
326,
1771,
711,
19979,
392,
5803,
358,
326,
843,
18,
225,
1220,
1348,
353,
16555,
509,
22918,
884,
304,
16,
487,
732,
2727,
1404,
2545,
358,
18404,
15226,
310,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
6205,
694,
88,
1259,
12,
203,
565,
1731,
1578,
389,
5644,
16,
203,
565,
2254,
5034,
389,
5508,
16,
203,
565,
1731,
3778,
389,
19292,
737,
814,
751,
16,
203,
565,
509,
5034,
389,
13490,
203,
225,
262,
3903,
288,
203,
... |
./partial_match/1/0x6BdC9Fd91E6859eE0D53D5167983E270553251a5/sources/HygrosLiquidityPool.sol | Swap half of the ETH for $Echoes | function zapAndStake() public payable {
require(msg.value >= 0.1 ether, "Minimum 0.1 ETH required");
uint256 halfEth = msg.value / 2;
uint256 beforeSwapBalance = echoesToken.balanceOf(address(this));
uint[] memory amounts;
amounts = _amounts;
revert(concate... | 2,631,235 | [
1,
12521,
8816,
434,
326,
512,
2455,
364,
271,
19704,
281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11419,
1876,
510,
911,
1435,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
374,
18,
21,
225,
2437,
16,
315,
13042,
374,
18,
21,
512,
2455,
1931,
8863,
203,
203,
3639,
2254,
5034,
8816,
41,
451,
273,... |
./partial_match/56/0xFFe998e124983D56782cdcC8BC7107FD8fFE2900/sources/MemeFarmToken.sol | https:github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/math/SafeMathUpgradeable.sol* @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... | library SafeMathUpgradeable {
pragma solidity >=0.6.0 <0.8.0;
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
... | 11,295,362 | [
1,
4528,
30,
6662,
18,
832,
19,
3678,
62,
881,
84,
292,
267,
19,
3190,
94,
881,
84,
292,
267,
17,
16351,
87,
17,
15097,
429,
19,
10721,
19,
7525,
19,
16351,
87,
19,
15949,
19,
9890,
10477,
10784,
429,
18,
18281,
225,
4266,
10422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
14060,
10477,
10784,
429,
288,
203,
203,
683,
9454,
18035,
560,
1545,
20,
18,
26,
18,
20,
411,
20,
18,
28,
18,
20,
31,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5... |
/**
*Submitted for verification at Etherscan.io on 2022-02-21
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity 0.8.11;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 ... | @notice remove valid mutation animal types@param ids ids to remove | function removeValidMutationAnimals(uint256[] memory ids)
external
onlyOwner
{
for(uint256 i=0; i<ids.length; i++){
validAnimalTypes[ids[i]] = false;
}
}
| 2,103,023 | [
1,
4479,
923,
11934,
392,
2840,
1953,
3258,
3258,
358,
1206,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
1556,
20028,
979,
11366,
12,
11890,
5034,
8526,
3778,
3258,
13,
7010,
565,
3903,
7010,
565,
1338,
5541,
203,
565,
288,
203,
3639,
364,
12,
11890,
5034,
277,
33,
20,
31,
277,
32,
2232,
18,
2469,
31,
277,
27245,
9... |
// https://tornado.cash
/*
* d888888P dP a88888b. dP
* 88 88 d8' `88 88
* 88 .d8888b. 88d888b. 88d888b. .d8888b. .d888b88 .d8888b. 88 .d8888b. .d888... | deposit withdraw tranfer | function transaction(Proof calldata _args, ExtData calldata _extData) public payable {
require(currentRoot == _args.root || _args.outputCommitment == bytes32(0), "Invalid merkle root");
require(!isSpent(_args.inputNullifier), "Input is already spent");
require(uint256(_args.extDataHash) == uint256(keccak2... | 5,509,057 | [
1,
323,
1724,
598,
9446,
13637,
586,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
2492,
12,
20439,
745,
892,
389,
1968,
16,
6419,
751,
745,
892,
389,
408,
751,
13,
1071,
8843,
429,
288,
203,
565,
2583,
12,
2972,
2375,
422,
389,
1968,
18,
3085,
747,
389,
1968,
18,
2844,
5580,
475,
422,
1731,
1578,
... |
./full_match/5/0xef0F6F951F0e62774597eB29b86065498bB7aC32/sources/contracts/periphery/EulerControllerHelper.sol | @notice Definition of callback method that deferLiquidityCheck will invoke on your contract | interface IDeferredLiquidityCheck {
function onDeferredLiquidityCheck(bytes memory data) external;
pragma solidity =0.7.6;
import {IERC20Detailed} from "../interfaces/IERC20Detailed.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
}
| 11,610,411 | [
1,
1852,
434,
1348,
707,
716,
2220,
48,
18988,
24237,
1564,
903,
4356,
603,
3433,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
16886,
48,
18988,
24237,
1564,
288,
203,
565,
445,
603,
16886,
48,
18988,
24237,
1564,
12,
3890,
3778,
501,
13,
3903,
31,
203,
683,
9454,
18035,
560,
273,
20,
18,
27,
18,
26,
31,
203,
5666,
288,
45,
654,
39,
3462,
... |
automat sg
{
tag наречие:на самом деле{ ТИП_МОДИФ:ГЛАГ }
tag наречие:там{ ТИП_МОДИФ:ГЛАГ }
tag наречие:воровски{ ТИП_МОДИФ:ГЛАГ } // Бегают воровски черные злые глаза.
tag наречие:последовательно{ ТИП_МОДИФ:ГЛАГ } // Выдавить последовательно пустотелую деталь дисковым роликом
tag наречие:невдалеке{ ТИП_МОДИФ:ГЛАГ... | Внешне притихший Салидар на самом деле бурлил.
| tag наречие:Внешне{ТИП_МОДИФ:ПРИЛ ТИП_МОДИФ:ГЛАГ ТИП_МОДИФ:НАРЕЧ} | 1,841,666 | [
1,
145,
245,
145,
126,
145,
118,
146,
235,
145,
126,
145,
118,
225,
145,
128,
146,
227,
145,
121,
146,
229,
145,
121,
146,
232,
146,
235,
145,
121,
145,
122,
225,
145,
99,
145,
113,
145,
124,
145,
121,
145,
117,
145,
113,
146,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
2692,
225,
145,
126,
145,
113,
146,
227,
145,
118,
146,
234,
145,
121,
145,
118,
30,
145,
245,
145,
126,
145,
118,
146,
235,
145,
126,
145,
118,
95,
145,
100,
145,
251,
145,
258,
67,
145,
255,
145,
257,
145,
247,
145,
251,
... |