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 |
|---|---|---|---|---|---|---|
./partial_match/1/0x6e84DC5ed39699DD82F068cc5c1b98b0C75b867d/sources/FarmMainRegularMinStake.sol | * @dev function used to safely approve ERC20 transfers. @param erc20TokenAddress address of the token to approve. @param to receiver of the approval. @param value amount to approve for./ | function _safeApprove(address erc20TokenAddress, address to, uint256 value) internal virtual {
if(value == 0) {
return;
}
bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).approve.selector, to, value));
require(returnData.... | 3,941,692 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
445,
1399,
358,
15303,
6617,
537,
4232,
39,
3462,
29375,
18,
632,
891,
6445,
71,
3462,
1345,
1887,
1758,
434,
326,
1147,
358,
6617,
537,
18,
632,
891,
358,
5971,
434,
326,
23556,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
4626,
12053,
537,
12,
2867,
6445,
71,
3462,
1345,
1887,
16,
1758,
358,
16,
2254,
5034,
460,
13,
2713,
5024,
288,
203,
3639,
309,
12,
1132,
422,
374,
13,
288,
203,
5411,
327,
31,
203,
3639,
289,
203,
3639,
1731,
... |
./partial_match/1/0x5297471c61AF38a47C66111585d34668c9EC467c/sources/MintableToken.sol | @return true if the transaction can buy tokens | function validPurchase() internal view returns (bool) {
bool nonZeroPurchase = msg.value != 0;
return nonZeroPurchase;
}
| 3,726,685 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2463,
638,
309,
326,
2492,
848,
30143,
2430,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
923,
23164,
1435,
2713,
1476,
1135,
261,
6430,
13,
288,
203,
3639,
1426,
1661,
7170,
23164,
273,
1234,
18,
1132,
480,
374,
31,
203,
3639,
327,
1661,
7170,
23164,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x56CA306708F7fdE60EF1C543189908c9e8a90C52/sources/contracts/dynamic-contracts/eip/ERC1155Upgradeable.sol | * @dev Destroys `amount` tokens of token type `id` from `from` Emits a {TransferSingle} event. Requirements: - `from` cannot be the zero address. - `from` must have at least `amount` tokens of token type `id`./ | function _burn(
address from,
uint256 id,
uint256 amount
) internal virtual {
ERC1155Storage.Data storage erc1155data = ERC1155Storage.erc1155Storage();
require(from != address(0), "ERC1155: burn from the zero address");
address operator = _msgSender();
... | 876,821 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
28510,
28599,
1375,
8949,
68,
2430,
434,
1147,
618,
1375,
350,
68,
628,
1375,
2080,
68,
7377,
1282,
279,
288,
5912,
5281,
97,
871,
18,
29076,
30,
300,
1375,
2080,
68,
2780,
506,
326,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
321,
12,
203,
3639,
1758,
628,
16,
203,
3639,
2254,
5034,
612,
16,
203,
3639,
2254,
5034,
3844,
203,
565,
262,
2713,
5024,
288,
203,
3639,
4232,
39,
2499,
2539,
3245,
18,
751,
2502,
6445,
71,
2499,
2539,
892,... |
pragma solidity 0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function t... | validate inputs get order validate order amount of pairA usable amount of pairB maker will receive token interfaces validate taker's deposit update state pay maker pay taker | function _takeOrder(uint256 id, uint256 amount, address taker) internal returns (bool) {
if (
id <= 0 ||
amount <= 0
) return false;
Order storage order = orders[id];
if (order.id != id) return false;
bool pairAisEther = Utils.isEther(order.pairA);
bool pairBisEther = Uti... | 14,029,591 | [
1,
4625,
348,
7953,
560,
30,
225,
1954,
4540,
336,
1353,
1954,
1353,
3844,
434,
3082,
37,
15603,
3844,
434,
3082,
38,
312,
6388,
903,
6798,
1147,
7349,
1954,
268,
6388,
1807,
443,
1724,
1089,
919,
8843,
312,
6388,
8843,
268,
6388,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
389,
22188,
2448,
12,
11890,
5034,
612,
16,
2254,
5034,
3844,
16,
1758,
268,
6388,
13,
2713,
1135,
261,
6430,
13,
288,
203,
565,
309,
261,
203,
1377,
612,
1648,
374,
747,
203,
1377,
3844,
1648,
374,
203,
565,
262,
327... |
pragma solidity ^0.4.21;
/// @title ERC-165 Standard Interface Detection
/// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md
interface ERC165 {
function supportsInterface(bytes4 interfaceID) external view returns (bool);
}
/**
* @title Ownable
* @dev The Ownable contract has an owner addr... | @notice Create a new GanToken with a id and attaches an owner @param tokenId The id of the token that's being created | function offerGanTokenForSaleToAddress(uint tokenId, address sendTo, uint256 minSalePriceInWei) external payable {
require(tokenIdToOwner[tokenId] == msg.sender);
ganTokenOfferedForSale[tokenId] = Offer(true, tokenId, msg.sender, minSalePriceInWei, sendTo);
emit GanTokenOfferedForSale(tokenId, minSalePri... | 7,691,943 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
1788,
279,
394,
611,
304,
1345,
598,
279,
612,
471,
31816,
392,
3410,
632,
891,
1147,
548,
1021,
612,
434,
326,
1147,
716,
18642,
5520,
31,
87,
3832,
2522,
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,
225,
445,
10067,
43,
304,
1345,
1290,
30746,
774,
1887,
12,
11890,
1147,
548,
16,
1758,
29091,
16,
2254,
5034,
1131,
30746,
5147,
382,
3218,
77,
13,
3903,
8843,
429,
288,
203,
565,
2583,
12,
2316,
28803,
5541,
63,
2316,
548,
65,
... |
./partial_match/3/0x662827F57c3910C05F5460a19d7634907D4f2362/sources/LDBToken.sol | * Allows the function to be performed by a maintainer or an owner./ | modifier onlyMaintainer() {
require(isOwner() || hasRole(msg.sender, ROLE_MAINTAINER));
_;
}
| 5,207,018 | [
1,
4625,
348,
7953,
560,
30,
380,
25619,
326,
445,
358,
506,
9591,
635,
279,
11566,
1521,
578,
392,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
9606,
1338,
49,
1598,
1521,
1435,
288,
203,
3639,
2583,
12,
291,
5541,
1435,
747,
28335,
12,
3576,
18,
15330,
16,
22005,
67,
5535,
3217,
16843,
10019,
203,
3639,
389,
31,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0xB40ea11f489300d0F4DCC9890Fc70b4444F003Eb/sources/DController.sol | * @notice Checks if the seizing of assets should be allowed to occur @param dTokenCollateral Asset which was used as collateral and will be seized @param dTokenBorrowed Asset which was borrowed by the borrower @param liquidator The address repaying the borrow and seizing the collateral @param borrower The address of th... | function seizeAllowed(
address dTokenCollateral,
address dTokenBorrowed,
address liquidator,
address borrower,
uint seizeTokens) external returns (uint) {
require(!seizeGuardianPaused, "seize is paused");
seizeTokens;
if (!markets[dTokenCollateral].i... | 3,428,424 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
13074,
309,
326,
695,
6894,
434,
7176,
1410,
506,
2935,
358,
3334,
632,
891,
302,
1345,
13535,
2045,
287,
10494,
1492,
1703,
1399,
487,
4508,
2045,
287,
471,
903,
506,
695,
1235,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
695,
554,
5042,
12,
203,
3639,
1758,
302,
1345,
13535,
2045,
287,
16,
203,
3639,
1758,
302,
1345,
38,
15318,
329,
16,
203,
3639,
1758,
4501,
26595,
639,
16,
203,
3639,
1758,
29759,
264,
16,
203,
3639,
2254,
695,
554,
... |
./full_match/1/0x75DE7846B7d9b6aE5554FE00D9Fba0C3fA1CDe4b/sources/protocol/contracts/libraries/SafeTransferLib.sol | @dev Sends all of ERC20 `token` from `from` to `to`. Reverts upon failure. The `from` account must have at least `amount` approved for the current contract to manage. @solidity memory-safe-assembly Store the function selector of `balanceOf(address)`. Store the function selector of `TransferFromFailed()`. Revert with (... | function safeTransferAllFrom(address token, address from, address to)
internal
returns (uint256 amount)
{
assembly {
mstore(0x0c, 0x70a08231000000000000000000000000)
if iszero(
staticcall(gas(), token, 0x1c, 0x24, 0x60, 0x20)
)... | 4,950,473 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2479,
87,
777,
434,
4232,
39,
3462,
1375,
2316,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
868,
31537,
12318,
5166,
18,
1021,
1375,
2080,
68,
2236,
1297,
1240,
622,
4520,
1375,
8949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4183,
5912,
1595,
1265,
12,
2867,
1147,
16,
1758,
628,
16,
1758,
358,
13,
203,
3639,
2713,
203,
3639,
1135,
261,
11890,
5034,
3844,
13,
203,
565,
288,
203,
3639,
19931,
288,
203,
203,
5411,
312,
2233,
12,
20,
92,
20,
... |
./full_match/1/0x85Ff72ef23C559881589Daa5C8Ed9698124eDE72/sources/lib/seaport-types/src/helpers/PointerLibraries.sol | @dev Reads the bytes26 at `rdPtr` in returndata. | function readBytes26(
ReturndataPointer rdPtr
) internal pure returns (bytes26 value) {
assembly ("memory-safe") {
returndatacopy(0, rdPtr, _OneWord)
value := mload(0)
}
}
| 8,451,854 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
29185,
326,
1731,
5558,
622,
1375,
13623,
5263,
68,
316,
327,
892,
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... | [
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,
25825,
5558,
12,
203,
3639,
2000,
892,
4926,
9437,
5263,
203,
565,
262,
2713,
16618,
1135,
261,
3890,
5558,
460,
13,
288,
203,
3639,
19931,
7566,
7858,
17,
4626,
7923,
288,
203,
5411,
327,
892,
3530,
12,
20,
16,
9437,
... |
./partial_match/42/0x47E36B04b4fB49a5b5786De76175f283c086962C/sources/Pynthetix.sol | Views Mutative Functions Inheritance Internal references ========== STATE VARIABLES ========== Available Pynths which can be used with the system ========== ADDRESS RESOLVER CONFIGURATION ========== ========== CONSTRUCTOR ========== ========== VIEWS ========== Note: use public visibility so that it can be invoked in a... | contract BasePynthetix is IERC20, ExternStateToken, MixinResolver, IPynthetix {
string public constant TOKEN_NAME = "Pynthetix Network Token";
string public constant TOKEN_SYMBOL = "PNX";
uint8 public constant DECIMALS = 18;
bytes32 public constant sUSD = "sUSD";
bytes32 private constant CONTRACT_... | 3,445,399 | [
1,
4625,
348,
7953,
560,
30,
225,
31117,
14138,
1535,
15486,
25953,
1359,
3186,
5351,
422,
1432,
7442,
22965,
55,
422,
1432,
15633,
453,
878,
451,
87,
1492,
848,
506,
1399,
598,
326,
2619,
422,
1432,
11689,
10203,
12915,
1741,
2204,
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,
16351,
3360,
52,
878,
451,
278,
697,
353,
467,
654,
39,
3462,
16,
1312,
798,
1119,
1345,
16,
490,
10131,
4301,
16,
2971,
878,
451,
278,
697,
288,
203,
203,
565,
533,
1071,
5381,
14275,
67,
1985,
273,
315,
52,
878,
451,
278,
6... |
./full_match/1/0x8761b55aF5A703d5855F1865dB8fE4DD18E94c53/sources/contracts/SyntheticNouns.sol | * @notice A distinct Uniform Resource Identifier (URI) for a given asset. @dev See {IERC721Metadata-tokenURI}./ | function tokenURI(uint256 _tokenId) public view override returns (string memory) {
require(_exists(_tokenId), "NounsToken: URI query for nonexistent token");
string memory nounId = _tokenId.toString();
string memory name = string(abi.encodePacked("Synthetic Noun ", nounId));
string ... | 3,108,254 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
432,
10217,
1351,
6854,
2591,
10333,
261,
3098,
13,
364,
279,
864,
3310,
18,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
2277,
17,
2316,
3098,
5496,
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,
1147,
3098,
12,
11890,
5034,
389,
2316,
548,
13,
1071,
1476,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2583,
24899,
1808,
24899,
2316,
548,
3631,
315,
50,
465,
87,
1345,
30,
3699,
843,
364,
1661,
19041,
1147,
886... |
pragma solidity ^0.4.18;
// File: contracts/SafeMath.sol
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) pure internal returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return ... | long term tokens can be set only once. | function transferShortTermTokens(address _wallet) public validAddress(_wallet) onlyOwner {
require(now > shortLock);
uint256 tokenBalance = Token(levAddress).balanceOf(disbursement);
if (longTermTokens == 0) {
longTermTokens = tokenBalance.mul(100 - shortShare).div(100);
}
require(tokenBalan... | 2,527,549 | [
1,
4625,
348,
7953,
560,
30,
225,
1525,
2481,
2430,
848,
506,
444,
1338,
3647,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
7412,
4897,
4065,
5157,
12,
2867,
389,
19177,
13,
1071,
923,
1887,
24899,
19177,
13,
1338,
5541,
288,
203,
565,
2583,
12,
3338,
405,
3025,
2531,
1769,
203,
565,
2254,
5034,
1147,
13937,
273,
3155,
12,
298,
90,
1887,
293... |
./full_match/4/0xE181aC5cd126DA1D9c5e0Ef9da24A5D82df27500/sources/contracts/statevariable.sol | price = 100; this is not permitted in solidity | contract Property{
uint public price = 100;
string constant public location ="London";
} | 12,364,151 | [
1,
4625,
348,
7953,
560,
30,
225,
6205,
273,
2130,
31,
333,
353,
486,
15498,
316,
18035,
560,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
4276,
95,
203,
565,
2254,
1071,
6205,
273,
2130,
31,
203,
565,
533,
5381,
1071,
2117,
273,
6,
48,
1434,
265,
14432,
7010,
203,
203,
203,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.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 progra... | Function that gets balance of a user | function getTraderBalance(address _user, string memory ticker) external view returns(uint) {
bytes32 _ticker = stringToBytes32(ticker);
return traderBalances[_user][_ticker];
}
| 7,274,400 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
716,
5571,
11013,
434,
279,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
336,
1609,
765,
13937,
12,
2867,
389,
1355,
16,
533,
3778,
14063,
13,
3903,
1476,
1135,
12,
11890,
13,
288,
203,
3639,
1731,
1578,
389,
88,
5448,
273,
14134,
2160,
1578,
12,
88,
5448,
1769,
203,
203,
3639,
327,
1284,
... |
./full_match/7700/0x6F16b6661F91e666946F8621896C4060Cd7fb196/sources/contracts/cedar/drop/CedarERC721Drop.sol | @dev See {IERC721Enumerable-totalSupply}. | function totalSupply() public view override(INFTSupplyV0, ERC721EnumerableUpgradeable) returns (uint256) {
return ERC721EnumerableUpgradeable.totalSupply();
}
| 4,655,213 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
3572,
25121,
17,
4963,
3088,
1283,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
2078,
3088,
1283,
1435,
1071,
1476,
3849,
12,
706,
4464,
3088,
1283,
58,
20,
16,
4232,
39,
27,
5340,
3572,
25121,
10784,
429,
13,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
4232,
39,
27,
5340,
3572,
25121,
10784,
... |
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721B... | * @dev ERC721 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug./ | abstract contract ERC721PausableUpgradeable is Initializable, ERC721Upgradeable, PausableUpgradeable {
function __ERC721Pausable_init() internal onlyInitializing {
__Context_init_unchained();
__ERC165_init_unchained();
__Pausable_init_unchained();
__ERC721Pausable_init_unchained();
... | 519,463 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4232,
39,
27,
5340,
1147,
598,
6790,
16665,
1147,
29375,
16,
312,
474,
310,
471,
18305,
310,
18,
19256,
364,
22456,
4123,
487,
5309,
310,
1284,
5489,
3180,
326,
679,
434,
392,
9873,
3879,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
17801,
6835,
4232,
39,
27,
5340,
16507,
16665,
10784,
429,
353,
10188,
6934,
16,
4232,
39,
27,
5340,
10784,
429,
16,
21800,
16665,
10784,
429,
288,
203,
203,
565,
445,
1001,
654,
39,
27,
5340,
16507,
16665,
67,
2738,
1435,
2713,
... |
pragma solidity ^0.6.1;
pragma experimental ABIEncoderV2;
import "./IPoTypes.sol";
contract SignatureChecker
{
address owner = msg.sender;
mapping(uint256 => bool) usedNonces;
//IPoTypes.Po po;
constructor() public payable {}
function getSignerAddressFromPoAndSignature(IPoType... | builds a prefixed hash to mimic the behavior of eth_sign. | function prefixed(bytes32 hash) internal pure returns (bytes32)
{
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
| 951,180 | [
1,
4625,
348,
7953,
560,
30,
225,
10736,
279,
12829,
1651,
358,
20369,
335,
326,
6885,
434,
13750,
67,
2977,
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... | [
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,
12829,
12,
3890,
1578,
1651,
13,
2713,
16618,
1135,
261,
3890,
1578,
13,
203,
565,
288,
203,
3639,
327,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
4420,
329,
31458,
92,
3657,
41,
18664,
379,
16724,
2350,
5581,
82,
1578... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.4;
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/utils/math/SafeMath.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@uniswap/v2-core/cont... | Contract implementation We will set a minimum amount of tokens to be swapped => 5M | contract gm is Context, IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _rOwned;
mapping(address => uint256) private _tOwned;
mapping(address => mapping(address => uint256)) private _allowances;
mapping(address => bool) private _isExcludedFromFe... | 6,450,875 | [
1,
4625,
348,
7953,
560,
30,
225,
13456,
4471,
1660,
903,
444,
279,
5224,
3844,
434,
2430,
358,
506,
7720,
1845,
516,
1381,
49,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
14125,
353,
1772,
16,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
225,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
225,
1450,
5267,
364,
1758,
31,
203,
203,
225,
2874,
12,
2867,
516,
2254,
5034,
13,
3238,
389,
86,
5... |
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "../token/ITokenContract.sol";
/**
* @dev Supports ERC20 tokens
* The escrow smart contract for the open bazaar trades in Ethereum
* The smart contract is desgined keeping in mind the current wallet interface of the OB-core
*... | * @dev Check whether given party has voted or not @param scriptHash script hash of the transaction @param party Address of the party whose vote has to be checked @return bool vote/ | function checkVote(
bytes32 scriptHash,
address party
)
external
view
returns (bool vote)
{
vote = transactions[scriptHash].voted[party];
}
| 2,478,297 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2073,
2856,
864,
18285,
711,
331,
16474,
578,
486,
632,
891,
2728,
2310,
2728,
1651,
434,
326,
2492,
632,
891,
18285,
5267,
434,
326,
18285,
8272,
12501,
711,
358,
506,
5950,
632,
2463,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
866,
19338,
12,
203,
3639,
1731,
1578,
2728,
2310,
16,
203,
3639,
1758,
18285,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
12501,
13,
203,
565,
288,
203,
3639,
12501,
273,
8938,
63,
4263... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2019-2021, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | @notice Utility function that converts the msg.sender viewed in the L2 to the address in the L1 that submitted a tx to the inbox @param l2address L2 address as viewed in msg.sender @return l1Address the address in the L1 that triggered the tx to L2 | function undoL1ToL2Alias(address l2address) internal pure returns (address l1Address) {
uint160 offset = uint160(0x1111000000000000000000000000000000001111);
l1Address = address(uint160(l2address) - offset);
}
| 10,135,215 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
20392,
13134,
445,
716,
7759,
326,
1234,
18,
15330,
1476,
329,
316,
326,
511,
22,
358,
326,
1758,
316,
326,
511,
21,
716,
9638,
279,
2229,
358,
326,
27271,
632,
891,
328,
22,
2867,
511,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
15436,
48,
21,
774,
48,
22,
2936,
12,
2867,
328,
22,
2867,
13,
2713,
16618,
1135,
261,
2867,
328,
21,
1887,
13,
288,
203,
3639,
2254,
16874,
1384,
273,
2254,
16874,
12,
20,
92,
23680,
12648,
12648,
12648,
12648,
23680,
... |
./partial_match/3/0x2fB1eFFcA1a1C691959Fd4603e091B1736Ca2b4f/sources/SPLASH.sol | receive eth from uniswap swap Locks liquidity to contract address and sends it to Uniswap Roueter | abstract contract ERC20TransferLiquidityLock is ERC20, Ownable {
using SafeMath for uint256;
event LockLiquidity(uint256 tokenAmount, uint256 ethAmount);
address public uniswapV2Router;
address public uniswapV2Pair;
pragma solidity ^0.7.0;
receive () external payable {}
function lockLiquidit... | 5,203,628 | [
1,
4625,
348,
7953,
560,
30,
225,
6798,
13750,
628,
640,
291,
91,
438,
7720,
3488,
87,
4501,
372,
24237,
358,
6835,
1758,
471,
9573,
518,
358,
1351,
291,
91,
438,
534,
1395,
847,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
17801,
6835,
4232,
39,
3462,
5912,
48,
18988,
24237,
2531,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
871,
3488,
48,
18988,
24237,
12,
11890,
5034,
1147,
6275,
16,
... |
// SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;
import "../../utils/AddressUpgradeable.sol";
/**
* @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... | * @dev Set swap path of assets @param _assets asset array @param _paths path array/ | function setSwapPaths(address[] calldata _assets, SwapPath[] calldata _paths)
external
isAuthorized(OLib.STRATEGIST_ROLE)
{
require(_assets.length == _paths.length, "Invalid Inputs");
for (uint256 i = 0; i < _assets.length; i++) {
swapPaths[_assets[i]] = _paths[i];
}
}
| 14,793,179 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1000,
7720,
589,
434,
7176,
632,
891,
389,
9971,
3310,
526,
632,
891,
389,
4481,
589,
526,
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,
225,
445,
444,
12521,
4466,
12,
2867,
8526,
745,
892,
389,
9971,
16,
12738,
743,
8526,
745,
892,
389,
4481,
13,
203,
565,
3903,
203,
565,
353,
15341,
12,
1741,
495,
18,
3902,
1777,
43,
5511,
67,
16256,
13,
203,
225,
288,
203,
... |
./partial_match/1/0x4695c7AC68eb86c1079c7d7D53Af2F42DB8a6799/sources/FaceterToken.sol | * Prforms allowance transfer of asset balance between holders adding specified comment. Resolves asset implementation contract for the caller and forwards there arguments along with the caller address. @param _from holder address to take from. @param _to holder address to give to. @param _value amount to transfer. @par... | function transferFromWithReference(address _from, address _to, uint _value, string _reference) returns(bool) {
return _getAsset()._performTransferFromWithReference(_from, _to, _value, _reference, msg.sender);
}
| 2,819,229 | [
1,
4625,
348,
7953,
560,
30,
380,
2301,
9741,
1699,
1359,
7412,
434,
3310,
11013,
3086,
366,
4665,
6534,
1269,
2879,
18,
26353,
3324,
3310,
4471,
6835,
364,
326,
4894,
471,
24578,
1915,
1775,
7563,
598,
326,
4894,
1758,
18,
632,
891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
1265,
1190,
2404,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
389,
1132,
16,
533,
389,
6180,
13,
1135,
12,
6430,
13,
288,
203,
3639,
327,
389,
588,
6672,
1435,
6315,
16092,
5912,
1265,
1190,
2404,
24899,
... |
//Address: 0x89B3EfA63648B65bc2999BbB4f82bfEd5F83F178
//Contract name: BCFLeague
//Balance: 0 Ether
//Verification Date: 3/17/2018
//Transacion Count: 25
// CODE STARTS HERE
contract BCFBaseCompetition {
address public owner;
address public referee;
bool public paused = false;
modifier onlyOwner() ... | 0 = possession, 1 = chance, 2 = shooting
| uint[] memory atkAttributes = new uint[](3); | 12,782,322 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
273,
949,
3184,
16,
404,
273,
17920,
16,
576,
273,
699,
1632,
310,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8526,
3778,
622,
79,
2498,
273,
394,
2254,
8526,
12,
23,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.24;
import "contracts/Storage.sol";
contract MultiSignAdmin is Pausable, Administratable, UserContract {
/*
* Constants
*/
uint256 constant public maxBankCount = 50;
/*
* events
*/
event BankAddition(address indexed bank);
event BankRemoval(address indexed bank);
event ... | @dev Returns list of banks. @return List of bank addresses. | function getAlliance()
public
view
returns (address[])
{
return alliance;
}
| 5,414,989 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
2860,
666,
434,
11218,
87,
18,
632,
2463,
987,
434,
11218,
6138,
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,
... | [
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,
225,
445,
336,
1067,
549,
1359,
1435,
203,
565,
1071,
203,
565,
1476,
203,
565,
1135,
261,
2867,
63,
5717,
203,
225,
288,
203,
565,
327,
524,
549,
1359,
31,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.24 <0.5.0;
import "../open-zeppelin/SafeMath.sol";
/** @title MultiSignature, MultiOwner Controls */
contract MultiSig {
using SafeMath32 for uint32;
struct Address {
bytes32 id;
bool restricted;
}
struct Authority {
mapping (bytes4 => bool) signatures;
mapping (bytes32 => address... | dev: count below threshold
| require (a.addressCount >= a.multiSigThreshold); | 12,963,636 | [
1,
4625,
348,
7953,
560,
30,
225,
4461,
30,
1056,
5712,
5573,
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,
202,
202,
6528,
261,
69,
18,
2867,
1380,
1545,
279,
18,
7027,
8267,
7614,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/3/0xc62074e6d4095E84d6eC4c673dd8AEACFAEAfd6A/sources/browser/contracts/Zero.sol | bool fl = true; | function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] memory path,
address to,
uint deadline,
bool fl
) public {
require(path.length >= 2, 'Z|UniswapV2Library: INVALID_PATH');
address resultTo =... | 14,127,226 | [
1,
4625,
348,
7953,
560,
30,
540,
1426,
1183,
273,
638,
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,
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,
7720,
14332,
5157,
1290,
5157,
6289,
310,
14667,
1398,
5912,
5157,
12,
203,
3639,
2254,
3844,
382,
16,
203,
3639,
2254,
3844,
1182,
2930,
16,
203,
3639,
1758,
8526,
3778,
589,
16,
203,
3639,
1758,
358,
16,
203,
3639,
22... |
./partial_match/1/0x91AaD5f7fdCc2F5c6b4c819699Dd47d8EE61aBdC/sources/SCT.sol | * @title SCT Token Contract/ | contract SCT is ERC20Capped, Ownable, Pausable, Blacklist {
using SafeMath for uint256;
constructor(uint _initialSupply, uint _hardCap) ERC20("Smart Crowd Token", "SCT") ERC20Capped(_hardCap.mul(10 ** 18)) public {
mint(msg.sender, _initialSupply.mul(10 ** 18));
}
modifier onlyPayloadSize(... | 9,387,874 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2649,
348,
1268,
3155,
13456,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
348,
1268,
353,
4232,
39,
3462,
4664,
1845,
16,
14223,
6914,
16,
21800,
16665,
16,
22467,
1098,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
3885,
12,
11890,
389,
6769,
3088,
1283,
16,
2254,
389,
... |
./full_match/97/0xDB2949F540eDbCd7FdEc8Fe64cA935CBD4A0c9AA/sources/contracts/protocol/configuration/PoolAddressesProvider.sol | @inheritdoc IPoolAddressesProvider | function setPoolDataProvider(address newDataProvider) external override onlyOwner {
address oldDataProvider = _addresses[DATA_PROVIDER];
_addresses[DATA_PROVIDER] = newDataProvider;
emit PoolDataProviderUpdated(oldDataProvider, newDataProvider);
}
| 3,286,004 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
2864,
7148,
2249,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
2864,
20757,
12,
2867,
16026,
2249,
13,
3903,
3849,
1338,
5541,
288,
203,
565,
1758,
1592,
20757,
273,
389,
13277,
63,
4883,
67,
26413,
15533,
203,
565,
389,
13277,
63,
4883,
67,
26413,
65,
273,
16026,
2249,
31,
20... |
./full_match/5/0x1cD3522515BA87e190fDa01A636e7F6D59601fFF/sources/contracts/ETH/PresaleV1.sol | * @dev To remove wert contract addresses to whitelist @param _addressesToRemoveFromWhitelist addresses of the contracts/ | function removeFromWhitelistForWERT(
address[] calldata _addressesToRemoveFromWhitelist
) external onlyOwner {
for (uint256 i = 0; i < _addressesToRemoveFromWhitelist.length; i++) {
wertWhitelisted[_addressesToRemoveFromWhitelist[i]] = false;
}
}
| 1,932,315 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2974,
1206,
341,
1051,
6835,
6138,
358,
10734,
632,
891,
389,
13277,
12765,
1265,
18927,
6138,
434,
326,
20092,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22386,
18927,
1290,
59,
11539,
12,
203,
3639,
1758,
8526,
745,
892,
389,
13277,
12765,
1265,
18927,
203,
565,
262,
3903,
1338,
5541,
288,
203,
3639,
364,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
13277,
12765,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^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 the one... | @title tBTC v1 Deposit contract interface @notice This is an interface with just a few function signatures of a main Deposit contract from tBTC. tBTC deposit contract functions declared in this interface are used by RiskManagerV1 contract to interact with tBTC v1 deposits. For more information about tBT... | interface IDeposit {
function withdrawFunds() external;
function purchaseSignerBondsAtAuction() external;
function currentState() external view returns (uint256);
function lotSizeTbtc() external view returns (uint256);
function withdrawableAmount() external view returns (uint256);
function ... | 11,901,934 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
268,
38,
15988,
331,
21,
4019,
538,
305,
6835,
1560,
632,
20392,
1220,
353,
392,
1560,
598,
2537,
279,
11315,
445,
14862,
434,
279,
2774,
1377,
4019,
538,
305,
6835,
628,
268,
38,
15988,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
758,
1724,
288,
203,
565,
445,
598,
9446,
42,
19156,
1435,
3903,
31,
203,
203,
565,
445,
23701,
15647,
26090,
861,
37,
4062,
1435,
3903,
31,
203,
203,
565,
445,
17773,
1435,
3903,
1476,
1135,
261,
11890,
5034,
1769,
20... |
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
interface IOracle {
function value() external view returns (int256, bool);
function update() external returns (bool);
}
/// @notice Emitted when paused
error Pausable__whenNotPaused_paused();
/// @notice Emitted when not paused
error Pausable__wh... | Oracle parameters Chainlink specific parameter | contract ChainlinkValueProvider is Oracle, Convert {
uint8 public immutable underlierDecimals;
address public chainlinkAggregatorAddress;
constructor(
uint256 timeUpdateWindow_,
address chainlinkAggregatorAddress_
) Oracle(timeUpdateWindow_) {
chainlinkAggregatorAddress = chainl... | 13,735,926 | [
1,
4625,
348,
7953,
560,
30,
225,
28544,
1472,
7824,
1232,
2923,
1569,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
7824,
1232,
620,
2249,
353,
28544,
16,
4037,
288,
203,
565,
2254,
28,
1071,
11732,
3613,
9800,
31809,
31,
203,
565,
1758,
1071,
2687,
1232,
17711,
1887,
31,
203,
203,
565,
3885,
12,
203,
3639,
2254,
5034,
813,
1891,
3829,
... |
pragma solidity ^0.4.20;
// File: contracts/ERC20Token.sol
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
uint2... | timestamp when Cycle is sealed
| uint public sealTimestamp; | 6,476,181 | [
1,
4625,
348,
7953,
560,
30,
225,
2858,
1347,
385,
3409,
353,
695,
18931,
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,
2254,
1071,
28144,
4921,
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,... |
./partial_match/137/0xd25CcEA4F08042A931df81501FF34ce3E1D7E251/sources/TokenHolder.sol | * Creates a new vault with and initial deposit and maximum duration @param amount vault deposit @param duration vault interest accumulation time/ | function Deposit(uint256 amount, uint256 duration) public {
require(active == true, "not active");
require(
amount >= minDeposit && amount <= maxDeposit,
"not within limits"
);
require(
_token.transferFrom(_msgSender(), address(this), amount),
... | 3,517,729 | [
1,
4625,
348,
7953,
560,
30,
380,
10210,
279,
394,
9229,
598,
471,
2172,
443,
1724,
471,
4207,
3734,
632,
891,
3844,
9229,
443,
1724,
632,
891,
3734,
9229,
16513,
8822,
367,
813,
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,
0,
0,
0,
0,
0,
0,
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,
4019,
538,
305,
12,
11890,
5034,
3844,
16,
2254,
5034,
3734,
13,
1071,
288,
203,
3639,
2583,
12,
3535,
422,
638,
16,
315,
902,
2695,
8863,
203,
3639,
2583,
12,
203,
5411,
3844,
1545,
1131,
758,
1724,
597,
3844,
1648,
... |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity =0.7.6;
pragma abicoder v2;
// interface
import {IController} from "../interfaces/IController.sol";
import {IWPowerPerp} from "../interfaces/IWPowerPerp.sol";
import {IOracle} from "../interfaces/IOracle.sol";
import {IWETH9} from "../interfaces/IWETH9.sol";
im... | @dev ETH:WSqueeth uniswap pool | address public immutable ethWSqueethPool;
| 1,220,038 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
512,
2455,
30,
2651,
1857,
546,
640,
291,
91,
438,
2845,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1758,
1071,
11732,
13750,
2651,
1857,
546,
2864,
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,... |
./partial_match/1/0x1E7407b5f0c3ec55cFEEb0B19Dfb006e32F8EBB0/sources/TOW3.sol | * @dev See {IERC721-transferFrom}./solhint-disable-next-line max-line-length | function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
require(_isApprovedOrOwner(msg.sender, tokenId), "ERC721: caller is not token owner nor approved");
_transfer(from, to, tokenId);
}
| 2,838,406 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
27,
5340,
17,
13866,
1265,
5496,
19,
18281,
11317,
17,
8394,
17,
4285,
17,
1369,
943,
17,
1369,
17,
2469,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
203,
3639,
1758,
628,
16,
203,
3639,
1758,
358,
16,
203,
3639,
2254,
5034,
1147,
548,
203,
565,
262,
1071,
5024,
3849,
288,
203,
3639,
2583,
24899,
291,
31639,
1162,
5541,
12,
3576,
18,
15330,
16,
1147,
... |
pragma solidity ^0.4.17;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
... | The contract can be initialized with a number of tokens All the tokens are deposited to the owner address @param _balance Initial supply of the contract @param _name Token Name @param _symbol Token symbol @param _decimals Token decimals | contract INRT is Pausable, StandardToken, BlackList {
string public name;
string public symbol;
uint public decimals;
address public upgradedAddress;
bool public deprecated;
function INRT(uint _initialSupply, string _name, string _symbol, uint _decimals) public {
_totalSupply = _initia... | 2,347,518 | [
1,
4625,
348,
7953,
560,
30,
282,
1021,
6835,
848,
506,
6454,
598,
279,
1300,
434,
2430,
225,
4826,
326,
2430,
854,
443,
1724,
329,
358,
326,
3410,
1758,
632,
891,
389,
12296,
10188,
14467,
434,
326,
6835,
632,
891,
389,
529,
3155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16351,
2120,
12185,
353,
21800,
16665,
16,
8263,
1345,
16,
22467,
682,
288,
203,
203,
565,
533,
1071,
508,
31,
203,
565,
533,
1071,
3273,
31,
203,
565,
2254,
1071,
15105,
31,
203,
565,
1758,
1071,
31049,
1887,
31,
203,
565,
1426,... |
./full_match/4/0xDC750c9a411e3BfA0fB0Dd1248251D5831321352/sources/cache/solpp-generated-contracts/ZkSync.sol | incorrect block commitment in proof
| require(_proof.commitments[i] & mask == uint256(_committedBlocks[i].commitment) & mask, "pbl3"); | 749,384 | [
1,
4625,
348,
7953,
560,
30,
225,
11332,
1203,
23274,
316,
14601,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
24899,
24207,
18,
7371,
1346,
63,
77,
65,
473,
3066,
422,
2254,
5034,
24899,
7371,
2344,
6450,
63,
77,
8009,
7371,
475,
13,
473,
3066,
16,
315,
84,
3083,
23,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/1/0xe2DD2571A3feBf7c924dfE1351f55174785d75DE/sources/OptionsPool.sol | * @dev retrieve given `optionsId` option's information. @param optionsId retrieved option's id./ | function getOptionsById(uint256 optionsId)public view returns(uint256,address,uint8,uint32,uint256,uint256,uint256){
OptionsInfo memory info = _getOptionsById(optionsId);
return (optionsId,info.owner,info.optType,info.underlying,info.createTime+info.expiration,info.strikePrice,info.amount);
}
| 15,737,039 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
4614,
864,
1375,
2116,
548,
68,
1456,
1807,
1779,
18,
632,
891,
702,
548,
10295,
1456,
1807,
612,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9849,
5132,
12,
11890,
5034,
702,
548,
13,
482,
1476,
1135,
12,
11890,
5034,
16,
2867,
16,
11890,
28,
16,
11890,
1578,
16,
11890,
5034,
16,
11890,
5034,
16,
11890,
5034,
15329,
203,
3639,
5087,
966,
3778,
1123,
273,
389... |
pragma solidity ^0.4.11;
import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol";
import "../contracts/StandardICOAuction.sol";
import "../contracts/ICOAuctionTestContract.sol";
contract TestICOAuction{
event Number(uint n);
uint public initialBalance = 200000 ether;
ICOAuctionTestContract instance;... | All tokens are in the same testing account | Assert.isTrue(bResult,"The fund tokens function should return true");
Assert.equal(cap, 0, "The raise cap should be depleted after funding tokens");
}
function testWithdrawTokens(){
uint256 tokensAvail = instance.withdrawTokensMap(this);
uint256 beforeBalance = testToken.balanceOf(this) - tokensAv... | 14,107,612 | [
1,
4625,
348,
7953,
560,
30,
4826,
2430,
854,
316,
326,
1967,
7769,
2236,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5452,
18,
291,
5510,
12,
70,
1253,
10837,
1986,
284,
1074,
2430,
445,
1410,
327,
638,
8863,
203,
565,
5452,
18,
9729,
12,
5909,
16,
374,
16,
315,
1986,
1002,
3523,
1410,
506,
443,
1469,
329,
1839,
22058,
2430,
8863,
203,
2... |
./partial_match/1/0xd900D5dA53059DfAF6e54a559503C73F14Ee4237/sources/HashedTimelockERC20.sol | locked UNTIL this time. Unit depends on consensus algorithm. PoA, PoA and IBFT all use seconds. But Quorum Raft uses nano-seconds | struct LockContract {
address sender;
address receiver;
address tokenContract;
uint256 amount;
bytes32 hashlock;
uint256 timelock;
bool withdrawn;
bool refunded;
bytes32 preimage;
}
| 2,820,178 | [
1,
4625,
348,
7953,
560,
30,
225,
8586,
587,
1784,
2627,
333,
813,
18,
8380,
10935,
603,
18318,
4886,
18,
453,
83,
37,
16,
453,
83,
37,
471,
23450,
4464,
777,
999,
3974,
18,
12484,
4783,
16105,
19434,
4692,
15110,
17,
7572,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
1958,
3488,
8924,
288,
203,
3639,
1758,
5793,
31,
203,
3639,
1758,
5971,
31,
203,
3639,
1758,
1147,
8924,
31,
203,
3639,
2254,
5034,
3844,
31,
203,
3639,
1731,
1578,
1651,
739,
31,
203,
3639,
2254,
5034,
1658,
292,
975,
31,
... |
pragma solidity ^0.5.0;
import "@openzeppelin/contracts-ethereum-package/contracts/math/Math.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/uti... | calculate the minting fee; the fee is collected from the minted tokens adjust the fee by adding +1 to round the fee up and prevent dust manipulations | uint256 fee = _amount.mul(getFMintFee4dec()).div(fMintFeeDigitsCorrection).add(1);
| 6,391,745 | [
1,
4625,
348,
7953,
560,
30,
225,
4604,
326,
312,
474,
310,
14036,
31,
326,
14036,
353,
12230,
628,
326,
312,
474,
329,
2430,
5765,
326,
14036,
635,
6534,
397,
21,
358,
3643,
326,
14036,
731,
471,
5309,
302,
641,
13441,
21011,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
14036,
273,
389,
8949,
18,
16411,
12,
588,
42,
49,
474,
14667,
24,
4924,
1435,
2934,
2892,
12,
74,
49,
474,
14667,
9537,
20884,
2934,
1289,
12,
21,
1769,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/137/0xf6fe664d0D61297fBfBb829A1FF77286b887a9Fd/sources/project:/contracts/TxocoCalPadri.sol | * @notice Mints a new NFT to the specified address. Members can only have one. @param _to The address to mint the NFT to./ | function mintNFT(address _to) external onlyAdministrator {
require(balanceOf(_to, 0) == 0, "Address already owns the NFT");
_mint(_to, 0, 1, "");
emit NFTMinted(_to);
}
| 3,738,013 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
490,
28142,
279,
394,
423,
4464,
358,
326,
1269,
1758,
18,
225,
17524,
848,
1338,
1240,
1245,
18,
632,
891,
389,
869,
1021,
1758,
358,
312,
474,
326,
423,
4464,
358,
18,
19,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
50,
4464,
12,
2867,
389,
869,
13,
3903,
1338,
4446,
14207,
288,
203,
3639,
2583,
12,
12296,
951,
24899,
869,
16,
374,
13,
422,
374,
16,
315,
1887,
1818,
29065,
326,
423,
4464,
8863,
203,
3639,
389,
81,
474,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b ? a : b;
}... | rewardsToken3 => lastUpdateTime3
| mapping(IERC20 => uint) public lastUpdateTime3; | 6,471,184 | [
1,
4625,
348,
7953,
560,
30,
225,
283,
6397,
1345,
23,
516,
1142,
1891,
950,
23,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
45,
654,
39,
3462,
516,
2254,
13,
1071,
1142,
1891,
950,
23,
31,
21394,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
/**
*Submitted for verification at Etherscan.io on 2020-03-29
*/
/**
*Submitted for verification at Etherscan.io on 2019-10-18
*/
pragma solidity ^0.5.5;
library strings {
struct slice {
uint _len;
uint _ptr;
}
function memcpy(uint dest, uint src, uint len) private pure {
// Co... | inject UNINIT LOCAL/STATE VAR
| uint256 batchIndex ; | 13,059,408 | [
1,
4625,
348,
7953,
560,
30,
4590,
5019,
12919,
15234,
19,
7998,
8350,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
2581,
1016,
274,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.25;
/**
* https://12daily.club
* Easy Investment Contract
* - GAIN 12% PER 24 HOURS (every 5900 blocks)
* - NO COMMISSION on your investment (every ether stays on contract's balance)
* - NO FEES are collected by the owner, in fact, there is no owner at all (just look at the code)
*
*... | if sender (aka YOU) is invested more than 0 ether calculate profit amount as such: amount = (amount invested) * 12% * (blocks since last transaction) / 5900 5900 is an average block count per day produced by Ethereum blockchain send calculated amount of ether directly to sender (aka YOU) | function () external payable {
if (invested[msg.sender] != 0) {
uint256 amount = invested[msg.sender] * 12 / 100 * (block.number - atBlock[msg.sender]) / 5900;
msg.sender.transfer(amount);
}
invested[msg.sender] += msg.value;
}
| 10,631,634 | [
1,
4625,
348,
7953,
560,
30,
225,
309,
5793,
261,
581,
69,
1624,
26556,
13,
353,
2198,
3149,
1898,
2353,
374,
225,
2437,
4604,
450,
7216,
3844,
487,
4123,
30,
3844,
273,
261,
8949,
2198,
3149,
13,
380,
2593,
9,
380,
261,
7996,
324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1832,
3903,
8843,
429,
288,
203,
3639,
309,
261,
5768,
3149,
63,
3576,
18,
15330,
65,
480,
374,
13,
288,
203,
5411,
2254,
5034,
3844,
273,
2198,
3149,
63,
3576,
18,
15330,
65,
380,
2593,
342,
2130,
380,
261,
2629,
18,... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.25 <0.8.0;
pragma experimental ABIEncoderV2;
import { IVault } from "./IVault.sol";
import { VaultBase } from "./VaultBase.sol";
import { IFujiAdmin } from "../IFujiAdmin.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
im... | * @dev Returns the scaled total supply of the token ID. Represents sum(token ID Principal /index) @param _assetID: ERC1155 ID of the asset which state will be updated./ | function scaledTotalSupply(uint256 _assetID) public view virtual returns (uint256) {
return super.totalSupply(_assetID);
}
| 1,311,714 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
326,
12304,
2078,
14467,
434,
326,
1147,
1599,
18,
868,
6706,
87,
2142,
12,
2316,
1599,
17010,
342,
1615,
13,
632,
891,
389,
9406,
734,
30,
4232,
39,
2499,
2539,
1599,
434,
326,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
12304,
5269,
3088,
1283,
12,
11890,
5034,
389,
9406,
734,
13,
1071,
1476,
5024,
1135,
261,
11890,
5034,
13,
288,
203,
565,
327,
2240,
18,
4963,
3088,
1283,
24899,
9406,
734,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* ----------------------------------------------------------------------------
*
* Deployed to : 0x28CEE43E00F79435804C11b49F774c193659D846
* Symbol : PDOG
* Name : Polkadog
* Total supply: 100,000,000
* Decimals : 18
*
* 2% fee auto add to the liq... | Create a uniswap pair for this new token set the rest of the contract variables include in fee | constructor () {
_rOwned[_msgSender()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(UNISWAPV2ROUTER);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
uniswapV2Router = _uni... | 312,924 | [
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,
2341,
316,
14036,
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,
3885,
1832,
288,
203,
3639,
389,
86,
5460,
329,
63,
67,
3576,
12021,
1435,
65,
273,
389,
86,
5269,
31,
203,
540,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
98... |
./full_match/40/0x8CFA3e3b2d869F5120Cc0aF1da5780e152Dc3b7f/sources/contracts/ApeUsdtUsdc.sol | Converts wTLOS to both sides of the LP token & builds the liquidity pair | function addLiquidity() internal {
uint256 wrappedHalf = IERC20(wrapped).balanceOf(address(this)) / 2;
IApeRouter(router).swapExactTokensForTokens(wrappedHalf, 0, wrappedToUsdtPath, address(this), block.timestamp);
IApeRouter(router).swapExactTokensForTokens(wrappedHalf, 0, wrappedT... | 9,541,732 | [
1,
4625,
348,
7953,
560,
30,
225,
20377,
341,
56,
1502,
55,
358,
3937,
22423,
434,
326,
511,
52,
1147,
473,
10736,
326,
4501,
372,
24237,
3082,
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,
527,
48,
18988,
24237,
1435,
2713,
288,
203,
3639,
2254,
5034,
5805,
16168,
273,
467,
654,
39,
3462,
12,
18704,
2934,
12296,
951,
12,
2867,
12,
2211,
3719,
342,
576,
31,
203,
540,
203,
3639,
467,
37,
347,
8259,
12,
10... |
./full_match/1/0xe641FF9BdEDfEFf96CCCe4c374E70b7323434E28/sources/contracts/DynaCubefi.sol | Create pair Store the pair Add liquidity | function addLiquidity() external onlyOwner {
require(_uniswapV2Pair == address(0), "Pair already created");
_uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
_setAutomatedMarketMakerPair(address(_uniswapV2... | 9,752,786 | [
1,
4625,
348,
7953,
560,
30,
225,
1788,
3082,
4994,
326,
3082,
1436,
4501,
372,
24237,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
527,
48,
18988,
24237,
1435,
3903,
1338,
5541,
288,
540,
203,
3639,
2583,
24899,
318,
291,
91,
438,
58,
22,
4154,
422,
1758,
12,
20,
3631,
315,
4154,
1818,
2522,
8863,
203,
203,
3639,
389,
318,
291,
91,
438,
58,
22,
... |
pragma solidity ^0.5.13;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol";
import "solidity-rlp/contracts/RLPReader.sol";
import "./TxInclusionVerifier.sol";
contract Protocol2 is ERC20 {
using RLPReader for RLPReader.RLPItem;
using RLPReade... | addresses of the token contracts living on other blockchains
| mapping(address => bool) participatingTokenContracts; | 2,475,561 | [
1,
4625,
348,
7953,
560,
30,
225,
6138,
434,
326,
1147,
20092,
328,
9288,
603,
1308,
1203,
23060,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
2867,
516,
1426,
13,
30891,
1776,
1345,
20723,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
./partial_match/97/0x69ddb8E9290ec58f286d987D255a95E9Febf7FE7/sources/xToken.sol | * @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec... | contract xToken is IERC20, Ownable {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply = 1000000e18;
string private _name;
string priva... | 11,374,586 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
25379,
434,
326,
288,
45,
654,
39,
3462,
97,
1560,
18,
1220,
4471,
353,
279,
1600,
669,
335,
358,
326,
4031,
2430,
854,
2522,
18,
1220,
4696,
716,
279,
14467,
12860,
711,
358,
506,
3096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
619,
1345,
353,
467,
654,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
5267,
364,
1758,
31,
203,
203,
565,
2874,
261,
2867,
516,
2254,
5034,
13,
3238,
389,
70,
26488,
... |
pragma solidity 0.4.25;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(u... | * Transfer tokens from other address Send `_oshiAmount` to `_to` in behalf of `_from` @param _from The address of the sender @param _to The address of the recipient @param _oshiAmount the amount or oshi to send/ | function transferFrom(address _from, address _to, uint256 _oshiAmount) public returns (bool success) {
require(_oshiAmount <= balanceOf[_from]);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_oshiAmount);
require(_oshiAmount > 0 && _from != _to);
_transfer(_from, _to,... | 5,890,531 | [
1,
4625,
348,
7953,
560,
30,
380,
12279,
2430,
628,
1308,
1758,
2479,
1375,
67,
538,
12266,
6275,
68,
225,
358,
1375,
67,
869,
68,
316,
12433,
6186,
434,
1375,
67,
2080,
68,
632,
891,
389,
2080,
1021,
1758,
434,
326,
5793,
632,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
377,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
538,
12266,
6275,
13,
1071,
1135,
261,
6430,
2216,
13,
288,
203,
3639,
2583,
24899,
538,
12266,
6275,
1648,
11013,
951,
63,
67,
2080,
19226,
203,... |
./partial_match/1/0xb1d02a97263Da9eC6a6336D79c2D6BE2dE5E2FBC/sources/AtheOS.sol | exclude from paying fees or having max transaction amount | constructor() ERC20("AtheOS", "AtheOS") {
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Router = _uniswapV2Router;
uniswapV2Pair = IUni... | 2,859,929 | [
1,
4625,
348,
7953,
560,
30,
225,
4433,
628,
8843,
310,
1656,
281,
578,
7999,
943,
2492,
3844,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
4232,
39,
3462,
2932,
37,
5787,
4618,
3113,
315,
37,
5787,
4618,
7923,
288,
203,
3639,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
389,
318,
291,
91,
438,
58,
22,
8259,
273,
467,
984,
291,
91,
438,
58,
22,
... |
./partial_match/1/0x162e4A16E62b47Dd638Db2bde19CF9C4FA8f23cc/sources/FlipCoin.sol | Function to get the referral code for a user | function getReferralCode(
address user
) external view returns (string memory) {
return userToReferralCode[user];
}
| 4,097,876 | [
1,
4625,
348,
7953,
560,
30,
225,
4284,
358,
336,
326,
1278,
29084,
981,
364,
279,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
17404,
370,
23093,
12,
203,
3639,
1758,
729,
203,
565,
262,
3903,
1476,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
729,
774,
1957,
370,
23093,
63,
1355,
15533,
203,
565,
289,
203,
203,
203,
203,
203,
2,
-100,
-10... |
pragma solidity ^0.4.24;
contract dbond {
address owner;
struct blockinfo {
uint256 outstanding; // remaining debt at block
uint256 dividend; // % dividend users can claim
uint256 value; // actual ether value at block
uint256 index; // used in frontend for asy... | remaining debt at block
| uint256 outstanding; | 1,764,401 | [
1,
4625,
348,
7953,
560,
30,
225,
4463,
18202,
88,
622,
1203,
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,
202,
202,
11890,
5034,
20974,
31,
6862,
9506,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.3;
import "./EtherEmpireTypes.sol";
import "./EtherEmpireToken.sol";
// import "@uniswap/v2-core/contracts/UniswapV2Pair.sol";
contract EtherEmpireStorage {
// World
mapping (uint32 => EtherEmpireTypes.Entity) public allEntities;
uint16 public ... | In integer unit, of smallest decimal fungible
| mapping (uint64 => uint32) tokensBurntAtBlock; | 2,486,950 | [
1,
4625,
348,
7953,
560,
30,
225,
657,
3571,
2836,
16,
434,
13541,
6970,
9831,
75,
1523,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
261,
11890,
1105,
516,
2254,
1578,
13,
2430,
38,
321,
88,
861,
1768,
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,
... |
./full_match/5/0xaf5969Ad7038b24f83Ae7A7A3290b5738b723dBC/sources/contractsv0.0.5/nnsregistrar/NNSRegistrarController.sol | vars.commitment = makeCommitmentWithConfig(name, vars.owner, secret, vars.resolver, vars.addr);vars.cost = _consumeCommitment(name, duration, vars.commitment,0,1e18); | vars.cost = getCost(name,duration,1e18);
| 1,930,425 | [
1,
4625,
348,
7953,
560,
30,
4153,
18,
7371,
475,
273,
1221,
5580,
475,
1190,
809,
12,
529,
16,
4153,
18,
8443,
16,
4001,
16,
4153,
18,
14122,
16,
4153,
18,
4793,
1769,
4699,
18,
12398,
273,
389,
21224,
5580,
475,
12,
529,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
3639,
4153,
18,
12398,
273,
1927,
669,
12,
529,
16,
8760,
16,
21,
73,
2643,
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,
-... |
// SPDX-License-Identifier: UNLICENCED
// _ (`-. _ .-') .-. .-') .-') _ _ .-') ('-. (`\ .-') /`
// ( (OO ) ( '.( OO )_ \ ( OO ) ( OO ) ) ( \( -O ) _( OO) `.( OO ),'
// _.` \,--. ,--. ,--. ,--.),--. ,--... | * @dev Admin can change base URI as many times as needed before the reveal./ | function changePreRevealBaseTokenURI(string calldata _baseTokenURI) external onlyOwner {
require(!revealed, "revealed");
baseTokenURI = _baseTokenURI;
}
| 1,251,534 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
7807,
848,
2549,
1026,
3699,
487,
4906,
4124,
487,
3577,
1865,
326,
283,
24293,
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,
225,
445,
2549,
1386,
426,
24293,
2171,
1345,
3098,
12,
1080,
745,
892,
389,
1969,
1345,
3098,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
5,
266,
537,
18931,
16,
315,
266,
537,
18931,
8863,
203,
203,
565,
1026,
1345,
3098,
... |
./full_match/43113/0x0D00D268d2f4f62d0B5C62A995f661203aceBff6/sources/contracts/stuff.sol | check if APA has already voted anIERC721Enumerabled add to UserAPAs if eligibleadd to User arrayadd to proposal array | for(uint i=UserAPAs.length; i < UserAPAs.length + myActiveListingsCount; i++){
currentAPA = listings[i].tokenId;
if(isEligible(currentAPA, proposalId)){
UserAPAs[i] = currentAPA;
votedAPAs[proposalId].push(currentAPA);
}
}
... | 7,194,905 | [
1,
4625,
348,
7953,
560,
30,
866,
309,
432,
4066,
711,
1818,
331,
16474,
392,
45,
654,
39,
27,
5340,
3572,
264,
1116,
527,
358,
2177,
2203,
1463,
309,
21351,
1289,
358,
2177,
526,
1289,
358,
14708,
526,
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,
3639,
364,
12,
11890,
277,
33,
1299,
2203,
1463,
18,
2469,
31,
277,
411,
2177,
2203,
1463,
18,
2469,
397,
3399,
3896,
682,
899,
1380,
31,
277,
27245,
95,
203,
5411,
783,
2203,
37,
273,
666,
899,
63,
77,
8009,
2316,
548,
31,
2... |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.4;
import "./DirectLoanBaseMinimal.sol";
import "../../../utils/ContractKeys.sol";
/**
* @title DirectLoanFixed
* @author NFTfi
* @notice Main contract for NFTfi Direct Loans Fixed Type. This contract manages the ability to create NFT-backed
* peer-to-pee... | * @notice used by the loan contract to build a bundle from the BundleElements struct at the beginning of a loan, returns the id of the created bundle @param _bundleElements - the lists of erc721-20-1155 tokens that are to be bundled @param _sender sender of the tokens in the bundle - the borrower @param _receiver recei... | library SignatureChecker {
function isValidSignatureNow(
address signer,
bytes32 hash,
bytes memory signature
function buildBundle(
BundleElements memory _bundleElements,
address _sender,
address _receiver
) external returns (uint256);
function decomposeB... | 1,474,677 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
1399,
635,
326,
28183,
6835,
358,
1361,
279,
3440,
628,
326,
8539,
3471,
1958,
622,
326,
8435,
434,
279,
28183,
16,
1135,
326,
612,
434,
326,
2522,
3440,
632,
891,
389,
9991,
3471,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
12083,
9249,
8847,
288,
203,
565,
445,
4908,
5374,
8674,
12,
203,
3639,
1758,
10363,
16,
203,
3639,
1731,
1578,
1651,
16,
203,
3639,
1731,
3778,
3372,
203,
565,
445,
1361,
3405,
12,
203,
3639,
8539,
3471,
3778,
389,
9991,
3471,
1... |
// Copyright (C) 2020 Zerion Inc. <https://zerion.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 ... | * @return Array of Component structs with underlying tokens rates for the given asset. @dev Implementation of TokenAdapter abstract contract function./ | function getComponents(address token) external override returns (Component[] memory) {
address[] memory tokens = PBasicSmartPool(token).getTokens();
uint256 totalSupply = ERC20(token).totalSupply();
address bPool = PBasicSmartPool(token).getBPool();
Component[] memory components = n... | 12,779,412 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
2463,
1510,
434,
5435,
8179,
598,
6808,
2430,
17544,
364,
326,
864,
3310,
18,
632,
5206,
25379,
434,
3155,
4216,
8770,
6835,
445,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
336,
7171,
12,
2867,
1147,
13,
3903,
3849,
1135,
261,
1841,
8526,
3778,
13,
288,
203,
3639,
1758,
8526,
3778,
2430,
273,
453,
8252,
23824,
2864,
12,
2316,
2934,
588,
5157,
5621,
203,
3639,
2254,
5034,
2078,
3088,
1283,
... |
/**
*Submitted for verification at Etherscan.io on 2021-11-21
*/
// File: 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 us... | * @dev Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. By default, the owner account will be the one that deploys the contract. This can later be changed with {transferOwnership}. This module is used throug... | contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
f... | 15,376,991 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
13456,
1605,
1492,
8121,
279,
5337,
2006,
3325,
12860,
16,
1625,
1915,
353,
392,
2236,
261,
304,
3410,
13,
716,
848,
506,
17578,
12060,
2006,
358,
2923,
4186,
18,
2525,
805,
16,
326,
3410... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
5541,
1769,
203,
203,
203,
565,
3885,
1832,
2713,
288,
2... |
/**
* SPDX-License-Identifier: LicenseRef-Aktionariat
*
* MIT License with Automated License Fee Payments
*
* Copyright (c) 2020 Aktionariat AG (aktionariat.com)
*
* Permission is hereby granted to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Softwar... | * SPDX-License-Identifier: LicenseRef-Aktionariat MIT License with Automated License Fee Payments Copyright (c) 2020 Aktionariat AG (aktionariat.com) Permission is hereby granted to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrict... | pragma solidity >=0.8;
| 163,628 | [
1,
4625,
348,
7953,
560,
30,
380,
11405,
28826,
17,
13211,
17,
3004,
30,
16832,
1957,
17,
37,
8629,
285,
12954,
270,
490,
1285,
16832,
598,
11809,
362,
690,
16832,
30174,
13838,
1346,
25417,
261,
71,
13,
26599,
20,
432,
8629,
285,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
683,
9454,
18035,
560,
1545,
20,
18,
28,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.5.0;
import "./interfaces/ISRStorage.sol";
import "./interfaces/ISymbolRegistry.sol";
import "./SymbolRegistryMetadata.sol";
import "../../common/libraries/BytesHelper.sol";
import "../../request-verification-layer/permission-module/Protected.sol";
import "../../common/component/SystemComponent.sol"... | * @notice Verify symbol owner @param symbol Symbol @param sender Address to verify/ | modifier onlySymbolOwner(bytes memory symbol, address sender) {
require(
isSymbolOwner(symbol, sender),
"Allowed only for an owner."
);
_;
}
public
WithComponentsRegistry(componentsRegistry)
| 6,357,525 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
20392,
8553,
3273,
3410,
632,
891,
3273,
8565,
632,
891,
5793,
5267,
358,
3929,
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,
9606,
1338,
5335,
5541,
12,
3890,
3778,
3273,
16,
1758,
5793,
13,
288,
203,
3639,
2583,
12,
203,
5411,
353,
5335,
5541,
12,
7175,
16,
5793,
3631,
7010,
5411,
315,
5042,
1338,
364,
392,
3410,
1199,
203,
3639,
11272,
203,
3639... |
./full_match/1/0xc1aAB2dc3Fe5082D2D3eAaf67f4D49619B9862C9/sources/Users/simondos/projects/micobo-security-token/contracts/token/Constrainable.sol | * @dev Validates live transfer. Can modify state @param msg_sender Sender of this function call @param partition Partition the tokens are being transferred from @param from Token holder. @param to Token recipient. @param value Number of tokens to transfer. @param data Information attached to the transfer. @param operat... | ) internal {
for (uint256 i = 0; i < _modulesByPartition[partition].length; i++) {
(
bool valid,
string memory reason
) = _modulesByPartition[partition][i].executeTransfer(
msg_sender,
partition,
operator,
from,
to,
value,
data,
operatorData
);
require(valid, reas... | 3,073,851 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2364,
815,
8429,
7412,
18,
4480,
5612,
919,
632,
891,
1234,
67,
15330,
15044,
434,
333,
445,
745,
632,
891,
3590,
12598,
326,
2430,
854,
3832,
906,
4193,
628,
632,
891,
628,
3155,
10438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13,
2713,
288,
203,
202,
202,
1884,
261,
11890,
5034,
277,
273,
374,
31,
277,
411,
389,
6400,
858,
7003,
63,
10534,
8009,
2469,
31,
277,
27245,
288,
203,
1082,
202,
12,
203,
9506,
202,
6430,
923,
16,
203,
9506,
202,
1080,
... |
./partial_match/1/0x6e84DC5ed39699DD82F068cc5c1b98b0C75b867d/sources/FarmMainRegularMinStake.sol | @title ERC721 with permit @notice Extension to ERC721 that includes a permit function for signature based approvals | interface IERC721Permit is IERC721 {
function PERMIT_TYPEHASH() external pure returns (bytes32);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function permit(
address spender,
uint256 tokenId,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
... | 3,941,625 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
4232,
39,
27,
5340,
598,
21447,
632,
20392,
10021,
358,
4232,
39,
27,
5340,
716,
6104,
279,
21447,
445,
364,
3372,
2511,
6617,
4524,
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,
5831,
467,
654,
39,
27,
5340,
9123,
305,
353,
467,
654,
39,
27,
5340,
288,
203,
565,
445,
10950,
6068,
67,
2399,
15920,
1435,
3903,
16618,
1135,
261,
3890,
1578,
1769,
203,
203,
565,
445,
27025,
67,
4550,
1435,
3903,
1476,
1135,
... |
//! The Secret Store service contract intefaces.
//!
//! Copyright 2017 Svyatoslav Nikolsky, Parity Technologies Ltd.
//!
//! Licensed under the Apache License, Version 2.0 (the "License");
//! you may not use this file except in compliance with the License.
//! You may obtain a copy of the License at
//!
//! http:... | Only pass when fee is paid. | modifier whenFeePaid(uint256 amount) {
require(msg.value >= amount, "Not enough value");
_;
}
| 7,281,856 | [
1,
4625,
348,
7953,
560,
30,
225,
5098,
1342,
1347,
14036,
353,
30591,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
20597,
1347,
14667,
16507,
350,
12,
11890,
5034,
3844,
13,
288,
203,
202,
202,
6528,
12,
3576,
18,
1132,
1545,
3844,
16,
315,
1248,
7304,
460,
8863,
203,
202,
202,
67,
31,
203,
202,
97,
203,
203,
2,
-100,
-100,
-100,
-100,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @author: manifold.xyz
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol";
import "@manifoldxyz/creator-core-solidity/contracts/core/IERC721CreatorCore.sol";
import "@mani... | * @dev See {IERC165-supportsInterface}./ | function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721CreatorCollectionBase, IERC165, AdminControlUpgradeable) returns (bool) {
return ERC721CreatorCollectionBase.supportsInterface(interfaceId)
|| AdminControlUpgradeable.supportsInterface(interfaceId)
|| interfaceId... | 12,064,345 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2164,
288,
45,
654,
39,
28275,
17,
28064,
1358,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
6146,
1358,
12,
3890,
24,
1560,
548,
13,
1071,
1476,
5024,
3849,
12,
654,
39,
27,
5340,
10636,
2532,
2171,
16,
467,
654,
39,
28275,
16,
7807,
3367,
10784,
429,
13,
1135,
261,
6430,
13,
288,
203,
1377,
327,
4232,
39,
... |
./full_match/421613/0x712A3480705560bB3158c8933403B04564305158/sources/project_/contracts/tokens/Corn.sol | Add details to Collectibles
| ownerOfCollectibles[_msgSender()].push(Collectible(tokenID, collectibleType, _maxBoostLevel, block.number, _expiry, _uri)); | 11,566,843 | [
1,
4625,
348,
7953,
560,
30,
225,
1436,
3189,
358,
9302,
495,
1040,
203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
3410,
951,
10808,
495,
1040,
63,
67,
3576,
12021,
1435,
8009,
6206,
12,
10808,
1523,
12,
2316,
734,
16,
3274,
1523,
559,
16,
389,
1896,
26653,
2355,
16,
1203,
18,
2696,
16,
389,
22409,
16,
389,
1650,
10019,
282,
2,
-100,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../../../lib/openzeppelin-contracts@4.3.2/contracts/utils/Context.sol";
import "../../../lib/openzeppelin-contracts@4.3.2/contracts/access/AccessControlEnumerable.sol";
import "./RetaERC20Burnable.sol";
import "./RetaERC20Pausable.sol";
contract RetaER... | * @dev Creates `amount` new tokens for `to`. See {ERC20-_mint}. Requirements: - the caller must have the `MINTER_ROLE`./ | function mint(address to, uint256 amount) public virtual {
require(hasRole(MINTER_ROLE, _msgSender()), "RetaERC20MinterPauser: must have minter role to mint");
_mint(to, amount);
}
| 13,047,095 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
10210,
1375,
8949,
68,
394,
2430,
364,
1375,
869,
8338,
2164,
288,
654,
39,
3462,
17,
67,
81,
474,
5496,
29076,
30,
300,
326,
4894,
1297,
1240,
326,
1375,
6236,
2560,
67,
16256,
8338,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
3844,
13,
1071,
5024,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
6236,
2560,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
315,
54,
1066,
654,
39,
3462,
49,
2761,
16507,
1355,
30... |
./full_match/1/0xe0767bED7527dcb36B29c42dE670f70877240Be5/sources/browser/HarvestUSDT.sol | ========== Harvest interface ========== */ | contract HarvestUSDT is HarvestWrapper {
constructor()
PoolWrapper(
)
ERC20(
ERC20(address(0xc7EE21406BB581e741FBb8B21f213188433D9f2F)).decimals()
)
public {
setAddr(
);
}
} | 4,824,470 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
1432,
670,
297,
26923,
1560,
422,
1432,
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,
... | [
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,
16351,
670,
297,
26923,
3378,
9081,
353,
670,
297,
26923,
3611,
288,
203,
203,
565,
3885,
1435,
203,
3639,
8828,
3611,
12,
203,
3639,
262,
203,
3639,
4232,
39,
3462,
12,
203,
5411,
4232,
39,
3462,
12,
2867,
12,
20,
6511,
27,
93... |
//Address: 0x707b002aeaff95b8b57f0201d208dff2be78a9fe
//Contract name: XPresale
//Balance: 0.01 Ether
//Verification Date: 11/17/2017
//Transacion Count: 7
// CODE STARTS HERE
pragma solidity ^0.4.11;
contract SafeMath {
function safeMul(uint256 a, uint256 b) internal constant returns (uint256 ) {
uint... | currency_code => (tx_hash => tokens) | mapping(uint8 => mapping(bytes32 => uint256)) public externalTxs;
| 12,665,799 | [
1,
4625,
348,
7953,
560,
30,
225,
5462,
67,
710,
516,
261,
978,
67,
2816,
516,
2430,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2874,
12,
11890,
28,
516,
2874,
12,
3890,
1578,
516,
2254,
5034,
3719,
1071,
3903,
29070,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error,... | Only allow access from the latest version of the specified Rocket Pool contract | modifier onlyLatestContract(string memory _contractName, address _contractAddress) {
require(_contractAddress == getContractAddress(_contractName), "Invalid or outdated contract");
_;
}
| 10,211,735 | [
1,
4625,
348,
7953,
560,
30,
225,
5098,
1699,
2006,
628,
326,
4891,
1177,
434,
326,
1269,
534,
1861,
8828,
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... | [
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,
9606,
1338,
18650,
8924,
12,
1080,
3778,
389,
16351,
461,
16,
1758,
389,
16351,
1887,
13,
288,
203,
3639,
2583,
24899,
16351,
1887,
422,
336,
8924,
1887,
24899,
16351,
461,
3631,
315,
1941,
578,
25629,
6835,
8863,
203,
3639,
3... |
pragma solidity ^0.5.8;
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface IERC20 {
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function transferF... | @title Main contract for WrappedCK. This contract converts Cryptokitties between the ERC721 standard and the ERC20 standard by locking cryptokitties into the contract and minting 1:1 backed ERC20 tokens, that can then be redeemed for cryptokitties when desired. @notice When wrapping a cryptokitty, you get a generic ... | contract WrappedCK is ERC20, ReentrancyGuard {
using SafeMath for uint256;
event DepositKittyAndMintToken(
uint256 kittyId
);
event BurnTokenAndWithdrawKitty(
uint256 kittyId
);
uint256[] private depositedKittiesArray;
mapping (uint256 => bool) private kittyIsDeposited... | 1,786,628 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
12740,
6835,
364,
24506,
3507,
18,
1220,
6835,
7759,
22752,
601,
305,
88,
606,
3086,
326,
4232,
39,
27,
5340,
4529,
471,
326,
225,
4232,
39,
3462,
4529,
635,
18887,
13231,
601,
305,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
24506,
3507,
353,
4232,
39,
3462,
16,
868,
8230,
12514,
16709,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
871,
4019,
538,
305,
14102,
4098,
1876,
49,
474,
1345,
12,
203,
3639,
2254,
50... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when d... | interface IContractWithPool { function pool() external view returns (ITrueFiPool2);}/ Had to be split because of multiple inheritance probleminterface ILoanToken2 is ILoanToken, IContractWithPool {} SPDX-License-Identifier: MIT | interface IPoolFactory {
function isPool(address pool) external view returns (bool);
}
| 1,174,438 | [
1,
4625,
348,
7953,
560,
30,
1560,
467,
8924,
1190,
2864,
288,
565,
445,
2845,
1435,
3903,
1476,
1135,
261,
45,
5510,
42,
77,
2864,
22,
1769,
4004,
670,
361,
358,
506,
1416,
2724,
434,
3229,
16334,
3137,
298,
1154,
897,
467,
1504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
5831,
467,
2864,
1733,
288,
203,
565,
445,
353,
2864,
12,
2867,
2845,
13,
3903,
1476,
1135,
261,
6430,
1769,
203,
97,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity ^0.8.4;
// These custom errors unfortunately do not display in the Truffle Console
// https://github.com/trufflesuite/truffle/issues/4123
/// Preferences not found for this address + H(key) combination.
/// @param userAddress Address used.
/// @param hashKey Hashed key used.
error PreferencesNotFound... | Attempts to retrieve preferences stored under the provided address + H(key) combination Only addresses approved by the user are allowed to retrieve the encrypted preferences Make sure the key is in use (and thus the preferences attempting to be retrieved exist) Return error indicating this preferences set isn't found ... | function getPreferences(address userAddress,string memory key) public view returns(string memory preferences){
if( (msg.sender == userAddress) ||(approvedAddressExists(userAddress, key, msg.sender))){
if(keyInUse(userAddress, key)){
return(userpreferences[abi.encodePacked(userAddress, keyBy... | 13,055,948 | [
1,
4625,
348,
7953,
560,
30,
225,
6020,
9585,
358,
4614,
12750,
4041,
3613,
326,
2112,
1758,
397,
670,
12,
856,
13,
10702,
5098,
6138,
20412,
635,
326,
729,
854,
2935,
358,
4614,
326,
6901,
12750,
4344,
3071,
326,
498,
353,
316,
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,
565,
445,
336,
12377,
12,
2867,
729,
1887,
16,
1080,
3778,
498,
13,
1071,
1476,
1135,
12,
1080,
3778,
12750,
15329,
203,
203,
1377,
309,
12,
261,
3576,
18,
15330,
422,
729,
1887,
13,
747,
12,
25990,
1887,
4002,
12,
1355,
1887,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-18
*/
// Sources flattened with hardhat v2.6.0 https://hardhat.org
// File @openzeppelin/contracts/utils/[email protected]
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context,... | @dev Get the total amount of the asset that has been deposited into a vault. @param _vaultId the identifier of the vault. @return the total amount of deposited tokens. | function getVaultTotalDeposited(uint256 _vaultId) external view returns (uint256) {
VaultV2WithIndirection.Data storage _vault = _vaults.get(_vaultId);
return _vault.totalDeposited;
}
| 2,219,210 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
968,
326,
2078,
3844,
434,
326,
3310,
716,
711,
2118,
443,
1724,
329,
1368,
279,
9229,
18,
632,
891,
389,
26983,
548,
326,
2756,
434,
326,
9229,
18,
632,
2463,
326,
2078,
3844,
434,
443... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
11031,
3714,
5269,
758,
1724,
329,
12,
11890,
5034,
389,
26983,
548,
13,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
17329,
58,
22,
1190,
3866,
2769,
18,
751,
2502,
389,
26983,
273,
389,
26983,
87,
18,
588,
... |
// SPDX-License-Identifier: MIT LICENSE
pragma solidity ^0.8.4;
import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@... | * @param _house reference to the House NFT contract @param _cash reference to the $CASH token/ | function initialize(address _house, address _cash, address _randomizer) external initializer {
OwnableUpgradeable.__Ownable_init();
PausableUpgradeable.__Pausable_init();
house = IHouseGame(_house);
cash = ICASH(_cash);
randomizer = IRandomizer(_randomizer);
rescueEnabled = false;
}
| 6,861,279 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
891,
389,
13028,
2114,
358,
326,
670,
3793,
423,
4464,
6835,
632,
891,
389,
71,
961,
2114,
358,
326,
271,
3587,
2664,
1147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
4046,
12,
2867,
389,
13028,
16,
1758,
389,
71,
961,
16,
1758,
389,
9188,
1824,
13,
3903,
12562,
288,
7010,
565,
14223,
6914,
10784,
429,
16186,
5460,
429,
67,
2738,
5621,
203,
565,
21800,
16665,
10784,
429,
16186,
16507,
... |
./full_match/1/0x0000000304aAD016bA7a745da3cE64f6198B76B3/sources/lib/solady/src/utils/FixedPointMathLib.sol | @solidity memory-safe-assembly forgefmt: disable-next-item | assembly {
if iszero(lt(10, x)) {
result := and(
shr(mul(22, x), 0x375f0016260009d80004ec0002d00001e0000180000180000200000400001),
0x3fffff
)
break
}
if isz... | 3,200,550 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
30205,
560,
3778,
17,
4626,
17,
28050,
21388,
8666,
30,
4056,
17,
4285,
17,
1726,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3639,
19931,
288,
203,
7734,
309,
353,
7124,
12,
5618,
12,
2163,
16,
619,
3719,
288,
203,
10792,
563,
519,
471,
12,
203,
13491,
699,
86,
12,
16411,
12,
3787,
16,
619,
3631,
374,
92,
23,
5877,
74,
713,
2313,
5558,
3784,
29,
72... |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
// BluntBar is the coolest bar in town. You come in with some Joint, and leave with more! The lo... | Leave the bar. Claim back your SUSHIs. Unlocks the staked + gained Joint and burns BLUNT Gets the amount of BLUNT in existence Calculates the amount of Joint the Blunt is worth | function leave(uint256 _share) public {
uint256 totalShares = totalSupply();
uint256 what = _share.mul(joint.balanceOf(address(this))).div(totalShares);
_burn(msg.sender, _share);
joint.transfer(msg.sender, what);
}
| 12,565,893 | [
1,
4625,
348,
7953,
560,
30,
225,
21131,
326,
4653,
18,
18381,
1473,
3433,
11726,
2664,
2520,
18,
3967,
87,
326,
384,
9477,
397,
314,
8707,
804,
763,
471,
18305,
87,
19238,
5321,
11881,
326,
3844,
434,
19238,
5321,
316,
15782,
26128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8851,
12,
11890,
5034,
389,
14419,
13,
1071,
288,
203,
3639,
2254,
5034,
2078,
24051,
273,
2078,
3088,
1283,
5621,
203,
3639,
2254,
5034,
4121,
273,
389,
14419,
18,
16411,
12,
16452,
18,
12296,
951,
12,
2867,
12,
2211,
... |
pragma solidity ^0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "./base/Errors.sol";
import "./interfaces/IAlchemistV2.sol";
import "./interfaces/external/IWETH9.sol";
import "./interfaces/IWETHGateway.sol";
import "./interfaces/IWhitelist.sol";
/// @title WETHGateway
/// @author Alchemix Financ... | @inheritdoc IWETHGateway | function refreshAllowance(address alchemist) external onlyOwner {
WETH.approve(alchemist, type(uint256).max);
}
| 12,008,433 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
10093,
467,
59,
1584,
44,
5197,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4460,
7009,
1359,
12,
2867,
524,
1036,
376,
13,
3903,
1338,
5541,
288,
203,
3639,
678,
1584,
44,
18,
12908,
537,
12,
287,
1036,
376,
16,
618,
12,
11890,
5034,
2934,
1896,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
... |
/**
*Submitted for verification at BscScan.com on 2021-04-11
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability war... | Lock wallets A to D for 21 days from transferringSet to 21 days after deployIf this is set to true, the lotteryContractA cannot be changed anymore.If this is set to true, the lotteryContractB cannot be changed anymore. | contract XXXToken is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public _burnPool = 0x0000000000000000000000000000000000000000;
uint256 private minTokensBeforeSwap;
uint256 internal _totalSu... | 5,352,611 | [
1,
4625,
348,
7953,
560,
30,
3488,
17662,
2413,
432,
358,
463,
364,
9035,
4681,
628,
906,
74,
20245,
694,
358,
9035,
4681,
1839,
7286,
2047,
333,
353,
444,
358,
638,
16,
326,
17417,
387,
93,
8924,
37,
2780,
506,
3550,
16828,
18,
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,
0,
0... | [
1,
16351,
11329,
1345,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
8259,
31,... |
pragma solidity ^0.4.16;
contract ERC20 {
function totalSupply() constant returns (uint256 totalSupply);
function balanceOf(address _owner) constant returns (uint256 balance);
function transfer(address _to, uint256 _value) returns (bool success);
function transferFrom(address _from, addre... | To Distribute AirDrops for Applicants of Round 2 | function AirDropPayBitsR2(address[] addresses) onlyOwner {
for (uint i = 0; i < addresses.length; i++) {
balances[owner] -= 300000000000000000000;
balances[addresses[i]] += 300000000000000000000;
Transfer(owner, addresses[i], 300000000000000000000);
}
... | 12,572,188 | [
1,
4625,
348,
7953,
560,
30,
225,
2974,
3035,
887,
432,
481,
40,
16703,
364,
1716,
1780,
4388,
434,
11370,
576,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1377,
445,
432,
481,
7544,
9148,
6495,
54,
22,
12,
2867,
8526,
6138,
13,
1338,
5541,
288,
203,
540,
364,
261,
11890,
277,
273,
374,
31,
277,
411,
6138,
18,
2469,
31,
277,
27245,
288,
203,
2398,
324,
26488,
63,
8443,
65,
3947,
... |
./full_match/80001/0x0068d9721eF66Cf91a4858fe028Ddc8F64ec237F/sources/FloristMembership.sol | ===== Claim ===== * encode & decode purpose: cleaver hack firewall [bug not fix yet by the core devs] require(msg.sender == minter, "firewall detected a bug"); i change this to if & else | function claim() public whenNotPaused started returns (bool success, address member){
require(_whiteList[msg.sender] == true, "only whitelisted users");
require(balanceOf(msg.sender,proof_id) == 0, "you are have this");
require(maxCounter[proof_id] < max, "claim members end");
bytes ... | 5,637,087 | [
1,
4625,
348,
7953,
560,
30,
225,
422,
12275,
18381,
422,
12275,
380,
2017,
473,
2495,
13115,
30,
1619,
21851,
11769,
14973,
306,
925,
486,
2917,
4671,
635,
326,
2922,
4461,
87,
65,
2583,
12,
3576,
18,
15330,
422,
1131,
387,
16,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7516,
1435,
1071,
1347,
1248,
28590,
5746,
1135,
261,
6430,
2216,
16,
1758,
3140,
15329,
203,
3639,
2583,
24899,
14739,
682,
63,
3576,
18,
15330,
65,
422,
638,
16,
315,
3700,
26944,
3677,
8863,
203,
3639,
2583,
12,
12296,... |
pragma solidity 0.4.25;
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol";
import "openzeppelin-solidity/contracts/token/ERC721/ERC721Mintable.sol";
import "./IBBLRToken.sol";
/**
* @title Bubblr ERC721 token
* @dev
*/
contract MATToken is ERC721Full, ERC721Mintable {
using SafeMath for uin... | Token to use for value transfer
| IBBLRToken private _valueToken; | 12,906,282 | [
1,
4625,
348,
7953,
560,
30,
225,
3155,
358,
999,
364,
460,
7412,
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,
565,
467,
9676,
16018,
1345,
3238,
389,
1132,
1345,
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,
... |
./partial_match/1/0x933A98fAEa57F1D68FCda5a13e0506439264b3bF/sources/Dickheads.sol | * @dev Returns how many tokens are still available to be claimed/ | function getAvailableTokens() external view returns (uint256) {
return totalTokens - (nextTokenToMint - 1);
}
| 4,149,502 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2860,
3661,
4906,
2430,
854,
4859,
2319,
358,
506,
7516,
329,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15796,
5157,
1435,
3903,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
327,
2078,
5157,
300,
261,
4285,
1345,
774,
49,
474,
300,
404,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
./full_match/5/0xFf3820bd8196C6Fdb5568d7CB1814ecC305787a5/sources/src/AmphorSyntheticVault.sol | * @dev The `start` function is used to start the lock period of the vault. It is the only way to lock the vault. It can only be called by the owner of the contract (`onlyOwner` modifier)./ | function start() external onlyOwner {
if (!vaultIsOpen) revert VaultIsLocked();
lastSavedBalance = _totalAssets();
vaultIsOpen = false;
_asset.safeTransfer(owner(), lastSavedBalance);
emit EpochStart(block.timestamp, lastSavedBalance, totalSupply());
}
| 1,860,084 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
1021,
1375,
1937,
68,
445,
353,
1399,
358,
787,
326,
2176,
3879,
434,
326,
9229,
18,
2597,
353,
326,
1338,
4031,
358,
2176,
326,
9229,
18,
2597,
848,
1338,
506,
2566,
635,
326,
3410,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
445,
787,
1435,
3903,
1338,
5541,
288,
203,
3639,
309,
16051,
26983,
2520,
3678,
13,
15226,
17329,
2520,
8966,
5621,
203,
203,
3639,
1142,
16776,
13937,
273,
389,
4963,
10726,
5621,
203,
3639,
9229,
2520,
3678,
273,
629,
31,
2... |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'RougeCoin' token contract
//
// Deployed to : 0xFF96a025Bd86D968dCE0Da3EC52d2f678A57c1FC
// Symbol : XRGE
// Name : RougeCoin
// Total supply: 18000000000
// Decimals : 18
//
// Enjoy.
//
// (c) ... | ---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con... | contract RougeCoin 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;
constructor() public {
symbol = "XRGE";
... | 11,995,424 | [
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,
534,
83,
21627,
27055,
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,
389,
... |
./full_match/1/0xa38099Cc226373148327C3530B295b66F00A3798/sources/contracts/Ethhub.sol | Set withdrawal wallet address | constructor() payable ERC721('ETHHub Lifetime Pass', 'EHLP') {
mintPrice = newMintPrice;
totalSupply = 0;
maxSupply = 10000;
maxPerWallet = 3;
withdrawWallet = payable(0xd3353f71da26E364297506cf2908cEE4bb3e9eA1);
}
| 4,857,631 | [
1,
4625,
348,
7953,
560,
30,
1000,
598,
9446,
287,
9230,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8843,
429,
4232,
39,
27,
5340,
2668,
1584,
44,
8182,
11695,
2374,
10311,
2187,
296,
41,
44,
14461,
6134,
288,
203,
203,
3639,
312,
474,
5147,
273,
394,
49,
474,
5147,
31,
203,
3639,
2078,
3088,
1283,
273,
374,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
/// @title TRYC Contract
/// @author Stoken/Paribu
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/Pau... | @dev Burns tokens, callable only by the owner @return bool | function burn(uint256 amount) external onlyOwner returns (bool) {
_burn(_msgSender(), amount);
return true;
}
| 361,966 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
5206,
605,
321,
87,
2430,
16,
4140,
1338,
635,
326,
3410,
632,
2463,
1426,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18305,
12,
11890,
5034,
3844,
13,
3903,
1338,
5541,
1135,
261,
6430,
13,
288,
203,
3639,
389,
70,
321,
24899,
3576,
12021,
9334,
3844,
1769,
203,
3639,
327,
638,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.4.24;
pragma experimental "v0.5.0";
/*
Copyright 2018 dYdX Trading Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENS... | * Increase a position directly by putting up heldToken. The caller will serve as both the lender and the position owner @param positionId Unique ID of the position @param principalToAdd Principal amount to add to the position @return Amount of heldToken pulled from the msg.sender/ | function increaseWithoutCounterparty(
bytes32 positionId,
uint256 principalToAdd
)
external
onlyWhileOperational
nonReentrant
returns (uint256)
{
return IncreasePositionImpl.increaseWithoutCounterpartyImpl(
state,
positionId,
... | 1,594,144 | [
1,
4625,
348,
7953,
560,
30,
380,
657,
11908,
279,
1754,
5122,
635,
29379,
731,
15770,
1345,
18,
1021,
4894,
903,
12175,
487,
3937,
326,
328,
2345,
471,
326,
1754,
3410,
632,
891,
225,
1754,
548,
1377,
14584,
1599,
434,
326,
1754,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
10929,
8073,
4789,
21214,
12,
203,
3639,
1731,
1578,
1754,
548,
16,
203,
3639,
2254,
5034,
8897,
13786,
203,
565,
262,
203,
3639,
3903,
203,
3639,
1338,
15151,
2988,
287,
203,
3639,
1661,
426,
8230,
970,
203,
3639,
1135,
... |
pragma solidity 0.4.24;
import "./PumaPayToken.sol";
import "../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
/// @title TimeVesting - Contract that will hold PMA tokens locked for a specific period in a vesting manner.... | @title TimeVesting - Contract that will hold PMA tokens locked for a specific period in a vesting manner. Over time the owner will be able to withdraw certain percentage of the tokens held by the contract. @author Giorgos Kourtellos - <giorgos@pumapay.io> | contract TimeVesting is Ownable {
using SafeMath for uint256;
event LogWithdraw(uint256 amount);
event LogInitialBalanceSet(uint256 amount);
event LogVestingDetails(uint256 nextVestingPeriod, uint256 vestingUnlockedPercentage);
uint256 public unlockPeriodInDays;
uint256 public unlockPercenta... | 13,052,872 | [
1,
4625,
348,
7953,
560,
30,
225,
632,
2649,
2647,
58,
10100,
300,
13456,
716,
903,
6887,
453,
5535,
2430,
8586,
364,
279,
2923,
3879,
316,
279,
331,
10100,
21296,
18,
10752,
813,
326,
3410,
903,
506,
7752,
358,
598,
9446,
8626,
116... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
2647,
58,
10100,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
203,
203,
565,
871,
1827,
1190,
9446,
12,
11890,
5034,
3844,
1769,
203,
565,
871,
1827,
4435,
13937,
694,
12,
11890,
5034,
3844,... |
./full_match/5/0xFbE20c7123eDEb17512C9A9F4dE4F7826CfA87E7/sources/contracts/chaorldgen.sol | mapping from tokenId to associated hash value mapping of hash to tokenId | contract Contract is ERC721Drop {
string public script;
mapping(uint256 => bytes32) public tokenToHash;
mapping(bytes32 => uint256) public hashToToken;
pragma solidity ^0.8.0;
function setScript(string calldata _script) public onlyOwner {
script = _script;
}
constructor(
strin... | 1,953,613 | [
1,
4625,
348,
7953,
560,
30,
225,
2874,
628,
1147,
548,
358,
3627,
1651,
460,
2874,
434,
1651,
358,
1147,
548,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
13456,
353,
4232,
39,
27,
5340,
7544,
288,
203,
565,
533,
1071,
2728,
31,
203,
565,
2874,
12,
11890,
5034,
516,
1731,
1578,
13,
1071,
1147,
774,
2310,
31,
203,
203,
565,
2874,
12,
3890,
1578,
516,
2254,
5034,
13,
1071,
1... |
/**
*Submitted for verification at Etherscan.io on 2021-03-19
*/
/**
*Submitted for verification at Etherscan.io on 2017-12-31
*/
pragma solidity ^0.4.18;
// -----------------------------------------------------------------------------------------------
// CryptoCatsMarket v3
//
// Ethereum contract for Cryptocats... | Define event for logging update to cat price for existing release of cats (only impacts unclaimed cats) */ | event UpdateReleasePrice(uint32 releaseId, uint256 catPrice);
| 8,073,818 | [
1,
4625,
348,
7953,
560,
30,
225,
13184,
871,
364,
2907,
1089,
358,
6573,
6205,
364,
2062,
3992,
434,
27525,
261,
3700,
15800,
87,
6301,
80,
4581,
329,
27525,
13,
1195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
871,
2315,
7391,
5147,
12,
11890,
1578,
3992,
548,
16,
2254,
5034,
6573,
5147,
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,
-... |
./full_match/1/0x93dA2727f0409eE2C156B839B2E1D81d9C9909eE/sources/contracts/gralien.sol | Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount | contract GRALIEN is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable uniswapV2Router;
address public immutable uniswapV2Pair;
address public constant deadAddress = address(0x000000000000000000000000000000000000dEaD);
bool private swapping;
address public mar... | 8,376,749 | [
1,
4625,
348,
7953,
560,
30,
225,
18830,
77,
17,
4819,
471,
30959,
17,
3350,
5349,
7990,
471,
3152,
4352,
749,
1635,
22467,
1098,
1635,
1203,
1300,
434,
10191,
1284,
7459,
4433,
628,
1656,
281,
471,
943,
2492,
3844,
1707,
6138,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
15228,
1013,
45,
1157,
353,
4232,
39,
3462,
16,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
7010,
565,
467,
984,
291,
91,
438,
58,
22,
8259,
3103,
1071,
11732,
640,
291,
91,
438,
58,
22,
825... |
./full_match/4/0xf393cB6e746D4CAC57C51B8b9091a8b0Cbf18Adc/sources/browser/WebaverseERC20Proxy.sol | 0xd7523103ba15c1dfcf0f5ea1c553bc18179ac656 0xfa80e7480e9c42a9241e16d6c1e7518c1b1757e4 | contract WebaverseERC20Proxy {
bytes internal prefix = "\x19Ethereum Signed Message:\n32";
pragma solidity ^0.6.0;
constructor (address parentAddress, address signerAddress, uint256 _chainId) public {
signer = signerAddress;
chainId = _chainId;
parent = WebaverseERC20(parentAddress... | 12,351,150 | [
1,
4625,
348,
7953,
560,
30,
225,
374,
7669,
5877,
4366,
23494,
12124,
3600,
71,
21,
2180,
8522,
20,
74,
25,
24852,
21,
71,
2539,
23,
13459,
2643,
28814,
1077,
26,
4313,
374,
92,
507,
3672,
73,
5608,
3672,
73,
29,
71,
9452,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
16351,
2999,
69,
2476,
654,
39,
3462,
3886,
288,
203,
377,
203,
565,
1731,
2713,
1633,
273,
1548,
92,
3657,
41,
18664,
379,
16724,
2350,
5581,
82,
1578,
14432,
203,
203,
683,
9454,
18035,
560,
3602,
20,
18,
26,
18,
20,
31,
203,... |
pragma solidity 0.4.24;
pragma experimental ABIEncoderV2;
import "jcc-solidity-utils/contracts/math/SafeMath.sol";
import "jcc-solidity-utils/contracts/owner/Administrative.sol";
import "jcc-solidity-utils/contracts/utils/AddressUtils.sol";
import "jcc-solidity-utils/contracts/list/AddressList.sol";
import "jcc-solidi... | 扫描是否有到期的提案,关闭提案应该是用时间和投票数据判断,所以对执行的钱包没有要求 扫描所有待决提案,检查是否过期,是否按照表决规则可以关闭,将符合要求的返回 提案已经超时 | function haveExpire(uint endtime) public view returns(Proposal.topic[], uint) {
require(_voters.count() >= 3, "must have voter");
uint[] memory _voting = _proposals.getAllVotingTopicIds();
require(_voting.length > 0, "must have voting data");
Proposal.topic[] memory ret = new Proposal.topic[](_voting... | 12,671,011 | [
1,
4625,
348,
7953,
560,
30,
225,
225,
167,
236,
109,
167,
242,
242,
167,
251,
112,
166,
243,
104,
167,
255,
236,
166,
235,
113,
167,
255,
258,
168,
253,
231,
167,
242,
243,
167,
99,
235,
16,
166,
232,
116,
170,
250,
260,
167,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1240,
17033,
12,
11890,
31361,
13,
1071,
1476,
1135,
12,
14592,
18,
10476,
63,
6487,
2254,
13,
288,
203,
565,
2583,
24899,
90,
352,
414,
18,
1883,
1435,
1545,
890,
16,
315,
11926,
1240,
331,
20005,
8863,
203,
565,
2254,... |
/**
*Submitted for verification at Etherscan.io on 2021-04-26
*/
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity 0.7.4;
library SafeMathLib {
function times(uint a, uint b) public pure returns (uint) {
uint c = a * b;
require(a == 0 || c / a == b, 'Overflow detected');
return c;
}
funct... | * @dev Transfers `tokenId` from `from` to `to`. Requirements: - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. Emits a {Transfer} event./ Clear approvals from the previous owner decrement from balances n -> n-1 balances[from] now points to the tip of the "array", set it to 0 balances[to] po... | function transfer(address from, address to, uint256 tokenId) internal {
require(owners[tokenId] == from, "Identity: Transfer of token that is not own");
require(to != address(0), "Identity: transfer to the zero address");
approve(address(0), tokenId);
owners[tokenId] = to;
... | 2,407,944 | [
1,
4625,
348,
7953,
560,
30,
380,
632,
5206,
2604,
18881,
1375,
2316,
548,
68,
628,
1375,
2080,
68,
358,
1375,
869,
8338,
29076,
30,
300,
1375,
869,
68,
2780,
506,
326,
3634,
1758,
18,
300,
1375,
2316,
548,
68,
1147,
1297,
506,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7412,
12,
2867,
628,
16,
1758,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
288,
203,
3639,
2583,
12,
995,
414,
63,
2316,
548,
65,
422,
628,
16,
315,
4334,
30,
12279,
434,
1147,
716,
353,
486,
4953,
8863,
203,
3639,
25... |
./partial_match/3/0x8aB49Bb0A6490e482983deD18B5d8d047Bc848EB/sources/CallistoTokens.sol | CallistoTokens with Governance. | contract CallistoTokens is ERC20("Callisto", "YCT"), Ownable {
uint256 private _cap = 400000000000 *10**18;
uint256 private _totalLock;
uint256 public lockFromBlock;
uint256 public lockToBlock;
mapping(address => uint256) private _locks;
mapping(address => uint256) private _lastUnlockBloc... | 5,165,094 | [
1,
4625,
348,
7953,
560,
30,
225,
3049,
376,
83,
5157,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3049,
376,
83,
5157,
353,
4232,
39,
3462,
2932,
1477,
376,
83,
3113,
315,
61,
1268,
6,
3631,
14223,
6914,
288,
203,
565,
2254,
5034,
3238,
389,
5909,
273,
1059,
12648,
3784,
380,
2163,
636,
2643,
31,
203,
565,
2254,
5034,
... |