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 |
|---|---|---|---|---|---|---|
pragma solidity ^0.4.24;
import "./libraries/SafeMath.sol";
import "./interfaces/ERC20_Interface.sol";
/**
*Exchange creates an exchange for the swaps.
*/
contract Exchange{
using SafeMath for uint256;
/*Variables*/
/*Structs*/
//This is the base data structure for an order (the maker of the... | *@dev Gets the DDA List Asset information for the specifedasset address@param _assetAddress for DDA list@return price, amount and true if isLong/ | function getDdaListAssetInfo(address _assetAddress) public view returns(uint, uint, bool){
return(listOfAssets[_assetAddress].price,listOfAssets[_assetAddress].amount,listOfAssets[_assetAddress].isLong);
}
| 7,273,040 | [
1,
3002,
326,
463,
9793,
987,
10494,
1779,
364,
326,
857,
430,
329,
9406,
1758,
389,
9406,
1887,
364,
463,
9793,
666,
2463,
6205,
16,
3844,
471,
638,
309,
353,
3708,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2343,
2414,
682,
6672,
966,
12,
2867,
389,
9406,
1887,
13,
1071,
1476,
1135,
12,
11890,
16,
2254,
16,
1426,
15329,
203,
3639,
327,
12,
1098,
951,
10726,
63,
67,
9406,
1887,
8009,
8694,
16,
1098,
951,
10726,
63,
67,
94... |
/**
* SPDX-License-Identifier: MIT
**/
pragma solidity =0.7.6;
pragma experimental ABIEncoderV2;
import "./VotingBooth.sol";
import "../../../interfaces/IBean.sol";
import "../../../libraries/LibInternal.sol";
import "../../../libraries/LibIncentive.sol";
/**
* @author Publius
* @title Governance handles propsing... | @notice log_two calculates the log2 solution in a gas efficient manner Motivation: https://ethereum.stackexchange.com/questions/8086 @param x - the base to calculate log2 of | function log_two(uint x) private pure returns (uint y) {
assembly {
let arg := x
x := sub(x,1)
x := or(x, div(x, 0x02))
x := or(x, div(x, 0x04))
x := or(x, div(x, 0x10))
x := or(x, div(x, 0x100))
x := or(x, div(x, 0x10000))
... | 1,316,875 | [
1,
1330,
67,
15415,
17264,
326,
613,
22,
6959,
316,
279,
16189,
14382,
21296,
490,
352,
8482,
30,
2333,
2207,
546,
822,
379,
18,
3772,
16641,
18,
832,
19,
9758,
19,
3672,
5292,
225,
619,
300,
326,
1026,
358,
4604,
613,
22,
434,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
613,
67,
15415,
12,
11890,
619,
13,
3238,
16618,
1135,
261,
11890,
677,
13,
288,
203,
3639,
19931,
288,
203,
5411,
2231,
1501,
519,
619,
203,
5411,
619,
519,
720,
12,
92,
16,
21,
13,
203,
5411,
619,
519,
578,
12,
92... |
pragma solidity ^0.4.23;
import "./BaseContentManagement.sol";
contract Catalog{
struct Content {
bytes32 name;
uint64 views;
}
uint public premiumCost = 0.1 ether;
uint public premiumTime = 10000 /*Block height*/;
address private owner;
uint64 totalViews = 0;
bytes32[] ... | pay the content not already paid */ Divide the subscription premium cost amoung all the contents w.r.t. their total views */ | function goodbye() external onlyOwner(){
for(uint i = 0; i<contentsName.length; i++){
BaseContentManagement content = BaseContentManagement(name2address[contentsName[i]]);
uint8 _fair;
uint8 _cool;
uint8 _appr;
(_fair, _cool, _appr) = content.rat... | 12,894,477 | [
1,
10239,
326,
913,
486,
1818,
30591,
342,
21411,
831,
326,
4915,
23020,
5077,
6991,
2125,
465,
75,
777,
326,
2939,
341,
18,
86,
18,
88,
18,
3675,
2078,
7361,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7494,
1637,
73,
1435,
3903,
1338,
5541,
1435,
95,
203,
3639,
364,
12,
11890,
277,
273,
374,
31,
277,
32,
3980,
461,
18,
2469,
31,
277,
27245,
95,
203,
5411,
3360,
1350,
10998,
913,
273,
3360,
1350,
10998,
12,
529,
22,... |
/**
*Submitted for verification at Etherscan.io on 2021-10-29
*/
// Sources flattened with hardhat v2.6.4 https://hardhat.org
// File contracts/lib/RLPReader.sol
/*
* @author Hamdi Allam [email protected]
* Please reach out with any questions or concerns
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
l... | * @dev Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding to learn more about how these ids are created. This function call must use less than 30 000 gas./ File contracts/interfaces/IERC721.sol* @dev Required interface of an ERC721 compliant contract./ | interface IERC721 is IERC165 {
event Transfer(
address indexed from,
address indexed to,
uint256 indexed tokenId
);
event Approval(
address indexed owner,
address indexed approved,
uint256 indexed tokenId
);
event ApprovalForAll(
address inde... | 2,445,789 | [
1,
1356,
638,
309,
333,
6835,
4792,
326,
1560,
2553,
635,
1375,
5831,
548,
8338,
2164,
326,
4656,
358,
16094,
1898,
2973,
3661,
4259,
3258,
854,
2522,
18,
1220,
445,
745,
1297,
999,
5242,
2353,
5196,
20546,
16189,
18,
19,
1387,
20092,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
654,
39,
27,
5340,
353,
467,
654,
39,
28275,
288,
203,
565,
871,
12279,
12,
203,
3639,
1758,
8808,
628,
16,
203,
3639,
1758,
8808,
358,
16,
203,
3639,
2254,
5034,
8808,
1147,
548,
203,
565,
11272,
203,
203,
565,
871,... |
./full_match/1/0x309fAe80fa90858508d475A2f94e3aa722E87ead/sources/0x0.sol | force Swap back if slippage issues. | function forceSwapBack() external onlyOwner {
require(
balanceOf(address(this)) >= swapTokensAtAmount,
"Can only swap when token amount is at or higher than restriction"
);
swapping = true;
swapBack();
swapping = false;
... | 16,441,082 | [
1,
5734,
12738,
1473,
309,
272,
3169,
2433,
8296,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
2944,
12521,
2711,
1435,
3903,
1338,
5541,
288,
203,
5411,
2583,
12,
203,
7734,
11013,
951,
12,
2867,
12,
2211,
3719,
1545,
7720,
5157,
861,
6275,
16,
203,
7734,
315,
2568,
1338,
7720,
1347,
1147,
3844,
353,
622,
578,
... |
./full_match/1/0x2E516a4Db7Cf86daBe7653A7E60Ca9a1f4E96910/sources/coshi/multiOwnable.sol | VARIABLES Reverse lookup tables for owners and allOperations Owners voting mask per operations EVENTS ACCESSORS | contract Multiownable {
uint256 public ownersGeneration;
uint256 public howManyOwnersDecide;
address[] public owners;
bytes32[] public allOperations;
address internal insideCallSender;
uint256 internal insideCallCount;
mapping(bytes32 => uint) public allOperationsIndicies;
mapping(by... | 4,926,078 | [
1,
16444,
55,
18469,
3689,
4606,
364,
25937,
471,
777,
9343,
14223,
9646,
331,
17128,
3066,
1534,
5295,
9964,
55,
13255,
14006,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
16351,
5991,
995,
429,
288,
203,
203,
203,
565,
2254,
5034,
1071,
25937,
13842,
31,
203,
565,
2254,
5034,
1071,
3661,
5594,
5460,
414,
1799,
831,
31,
203,
565,
1758,
8526,
1071,
25937,
31,
203,
565,
1731,
1578,
8526,
1071,
777,
9... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
... | * @dev Internal function to clear current approval and transfer the ownership of a given token ID @param _from address which you want to send tokens from @param _to address which you want to transfer the token to @param _tokenId uint256 ID of the token to be transferred/ | function clearApprovalAndTransfer(address _from, address _to, uint256 _tokenId) internal {
require(_to != address(0));
require(_to != ownerOf(_tokenId));
require(ownerOf(_tokenId) == _from);
clearApproval(_from, _tokenId);
removeToken(_from, _tokenId);
addToken(_to, ... | 12,638,929 | [
1,
3061,
445,
358,
2424,
783,
23556,
471,
7412,
326,
23178,
434,
279,
864,
1147,
1599,
225,
389,
2080,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
225,
389,
869,
1758,
1492,
1846,
2545,
358,
7412,
326,
1147,
358,
225,
389,
2316,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2424,
23461,
1876,
5912,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
2316,
548,
13,
2713,
288,
203,
3639,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
3639,
2583,
24899,
869,
480,
3410,
951,
24899,... |
./full_match/4/0xcF9C5EA1373f233F323156C2249662Cf9c60386d/sources/contracts/EURSToken.sol | * Get address of message sender. @return address of this smart contract/ | function messageSenderAddress () internal virtual view returns (address) {
return msg.sender;
}
| 755,081 | [
1,
967,
1758,
434,
883,
5793,
18,
327,
1758,
434,
333,
13706,
6835,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
883,
12021,
1887,
1832,
2713,
5024,
1476,
1135,
261,
2867,
13,
288,
203,
565,
327,
1234,
18,
15330,
31,
203,
225,
289,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
... |
//Address: 0x34eee0379a71e445b0dc52bda1d733c449ef1246
//Contract name: hotPotatoAuction
//Balance: 0.154873437500000028 Ether
//Verification Date: 6/18/2018
//Transacion Count: 12
// CODE STARTS HERE
pragma solidity ^0.4.21;
// Contract for Auction of the starship Astra Kal
library SafeMath {
/**
* @dev Multip... | * @dev transfer token for a specified address @param _to The address to transfer to./ | function transfer(address _to) public returns (bool) {
require(_to != address(0));
require(msg.sender == owner);
owner = _to;
emit Transfer(msg.sender, _to);
return true;
}
| 12,694,307 | [
1,
13866,
1147,
364,
279,
1269,
1758,
225,
389,
869,
1021,
1758,
358,
7412,
358,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
225,
445,
7412,
12,
2867,
389,
869,
13,
1071,
1135,
261,
6430,
13,
288,
203,
565,
2583,
24899,
869,
480,
1758,
12,
20,
10019,
203,
565,
2583,
12,
3576,
18,
15330,
422,
3410,
1769,
203,
203,
565,
3410,
273,
389,
869,
31,
203,
... |
//SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.7.1;
pragma experimental ABIEncoderV2;
// import '@nomiclabs/buidler/console.sol';
import "./ERC1155.sol";
import "./IERC1155Views.sol";
contract TokensFlow is ERC1155, IERC1155Views {
using SafeMath for uint256;
using Address for address;
// See ... | We don't check for circularities. require(_child != 0 && _child <= maxTokenId); not needed | function setTokenParent(uint256 _child, uint256 _parent) external {
require(msg.sender == tokenOwners[_child]);
_setTokenParentNoCheck(_child, _parent);
}
| 1,073,095 | [
1,
3218,
2727,
1404,
866,
364,
15302,
1961,
18,
2583,
24899,
3624,
480,
374,
597,
389,
3624,
1648,
943,
1345,
548,
1769,
225,
486,
3577,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
22629,
3054,
12,
11890,
5034,
389,
3624,
16,
2254,
5034,
389,
2938,
13,
3903,
288,
203,
3639,
2583,
12,
3576,
18,
15330,
422,
1147,
5460,
414,
63,
67,
3624,
19226,
203,
203,
3639,
389,
542,
1345,
3054,
2279,
1564,
24899... |
./full_match/1/0x1a8C505792e267B3C3b92aBe0BC791a61A0ede90/sources/contracts/vesting/StablzVesting.sol | @notice Import vesting data @param _addresses List of addresses @param _amounts List of amounts @param _tgePercent TGE percentage e.g. 20 is 20% @param _vestingPeriod Vesting period in seconds e.g. 2592000 is 30 days | function importData(address[] calldata _addresses, uint[] calldata _amounts, uint _tgePercent, uint _vestingPeriod) external onlyOwner {
require(!_hasVestingStarted(), "StablzVesting: Cannot import data after vesting has started");
require(_addresses.length == _amounts.length, "StablzVesting: _addre... | 9,818,956 | [
1,
5010,
331,
10100,
501,
225,
389,
13277,
987,
434,
6138,
225,
389,
8949,
87,
987,
434,
30980,
225,
389,
88,
908,
8410,
399,
7113,
11622,
425,
18,
75,
18,
4200,
353,
4200,
9,
225,
389,
90,
10100,
5027,
776,
10100,
3879,
316,
3974... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1930,
751,
12,
2867,
8526,
745,
892,
389,
13277,
16,
2254,
8526,
745,
892,
389,
8949,
87,
16,
2254,
389,
88,
908,
8410,
16,
2254,
389,
90,
10100,
5027,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
12,
5,
67,
5332,
58... |
pragma solidity ^0.4.18;
// ERC Token Standard #20 Interface
// https://github.com/ethereum/EIPs/issues/20
contract ERC20Interface {
/// @notice Get the total metadollars supply
function totalSupply() constant returns (uint256 totalAmount);
/// @notice Get the account balance of another account with address _... | price of 1 metadollar in weis for the ICO time
| uint256 public ICOprice; | 14,541,625 | [
1,
8694,
434,
404,
312,
1167,
25442,
316,
732,
291,
364,
326,
467,
3865,
813,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
202,
11890,
5034,
1071,
26899,
3817,
3057,
31,
6862,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzepp... | * @dev Withdraw funds from contract. Only callable by owner./ | function withdraw() public onlyOwner {
payable(msg.sender).sendValue(address(this).balance);
}
| 1,538,714 | [
1,
1190,
9446,
284,
19156,
628,
6835,
18,
5098,
4140,
635,
3410,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1435,
1071,
1338,
5541,
288,
203,
565,
8843,
429,
12,
3576,
18,
15330,
2934,
4661,
620,
12,
2867,
12,
2211,
2934,
12296,
1769,
203,
225,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.10;
// Miners create Elixor (EXOR), which they then convert to Elixir (ELIX)
contract elixor {
string public name;
string public symbol;
uint8 public decimals;
uint256 public startTime;
uint256 public totalSupply;
bool public balanceImportsComplete;
mapping (address => boo... | Locks up all changes to balances | function lockBalanceChanges() {
balanceImportsComplete=true;
}
| 1,064,036 | [
1,
19159,
731,
777,
3478,
358,
324,
26488,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
915,
2176,
13937,
7173,
1435,
288,
203,
4202,
11013,
13347,
6322,
33,
3767,
31,
203,
282,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
interface ERC20 {
function totalSupply() external view returns (uint256 supply);
function balanceOf(address _owner) external view returns (uint256 balance);
function transfer(address _to, uint256 _value) external returns (bool success);
f... | @title Contract implements logic of calling boost/repay in the automatic system | contract CompoundMonitor is AdminAuth, DSMath, CompoundSafetyRatio {
using SafeERC20 for ERC20;
enum Method {
Boost,
Repay
}
uint256 public MAX_GAS_PRICE = 800 gwei;
uint256 public REPAY_GAS_COST = 1_500_000;
uint256 public BOOST_GAS_COST = 1_000_000;
address public const... | 9,857,069 | [
1,
8924,
4792,
4058,
434,
4440,
14994,
19,
266,
10239,
316,
326,
5859,
2619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
21327,
7187,
353,
7807,
1730,
16,
463,
7303,
421,
16,
21327,
26946,
14369,
8541,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
4232,
39,
3462,
31,
203,
203,
565,
2792,
2985,
288,
203,
3639,
17980,
669,
16,
203,
3639,
868... |
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "../libraries/Errors.sol";
contract SwishToken is AccessControl, ERC20 {
... | use current supply to gauge cliffthis will cause a bit of overflow into the next cliff rangebut should be within reasonable levels.requires a max supply check thoughmint if below total cliffsfor reduction% take inverse of current cliffreducesupply cap check | function mint(address _to, uint256 _amount) external {
require(hasRole(MINTER_ROLE, _msgSender()), Errors.UNAUTHORIZED);
uint256 supply = totalSupply();
uint256 cliff = supply / reductionPerCliff;
if (cliff < totalCliffs) {
uint256 reduction = totalCliffs - cliff;
... | 14,926,694 | [
1,
1202,
783,
14467,
358,
13335,
927,
3048,
2211,
903,
4620,
279,
2831,
434,
9391,
1368,
326,
1024,
927,
3048,
1048,
12885,
1410,
506,
3470,
23589,
7575,
18,
18942,
279,
943,
14467,
866,
11376,
81,
474,
309,
5712,
2078,
927,
430,
2556... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
3903,
288,
203,
3639,
2583,
12,
5332,
2996,
12,
6236,
2560,
67,
16256,
16,
389,
3576,
12021,
1435,
3631,
9372,
18,
2124,
28383,
1769,
203,
203,
3639,
2254,
... |
pragma solidity 0.5.11; // optimization runs: 200, evm version: petersburg
interface DharmaKeyRingFactoryV2Interface {
// Fires an event when a new key ring is deployed and initialized.
event KeyRingDeployed(address keyRing, address userSigningKey);
function newKeyRing(
address userSigningKey, address targ... | * @title DharmaKeyRingFactoryV2 @author 0age @notice This contract deploys new Dharma Key Ring instances as "Upgrade Beacon" proxies that reference a shared implementation contract specified by the Dharma Key Ring Upgrade Beacon contract. It also supplies methods for performing additional operations post-deployment, in... | contract DharmaKeyRingFactoryV2 is DharmaKeyRingFactoryV2Interface {
bytes4 private constant _INITIALIZE_SELECTOR = bytes4(0x30fc201f);
address private constant _KEY_RING_UPGRADE_BEACON = address(
0x0000000000BDA2152794ac8c76B2dc86cbA57cad
);
constructor() public {
DharmaKeyRingInitializer initializer... | 15,868,931 | [
1,
40,
30250,
2540,
653,
10369,
1733,
58,
22,
225,
374,
410,
225,
1220,
6835,
5993,
383,
1900,
394,
463,
30250,
2540,
1929,
25463,
3884,
487,
315,
10784,
4823,
16329,
6,
13263,
716,
2114,
279,
5116,
4471,
6835,
1269,
635,
326,
463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
30250,
2540,
653,
10369,
1733,
58,
22,
353,
463,
30250,
2540,
653,
10369,
1733,
58,
22,
1358,
288,
203,
225,
1731,
24,
3238,
5381,
389,
28497,
15641,
67,
4803,
916,
273,
1731,
24,
12,
20,
92,
5082,
7142,
6734,
74,
1... |
./partial_match/56/0x906C660CF518e64D62F367D89a0A4B14d24449DB/sources/MasterLuckyBestCoin.sol | LBCBar with Governance. | contract LBCBar is BEP20('LBC Bar', 'LBCBAR') {
function mint(address _to, uint256 _amount) public onlyOwner {
_mint(_to, _amount);
_moveDelegates(address(0), _delegates[_to], _amount);
}
function burn(address _from ,uint256 _amount) public onlyOwner {
_burn(_from, _amount);
... | 11,160,529 | [
1,
12995,
39,
5190,
598,
611,
1643,
82,
1359,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
511,
16283,
5190,
353,
9722,
52,
3462,
2668,
12995,
39,
16654,
2187,
296,
12995,
8876,
985,
6134,
288,
203,
203,
565,
445,
312,
474,
12,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
1071,
1338,
5541,
288,
203,
3639,
389,... |
./full_match/1/0x9f6a8939d5f45d3C51bAF58dadaB04D75b8Da4C1/sources/contracts/MAHAXLocker.sol | @notice Calculate total voting power @dev Adheres to the ERC20 `totalSupply` interface for Aragon compatibility @return Total voting power | function totalSupplyAtT(uint256 t) public view returns (uint256) {
uint256 _epoch = epoch;
Point memory lastPoint = pointHistory[_epoch];
return _supplyAt(lastPoint, t);
}
| 2,959,403 | [
1,
8695,
2078,
331,
17128,
7212,
225,
4052,
27629,
358,
326,
4232,
39,
3462,
1375,
4963,
3088,
1283,
68,
1560,
364,
1201,
346,
265,
8926,
327,
10710,
331,
17128,
7212,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
2078,
3088,
1283,
861,
56,
12,
11890,
5034,
268,
13,
1071,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
389,
12015,
273,
7632,
31,
203,
3639,
4686,
3778,
1142,
2148,
273,
1634,
5623,
63,
67,
12015,
1553... |
pragma solidity ^0.5.1;
// This token latch uses buy and sell orders to operate
// Follows the Tr100c protocol
contract ERC20 {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spen... | computing fees for selling is difficult and expensive, so I'm not doing it. Not worth it. | return (getSellPrice()*amount)/10000;
| 1,065,691 | [
1,
13406,
310,
1656,
281,
364,
357,
2456,
353,
3122,
17551,
471,
19326,
16,
1427,
467,
17784,
486,
9957,
518,
18,
225,
2288,
26247,
518,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
202,
202,
2463,
261,
588,
55,
1165,
5147,
1435,
14,
8949,
13176,
23899,
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,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "@openzeppelin/upgrades-core/contracts/Initializable.sol";
import "hardhat/console.sol";
contract Lottery is Initializable{
uint[] public winningLotteryNumber;//开奖号码
uint public lotteryBet;//每次投注的金额
uint256 public lastUserId;//用户投注编号
address pu... | 投注require(msg.value == lotteryBet, "invalid price");测试时关闭 | function throwIn(uint8[] calldata buyLotteryNumber) public payable{
LotteryPlayers memory lotteryPlayers = LotteryPlayers({
lotteryNumber:buyLotteryNumber
});
idToLotteryPlayers[lastUserId]=lotteryPlayers;
addressToUserIds[msg.sender].push(lastUserId);
}
| 13,099,364 | [
1,
167,
237,
248,
167,
116,
106,
6528,
12,
3576,
18,
1132,
422,
17417,
387,
93,
38,
278,
16,
315,
5387,
6205,
8863,
167,
118,
238,
169,
112,
248,
167,
250,
119,
166,
232,
116,
170,
250,
260,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
604,
382,
12,
11890,
28,
8526,
745,
892,
30143,
48,
352,
387,
93,
1854,
13,
1071,
8843,
429,
95,
203,
3639,
511,
352,
387,
93,
1749,
3907,
3778,
17417,
387,
93,
1749,
3907,
273,
511,
352,
387,
93,
1749,
3907,
12590,
... |
./full_match/1/0x24f5cf5273E56Bb5b02e3adE135dB4c5B4B63741/sources/ChainFarmers.sol | * @notice Returns if presale times are active for a given token/ | function tokenPresaleTimeIsActive(uint256 _tokenId)
public
view
returns (bool)
{
if (tokenUsePresaleTimes[_tokenId] == false) {
return true;
}
return
block.timestamp >= tokenPresaleSaleStartTime[_tokenId] &&
block.timestamp <= t... | 16,427,992 | [
1,
1356,
309,
4075,
5349,
4124,
854,
2695,
364,
279,
864,
1147,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1147,
12236,
5349,
950,
2520,
3896,
12,
11890,
5034,
389,
2316,
548,
13,
203,
3639,
1071,
203,
3639,
1476,
203,
3639,
1135,
261,
6430,
13,
203,
565,
288,
203,
3639,
309,
261,
2316,
3727,
12236,
5349,
10694,
63,
67,
2316... |
pragma solidity ^0.4.11;
import "./usingOraclize.sol";
contract Dice is usingOraclize {
uint256 public pwin = 5000; //probability of winning (10000 = 100%)
uint256 public edge = 200; //edge percentage (10000 = 100%)
uint256 public maxWin = 100; //max win (before edge is taken) as percentage of bankroll (10... | /Resets emergency withdrawal proposal. Investors must vote again | The owner can use this function to force the exit of an investor from the
contract during an emergency withdrawal in the following situations:
- Unresponsive investor
- Investor demanding to be paid in other to vote, the facto-blackmailing
other investors
function forceDivestOfOneInv... | 7,328,443 | [
1,
19,
18900,
801,
24530,
598,
9446,
287,
14708,
18,
5454,
395,
1383,
1297,
12501,
3382,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1021,
3410,
848,
999,
333,
445,
358,
2944,
326,
2427,
434,
392,
2198,
395,
280,
628,
326,
203,
565,
6835,
4982,
392,
801,
24530,
598,
9446,
287,
316,
326,
3751,
28474,
30,
203,
3639,
300,
1351,
455,
24727,
2198,
395,
280,
... |
./full_match/43114/0xeCfE536a209e405Db19887830b366E397f5B917a/sources/token.sol | split the contract balance into halves capture the contract's current ETH balance. this is so that we can capture exactly the amount of ETH that the swap creates, and not make the liquidity event include any ETH that has been manually sent to the contract swap tokens for ETH how much ETH did we just swap into? | function swapAndLiquify(uint256 contractTokenBalance) public {
uint256 half = contractTokenBalance.div(2);
uint256 otherHalf = contractTokenBalance.sub(half);
uint256 initialBalance = address(this).balance;
uint256 newBalance = address(this).balance.sub(initialBalance);
... | 4,563,941 | [
1,
4939,
326,
6835,
11013,
1368,
19514,
3324,
7477,
326,
6835,
1807,
783,
512,
2455,
11013,
18,
333,
353,
1427,
716,
732,
848,
7477,
8950,
326,
3844,
434,
512,
2455,
716,
326,
7720,
3414,
16,
471,
486,
1221,
326,
4501,
372,
24237,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
565,
445,
7720,
1876,
48,
18988,
1164,
12,
11890,
5034,
6835,
1345,
13937,
13,
1071,
225,
288,
203,
3639,
2254,
5034,
8816,
273,
6835,
1345,
13937,
18,
2892,
12,
22,
1769,
203,
3639,
2254,
5034,
1308,
16168,
273,
6835,
1345,
13937,... |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
... | * @dev Withdraw balance of this contract to the `wallet` address @notice Used only if there are some leftover funds (because of topUpBalance)/ | function withdrawBalance() public mustBeAtStage(Stage.Finalized) {
wallet.transfer(this.balance);
}
| 12,666,328 | [
1,
1190,
9446,
11013,
434,
333,
6835,
358,
326,
1375,
19177,
68,
1758,
225,
10286,
1338,
309,
1915,
854,
2690,
29709,
284,
19156,
261,
26274,
434,
1760,
1211,
13937,
13176,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
13937,
1435,
1071,
1297,
1919,
861,
8755,
12,
8755,
18,
7951,
1235,
13,
288,
203,
565,
9230,
18,
13866,
12,
2211,
18,
12296,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity >=0.4.23;
/**
* @author Dan Emmons at Loci.io
*/
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event Owners... | enable recovery of ether sent to this contract if zero requested, send the entire amount, otherwise the amount requested | function ownerTransferWei(address _beneficiary, uint256 _value) external onlyOwner {
require(_beneficiary != 0x0);
require(_beneficiary != address(token));
uint256 _amount = _value > 0 ? _value : address(this).balance;
_beneficiary.transfer(_amount);
}
| 6,136,395 | [
1,
7589,
11044,
434,
225,
2437,
3271,
358,
333,
6835,
309,
3634,
3764,
16,
1366,
326,
7278,
3844,
16,
3541,
326,
3844,
3764,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3410,
5912,
3218,
77,
12,
2867,
389,
70,
4009,
74,
14463,
814,
16,
2254,
5034,
389,
1132,
13,
3903,
1338,
5541,
288,
203,
3639,
2583,
24899,
70,
4009,
74,
14463,
814,
480,
374,
92,
20,
1769,
203,
3639,
2583,
24899,
70... |
./full_match/3/0xE92df22c47562E171Df5EdaC071154fF1D9EA88e/sources/contracts/StandardToken.sol | * @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/ | function transferFrom(address _from, address _to, uint256 _value) public override returns (bool) {
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
require(_to != address(0));
balances[_from] = balances[_from].sub(_value);
balances[_to] = ba... | 8,145,240 | [
1,
5912,
2430,
628,
1245,
1758,
358,
4042,
225,
389,
2080,
1758,
1021,
1758,
1492,
1846,
2545,
358,
1366,
2430,
628,
225,
389,
869,
1758,
1021,
1758,
1492,
1846,
2545,
358,
7412,
358,
225,
389,
1132,
2254,
5034,
326,
3844,
434,
2430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7412,
1265,
12,
2867,
389,
2080,
16,
1758,
389,
869,
16,
2254,
5034,
389,
1132,
13,
1071,
3849,
1135,
261,
6430,
13,
288,
203,
3639,
2583,
24899,
1132,
1648,
324,
26488,
63,
67,
2080,
19226,
203,
3639,
2583,
24899,
1132... |
pragma solidity ^0.4.24;
/**
* @title It holds the storage variables related to ERC20DividendCheckpoint module
*/
contract ERC20DividendCheckpointStorage {
// Mapping to token address for each dividend
mapping (uint256 => address) public dividendTokens;
}
/**
* @title Holds the storage varia... | * @dev Sets the address of the owner/ | function _setOwner(address _newOwner) internal {
require(_newOwner != address(0), "Address should not be 0x");
__owner = _newOwner;
}
| 926,187 | [
1,
2785,
326,
1758,
434,
326,
3410,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
542,
5541,
12,
2867,
389,
2704,
5541,
13,
2713,
288,
203,
3639,
2583,
24899,
2704,
5541,
480,
1758,
12,
20,
3631,
315,
1887,
1410,
486,
506,
374,
92,
8863,
203,
3639,
1001,
8443,
273,
389,
2704,
5541,
31,
203,
56... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
pragma abicoder v2;
import './UserStorage.sol';
import './TweetStorage.sol';
contract SolidTwitter is OwnedObject {
address public userStorageAddr;
address public tweetStorageAddr;
// Aware of the actual data, so that the storage contr... | Aware of the actual data, so that the storage contract can be updated easily | contract SolidTwitter is OwnedObject {
address public userStorageAddr;
address public tweetStorageAddr;
address public userDataAddr;
address public tweetDataAddr;
pragma solidity >=0.7.0 <0.9.0;
modifier storageBinded() {
require(userStorageAddr != address(0));
require(tweetS... | 7,305,792 | [
1,
10155,
434,
326,
3214,
501,
16,
1427,
716,
326,
2502,
6835,
848,
506,
3526,
17997,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
348,
7953,
23539,
6132,
353,
14223,
11748,
921,
225,
288,
203,
377,
203,
565,
1758,
1071,
729,
3245,
3178,
31,
203,
565,
1758,
1071,
18320,
3245,
3178,
31,
203,
203,
565,
1758,
1071,
13530,
3178,
31,
203,
565,
1758,
1071,
... |
pragma solidity 0.4.24;
library ECRecovery {
/**
* @dev Recover signer address from a message by using his signature
* @param hash bytes32 message, the hash is the signed message. What is recovered is the signer address.
* @param sig bytes signature, the signature is generated using web3.eth.sign()
*/
... | @dev A set of addresses that are approved to sign on behalf of this contract @dev The nonce associated with each hash(accountId). In this case, the account is an external concept that does not correspond to an Ethereum address. Therefore, the hash of the accountId is used | {
token = _token;
tokenHolder = _tokenHolder;
}
| 7,878,347 | [
1,
37,
444,
434,
6138,
716,
854,
20412,
358,
1573,
603,
12433,
6186,
434,
333,
6835,
225,
1021,
7448,
3627,
598,
1517,
1651,
12,
25701,
2934,
225,
657,
333,
648,
16,
326,
2236,
353,
392,
3903,
12402,
716,
1552,
486,
4325,
358,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
288,
203,
3639,
1147,
273,
389,
2316,
31,
203,
3639,
1147,
6064,
273,
389,
2316,
6064,
31,
203,
565,
289,
203,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
./full_match/5/0x2f95A41613a05a50dF71E296f963AB3C2B9Ea7fC/sources/contracts/CrowdFunding.sol | Goerli ETH / USD Address https:docs.chain.link/docs/ethereum-addresses/ ETH/USD rate in 18 digit or (Both will do the same thing) return uint256(answer * 1e10); 1* 10 ** 10 == 10000000000 | function getPrice() internal view returns (uint256) {
AggregatorV3Interface priceFeed = AggregatorV3Interface(
0xD4a33860578De61DBAbDc8BFdb98FD742fA7028e
);
(, int256 answer, , , ) = priceFeed.latestRoundData();
return uint256(answer * 10000000000);
}
| 1,932,344 | [
1,
5741,
264,
549,
512,
2455,
342,
587,
9903,
5267,
2333,
30,
8532,
18,
5639,
18,
1232,
19,
8532,
19,
546,
822,
379,
17,
13277,
19,
512,
2455,
19,
3378,
40,
4993,
316,
6549,
8035,
578,
261,
20240,
903,
741,
326,
1967,
7757,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
915,
25930,
1435,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
10594,
639,
58,
23,
1358,
6205,
8141,
273,
10594,
639,
58,
23,
1358,
12,
203,
5411,
374,
17593,
24,
69,
3707,
28,
4848,
25,
8285,
758,
9498,
2290,
5895,
... |
/**
*Submitted for verification at Etherscan.io on 2021-08-29
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
/**
* @dev Interface for discreet in addition to the standard ERC721 interface.
*/
interface discreetNFTInterface {
/**
* @dev Mint token with the supplied tokenId if it is currently av... | * @dev Coalesce supportsInterface from inherited contracts./ | function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
return super.supportsInterface(interfaceId);
}
| 7,702,917 | [
1,
4249,
24827,
6146,
1358,
628,
12078,
20092,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3849,
12,
654,
39,
27,
5340,
16,
4232,
39,
27,
5340,
3572,
25121,
13,
1135,
261,
6430,
13,
288,
203,
3639,
327,
2240,
18,
28064,
1358,
12,
5831,
548,
1769,
203,
5... |
pragma solidity ^0.5.0;
import "../token/KIP7/KIP7Pausable.sol";
import "./PauserRoleMock.sol";
// mock class using KIP7Pausable
contract KIP7PausableMock is KIP7Pausable, PauserRoleMock {
constructor (address initialAccount, uint initialBalance) public {
_mint(initialAccount, initialBalance);
}
}
| mock class using KIP7Pausable | contract KIP7PausableMock is KIP7Pausable, PauserRoleMock {
constructor (address initialAccount, uint initialBalance) public {
_mint(initialAccount, initialBalance);
}
}
| 1,789,991 | [
1,
22851,
667,
1450,
1475,
2579,
27,
16507,
16665,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
1475,
2579,
27,
16507,
16665,
9865,
353,
1475,
2579,
27,
16507,
16665,
16,
21800,
1355,
2996,
9865,
288,
203,
565,
3885,
261,
2867,
2172,
3032,
16,
2254,
2172,
13937,
13,
1071,
288,
203,
3639,
389,
81,
474,
12,
6769,
3032,
... |
./partial_match/1/0x11b2164DDf1C3c0a420cEaD050d422B26530d11C/sources/contracts/facets/ERC712/ERC712Lib.sol | @dev Initializes the storage with app name and version @param name The name of the app as used for the EIP712 domain separator. @param version The version of the app as used for the EIP712 domain separator. l._hashedName = keccak256(bytes(l._name)); l._hashedVersion = keccak256(bytes(l._version)); Reset prior values i... | function init(string memory name, string memory version) internal {
ERC712Storage.Layout storage l = ERC712Storage.layout();
l._name = name;
l._version = version;
l._hashedName = 0;
l._hashedVersion = 0;
}
| 9,188,799 | [
1,
9685,
326,
2502,
598,
595,
508,
471,
1177,
225,
508,
1021,
508,
434,
326,
595,
487,
1399,
364,
326,
512,
2579,
27,
2138,
2461,
4182,
18,
225,
1177,
1021,
1177,
434,
326,
595,
487,
1399,
364,
326,
512,
2579,
27,
2138,
2461,
4182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
1080,
3778,
508,
16,
533,
3778,
1177,
13,
2713,
288,
203,
3639,
4232,
39,
27,
2138,
3245,
18,
3744,
2502,
328,
273,
4232,
39,
27,
2138,
3245,
18,
6741,
5621,
203,
203,
3639,
328,
6315,
529,
273,
508,
31,
2... |
// File: contracts/ERC721.sol
// eterart-contract
// contracts/ERC721.sol
pragma solidity ^0.4.24;
/**
* @title ERC-721 contract interface.
*/
contract ERC721 {
// ERC20 compatible functions.
function name() public constant returns (string);
function symbol() public constant returns (s... | Tokens ownership registry. | mapping (uint => Art) public registry;
| 14,042,355 | [
1,
5157,
23178,
4023,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
516,
9042,
13,
1071,
4023,
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,
-... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../ERC677/ERC677.sol";
import "../Flan.sol";
import "./ProposalFactory.sol";
import "../facades/SwapFactoryLike.sol";
import "../facades/UniPairLik... | @notice pushes the decision to execute a successful proposal. For convenience only | function executeCurrentProposal() public updateCurrentProposal {}
| 7,274,572 | [
1,
6206,
281,
326,
14604,
358,
1836,
279,
6873,
14708,
18,
2457,
13553,
1338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1836,
3935,
14592,
1435,
1071,
1089,
3935,
14592,
2618,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
./partial_match/1/0x2762B1C6480757395788cB3C1458c507f9d44378/sources/zero.sol | * @dev See {IERC721Metadata-tokenURI}./ | function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, "/", (tokenId+1).t... | 9,126,928 | [
1,
9704,
288,
45,
654,
39,
27,
5340,
2277,
17,
2316,
3098,
5496,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1147,
3098,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
3849,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
3631,
315,
654,
39,
27,
5340,
2277,
30,
3699,
843,
364,
1661,
19041,
1147,... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, ... | * @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... | abstract contract Ownable is Context {
address private _owner;
address private _pending_owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_setOwner(_msgSender());
}
function owner() public view virtual returns (address) {
... | 13,826,506 | [
1,
8924,
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,
2236,
903,
506,
326,
1245,
716,
5993,
383... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14223,
6914,
353,
1772,
288,
203,
565,
1758,
3238,
389,
8443,
31,
203,
565,
1758,
3238,
389,
9561,
67,
8443,
31,
203,
203,
565,
871,
14223,
9646,
5310,
1429,
4193,
12,
2867,
8808,
2416,
5541,
16,
1758,
8808,
394,
554... |
pragma solidity ^0.4.24;
import "./ownership/Ownable.sol";
import "./cryptography/ECDSA.sol";
// import "./interfaces/IERC20.sol";
/**
* @title Micro payments contract for m2m payments based on one-to-many state channel architecture
* @notice Only contract owner can add or remove trusted contract addresses
*/
contrac... | * @notice Function for retrieving information about a channel. @param _sender address that want to send the micro-payment @param _receiver address that is to receive the micro-payment @param _openBlockNumber the block number at which the channel was created @return Channel information: unique_identifier, deposit, settl... | function getChannelInfo(
address _sender,
address _receiver,
uint256 _openBlockNumber)
external view returns (bytes32, uint256, uint256, uint256, uint256) {
bytes32 key = getKey(_sender, _receiver, _openBlockNumber);
require(channels[key].openBlockNumber > 0, 'channel doe... | 997,107 | [
1,
2083,
364,
17146,
1779,
2973,
279,
1904,
18,
225,
389,
15330,
1758,
716,
2545,
358,
1366,
326,
6481,
17,
9261,
225,
389,
24454,
1758,
716,
353,
358,
6798,
326,
6481,
17,
9261,
225,
389,
3190,
1768,
1854,
326,
1203,
1300,
622,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16454,
966,
12,
203,
3639,
1758,
389,
15330,
16,
203,
3639,
1758,
389,
24454,
16,
203,
3639,
2254,
5034,
389,
3190,
1768,
1854,
13,
203,
565,
3903,
1476,
1135,
261,
3890,
1578,
16,
2254,
5034,
16,
2254,
5034,
16,
2254,
... |
./partial_match/42/0xe9d078aa6BcE3C220636eE90eF255ad623FF5AfC/sources/LENREK1.sol | * @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements - `account` cannot be the zero address. - `account` must have at least `amount` tokens./ | function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(
amount,
"ERC20: burn amount exceed... | 3,361,485 | [
1,
9378,
28599,
1375,
8949,
68,
2430,
628,
1375,
4631,
9191,
9299,
2822,
326,
2078,
14467,
18,
7377,
1282,
279,
288,
5912,
97,
871,
598,
1375,
869,
68,
444,
358,
326,
3634,
1758,
18,
29076,
300,
1375,
4631,
68,
2780,
506,
326,
3634,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
565,
445,
389,
70,
321,
12,
2867,
2236,
16,
2254,
5034,
3844,
13,
2713,
5024,
288,
203,
3639,
2583,
12,
4631,
480,
1758,
12,
20,
3631,
315,
654,
39,
3462,
30,
18305,
628,
326,
3634,
1758,
8863,
203,
203,
3639,
389,
5771,
1345,
... |
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0 <0.9.0;
import "../node_modules/@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "../node_modules/@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
// imports en remix
// import "https://github.com/Op... | VER COMO ARREGLARLO
| require(commitedMoves[player2] == 0, "you already commited your move"); | 6,385,094 | [
1,
2204,
5423,
51,
6052,
5937,
48,
985,
1502,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2583,
12,
7371,
329,
19297,
63,
14872,
22,
65,
422,
374,
16,
315,
19940,
1818,
3294,
329,
3433,
3635,
8863,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity ^0.4.23;
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two ... | accumulated amount record for one month
| accumulatedRecord monthWithdrawRec; | 9,845,213 | [
1,
8981,
5283,
690,
3844,
1409,
364,
1245,
3138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
24893,
2115,
3138,
1190,
9446,
5650,
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,... |
// -----------------------------------------------------------------------------
// File FR_ADJ.SOL
//
// (c) Koziev Elijah
// Solarix Intellectronix project http://www.solarix.ru
//
// Content:
// Лексикон - определения прилагательных для французского раздела Словаря.
// --------------------------------------------... | adamantin - adamantins
| FR_GENRE:MASCULINE FR_NOMBRE { "" "%+S" } | 14,036,519 | [
1,
361,
301,
970,
267,
300,
1261,
301,
970,
2679,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
14583,
67,
16652,
862,
30,
5535,
2312,
1506,
3740,
14583,
67,
50,
1872,
38,
862,
288,
1408,
565,
2213,
15,
55,
6,
289,
1377,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/5/0x2E3dD5F1E9E3180a64E367B2aCD56B4004039590/sources/PlayerManagement.sol | @dev Feel free to update this as the kind of data fetched from this oracle becomes clearer. | interface IOracle {
pragma solidity ^0.8.4;
import { IPXP } from "./ParagonsDAOPlayerXP.sol";
struct GeneralData {
uint256 pdtPrice;
uint256 minRankForTransfers;
}
struct PDPData {
uint256 pdtCostPerNameChange;
uint256 pdtCostPerRank;
uint256 pxpCostPerRank;
}
}... | 1,876,939 | [
1,
2954,
292,
4843,
358,
1089,
333,
487,
326,
3846,
434,
501,
12807,
628,
333,
20865,
12724,
2424,
264,
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,
... | [
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,
5831,
1665,
16873,
288,
203,
683,
9454,
18035,
560,
3602,
20,
18,
28,
18,
24,
31,
203,
5666,
288,
2971,
60,
52,
289,
628,
25165,
1553,
346,
7008,
18485,
12148,
60,
52,
18,
18281,
14432,
203,
565,
1958,
9544,
751,
288,
203,
3639... |
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
function transferOwnership(address newOwner) onlyOwner {
owner = newOwner;
}
}
contract tokenRecipient { function receiveApproval... | Owner sets new address of SunContractToken */ | function changeMultisigAddress(address _newAddress) onlyOwner {
multisigAddress = _newAddress;
}
| 1,752,708 | [
1,
5541,
1678,
394,
1758,
434,
31608,
8924,
1345,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5049,
291,
360,
1887,
12,
2867,
389,
2704,
1887,
13,
1338,
5541,
288,
1377,
203,
565,
22945,
360,
1887,
273,
389,
2704,
1887,
31,
203,
225,
289,
27699,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
pragma solidity ^0.4.24;
contract I4D_Contract{
using SafeMath for uint256;
///////////////////////////////////////////////////////////////////////////////
// Attributes set.
string public name = "I4D";
uint256 public tokenPrice = 0.01 ether;
uint256 public mintax = 0.003 ether; /... | type of byte32, keccak256 of address
| mapping(bytes32 => bool) public administrators; | 12,601,898 | [
1,
723,
434,
1160,
1578,
16,
417,
24410,
581,
5034,
434,
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,
2874,
12,
3890,
1578,
516,
1426,
13,
1071,
30162,
3062,
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,
-1... |
// hevm: flattened sources of src/DssSpell.sol
pragma solidity =0.5.12 >0.4.13 >=0.4.23 >=0.5.12;
// https://github.com/dapphub/ds-pause
interface DSPauseAbstract {... | inject NONSTANDARD NAMING
| function SCHEDULE830() public { | 15,831,614 | [
1,
22170,
18708,
882,
18264,
423,
2192,
1360,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
348,
27395,
28,
5082,
1435,
1071,
288,
202,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/1/0x07F172ddb078f82A18fCB722949a2979438f0f02/sources/PIZZABTC.sol | 1% from total supply maxTransactionAmountTxn
| maxTransactionAmount = 210000 * 1e18; | 3,938,630 | [
1,
21,
9,
628,
2078,
14467,
943,
3342,
6275,
13789,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
943,
3342,
6275,
273,
9035,
2787,
380,
404,
73,
2643,
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,
-10... |
./full_match/69/0x9Aa790B92Df04697996379CE27557d63169fAC51/sources/contracts/LiquidityCertificate.sol | * @notice Sets `burnableAt` of a given certificate. @param certificateId The id of the LiquidityCertificate. @param timestamp The time it will become burnable./ | function setBurnableAt(
address spender,
uint certificateId,
uint timestamp
) external onlyLiquidityPool override {
require(_isApprovedOrOwner(spender, certificateId), "certificate does not exist or not owner");
_certificateData[certificateId].burnableAt = timestamp;
emit CertificateDataMod... | 13,239,219 | [
1,
2785,
1375,
70,
321,
429,
861,
68,
434,
279,
864,
4944,
18,
225,
4944,
548,
1021,
612,
434,
326,
511,
18988,
24237,
4719,
18,
225,
2858,
1021,
813,
518,
903,
12561,
18305,
429,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
15268,
321,
429,
861,
12,
203,
565,
1758,
17571,
264,
16,
203,
565,
2254,
4944,
548,
16,
203,
565,
2254,
2858,
203,
225,
262,
3903,
1338,
48,
18988,
24237,
2864,
3849,
288,
203,
565,
2583,
24899,
291,
31639,
1162,
5541,... |
./full_match/84531/0x60dd6724cD3d224049464A4CD7a58e09183DF1f4/sources/contracts/VipCapped.sol | * @notice A basic guest list contract for testing. @dev For a Vyper implementation of this contract containing additional The owner can invite arbitrary guests A guest can be added permissionlessly with proof of inclusion in current merkle set The owner can change the merkle root at any time Merkle-based permission tha... | contract VipCappedGuestListWrapperUpgradeable is OwnableUpgradeable {
using SafeMathUpgradeable for uint256;
address public wrapper;
bytes32 public guestRoot;
uint256 public userDepositCap;
uint256 public totalDepositCap;
mapping(address => bool) public guests;
event ProveInvitation(addr... | 11,515,832 | [
1,
37,
5337,
13051,
666,
6835,
364,
7769,
18,
225,
2457,
279,
776,
8300,
4471,
434,
333,
6835,
4191,
3312,
1021,
3410,
848,
19035,
11078,
13051,
87,
432,
13051,
848,
506,
3096,
4132,
2656,
715,
598,
14601,
434,
26485,
316,
783,
30235,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
776,
625,
4664,
1845,
12978,
682,
3611,
10784,
429,
353,
14223,
6914,
10784,
429,
288,
203,
565,
1450,
14060,
10477,
10784,
429,
364,
2254,
5034,
31,
203,
203,
565,
1758,
1071,
4053,
31,
203,
203,
565,
1731,
1578,
1071,
1305... |
./full_match/43113/0xAadc018F6c102407e30Bd2c65eC372Dad345297c/sources/contracts/PredictionV1.sol | * @notice Set minBetAmount @dev Callable by admin/ | function setMinBetAmount(uint256 _minBetAmount) external whenPaused onlyAdmin {
require(_minBetAmount != 0, "must be superior to 0" );
minBetAmount = _minBetAmount;
emit NewMinBetAmount(currentEpoch, minBetAmount);
}
| 13,166,531 | [
1,
694,
1131,
38,
278,
6275,
225,
10464,
635,
3981,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27724,
38,
278,
6275,
12,
11890,
5034,
389,
1154,
38,
278,
6275,
13,
3903,
1347,
28590,
1338,
4446,
288,
203,
3639,
2583,
24899,
1154,
38,
278,
6275,
480,
374,
16,
315,
11926,
506,
2240,
9659,
358,
374,
6,
11272,
203,
... |
./partial_match/1/0xbaDb714559EE40dEc7E28AD33c500B3a87dD8B42/sources/contracts/JUNIQUE_POP_Genesis_Collection.sol | Shuffle the leastOwnedIds array | function mint(address to, uint256 id, uint256 amount, uint256 discountTokenId, bytes32[] calldata proof, bytes memory data)
public
payable
{
require(msg.sender == tx.origin || allowContractMints, "No contracts!");
require(checkSaleState(id), "Sale not active");
require(_checkSale... | 4,347,878 | [
1,
1555,
10148,
326,
4520,
5460,
329,
2673,
526,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
312,
474,
12,
2867,
358,
16,
2254,
5034,
612,
16,
2254,
5034,
3844,
16,
2254,
5034,
12137,
1345,
548,
16,
1731,
1578,
8526,
745,
892,
14601,
16,
1731,
3778,
501,
13,
203,
565,
1071,
203,
565,
8843,
429,
203,
565,
288,... |
pragma solidity >=0.4.22 <0.6.0;
import "./Cuts.sol";
import "./Cell.sol";
import "./Layers.sol";
import "./GoldClaim.sol";
import "./helperFunctions.sol";
import "./auction.sol";
import "./ClaimLocationManager.sol";
contract GoldCrush { //claim management
uint indexOfClaims; //just to keep track of amount ... | id should be address again
| indexOfClaims++; | 12,635,683 | [
1,
350,
1410,
506,
1758,
3382,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3133,
15925,
9904,
31,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
// import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/EnumerableSet.sol";
// import "@... | how many tokens to burn every time the VNFT is given an accessory, the remaining goes to the community and devs | uint256 public burnPercentage = 90;
| 2,553,132 | [
1,
13606,
4906,
2430,
358,
18305,
3614,
813,
326,
776,
50,
4464,
353,
864,
392,
2006,
630,
16,
326,
4463,
13998,
358,
326,
19833,
471,
4461,
87,
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,
2254,
5034,
1071,
18305,
16397,
273,
8566,
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,... |
// File: contracts/saga-genesis/interfaces/IMintManager.sol
pragma solidity 0.4.25;
/**
* @title Mint Manager Interface.
*/
interface IMintManager {
/**
* @dev Return the current minting-point index.
*/
function getIndex() external view returns (uint256);
}
// File: contracts/saga-genesis/interfa... | * @dev Return the contract which implements the IWalletsTradingLimiter interface./ | function getWalletsTradingLimiter() public view returns (IWalletsTradingLimiter) {
return IWalletsTradingLimiter(getContractAddress(_WalletsTradingLimiter_SGNTokenManager_));
}
| 2,509,654 | [
1,
990,
326,
6835,
1492,
4792,
326,
467,
26558,
2413,
1609,
7459,
22329,
1560,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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,
13876,
454,
2413,
1609,
7459,
22329,
1435,
1071,
1476,
1135,
261,
45,
26558,
2413,
1609,
7459,
22329,
13,
288,
203,
3639,
327,
467,
26558,
2413,
1609,
7459,
22329,
12,
588,
8924,
1887,
24899,
26558,
2413,
1609,
7459,
22329,... |
./full_match/1/0xCA5b0AE1d104030a9B8F879523508EFd86c14483/sources/@animoca/ethereum-contracts/contracts/token/ERC20/ERC20Metadata.sol | @notice Marks the following ERC165 interface(s) as supported: ERC20Metadata. | constructor() {
ERC20MetadataStorage.init();
}
| 17,197,420 | [
1,
20981,
326,
3751,
4232,
39,
28275,
1560,
12,
87,
13,
487,
3260,
30,
4232,
39,
3462,
2277,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
288,
203,
3639,
4232,
39,
3462,
2277,
3245,
18,
2738,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity >=0.4.25;
import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol";
contract FlightSuretyData {
using SafeMath for uint256;
/********************************************************************************************/
/* DATA VARIAB... | * @dev Modifier that requires the Airline be registered/ | modifier requireRegistredAirline(address airline) {
require(registeredAirlines[airline].isRegistered == true, "Airline is not registered");
_;
}
| 6,353,459 | [
1,
9829,
716,
4991,
326,
432,
481,
1369,
506,
4104,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2583,
1617,
376,
1118,
29752,
1369,
12,
2867,
23350,
1369,
13,
288,
203,
3639,
2583,
12,
14327,
29752,
3548,
63,
1826,
1369,
8009,
291,
10868,
422,
638,
16,
315,
29752,
1369,
353,
486,
4104,
8863,
203,
3639,
389,
31,
2... |
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.0;
import './interfaces/IArchRouterImmutableState.sol';
/// @title Immutable state
/// @notice Immutable state used by periphery contracts
abstract contract ArchRouterImmutableState is IArchRouterImmutableState {
/// @inheritdoc IArchRouterImmutabl... | @inheritdoc IUniV3Router the outputs of prior swaps become the inputs to subsequent ones decide whether to continue or terminate | function exactInput(ExactInputParams memory params)
public
payable
override
returns (uint256 amountOut)
{
while (true) {
bool hasMultiplePools = params.path.hasMultiplePools();
params.amountIn = _exactInputInternal(
params.amountI... | 11,683,076 | [
1,
36,
10093,
467,
984,
77,
58,
23,
8259,
326,
6729,
434,
6432,
1352,
6679,
12561,
326,
4540,
358,
10815,
5945,
16288,
2856,
358,
1324,
578,
10850,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
5565,
1210,
12,
14332,
1210,
1370,
3778,
859,
13,
203,
3639,
1071,
203,
3639,
8843,
429,
203,
3639,
3849,
203,
3639,
1135,
261,
11890,
5034,
3844,
1182,
13,
203,
565,
288,
203,
203,
3639,
1323,
261,
3767,
13,
288,
203,
... |
./full_match/5/0xCaC257E8794C1884C9BB5707C651b975f844CC12/sources/project_/contracts/ProxyFactory.sol | copy init code into memory and immutable ExchangeDeposit address onto stack Get the position of the start of init code grab the first 32 bytes shift the address bytes 8 bits left bitwise OR them and add the address into the init code memory create the contract revert if failed | function deployNewInstances(uint256 instanceAmount) external returns (address[] memory dsts) {
bytes memory initCodeMem = INIT_CODE;
address payable addrStack = mainAddress;
address dst = address(0);
dsts = new address[](instanceAmount);
for(uint256 i=saltCnt; i<saltCnt + i... | 7,082,846 | [
1,
3530,
1208,
981,
1368,
3778,
471,
11732,
18903,
758,
1724,
1758,
10170,
2110,
968,
326,
1754,
434,
326,
787,
434,
1208,
981,
11086,
326,
1122,
3847,
1731,
4654,
326,
1758,
1731,
1725,
4125,
2002,
25337,
4869,
2182,
471,
527,
326,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
7286,
1908,
5361,
12,
11890,
5034,
791,
6275,
13,
3903,
1135,
261,
2867,
8526,
3778,
3046,
87,
13,
288,
203,
3639,
1731,
3778,
1208,
1085,
3545,
273,
12584,
67,
5572,
31,
203,
3639,
1758,
8843,
429,
3091,
2624,
273,
277... |
./partial_match/4/0xFFCAaE2a77254B4cd72356B27377408ab31155b4/sources/CallMarket.sol | we need to compute the parent of this last element which is p = (k-1)/2
| uint256 p = (k-1)/2; | 8,538,457 | [
1,
1814,
1608,
358,
3671,
326,
982,
434,
333,
1142,
930,
1492,
353,
293,
273,
261,
79,
17,
21,
13176,
22,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5411,
2254,
5034,
293,
273,
261,
79,
17,
21,
13176,
22,
31,
11794,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
//SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "hardhat/console.sol";
import "../ubeswap-farming/interfaces/IStakingRewards.sol";
import "./common/RevoUniswapStakingTokenStrategy.sol";
import "../openzeppelin-solidity/contracts/SafeERC20.sol";
/**
* RevoUbeswapSingleRewardFarmBot is a farmbot:
* * ... | * RevoUbeswapSingleRewardFarmBot is a farmbot: that runs on top of an IStakingRewards farm whose stakingToken is an IUniswapV2Pair ("LP") that acquires LP constintuent tokens through swaps on an IUniswapV2Router02 that mints LP from constituent tokens through an IUniswapV2Router02 This farmbot is suitable f... | contract RevoUbeswapSingleRewardFarmBot is RevoUniswapStakingTokenStrategy {
using SafeERC20 for IERC20;
IStakingRewards public stakingRewards;
constructor(
address _owner,
address _reserveAddress,
address _stakingRewards,
address _stakingToken,
address _revoFees,
... | 5,472,627 | [
1,
10070,
83,
57,
70,
281,
91,
438,
5281,
17631,
1060,
42,
4610,
6522,
353,
279,
10247,
1627,
352,
30,
565,
716,
7597,
603,
1760,
434,
392,
467,
510,
6159,
17631,
14727,
284,
4610,
565,
8272,
384,
6159,
1345,
353,
392,
467,
984,
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,
868,
12307,
57,
70,
281,
91,
438,
5281,
17631,
1060,
42,
4610,
6522,
353,
868,
12307,
984,
291,
91,
438,
510,
6159,
1345,
4525,
288,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
... |
./partial_match/1/0xfa4B1e50709e8890f23866f16da26B8a4780e464/sources/veSaddleVault.sol | Set governance for this token | constructor() {
governance = msg.sender;
DOMAINSEPARATOR = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), _getChainId(), address(this)));
}
| 4,447,815 | [
1,
694,
314,
1643,
82,
1359,
364,
333,
1147,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
3885,
1435,
288,
203,
3639,
314,
1643,
82,
1359,
273,
1234,
18,
15330,
31,
203,
3639,
27025,
4550,
273,
417,
24410,
581,
5034,
12,
21457,
18,
3015,
12,
18192,
67,
2399,
15920,
16,
417,
24410,
581,
5034,
12,
3890,
12,
529,
... |
./full_match/137/0xCbfb6507632A5d73667dEe6966042B3a430e9663/sources/contracts/LimitOrderManager/LimitOrderManager.sol | is 0 if not explicitly set
| uint256 index = orderIndexes[_orderId]; | 4,697,903 | [
1,
291,
374,
309,
486,
8122,
444,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
2254,
5034,
770,
273,
1353,
8639,
63,
67,
1019,
548,
15533,
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,
-... |
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/access/extensions/AccessControlDefaultAdminRules.sol | * @inheritdoc IAccessControlDefaultAdminRules/ | function defaultAdmin() public view virtual returns (address) {
return _currentDefaultAdmin;
}
| 8,082,616 | [
1,
36,
10093,
467,
16541,
1868,
4446,
4478,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
805,
4446,
1435,
1071,
1476,
5024,
1135,
261,
2867,
13,
288,
203,
3639,
327,
389,
2972,
1868,
4446,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// contracts/WrappedStrax.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.3.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.3.0/contracts/token/ERC20/ERC20.sol";
contract WrappedS... | * @dev Destroys `amount` tokens from the caller. See {ERC20-_burn}./ When the tokens are burnt we need to know where to credit the equivalent value on the Stratis chain. Currently it is only possible to assign a single address here, so if multiple recipients are required the burner will have to wait until each burn is ... | function burn(uint256 amount, string memory straxAddress) public {
_burn(_msgSender(), amount);
withdrawalAddresses[msg.sender] = straxAddress;
}
| 1,036,883 | [
1,
9378,
28599,
1375,
8949,
68,
2430,
628,
326,
4894,
18,
2164,
288,
654,
39,
3462,
17,
67,
70,
321,
5496,
19,
5203,
326,
2430,
854,
18305,
88,
732,
1608,
358,
5055,
1625,
358,
12896,
326,
7680,
460,
603,
326,
3978,
270,
291,
2687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18305,
12,
11890,
5034,
3844,
16,
533,
3778,
609,
651,
1887,
13,
1071,
288,
203,
3639,
389,
70,
321,
24899,
3576,
12021,
9334,
3844,
1769,
203,
540,
203,
3639,
598,
9446,
287,
7148,
63,
3576,
18,
15330,
65,
273,
609,
... |
//Address: 0xa6714a2e5f0b1bdb97b895b0913b4fcd3a775e4d
//Contract name: PromotionCoin
//Balance: 0 Ether
//Verification Date: 2/5/2018
//Transacion Count: 30887
// CODE STARTS HERE
pragma solidity ^0.4.18;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EI... | new Date("Jan 01 2018 00:00:00 GMT+8").getTime() / 1000;
| uint public minedTokenStartTime = 1514736000; | 13,125,861 | [
1,
2704,
2167,
2932,
46,
304,
8743,
14863,
9631,
30,
713,
30,
713,
21706,
15,
28,
20387,
588,
950,
1435,
342,
4336,
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,
... | [
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,
2254,
1071,
1131,
329,
1345,
13649,
273,
4711,
29488,
5718,
3784,
31,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pragma solidity 0.6.12;
// SPDX-License-Identifier: MIT
/*
* @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... | Emergency drain in case of a bug Adds all funds to owner to refund people Designed to be as simple as possible | function emergencyDrain24hAfterLiquidityGenerationEventIsDone() public onlyOwner {
(bool success, ) = msg.sender.call.value(address(this).balance)("");
require(success, "Transfer failed.");
_balances[msg.sender] = _balances[address(this)];
_balances[address(this)] = 0;
}
uin... | 15,072,425 | [
1,
1514,
24530,
15427,
316,
648,
434,
279,
7934,
15605,
777,
284,
19156,
358,
3410,
358,
16255,
16951,
29703,
329,
358,
506,
487,
4143,
487,
3323,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
801,
24530,
26896,
3247,
76,
4436,
48,
18988,
24237,
13842,
1133,
2520,
7387,
1435,
1071,
1338,
5541,
288,
203,
3639,
261,
6430,
2216,
16,
262,
273,
1234,
18,
15330,
18,
1991,
18,
1132,
12,
2867,
12,
2211,
2934,
12296,
... |
./partial_match/1/0xb489fe2C5FA370C213a7600DFf185695BC4dCd45/sources/TokenVesting.sol | * @title TokenVesting @dev A token holder contract that can release its token balance gradually like a typical vesting scheme, with a cliff and vesting period. Optionally revocable by the owner./ | contract TokenVesting is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
IERC20 internal vestToken;
uint256 internal tokensToVest = 0;
uint256 internal vestingId = 0;
string private constant INSUFFICIENT_BALANCE = "Insufficient balance";
string private constant INVALID_VE... | 9,192,193 | [
1,
1345,
58,
10100,
225,
432,
1147,
10438,
6835,
716,
848,
3992,
2097,
1147,
11013,
3087,
2544,
1230,
3007,
279,
24917,
331,
10100,
4355,
16,
598,
279,
927,
3048,
471,
331,
10100,
3879,
18,
20720,
5588,
504,
429,
635,
326,
3410,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3155,
58,
10100,
353,
14223,
6914,
288,
203,
565,
1450,
14060,
10477,
364,
2254,
5034,
31,
203,
565,
1450,
14060,
654,
39,
3462,
364,
467,
654,
39,
3462,
31,
203,
203,
565,
467,
654,
39,
3462,
2713,
331,
395,
1345,
31,
2... |
./full_match/80001/0x966aDcf1E770F05ff45Bbd6e1199f305b8d8D53d/sources/project_/contracts/ARCX.sol | @custom:oz-upgrades-unsafe-allow constructor | constructor() {
_disableInitializers();
}
| 845,964 | [
1,
36,
3662,
30,
11142,
17,
416,
13088,
17,
318,
4626,
17,
5965,
3885,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3885,
1435,
288,
203,
3639,
389,
8394,
4435,
8426,
5621,
203,
565,
289,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
./full_match/80001/0xcd01d922a7f96Cb660031c7B5dc11CfD2446307f/sources/Users/ricardomarques/dev/workspace/polkamarkets/bepro-js/contracts/PredictionMarketV2.sol | shares held (all outcomes)
| uint256 sharesAvailable; | 5,695,082 | [
1,
30720,
15770,
261,
454,
29867,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
24123,
5268,
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,... |
./full_match/3/0x6973165307F00f39AbC1d910286bd15f7fa347bb/sources/BDK.sol | 挖矿 用户分红非交易时段结算当日挖矿BDK数量所有已挖出BDK数量最后100亿销毁 | function mining() public onlyOwner {
autoSetTradeEnabled();
require(!tradeEnabled,"now is limit time");
require(bMineTotal < bMineMax,"up to _bMineMax,stop mining");
uint256 bNum = bPoolTotal.mul(_mineRate()).div(100);
bMineTotal +... | 8,100,980 | [
1,
167,
239,
249,
168,
258,
128,
225,
168,
247,
106,
167,
235,
120,
166,
235,
233,
168,
123,
100,
170,
256,
257,
165,
123,
102,
167,
251,
246,
167,
250,
119,
167,
111,
118,
168,
124,
246,
168,
111,
250,
166,
126,
246,
167,
250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1131,
310,
1435,
1071,
1338,
5541,
288,
203,
540,
203,
540,
203,
3639,
3656,
694,
22583,
1526,
5621,
203,
3639,
2583,
12,
5,
20077,
1526,
10837,
3338,
353,
1800,
813,
8863,
203,
540,
203,
3639,
2583,
12,
70,
49,
558,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import './interface/IT... | Maximum deposit fee that can be set | uint256 public constant MAX_DEPOSIT_FEE_BP = 400;
| 5,390,094 | [
1,
13528,
443,
1724,
14036,
716,
848,
506,
444,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
2254,
5034,
1071,
5381,
4552,
67,
1639,
28284,
67,
8090,
41,
67,
30573,
273,
7409,
31,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
pragma solidity ^0.4.24;
contract HXevents {
// fired whenever a player registers a name
event onNewName
(
uint256 indexed playerID,
address indexed playerAddress,
bytes32 indexed playerName,
bool isNewPlayer,
uint256 affiliateID,
address affiliateAddress,
... | * @dev adds up unmasked earnings, & vault earnings, sets them all to 0 @return earnings in wei format/ update gen vault from vaults | function withdrawEarnings(uint256 _pID)
private
returns(uint256)
{
updateGenVault(_pID, plyr_[_pID].lrnd);
uint256 _earnings = (plyr_[_pID].win).add(plyr_[_pID].gen).add(plyr_[_pID].aff);
if (_earnings > 0)
{
plyr_[_pID].win = 0;
p... | 88,536 | [
1,
25428,
731,
640,
23455,
425,
1303,
899,
16,
473,
9229,
425,
1303,
899,
16,
1678,
2182,
777,
358,
374,
327,
425,
1303,
899,
316,
732,
77,
740,
19,
1089,
3157,
9229,
628,
9229,
87,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
41,
1303,
899,
12,
11890,
5034,
389,
84,
734,
13,
203,
3639,
3238,
203,
3639,
1135,
12,
11890,
5034,
13,
203,
565,
288,
203,
3639,
1089,
7642,
12003,
24899,
84,
734,
16,
293,
715,
86,
67,
63,
67,
84,
734,... |
./full_match/5/0xeBB59817E608E4d994D09C5f1432325285500dA1/sources/contracts/defi.sol | Some test functions to view | function setPriceOfETH(uint256 price) public {
rateOfEth = price;
}
| 1,903,770 | [
1,
17358,
1842,
4186,
358,
1476,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
444,
5147,
951,
1584,
44,
12,
11890,
5034,
6205,
13,
1071,
288,
203,
3639,
4993,
951,
41,
451,
273,
6205,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pragma solidity 0.6.2;
//new things
contract Old{
address payable owner;
bytes32 bytesnum;
bytes32 hashnum;
//function that has same name with contract's
//is deprecated
constructor(uint256 num) public{
owner = msg.sender;
//sha3 is deprecated
bytesnum =keccak256(abi... | function that has same name with contract'sis deprecated | contract Old{
address payable owner;
bytes32 bytesnum;
bytes32 hashnum;
constructor(uint256 num) public{
owner = msg.sender;
bytesnum =keccak256(abi.encode(num));
uint8 a = 0;
hashnum = blockhash(num);
}
function getOwner() view public returns(address){
... | 13,037,773 | [
1,
915,
716,
711,
1967,
508,
598,
6835,
1807,
291,
6849,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
18613,
95,
203,
565,
1758,
8843,
429,
3410,
31,
203,
282,
1731,
1578,
1731,
2107,
31,
203,
282,
1731,
1578,
1651,
2107,
31,
203,
203,
377,
203,
203,
565,
3885,
12,
11890,
5034,
818,
13,
1071,
95,
203,
3639,
3410,
273,
12... |
./full_match/43114/0x9984d70D5Ab32E8e552974A5A24661BFEfE81DbE/sources/contracts/hurricane-core/avax/AvaxPool.sol | Withdraw LP tokens from AvaxPool. | function withdraw(uint256 _pid, uint256 _amount) public notPause validatePool(_pid) {
PoolInfo storage pool = poolInfo[_pid];
if (isMultLP(address(pool.lpToken))) {
withdrawHCTAndToken(_pid, _amount, msg.sender);
withdrawHCT(_pid, _amount, msg.sender);
}
}
| 4,582,715 | [
1,
1190,
9446,
511,
52,
2430,
628,
8789,
651,
2864,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
598,
9446,
12,
11890,
5034,
389,
6610,
16,
2254,
5034,
389,
8949,
13,
1071,
486,
19205,
1954,
2864,
24899,
6610,
13,
288,
203,
3639,
8828,
966,
2502,
2845,
273,
2845,
966,
63,
67,
6610,
15533,
203,
3639,
309,
261,
291,
... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./ERC721.sol";
import "./interfaces/IERC721Enumerable.sol";
contract ERC721Enumerable is IERC721Enumerable, ERC721 {
uint256[] private _allTokens;
mapping(uint256 => uint256) private _allTokensIndex;
mapping(address => uint256[]) private _o... | A. add Token to the Owner B. all tokens to our totalSupply - to allTokens | function _mint(address to, uint256 tokenId) internal override(ERC721) {
super._mint(to, tokenId);
_addTokensToAllTokensEnumeration(tokenId);
_addAllTokensToOwnerEnumeration(to, tokenId);
}
| 12,993,651 | [
1,
37,
18,
527,
3155,
358,
326,
16837,
605,
18,
777,
2430,
358,
3134,
2078,
3088,
1283,
300,
358,
777,
5157,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
81,
474,
12,
2867,
358,
16,
2254,
5034,
1147,
548,
13,
2713,
3849,
12,
654,
39,
27,
5340,
13,
288,
203,
3639,
2240,
6315,
81,
474,
12,
869,
16,
1147,
548,
1769,
203,
203,
3639,
389,
1289,
5157,
774,
1595,
5157,... |
/*
* PAT Token Sale Smart Contract. Copyright © 2017 by ABDK Consulting.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
*/
pragma solidity ^0.4.11;
import "./Token.sol";
import "./AbstractContinuousSale.sol";
/**
* Continuous Sale Action for selling PAT tokens.
*/
contract PATTokenSale ... | * Send given amount of assets to the owner of given address. @param _to address to send assets to the owner of @param _amount amount of assets to send @return true on success, false on error/ | function sendAssets (address _to, uint256 _amount)
internal returns (bool success) {
return token.transferFrom (centralBank, _to, _amount);
}
| 2,503,059 | [
1,
3826,
864,
3844,
434,
7176,
358,
326,
3410,
434,
864,
1758,
18,
225,
389,
869,
1758,
358,
1366,
7176,
358,
326,
3410,
434,
225,
389,
8949,
3844,
434,
7176,
358,
1366,
327,
638,
603,
2216,
16,
629,
603,
555,
19,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1366,
10726,
261,
2867,
389,
869,
16,
2254,
5034,
389,
8949,
13,
203,
565,
2713,
1135,
261,
6430,
2216,
13,
288,
203,
565,
327,
1147,
18,
13866,
1265,
261,
71,
12839,
16040,
16,
389,
869,
16,
389,
8949,
1769,
203,
225... |
./full_match/5/0x81c7a9d494c74F113cCa32d174925352bD3875f1/sources/_connext/nxtp-contracts/contracts/nomad-core/contracts/Home.sol | * @notice Set a new Updater @param _updater the new Updater/ | function setUpdater(address _updater) external onlyUpdaterManager {
_setUpdater(_updater);
}
| 1,910,425 | [
1,
694,
279,
394,
27254,
2045,
225,
389,
25575,
326,
394,
27254,
2045,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
444,
15305,
12,
2867,
389,
25575,
13,
3903,
1338,
15305,
1318,
288,
203,
565,
389,
542,
15305,
24899,
25575,
1769,
203,
225,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
// File: localhost/contracts/handlers/curve/IOneSplit.sol
pragma solidity ^0.5.0;
interface IOneSplit {
function getExpectedReturn(
address fromToken,
address toToken,
uint256 amount,
uint256 parts,
uint256 featureFlags
)
external
view
returns (u... | Curve fixed input used for compound, y, busd and pax pools | function exchangeUnderlying(
address swap,
int128 i,
int128 j,
uint256 dx,
uint256 minDy
) external payable {
ICurveSwap curveSwap = ICurveSwap(swap);
IERC20(curveSwap.underlying_coins(i)).safeApprove(
address(curveSwap),
dx
... | 6,787,508 | [
1,
9423,
5499,
810,
1399,
364,
11360,
16,
677,
16,
5766,
72,
471,
293,
651,
16000,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7829,
14655,
6291,
12,
203,
3639,
1758,
7720,
16,
203,
3639,
509,
10392,
277,
16,
203,
3639,
509,
10392,
525,
16,
203,
3639,
2254,
5034,
6633,
16,
203,
3639,
2254,
5034,
1131,
40,
93,
203,
565,
262,
3903,
8843,
429,
2... |
pragma solidity ^0.4.23;
/*
* Author: Konstantin G...
* Telegram: @bunnygame (en)
* talk : https://bitcointalk.org/index.php?topic=5025885.0
* discord : https://discordapp.com/invite/G2jt4Fw
* email: info@bunnycoin.co
* site : http://bunnycoin.co
*/
/**
* @title Ownable
* @dev The Ownable contract has ... | * @title Whitelist @dev The Whitelist contract has a whitelist of addresses, and provides basic authorization control functions. @dev This simplifies the implementation of "user permissions"./ | contract Whitelist is Ownable {
mapping(address => bool) public whitelist;
mapping(uint => address) whitelistCheck;
uint public countAddress = 0;
event WhitelistedAddressAdded(address addr);
event WhitelistedAddressRemoved(address addr);
modifier onlyWhitelisted() {
require(whitel... | 6,426,859 | [
1,
18927,
225,
1021,
3497,
7523,
6835,
711,
279,
10734,
434,
6138,
16,
471,
8121,
5337,
6093,
3325,
4186,
18,
225,
1220,
9330,
5032,
326,
4471,
434,
315,
1355,
4371,
9654,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
16351,
3497,
7523,
353,
14223,
6914,
288,
203,
565,
2874,
12,
2867,
516,
1426,
13,
1071,
10734,
31,
203,
203,
565,
2874,
12,
11890,
225,
516,
1758,
13,
282,
10734,
1564,
31,
203,
565,
2254,
1071,
1056,
1887,
273,
374,
31,
203,
... |
pragma solidity 0.5.7;
contract RSADonations {
struct PublicKey { // Storage for RSA public key.
uint256 exponent;
uint256[] modulus; // big-endian representation of public-key modulus.
uint256 size; // Size of modulus in bits. Must be a multiple of 256.
}
mapping(bytes32 /* public key hash */ => P... | Can't use constants in assembly
| uint256 word = WORD; | 5,403,149 | [
1,
2568,
1404,
999,
6810,
316,
19931,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
2076,
273,
21464,
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,
... |
// 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 programmers usually... | * @inheritdoc IGeyser/ | function update() external override nonReentrant {
_update(msg.sender);
}
| 303,602 | [
1,
36,
10093,
13102,
402,
550,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1089,
1435,
3903,
3849,
1661,
426,
8230,
970,
288,
203,
3639,
389,
2725,
12,
3576,
18,
15330,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
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... | sets the maximum ammount to receive cannot be lowered unless this bond sale is closed(prevents overflows) | function setBondSize(uint256 _bondsize) public onlyOwner {
require(_bondsize >= bondsize, "for a reduced bond size please end the current sale and make a new one");
bondsize = _bondsize;
}
| 1,764,416 | [
1,
4424,
326,
4207,
2125,
4778,
358,
6798,
2780,
506,
2612,
329,
3308,
333,
8427,
272,
5349,
353,
4375,
12,
29150,
87,
9391,
87,
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,
... | [
1,
1,
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,
202,
915,
444,
9807,
1225,
12,
11890,
5034,
389,
26425,
1467,
13,
1071,
1338,
5541,
288,
203,
202,
202,
6528,
24899,
26425,
1467,
1545,
8427,
1467,
16,
315,
1884,
279,
13162,
8427,
963,
9582,
679,
326,
783,
272,
5349,
471,
1221,
... |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.10;
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
contract IHoneyBee {
/** ERC-721 INTERFACE */
function ... | * ERC-721 INTERFACE */ | function ownerOf(uint256 tokenId) public view virtual returns (address) {}
| 115,258 | [
1,
654,
39,
17,
27,
5340,
11391,
11300,
342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3410,
951,
12,
11890,
5034,
1147,
548,
13,
1071,
1476,
5024,
1135,
261,
2867,
13,
2618,
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.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pur... | EIP-2981 - https:eips.ethereum.org/EIPS/eip-2981 | function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 amount) {
require(_exists(tokenId));
LibPart.Part[] memory royalInfo = royalties[0];
uint256 royaltyValue = royalInfo[0].value;
address royaltyAccount = royalInfo[0].acc... | 10,148,863 | [
1,
41,
2579,
17,
5540,
11861,
300,
2333,
30,
73,
7146,
18,
546,
822,
379,
18,
3341,
19,
41,
2579,
55,
19,
73,
625,
17,
5540,
11861,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
721,
93,
15006,
966,
12,
11890,
5034,
1147,
548,
16,
2254,
5034,
272,
5349,
5147,
13,
3903,
1476,
1135,
261,
2867,
5971,
16,
2254,
5034,
3844,
13,
288,
203,
3639,
2583,
24899,
1808,
12,
2316,
548,
10019,
203,
540,
203,
... |
./partial_match/1/0x21B8bfbbefc9E2b9A994871Ecd742A5132B98AeD/sources/CryptoRealEstate.sol | * @dev Withdraws tokens from the contract, excluded contract's own token. @param tokenAddress The address of the token being withdrawn. @param amount The amount of tokens being withdrawn./ | function withdrawToken(address tokenAddress, uint256 amount) external onlyOwner {
require(tokenAddress != address(this), "Cannot withdraw contract's own token");
IERC20 token = IERC20(tokenAddress);
require(token.balanceOf(address(this)) >= amount, "Insufficient balance");
token.safeTransfer(msg.sende... | 4,289,845 | [
1,
1190,
9446,
87,
2430,
628,
326,
6835,
16,
8845,
6835,
1807,
4953,
1147,
18,
225,
1147,
1887,
1021,
1758,
434,
326,
1147,
3832,
598,
9446,
82,
18,
225,
3844,
1021,
3844,
434,
2430,
3832,
598,
9446,
82,
18,
19,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
598,
9446,
1345,
12,
2867,
1147,
1887,
16,
2254,
5034,
3844,
13,
3903,
1338,
5541,
288,
203,
565,
2583,
12,
2316,
1887,
480,
1758,
12,
2211,
3631,
315,
4515,
598,
9446,
6835,
1807,
4953,
1147,
8863,
203,
565,
467,
654,
... |
./partial_match/43113/0xA0603C9fD66420146A24a98fDEf6a74F54210210/sources/contracts/BeethovenxMasterChef.sol | BEETHOVEn tokens created per block. | uint256 public beetxPerBlock;
| 16,907,420 | [
1,
5948,
1584,
7995,
58,
664,
2430,
2522,
1534,
1203,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
2254,
5034,
1071,
506,
278,
92,
2173,
1768,
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,
-1... |
./full_match/5/0x5256308608B6865F486b59136e7826ACF648a2a1/sources/contracts/prebuilts/account/utils/AccountCore.sol | @notice Initializes the smart contract wallet. This is passed as data in the `_registerOnFactory()` call in `AccountExtension` / `Account`. | function initialize(address _defaultAdmin, bytes calldata) public virtual initializer {
AccountCoreStorage.data().firstAdmin = _defaultAdmin;
_setAdmin(_defaultAdmin, true);
}
Events
event EntrypointOverride(IEntryPoint entrypointOverride);
| 1,960,700 | [
1,
9685,
326,
13706,
6835,
9230,
18,
1220,
353,
2275,
487,
501,
316,
326,
1375,
67,
4861,
1398,
1733,
20338,
745,
316,
1375,
3032,
3625,
68,
342,
1375,
3032,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
4046,
12,
2867,
389,
1886,
4446,
16,
1731,
745,
892,
13,
1071,
5024,
12562,
288,
203,
3639,
6590,
4670,
3245,
18,
892,
7675,
3645,
4446,
273,
389,
1886,
4446,
31,
203,
3639,
389,
542,
4446,
24899,
1886,
4446,
16,
638,
... |
pragma solidity 0.4.24;
import "./ownership/Ownable.sol";
import "./lifecycle/Destructible.sol";
import "./tokenutils/CanRescueERC20.sol";
/**
* Simple Public Voting/Poll Demo
*
* This is a DEMO contract. Please look carefully into the source code
* before using any of this in production.
*
*
* Disclaimer of ... | * @notice Fallback function. Will be called whenever the contract receives ether, or when is called without data or with unknown function signature./ | function()
public {
}
| 1,057,877 | [
1,
12355,
445,
18,
9980,
506,
2566,
17334,
326,
6835,
17024,
225,
2437,
16,
578,
377,
1347,
353,
2566,
2887,
501,
578,
598,
5917,
445,
3372,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
1435,
203,
565,
1071,
288,
203,
565,
289,
203,
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... |
./full_match/5/0x7592Ad541bEcaD094A32Fe1D4816F210652Fa5DF/sources/project_/contracts/Nft1155.sol | import "./access/Ownable.sol";import "./ERC1155.sol"; | import "./presets/ERC1155PresetMinterPauser.sol";
| 11,591,343 | [
1,
5666,
25165,
3860,
19,
5460,
429,
18,
18281,
14432,
5666,
25165,
654,
39,
2499,
2539,
18,
18281,
14432,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5666,
25165,
12202,
2413,
19,
654,
39,
2499,
2539,
18385,
49,
2761,
16507,
1355,
18,
18281,
14432,
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.8.0;
interface AggregatorV3Interface {
function decimals()
external
view
returns (
uint8
);
function description()
external
view
returns (
string memory
);
function version()
external
view
returns (
... | * @notice Internal function that queries the chainId @return Returns the chainId (1 - Mainnet, 4 - Rinkeby testnet)/ | function _getChainId() internal view returns (uint256) {
uint256 chainId;
return chainId;
}
| 10,214,175 | [
1,
3061,
445,
716,
6218,
326,
2687,
548,
327,
2860,
326,
2687,
548,
261,
21,
300,
12740,
2758,
16,
1059,
300,
534,
754,
73,
1637,
1842,
2758,
13176,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
389,
588,
3893,
548,
1435,
2713,
1476,
1135,
261,
11890,
5034,
13,
288,
203,
3639,
2254,
5034,
2687,
548,
31,
203,
3639,
327,
2687,
548,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./full_match/80001/0x8f12e8dfE0b4251b67896366410bB5521d709b61/sources/@tsb/exchange/contracts/WhiteList.sol | @notice add token to the ERC20 list @param tokenAddress token address | function addERC20(address tokenAddress) external onlyOwner {
grantRole(ERC20_ROLE, tokenAddress);
}
| 5,619,172 | [
1,
1289,
1147,
358,
326,
4232,
39,
3462,
666,
225,
1147,
1887,
1147,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
654,
39,
3462,
12,
2867,
1147,
1887,
13,
3903,
1338,
5541,
288,
203,
3639,
7936,
2996,
12,
654,
39,
3462,
67,
16256,
16,
1147,
1887,
1769,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
/**
*Submitted for verification at Etherscan.io on 2021-03-21
*/
// File: contracts/interfaces/ISaffronBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.1;
interface ISaffronBase {
enum Tranche {S, AA, A}
enum LPTokenType {dsec, principal}
// Store values (balances, dsec, vdsec) with TrancheUint... | Wind down pool exists just in case one of the pools is broken Team Funds | function wind_down_pool(uint256 pool, uint256 epoch) external {
require(msg.sender == team_address || msg.sender == governance, "must be team or governance");
require(epoch == 10, "v1.10: only epoch 10");
uint256 current_epoch = get_current_epoch();
require(epoch < current_epoch, "cannot wind down fut... | 2,067,996 | [
1,
59,
728,
2588,
2845,
1704,
2537,
316,
648,
1245,
434,
326,
16000,
353,
12933,
10434,
478,
19156,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
17064,
67,
2378,
67,
6011,
12,
11890,
5034,
2845,
16,
2254,
5034,
7632,
13,
3903,
288,
203,
565,
2583,
12,
3576,
18,
15330,
422,
5927,
67,
2867,
747,
1234,
18,
15330,
422,
314,
1643,
82,
1359,
16,
315,
11926,
506,
592... |
./partial_match/1/0x7854d9465cf34a781404bdA2AEAd93441e998c54/sources/Coin.sol | * @dev Returns the name of the token./ | function name() public view virtual returns (string memory) {
return _MYname;
}
| 4,421,673 | [
1,
1356,
326,
508,
434,
326,
1147,
18,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
508,
1435,
1071,
1476,
5024,
1135,
261,
1080,
3778,
13,
288,
203,
3639,
327,
389,
22114,
529,
31,
203,
565,
289,
203,
203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.5;
contract rsvp {
address owner;
bool public currentEvent;
uint rsvpCost;
address[] RSVPs;
mapping(address => bool) RSVPstatus;
address[] checkedInAddresses;
mapping(address => bool) checkedIn;
constructor(... | checks the difference isn't zero
| if (RSVPs.length != checkedInAddresses.length) { | 989,817 | [
1,
12366,
326,
7114,
5177,
1404,
3634,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
3639,
309,
261,
13225,
58,
18124,
18,
2469,
480,
5950,
382,
7148,
18,
2469,
13,
288,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
./partial_match/42/0x75A807a667FbcB303f46c0F8Ca45fdfEF8fdC9AC/sources/LiquidationEngine.sol | * @notice Authed function to add contracts that can save SAFEs from liquidation @param saviour SAFE saviour contract to be whitelisted/ | function connectSAFESaviour(address saviour) external isAuthorized {
(bool ok, uint256 collateralAdded, uint256 liquidatorReward) =
SAFESaviourLike(saviour).saveSAFE(address(this), "", address(0));
require(ok, "LiquidationEngine/saviour-not-ok");
require(both(collateralAdded == uin... | 8,909,340 | [
1,
1730,
329,
445,
358,
527,
20092,
716,
848,
1923,
348,
6799,
6705,
628,
4501,
26595,
367,
225,
7864,
522,
477,
348,
6799,
41,
7864,
522,
477,
6835,
358,
506,
26944,
19,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
565,
445,
3077,
5233,
42,
3991,
69,
522,
477,
12,
2867,
7864,
522,
477,
13,
3903,
353,
15341,
288,
203,
3639,
261,
6430,
1529,
16,
2254,
5034,
4508,
2045,
287,
8602,
16,
2254,
5034,
4501,
26595,
639,
17631,
1060,
13,
273,
203,
... |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
import "../../DS/DSProxy.sol";
import "../../utils/FlashLoanReceiverBase.sol";
import "../../interfaces/DSProxyInterface.sol";
import "../../exchange/SaverExchangeCore.sol";
import "../../shifter/ShifterRegistry.sol";
/// @title Contract that receives the FL f... | @notice Called by Aave when sending back the FL amount @param _reserve The address of the borrowed token @param _amount Amount of FL tokens received @param _fee FL Aave fee @param _params The params that are sent from the original FL caller contract Format the call data for DSProxy If the assets are different if there... | function executeOperation(
address _reserve,
uint256 _amount,
uint256 _fee,
bytes calldata _params)
external override {
(CompCreateData memory compCreate, ExchangeData memory exchangeData)
= packFunctionCall(_amount, _fee, _params);
... | 7,233,386 | [
1,
8185,
635,
432,
836,
1347,
5431,
1473,
326,
31358,
3844,
225,
389,
455,
6527,
1021,
1758,
434,
326,
29759,
329,
1147,
225,
389,
8949,
16811,
434,
31358,
2430,
5079,
225,
389,
21386,
31358,
432,
836,
14036,
225,
389,
2010,
1021,
859... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
282,
445,
1836,
2988,
12,
203,
3639,
1758,
389,
455,
6527,
16,
203,
3639,
2254,
5034,
389,
8949,
16,
203,
3639,
2254,
5034,
389,
21386,
16,
203,
3639,
1731,
745,
892,
389,
2010,
13,
203,
565,
3903,
3849,
288,
203,
3639,
261,
29... |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract NaiveReceiverAttack {
address immutable public pool;
constructor(address _pool) {
pool = _pool;
}
// Unsafe function that uses .call() for convenience. This function really should be reentrancy guarded but its just
// a helpe... | Unsafe function that uses .call() for convenience. This function really should be reentrancy guarded but its just a helper to exploit the NaiveReceiverLenderPool so I take no precautions. This assumes that the borrower has exactly 10 ETH since each floash loan sends 1 ETH to the pool address. | function flashLoanMultiple(address borrower) external {
for (uint256 i; i < 10;) {
(bool success, ) = pool.call(
abi.encodeWithSignature(
"flashLoan(address,uint256)",
borrower,
)
);
require(success);... | 12,595,215 | [
1,
23912,
445,
716,
4692,
263,
1991,
1435,
364,
13553,
18,
1220,
445,
8654,
1410,
506,
283,
8230,
12514,
3058,
17212,
1496,
2097,
2537,
279,
4222,
358,
15233,
305,
326,
16350,
688,
12952,
48,
2345,
2864,
1427,
467,
4862,
1158,
675,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9563,
1504,
304,
8438,
12,
2867,
29759,
264,
13,
3903,
288,
203,
3639,
364,
261,
11890,
5034,
277,
31,
277,
411,
1728,
30943,
288,
203,
5411,
261,
6430,
2216,
16,
262,
273,
2845,
18,
1991,
12,
203,
7734,
24126,
18,
30... |
pragma solidity ^0.4.19;
contract Ownable {
address public owner;
event NewOwner (address indexed owner);
function Ownable () public {
owner = msg.sender;
}
modifier onlyOwner () {
if (owner != msg.sender) revert();
_;
}
function setOwner (address candidate) public onlyOwn... | games which have met quorum are removed from this mapping | function findAvailableGame (address player) private returns (uint256) {
for (uint256 x = lowestGameWithoutQuorum; x < nextGameId; x++) {
Shuffle storage game = games[x];
if (game.id == 0) continue;
if (!contains(game, player)) {
return game.id;
}
}
}
| 12,894,958 | [
1,
75,
753,
1492,
1240,
5100,
31854,
854,
3723,
628,
333,
2874,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
225,
445,
1104,
5268,
12496,
261,
2867,
7291,
13,
3238,
1135,
261,
11890,
5034,
13,
288,
203,
565,
364,
261,
11890,
5034,
619,
273,
11981,
12496,
8073,
31488,
31,
619,
411,
1024,
12496,
548,
31,
619,
27245,
288,
203,
1377,
2638,
... |