file_name stringlengths 71 779k | comments stringlengths 20 182k | code_string stringlengths 20 36.9M | __index_level_0__ int64 0 17.2M | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
./full_match/1/0x708a6759da29d3a5D243D7426578d29Edd9Df974/sources/src/Escrow.sol | * @dev Returns the currently owned balance of a single asset by proprietor./ | function assetBalance(
address _proprietor,
IERC20 _asset
) external view override returns (uint256) {
require(
!_addressIsBlacklisted(_msgSender()),
"Escrow: caller is blacklisted"
);
return __assetBalancesByProprietor[_proprietor][_asset];
}
... | 16,598,589 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
4551,
16199,
11013,
434,
279,
2202,
3310,
635,
2270,
566,
278,
280,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3310,
13937,
12,
203,
3639,
1758,
389,
5986,
566,
278,
280,
16,
203,
3639,
467,
654,
39,
3462,
389,
9406,
203,
565,
262,
3903,
1476,
3849,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2583,
12,
203,
5411,
401,
67,
2867... |
./full_match/4/0xd25E6aee259049DD6fE44bFF03bD1cA78165F1E8/sources/contracts/version1/Awknd.sol | get the token level */ | function getTokenLevel(uint id) public view returns(uint8)
{
if (multipass[id].level > 0)
{
return multipass[id].level;
}
uint daysDiff = block.timestamp - uint(multipass[id].mintedAtTimestamp);
uint currentLevel = 0;
if (nftTokens[0].upgradecondition... | 12,383,722 | [
1,
4625,
348,
7953,
560,
30,
225,
336,
326,
1147,
1801,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9162,
2355,
12,
11890,
612,
13,
1071,
1476,
1135,
12,
11890,
28,
13,
203,
565,
288,
203,
3639,
309,
261,
5421,
625,
428,
63,
350,
8009,
2815,
405,
374,
13,
203,
3639,
288,
203,
5411,
327,
14421,
428,
63,
350,
8009,
... |
pragma solidity ^0.5.0;
import "./TellorGetters.sol";
/**
* @title Tellor Oracle System
* @dev Oracle contract where miners can submit the proof of work along with the value.
* The logic for this contract is in TellorLibrary.sol, TellorDispute.sol, TellorStake.sol,
* and TellorTransfer.sol
*/
contract Tellor is... | * @dev tallies the votes. @param _disputeId is the dispute id/ | function tallyVotes(uint256 _disputeId) external {
tellor.tallyVotes(_disputeId);
}
| 1,046,190 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
268,
454,
606,
326,
19588,
18,
632,
891,
389,
2251,
2507,
548,
353,
326,
1015,
2507,
612,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
268,
1230,
29637,
12,
11890,
5034,
389,
2251,
2507,
548,
13,
3903,
288,
203,
3639,
9276,
280,
18,
88,
1230,
29637,
24899,
2251,
2507,
548,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "IERC721.sol";
import "IERC721Receiver.sol";
import "IERC20.sol";
import "SafeERC20.sol";
import "SafeMath.sol";
import "Address.sol";
import "Ownable.sol";
import "ReentrancyGuard.sol";
import "Security4.sol";
import "ORentable.sol";
import "YRentable.s... | * @dev See {IERC721Metadata-tokenURI}./ | function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
return IERC721MetadataUpgradeable(_wrapped).tokenURI(tokenId);
}
| 328,654 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
2277,
17,
2316,
3098,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
5024,
203,
3639,
3849,
203,
3639,
1135,
261,
1080,
3778,
13,
203,
565,
288,
203,
3639,
327,
467,
654,
39,
27,
5340,
2277,
10784,
... |
pragma solidity ^0.4.24;
/**
* @title - Crypto Skully
* ________ ___ __ ___ ___ ___ ___ ___ ___
* |\ ____\ |\ \|\ \ |\ \|\ \ |\ \ |\ \ |\ \ / /|
* \ \ \___|_ \ \ \/ /|_ \ \ \\\ \ \ \ \ \ \ \ \ \ \/ / ... | @title Handles creating auctions for sale and siring of skullies. This wrapper of ReverseAuction exists only so that users can create auctions with only one transaction. | contract SkullAuction is SkullBase, SkullAccessControl {
SaleClockAuction public saleAuction;
function setSaleAuctionAddress(address _address) external onlyAdministrator {
SaleClockAuction candidateContract = SaleClockAuction(_address);
require(candidateContract.isSaleClockAuction());
... | 14,100,284 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
27020,
4979,
279,
4062,
87,
364,
272,
5349,
471,
272,
11256,
434,
4343,
420,
606,
18,
225,
1220,
4053,
434,
18469,
37,
4062,
1704,
1338,
1427,
716,
3677,
848,
752,
225,
279,
4062,
87,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
10362,
420,
37,
4062,
353,
10362,
420,
2171,
16,
10362,
420,
16541,
288,
203,
565,
348,
5349,
14027,
37,
4062,
1071,
272,
5349,
37,
4062,
31,
203,
203,
203,
565,
445,
13928,
5349,
37,
4062,
1887,
12,
2867,
389,
2867,
13,
... |
pragma solidity ^0.5.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/ownership/Ownable.sol";
import "../../interfaces/IFeatured.sol";
import "./Pausable.sol";
import "./Freezable.sol";
/**
* @dev Support for "SRC20 feature" modifier.
*/
contract Featured is IFeatured, Pausabl... | * @dev Check if token is frozen. Token issuer can freeze token at any time and stop all accounts from making transfers. When token is frozen, isFrozen(account) returns true for every account. @return True if token is frozen./ | function isTokenPaused() external view returns (bool) {
return paused();
}
| 6,358,274 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2073,
309,
1147,
353,
12810,
18,
3155,
9715,
848,
16684,
1147,
622,
1281,
813,
471,
2132,
777,
9484,
628,
10480,
29375,
18,
5203,
1147,
353,
12810,
16,
17646,
9808,
12,
4631,
13,
1135,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
353,
1345,
28590,
1435,
3903,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
17781,
5621,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.24;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
// Airline registration code
uint8 private constant REGISTRATION_CODE_UNKNOWN = 0;
uint8 private constant REGISTRATION_CODE_ADDED_TO... | * @dev Returns boolean indicating whether an airline has been registered or not./ | function isAirlineRegistered (
address airline
)
internal
view
returns (bool)
{
return airlines[airline].registrat... | 15,838,173 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
1250,
11193,
2856,
392,
23350,
1369,
711,
2118,
4104,
578,
486,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25997,
481,
1369,
10868,
565,
261,
203,
4766,
3639,
1758,
23350,
1369,
203,
4766,
565,
262,
7010,
4766,
565,
2713,
7010,
4766,
565,
1476,
7010,
4766,
565,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
327,
23350,
3548,
... |
./full_match/4/0xe55FDf1fc08771524Ff148B09E7B7323939248Fc/sources/browser/ALWN.sol | * @dev Check signature and mint tokens @param _amount - subj @param _lastBlockNumber - subj @param _currentBlockNumber - subj @param _msgForSign - hash for sign with Ethereum style prefix!!! @param _signature - signature/Double spend check1. Lets check signerrequire(trustedSigner[signedBy] == true, "Signature che... | function debug_harvest(
uint256 _amount,
uint256 _lastBlockNumber,
uint256 _currentBlockNumber,
bytes32 _msgForSign,
bytes memory _signature)
public view returns(address _signer, bytes32 _msg, bytes32 _prefixedMsg)
{
require(_currentBlockNumber <= block.number... | 652,227 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2073,
3372,
471,
312,
474,
2430,
632,
891,
225,
389,
8949,
300,
15333,
632,
891,
225,
389,
2722,
1768,
1854,
300,
15333,
632,
891,
225,
389,
2972,
1768,
1854,
300,
15333,
632,
891,
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,
565,
445,
1198,
67,
30250,
26923,
12,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
2722,
1768,
1854,
16,
203,
3639,
2254,
5034,
389,
2972,
1768,
1854,
16,
203,
3639,
1731,
1578,
389,
3576,
1290,
2766,
16,
203... |
pragma solidity ^0.4.20;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public constant returns (uint256);
function transfer(address to, uint256 valu... | Check if the targeted balance is enough
| require(balances[_from] >= _value); | 331,695 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
326,
20715,
11013,
353,
7304,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2583,
12,
70,
26488,
63,
67,
2080,
65,
1545,
389,
1132,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/137/0xDc037A4291C7bB878e0299404216f19a71a66E54/sources/locker/unilocker.sol | safeguard for lp token fee
| require(lpTokenFee <= amount.div(100), "LP FEE EXCEEDS 1%"); | 4,749,833 | [
1,
4625,
348,
7953,
560,
30,
11029,
1332,
89,
1060,
364,
12423,
1147,
14036,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
2583,
12,
9953,
1345,
14667,
1648,
3844,
18,
2892,
12,
6625,
3631,
315,
14461,
478,
9383,
5675,
1441,
2056,
55,
404,
9,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@open... | * @dev Allows an address on our whitelist to mint a single token. @param to Address of minter. Will be recipient of token. Emits a {WolfMinted} event./ Check that we are within pre-sale window We only want 5000 tokens to be minted in total Confirm that the user's address is a whitelisted address We only want to allow a... | function whitelistSafeMint(address to) public payable {
uint256 tokenId = _tokenIdCounter.current();
require(block.timestamp >= preSaleStart, "Pre-sale has not started.");
require(block.timestamp <= preSaleEnd, "Pre-sale has finished.");
require(tokenId <= TOTAL_SUPPLY, "Mint has e... | 11,876,204 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25619,
392,
1758,
603,
3134,
10734,
358,
312,
474,
279,
2202,
1147,
18,
632,
891,
358,
5267,
434,
1131,
387,
18,
9980,
506,
8027,
434,
1147,
18,
7377,
1282,
279,
288,
59,
355,
74,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10734,
9890,
49,
474,
12,
2867,
358,
13,
1071,
8843,
429,
288,
203,
3639,
2254,
5034,
1147,
548,
273,
389,
2316,
548,
4789,
18,
2972,
5621,
203,
203,
3639,
2583,
12,
2629,
18,
5508,
1545,
675,
30746,
1685,
16,
315,
13... |
pragma solidity ^0.4.15;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed pre... | In case ether is sent, even though not refundable | function withdrawEther() public isNotRefundable onlyOwner {
msg.sender.transfer(this.balance);
}
| 6,478,098 | [
1,
4625,
348,
7953,
560,
30,
657,
648,
225,
2437,
353,
3271,
16,
5456,
11376,
486,
16255,
429,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
41,
1136,
1435,
1071,
8827,
21537,
429,
1338,
5541,
288,
203,
565,
1234,
18,
15330,
18,
13866,
12,
2211,
18,
12296,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/11297108099/0x6628e26bb7a27Bd2f9493702be95FfB8e6188aaA/sources/project_/contracts/GeerProducts.sol | tokenData mapping stores all the information about particular instance of a product. productKeys array stores all the data about available product IDs This event gonna be triggered once the contract owner adds new product type to the system The following functions are overrides required by Solidity. | {
event RoyaltyWalletChanged(
address indexed previousWallet,
address indexed newWallet
);
event RoyaltyFeeChanged(uint256 previousFee, uint256 newFee);
event BaseURIChanged(string previousURI, string newURI);
uint256 public constant ROYALTY_FEE_DENOMINATOR = 100000;
uint256 pub... | 3,224,754 | [
1,
4625,
348,
7953,
560,
30,
225,
1147,
751,
2874,
9064,
777,
326,
1779,
2973,
6826,
791,
434,
279,
3017,
18,
3017,
2396,
526,
9064,
777,
326,
501,
2973,
2319,
3017,
7115,
1220,
871,
314,
265,
6582,
506,
10861,
3647,
326,
6835,
3410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
95,
203,
565,
871,
534,
13372,
15006,
16936,
5033,
12,
203,
3639,
1758,
8808,
2416,
16936,
16,
203,
3639,
1758,
8808,
394,
16936,
203,
565,
11272,
203,
565,
871,
534,
13372,
15006,
14667,
5033,
12,
11890,
5034,
2416,
14667,
16,
225... |
pragma solidity ^0.4.0;
import "browser/ERC20.sol"; // This is how you import "here goes the path to the file, in my case it was in remix ide,browser folder."
contract FueledToken is ERC20 { // extending er20 contract.
string public constant symbol = "FLT"; // A token symbol, name, decimals,totalS... | subtracting our balance with that value
| __balanceOf[msg.sender] -= value; | 15,871,341 | [
1,
4625,
348,
7953,
560,
30,
225,
10418,
310,
3134,
11013,
598,
716,
460,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
1001,
12296,
951,
63,
3576,
18,
15330,
65,
3947,
460,
31,
4766,
3639,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0x4594CFfbFc09BC5e7eCF1C2e1C1e24F0f7D29036/sources/ZeroKnowledgeNetwork.sol | to withdarw ETH from contract | function withdrawETH(uint256 _amount) external onlyOwner {
require(address(this).balance >= _amount, "Invalid Amount");
payable(msg.sender).transfer(_amount);
emit Transfer(address(this), msg.sender, _amount);
}
| 2,694,786 | [
1,
4625,
348,
7953,
560,
30,
225,
358,
598,
72,
297,
91,
512,
2455,
628,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
1584,
44,
12,
11890,
5034,
389,
8949,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
2867,
12,
2211,
2934,
12296,
1545,
389,
8949,
16,
315,
1941,
16811,
8863,
203,
3639,
8843,
429,
12,
3576,
18,
15330,
2934,... |
./full_match/1/0xc3E9E42DE399F50C5Fc2BC971f0b8D10A631688D/sources/contracts/p1/RToken.sol | Redeem RToken for a linear combination of historical baskets, to a particular recipient checks: amount > 0 amount <= balanceOf(caller) sum(portions) == FIX_ONE nonce >= basketHandler.primeNonce() for nonce in basketNonces effects: (so totalSupply -= amount and balanceOf(caller) -= amount) basketsNeeded' / ... | function redeemCustom(
address recipient,
uint256 amount,
uint48[] memory basketNonces,
uint192[] memory portions,
address[] memory expectedERC20sOut,
uint256[] memory minAmounts
) external notFrozen {
assetRegistry.refresh();
require(amount > 0,... | 16,435,893 | [
1,
4625,
348,
7953,
560,
30,
225,
868,
24903,
534,
1345,
364,
279,
9103,
10702,
434,
23922,
324,
835,
2413,
16,
358,
279,
6826,
8027,
4271,
30,
282,
3844,
405,
374,
282,
3844,
1648,
11013,
951,
12,
16140,
13,
282,
2142,
12,
655,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
24903,
3802,
12,
203,
3639,
1758,
8027,
16,
203,
3639,
2254,
5034,
3844,
16,
203,
3639,
2254,
8875,
8526,
3778,
12886,
3989,
764,
16,
203,
3639,
2254,
15561,
8526,
3778,
1756,
1115,
16,
203,
3639,
1758,
8526,
3778,
... |
// SPDX-License-Identifier: Unlicense
pragma solidity 0.8.7;
import "./EtherOrcs.sol";
contract EtherTransition {
address public constant impl = 0xD6088CE6819e7583b94Ae635898dEe5A23789908;
address implementation_;
address public admin; //Lame requirement from opensea
uint256 public t... | This is safe because the sum of all user balances can't exceed type(uint256).max! | function _mint(address to, uint256 tokenId) internal {
require(ownerOf[tokenId] == address(0), "ALREADY_MINTED");
uint maxSupply = oldSupply + minted;
require(totalSupply++ <= maxSupply, "MAX SUPPLY REACHED");
unchecked {
balanceOf[to]++;
}
... | 58,694 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
4183,
2724,
326,
2142,
434,
777,
729,
324,
26488,
848,
1404,
9943,
618,
12,
11890,
5034,
2934,
1896,
5,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
81,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
288,
7010,
3639,
2583,
12,
8443,
951,
63,
2316,
548,
65,
422,
1758,
12,
20,
3631,
315,
1013,
20305,
67,
6236,
6404,
8863,
203,
203,
3639,
2254,
943,
... |
./partial_match/1/0x228D595057E7433C1bF06116C34eA4b2163D4670/sources/SonOfElon.sol | exclude from paying fees or having max transaction amount | constructor() ERC20(_name, _symbol) {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUniswapV2Factory(_uniswap... | 2,579,215 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
24899,
529,
16,
389,
7175,
13,
288,
203,
7010,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
12,
20... |
pragma solidity ^0.4.20;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
uint256 c = a - b;... | require(ERC20(tokenAddress).balanceOf(msg.sender) >= amount);require(ERC20(tokenAddress).allowance(msg.sender, address(this)) >= amount); | updateStats(msg.sender);
| 12,536,304 | [
1,
4625,
348,
7953,
560,
30,
2583,
12,
654,
39,
3462,
12,
2316,
1887,
2934,
12296,
951,
12,
3576,
18,
15330,
13,
1545,
3844,
1769,
6528,
12,
654,
39,
3462,
12,
2316,
1887,
2934,
5965,
1359,
12,
3576,
18,
15330,
16,
1758,
12,
2211,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
4195,
12,
3576,
18,
15330,
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.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./library/ERC1155.sol";
import "./library/ERC1155MintBurn.sol";
import "./library/ERC1155Metadata.sol";
contract OwnableDelegateProxy {}
contract ProxyRegistry {
mapping(address => OwnableDelegat... | * @dev Creates a new token type and assigns _supply to an address @param _to owner address of the new token @param _supply Optional amount to supply the first owner @param _uri Optional URI for this token type/ | function mint(
address _to,
uint256 _supply,
string calldata _uri
) external payable onlyOwner {
require(msg.value >= platformFee, "Insufficient funds to mint.");
uint256 _id = _getNextTokenID();
_incrementTokenTypeId();
creators[_id] = msg.sender;
... | 145,418 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
279,
394,
1147,
618,
471,
22698,
389,
2859,
1283,
358,
392,
1758,
632,
891,
389,
869,
3410,
1758,
434,
326,
394,
1147,
632,
891,
389,
2859,
1283,
4055,
3844,
358,
14467,
326,
1122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
203,
3639,
1758,
389,
869,
16,
203,
3639,
2254,
5034,
389,
2859,
1283,
16,
203,
3639,
533,
745,
892,
389,
1650,
203,
565,
262,
3903,
8843,
429,
1338,
5541,
288,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,... |
./full_match/1/0xcE9b49b0d4FE456aD6E4a1b7e4bBdD0699400Ef9/sources/src/vaults/VaultPermissions.sol | * @dev Sets `amount` as the borrow allowance of `operator` over the `owner`'s debt. This internal function is equivalent to `approve` for debt. Requirements: - Must only be used in `debtAsset` borrowing logic. - Must check `owner` cannot be the zero address. - Much check `operator` cannot be the zero address. - Must e... | function _setBorrowAllowance(
address owner,
address operator,
address receiver,
uint256 amount
)
internal
{
if (owner == address(0) || operator == address(0) || receiver == address(0)) {
revert VaultPermissions__zeroAddress();
}
_borrowAllowance[owner][operator][receiver] = ... | 2,939,866 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
11511,
1375,
8949,
68,
487,
326,
29759,
1699,
1359,
434,
1375,
9497,
68,
1879,
326,
1375,
8443,
11294,
87,
18202,
88,
18,
1220,
2713,
445,
353,
7680,
358,
1375,
12908,
537,
68,
364,
18202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
389,
542,
38,
15318,
7009,
1359,
12,
203,
565,
1758,
3410,
16,
203,
565,
1758,
3726,
16,
203,
565,
1758,
5971,
16,
203,
565,
2254,
5034,
3844,
203,
225,
262,
203,
565,
2713,
203,
225,
288,
203,
565,
309,
261,
8443,
... |
./full_match/4/0x19D59Ea6A136Cc5Fd55e09b2Bacc745B2a0B4eE8/sources/contracts/interfaces/ICommunity.sol | if true, block has been repaid by builder already
| bool status; | 671,256 | [
1,
4625,
348,
7953,
560,
30,
309,
638,
16,
1203,
711,
2118,
2071,
20736,
635,
2089,
1818,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
1426,
1267,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.7;
import "@chainlink/contracts/src/v0.6/VRFConsumerBase.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./JackpotInterface.sol";
contract RandomVRF is VRFConsumerBase, Ownable {
bytes32 public keyHash;
uint256 public fee;
address p... | * Constructor inherits VRFConsumerBase Network: Kovan Chainlink VRF Coordinator address: 0xdD3782915140c8f3b190B5D67eAc6dc5760C46E9 LINK token address: 0xa36085F69e2889c224210F603D836748e7dC0088 Key Hash: 0x6c3699283bda56ad74f6b855546325b68d482e983852a7a82979cc4807b641f4/ | {
keyHash = _keyHash;
fee = _fee;
vrfCoordinator = _vrfCoordinator;
}
| 6,447,325 | [
1,
4625,
348,
7953,
560,
30,
380,
11417,
24664,
776,
12918,
5869,
2171,
5128,
30,
1475,
1527,
304,
7824,
1232,
776,
12918,
10320,
4240,
1758,
30,
374,
7669,
40,
6418,
28,
5540,
3600,
27092,
71,
28,
74,
23,
70,
30454,
38,
25,
40,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
203,
3639,
498,
2310,
273,
389,
856,
2310,
31,
203,
3639,
14036,
273,
389,
21386,
31,
203,
3639,
20466,
25307,
273,
389,
16825,
25307,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//Address: 0x861825daa0068136a55f6effb3f4a0b9aa17f51f
//Contract name: Token
//Balance: 0 Ether
//Verification Date: 1/17/2018
//Transacion Count: 167
// CODE STARTS HERE
// Copyright (c) 2017, 2018 EtherJack.io. All rights reserved.
// This code is disclosed only to be used for inspection and audit purposes.
// ... | Check if the sender has enough
| require(balances[_sender] >= _value); | 15,810,019 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
309,
326,
5793,
711,
7304,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
70,
26488,
63,
67,
15330,
65,
1545,
389,
1132,
1769,
7734,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.21;
library BWUtility {
// -------- UTILITY FUNCTIONS ----------
// Return next higher even _multiple for _amount parameter (e.g used to round up to even finneys).
function ceil(uint _amount, uint _multiple) pure public returns (uint) {
return ((_amount + _multi... | Don't include boost here!
| subUserBattleValue(_msgSender, attackAmountAfterFee, false); | 1,818,343 | [
1,
4625,
348,
7953,
560,
30,
225,
7615,
1404,
2341,
14994,
2674,
5,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
720,
1299,
38,
4558,
298,
620,
24899,
3576,
12021,
16,
13843,
6275,
4436,
14667,
16,
629,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@ope... | * Wrapping is only possible when there is already a listing, you are buying your own listing and therefore getting your eth back in your wallet. Only Owner can do a mint of a wrapper, or 0x0 (unowned tiles)/ get Tile from contract check owner Buy Offering with this contract Check Tile if correct transfered Mint ERC721 ... | function wrap(uint _locationID) external payable {
require(!_exists(_locationID), "PixelMapWrapper: You cannot mint the same locationID");
require(getwithdrawableETHforLocation(_locationID) == 0, "PixelMapWrapper: There is still ETH to be withdrawn");
(address _owner,,,uint _price) =... | 13,101,584 | [
1,
4625,
348,
7953,
560,
30,
380,
4266,
1382,
353,
1338,
3323,
1347,
1915,
353,
1818,
279,
11591,
16,
1846,
854,
30143,
310,
3433,
4953,
11591,
471,
13526,
8742,
3433,
13750,
1473,
316,
3433,
9230,
18,
5098,
16837,
848,
741,
279,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2193,
12,
11890,
389,
3562,
734,
13,
3903,
8843,
429,
288,
203,
3639,
2583,
12,
5,
67,
1808,
24899,
3562,
734,
3631,
315,
9037,
863,
3611,
30,
4554,
2780,
312,
474,
326,
1967,
2117,
734,
8863,
203,
3639,
2583,
12,
588... |
./full_match/80001/0x5ccdEd3f094A02551e22C2D5d3c3834835942D48/sources/src/libraries/JoeLibrary.sol | given some amount of an asset and pair reserves, returns an equivalent amount of the other asset | function quote(
uint256 amountA,
uint256 reserveA,
uint256 reserveB
) internal pure returns (uint256 amountB) {
if (amountA == 0) revert JoeLibrary__InsufficientAmount();
if (reserveA == 0 || reserveB == 0) revert JoeLibrary__InsufficientLiquidity();
amountB = (am... | 9,534,697 | [
1,
4625,
348,
7953,
560,
30,
225,
864,
2690,
3844,
434,
392,
3310,
471,
3082,
400,
264,
3324,
16,
1135,
392,
7680,
3844,
434,
326,
1308,
3310,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3862,
12,
203,
3639,
2254,
5034,
3844,
37,
16,
203,
3639,
2254,
5034,
20501,
37,
16,
203,
3639,
2254,
5034,
20501,
38,
203,
565,
262,
2713,
16618,
1135,
261,
11890,
5034,
3844,
38,
13,
288,
203,
3639,
309,
261,
8949,
... |
pragma solidity ^0.4.18;
import "./ICO_B2E.sol";
contract Proxy_Buyer_Payment_Channel {
struct Channel {
bool open;
uint timestamp_opened;
uint valueMax;
uint value;
}
mapping(bytes32 => Channel) channels;
mapping(address => bytes32) channel_hashs;
address public owner;
ICO_B2E ico;
// Functio... | Check the channel exists, is open and has and ether in Check the signer of the message is the channel's user Check the value hashed in the message is the one given in argument | function VerifyMessage(address _user, bytes32 _h, uint8 _v, bytes32 _r, bytes32 _s, uint _value) public constant returns (bool) {
bytes32 channel_hash = channel_hashs[_user];
Channel memory channel = channels[channel_hash];
address signer = ecrecover(_h, _v, _r, _s);
bytes32 computed_hash ... | 12,994,948 | [
1,
4625,
348,
7953,
560,
30,
225,
2073,
326,
1904,
1704,
16,
353,
1696,
471,
711,
471,
225,
2437,
316,
2073,
326,
10363,
434,
326,
883,
353,
326,
1904,
1807,
729,
2073,
326,
460,
14242,
316,
326,
883,
353,
326,
1245,
864,
316,
123... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
202,
915,
8553,
1079,
12,
2867,
389,
1355,
16,
1731,
1578,
389,
76,
16,
2254,
28,
389,
90,
16,
1731,
1578,
389,
86,
16,
1731,
1578,
389,
87,
16,
2254,
389,
1132,
13,
1071,
5381,
1135,
261,
6430,
13,
288,
203,
1082,
203,
202,
... |
./full_match/7700/0x4f07f0a2AE51ac40fb5FbdDaC242B5D22Cc0C992/sources/contracts/Plebness.sol | @inheritdoc IPlebness | function setSpreadForJacketAssets(uint256 spread) external override onlyOwner {
jacketSpreadFactor = spread;
}
| 4,649,793 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
2971,
298,
70,
4496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
28719,
1290,
46,
484,
278,
10726,
12,
11890,
5034,
15103,
13,
3903,
3849,
1338,
5541,
288,
203,
3639,
525,
484,
278,
28719,
6837,
273,
15103,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
//Address: 0xe50843b6c0e58961538df4b5ec4e28c990e032a3
//Contract name: SpaceTRUMPToken
//Balance: -
//Verification Date: 2/3/2018
//Transacion Count: 0
// CODE STARTS HERE
pragma solidity ^0.4.18;
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed ... | 15 February 2018 12:01 UTC START
| olympStartDate = 1518696060; | 5,401,713 | [
1,
4625,
348,
7953,
560,
30,
225,
4711,
5782,
2848,
24335,
14863,
2593,
30,
1611,
9951,
10485,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
320,
715,
1291,
22635,
273,
4711,
2643,
8148,
4848,
4848,
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,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./libraries/SignedSafeMath.sol";
import "./token/STRM.sol";
/// @title Liqu... | @notice Add a new LP to the pool. Can only be called by the owner. | function add(
uint256 instrumentalPerBlock,
IERC20 _lpToken,
uint64 end,
bool locked
) public onlyOwner {
uint256 maxRewards = uint256(end).sub(block.number).mul(instrumentalPerBlock);
require(
INSTRUMENTAL.balanceOf(address(this)) >= maxRewards + clai... | 6,099,213 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1436,
279,
394,
511,
52,
358,
326,
2845,
18,
4480,
1338,
506,
2566,
635,
326,
3410,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
12,
203,
3639,
2254,
5034,
10353,
287,
2173,
1768,
16,
203,
3639,
467,
654,
39,
3462,
389,
9953,
1345,
16,
203,
3639,
2254,
1105,
679,
16,
203,
3639,
1426,
8586,
203,
565,
262,
1071,
1338,
5541,
288,
203,
3639,
2... |
./full_match/1/0x95f808db51579f9c7AC13e0B73075DB86016d0C6/sources/contracts/UnicusNft.sol | * @dev Returns total balance of the ERC20 tokens held by the holder. Calling conditions: - Only the owner of the smart contract i.e Unicus platform can invoke this @param token_ Address of the ERC20(UNIC) token smart contract @param holder_ Address of the ERC20 token holder @return the amount of ERC20 tokens held/ | function erc20TotalBalance(IERC20 token_, address holder_) public onlyOwner view returns(uint256) {
return token_.balanceOf(holder_) ;
}
| 3,154,442 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
225,
2860,
2078,
11013,
434,
326,
4232,
39,
3462,
2430,
15770,
635,
326,
10438,
18,
21020,
4636,
30,
300,
5098,
326,
3410,
434,
326,
13706,
6835,
277,
18,
73,
1351,
335,
407,
4072,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6445,
71,
3462,
5269,
13937,
12,
45,
654,
39,
3462,
1147,
67,
16,
1758,
10438,
67,
13,
1071,
1338,
5541,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
1147,
27799,
12296,
951,
12,
4505,
67,
13,
274,
203,
565,
... |
/**
*Submitted for verification at Etherscan.io on 2021-09-15
*/
/**
*Submitted for verification at Etherscan.io on 2021-09-15
*/
/**
*Submitted for verification at Etherscan.io on 2021-07-12
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.6.12 <0.7.0;
/**
* @dev This is a base contract to aid in ... | * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an external initializer function, usually called `initialize`. It then becomes necessary to pr... | abstract contract Initializable {
bool private _initialized;
bool private _initializing;
pragma solidity >=0.6.12 <0.7.0;
modifier initializer() {
require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_ini... | 10,699,927 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1220,
353,
279,
1026,
6835,
358,
20702,
316,
7410,
8400,
429,
20092,
16,
578,
1281,
3846,
434,
6835,
716,
903,
506,
19357,
21478,
279,
2889,
18,
7897,
279,
21875,
6835,
848,
1404,
1240,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
10188,
6934,
288,
203,
203,
565,
1426,
3238,
389,
13227,
31,
203,
203,
565,
1426,
3238,
389,
6769,
6894,
31,
203,
203,
203,
203,
203,
683,
9454,
18035,
560,
1545,
20,
18,
26,
18,
2138,
411,
20,
18,
27,
18,
20,
31... |
./partial_match/1/0x99b57Abf76E69E52EfF39a5f876280d4B525119F/sources/contracts/cedar/drop/CedarERC721Drop.sol | @dev Lets a contract admin set the royalty recipient and bps for a particular token Id. | function setRoyaltyInfoForToken(
uint256 _tokenId,
address _recipient,
uint256 _bps
) external override onlyRole(DEFAULT_ADMIN_ROLE) {
if (!(_bps <= MAX_BPS)) revert MaxBps();
emit RoyaltyForToken(_tokenId, _recipient, _bps);
}
| 3,659,906 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
511,
2413,
279,
6835,
3981,
444,
326,
721,
93,
15006,
8027,
471,
324,
1121,
364,
279,
6826,
1147,
3124,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
54,
13372,
15006,
966,
1290,
1345,
12,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
1758,
389,
20367,
16,
203,
3639,
2254,
5034,
389,
70,
1121,
203,
565,
262,
3903,
3849,
1338,
2996,
12,
5280,
67,
15468,
... |
pragma solidity ^0.5.16;
import "./ERC20.sol";
contract SushiToken is StandardToken(0, "SushiToken", 18, "SUSHI") {
function mint(address _to, uint256 _amount) public returns (bool) {
totalSupply = totalSupply.add(_amount);
balanceOf[_to] = balanceOf[_to].add(_amount);
return true;
}
}... | View function to see pending SUSHIs on frontend. | function pendingSushi(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accSushiPerShare = pool.accSushiPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
... | 12,685,052 | [
1,
4625,
348,
7953,
560,
30,
225,
4441,
445,
358,
2621,
4634,
11726,
2664,
2520,
603,
15442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4634,
55,
1218,
77,
12,
11890,
5034,
389,
6610,
16,
1758,
389,
1355,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
25003,
2502,
729,
... |
// SPDX-License-Identifier: MIT
/* ============================================== DEFI HUNTERS DAO =================================================
https://defihuntersdao.club/
---------------------------------------------------- Feb 2021 -------------------------------------... | 17 1000 / 294 / 706
| claimers[0x55fb5D5ae4A4F8369209fEf691587d40227166F6] = 706 * 10**6; | 12,696,667 | [
1,
4625,
348,
7953,
560,
30,
225,
8043,
282,
4336,
342,
576,
11290,
342,
2371,
7677,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
7516,
414,
63,
20,
92,
2539,
19192,
25,
40,
25,
8906,
24,
37,
24,
42,
28,
5718,
29,
3462,
29,
74,
41,
74,
8148,
3600,
11035,
72,
24,
3103,
5324,
23553,
42,
26,
65,
273,
2371,
7677,
380,
1728,
636,
26,
31,
1377,
2,
-... |
// File: contracts/vaults/IStrategy.sol
... | inject NONSTANDARD NAMING
| function SUB75(uint256 a, uint256 b) internal pure returns (uint256) { | 1,825,092 | [
1,
4625,
348,
7953,
560,
30,
4590,
18708,
882,
18264,
423,
2192,
1360,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
10025,
5877,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/80001/0x79c1E01A9D9E0019d14Bf1Ef80eFA65A916A2B23/sources/project_/contracts/token/Token.sol | * @dev See {IToken-burn}./ | function burn(address _userAddress, uint256 _amount) public override onlyAgent {
require(balanceOf(_userAddress) >= _amount, "cannot burn more than balance");
uint256 freeBalance = balanceOf(_userAddress) - _frozenTokens[_userAddress];
if (_amount > freeBalance) {
uint256 tokensT... | 5,587,506 | [
1,
4625,
348,
7953,
560,
30,
380,
225,
632,
5206,
2164,
288,
1285,
969,
17,
70,
321,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
18305,
12,
2867,
389,
1355,
1887,
16,
2254,
5034,
389,
8949,
13,
1071,
3849,
1338,
3630,
288,
203,
3639,
2583,
12,
12296,
951,
24899,
1355,
1887,
13,
1545,
389,
8949,
16,
315,
12892,
18305,
1898,
2353,
11013,
8863,
203,
... |
// File: openzeppelin-solidity/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow... | * @dev Get the number of entries in an AZTEC-ABI array (bytes proofOutputs, bytes inputNotes, bytes outputNotes) All 3 are rolled into a single function to eliminate 'wet' code - the implementations are identical @param _proofOutputsOrNotes `proofOutputs`, `inputNotes` or `outputNotes` @return number of entries in... | ) {
assembly {
len := mload(add(_proofOutputsOrNotes, 0x20))
}
}
| 6,450,198 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
968,
326,
1300,
434,
3222,
316,
392,
432,
62,
1448,
39,
17,
2090,
45,
526,
261,
3890,
14601,
13856,
16,
1731,
810,
18063,
16,
1731,
876,
18063,
13,
1377,
4826,
890,
854,
28693,
1368,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
262,
288,
203,
3639,
19931,
288,
203,
5411,
562,
519,
312,
945,
12,
1289,
24899,
24207,
13856,
1162,
18063,
16,
374,
92,
3462,
3719,
203,
3639,
289,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity >= 0.5 .0 < 0.7 .0;
/*
+-----------------------------------+
|HZHZHZHZHZHZHZHZ/ /HZHZHZHZHZHZHZHZ|
|HZHZHZHZHZHZHZH` `HZHZHZHZHZHZHZH|
|HZHZHZHZHZHZH- -HZHZHZHZHZHZH|
|HZHZHZHZHZH/ /HZHZHZHZHZH|
|HZHZHZHZHZHZHZHZH+: `HZHZHZHZHZ|
|HZHZHZHZHZHZHZHZHZHZ- -HZHZHZHZ|
|HZHZHZHZHZHZH... | ---------------------------------------------------------------------------- Owned contract, it is necessary to make 100% sure that there is no contract owner. We are making address(0) the owner, which means, nobody. ---------------------------------------------------------------------------- | contract Owned {
address public owner;
event OwnershipTransferred(address indexed _from, address indexed _to);
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
}
| 12,860,918 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
14223,
11748,
6835,
16,
518,
353,
4573,
358,
1221,
2130,
9,
3071,
716,
1915,
353,
1158,
6835,
3410,
18,
1660,
854,
10480,
1758,
12,
20,
13,
326,
3410,
16,
1492,
4696,
16,
290,
947,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
14223,
11748,
288,
203,
565,
1758,
1071,
3410,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
389,
2080,
16,
1758,
8808,
389,
869,
1769,
203,
203,
565,
3885,
1435,
1071,
288,
203,
3639,
3410,
273,
1... |
// SPDX-License-Identifier: MIT
// Sources flattened with hardhat v2.8.4 https://hardhat.org
// File @openzeppelin/contracts/utils/Context.sol@v4.5.0
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* s... | * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._/* @dev Emitted when `account` is granted `role`. `sender` is the account that o... | abstract contract AccessControl is Context, IAccessControl, ERC165 {
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
ui... | 607,639 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
512,
7948,
1347,
1375,
2704,
4446,
2996,
68,
353,
444,
487,
12176,
4615,
10335,
11,
87,
3981,
2478,
16,
13993,
1375,
11515,
4446,
2996,
68,
1375,
5280,
67,
15468,
67,
16256,
68,
353,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
24349,
353,
1772,
16,
467,
16541,
16,
4232,
39,
28275,
288,
203,
565,
445,
389,
5771,
1345,
1429,
18881,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
787,
1345,
548,
16,
203,
3639,
... |
pragma solidity ^0.4.18;
import '../library/StringUtils.sol';
contract ReviewSystem {
address public rewarder;
uint public confirmation_reward;
uint public review_reward;
uint public tokenBalance;
// The structure for a trade
struct Trade {
address seller;
address buyer;
uint ... | The structure for a review | struct Review {
address reviewed;
address reviewer;
uint rate;
string buyerReview;
}
| 5,533,173 | [
1,
4625,
348,
7953,
560,
30,
225,
1021,
3695,
364,
279,
10725,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
1958,
21354,
288,
203,
565,
1758,
10725,
329,
31,
203,
565,
1758,
10725,
264,
31,
203,
565,
2254,
565,
4993,
31,
203,
565,
533,
225,
27037,
9159,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'YukariInu' token contract
//
// Deployed to : 0x7E4836b64F194a92CD7cD66419b2d696813F9c87
// Symbol : YKINU
// Name : YukariInu
// Total supply: 1000000000000000
// Decimals : 18
//
// Yukari Inu ... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract YukariInu is ERC20Interface, Owned, SafeMath {
string public symbol;
string public name;
uint8 public decimals;
uint public _totalSupply;
mapping(address => uint) balances;
mapping(address => mapping(address => uint)) allowed;
function YukariInu() public {
symbol = "YKIN... | 13,590,114 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
13849,
4232,
39,
3462,
3155,
16,
598,
326,
2719,
434,
3273,
16,
508,
471,
15105,
471,
1551,
25444,
1147,
29375,
8879,
13849,
8879,
17082,
11417,
8879,
17082,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
1624,
19445,
12954,
382,
89,
353,
4232,
39,
3462,
1358,
16,
14223,
11748,
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,
... |
pragma solidity ^0.4.21;
import "./QuadrantToken.sol";
import "zeppelin-solidity/contracts/lifecycle/Pausable.sol";
import "zeppelin-solidity/contracts/ownership/Ownable.sol";
import "zeppelin-solidity/contracts/math/SafeMath.sol";
import "./Whitelister.sol";
/// @title Dutch auction contract - distribution of a fixed... | This is refund if for any reason auction is cancelled and we refund everyone's money | function refund() public refundIsRunning whenPaused {
uint256 depositedValue = bids[msg.sender];
require(refundValueForAll >= depositedValue);
internalRefund(depositedValue);
refundValueForAll = refundValueForAll.sub(depositedValue);
}
| 12,907,236 | [
1,
4625,
348,
7953,
560,
30,
225,
1220,
353,
16255,
309,
364,
1281,
3971,
279,
4062,
353,
13927,
471,
732,
16255,
3614,
476,
1807,
15601,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
16255,
1435,
1071,
16255,
2520,
7051,
1347,
28590,
288,
203,
3639,
2254,
5034,
443,
1724,
329,
620,
273,
30534,
63,
3576,
18,
15330,
15533,
203,
3639,
2583,
12,
1734,
1074,
620,
1290,
1595,
1545,
443,
1724,
329,
620,
1769... |
contract GlobalPhoneBook {
//the "service" owner address
address owner;
//contractor
function GlobalPhoneBook() {
owner = msg.sender;
}
//phone book entry struct
struct Entry {
uint time;
string firstName;
string lastName;
string phon... | index second map by address (not postal address) | phonebookByAddrss[adrs] = phonebookByNumber[phonenumber];
| 1,769,683 | [
1,
4625,
348,
7953,
560,
30,
770,
2205,
852,
635,
1758,
261,
902,
30553,
1758,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
5411,
7353,
3618,
858,
3178,
1049,
63,
361,
5453,
65,
273,
7353,
3618,
858,
1854,
63,
844,
265,
21998,
15533,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity 0.4.26;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high l... | * @dev Buyer confirms transaction with Ether 'price' as message value; Ether is then locked for transfer to seller after buyer confirms receipt or ADR if dispute initiated by buyer or seller./ | function confirmPurchase() public payable onlyBuyer inState(State.Created) {
require(price == msg.value);
state = State.Confirmed;
emit Confirmed(buyer, address(this));
}
| 5,342,827 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
605,
16213,
2195,
481,
959,
2492,
598,
512,
1136,
296,
8694,
11,
487,
883,
460,
31,
512,
1136,
353,
1508,
8586,
364,
7412,
358,
29804,
1839,
27037,
2195,
481,
959,
16030,
578,
432,
6331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
202,
3639,
445,
6932,
23164,
1435,
1071,
8843,
429,
1338,
38,
16213,
316,
1119,
12,
1119,
18,
6119,
13,
288,
203,
377,
202,
5411,
2583,
12,
8694,
422,
1234,
18,
1132,
1769,
203,
377,
202,
5411,
919,
273,
3287,
18,
3976,
11222,
... |
./full_match/4/0x3B0dE749344778659D77CED7b076e00fB7378731/sources/contracts/pix_v5.sol | Setup new GOVERNANCE_FUNDS_RECEIVER_ADDRESS with an index in proposed_val
| if(params_index[i]==20){ | 683,516 | [
1,
4625,
348,
7953,
560,
30,
4202,
10939,
394,
12389,
2204,
50,
4722,
67,
42,
2124,
3948,
67,
27086,
45,
2204,
67,
15140,
598,
392,
770,
316,
20084,
67,
1125,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
7734,
309,
12,
2010,
67,
1615,
63,
77,
65,
631,
3462,
15329,
2398,
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,... |
//Address: 0xc67a3da58b43b0652a22c6f50826c9ebe7b78e49
//Contract name: CryptoTorch
//Balance: 0 Ether
//Verification Date: 4/26/2018
//Transacion Count: 7
// CODE STARTS HERE
// CryptoTorch Source code
// copyright 2018 CryptoTorch <https://cryptotorch.io>
pragma solidity 0.4.19;
/**
* @title SafeMath
* Math op... | * Updates the Holiday Mappings in case of updates/changes at OwnTheDay.io/ | function updateHolidayState(uint8 _listIndex, string _holidayMap) public onlyOwner {
require(_listIndex >= 0 && _listIndex < 3);
holidayMap_[_listIndex] = _holidayMap;
}
| 2,522,403 | [
1,
4625,
348,
7953,
560,
30,
380,
15419,
326,
670,
17559,
1635,
4675,
316,
648,
434,
4533,
19,
6329,
622,
14223,
82,
1986,
4245,
18,
1594,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
44,
17559,
1119,
12,
11890,
28,
389,
1098,
1016,
16,
533,
389,
76,
17559,
863,
13,
1071,
1338,
5541,
288,
203,
3639,
2583,
24899,
1098,
1016,
1545,
374,
597,
389,
1098,
1016,
411,
890,
1769,
203,
3639,
27836,
863,... |
pragma solidity ^0.5.8;
// It's important to avoid vulnerabilities due to numeric overflow bugs
// OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs
// More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/
impor... | *******************************************************************************************/ EVENTS */*******************************************************************************************/ events forwarded from the data contract */ ... | modifier whenFunded() {
require(_isFunded(),"Caller is not funded");
_;
}
| 12,918,647 | [
1,
4625,
348,
7953,
560,
30,
19756,
19482,
636,
19,
4766,
4202,
9964,
55,
4766,
2398,
1195,
11125,
19482,
636,
5549,
2641,
19683,
628,
326,
501,
6835,
1195,
2641,
4374,
316,
326,
595,
6835,
1195,
11125,
19482,
636,
5549,
4766,
4202,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
1347,
42,
12254,
1435,
288,
203,
3639,
2583,
24899,
291,
42,
12254,
9334,
6,
11095,
353,
486,
9831,
785,
8863,
203,
3639,
389,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
// File: @openzeppelin/contracts/math/SafeMath.sol
pragma solidity ^0.5.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises a... | * Referring to the values recorded in each storage to returns the latest cumulative sum of the maximum mint amount and the latest maximum mint amount per block./ | function dry()
private
view
returns (uint256 _nextRewards, uint256 _amount)
{
uint256 rewardsAmount = IAllocator(config().allocator())
.calculateMaxRewardsPerBlock();
(
uint256 lastAmount,
uint256 lastBlock
) = getStorageLastSameRewardsAmountAndBlock();
uint256 lastMaxRewards = lastAmount == ... | 5,817,422 | [
1,
4625,
348,
7953,
560,
30,
380,
3941,
20245,
358,
326,
924,
16421,
316,
1517,
2502,
358,
1135,
326,
4891,
15582,
2142,
434,
326,
4207,
312,
474,
3844,
471,
326,
4891,
4207,
312,
474,
3844,
1534,
1203,
18,
19,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
915,
10299,
1435,
203,
202,
202,
1152,
203,
202,
202,
1945,
203,
202,
202,
6154,
261,
11890,
5034,
389,
4285,
17631,
14727,
16,
2254,
5034,
389,
8949,
13,
203,
202,
95,
203,
202,
202,
11890,
5034,
283,
6397,
6275,
273,
467,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-18
*/
// 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... | TODO switch to ySwapper when ready | function ethToWant(address _want, uint256 _amtInWei) external view returns (uint256 _wantAmount){
if (_amtInWei > 0) {
address[] memory path = new address[](2);
if (_want == address(weth)) {
return _amtInWei;
path[0] = address(weth);
pa... | 2,331,557 | [
1,
4625,
348,
7953,
560,
30,
225,
2660,
1620,
358,
677,
12521,
457,
1347,
5695,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13750,
774,
59,
970,
12,
2867,
389,
17369,
16,
2254,
5034,
389,
301,
88,
382,
3218,
77,
13,
3903,
1476,
1135,
261,
11890,
5034,
389,
17369,
6275,
15329,
203,
3639,
309,
261,
67,
301,
88,
382,
3218,
77,
405,
374,
13,
... |
./partial_match/4/0xA1F3D61edAE8c712f9365622987DD178F664Ddfb/sources/JustswapExchange.sol | * @notice Convert Tokens (token) to Tokens (token_addr). @dev User specifies maximum input && exact output. @param tokens_bought Amount of Tokens (token_addr) bought. @param max_tokens_sold Maximum Tokens (token) sold. @param max_trx_sold Maximum TRX purchased as intermediary. @param deadline Time after which this tran... | function tokenToTokenSwapOutput(
uint256 tokens_bought,
uint256 max_tokens_sold,
uint256 max_trx_sold,
uint256 deadline,
address token_addr)
public returns (uint256)
{
address payable exchange_addr = factory.getExchange(token_addr);
return tokenToToken... | 16,996,555 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
4037,
13899,
261,
2316,
13,
358,
13899,
261,
2316,
67,
4793,
2934,
632,
5206,
2177,
11470,
4207,
810,
597,
5565,
876,
18,
632,
891,
2430,
67,
1075,
9540,
16811,
434,
13899,
261,
2316,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1147,
774,
1345,
12521,
1447,
12,
203,
3639,
2254,
5034,
2430,
67,
1075,
9540,
16,
203,
3639,
2254,
5034,
943,
67,
7860,
67,
87,
1673,
16,
203,
3639,
2254,
5034,
943,
67,
313,
92,
67,
87,
1673,
16,
203,
3639,
2254,
... |
pragma solidity ^0.4.0;
/*
* Author: Jinhua Wang
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*/
contract CallOpt{
/*
* The call option contract
*/
address public god; //the creator of the call option
address public buyer; //the buyer of the call opt... | sudo user initiate the seller transfer process | function initSellerTransfer(uint target_price, address target_add) sudo {
seller_transfer=true;
seller_transfer_add=target_add;
seller_transfer_price=target_price;
}
| 5,391,465 | [
1,
4625,
348,
7953,
560,
30,
14669,
729,
18711,
326,
29804,
7412,
1207,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
202,
445,
1208,
22050,
5912,
12,
11890,
1018,
67,
8694,
16,
1758,
1018,
67,
1289,
13,
14669,
288,
203,
202,
225,
202,
1786,
749,
67,
13866,
33,
3767,
31,
203,
202,
225,
202,
1786,
749,
67,
13866,
67,
1289,
33,
3299,
67,
1289,
... |
./partial_match/1/0xc5920c99d09E5444C079C01F06763b5d6AB09CbB/sources/src/WagyuStaker.sol | @notice Validator deposit size. | uint256 public constant override VALIDATOR_DEPOSIT_SIZE = 32 ether;
| 16,164,826 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
9150,
443,
1724,
963,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
5381,
3849,
15093,
3575,
67,
1639,
28284,
67,
4574,
273,
3847,
225,
2437,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
// hevm: flattened sources of ./contracts/oracle/BondingCurveOracle.sol
pragma solidity >=0.6.0 <0.7.0 >=0.6.0 <0.8.0 >=0.6.2 <0.7.0 >=0.6.2 <0.8.0;
pragma experimental ABIEncoderV2;
////// ./contracts/external/SafeMathCopy.sol
// SPDX-License-Identifier: MIT
/* pragma solidity ^0.6.0; */
/**
* @dev Wrappers over S... | @title bonding curve oracle interface for Fei Protocol @author Fei Protocol ----------- Genesis Group only state changing API ----------- ----------- Getters ----------- | interface IBondingCurveOracle is IOracle {
function init(Decimal.D256 calldata initialUSDPrice) external;
function uniswapOracle() external view returns (IOracle);
function bondingCurve() external view returns (IBondingCurve);
function initialUSDPrice() external view returns (Decimal.D256 memory);
... | 13,474,333 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
8427,
310,
8882,
20865,
1560,
364,
5782,
77,
4547,
632,
4161,
5782,
77,
4547,
300,
15392,
31637,
3756,
1338,
919,
12770,
1491,
300,
15392,
300,
15392,
968,
5432,
300,
15392,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
16178,
310,
9423,
23601,
353,
1665,
16873,
288,
203,
203,
565,
445,
1208,
12,
5749,
18,
40,
5034,
745,
892,
2172,
3378,
40,
5147,
13,
3903,
31,
203,
203,
203,
565,
445,
640,
291,
91,
438,
23601,
1435,
3903,
1476,
1135,
26... |
pragma solidity 0.8.10;
/**
* @title Parameters
* @author @InsureDAO
* @notice This contract manages parameters of markets.
* SPDX-License-Identifier: GPL-3.0
*/
import "./interfaces/IOwnership.sol";
import "./interfaces/IParameters.sol";
import "./interfaces/IPremiumModel.sol";
contract Parameters is IParamete... | * @notice set grace period length in unix timestamp length (1 day = 86400) @param _address address to set the parameter @param _target parameter/ | function setGrace(address _address, uint256 _target)
external
override
onlyOwner
{
_grace[_address] = _target;
emit GraceSet(_address, _target);
}
| 9,845,635 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
444,
13658,
3879,
769,
316,
9753,
2858,
769,
261,
21,
2548,
273,
21451,
13,
632,
891,
389,
2867,
1758,
358,
444,
326,
1569,
632,
891,
389,
3299,
1569,
19,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
24443,
12,
2867,
389,
2867,
16,
2254,
5034,
389,
3299,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
3639,
1338,
5541,
203,
565,
288,
203,
3639,
389,
2752,
311,
63,
67,
2867,
65,
273,
389,
3299,
31,
203,
3639,
3626,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
contract Migrations {
address public owner = msg.sender;
uint public last_completed_migration;
modifier restricted() {
require(
msg.sender == owner,
"This function is restricted to the contract's owner"
);
_;
}
functio... | already paid to lenders
| uint interest = getPositionInterest(pool.baseToken, pos.id); | 1,495,908 | [
1,
4625,
348,
7953,
560,
30,
225,
1818,
30591,
358,
328,
10130,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
16513,
273,
14441,
29281,
12,
6011,
18,
1969,
1345,
16,
949,
18,
350,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
pragma solidity ^0.4.16;
interface token {
function transfer(address receiver, uint amount) public;
function unlock() public;
function burn(uint256 _value) public returns (bool);
}
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address ... | * Fallback function The function without name is the default function that is called whenever anyone sends funds to a contract/ | function () public payable stopInEmergency beforeDeadline ICOactive{
require(msg.value >= MinimumInvestment());
uint amount = amountToSend(msg.value);
if (amount==0){
revert();
balanceOf[msg.sender] += msg.value;
amountRaised += msg.value;
toke... | 2,473,640 | [
1,
4625,
348,
7953,
560,
30,
380,
21725,
445,
1021,
445,
2887,
508,
353,
326,
805,
445,
716,
353,
2566,
17334,
1281,
476,
9573,
284,
19156,
358,
279,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
1071,
8843,
429,
2132,
382,
1514,
24530,
1865,
15839,
467,
3865,
3535,
95,
203,
3639,
2583,
12,
3576,
18,
1132,
1545,
23456,
3605,
395,
475,
10663,
203,
3639,
2254,
3844,
273,
3844,
28878,
12,
3576,
18,
1132,
1769,
... |
pragma solidity ^0.5.4;
/**
* @title SafeMath
* @dev Unsigned math operations with safety checks that revert on error
*/
library SafeMath {
/**
* @dev Multiplies two unsigned integers, reverts on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optim... | Transfer approved tokens from one address to another. @param from address The address to send tokens from. @param to address The address to send tokens to. @param value uint256 The number of attotokens to send. | function transferFrom(address from, address to, uint256 value)
external
notPaused
notFrozen(msg.sender)
notFrozen(from)
notFrozen(to)
returns (bool)
{
_transfer(from, to, value);
_approve(from, msg.sender, data.allowed(from, msg.sender).sub(value))... | 1,777,826 | [
1,
4625,
348,
7953,
560,
30,
225,
12279,
20412,
2430,
628,
1245,
1758,
358,
4042,
18,
632,
891,
628,
1758,
1021,
1758,
358,
1366,
2430,
628,
18,
632,
891,
358,
1758,
1021,
1758,
358,
1366,
2430,
358,
18,
632,
891,
460,
2254,
5034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
460,
13,
203,
3639,
3903,
203,
3639,
486,
28590,
203,
3639,
486,
42,
9808,
12,
3576,
18,
15330,
13,
203,
3639,
486,
42,
9808,
12,
2080,
13,
203,
3639,
486,
4... |
./partial_match/42161/0x19330d10D9Cc8751218eaf51E8885D058642E08A/sources/TokenMessenger.sol | * @title SafeMath_TMV @dev Math operations with safety checks that throw on error @notice SafeMath_TMV is the version of SafeMath used by TypedMemView/ | library SafeMath_TMV {
The MIT License (MIT)
function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) {
if (_a == 0) {
return 0;
}
c = _a * _b;
require(c / _a == _b, "Overflow during multiplication.");
return c;
}
function mul(uint256 _a,... | 3,494,367 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
14060,
10477,
67,
22903,
58,
632,
5206,
2361,
5295,
598,
24179,
4271,
716,
604,
603,
555,
632,
20392,
14060,
10477,
67,
22903,
58,
353,
326,
1177,
434,
14060,
10477,
1399,
635,
13833,
3545,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12083,
14060,
10477,
67,
22903,
58,
288,
203,
203,
1986,
490,
1285,
16832,
261,
6068,
13,
203,
203,
565,
445,
14064,
12,
11890,
5034,
389,
69,
16,
2254,
5034,
389,
70,
13,
2713,
16618,
1135,
261,
11890,
5034,
276,
13,
288,
203,
... |
./full_match/1/0x85979c90D53E20E4505C83d9408b8A61Beb8db1F/sources/contracts/Aladdin.sol | Transferindicates if fee should be deducted from transferif any account belongs to _isExcludedFromFee account then remove the fee | function transfer(address recipient, uint256 amount) public override returns (bool){
require(recipient!=address(0)&&msg.sender!=address(0)&&amount>0,"ERC20:an error occured");
bool takeFee = true;
if(_exludeFromFee[msg.sender] || _exludeFromFee[recipient]){
takeFee = false;
... | 9,732,624 | [
1,
4625,
348,
7953,
560,
30,
12279,
728,
8242,
309,
14036,
1410,
506,
11140,
853,
329,
628,
7412,
430,
1281,
2236,
11081,
358,
389,
291,
16461,
1265,
14667,
2236,
1508,
1206,
326,
14036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
12,
2867,
8027,
16,
2254,
5034,
3844,
13,
1071,
3849,
1135,
261,
6430,
15329,
203,
3639,
2583,
12,
20367,
5,
33,
2867,
12,
20,
13,
10,
10,
3576,
18,
15330,
5,
33,
2867,
12,
20,
13,
10,
10,
8949,
34,
20,
1083... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.9;
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/access/AccessControlEnumerable.sol';
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
import "@openzeppelin/contracts/utils/Strings.... | @notice Loops over the user's tokens looking for one that belongs to a product and a specific range @dev Loops are expensive in solidity, so don't use this in a function that requires gas @param userAddress User to search @param productIndex Product to search @param startingToken Product to search @param endingTok... | function hasTokenInProduct(
address userAddress,
uint productIndex,
uint startingToken,
uint endingToken) public view returns (bool) {
product memory aux = _products[productIndex];
if (aux.endingToken != 0) {
for (uint i = 0; i < balanceOf(userAddress); i++) {
uint token = tokenOfOwnerByInde... | 5,810,557 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
202,
31409,
1879,
326,
729,
1807,
2430,
7849,
364,
1245,
716,
11081,
358,
279,
3017,
471,
279,
2923,
1048,
632,
5206,
202,
31409,
854,
19326,
316,
18035,
560,
16,
1427,
2727,
1404,
999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
202,
915,
711,
1345,
382,
4133,
12,
203,
9506,
202,
2867,
729,
1887,
16,
203,
9506,
202,
11890,
3017,
1016,
16,
203,
9506,
202,
11890,
5023,
1345,
16,
203,
9506,
202,
11890,
11463,
1345,
13,
1071,
1476,
1135,
261,
6430,
13,
288,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.3;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/cryptography/ECDSA.sol";
import "../governance/Managed.sol";
import "../upgrades/GraphUpgradeable.sol";
import "./DisputeManagerStorage.sol";
... | * @dev Set the minimum deposit required to create a dispute. @notice Update the minimum deposit to `_minimumDeposit` Graph Tokens @param _minimumDeposit The minimum deposit in Graph Tokens/ | function setMinimumDeposit(uint256 _minimumDeposit) external override onlyGovernor {
_setMinimumDeposit(_minimumDeposit);
}
| 908,947 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
326,
5224,
443,
1724,
1931,
358,
752,
279,
1015,
2507,
18,
632,
20392,
2315,
326,
5224,
443,
1724,
358,
1375,
67,
15903,
758,
1724,
68,
5601,
13899,
632,
891,
389,
15903,
758,
1724,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
31973,
758,
1724,
12,
11890,
5034,
389,
15903,
758,
1724,
13,
3903,
3849,
1338,
43,
1643,
29561,
288,
203,
3639,
389,
542,
13042,
758,
1724,
24899,
15903,
758,
1724,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-... |
pragma solidity ^0.4.21;
/**
* @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) {
if (a == 0) {
return 0;
}
c ... | * Transfer the excess tokens to RESERVE if there are available tokens/ | @dev This function can be call by owner to close the ICO if status is closed .
function closeICO() public onlyOwner {
updateStatus();
require(status == StatusList.Closed);
transferExcessTokensToReserve();
}
| 8,081,113 | [
1,
4625,
348,
7953,
560,
30,
380,
377,
12279,
326,
23183,
2430,
358,
2438,
2123,
3412,
309,
1915,
854,
2319,
2430,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
632,
5206,
1220,
445,
848,
506,
745,
635,
3410,
358,
1746,
326,
467,
3865,
309,
1267,
353,
4375,
263,
203,
377,
445,
1746,
2871,
51,
1435,
1071,
1338,
5541,
288,
203,
3639,
1089,
1482,
5621,
203,
3639,
2583,
12,
2327,
422,
... |
./full_match/44787/0x587C5bB98999dF3F1077058f644c31618a957686/sources/project_/contracts/Auction.sol | withdraw the ERC20 tokens paid for bid | function withdraw() external
nonReentrant
onlyHasCanceled
onlyNotBeneficiary
onlyBidder
returns (bool success)
{
address withdrawalAccount;
uint256 withdrawalAmount;
withdrawalAccount = _msgSender();
withdrawalAmount = fundsByBidde... | 13,287,273 | [
1,
4625,
348,
7953,
560,
30,
598,
9446,
326,
4232,
39,
3462,
2430,
30591,
364,
9949,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
598,
9446,
1435,
3903,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
1338,
5582,
23163,
203,
3639,
1338,
1248,
38,
4009,
74,
14463,
814,
203,
3639,
1338,
17763,
765,
203,
3639,
1135,
261,
6430,
2216,
13,
203,
565,
288,
20... |
./full_match/42/0x92199D40f4FdD843ba1EAb53E83fe72Cbf4dA083/sources/CrypticZoo/TheCrypticZoo.sol | @dev This function returns the current ether balance of this contract | function balance() external view returns(uint256) {
return address(this).balance;
}
| 16,223,820 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
1220,
445,
1135,
326,
783,
225,
2437,
11013,
434,
333,
6835,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11013,
1435,
3903,
1476,
1135,
12,
11890,
5034,
13,
288,
203,
3639,
327,
1758,
12,
2211,
2934,
12296,
31,
203,
565,
289,
203,
377,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./base64.sol";
/// @title GitHub Renoun Non-Transferrable Tokens
/// @author Jonathan Becker <jonathan@jbecker.dev>
/// @author Badge design by Achal <@achalvs>
/// @notice This contract is an ERC721 compliant implementation of
/// a badge s... | @notice Switches the rendering contract @param _tokenId The token ID to render @return The token URI of the token ID | function tokenURI(uint256 _tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_ownership[_tokenId] != address(0x0),
"Renoun: token doesn't exist."
);
Contribution memory _contribution = contribution[_tokenId];
string memory json = Base64.encode(... | 12,884,605 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13967,
281,
326,
9782,
6835,
632,
891,
389,
2316,
548,
1021,
1147,
1599,
358,
1743,
632,
2463,
1021,
1147,
3699,
434,
326,
1147,
1599,
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,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
3098,
12,
11890,
5034,
389,
2316,
548,
13,
203,
565,
1071,
203,
565,
1476,
203,
565,
5024,
203,
565,
3849,
203,
565,
1135,
261,
1080,
3778,
13,
203,
225,
288,
203,
565,
2583,
12,
203,
1377,
389,
995,
12565,
63,
... |
./partial_match/1/0xA53de764935d71968c7B5d311E6E76Ba22109a11/sources/DharmaTradeReserveV17ImplementationStaging.sol | Set swap target token. Establish path from Ether to token. Get this contract's balance in the output token prior to the trade. Trade for the quoted token amount on Uniswap and send to this contract. | ) internal returns (uint256 totalTokensBought) {
uint256 retainedAmount;
uint256 receivedAmountAfterTransferFee;
ERC20Interface tokenReceived = (
tokenReceivedOrUSDCFlag == _TRADE_FOR_USDC_AND_RETAIN_FLAG
? _USDC
: ERC20Interface(tokenReceivedOrUSDCFlag)
);
(address[] mem... | 9,400,989 | [
1,
4625,
348,
7953,
560,
30,
225,
1000,
7720,
1018,
1147,
18,
17787,
23385,
589,
628,
512,
1136,
358,
1147,
18,
968,
333,
6835,
1807,
11013,
316,
326,
876,
1147,
6432,
358,
326,
18542,
18,
2197,
323,
364,
326,
9298,
1147,
3844,
603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
225,
262,
2713,
1135,
261,
11890,
5034,
2078,
5157,
13809,
9540,
13,
288,
203,
565,
2254,
5034,
25227,
6275,
31,
203,
565,
2254,
5034,
5079,
6275,
4436,
5912,
14667,
31,
203,
203,
565,
4232,
39,
3462,
1358,
1147,
8872,
273,
261,
... |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'TECHToken' CROWDSALE token contract
//
// Deployed to : 0xF6a2DBBE98af02952b149d5BdfF4c106FCAcb7aB
// Symbol : TECH
// Name : TECHToken
// Total supply: 1000000
// Decimals : 18
//
// Enj... | ------------------------------------------------------------------------ 200 TEC Tokens per 1 ETH ------------------------------------------------------------------------ | function () public payable {
require(now >= startDate && now <= endDate);
uint tokens;
if (now <= bonusEnds) {
tokens = msg.value * 400;
tokens = msg.value * 200;
}
balances[msg.sender] = safeAdd(balances[msg.sender], tokens);
_totalSupply = sa... | 10,722,646 | [
1,
4625,
348,
7953,
560,
30,
225,
8879,
17082,
4044,
399,
7228,
13899,
1534,
404,
512,
2455,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1832,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3338,
1545,
12572,
597,
2037,
1648,
13202,
1769,
203,
3639,
2254,
2430,
31,
203,
3639,
309,
261,
3338,
1648,
324,
22889,
24980,
13,
288,
203,
5411,
2430,
273,
1234,
18,
1... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.1;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/security/Pausable.sol";
import "https://github.com/OpenZeppelin/ope... | distribute the amount equally | fallback() external payable {
distribute();
}
| 12,905,807 | [
1,
4625,
348,
7953,
560,
30,
25722,
326,
3844,
1298,
1230,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5922,
1435,
3903,
8843,
429,
288,
203,
3639,
25722,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./full_match/80001/0xA99e21f7bbF3D6C2Abf112b46A06d90bC0acF774/sources/testingtoken.sol | Create a uniswap pair for this new token set the rest of the contract variables | constructor(uint256 _initialBurnRate, uint256 _initialPromoRate, uint256 _initialOpsRate, address _PromotionalAccount, address _OperationsAccount) {
burnRate = _initialBurnRate;
promoRate = _initialPromoRate;
opsRate = _initialOpsRate;
PromotionalAccount = _PromotionalAccount;
... | 5,550,929 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
279,
640,
291,
91,
438,
3082,
364,
333,
394,
1147,
444,
326,
3127,
434,
326,
6835,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
12,
11890,
5034,
389,
6769,
38,
321,
4727,
16,
2254,
5034,
389,
6769,
13224,
83,
4727,
16,
2254,
5034,
389,
6769,
8132,
4727,
16,
1758,
389,
13224,
8240,
287,
3032,
16,
1758,
389,
9343,
3032,
13,
288,
203,
3639,
18305,... |
//SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";
contract FlightSuretyData is Ownable {
/********************************************************************************************/
/* DATA VARIABLES ... | * @dev Fallback function for funding smart contract. No need to add requireIsOperational given it calls fund which requires it/ | receive() external payable requireIsOperational {
fund(msg.sender);
}
| 5,543,097 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21725,
445,
364,
22058,
13706,
6835,
18,
2631,
1608,
358,
527,
2583,
2520,
2988,
287,
864,
518,
4097,
284,
1074,
1492,
4991,
518,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
6798,
1435,
3903,
8843,
429,
2583,
2520,
2988,
287,
288,
203,
3639,
284,
1074,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/1/0xCF4B1Ba585AD9897ec5010a47D5997411343803F/sources/stake.sol | All participant address | address[] public participants;
| 2,907,205 | [
1,
4625,
348,
7953,
560,
30,
225,
4826,
14188,
1758,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
8526,
1071,
22346,
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,
-100,... |
pragma solidity ^0.8.0;
import "./JointAccounts.sol";
/**
- Hold configuration of NFTs: services, royalties.
- Capture royalties on primary and secondary transfers.
- Report configured royalties to service providers (supports Joint Accounts).
*/
abstract contract TransferFees is JointAccounts {
function __Transf... | * Collect the royalty due on a transfer. The royalty is calculated based on NFT configuration and the price. It is collected by an internal transfer of currency between "from" and the beneficiary. Return the amount collected./ An account with bypass role does not pay royalties. This uses msg.sender which is supposed to... | function _captureFee(address from, uint256 nftId, uint256 price, uint256 amount)
internal returns (uint256) {
if (nftId == CURRENCY) return 0;
if (hasRole(BYPASS_SENDER, msg.sender)) return 0;
uint256 cut;
uint256 minimum;
address royaltyAccount;
bool isPrimary ... | 5,496,064 | [
1,
4625,
348,
7953,
560,
30,
380,
9302,
326,
721,
93,
15006,
6541,
603,
279,
7412,
18,
1021,
721,
93,
15006,
353,
8894,
2511,
603,
423,
4464,
1664,
471,
326,
6205,
18,
2597,
353,
12230,
635,
392,
2713,
7412,
434,
5462,
3086,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19250,
14667,
12,
2867,
628,
16,
2254,
5034,
290,
1222,
548,
16,
2254,
5034,
6205,
16,
2254,
5034,
3844,
13,
203,
565,
2713,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
309,
261,
82,
1222,
548,
422,
4706,
25231,
... |
pragma solidity 0.5.8;
import "./Roles.sol";
contract AuthorityRole {
using Roles for Roles.Role;
// Latest Scheme ID for schemes represented by contract
uint32 public schemeId;
struct Scheme {
string schemeName;
address authorityId; // Set once endorsed
SchemeSta... | An authority officially endorsed the certification scheme as approved | function endorseScheme(uint32 _schemeId) public created(_schemeId) {
assert(_schemeId != 0);
schemes[_schemeId].schemeState = SchemeState.Endorsed;
schemes[_schemeId].authorityId = msg.sender;
emit Endorsed(_schemeId);
}
| 937,632 | [
1,
4625,
348,
7953,
560,
30,
225,
1922,
11675,
3397,
335,
6261,
679,
280,
730,
326,
3320,
1480,
4355,
487,
20412,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
679,
23035,
9321,
12,
11890,
1578,
389,
9068,
548,
13,
1071,
2522,
24899,
9068,
548,
13,
288,
203,
3639,
1815,
24899,
9068,
548,
480,
374,
1769,
203,
3639,
20436,
63,
67,
9068,
548,
8009,
9068,
1119,
273,
10714,
1119,
1... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be... | stakeToken = _stakeToken; | function withdrawStakerFunds(address payable destination) external virtual returns (uint256);
}
function initialize(address _stakeToken) public override {
require(_stakeToken == address(0), "NO_TOKEN_ALLOWED");
}
| 12,101,367 | [
1,
4625,
348,
7953,
560,
30,
225,
384,
911,
1345,
273,
389,
334,
911,
1345,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
598,
9446,
510,
6388,
42,
19156,
12,
2867,
8843,
429,
2929,
13,
3903,
5024,
1135,
261,
11890,
5034,
1769,
203,
97,
203,
203,
565,
445,
4046,
12,
2867,
389,
334,
911,
1345,
13,
1071,
3849,
288,
203,
3639,
2583,
24899,
... |
./partial_match/100/0x57b9f98c40070DE34cA1EBE4bd70f4fe25cfbEEB/sources/RewardsVault.sol | Withdraw without caring about rewards. EMERGENCY ONLY. !Caution this will remove all your pending rewards! No mass update dont update pending rewards | function emergencyWithdraw(uint256 _pid) public {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
uint256 _amount = user.amount;
user.amount = 0;
user.rewardDebt = 0;
pool.totalStaked = pool.totalStaked.sub(_amount);
IERC20(pool.token).safeTran... | 16,647,203 | [
1,
4625,
348,
7953,
560,
30,
225,
3423,
9446,
2887,
5926,
310,
2973,
283,
6397,
18,
7141,
654,
16652,
16068,
20747,
18,
401,
23508,
1421,
333,
903,
1206,
777,
3433,
4634,
283,
6397,
5,
2631,
8039,
1089,
14046,
1089,
4634,
283,
6397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
801,
24530,
1190,
9446,
12,
11890,
5034,
389,
6610,
13,
1071,
288,
203,
565,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
565,
25003,
2502,
729,
273,
16753,
63,
67,
6610,
6362,
3576,
18,
15330,
15533... |
pragma solidity ^0.4.24;
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error.
*/
library SafeMath {
// Multiplies two numbers, throws on overflow./
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) ... | Get member-state (true or false) | function member () public view returns (bool) {
return members[msg.sender].unpaid >= 1;
}
| 6,456,289 | [
1,
4625,
348,
7953,
560,
30,
225,
968,
3140,
17,
2019,
261,
3767,
578,
629,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3140,
1832,
1071,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
327,
4833,
63,
3576,
18,
15330,
8009,
318,
29434,
1545,
404,
31,
203,
565,
289,
203,
377,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/4/0x3ABc8aCa8163B53754741F52612C47a457db5D00/sources/contracts/conduit/ConduitController.sol | * @notice Initiate conduit ownership transfer by assigning a new potential owner for the given conduit. Once set, the new potential owner may call `acceptOwnership` to claim ownership of the conduit. Only the owner of the conduit in question may call this function. @param conduit The conduit for... | function transferOwnership(address conduit, address newPotentialOwner)
external
override
{
_assertCallerIsConduitOwner(conduit);
if (newPotentialOwner == address(0)) {
revert NewPotentialOwnerIsZeroAddress(conduit);
}
if (newPotentialOwner == _condui... | 660,883 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
26615,
356,
2544,
305,
23178,
7412,
635,
28639,
279,
394,
8555,
540,
3410,
364,
326,
864,
356,
2544,
305,
18,
12419,
444,
16,
326,
394,
8555,
3410,
540,
2026,
745,
1375,
9436,
5460,
1256... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5460,
12565,
12,
2867,
356,
2544,
305,
16,
1758,
394,
24947,
5541,
13,
203,
3639,
3903,
203,
3639,
3849,
203,
565,
288,
203,
3639,
389,
11231,
11095,
2520,
442,
2544,
305,
5541,
12,
591,
2544,
305,
1769,
203,
203,... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.6.0;
interface ENS {
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
event Transfer(bytes32 indexed node, address owner);
event NewResolver(bytes32 indexed node, address resolver);
event NewTTL(bytes32 indexed node, uin... | setTokenPrices(), transferOwner(), freezeToken(), transferToken(), transferTokenFrom()
| function isInitiatorOrMember(bytes32 _dHash) private view returns (address tProxy) { | 571,780 | [
1,
4625,
348,
7953,
560,
30,
225,
22629,
31862,
9334,
7412,
5541,
9334,
16684,
1345,
9334,
7412,
1345,
9334,
7412,
1345,
1265,
1435,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
2570,
10620,
1162,
4419,
12,
3890,
1578,
389,
72,
2310,
13,
3238,
1476,
1135,
261,
2867,
268,
3886,
13,
288,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
import "../utility/ContractRegistryClient.sol";
import "../token/interfaces/IDSToken.sol";
import "./interfaces/IConverter.sol";
import "./interfaces/IConverterFactory.sol";
import "./interfaces/IConverterRegistry.sol";
import "./interfaces/I... | remove the converter anchor remove all reserve tokens | function removeConverterInternal(IConverter converter) private {
IConverterRegistryData converterRegistryData = IConverterRegistryData(addressOf(CONVERTER_REGISTRY_DATA));
IConverterAnchor anchor = IConverter(converter).token();
uint256 reserveTokenCount = converter.connectorTokenCount();
... | 15,797,623 | [
1,
4625,
348,
7953,
560,
30,
225,
1206,
326,
6027,
6984,
1206,
777,
20501,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1206,
5072,
3061,
12,
45,
5072,
6027,
13,
3238,
288,
203,
3639,
467,
5072,
4243,
751,
6027,
4243,
751,
273,
467,
5072,
4243,
751,
12,
2867,
951,
12,
2248,
2204,
2560,
67,
5937,
25042,
67,
4883,
10019,
203,
3639,
467,
... |
pragma solidity 0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
... | ERC20 functions ========================= | function transfer(address _to, uint _value) public returns (bool) {
require(!transferFrozen);
return super.transfer(_to, _value);
}
| 5,532,948 | [
1,
4625,
348,
7953,
560,
30,
225,
4232,
39,
3462,
4186,
28562,
894,
12275,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7412,
12,
2867,
389,
869,
16,
2254,
389,
1132,
13,
1071,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
12,
5,
13866,
42,
9808,
1769,
203,
3639,
327,
2240,
18,
13866,
24899,
869,
16,
389,
1132,
1769,
203,
565,
289,
203,
... |
pragma solidity ^0.4.23;
// File: contracts\utils\AddressUtils.sol
/**
* Utility library of inline functions on addresses
*/
library AddressUtils {
/**
* Returns whether the target address is a contract
* @dev This function will return false if invoked during the constructor of a contract,
*... | 新确定方案,如果开箱开到某个道具没有了,直接选下一个递归调用,全部箱子如果都遍历完了全都脱销,则失败现在这样会开出箱子中没有的东西, 按理来讲应该开出箱子的下一个物品。 | function sendPrize(address _to, uint _index) public onlyMagicBox returns (bool) {
address prizeAddress = equipments[_index];
BaseEquipment baseEquipment = BaseEquipment(prizeAddress);
if(baseEquipment.checkCap(1 ether)) {
baseEquipment.mint(_to, 1 ether);
emit SendEquipment(_to, prizeAddress, ... | 7,290,594 | [
1,
4625,
348,
7953,
560,
30,
225,
167,
249,
113,
168,
99,
111,
166,
111,
253,
167,
249,
122,
167,
99,
235,
176,
125,
239,
166,
104,
229,
167,
257,
255,
166,
125,
227,
168,
111,
114,
166,
125,
227,
166,
235,
113,
167,
258,
243,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
225,
445,
1366,
2050,
554,
12,
2867,
389,
869,
16,
2254,
389,
1615,
13,
1071,
1338,
19289,
3514,
1135,
261,
6430,
13,
288,
203,
565,
1758,
846,
554,
1887,
273,
1298,
625,
1346,
63,
67,
1615,
15533,
203,
565,
3360,
13142,
11568,
... |
./partial_match/1/0xAF667811A7eDcD5B0066CD4cA0da51637DB76D09/sources/contracts/FeeDistributor.sol | * @notice Returns true if only the VotingEscrow holder can claim their rewards, false otherwise./ | function onlyVeHolderClaimingEnabled(address user) external view override returns (bool) {
return _onlyVeHolderClaimingEnabled[user];
}
| 4,353,112 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
2860,
638,
309,
1338,
326,
776,
17128,
6412,
492,
10438,
848,
7516,
3675,
283,
6397,
16,
629,
3541,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1338,
58,
73,
6064,
9762,
310,
1526,
12,
2867,
729,
13,
3903,
1476,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
327,
389,
3700,
58,
73,
6064,
9762,
310,
1526,
63,
1355,
15533,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
pragma solidity ^0.4.19;
// @title SwearJar
// @author Luke Hedger
contract SwearJar {
/*
* @notice Jar struct
* @param {uint} deposit Required Deposit to Vote in Jar
* @param {address} owner Jar owner, probably a multisig
* @param {uint} quorum Number of Votes required to ratify a Swear
*/
... | @notice SwearConfirmed event @param {bytes32} _swear @param {address} _swearer/ | event SwearConfirmed(bytes32 _swear, address _swearer);
| 910,041 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
348,
1814,
297,
3976,
11222,
871,
632,
891,
288,
3890,
1578,
97,
389,
87,
1814,
297,
632,
891,
288,
2867,
97,
389,
87,
1814,
14500,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
871,
348,
1814,
297,
3976,
11222,
12,
3890,
1578,
389,
87,
1814,
297,
16,
1758,
389,
87,
1814,
14500,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.5.0;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath#mul: OVERFLOW");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256)... | * @dev See {IERC721-safeTransferFrom}./ | function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
| 7,222,162 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
4626,
5912,
1265,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4183,
5912,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
16,
203,
3639,
1731,
3778,
389,
892,
203,
565,
262,
1071,
288,
203,
3639,
2583,
24899,
291,
31639,
1162,
5541,
... |
./partial_match/56/0xFb949b7bfb6C1CCf4567c761bb217739C595D564/sources/SminemSummoner.sol | * Function modifier to require caller to be contract owner/ | modifier owned() {
require(isOwner(msg.sender)); _;
}
| 11,303,709 | [
1,
4625,
348,
7953,
560,
30,
380,
4284,
9606,
358,
2583,
4894,
358,
506,
6835,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
9606,
16199,
1435,
288,
203,
3639,
2583,
12,
291,
5541,
12,
3576,
18,
15330,
10019,
389,
31,
203,
565,
289,
203,
377,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./partial_match/1/0xbE108797746Ec7a63ea7219E768A1512Cab86523/sources/PunkedContract.sol | * @dev Mints a token to an address with a tokenURI for allowlist. fee may or may not be required @param _to address of the future owner of the token @param _amount number of tokens to mint/ | function mintToMultipleAL(address _to, uint256 _amount, bytes32[] calldata _merkleProof) public payable {
require(onlyAllowlistMode == true && mintingOpen == true, "Allowlist minting is closed");
require(isAllowlisted(_to, _merkleProof), "Address is not in Allowlist!");
require(_amount >= 1,... | 4,440,072 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
490,
28142,
279,
1147,
358,
392,
1758,
598,
279,
1147,
3098,
364,
1699,
1098,
18,
14036,
2026,
578,
2026,
486,
506,
1931,
632,
891,
389,
869,
1758,
434,
326,
3563,
3410,
434,
326,
1147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
774,
8438,
1013,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
16,
1731,
1578,
8526,
745,
892,
389,
6592,
15609,
20439,
13,
1071,
8843,
429,
288,
203,
3639,
2583,
12,
3700,
7009,
1098,
2309,
422,
638,
597,
... |
pragma solidity 0.4.24;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* 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(address t... | Authorize the owner to spend on someone's behalf.
| allowed[_from][msg.sender] = allowed[_from][msg.sender].add(_value); | 2,058,793 | [
1,
4625,
348,
7953,
560,
30,
225,
23859,
326,
3410,
358,
17571,
603,
18626,
18642,
5520,
31,
87,
12433,
6186,
18,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
202,
202,
8151,
63,
67,
2080,
6362,
3576,
18,
15330,
65,
273,
2935,
63,
67,
2080,
6362,
3576,
18,
15330,
8009,
1289,
24899,
1132,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2021-09-05
*/
// solhint-disable-next-line
pragma solidity 0.4.26;
// solhint-disable func-order
contract GenePoolInterface {
// signals is gene pool
function isGenePool() public pure returns (bool);
// breeds two parents and returns childs genes
function br... | father of this pepe
| uint64 father; | 10,871,729 | [
1,
4625,
348,
7953,
560,
30,
225,
284,
4806,
434,
333,
2804,
347,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1377,
2254,
1105,
284,
4806,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.5.9;
/**
* @title Roles
* @dev Library for managing addresses assigned to a Role.
*/
library Roles {
struct Role {
mapping (address => bool) bearer;
}
/**
* @dev give an account access to this role
*/
function add(Role storage role, address account) internal {
require(a... | * @dev Divides two unsigned integers and returns the remainder (unsigned integer modulo), reverts when dividing by zero./ | function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b != 0);
return a % b;
}
| 1,035,667 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
21411,
4369,
2795,
9088,
12321,
471,
1135,
326,
10022,
261,
22297,
3571,
26109,
3631,
15226,
87,
1347,
3739,
10415,
635,
3634,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
681,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,
202,
202,
6528,
12,
70,
480,
374,
1769,
203,
202,
202,
2463,
279,
738,
324,
31,
203,
202,
97,
203,
2,
-100,
-100... |
./full_match/432204/0x010224949cCa211Fb5dDfEDD28Dc8Bf9D2990368/sources/contracts/Portfolio.sol | * @notice initializer function for Upgradeable Portfolio @dev Grants admin role to msg.sender @param _native Native token of the network. AVAX in mainnet, ALOT in subnet./ initialize the admins | function initialize(bytes32 _native, uint32 _chainId) public virtual onlyInitializing {
__AccessControl_init();
__Pausable_init();
__ReentrancyGuard_init();
allowDeposit = true;
native = _native;
chainId = _chainId;
}
| 16,380,979 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
225,
12562,
445,
364,
17699,
429,
6008,
10270,
632,
5206,
377,
611,
86,
4388,
3981,
2478,
358,
1234,
18,
15330,
632,
891,
282,
389,
13635,
225,
16717,
1147,
434,
326,
2483,
18,
15068,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
4046,
12,
3890,
1578,
389,
13635,
16,
2254,
1578,
389,
5639,
548,
13,
1071,
5024,
1338,
29782,
288,
203,
3639,
1001,
16541,
67,
2738,
5621,
203,
3639,
1001,
16507,
16665,
67,
2738,
5621,
203,
3639,
1001,
426,
8230,
12514,... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts-up... | / Check the auction has not ended | function updateAuctionEndTime(
address _nftAddress,
uint256 _tokenId,
uint256 _endTimestamp
) external {
Auction storage auction = auctions[_nftAddress][_tokenId];
require(_msgSender() == auction.owner, "sender must be owner");
require(_getNow() < auction.endTim... | 62,354 | [
1,
4625,
348,
7953,
560,
30,
342,
2073,
326,
279,
4062,
711,
486,
16926,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
37,
4062,
25255,
12,
203,
3639,
1758,
389,
82,
1222,
1887,
16,
203,
3639,
2254,
5034,
389,
2316,
548,
16,
203,
3639,
2254,
5034,
389,
409,
4921,
203,
565,
262,
3903,
288,
203,
3639,
432,
4062,
2502,
279,
4062,
2... |
pragma solidity 0.6.12;
import "openzeppelin-solidity-pixura/contracts/token/ERC721/ERC721.sol";
import "openzeppelin-solidity-pixura/contracts/access/Ownable.sol";
import "openzeppelin-solidity-pixura/contracts/math/SafeMath.sol";
import "./ISupeRare.sol";
import "./IERC721Creator.sol";
/**
* @title SuperRare Legac... | / Set old SuperRare. Mark minting as not completed | ) public ERC721(_name, _symbol) {
require(
_oldSuperRare != address(0),
"constructor::Cannot have null address for _oldSuperRare"
);
oldSuperRare = ISupeRare(_oldSuperRare);
_mintingCompleted = false;
}
| 5,374,583 | [
1,
4625,
348,
7953,
560,
30,
342,
1000,
1592,
14845,
54,
834,
18,
6622,
312,
474,
310,
487,
486,
5951,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
262,
1071,
4232,
39,
27,
5340,
24899,
529,
16,
389,
7175,
13,
288,
203,
3639,
2583,
12,
203,
5411,
389,
1673,
8051,
54,
834,
480,
1758,
12,
20,
3631,
203,
5411,
315,
12316,
2866,
4515,
1240,
446,
1758,
364,
389,
1673,
8051... |
pragma solidity ^0.4.11;
// @title ICO Simple Contract
// @author Harsh Patel
contract SafeMath {
// @notice SafeMath multiply function
// @param a Variable 1
// @param b Variable 2
// @result { "" : "result of safe multiply"}
function mul(uint256 a, uint256 b) internal returns (uint2... | @notice Approves allowance for token holder @param _spender Address of token holder @param _value Amount of Token Transfer to approve | function approve(address _spender, uint256 _value)
external
returns (bool success) {
require(tokenState == true);
require(_spender != address(0));
require(msg.sender == owner);
allowed[msg.sender][_spender] = mul(_value, 100000000);
Approval(msg.sender, _spender, ... | 1,801,222 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1716,
685,
3324,
1699,
1359,
364,
1147,
10438,
632,
891,
389,
87,
1302,
264,
5267,
434,
1147,
10438,
632,
891,
389,
1132,
16811,
434,
3155,
12279,
358,
6617,
537,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6617,
537,
12,
2867,
389,
87,
1302,
264,
16,
2254,
5034,
389,
1132,
13,
203,
3639,
3903,
203,
565,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
12,
2316,
1119,
422,
638,
1769,
203,
3639,
2583,
24899,
87,
1302,
264... |
/* Copyright (C) 2020 NexusMutual.io
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distribu... | * @dev Provides information of a Claim when given its claim id. @param _claimId Claim Id./ | function getClaim(
uint _claimId
)
external
view
returns (
uint claimId,
uint coverId,
int8 vote,
uint status,
uint dateUpd,
uint state12Count
)
{
return (
_claimId,
allClaims[_claimId].coverId,
claimVote[_claimId],
claimsStatus[_claimId],
allClaims[_cla... | 2,578,298 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28805,
1779,
434,
279,
18381,
1347,
864,
2097,
7516,
612,
18,
632,
891,
389,
14784,
548,
18381,
3124,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
13674,
4581,
12,
203,
565,
2254,
389,
14784,
548,
203,
225,
262,
203,
225,
3903,
203,
225,
1476,
203,
225,
1135,
261,
203,
565,
2254,
7516,
548,
16,
203,
565,
2254,
5590,
548,
16,
203,
565,
509,
28,
12501,
16,
203,
... |
./full_match/5/0xF5f1648C7c93EDF0a5A82689eb4C793245BE481c/sources/contracts/test.sol | * Standard SafeMath, stripped down to just add/sub/mul/div/ | library SafeMath {
/ / /
/ /
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
... | 1,860,570 | [
1,
4625,
348,
7953,
560,
30,
380,
8263,
14060,
10477,
16,
13300,
2588,
358,
2537,
527,
19,
1717,
19,
16411,
19,
2892,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
12083,
14060,
10477,
288,
203,
203,
282,
342,
7734,
342,
565,
342,
19694,
203,
282,
342,
5397,
342,
4766,
7010,
203,
565,
445,
527,
12,
11890,
5034,
279,
16,
2254,
5034,
324,
13,
2713,
16618,
1135,
261,
11890,
5034,
13,
288,
203,... |
pragma solidity 0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) pub... | * @dev Pseudorandomly elect a currently active transcoder that charges a price per segment less than or equal to the max price per segment for a job Returns address of elected active transcoder and its price per segment @param _maxPricePerSegment Max price (in LPT base units) per segment of a stream @param _blockHash J... | function electActiveTranscoder(uint256 _maxPricePerSegment, bytes32 _blockHash, uint256 _round) external view returns (address) {
uint256 activeSetSize = activeTranscoderSet[_round].transcoders.length;
address[] memory availableTranscoders = new address[](activeSetSize);
uint256 numAvailable... | 2,107,278 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
453,
23715,
280,
2111,
715,
17375,
279,
4551,
2695,
906,
3396,
716,
1149,
2852,
279,
6205,
1534,
3267,
5242,
2353,
578,
3959,
358,
326,
943,
6205,
1534,
3267,
364,
279,
1719,
2860,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17375,
3896,
1429,
3396,
12,
11890,
5034,
389,
1896,
5147,
2173,
4131,
16,
1731,
1578,
389,
2629,
2310,
16,
2254,
5034,
389,
2260,
13,
3903,
1476,
1135,
261,
2867,
13,
288,
203,
3639,
2254,
5034,
2695,
694,
1225,
273,
2... |
./partial_match/1313161554/0x0098E8dc202EE41567AacC42BaC91D621df75538/sources/Test.sol | at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.when buywhen sell if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy | function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
require(!_blacklist[to] && !_blacklist[from],... | 16,933,772 | [
1,
4625,
348,
7953,
560,
30,
225,
622,
8037,
309,
326,
7412,
4624,
353,
3696,
16,
3387,
326,
1203,
11267,
364,
5405,
343,
345,
414,
353,
444,
1493,
4982,
8037,
18,
13723,
30143,
13723,
357,
80,
309,
1281,
2236,
11081,
358,
389,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
389,
13866,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
3849,
288,
203,
3639,
2583,
12,
2080,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
7412,
628,
... |
/**
*Submitted for verification at Etherscan.io on 2020-11-08
*/
interface PermittedAddressesInterface {
function permittedAddresses(address _address) external view returns(bool);
function addressesTypes(address _address) external view returns(string memory);
function isMatchTypes(address _address, uint256 addr... | * @dev Owner can set new stableCoinAddress @param _stableCoinAddress New stable address/ | function setStableCoinAddress(address _stableCoinAddress) external onlyOwner {
require(permittedAddresses.permittedAddresses(_stableCoinAddress));
stableCoinAddress = _stableCoinAddress;
}
| 7,325,911 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
16837,
848,
444,
394,
14114,
27055,
1887,
632,
891,
389,
15021,
27055,
1887,
565,
1166,
14114,
1758,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
30915,
27055,
1887,
12,
2867,
389,
15021,
27055,
1887,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
457,
7948,
7148,
18,
457,
7948,
7148,
24899,
15021,
27055,
1887,
10019,
203,
565,
14114,
27055,
1887,
273,
389,
15... |