file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@ope... | functions to check planet resource nodes | function getResourceCount(uint256 tokenId) public view returns (uint256){
require(_exists(tokenId), "Token ID is invalid");
return randomFromRange(tokenId, resourceRange);
}
| 14,642,443 | [
1,
10722,
358,
866,
4995,
278,
1058,
2199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5070,
1380,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
1135,
261,
11890,
5034,
15329,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
1345,
1599,
353,
2057,
8863,
203,
3639,
327,
2744,
1265,
2655,
12,
2316,
548,
... |
pragma solidity 0.5.4;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
// Gas optimization: this is ch... | Save this for an assertion in the future
| uint256 previousBalances = balances[_from].add(balances[_to]); | 926,730 | [
1,
4755,
333,
364,
392,
11240,
316,
326,
3563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
2416,
38,
26488,
273,
324,
26488,
63,
67,
2080,
8009,
1289,
12,
70,
26488,
63,
67,
869,
19226,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
//Address: 0xE7c31C786c5CaB6F8cb2B9E03F6f534f8c3e8C3F
//Contract name: ZMINE
//Balance: 0 Ether
//Verification Date: 12/21/2017
//Transacion Count: 1
// CODE STARTS HERE
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(... | * set _destination to 0x0 if want to self airdrop/ | function setAirDropDestination(address _destination) external {
require(_destination != msg.sender);
airDropDestinations[msg.sender] = _destination;
SetDestination(msg.sender, _destination);
}
| 1,022,403 | [
1,
542,
389,
10590,
358,
374,
92,
20,
309,
2545,
358,
365,
279,
6909,
1764,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
29752,
7544,
5683,
12,
2867,
389,
10590,
13,
3903,
288,
203,
565,
2583,
24899,
10590,
480,
1234,
18,
15330,
1769,
203,
565,
23350,
7544,
27992,
63,
3576,
18,
15330,
65,
273,
389,
10590,
31,
203,
565,
1000,
5683,
12... |
pragma solidity 0.4.20;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function percent(uint value,uint numerator, uint denominator, uint precision) internal pure returns(uint quotient) {
uint _numerator = numerator * 10 ** (precision+1);
... | Datasets Calculate Percentage for Referral (if any) Calculate Dividend Calculate remaining amount Token will receive against the sent ETH If user referred by a Treasure Key Is this a referred purchase? No Cheating!!!! Does the referrer have at least X whole tokens? Give 5 % to Referral User Add the referral bonus back... | function purchaseTokens(uint256 incomingEthereum, address referredBy) internal returns(uint256) {
address customerAddress = msg.sender;
tempIncomingEther = incomingEthereum;
calReferralPercentage = SafeMath.percent(incomingEthereum,referralFeePercent,100,18);
cal... | 12,920,310 | [
1,
14305,
2413,
9029,
21198,
410,
364,
3941,
29084,
261,
430,
1281,
13,
9029,
21411,
26746,
9029,
4463,
3844,
3155,
903,
6798,
5314,
326,
3271,
512,
2455,
971,
729,
29230,
635,
279,
399,
266,
3619,
1929,
2585,
333,
279,
29230,
23701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23701,
5157,
12,
11890,
5034,
6935,
41,
18664,
379,
16,
1758,
29230,
858,
13,
2713,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
1758,
6666,
1887,
377,
273,
1234,
18,
15330,
31,
203,
3639,
1906,
20370,
41,
1136,
6647,
273... |
pragma solidity 0.6.0;
contract Nest_NToken_OfferMain {
using SafeMath for uint256;
using address_make_payable for address;
using SafeERC20 for ERC20;
... | Convert offer address into index in offer array | return uint256(contractAddress);
| 14,093,841 | [
1,
2723,
10067,
1758,
1368,
770,
316,
10067,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
327,
2254,
5034,
12,
16351,
1887,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity >0.5.0 <0.8.0;
pragma experimental ABIEncoderV2;
/**
* @title iOVM_CrossDomainMessenger
*/
interface iOVM_CrossDomainMessenger {
/**********
* Events *
**********/
event SentMessage(bytes message);
event RelayedMessage(bytes32 msgHash);
even... | * @notice Overrides BALANCE. NOTE: In the future, this could be optimized to directly invoke EM._getContractStorage(...). @param _contract Address of the contract to query the OVM_ETH balance of. @return _BALANCE OVM_ETH balance of the requested contract./ Easiest way to get the balance is query OVM_ETH as normal. Stat... | function ovmBALANCE(
address _contract
)
override
public
returns (
uint256 _BALANCE
)
{
bytes memory balanceOfCalldata = abi.encodeWithSignature(
"balanceOf(address)",
_contract
);
(bool success, bytes memor... | 6,167,566 | [
1,
13084,
605,
1013,
4722,
18,
5219,
30,
657,
326,
3563,
16,
333,
3377,
506,
15411,
358,
5122,
4356,
7141,
6315,
588,
8924,
3245,
5825,
2934,
225,
389,
16351,
5267,
434,
326,
6835,
358,
843,
326,
531,
7397,
67,
1584,
44,
11013,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
320,
3489,
38,
1013,
4722,
12,
203,
3639,
1758,
389,
16351,
203,
565,
262,
203,
3639,
3849,
203,
3639,
1071,
203,
3639,
1135,
261,
203,
5411,
2254,
5034,
389,
38,
1013,
4722,
203,
3639,
262,
203,
565,
288,
203,
3639,
... |
./full_match/97/0x86dA9a63c13Ff68c8fE6153493cBc40551ccbbA6/sources/project_/contracts/TalariumWorldHeroes.sol | 3 cities of origins
| uint256 cityId = _generateRandomAttribute(3); | 5,021,124 | [
1,
23,
276,
1961,
434,
28911,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
12797,
548,
273,
389,
7163,
8529,
1499,
12,
23,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.5.15;
import "./ITicketForge_v0.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./T721ControllerDomain_v0.sol";
import "./BytesUtil_v0.sol";
// @notice the T721Controller handles all the ticket minting and attachments
contrac... | @notice the T721Controller handles all the ticket minting and attachments | contract T721Controller_v0 is T721ControllerDomain_v0 {
using SafeMath for uint256;
event Mint(
bytes32 indexed group,
bytes32 indexed category,
address indexed owner,
uint256 ticket_id,
address buyer,
uint256 code
);
event Attach(
bytes32 index... | 5,393,541 | [
1,
5787,
399,
27,
5340,
2933,
7372,
777,
326,
9322,
312,
474,
310,
471,
10065,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
399,
27,
5340,
2933,
67,
90,
20,
353,
399,
27,
5340,
2933,
3748,
67,
90,
20,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
490,
474,
12,
203,
3639,
1731,
1578,
8808,
1041,
16,
203,
36... |
/**
*Submitted for verification at Etherscan.io on 2022-03-17
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply()... | * @dev Interface for the optional metadata functions from the ERC20 standard. _Available since v4.1._/ | interface IERC20Metadata is IERC20 {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}
| 10,929,850 | [
1,
1358,
364,
326,
3129,
1982,
4186,
628,
326,
4232,
39,
3462,
4529,
18,
389,
5268,
3241,
331,
24,
18,
21,
6315,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
654,
39,
3462,
2277,
353,
467,
654,
39,
3462,
288,
203,
565,
445,
508,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
7010,
565,
445,
3273,
1435,
3903,
1476,
1135,
261,
1080,
3778,
1769,
203,
7010,
565,
445,
15105... |
//SPDX-License-Identifier: UNLICENSED
// Solidity files have to start with this pragma.
// It will be used by the Solidity compiler to validate its version.
pragma solidity ^0.8.0;
// We import this library to be able to use console.log
import "hardhat/console.sol";
//Trying to import ERC 2771 Functions for use
impo... | This is the main building block for smart contracts. Some string type variables to identify the token. The fixed amount of tokens stored in an unsigned integer type variable.Minter AdressEnum with all possible types | abstract contract Token is ERC721PresetMinterPauserAutoId {
string public name = "My Hardhat Token";
string public symbol = "MHT";
uint256 public totalSupply = 3000;
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
pragma solidity ^0.8.0;
import "hardhat/console.sol";
import "@open... | 13,106,878 | [
1,
2503,
353,
326,
2774,
10504,
1203,
364,
13706,
20092,
18,
10548,
533,
618,
3152,
358,
9786,
326,
1147,
18,
1021,
5499,
3844,
434,
2430,
4041,
316,
392,
9088,
3571,
618,
2190,
18,
49,
2761,
4052,
663,
3572,
598,
777,
3323,
1953,
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,
17801,
6835,
3155,
353,
4232,
39,
27,
5340,
18385,
49,
2761,
16507,
1355,
4965,
548,
288,
203,
565,
533,
1071,
508,
273,
315,
12062,
670,
1060,
11304,
3155,
14432,
203,
565,
533,
1071,
3273,
273,
315,
49,
5062,
14432,
203,
203,
5... |
pragma solidity 0.4.18;
/**
* @title Masterium Token [MTI]
* @author primeRev
* @notice masterium [mti] token contract (tokensale, (cummulated) interest payouts, masternodes
*/
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mu... | SafeMath.sub will throw if there is not enough balance. | accounts[contractOwner].balance = accounts[contractOwner].balance.sub(amountTokens);
| 13,033,250 | [
1,
9890,
10477,
18,
1717,
903,
604,
309,
1915,
353,
486,
7304,
11013,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9484,
63,
16351,
5541,
8009,
12296,
273,
9484,
63,
16351,
5541,
8009,
12296,
18,
1717,
12,
8949,
5157,
1769,
203,
2,
-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;
// copied from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC721/ERC721.sol
// and merged with: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.1.0/contracts/token/ERC721/extensions/ERC721Enumerable.sol
imp... | * @dev Hook that is called before any token transfer. Calling conditions: - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be transferred to `to`. - When `from` is zero, `tokenId` will be minted for `to`. - When `to` is zero, ``from``'s `tokenId` will be burned. - `from` cannot be the zero address. -... | function _beforeTokenTransfer(address from, address to, uint256 tokenId) private {
if (from == address(0)) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
| 14,449,429 | [
1,
5394,
716,
353,
2566,
1865,
1281,
1147,
7412,
18,
21020,
4636,
30,
300,
5203,
1375,
2080,
68,
471,
1375,
869,
68,
854,
3937,
1661,
17,
7124,
16,
12176,
2080,
10335,
11,
87,
1375,
2316,
548,
68,
903,
506,
906,
4193,
358,
1375,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5771,
1345,
5912,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
13,
3238,
288,
203,
3639,
309,
261,
2080,
422,
1758,
12,
20,
3719,
288,
203,
5411,
389,
4479,
1345,
1265,
5541,
21847,
12,
2080,
16,
1147... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// ERC721URIStorage allows you to set tokenURI after minting
// ERC721Holder ensures that a smart contract can hold NFTs
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder... | 10% goes to owners
| uint256 secondarySaleValue = salesTransactions[_txIndex].value / 10; | 12,720,868 | [
1,
2163,
9,
13998,
358,
25937,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
9946,
30746,
620,
273,
272,
5408,
14186,
63,
67,
978,
1016,
8009,
1132,
342,
1728,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/80001/0xd7b43C8039A33821CAE0Ea1e9bF158673441f27c/sources/contracts/Mirtat/nftStuff.sol | Show nft if msg sender is in winner list | function showNfts() public view returns(Nft[] memory){
require(isWinner() , "Your address is not winner");
return nfts;
}
| 859,903 | [
1,
5706,
290,
1222,
309,
1234,
5793,
353,
316,
5657,
1224,
666,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2405,
50,
1222,
87,
1435,
1071,
1476,
1135,
12,
50,
1222,
8526,
3778,
15329,
203,
3639,
2583,
12,
291,
59,
7872,
1435,
269,
315,
15446,
1758,
353,
486,
5657,
1224,
8863,
203,
3639,
327,
290,
1222,
87,
31,
203,
565,
28... |
./full_match/11155111/0x88aec82f14002a56014819f4e23a22eB32F528b1/sources/contracts/staking/StakingExtension.sol | * @notice Set the time, in epochs, a Delegator needs to wait to withdraw tokens after undelegating. @dev This function is only callable by the governor @param _delegationUnbondingPeriod Period in epochs to wait for token withdrawals after undelegating/ | function setDelegationUnbondingPeriod(uint32 _delegationUnbondingPeriod)
external
override
onlyGovernor
{
_setDelegationUnbondingPeriod(_delegationUnbondingPeriod);
}
| 3,838,835 | [
1,
694,
326,
813,
16,
316,
25480,
16,
279,
24117,
639,
4260,
358,
2529,
358,
598,
9446,
2430,
1839,
640,
3771,
1332,
1776,
18,
225,
1220,
445,
353,
1338,
4140,
635,
326,
314,
1643,
29561,
225,
389,
3771,
1332,
367,
984,
26425,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
444,
26945,
984,
26425,
310,
5027,
12,
11890,
1578,
389,
3771,
1332,
367,
984,
26425,
310,
5027,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1338,
43,
1643,
29561,
203,
565,
288,
203,
3639,
389,
542,
26945,
984,
26... |
./full_match/1/0xE0D9f1fEd0193E5D877C09c5EA7a86bEC0fF4572/sources/browser/hasbeen.sol | amount = number of tokens to burn the amount must be less than the total amount pooled make sure the number available to be redeemed is smaller than the available pool burn the amount sent | function redeem(uint256 amount)
public
profitable
returns (bool success) {
require(amount <= balanceOf[msg.sender]);
require(totalPooled >= amount);
uint256 num_redeemed = numberRedeemed(amount);
require(num_redeemed < totalPooled);
balanc... | 8,464,587 | [
1,
8949,
273,
1300,
434,
2430,
358,
18305,
326,
3844,
1297,
506,
5242,
2353,
326,
2078,
3844,
25007,
1221,
3071,
326,
1300,
2319,
358,
506,
283,
24903,
329,
353,
10648,
2353,
326,
2319,
2845,
18305,
326,
3844,
3271,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
283,
24903,
12,
11890,
5034,
3844,
13,
7010,
3639,
1071,
7010,
3639,
450,
7216,
429,
7010,
3639,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
8949,
1648,
11013,
951,
63,
3576,
18,
15330,
19226,
203,
3639,
2583,
... |
pragma solidity ^0.4.11;
//donate with transparency and instant rebates
contract charity
{
address charityAddress;
bytes32 organisation;
bytes32 websiteURL;
event donation(address donor, uint amount);
function() { throw; }
function charity(bytes32 siteURL)
{
charityAddress = msg.s... | with tax rebate of 33%, remainder is sent away | function donate()
{
if(msg.sender.send(msg.value / 3) && charityAddress.send(this.balance))
{
donation(msg.sender, msg.value);
}
else throw;
}
| 933,722 | [
1,
1918,
5320,
283,
70,
340,
434,
13159,
9,
16,
10022,
353,
3271,
10804,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2727,
340,
1435,
203,
565,
288,
203,
3639,
309,
12,
3576,
18,
15330,
18,
4661,
12,
3576,
18,
1132,
342,
890,
13,
597,
1149,
560,
1887,
18,
4661,
12,
2211,
18,
12296,
3719,
203,
3639,
288,
203,
5411,
2727,
367,
12,
3... |
pragma solidity >=0.6.0;
import "@openzeppelin/contracts/math/SafeMath.sol";
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting requ... | * @title Counters @author Matt Condon (@shrugs) @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;` Since it is not possible to over... | library SaleReleasePosition {
using SafeMath for uint256;
struct Data {
uint256 marketId;
uint256 priceInWei;
uint256 remainingSupply;
uint256 totalSupply;
uint256 innerId;
bool isFinal;
bool enable;
uint256[] itemTypeIdArray;
}
function... | 12,638,299 | [
1,
18037,
225,
490,
4558,
735,
19752,
261,
36,
674,
8653,
564,
13,
225,
28805,
13199,
716,
848,
1338,
506,
28859,
578,
15267,
329,
635,
1245,
18,
1220,
848,
506,
1399,
425,
18,
75,
18,
358,
3298,
326,
1300,
434,
2186,
316,
279,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
348,
5349,
7391,
2555,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
1958,
1910,
288,
203,
3639,
2254,
5034,
13667,
548,
31,
203,
3639,
2254,
5034,
6205,
382,
3218,
77,
31,
203,
3639,
2254,
5034,
4... |
pragma solidity^0.4.24;
//////// https://M2D.win \\\\\\\
//////// Laughing Man \\\\\\\
contract Ownable {
address public owner;
event OwnershipRenounced(address indexed previousOwner);
event OwnershipTransferred(
address indexed previousOwner,
address indexed newOwner
);
/**
* @dev The Ow... | devs get 33.3% of all tokens. Much of this will be used for bounties and community incentives When an investor gets 2 tokens, devs get 1 | function mint(address _to, uint256 _amount) public
returns (bool)
{
super.mint(creator, _amount/2);
return super.mint(_to, _amount);
}
| 2,011,351 | [
1,
5206,
87,
336,
13159,
18,
23,
9,
434,
777,
2430,
18,
490,
2648,
434,
333,
903,
506,
1399,
364,
324,
592,
606,
471,
19833,
316,
2998,
3606,
5203,
392,
2198,
395,
280,
5571,
576,
2430,
16,
4461,
87,
336,
404,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
7010,
565,
1135,
261,
6430,
13,
203,
565,
288,
27699,
3639,
2240,
18,
81,
474,
12,
20394,
16,
389,
8949,
19,
22,
1769,
203,
3639,
327,
2240,
18,
81,... |
./partial_match/97/0x39fdE9e0205Dd95B3eAd7c613BC2439f475F188f/sources/Staking.sol | stake variables farm variables | contract Staking {
using SafeMath
for uint256;
address[] internal stakeholders;
mapping(address => uint256) public stakes;
mapping(address => uint256) public stakeTime;
mapping(address => uint256) public stakeRewards;
uint256 internal sharePercentage = 35;
uint256 internal tokenPerBlock... | 11,410,967 | [
1,
334,
911,
3152,
284,
4610,
3152,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
934,
6159,
288,
203,
565,
1450,
14060,
10477,
203,
565,
364,
2254,
5034,
31,
203,
203,
565,
1758,
8526,
2713,
384,
911,
9000,
31,
203,
565,
2874,
12,
2867,
516,
2254,
5034,
13,
1071,
384,
3223,
31,
203,
565,
2874,
12,
28... |
./full_match/1/0x96a7c18650DEDf9E76355f3f0458B027B789e201/sources/localhost/presale.sol | * event for referral earned from user @param beneficiary that receives the referral bonus @param account that entered presale with referral code @param amount amount of bonus tokens from referral/ | event ReferrerEarned(address indexed beneficiary, address indexed account, uint256 amount);
| 9,776,446 | [
1,
2575,
364,
1278,
29084,
425,
1303,
329,
628,
729,
225,
27641,
74,
14463,
814,
716,
17024,
326,
1278,
29084,
324,
22889,
225,
2236,
716,
16219,
4075,
5349,
598,
1278,
29084,
981,
225,
3844,
3844,
434,
324,
22889,
2430,
628,
1278,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
3941,
11110,
41,
1303,
329,
12,
2867,
8808,
27641,
74,
14463,
814,
16,
1758,
8808,
2236,
16,
2254,
5034,
3844,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
contract MapOwner{
address public manager; // address of admin
address public CEO;
address public CTO;
address public SFC; // address of Skull Fighting contract
event TransferOwnership(address indexed _oldManager, address indexed _newManager);
event SetNewSFC(address _o... | Only Contract's Manager can set many new locations. | function setNewLocations(uint64[] _arrLat, uint64[] _arrLong) public onlyManager {
require(_arrLat.length == _arrLong.length);
uint256 length = _arrLat.length;
for(uint i = 0; i < length; i++)
{
emit SetNewLocation(msg.sender, _newLocationId, _arrLat[i], _arrLong[i]);
... | 12,746,311 | [
1,
3386,
13456,
1807,
8558,
848,
444,
4906,
394,
7838,
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,
565,
445,
19469,
10985,
12,
11890,
1105,
8526,
389,
5399,
6607,
16,
2254,
1105,
8526,
389,
5399,
3708,
13,
1071,
1338,
1318,
288,
203,
3639,
2583,
24899,
5399,
6607,
18,
2469,
422,
389,
5399,
3708,
18,
2469,
1769,
203,
3639,
2254,
... |
pragma solidity ^0.5.16;
import "./CErc20Delegate.sol";
/**
* @title Compound's CDai Contract
* @notice CToken which wraps Multi-Collateral DAI
* @author Compound
*/
contract CDaiDelegate is CErc20Delegate {
/**
* @notice DAI adapter address
*/
address public daiJoinAddress;
... | * @title Compound's CDai Contract @notice CToken which wraps Multi-Collateral DAI @author Compound/ | contract CDaiDelegate is CErc20Delegate {
address public daiJoinAddress;
address public potAddress;
address public vatAddress;
function _becomeImplementation(bytes memory data) public {
require(msg.sender == admin, "only the admin may initialize the implementation");
(address daiJoin... | 2,571,151 | [
1,
16835,
1807,
21508,
10658,
13456,
225,
385,
1345,
1492,
9059,
5991,
17,
13535,
2045,
287,
463,
18194,
225,
21327,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21508,
10658,
9586,
353,
29538,
1310,
3462,
9586,
288,
203,
565,
1758,
1071,
5248,
77,
4572,
1887,
31,
203,
203,
565,
1758,
1071,
5974,
1887,
31,
203,
203,
565,
1758,
1071,
17359,
1887,
31,
203,
203,
565,
445,
389,
70,
557... |
/**
*Submitted for verification at Etherscan.io on 2020-12-18
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Address.sol
pragma solidity ^0.6.2;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.... | * @dev Returns the current admin. NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`/ | function admin() external ifAdmin returns (address) {
return _admin();
}
| 2,453,197 | [
1,
1356,
326,
783,
3981,
18,
5219,
30,
5098,
326,
3981,
848,
745,
333,
445,
18,
2164,
288,
3886,
4446,
17,
588,
3886,
4446,
5496,
399,
2579,
30,
2974,
336,
333,
460,
7712,
848,
855,
5122,
628,
326,
2502,
4694,
12188,
5712,
261,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3981,
1435,
3903,
309,
4446,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
3666,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// Сочетаемость глаголов (и отглагольных частей речи) с предложным
// паттерном.
// LC->07.08.2018
facts гл_предл language=Russian
{
arity=3
//violation_score=-5
generic
return=boolean
}
#define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{}
#region Предлог_В
// ------------------- С ПРЕДЛОГОМ 'В' -----------------------... | Найден белок, который превратит человека в супергероя
| rus_verbs:превратить{}, | 5,483,404 | [
1,
145,
256,
145,
113,
145,
122,
145,
117,
145,
118,
145,
126,
225,
145,
114,
145,
118,
145,
124,
145,
127,
145,
123,
16,
225,
145,
123,
145,
127,
146,
229,
145,
127,
146,
227,
146,
238,
145,
122,
225,
145,
128,
146,
227,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
436,
407,
67,
502,
2038,
30,
145,
128,
146,
227,
145,
118,
145,
115,
146,
227,
145,
113,
146,
229,
145,
121,
146,
229,
146,
239,
2916,
16,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
contract tokenFintUsd {
address owner;
string public name; //nombre del token
string public symbol; //simbolo del token
uint8 public decimals; //variable para los decimales
uint256 public totalSupply; //cantidad inicial del token
uint... | comprobar si el dueño tiene esos tokens
| require(balanceOf[_from] >= _value ); | 5,490,771 | [
1,
832,
685,
3215,
7533,
415,
6541,
132,
114,
83,
11374,
4009,
5001,
538,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
12296,
951,
63,
67,
2080,
65,
1545,
389,
1132,
225,
11272,
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... |
/**
* SourceUnit: d:\repos\NFTurbo\contracts\emptybunnies\emptybunnies.sol
*/
////// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, w... | Method which is used to mint during the standard minting window | function mint(uint256 _amountMinted, address _recipient)
public
payable
nonReentrant
{
if (owner() != _msgSender()) {
require(
saleTime != 0 && saleTime <= block.timestamp,
"ERC721: Sale is paused..."
);
}
re... | 13,808,432 | [
1,
1305,
1492,
353,
1399,
358,
312,
474,
4982,
326,
4529,
312,
474,
310,
2742,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
11890,
5034,
389,
8949,
49,
474,
329,
16,
1758,
389,
20367,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
1661,
426,
8230,
970,
203,
565,
288,
203,
3639,
309,
261,
8443,
1435,
480,
389,
3576,
120... |
./full_match/42/0x4b31466c6853F631C7275C1a6060f7Ba9E8a4B62/sources/browser/MasterChef.sol | SushiToken with Governance. | contract SushiToken is ERC20("SushToken", "SUSH"), Ownable {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
mapping (address => address) internal _delegates;
struct Checkpoint {
uint3... | 16,258,561 | [
1,
55,
1218,
77,
1345,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1218,
77,
1345,
353,
4232,
39,
3462,
2932,
55,
1218,
1345,
3113,
315,
6639,
2664,
6,
3631,
14223,
6914,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
20... |
./partial_match/1/0x4839945EbAb6E9b09d1F91D704Fa4542ed85229A/sources/King.sol | * @dev Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` mus... | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
... | 3,887,489 | [
1,
3641,
6478,
23850,
3304,
326,
1699,
1359,
17578,
358,
1375,
87,
1302,
264,
68,
635,
326,
4894,
18,
1220,
353,
392,
10355,
358,
288,
12908,
537,
97,
716,
848,
506,
1399,
487,
279,
20310,
360,
367,
364,
9688,
11893,
316,
288,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
20467,
7009,
1359,
12,
2867,
17571,
264,
16,
2254,
5034,
10418,
329,
620,
13,
1071,
5024,
1135,
261,
6430,
13,
288,
203,
3639,
1758,
3410,
273,
389,
3576,
12021,
5621,
203,
3639,
2254,
5034,
783,
7009,
1359,
273,
1699,
... |
./full_match/80001/0x6675E9F44C4BF44b881b3718F4bE3beC26bEB035/sources/contracts/Token.sol | * @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ... | function getPriorVotes(address account, uint blockNumber)
external
view
returns (uint256)
{
require(blockNumber < block.number, "PCAKE::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return... | 9,525,642 | [
1,
8519,
326,
6432,
1300,
434,
19588,
364,
392,
2236,
487,
434,
279,
1203,
1300,
225,
3914,
1300,
1297,
506,
279,
727,
1235,
1203,
578,
469,
333,
445,
903,
15226,
358,
5309,
7524,
13117,
18,
225,
2236,
1021,
1758,
434,
326,
2236,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1689,
2432,
29637,
12,
2867,
2236,
16,
2254,
1203,
1854,
13,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2583,
12,
2629,
1854,
411,
1203,
18,
2696,
16,
315,
3513,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-06
*/
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;
// Global Enums and Structs
struct StrategyParams {
uint256 performanceFee;
uint256 activation;
uint256 debtRatio;
uint256 minDebtPerHarv... | only close hedge if a hedge is open | function _liquidatePosition() internal returns (uint256, uint256) {
if (balanceOfStake() != 0) {
masterchef.withdraw(pid, balanceOfStake());
}
if (balanceOfPair() == 0) {
return (0, 0);
}
if (activeCallID != 0 && activePutID != 0) {
LPHedg... | 6,527,667 | [
1,
3700,
1746,
366,
7126,
309,
279,
366,
7126,
353,
1696,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
549,
26595,
340,
2555,
1435,
2713,
1135,
261,
11890,
5034,
16,
2254,
5034,
13,
288,
203,
3639,
309,
261,
12296,
951,
510,
911,
1435,
480,
374,
13,
288,
203,
5411,
4171,
343,
10241,
18,
1918,
9446,
12,
6610,
16,
1... |
./full_match/11155111/0x76Ca4d921dF3b1dDed488C2Ed62D3b52695fa3f3/sources/src/tokens/VaultFounderToken.sol | @inheritdoc IVaultFounderToken | function setTokenURI(string memory _tokenURI, uint256 tokenId) external override onlyRole(DEFAULT_ADMIN_ROLE) {
_setTokenURI(tokenId, _tokenURI);
}
| 3,825,090 | [
1,
36,
10093,
467,
12003,
42,
465,
765,
1345,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22629,
3098,
12,
1080,
3778,
389,
2316,
3098,
16,
2254,
5034,
1147,
548,
13,
3903,
3849,
1338,
2996,
12,
5280,
67,
15468,
67,
16256,
13,
288,
203,
3639,
389,
542,
1345,
3098,
12,
2316,
548,
16,
389,
2316,
3098,
1769,
... |
./full_match/4/0xB98252f9cC006dcc3e749d7Fb576BB362e162cbF/sources/Users/ynishikubo/Downloads/pcs/contracts/contracts/LinkerPCS.sol | * @dev Close the auction. @notice Owner only method. @param tokenId ID of the token to be closed its auction./ | function close(uint256 tokenId) external {
require(
msg.sender == contractOwner,
"Only contract owner can execute this method."
);
address owner = ownerOf(tokenId);
safeTransferFrom(owner, highestBidder[tokenId], tokenId);
address payable recipient = p... | 691,305 | [
1,
4605,
326,
279,
4062,
18,
225,
16837,
1338,
707,
18,
225,
1147,
548,
1599,
434,
326,
1147,
358,
506,
4375,
2097,
279,
4062,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1746,
12,
11890,
5034,
1147,
548,
13,
3903,
288,
203,
3639,
2583,
12,
203,
5411,
1234,
18,
15330,
422,
6835,
5541,
16,
203,
5411,
315,
3386,
6835,
3410,
848,
1836,
333,
707,
1199,
203,
3639,
11272,
203,
3639,
1758,
3410... |
pragma solidity 0.5.11;
import "openzeppelin-solidity/contracts/cryptography/ECDSA.sol";
import "../interfaces/ISpendingCondition.sol";
import "../utils/OutputId.sol";
import "../../framework/PlasmaFramework.sol";
import "../../transactions/FungibleTokenOutputModel.sol";
import "../../transactions/GenericTransaction.... | * @dev This implementation checks signature for spending fee claim output. It should be signed with the owner signature. The fee claim output that is spendable follows Fungible Token Output format. @param feeTxBytes Encoded fee transaction @param utxoPos Position of the fee utxo @param paymentTxBytes Payment trans... | function verify(
bytes calldata feeTxBytes,
uint256 utxoPos,
bytes calldata paymentTxBytes,
uint16 inputIndex,
bytes calldata signature
)
external
view
returns (bool)
{
PosLib.Position memory decodedUtxoPos = PosLib.decode(utxoPos);
... | 12,843,044 | [
1,
2503,
4471,
4271,
3372,
364,
272,
9561,
14036,
7516,
876,
18,
2597,
1410,
506,
6726,
598,
326,
3410,
3372,
18,
1377,
1021,
14036,
7516,
876,
716,
353,
17571,
429,
13040,
478,
20651,
1523,
3155,
3633,
740,
18,
225,
14036,
4188,
2160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
12,
203,
3639,
1731,
745,
892,
14036,
4188,
2160,
16,
203,
3639,
2254,
5034,
5218,
25272,
1616,
16,
203,
3639,
1731,
745,
892,
5184,
4188,
2160,
16,
203,
3639,
2254,
2313,
810,
1016,
16,
203,
3639,
1731,
745,
892,... |
./partial_match/56/0xfb1ddA6E60D8d90d062c855Ded5efb56D429079e/sources/Dashboard.sol | ========== Restricted Operation ========== */ | function setPairAddress(address asset, address pair) external onlyAuthorized {
pairAddresses[asset] = pair;
}
| 11,108,077 | [
1,
1432,
631,
29814,
4189,
422,
1432,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
4154,
1887,
12,
2867,
3310,
16,
1758,
3082,
13,
3903,
1338,
15341,
288,
203,
3639,
3082,
7148,
63,
9406,
65,
273,
3082,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/**
*Submitted for verification at Etherscan.io on 2022-02-12
*/
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.11;
/// @title ERC165 Interface
/// @dev https://eips.ethereum.org/EIPS/eip-165
/// @author Andreas Bigger <[email protected]>
interface IERC165 {
/// @dev Returns if the contract implem... | @dev user => order number => order id | mapping(address => mapping(uint256 => uint256)) public userOrders;
| 6,549,959 | [
1,
1355,
516,
1353,
1300,
516,
1353,
612,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2874,
12,
2867,
516,
2874,
12,
11890,
5034,
516,
2254,
5034,
3719,
1071,
729,
16528,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./full_match/11155111/0xc2A92e838E6E9e4300a50D0FC27d5c7e5A799483/sources/src/DripsDeployer.sol | @notice Computes the deterministic address of a proxy and a contract deployed by a deployer. The proxy and the contract don't need to be deployed yet, these are hypothetical addresses. @param salt The salt used for deployment. @param deployer The address of the deployer of the proxy and the contract. @return proxy The... | function _computeAddress(bytes32 salt, address deployer)
private
pure
returns (address proxy, address addr)
{
proxy = Create2.computeAddress(salt, keccak256(PROXY_CREATION_CODE), deployer);
addr = address(uint160(uint256(keccak256(abi.encodePacked(hex"d694", proxy, hex"01... | 3,795,541 | [
1,
10743,
326,
25112,
1758,
434,
279,
2889,
471,
279,
6835,
19357,
635,
279,
7286,
264,
18,
1021,
2889,
471,
326,
6835,
2727,
1404,
1608,
358,
506,
19357,
4671,
16,
4259,
854,
28350,
278,
1706,
6138,
18,
225,
4286,
1021,
4286,
1399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9200,
1887,
12,
3890,
1578,
4286,
16,
1758,
7286,
264,
13,
203,
3639,
3238,
203,
3639,
16618,
203,
3639,
1135,
261,
2867,
2889,
16,
1758,
3091,
13,
203,
565,
288,
203,
3639,
2889,
273,
1788,
22,
18,
9200,
1887,
1... |
./partial_match/4/0x85477Ed5D7e665b9f24068236B949A34a1275DE8/sources/FatToken.sol | 2,5% of Total Token Cap
| uint percentage = uint(25)/uint(1000); | 8,751,720 | [
1,
22,
16,
25,
9,
434,
10710,
3155,
11200,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
11622,
273,
2254,
12,
2947,
13176,
11890,
12,
18088,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
/*
<< Exchange Core >>
*/
pragma solidity 0.7.5;
import "openzeppelin-solidity/contracts/access/Ownable.sol";
import "../lib/StaticCaller.sol";
import "../lib/ReentrancyGuarded.sol";
import "../lib/EIP712.sol";
import "../lib/EIP1271.sol";
import "../registry/ProxyRegistryInterface.sol";
import "../registry/Auth... | 对订单进行签名操作 end of medium & start of heading | function hashToSign(bytes32 orderHash)
internal
view
returns (bytes32 hash)
{
return
keccak256(
abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, orderHash)
);
}
| 1,022,251 | [
1,
166,
112,
122,
169,
111,
100,
166,
240,
248,
169,
128,
254,
169,
99,
239,
168,
260,
127,
166,
243,
240,
167,
246,
240,
165,
126,
255,
679,
434,
16212,
473,
787,
434,
11053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1651,
774,
2766,
12,
3890,
1578,
1353,
2310,
13,
203,
3639,
2713,
203,
3639,
1476,
203,
3639,
1135,
261,
3890,
1578,
1651,
13,
203,
565,
288,
203,
3639,
327,
203,
5411,
417,
24410,
581,
5034,
12,
203,
7734,
24126,
18,
... |
./full_match/1/0xCEa4a5C2990F2C32d5B9cc7Dda2Ad7110E61c7c2/sources/contracts/atheneum.sol | * @dev See {IERC721-approve}./ | function approve(address to, uint256 tokenId) public virtual override {
address owner = Atheneum.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve cal... | 9,677,523 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
17,
12908,
537,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
1071,
5024,
3849,
288,
203,
3639,
1758,
3410,
273,
432,
451,
4009,
379,
18,
8443,
951,
12,
2316,
548,
1769,
203,
3639,
2583,
12,
869,
480,
3410,
16,
315,
654,
... |
pragma solidity 0.5.17;
pragma experimental ABIEncoderV2;
// Libraries and common
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol";
import "../../util/TellerCommon.sol";
import "../../util/NumbersLib.sol... | Deduct the interest and principal owed | uint256 principalPaid;
| 5,362,017 | [
1,
20563,
853,
326,
16513,
471,
8897,
2523,
329,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
8897,
16507,
350,
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,
-100,... |
pragma solidity 0.5.17;
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor () internal { }
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal v... | 2022-10-20T00:00:00Z
| PrivateSalesMap[5]=1666224000; | 5,803,924 | [
1,
18212,
22,
17,
2163,
17,
3462,
56,
713,
30,
713,
30,
713,
62,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
8726,
23729,
863,
63,
25,
65,
33,
2313,
6028,
23622,
3784,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.0;
contract Auction {
// Create a structure to store information about an item in the auction house
struct Item{
string item_name; // name
string item_desc; // description
uint base_price; // start price
uint min_increment; // minimum increment for a bid
uint auction_price; // ... | Function to get numerical information for all items in the auction as an array | function getArrayOfNumericalInformation (uint num) public view returns (uint[itemCount] memory) {
uint[itemCount] memory arrayOfNumbers;
for (uint i=0;i < itemCount; i++) {
if (num == 1) {
arrayOfNumbers[i] = this.getItemPrice(i);
arrayOfNumbers[i] = this.getPercentIncrease(i);
arrayOfNumbers[i] = ... | 12,872,547 | [
1,
2083,
358,
336,
17409,
1779,
364,
777,
1516,
316,
326,
279,
4062,
487,
392,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
12634,
951,
2578,
10882,
5369,
261,
11890,
818,
13,
1071,
1476,
1135,
261,
11890,
63,
1726,
1380,
65,
3778,
13,
288,
203,
202,
202,
11890,
63,
1726,
1380,
65,
3778,
526,
951,
10072,
31,
203,
203,
202,
202,
1884,
261,
... |
pragma solidity 0.5.2;
/**
* @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 OwnershipRenounced(address indexed previousOwner);
... | @notice Inherit from it at ERC20, to make freezing functionality works/ | contract PausableToken is Freeze {
but with freezing modifiers. So, it have exactly same methods, but with
function transfer(address _to, uint256 _value) public lockupEnded(msg.sender, _to, _value) returns (bool) {
return super.transfer(_to, _value);
}
function transferFrom(address _from,... | 2,503,604 | [
1,
14216,
628,
518,
622,
4232,
39,
3462,
16,
358,
1221,
4843,
94,
310,
14176,
6330,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
21800,
16665,
1345,
353,
15217,
8489,
288,
203,
203,
3639,
1496,
598,
4843,
94,
310,
10429,
18,
6155,
16,
518,
1240,
8950,
1967,
2590,
16,
1496,
598,
7010,
565,
445,
7412,
12,
2867,
389,
869,
16,
2254,
5034,
389,
1132,
13,... |
./partial_match/1/0x86f78d3cbCa0636817AD9e27a44996C738Ec4932/sources/stableQiVault.sol | @param vaultID is the token id of the vault being interacted with. @notice Calculates the collateral percentage of a vault. | function checkCollateralPercentage(uint256 vaultID)
public
view
vaultExists(vaultID)
returns (uint256)
{
uint256 vaultDebtNow = vaultDebt(vaultID);
if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) {
return 0;
}
(
uin... | 2,821,074 | [
1,
26983,
734,
353,
326,
1147,
612,
434,
326,
9229,
3832,
16592,
329,
598,
18,
225,
26128,
326,
4508,
2045,
287,
11622,
434,
279,
9229,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
866,
13535,
2045,
287,
16397,
12,
11890,
5034,
9229,
734,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
9229,
4002,
12,
26983,
734,
13,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
2254,
5034,
922... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Disclaimer: This contract has been deployed for marketing purpose only. Please join to our community and do not buy any unofficial contract you find on the blockchain.
// Official links:
// Telegram: http... | */ ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------ | contract AMYTOKEN is ERC20Interface, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
Contract function to receive approval and execute function in on... | 9,889,814 | [
1,
19,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20653,
61,
8412,
353,
4232,
39,
3462,
1358,
16,
14060,
10477,
288,
203,
565,
533,
1071,
3273,
31,
203,
565,
533,
1071,
225,
508,
31,
203,
565,
2254,
28,
1071,
15105,
31,
203,
565,
2254,
1071,
389,
4963,
3088,
1283,
31,
2... |
pragma solidity ^0.4.21;
interface ERC20_MIST { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract ERC20MIST {
// Public variables of the token
string public name="ERC20_MIST";
string public symbol="MSI";
uint8 public decimals = 8;
// 18... | Set the symbol for display purposes
| symbol = tokenSymbol="MSI"; | 8,038,171 | [
1,
694,
326,
3273,
364,
2562,
13694,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3273,
273,
1147,
5335,
1546,
49,
2320,
14432,
27573,
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,
-10... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.7.0;
pragma abicoder v2;
import "./TradingAction.sol";
import "./ActionGuards.sol";
import "./nTokenMintAction.sol";
import "./nTokenRedeemAction.sol";
import "../SettleAssetsExternal.sol";
import "../FreeCollateralExternal.sol";
import "../../math/SafeInt256... | Total deposit share must add up to 100% | require(shareSum == uint256(Constants.DEPOSIT_PERCENT_BASIS), "PT: deposit shares sum");
| 12,672 | [
1,
5269,
443,
1724,
7433,
1297,
527,
731,
358,
2130,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
12,
14419,
3495,
422,
2254,
5034,
12,
2918,
18,
1639,
28284,
67,
3194,
19666,
67,
12536,
15664,
3631,
315,
1856,
30,
443,
1724,
24123,
2142,
8863,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/1/0xa39628ee6Ca80eb2D93f21Def75A7B4D03b82e1E/sources/contracts/roles/Attestable.sol | * @notice reverts if the attestation, which is comprised of one or more concatenated 65-byte signatures, is invalid. @dev Rules for valid attestation: 1. length of `_attestation` == 65 (signature length) signatureThreshold 2. addresses recovered from attestation must be in increasing order. For example, if signature A... | function _verifyAttestationSignatures(
bytes calldata _message,
bytes calldata _attestation
) internal view {
require(
_attestation.length == signatureLength * signatureThreshold,
"Invalid attestation length"
);
address _latestAttesterAddress = ad... | 3,843,969 | [
1,
266,
31537,
309,
326,
2403,
395,
367,
16,
1492,
353,
532,
683,
5918,
434,
1245,
578,
1898,
22080,
15892,
17,
7229,
14862,
16,
353,
2057,
18,
225,
15718,
364,
923,
2403,
395,
367,
30,
404,
18,
769,
434,
1375,
67,
270,
3813,
367,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8705,
3075,
395,
367,
23918,
12,
203,
3639,
1731,
745,
892,
389,
2150,
16,
203,
3639,
1731,
745,
892,
389,
270,
3813,
367,
203,
565,
262,
2713,
1476,
288,
203,
3639,
2583,
12,
203,
5411,
389,
270,
3813,
367,
18,
... |
pragma solidity ^0.4.18;
// import "./MeetupAccessControl.sol";
// import "./Members.sol";
// Based on https://github.com/axiomzen/cryptokitties-bounty/blob/master/contracts/KittyAccessControl.sol
contract MeetupAccessControl {
// The addresses of the accounts (or contracts) that can execute actions within each ro... | @dev Assigns a new address to act as the assistant. Only available to the current CEO. @param _newAssistant The address of the new assistant | function setAssistant_2(address _newAssistant) public onlyAssistant {
require(_newAssistant != address(0));
assistantAddress_2 = _newAssistant;
}
| 901,369 | [
1,
24842,
279,
394,
1758,
358,
1328,
487,
326,
28779,
18,
5098,
2319,
358,
326,
783,
29538,
51,
18,
225,
389,
2704,
2610,
17175,
1021,
1758,
434,
326,
394,
28779,
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,
225,
445,
444,
2610,
17175,
67,
22,
12,
2867,
389,
2704,
2610,
17175,
13,
1071,
1338,
2610,
17175,
288,
203,
1377,
2583,
24899,
2704,
2610,
17175,
480,
1758,
12,
20,
10019,
203,
203,
1377,
28779,
1887,
67,
22,
273,
389,
2704,
261... |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts... | @param beneficiary Address performing the token purchase @param weiAmount Value in wei involved in the purchase/ | function _preValidatePurchase(address beneficiary, uint256 weiAmount)
internal
pure
{
require(beneficiary != address(0), "948");
require(weiAmount != 0, "949");
}
| 12,746,606 | [
1,
70,
4009,
74,
14463,
814,
5267,
14928,
326,
1147,
23701,
225,
732,
77,
6275,
1445,
316,
732,
77,
24589,
316,
326,
23701,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
1484,
4270,
23164,
12,
2867,
27641,
74,
14463,
814,
16,
2254,
5034,
732,
77,
6275,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
565,
288,
203,
3639,
2583,
12,
70,
4009,
74,
14463,
814,
480,
1758,
12,
20,
3631,
315... |
pragma solidity 0.4.18;
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
/// @author Stefan George - <stefan.george@consensys.net>
contract MultiSigWallet {
uint constant public MAX_OWNER_COUNT = 50;
event Confirmation(address indexed sender, uint indexed... | @dev Allows anyone to execute a confirmed transaction. @param transactionId Transaction ID. | function executeTransaction(uint transactionId)
public
notExecuted(transactionId)
{
if (isConfirmed(transactionId)) {
Transaction storage txn = transactions[transactionId];
txn.executed = true;
if (txn.destination.call.value(txn.value)(txn.data))
... | 39,651 | [
1,
19132,
1281,
476,
358,
1836,
279,
19979,
2492,
18,
225,
24112,
5947,
1599,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
3342,
12,
11890,
24112,
13,
203,
3639,
1071,
203,
3639,
486,
23839,
12,
7958,
548,
13,
203,
565,
288,
203,
3639,
309,
261,
291,
3976,
11222,
12,
7958,
548,
3719,
288,
203,
5411,
5947,
2502,
7827,
273,
8938,
63,
... |
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers ov... | File: contracts/LEN.sol"SPDX-License-Identifier: UNLICENSED" $$$$$$$\ $$$$$$$\ $$\ $$ __$$\ $$ __$$\ $$ | $$ | $$ |$$\ $$\ $$\ $$\ $$ | $$ |$$\ $$\ $$$$$$$\ $$ | $$\ $$$$$$$\ |$$ | $$ |$$ | $$ | $$$$$... | contract SimpleCollectible is ERC721, Ownable {
using SafeMath for uint256;
uint256 public tokenCounter;
uint256 public _totalSupply = 5635;
string private _baseTokenURI;
bool private paused;
address private WG = 0x1B3FEA07590E63Ce68Cb21951f3C133a35032473;
address private LW = 0x0... | 1,674,270 | [
1,
812,
30,
20092,
19,
13017,
18,
18281,
6,
3118,
28826,
17,
13211,
17,
3004,
30,
5019,
6065,
1157,
18204,
6,
5366,
16547,
16547,
8,
64,
18701,
5366,
16547,
16547,
8,
64,
8227,
5366,
64,
5366,
225,
1001,
16547,
64,
21821,
5366,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4477,
10808,
1523,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
2254,
5034,
1071,
1147,
4789,
31,
203,
203,
203,
203,
565,
2254,
5034,
1071,
389,
4963,
3088,
1... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.7.4;
interface INiftyswapFactory20 {
/***********************************|
| Events |
|__________________________________*/
event NewExchange(address indexed token, address indexed currency, uint256 indexed salt, address exch... | Fixed cost for the tx
| uint256 gasFee; | 5,748,602 | [
1,
7505,
6991,
364,
326,
2229,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2254,
5034,
16189,
14667,
31,
5411,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import './SafeMath.sol';
// https://docs.synthetix.io/contracts/source/libraries/safedecimalmath
library SafeDecimalMath {
using SafeMath for uint256;
/* Number of decimal places in the representations. */
uint8 public constant decimals = 18;
u... | * @return The result of safely dividing x and y. The return value is a high precision decimal. @dev y is divided after the product of x and the standard precision unit is evaluated, so the product of x and UNIT must be less than 2256. As this is an integer division, the result is always rounded down. This helps save on... | function divideDecimal(uint256 x, uint256 y)
internal
pure
returns (uint256)
{
return x.mul(UNIT).div(y);
| 5,525,244 | [
1,
2463,
1021,
563,
434,
15303,
3739,
10415,
619,
471,
677,
18,
1021,
327,
460,
353,
279,
3551,
6039,
6970,
18,
225,
677,
353,
26057,
1839,
326,
3017,
434,
619,
471,
326,
4529,
6039,
2836,
353,
12697,
16,
1427,
326,
3017,
434,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12326,
5749,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
203,
3639,
2713,
203,
3639,
16618,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
619,
18,
16411,
12,
15736,
2934,
2892,
12,
93,
1769,
... |
./full_match/1/0xf6aa125a49c7B371f27dEA01E7407DAa85AB91ed/sources/contracts/feeDistributor/Erc4337Account.sol | @notice sends to the entrypoint (msg.sender) the missing funds for this transaction. @param _missingAccountFunds the minimum value this method should send the entrypoint. this value MAY be zero, in case there is enough deposit, or the userOp has a paymaster.ignore failure (its EntryPoint's job to verify, not account.) | function _payPrefund(uint256 _missingAccountFunds) private {
if (_missingAccountFunds != 0) {
(success);
}
}
| 3,847,852 | [
1,
4661,
87,
358,
326,
26076,
261,
3576,
18,
15330,
13,
326,
3315,
284,
19156,
364,
333,
2492,
18,
225,
389,
7337,
3032,
42,
19156,
326,
5224,
460,
333,
707,
1410,
1366,
326,
26076,
18,
333,
460,
490,
5255,
506,
3634,
16,
316,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10239,
23218,
1074,
12,
11890,
5034,
389,
7337,
3032,
42,
19156,
13,
3238,
288,
203,
3639,
309,
261,
67,
7337,
3032,
42,
19156,
480,
374,
13,
288,
203,
5411,
261,
4768,
1769,
203,
3639,
289,
203,
565,
289,
203,
2... |
./full_match/5/0xc9A95D580F880C60055c54Fa1A71c9b8C6892E78/sources/project_/contracts/Miragrow.sol | Swap tax token in the token contract to eth | function _swapTaxTokensForEth(uint256 tokenAmount) private {
_approveRouter();
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _primarySwapRouter.WETH();
_primarySwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,addr... | 1,868,386 | [
1,
12521,
5320,
1147,
316,
326,
1147,
6835,
358,
13750,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
22270,
7731,
5157,
1290,
41,
451,
12,
11890,
5034,
1147,
6275,
13,
3238,
288,
203,
3639,
389,
12908,
537,
8259,
5621,
203,
3639,
1758,
8526,
3778,
589,
273,
394,
1758,
8526,
12,
22,
1769,
203,
3639,
589,
63,
20,
... |
./partial_match/3/0x50fef2Bb63b907Fa3897B8F35bd0F318E65478FB/sources/NexaBook.sol | messageHash can be used only onceVerifes signature | function buyNewLevel(uint8 matrix, uint8 level, uint _noOfTokens, bytes calldata _signature, uint _currentTime) external isLock payable {
require(isUserExists(msg.sender), "user is not exists. Register first.");
require(matrix == 1 || matrix == 2, "invalid matrix");
require(msg.value == leve... | 5,092,675 | [
1,
2150,
2310,
848,
506,
1399,
1338,
3647,
3945,
430,
281,
3372,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
30143,
1908,
2355,
12,
11890,
28,
3148,
16,
2254,
28,
1801,
16,
2254,
389,
2135,
951,
5157,
16,
1731,
745,
892,
389,
8195,
16,
2254,
389,
2972,
950,
13,
3903,
353,
2531,
8843,
429,
288,
203,
3639,
2583,
12,
291,
1299,... |
./partial_match/71402/0xdd045F4068fe80A32502C18AeE96679F0e120b32/sources/contracts/protocol/libraries/logic/ValidationLogic.sol | * @title ReserveLogic library @notice Implements functions to validate the different actions of the protocol/ | library ValidationLogic {
using ReserveLogic for DataTypes.ReserveData;
using SafeMath for uint256;
using WadRayMath for uint256;
using PercentageMath for uint256;
using SafeERC20 for IERC20;
using ReserveConfiguration for DataTypes.ReserveConfigurationMap;
using UserConfiguration for DataTypes.UserConfig... | 16,895,065 | [
1,
607,
6527,
20556,
5313,
225,
29704,
4186,
358,
1954,
326,
3775,
4209,
434,
326,
1771,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5684,
20556,
288,
203,
225,
1450,
1124,
6527,
20556,
364,
1910,
2016,
18,
607,
6527,
751,
31,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
1450,
678,
361,
54,
528,
10477,
364,
2254,
5034,
31,
203,
225,
1450... |
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../token/ITokenContract.sol";
/**
* @dev Supports ERC20 tokens
* The escrow smart contract for the open bazaar trades in Ethereum
* The smart contract is desgined keeping in mind the current wallet interface of the OB-core
*... | *@dev Allows one of the moderator to collect all the signature to solve dispute and submit it to this method. If all the required signatures are collected and consensus has been reached than funds will be released to the voted party@param sigV Array containing V component of all the signatures@param sigR Array containi... | function execute(
uint8[] sigV,
bytes32[] sigR,
bytes32[] sigS,
bytes32 scriptHash,
address[] destinations,
uint256[] amounts
)
external
transactionExists(scriptHash)
inFundedState(scriptHash)
{
require(
destinations... | 2,478,301 | [
1,
19132,
1245,
434,
326,
681,
7385,
358,
3274,
777,
326,
3372,
358,
12439,
1015,
2507,
471,
4879,
518,
358,
333,
707,
18,
971,
777,
326,
1931,
14862,
854,
12230,
471,
18318,
711,
2118,
8675,
2353,
284,
19156,
903,
506,
15976,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
1836,
12,
203,
3639,
2254,
28,
8526,
3553,
58,
16,
203,
3639,
1731,
1578,
8526,
3553,
54,
16,
203,
3639,
1731,
1578,
8526,
3553,
55,
16,
203,
3639,
1731,
1578,
2728,
2310,
16,
203,
3639,
1758,
8526,
20456,
16,
203,
36... |
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(add... | Tokens can't be transfered until start date
| require(now >= startTime); | 1,678,992 | [
1,
5157,
848,
1404,
506,
7412,
329,
3180,
787,
1509,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
2583,
12,
3338,
1545,
8657,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.25;
pragma experimental ABIEncoderV2;
pragma experimental "v0.5.0";
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/56515380452baad9fcd32c5d4502002af0183ce9/contracts/math/SafeMath.sol
*/
library SafeMa... | Oasis buy/sell Wipe Join Lock | function lad(bytes32 cup) public view returns (address);
function per() public view returns (uint ray);
function tab(bytes32 cup) public returns (uint);
function ink(bytes32 cup) public returns (uint);
function rap(bytes32 cup) public returns (uint);
function chi() public returns (uint);
function open() public ... | 15,457,484 | [
1,
51,
17247,
30143,
19,
87,
1165,
678,
3151,
4214,
3488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
915,
328,
361,
12,
3890,
1578,
276,
416,
13,
1071,
1476,
1135,
261,
2867,
1769,
203,
202,
915,
1534,
1435,
1071,
1476,
1135,
261,
11890,
14961,
1769,
203,
202,
915,
3246,
12,
3890,
1578,
276,
416,
13,
1071,
1135,
261,
11890,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "../core/Common.sol";
import "../oracle/OracleFacade.sol";
/**
* @title Main insurance contract
* @dev Implement main contract for Insurance. contract between insurance and farmers is materialized in here
*
* @notice inhertit {Common} contract... | * @dev get number of closed contracts for a given key @param key keccak256 of season + region @return number of closed contracts/ | function getNumberClosedContractsByKey(bytes32 key)
public
view
returns (uint256)
{
return closedContracts[key].length;
}
| 13,043,455 | [
1,
588,
1300,
434,
4375,
20092,
364,
279,
864,
498,
225,
498,
417,
24410,
581,
5034,
434,
15874,
397,
3020,
327,
1300,
434,
4375,
20092,
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,
565,
445,
18491,
7395,
20723,
14560,
12,
3890,
1578,
498,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
327,
4375,
20723,
63,
856,
8009,
2469,
31,
203,
565,
289,
203,
203,
... |
pragma solidity ^0.4.18;
contract Owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
i... | Public variables of the token 18 decimals is the strongly suggested default, avoid changing it This creates an array with all balances This generates a public event on the blockchain that will notify clients This notifies clients about the amount burnt | contract TokenERC20 {
string public name;
string public symbol;
uint8 public decimals = 6;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to,... | 11,741,055 | [
1,
4782,
3152,
434,
326,
1147,
6549,
15105,
353,
326,
11773,
715,
22168,
805,
16,
4543,
12770,
518,
1220,
3414,
392,
526,
598,
777,
324,
26488,
1220,
6026,
279,
1071,
871,
603,
326,
16766,
716,
903,
5066,
7712,
1220,
19527,
7712,
2973... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
654,
39,
3462,
288,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
28,
1071,
15105,
273,
1666,
31,
203,
565,
2254,
5034,
1071,
2078,
3088,
1283,
31,
203,
203,
565,
2874,
261,
2867,
516... |
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.3;
import "./NameRegistry.sol";
/// @title NameAccessor - manages the endpoints.
/// @author Shumpei Koike - <shumpei.koike@bridges.inc>
contract NameAccessor {
NameRegistry internal _nameRegistry;
/// @dev Sets the address of NameRegistry.
/// @param nam... | @dev Gets the address of NameRegistry | function nameRegistryAddress() public view returns (address) {
return address(_nameRegistry);
}
| 984,862 | [
1,
3002,
326,
1758,
434,
1770,
4243,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
915,
508,
4243,
1887,
1435,
1071,
1476,
1135,
261,
2867,
13,
288,
203,
202,
202,
2463,
1758,
24899,
529,
4243,
1769,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../Auth... | Burn amount must be <= 100%
| require(_burn <= 10000, "BA"); | 7,305,878 | [
1,
38,
321,
3844,
1297,
506,
1648,
2130,
9,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
24899,
70,
321,
1648,
12619,
16,
315,
12536,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/*
____ __ __ __ _
/ __/__ __ ___ / /_ / / ___ / /_ (_)__ __
_\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
/___/
* Synthetix: YUANIncentives.sol
*
* Docs: https://docs.synthetix.io/
*
*
* MIT License
* ===========
*
* Copyright (c) 2020 S... | ERROR: type should be string, got " https:sips.synthetix.io/sips/sip-77 increased buffer for scaling factor ( supports up to 10**4 * 10**18 scaling factor)" | function notifyRewardAmountAndDuration(uint256 reward, uint256 _duration)
external
onlyRewardDistribution
updateReward(address(0))
{
require(_duration > 0, "Duration must > 0");
require(reward < uint256(-1) / 10**22, "rewards too large, would lock");
if (block.t... | 1,162,658 | [
1,
4528,
30,
87,
7146,
18,
11982,
451,
278,
697,
18,
1594,
19,
87,
7146,
19,
28477,
17,
4700,
31383,
1613,
364,
10612,
5578,
261,
6146,
731,
358,
21856,
225,
13822,
28,
10612,
5578,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5066,
17631,
1060,
6275,
1876,
5326,
12,
11890,
5034,
19890,
16,
2254,
5034,
389,
8760,
13,
203,
3639,
3903,
203,
3639,
1338,
17631,
1060,
9003,
203,
3639,
1089,
17631,
1060,
12,
2867,
12,
20,
3719,
203,
565,
288,
203,
... |
./full_match/1/0x733015E8606F4f079828f0bf71A2FC7135F9d119/sources/src/StakingManager.sol | @notice Disables the bid whitelist @dev Allows both regular users and whitelisted users to bid | function disableWhitelist() public onlyOwner {
whitelistEnabled = false;
emit WhitelistDisabled();
}
| 17,041,743 | [
1,
1669,
1538,
326,
9949,
10734,
225,
25619,
3937,
6736,
3677,
471,
26944,
3677,
358,
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,... | [
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,
4056,
18927,
1435,
1071,
1338,
5541,
288,
203,
3639,
10734,
1526,
273,
629,
31,
203,
3639,
3626,
3497,
7523,
8853,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x919e73912510Ee303A52C6A7ddAEbB4ffE2376a1/sources/contracts/protocol/extensions/adapters/ASelfCustody.sol | @dev executes a safe transfer to any ERC20 token @param token Address of the origin @param to Address of the target @param value Amount to transfer solhint-disable-next-line avoid-low-level-calls | function _safeTransfer(
address token,
address to,
uint256 value
) private {
(bool success, bytes memory data) = token.call(abi.encodeWithSelector(_TRANSFER_SELECTOR, to, value));
require(success && (data.length == 0 || abi.decode(data, (bool))), "ASELFCUSTODY_TRANSFER_FA... | 1,938,107 | [
1,
4177,
993,
279,
4183,
7412,
358,
1281,
4232,
39,
3462,
1147,
225,
1147,
5267,
434,
326,
4026,
225,
358,
5267,
434,
326,
1018,
225,
460,
16811,
358,
7412,
3704,
11317,
17,
8394,
17,
4285,
17,
1369,
4543,
17,
821,
17,
2815,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4626,
5912,
12,
203,
3639,
1758,
1147,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
460,
203,
565,
262,
3238,
288,
203,
3639,
261,
6430,
2216,
16,
1731,
3778,
501,
13,
273,
1147,
18,
1991,
12,
21457,
18,
... |
./full_match/1/0x0F72964Fa4b766521d84107991E837c30D0EF2b1/sources/contracts/openzeppelin/Math.sol | * @dev Return the log in base 256, rounded down, of a positive value. Returns 0 if given 0. Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string./ | function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
... | 2,983,920 | [
1,
990,
326,
613,
316,
1026,
8303,
16,
16729,
2588,
16,
434,
279,
6895,
460,
18,
2860,
374,
309,
864,
374,
18,
21240,
1245,
358,
326,
563,
14758,
326,
1300,
434,
5574,
434,
3827,
7963,
3577,
358,
2406,
1375,
1132,
68,
487,
279,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
613,
5034,
12,
11890,
5034,
460,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
565,
2254,
5034,
563,
273,
374,
31,
203,
225,
22893,
288,
203,
565,
309,
261,
1132,
1671,
8038,
405,
374,
13,
288,
203,
1377,
460... |
pragma solidity >=0.6.0 <0.7.0;
import "hardhat/console.sol";
import "./ExampleExternalContract.sol";
contract Staker {
ExampleExternalContract public exampleExternalContract;
mapping(address => uint256) public balances; // balance of user staked fund
uint256 public constant threshold = 1 ether; // staking t... | if the `threshold` was not met, allow everyone to call a `withdraw()` function | function withdraw() public deadlineReached(true) notCompleted{
uint256 balance = balances[msg.sender];
require(balance > 0,"No funds to withdraw");
balances[msg.sender] = 0;
require(sent,"Could not send funds to external contract");
}
| 14,098,588 | [
1,
430,
326,
1375,
8699,
68,
1703,
486,
5100,
16,
1699,
3614,
476,
358,
745,
279,
1375,
1918,
9446,
20338,
445,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1435,
1071,
14096,
23646,
12,
3767,
13,
486,
9556,
95,
203,
565,
2254,
5034,
11013,
273,
324,
26488,
63,
3576,
18,
15330,
15533,
203,
565,
2583,
12,
12296,
405,
374,
10837,
2279,
284,
19156,
358,
598,
9446,
8... |
./partial_match/1/0x704A0737a046BeC408b65176105AFB0DEc3E9e1B/sources/SlowBurn.sol | OpenZeppelin SafeMath. | library SafeMath {
pragma solidity ^0.7.5;
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) {
return sub(a, ... | 16,196,711 | [
1,
3678,
62,
881,
84,
292,
267,
14060,
10477,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14060,
10477,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
27,
18,
25,
31,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
276,
27... |
pragma solidity ^0.4.11;
/**
* Math operations with safety checks
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal returns (uint256) {
// a... | @title Votes Platform Token | contract VotesPlatformToken is StandardToken, Ownable {
string public name = "Votes Platform Token";
string public symbol = "VOTES";
uint256 public decimals = 2;
uint256 public INITIAL_SUPPLY = 100000000 * 100;
mapping(address => bool) refundAllowed;
address public migrationAgent;
uint256 public totalM... | 6,412,517 | [
1,
29637,
11810,
3155,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
776,
6366,
8201,
1345,
353,
8263,
1345,
16,
14223,
6914,
288,
203,
203,
225,
533,
1071,
508,
273,
315,
29637,
11810,
3155,
14432,
203,
225,
533,
1071,
3273,
273,
315,
16169,
7296,
14432,
203,
225,
2254,
5034,
1071,
15105,
27... |
pragma solidity ^0.4.24;
// Interface for insurer's contract to interact with factory contract.
contract FactoryInterfaceC {
function getContractAddress(uint _IDType, address _owner) public view returns (address);
}
// Interface for insurer's contract to interact with customer's contract.
contract CustInt... | Used in hashing of claim data.
| uint private claimNonce = 0; | 6,391,779 | [
1,
6668,
316,
24641,
434,
7516,
501,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
3238,
7516,
13611,
273,
374,
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,
... |
./full_match/1/0x706c9F2dd328E2C01483eCF705D2D9708F4aB727/sources/src/deployer/PWNDeployer.sol | ----------------------------------------------------------*| | constructor() Ownable() {
}
|*----------------------------------------------------------*/
| 4,962,837 | [
1,
9634,
15392,
96,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
565,
3885,
1435,
14223,
6914,
1435,
288,
203,
203,
565,
289,
203,
203,
203,
565,
571,
14,
9634,
15392,
5549,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x75787B9a9B47A1fb0D4daF40BA1980dE7782fDAc/sources/kali.sol | @notice Simple gas-optimized Kali DAO core module. | contract KaliDAO is KaliDAOtoken, Multicall, NFThelper, ReentrancyGuard {
EVENTS
event NewProposal(address indexed proposer, uint256 indexed proposal);
event ProposalCancelled(address indexed proposer, uint256 indexed proposal);
event ProposalSponsored(address indexed sponsor,... | 13,361,733 | [
1,
5784,
16189,
17,
16689,
1235,
1475,
18083,
463,
20463,
2922,
1605,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1475,
18083,
18485,
353,
1475,
18083,
18485,
2316,
16,
7778,
335,
454,
16,
423,
42,
1315,
1602,
16,
868,
8230,
12514,
16709,
288,
203,
18701,
9964,
55,
203,
203,
565,
871,
1166,
14592,
12,
2867,
8808,
450,
5607,
16,
2254,
... |
./partial_match/83/0x384aB733758701f00527a18A82B9178E69B89cf4/sources/UltraBoost_flat.sol | File: contracts/UltraBoost.sol | contract UltraBoost is ERC721Psi{
using Strings for uint256;
address private owner;
uint256 maxSupply=100;
string private baseTokenUri;
mapping (address => uint256) public totalMinted;
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
... | 8,828,553 | [
1,
812,
30,
20092,
19,
57,
80,
2033,
26653,
18,
18281,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
587,
80,
2033,
26653,
353,
4232,
39,
27,
5340,
52,
7722,
95,
203,
565,
1450,
8139,
364,
2254,
5034,
31,
203,
203,
565,
1758,
3238,
3410,
31,
203,
565,
2254,
5034,
943,
3088,
1283,
33,
6625,
31,
203,
565,
533,
3238,
1026,... |
// Наречия, которые могут предварять предложение без отбивки запятой
wordentry_set AdvAsClausePrefix =
{
eng_adverb:Finally{}, // Finally I would like to express my debt to my personal heroes.
eng_adverb:In all likelihood{}, // In all likelihood we are headed for war.
eng_adverb:Hopefully{}, // Hopefully the weathe... | Academically, this is a good school.
| eng_adverb:Academically{}, | 13,045,116 | [
1,
37,
5065,
81,
6478,
16,
333,
353,
279,
7494,
18551,
1371,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
24691,
67,
361,
16629,
30,
37,
5065,
81,
6478,
2916,
16,
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... |
./full_match/1/0x2F1BA373c72d91556027Fff01F8F212B2E28dA12/sources/contracts/OneStepLeverage.f.sol | @dev Interface that OneStepLeverage needs to implement --- Errors --- --- Events --- --- Functions --- | interface IOneStepLeverage is IERC3156FlashBorrower, IPositionManagerDependent {
error AmmCannotBeZero();
error CollateralTokenCannotBeZero();
error UnsupportedToken();
error InvalidInitiator();
error ZeroDebtChange();
event LeveragedPositionAdjusted(
address indexed position,
... | 3,079,605 | [
1,
1358,
716,
6942,
4160,
1682,
5682,
4260,
358,
2348,
9948,
9372,
9948,
9948,
9043,
9948,
9948,
15486,
9948,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5831,
467,
3335,
4160,
1682,
5682,
353,
467,
654,
39,
23,
28946,
11353,
38,
15318,
264,
16,
467,
2555,
1318,
18571,
288,
203,
203,
565,
555,
3986,
81,
4515,
1919,
7170,
5621,
203,
203,
565,
555,
17596,
2045,
287,
1345,
4515,
1919... |
pragma solidity 0.4.25;
pragma experimental ABIEncoderV2;
pragma experimental "v0.5.0";
/**
* @title SafeMath
* @dev Math operations with safety checks that revert on error
* https://github.com/OpenZeppelin/openzeppelin-solidity/blob/d17ae0b806b2f8e69b291284bbf30321640609e3/contracts/math/SafeMath.sol
*/
... | Technically from DSAuth | contract DSProxy {
address public owner;
function execute(address _target, bytes _data) public payable returns (bytes32 response);
}
| 6,411,762 | [
1,
56,
22528,
6478,
628,
8678,
1730,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8678,
3886,
288,
203,
202,
2867,
1071,
3410,
31,
203,
203,
202,
915,
1836,
12,
2867,
389,
3299,
16,
1731,
389,
892,
13,
1071,
8843,
429,
1135,
261,
3890,
1578,
766,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
interface IERC20 {
function transferFrom(address sender, add... | * @title BlockChainedELite Limited run NFT collection of 2021's most popular pop culture icons Inspired by the Mock provided by OpenZeppelin/ state variables mapping bce coin | contract BlockChainedElite is ERC721, Ownable {
using SafeMath for uint256;
uint256 constant HotSaleLength = 14 days;
uint256 start;
mapping (uint256 => string) public tokenNames;
mapping (string => bool) private nameReserved;
mapping (uint256 => uint256) public flips;
mapping (uint256 => ... | 13,995,471 | [
1,
1768,
3893,
329,
2247,
1137,
7214,
329,
1086,
423,
4464,
1849,
434,
26599,
21,
1807,
4486,
1843,
2490,
1843,
276,
29923,
17455,
657,
1752,
2921,
635,
326,
7867,
2112,
635,
3502,
62,
881,
84,
292,
267,
19,
919,
3152,
2874,
324,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3914,
3893,
329,
4958,
1137,
353,
4232,
39,
27,
5340,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
2254,
5034,
5381,
670,
352,
30746,
1782,
273,
5045,
4681,
31,
203,
565,
2254,
50... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
import "./AccessControl.sol";
import "./PriceFeed.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens... | * @dev See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; If address is approved brrr3x or brrr10x address don't check allowance and allow 1 transaction transfer (no approval needed)/ | function transferFrom(
address sender,
address recipient,
uint256 amount
) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
if (msg.sender != brrr3x && msg.sender != brrr10x) {
_approve(
sender,
_ms... | 9,910,597 | [
1,
9704,
288,
45,
654,
39,
3462,
17,
13866,
1265,
5496,
7377,
1282,
392,
288,
23461,
97,
871,
11193,
326,
3526,
1699,
1359,
18,
1220,
353,
486,
1931,
635,
326,
512,
2579,
18,
2164,
326,
4721,
622,
326,
8435,
434,
288,
654,
39,
346... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
5793,
16,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
1071,
5024,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
389,
13866,
12,
15330,
16,
8027,
16,
3844,
1769,
... |
pragma solidity ^0.4.24;
// Amis Dex OnChainOrderBook follows ERC20 Standards
contract ERC20 {
function totalSupply() constant returns (uint);
function balanceOf(address _owner) constant returns (uint balance);
function transfer(address _to, uint _value) returns (bool success);
function transferFrom(address _f... | working copy of current bitmap which we keep shifting
| uint wbm = cbm >> bti; | 914,625 | [
1,
20478,
1610,
434,
783,
9389,
1492,
732,
3455,
699,
430,
1787,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17298,
81,
273,
2875,
81,
1671,
324,
9096,
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,
-10... |
pragma solidity >=0.5.0;
import "./openzeppelin/Ownable.sol";
import "./openzeppelin/SupportsInterfaceWithLookup.sol";
import "./openzeppelin/ERC721Basic.sol";
import "./openzeppelin/ERC721.sol";
import "./openzeppelin/ERC721Receiver.sol";
import "./openzeppelin/SafeMath.sol";
import "./openzeppelin/AddressUtils.sol";... | @notice Find the owner of an NFT @param _tokenId The identifier for an NFT @dev NFTs assigned to zero address are considered invalid, and queries about them do throw. @return The address of the owner of the NFT | function ownerOf(uint256 _tokenId) public view correctToken(_tokenId) returns (address) {
address tokenOwner = SnarkBaseLib.getOwnerOfToken(_storage, _tokenId);
require(tokenOwner != address(0));
return tokenOwner;
}
| 6,367,002 | [
1,
3125,
326,
3410,
434,
392,
423,
4464,
225,
389,
2316,
548,
1021,
2756,
364,
392,
423,
4464,
225,
423,
4464,
87,
6958,
358,
3634,
1758,
854,
7399,
2057,
16,
471,
6218,
1377,
2973,
2182,
741,
604,
18,
327,
1021,
1758,
434,
326,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3410,
951,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
3434,
1345,
24899,
2316,
548,
13,
1135,
261,
2867,
13,
288,
203,
3639,
1758,
1147,
5541,
273,
18961,
1313,
2171,
5664,
18,
588,
5541,
951,
1345,
24899,
5697,
1... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./IAToken.sol";
import "./ILendingPool.sol";
import "./ILendingPoolCore.sol";
import "./ILendingPoolAddressesProvider.sol";
import "./FlashLo... | Get proxy balance before redeem | {
uint256 beforeUnderlyingAssetAmount;
_amount = _getBalance(_aToken, _amount);
address underlyingAsset = IAToken(_aToken).underlyingAssetAddress();
function redeem(address _aToken, uint256 _amount)
external
payable
returns (uint256 underlyingAssetAmount)
... | 12,900,510 | [
1,
967,
2889,
11013,
1865,
283,
24903,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
2254,
5034,
1865,
14655,
6291,
6672,
6275,
31,
203,
3639,
389,
8949,
273,
389,
588,
13937,
24899,
69,
1345,
16,
389,
8949,
1769,
203,
3639,
1758,
6808,
6672,
273,
467,
789,
969,
24899,
69,
1345,
2934,
9341,
6... |
./full_match/80001/0x96843178AEf01A428798177F45E809Dc6F7b76f2/sources/contracts/Recycle.sol | * @dev Modifier that allows only registered pickers to perform an action./ TODO: Improve function modularity and reduce dependencies for enhanced decoupling. | modifier onlyPicker() {
require(
bytes(pickers[msg.sender].name).length > 0,
"Recycle: Only a registered pickers can perform this action"
);
_;
}
| 5,675,629 | [
1,
9829,
716,
5360,
1338,
4104,
6002,
414,
358,
3073,
392,
1301,
18,
19,
2660,
30,
2221,
685,
537,
445,
681,
12976,
471,
5459,
5030,
364,
29865,
2109,
28322,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1338,
13194,
1435,
288,
203,
3639,
2583,
12,
203,
5411,
1731,
12,
11503,
414,
63,
3576,
18,
15330,
8009,
529,
2934,
2469,
405,
374,
16,
203,
5411,
315,
426,
13946,
30,
5098,
279,
4104,
6002,
414,
848,
3073,
333,
1301,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0;
pragma experimental ABIEncoderV2;
import "../Interface/IBerry.sol";
/**
* @title UserContract
* This contracts creates for easy integration to the Berry System
* by allowing smart contracts to read data off Berry
*/
contract UsingBerry {
IBerry private ... | * @return Returns the current reward amount./ | function currentReward() external view returns (uint256) {
uint256 rewardAccumulated;
if (berry.getUintVar(keccak256("height")) > 172800) {
rewardAccumulated = 0;
rewardAccumulated = 61728395061728390000 / (berry.getUintVar(keccak256("height")) / 43200 + 1);
}
... | 13,124,224 | [
1,
2463,
2860,
326,
783,
19890,
3844,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
783,
17631,
1060,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
19890,
8973,
5283,
690,
31,
203,
3639,
309,
261,
70,
21938,
18,
588,
5487,
1537,
12,
79,
24410,
581,
5034,
2932,
4210,
6,
3719,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
impo... | * @notice Set custom network fee percentage @param _percentage Integar (100 = 1%) Requirements: - Only owner of this contract can call this function - Amount set must less than network fee for tier 3/ | function setCustomNetworkFeePercentage(uint256 _percentage) public onlyOwner {
require(_percentage < networkFeePercentage[2], "Custom network fee percentage cannot be more than tier 2");
uint256 oldCustomNetworkFeePercentage = customNetworkFeePercentage;
customNetworkFeePercentage = _percen... | 12,660,151 | [
1,
694,
1679,
2483,
14036,
11622,
225,
389,
18687,
657,
736,
75,
297,
261,
6625,
273,
404,
9,
13,
29076,
30,
300,
5098,
3410,
434,
333,
6835,
848,
745,
333,
445,
300,
16811,
444,
1297,
5242,
2353,
2483,
14036,
364,
17742,
890,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
26723,
3906,
14667,
16397,
12,
11890,
5034,
389,
18687,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
18687,
411,
2483,
14667,
16397,
63,
22,
6487,
315,
3802,
2483,
14036,
11622,
2780,
506,
1898,
2353,
17742,
576,
8863... |
./full_match/1/0x9aBb02c05256D10c40c7459558E50D81958A73c1/sources/MILADYARMY.sol | set as Marketing wallet
| marketingWallet = address(0x0Aff42Ca6bd687A4CCf1f9499a675d2618Ff156A); | 9,771,120 | [
1,
542,
487,
6622,
21747,
9230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
202,
3355,
21747,
16936,
273,
1758,
12,
20,
92,
20,
13785,
9452,
23508,
26,
16410,
9470,
27,
37,
24,
6743,
74,
21,
74,
11290,
2733,
69,
26,
5877,
72,
5558,
2643,
42,
74,
28946,
37,
1769,
225,
2,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import "./Initializable.sol";
import "./BEP20Upgrade.sol";
/* An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
{ERC1967Proxy}, when this contract is set as the implementation behind such a prox... | An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an | {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
| 5,428,588 | [
1,
979,
8400,
2967,
12860,
26584,
364,
587,
3079,
55,
13263,
18,
1021,
4186,
5849,
2674,
848,
3073,
392,
8400,
434,
392,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
654,
39,
3657,
9599,
3886,
5779,
1347,
333,
6835,
353,
444,
487,
326,
4471,
21478,
4123,
279,
2889,
18,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0xc2004704209C69F7ECAdCc15e732e1e5e0D612F4/sources/Depot.sol | How many SNX are they going to be receiving? Ok, transfer the Pynths to our funds wallet. These do not go in the deposit queue as they aren't for sale as such unless they're sent back in from the funds wallet. And send them the SNX. | function _exchangePynthsForSNX(uint pynthAmount) internal returns (uint) {
uint pynthetixToSend = pynthetixReceivedForPynths(pynthAmount);
pynthsUSD().transferFrom(msg.sender, fundsWallet, pynthAmount);
pynthetix().transfer(msg.sender, pynthetixToSend);
emit Exchange("sUSD", pynth... | 3,372,670 | [
1,
44,
543,
4906,
14204,
60,
854,
2898,
8554,
358,
506,
15847,
35,
16154,
16,
7412,
326,
453,
878,
451,
87,
358,
3134,
284,
19156,
9230,
18,
8646,
741,
486,
1960,
316,
326,
443,
1724,
2389,
487,
2898,
11526,
1404,
364,
272,
5349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16641,
52,
878,
451,
28388,
13653,
60,
12,
11890,
293,
878,
451,
6275,
13,
2713,
1135,
261,
11890,
13,
288,
203,
3639,
2254,
293,
878,
451,
278,
697,
28878,
273,
293,
878,
451,
278,
697,
8872,
1290,
52,
878,
451,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "./EllipticCurve.sol";
import "./UtilStrings.sol";
/// @dev This contract is compiled from a template file.
/// You can see the full template at https://github.com/noway/nzcp-sol/blob/main/templates/NZCP.sol
///
/// @title NZCP.sol
/// @author noway421.... | check if pass expired We do not check for whether pass is active, since we assume That the NZ Ministry of Health only issues active passes | for (uint i = 0; i++ < maplen;) {
(uint cbortype, uint v) = readType(stream);
uint value = decodeUint(stream, v);
if (cbortype == MAJOR_TYPE_INT) {
if (value == 4) {
(cbortype, v) = readType(stream);
soft_revert_if(cbor... | 13,107,958 | [
1,
1893,
309,
1342,
7708,
1660,
741,
486,
866,
364,
2856,
1342,
353,
2695,
16,
3241,
732,
6750,
12466,
326,
423,
62,
5444,
2128,
434,
11745,
1338,
8296,
2695,
11656,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
364,
261,
11890,
277,
273,
374,
31,
277,
9904,
411,
10843,
28907,
30943,
288,
203,
5411,
261,
11890,
2875,
499,
388,
16,
2254,
331,
13,
273,
855,
559,
12,
3256,
1769,
203,
203,
5411,
2254,
460,
273,
2495,
5487,
12,
3256,
... |
./full_match/1/0xABE46f13C833Ab07bf9e523F485B53c9a633DD60/sources/contracts/TrancheWrapper.sol | * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing./ | function asset() external view returns (address assetTokenAddress) {
return token;
}
| 8,321,779 | [
1,
1356,
326,
1758,
434,
326,
6808,
1147,
1399,
364,
326,
17329,
364,
2236,
310,
16,
443,
1724,
310,
16,
471,
598,
9446,
310,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3310,
1435,
3903,
1476,
1135,
261,
2867,
3310,
1345,
1887,
13,
288,
203,
3639,
327,
1147,
31,
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.5.16;
// Inheritance
import "./FuturesMarketBase.sol";
/**
* A mixin that implements vairous useful views that are used externally but
* aren't used inside the core contract (so don't need to clutter the contract file)
*/
contract MixinFuturesViews is FuturesMarketBase {
/*
* Sizes of t... | The initial margin plus profit and funding; returns zero balance if losses exceed the initial margin./ | function remainingMargin(address account) external view returns (uint marginRemaining, bool invalid) {
(uint price, bool isInvalid) = assetPrice();
return (_remainingMargin(positions[account], price), isInvalid);
}
| 12,548,810 | [
1,
1986,
2172,
7333,
8737,
450,
7216,
471,
22058,
31,
1135,
3634,
11013,
309,
24528,
9943,
326,
2172,
7333,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4463,
9524,
12,
2867,
2236,
13,
3903,
1476,
1135,
261,
11890,
7333,
11429,
16,
1426,
2057,
13,
288,
203,
3639,
261,
11890,
6205,
16,
1426,
353,
1941,
13,
273,
3310,
5147,
5621,
203,
3639,
327,
261,
67,
17956,
9524,
12,
... |
./partial_match/1/0x646b37a214c38B42d4303866af07CA9c3Df2171D/sources/RTRAND_Token.sol | * Only 80000 RTRAND2 for Pre-Sale! IF SUPPLY < 80 000 RTRAND2/ | receive() external payable {
require(now <= endDate, "Pre-sale of tokens is completed!");
require(_totalSupply <= hardcap, "Maximum presale tokens - 80000 RTRAND2!");
uint tokens;
if (now <= bonusEnds) {
tokens = msg.value * 2;
tokens = msg.value * 1;
}... | 15,487,086 | [
1,
3386,
1725,
2787,
534,
4349,
4307,
22,
364,
2962,
17,
30746,
5,
11083,
16459,
23893,
411,
8958,
20546,
534,
4349,
4307,
22,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
282,
6798,
1435,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
3338,
1648,
13202,
16,
315,
1386,
17,
87,
5349,
434,
2430,
353,
5951,
4442,
1769,
203,
3639,
2583,
24899,
4963,
3088,
1283,
1648,
7877,
5909,
16,
315,
13528,
4075,
5349,
... |
./full_match/43113/0xFDC928AD17EE1E02379eD684b176438947d85e98/sources/contracts/erc20handler.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 {ERC20MinterPauser}. TIP: For a detailed writeup see our guide to implement supply mechanism... | contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
... | 7,210,639 | [
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,
4232,
39,
3462,
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,
3... |
pragma solidity ^0.6.6;
/**
*
*
* @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... | * @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 CONTRACT 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 ... | 370,792 | [
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,
8020,
2849,
1268,
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,
2... |
/**
Source code of Opium Protocol
Web https://opium.network
Telegram https://t.me/opium_network
Twitter https://twitter.com/opium_network
*/
// File: LICENSE
/**
The software and documentation available in this repository (the "Software") is protected by copyright law and accessible pursuant to the licens... | Calculate payouts from ratio payouts[0] -> buyerPayout = (buyerMargin + sellerMargin) * buyerPayoutRatio / (buyerPayoutRatio + sellerPayoutRatio) payouts[1] -> sellerPayout = (buyerMargin + sellerMargin) * sellerPayoutRatio / (buyerPayoutRatio + sellerPayoutRatio) | payouts[0] = margins[0].add(margins[1]).mul(payoutRatio[0]).div(payoutRatio[0].add(payoutRatio[1]));
| 1,368,172 | [
1,
8695,
293,
2012,
87,
628,
7169,
293,
2012,
87,
63,
20,
65,
317,
27037,
52,
2012,
273,
261,
70,
16213,
9524,
397,
29804,
9524,
13,
225,
27037,
52,
2012,
8541,
342,
261,
70,
16213,
52,
2012,
8541,
397,
29804,
52,
2012,
8541,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
3639,
293,
2012,
87,
63,
20,
65,
273,
24889,
63,
20,
8009,
1289,
12,
10107,
87,
63,
21,
65,
2934,
16411,
12,
84,
2012,
8541,
63,
20,
65,
2934,
2892,
12,
84,
2012,
8541,
63,
20,
8009,
1289,
12,
84,
2012,
8541,
63,
21,
5717,
... |
pragma solidity >=0.4.24 <0.6.0;
import {SafeMath} from "openzeppelin-solidity/contracts/math/SafeMath.sol";
/**
* @title SafeMath v0.1.9
* @dev Math operations with safety checks that throw on error
* change notes: original SafeMath library from OpenZeppelin modified by Inventor
* - added sqrt
* - added sq
* -... | * @dev x to the power of y/ | function pwr(uint256 x, uint256 y)
internal
pure
returns (uint256)
{
if (x==0)
return 0;
else if (y==0)
return 1;
else
{
uint256 z = x;
for (uint256 i=1; i < y; i++)
z = z.mul(x);
... | 965,985 | [
1,
92,
358,
326,
7212,
434,
677,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8772,
86,
12,
11890,
5034,
619,
16,
2254,
5034,
677,
13,
203,
3639,
2713,
7010,
3639,
16618,
7010,
3639,
1135,
261,
11890,
5034,
13,
203,
565,
288,
203,
3639,
309,
261,
92,
631,
20,
13,
203,
5411,
327,
374,
31,
203,
... |
./full_match/1/0x51a3282B75D1a82A0eEB85be2b9BEb1FfeEE0250/sources/contracts/ZIPO.sol | Address where developer fees are sent
| address public devFeeWallet; | 4,963,804 | [
1,
1887,
1625,
8751,
1656,
281,
854,
3271,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
1071,
4461,
14667,
16936,
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... |