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.5.10; pragma experimental ABIEncoderV2; import "./AbstractSwappingProvider.sol"; import "../services/uniswap/UniswapExchangeInterface.sol"; import "../services/uniswap/UniswapFactoryInterface.sol"; /** @title Uniswap Swapping provider. @author StablePay <hi@stablepay.io> */ contract Unisw...
Get ether balance after swapping execution. Transfer back to the sender the diff balance (Ether).
function swapEther(StablePayCommon.Order calldata _order) external payable isStablePay(msg.sender) returns (bool) { UniswapFactoryInterface uFactory = UniswapFactoryInterface(uniswapFactory); require( uFactory.getExchange(_order.targetToken) != addres...
7,275,979
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 225, 2437, 11013, 1839, 7720, 1382, 4588, 18, 12279, 1473, 358, 326, 5793, 326, 3122, 11013, 261, 41, 1136, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 41, 1136, 12, 30915, 9148, 6517, 18, 2448, 745, 892, 389, 1019, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 353, 30915, 9148, 12, 3576, 18, 15330, 13, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; interface ITokenManager { struct TokenInfo { uint256 transferOverhead; bool supportedToken; uint256 equilibriumFee; // Percentage fee Represented in basis points uint256 maxFee; // Percentage fee Represented in basis points ...
Percentage fee Represented in basis points
uint256 maxFee;
12,806,913
[ 1, 4625, 348, 7953, 560, 30, 225, 21198, 410, 14036, 868, 6706, 329, 316, 10853, 3143, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 943, 14667, 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,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/Saf...
Whitelist OpenSea proxy contract for easy trading.
function isApprovedForAll(address owner, address operator) override public view returns (bool) { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.is...
5,782,575
[ 1, 4625, 348, 7953, 560, 30, 225, 3497, 7523, 3502, 1761, 69, 2889, 6835, 364, 12779, 1284, 7459, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 31639, 1290, 1595, 12, 2867, 3410, 16, 1758, 3726, 13, 203, 565, 3849, 203, 565, 1071, 203, 565, 1476, 203, 565, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 7659, 4243, 2889, 4243, 273, 7659, 4243, 12, 5656, 4...
//Address: 0x2ca72c9699b92b47272c9716c664cad6167c80b0 //Contract name: GUNS //Balance: 0 Ether //Verification Date: 6/25/2017 //Transacion Count: 423 // CODE STARTS HERE pragma solidity ^0.4.11; /* Copyright 2017, Shaun Shull This program is free software: you can redistribute it and/or modify it under...
logs token creation event
CreateGUNS(gunsFundDeposit, remainingSupply);
6,421,339
[ 1, 4625, 348, 7953, 560, 30, 225, 5963, 1147, 6710, 871, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 1788, 43, 2124, 55, 12, 19339, 87, 42, 1074, 758, 1724, 16, 4463, 3088, 1283, 1769, 4766, 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.6.12; pragma experimental ABIEncoderV2; contract DSAuthEvents { event LogSetAuthority(address indexed authority); event LogSetOwner(address indexed owner); } contract DSAuth is DSAuthEvents { DSAuthority public authority; address public owner; constructor() public { ...
if we are buying ether
function buy(address _srcAddr, address _destAddr, uint _destAmount) external override payable returns(uint) { address uniswapExchangeAddr; uint srcAmount; _srcAddr = ethToWethAddr(_srcAddr); _destAddr = ethToWethAddr(_destAddr); if (_destAddr == WETH_ADDRESS) { ...
7,334,083
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 732, 854, 30143, 310, 225, 2437, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 12, 2867, 389, 4816, 3178, 16, 1758, 389, 10488, 3178, 16, 2254, 389, 10488, 6275, 13, 3903, 3849, 8843, 429, 1135, 12, 11890, 13, 288, 203, 203, 3639, 1758, 640, 291, 91, 438, 11688, 3178, 31, 203, 203, 3639, ...
// SPDX-License-Identifier: CC-BY-NC-ND-4.0 /* o-O-o o o o--o o-o o-o o o-o o--o o-o o-o o--o o-o o--o o o | | | | / o o | o o | | | o o | | | \ / | O--O O-o O | | | | | O-Oo o-o | | O-o o-o O-o O ...
@dev Take the balance of the given contract and transfer it to the caller.
function withdraw() external { require(isAdmin[msg.sender], "Only Admins."); uint256 amount = address(this).balance; require(amount > 0, "Contract balance empty."); require(success, "Transfer failed."); }
12,079,095
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 17129, 326, 11013, 434, 326, 864, 6835, 471, 7412, 518, 358, 326, 4894, 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, ...
[ 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, 598, 9446, 1435, 3903, 288, 203, 3639, 2583, 12, 291, 4446, 63, 3576, 18, 15330, 6487, 315, 3386, 7807, 87, 1199, 1769, 203, 203, 3639, 2254, 5034, 3844, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 2583, 12, 8949, ...
// SPDX-License-Identifier: MIT /* ██████╗ ███████╗██████╗ █████╗ ███████╗███████╗ ██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝ ██║ ██║█████╗ ██████╔╝███████║███████╗█████╗ ██║ ██║██╔══╝ ██╔══██╗██╔══██║╚════██║██╔══╝ ██████╔╝███████╗██████╔╝██║ ██║███████║███████╗ ╚═════╝ ╚══════╝╚═════╝ ╚═╝ ╚═╝╚══════...
* @notice Function to enable pool lp limit/
function setEnablePoolLpLimit(bool enablePoolLpLimit_) external onlyOwner { enablePoolLpLimit = enablePoolLpLimit_; emit LogSetEnablePoolLpLimit(enablePoolLpLimit); }
6,356,544
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4284, 358, 4237, 2845, 12423, 1800, 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, 444, 8317, 2864, 48, 84, 3039, 12, 6430, 4237, 2864, 48, 84, 3039, 67, 13, 3903, 1338, 5541, 288, 203, 3639, 4237, 2864, 48, 84, 3039, 273, 4237, 2864, 48, 84, 3039, 67, 31, 203, 3639, 3626, 1827, 694, 8317, 2864, 4...
pragma solidity ^0.4.13; /* LINK funds pool ======================== Original by: /u/Cintix Modified by: moonlambos */ // ERC20 Interface: https://github.com/ethereum/EIPs/issues/20 contract ERC20 { function transfer(address _to, uint256 _value) returns (bool success); function balanceOf(address _owner) consta...
Buy-in allowed 3456 blocks (approx. 24 hours) after the contract is deployed. ETH refund allowed 86400 blocks (approx. 24 days) after the contract is deployed.
function LINKFund() { min_buy_block = block.number + 3456; min_refund_block = block.number + 86400; }
15,219,803
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 9835, 17, 267, 2935, 13438, 4313, 4398, 261, 26742, 18, 4248, 7507, 13, 1839, 326, 6835, 353, 19357, 18, 512, 2455, 16255, 2935, 21451, 4398, 261, 26742, 18, 4248, 4681, 13, 1839, 326, 6835, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 22926, 42, 1074, 1435, 288, 203, 565, 1131, 67, 70, 9835, 67, 2629, 273, 1203, 18, 2696, 397, 13438, 4313, 31, 203, 377, 203, 565, 1131, 67, 1734, 1074, 67, 2629, 273, 1203, 18, 2696, 397, 21451, 31, 203, 225, 289, ...
/// @author Adrian Lenard /// @title researchDAO - Collective intelligence for the research community /// @notice Purpose of this contract is to enable guild like operation for researchers, while enabling crowdfunding capital to accelerate research funding /// @dev All function calls are currently implemented without s...
Default value is 50 for 50%, this sets the number of required Yes votes for a vote to pass
uint8 public globalMajority;
1,081,124
[ 1, 4625, 348, 7953, 560, 30, 225, 2989, 460, 353, 6437, 364, 6437, 9, 16, 333, 1678, 326, 1300, 434, 1931, 19925, 19588, 364, 279, 12501, 358, 1342, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 11890, 28, 1071, 2552, 17581, 560, 31, 10402, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/421613/0xc3A8621DA59B35dDCD3e01504F182D9AC9F36b5B/sources/src/arbitration/SortitionModule.sol
@dev Unstakes the inactive juror from all courts. `O(n * (p * log_k(j)) )` where `n` is the number of courts the juror has staked in, `p` is the depth of the court tree, `k` is the minimum number of children per node of one of these courts' sortition sum tree, and `j` is the maximum number of jurors that ever staked i...
function setJurorInactive(address _account) external override onlyByCore { uint96[] memory courtIDs = core.getJurorCourtIDs(_account); for (uint256 j = courtIDs.length; j > 0; j--) { core.setStakeBySortitionModule(_account, courtIDs[j - 1], 0, 0); } }
11,570,396
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1351, 334, 3223, 326, 16838, 525, 295, 280, 628, 777, 21833, 3428, 18, 1375, 51, 12, 82, 380, 261, 84, 380, 613, 67, 79, 12, 78, 3719, 262, 68, 1625, 1375, 82, 68, 353, 326, 1300, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 46, 295, 280, 24384, 12, 2867, 389, 4631, 13, 3903, 3849, 1338, 858, 4670, 288, 203, 3639, 2254, 10525, 8526, 3778, 21833, 88, 5103, 273, 2922, 18, 588, 46, 295, 280, 29328, 88, 5103, 24899, 4631, 1769, 203, 3639, ...
./full_match/1/0xD6E1E441Fa04D20ff6B951151396fd6D7e0115dA/sources/contracts/pioneer.sol
Increment the total depositors count if this is the first deposit for the user
totalDepositors += 1;
16,408,446
[ 1, 4625, 348, 7953, 560, 30, 225, 17883, 326, 2078, 443, 1724, 1383, 1056, 309, 333, 353, 326, 1122, 443, 1724, 364, 326, 729, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 5411, 2078, 758, 1724, 1383, 1011, 404, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.19; contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns (uint256); function transfer(address to, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); } con...
* @param _rate Number of token units a buyer gets per wei @param _wallet Address where collected funds will be forwarded to @param _token Address of the token being sold/
function Crowdsale(uint256 _openingTime, uint256 _rate, address _wallet, ERC20 _token, uint256 _cap, address _tokenWallet) public { require(_rate > 0); require(_wallet != address(0)); require(_token != address(0)); require(_cap > 0); require(_tokenWallet != address(0)); openingTime = _opening...
569,275
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 891, 389, 5141, 3588, 434, 1147, 4971, 279, 27037, 5571, 1534, 732, 77, 632, 891, 389, 19177, 5267, 1625, 12230, 284, 19156, 903, 506, 19683, 358, 632, 891, 389, 2316, 5267, 434, 326, 1147, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 385, 492, 2377, 5349, 12, 11890, 5034, 389, 3190, 310, 950, 16, 2254, 5034, 389, 5141, 16, 1758, 389, 19177, 16, 4232, 39, 3462, 389, 2316, 16, 2254, 5034, 389, 5909, 16, 1758, 389, 2316, 16936, 13, 1071, 288, 203, 56...
./full_match/8453/0x979791C607a388702690599120c46332f61f592C/sources/contracts/DLN/DlnBase.sol
@dev Safe transfer tokens and check that receiver will receive exact amount (check only if to != from) Received real amount
function _safeTransferFrom( address _tokenAddress, address _from, address _to, uint256 _amount ) internal { IERC20Upgradeable token = IERC20Upgradeable(_tokenAddress); uint256 balanceBefore = token.balanceOf(_to); token.safeTransferFrom(_from, _to, _amount...
11,545,495
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 14060, 7412, 2430, 471, 866, 716, 5971, 903, 6798, 5565, 3844, 261, 1893, 1338, 309, 358, 480, 628, 13, 21066, 2863, 3844, 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, 389, 4626, 5912, 1265, 12, 203, 3639, 1758, 389, 2316, 1887, 16, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 8949, 203, 565, 262, 2713, 288, 203, 3639, 467, 654, 39, 3462...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; pragma abicoder v2; /* solium-disable error-reason */ library ECVerify { function ecverify(bytes32 hash, bytes memory signature) internal pure returns (address signature_address) { require(signature.length == 65); ...
Check if the contract is indeed a token contract Check if the contract is indeed a service_registry contract TODO: Check that some function exists in the contract
) { require(_token_address != address(0x0), "Token at address zero"); require(_service_registry_address != address(0x0), "ServiceRegistry at address zero"); require(_udc_address != address(0x0), "UDC at address zero"); require(contractExists(_token_address), "token has no code"); ...
6,076,916
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 326, 6835, 353, 316, 323, 329, 279, 1147, 6835, 2073, 309, 326, 6835, 353, 316, 323, 329, 279, 1156, 67, 9893, 6835, 2660, 30, 2073, 716, 2690, 445, 1704, 316, 326, 6835, 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, 565, 262, 288, 203, 3639, 2583, 24899, 2316, 67, 2867, 480, 1758, 12, 20, 92, 20, 3631, 315, 1345, 622, 1758, 3634, 8863, 203, 3639, 2583, 24899, 3278, 67, 9893, 67, 2867, 480, 1758, 12, 20, 92, 20, 3631, 315, 1179, 4243, 622, ...
./full_match/1/0xDF6e02aa226e69888241e7D8689C1b1FFbA48Ae7/sources/src/module/governance-pool/ModuleConfig.sol
Management function to update auction reserve price
function setReservePrice(uint256 _reservePrice) external onlyOwner { require(_reservePrice > 0, "reserve cannot be 0"); _cfg.reservePrice = _reservePrice; emit ConfigChanged(); }
3,007,652
[ 1, 4625, 348, 7953, 560, 30, 225, 13303, 445, 358, 1089, 279, 4062, 20501, 6205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 607, 6527, 5147, 12, 11890, 5034, 389, 455, 6527, 5147, 13, 3903, 1338, 5541, 288, 203, 565, 2583, 24899, 455, 6527, 5147, 405, 374, 16, 315, 455, 6527, 2780, 506, 374, 8863, 203, 565, 389, 7066, 18, 455, 6527, 5...
pragma solidity ^0.4.24; //----------------------------------------------------------------------------- /// @title TOY Ownership /// @notice defines TOY Token ownership-tracking structures and view functions. //----------------------------------------------------------------------------- contract ToyOwnership {...
------------------------------------------------------------------------- @notice Set external NFT #`_externalId` as TOY Token #`_toyUid`'s linked external NFT. @dev Throws if sender is not authorized to operate TOY Token #`_toyUid` Throws if '_toyUid' is bigger than 7 bytes. Throws if external NFT is already linked...
function linkExternalNft( uint _toyUid, address _externalAddress, uint _externalId ) external canOperate(_toyUid) { require(_toyUid < UID_MAX, "TOY Token not linked to a physical toy"); require( linkedExternalNfts[_externalAddress][_externalId] == false, ...
935,279
[ 1, 4625, 348, 7953, 560, 30, 8879, 788, 632, 20392, 1000, 3903, 423, 4464, 468, 68, 67, 9375, 548, 68, 487, 8493, 61, 3155, 468, 68, 67, 869, 93, 11994, 11294, 87, 225, 8459, 3903, 423, 4464, 18, 632, 5206, 22435, 309, 5793, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1692, 6841, 50, 1222, 12, 203, 3639, 2254, 389, 869, 93, 11994, 16, 7010, 3639, 1758, 389, 9375, 1887, 16, 7010, 3639, 2254, 389, 9375, 548, 203, 565, 262, 3903, 848, 3542, 340, 24899, 869, 93, 11994, 13, 288, 203, 36...
// SPDX-License-Identifier: MIT // solhint-disable not-rely-on-time, max-states-count pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/...
calculates dao fee )
uint256 daoFee = (daoRate == 0) ? 0 : balance / daoRate;
10,006,827
[ 1, 4625, 348, 7953, 560, 30, 225, 17264, 15229, 14036, 262, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 2254, 5034, 15229, 14667, 273, 261, 2414, 83, 4727, 422, 374, 13, 692, 374, 294, 11013, 342, 15229, 4727, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x7abC1FBC4F113e63f73450A59b0dCDD1cd237128/sources/contracts/4_GarTier.sol
@notice collect ether to owner account
function collect() external onlyAuthorized { address(uint160(owner)).transfer(address(this).balance); }
4,983,936
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3274, 225, 2437, 358, 3410, 2236, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3274, 1435, 3903, 1338, 15341, 288, 203, 3639, 1758, 12, 11890, 16874, 12, 8443, 13, 2934, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint25...
Due to the high interest rate for the first two years, compounding should be taken into account. Effective annual interest rate = (1 + (nominal rate / number of compounding periods)) ^ (number of compounding periods) - 1 1st, 2nd year effective annual interest rate is 300% when we select the stakeMaxAge (90 days) as t...
function getProofOfStakeReward(address _address) internal view returns (uint) { require( (now >= stakeStartTime) && (stakeStartTime > 0) ); uint _now = now; uint _coinAge = getCoinAge(_address, _now); if(_coinAge <= 0) return 0; uint interest = maxMintProofOfStake; ...
425,837
[ 1, 4625, 348, 7953, 560, 30, 225, 463, 344, 358, 326, 3551, 16513, 4993, 364, 326, 1122, 2795, 11387, 16, 11360, 310, 1410, 506, 9830, 1368, 2236, 18, 512, 21446, 8226, 1462, 16513, 4993, 273, 261, 21, 397, 261, 12306, 1490, 4993, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 3570, 792, 951, 510, 911, 17631, 1060, 12, 2867, 389, 2867, 13, 2713, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 2583, 12, 261, 3338, 1545, 384, 911, 13649, 13, 597, 261, 334, 911, 13649, 405, 374, 13, 11272, 203, 20...
./full_match/43113/0x9323DF27d519C1181c63c2FC1bdBB4DF40927fe2/sources/contracts/test.sol
ipfs:QmcM2pbvjXfTYQShMUWihZxNYdyE8roHHNBVi5r8mTytfj/hidden.json ipfs:QmQBHJM7vx7p4247kzwbmXKKmi7ED5Ugq4DVKbvfWVnAuA/ Base URI
contract ERC721Metadata is ERC721Enumerable, Ownable { using Strings for uint256; string private baseURI; string public baseExtension = ".json"; bool public revealed = false; string public notRevealedUri; constructor( string memory name_, string memory symbol_, string ...
7,158,630
[ 1, 4625, 348, 7953, 560, 30, 225, 2359, 2556, 30, 53, 13952, 49, 22, 5733, 90, 78, 60, 74, 5538, 53, 1555, 49, 57, 59, 7392, 62, 92, 50, 61, 15680, 41, 28, 303, 17500, 20626, 58, 77, 25, 86, 28, 81, 56, 93, 6632, 78, 19, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 2277, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533, 3238, 1026, 3098, 31, 203, 565, 533, 1071, 1026, 3625, 273, 3552, 1977, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.6; import "./AcuityItemStoreInterface.sol"; import "./AcuityItemStoreConstants.sol"; import "./AcuityItemStoreRegistry.sol"; /** * @title AcuityItemStoreIpfsSha256 * @author Jonathan Brown <jbrown@acuity.social> * @dev AcuityItemStoreInterface implementa...
* @dev Get the id for this contract. @return Id of the contract./
function getContractId() override external view returns (bytes8) { return bytes8(contractId << 192); }
12,839,091
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 326, 612, 364, 333, 6835, 18, 632, 2463, 3124, 434, 326, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 8924, 548, 1435, 3849, 3903, 1476, 1135, 261, 3890, 28, 13, 288, 203, 3639, 327, 1731, 28, 12, 16351, 548, 2296, 20217, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0x371f1285C5A857c8425Eb38780AE9CC18D4B5F1b/sources/Proxy.sol
bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))
contract ERC721Receiver { bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; function onERC721Received(address operator, address, uint256, bytes memory) external view returns (bytes4) { require(operator == address(this), "Illegal caller!"); return _ERC721_RECEIVED; } }
5,270,075
[ 1, 4625, 348, 7953, 560, 30, 225, 1731, 24, 12, 79, 24410, 581, 5034, 2932, 265, 654, 39, 27, 5340, 8872, 12, 2867, 16, 2867, 16, 11890, 5034, 16, 3890, 2225, 3719, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 12952, 288, 203, 565, 1731, 24, 3238, 5381, 389, 654, 39, 27, 5340, 67, 27086, 20764, 273, 374, 92, 23014, 70, 27, 69, 3103, 31, 203, 203, 565, 445, 603, 654, 39, 27, 5340, 8872, 12, 2867, 3726, 16,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * Imports */ import "./GSN/Context.sol"; import "./token/EIP20/IEIP20.sol"; import "./token/EIP20/SafeEIP20.sol"; import "./utils/ReentrancyGuard.sol"; /** * Smart contract implementing an investment fund logic. */ contract InvestmentFund is Context, Ree...
Events for starting investor deposit
event InvestorsDepositStarted();
14,116,102
[ 1, 4625, 348, 7953, 560, 30, 225, 9043, 364, 5023, 2198, 395, 280, 443, 1724, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 5454, 395, 1383, 758, 1724, 9217, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "./TellorVars.sol"; import "./interfaces/IOracle.sol"; import "./interfaces/IController.sol"; import "./interfaces/ITreasury.sol"; /** @author Tellor Inc. @title Governance @dev This is the Governance contract which defines the functionality for * prop...
Update time vote was tallied
_thisVote.tallyDate = block.timestamp;
5,352,566
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 813, 12501, 1703, 268, 454, 2092, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 2211, 19338, 18, 88, 1230, 1626, 273, 1203, 18, 5508, 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...
./partial_match/42/0xb73852dC78192Cf70b6588dffAaF8783321E9625/sources/StabinolStaker.sol
User can force update her/his balance if it increases, extends claim window though
function updateMyBalance() external nonReentrant { require(claimerAddress != address(0), "Claimer not set yet"); }
3,378,844
[ 1, 4625, 348, 7953, 560, 30, 225, 2177, 848, 2944, 1089, 22336, 19, 76, 291, 11013, 309, 518, 7033, 3304, 16, 3231, 7516, 2742, 11376, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 12062, 13937, 1435, 3903, 1661, 426, 8230, 970, 203, 565, 288, 203, 3639, 2583, 12, 830, 69, 4417, 1887, 480, 1758, 12, 20, 3631, 315, 2009, 69, 4417, 486, 444, 4671, 8863, 203, 565, 289, 203, 203, 2, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import {PausableUpgradeable} from "@openzeppelin/contracts-upgra...
@notice Set utilityToken @param newUtilityToken new token
function setUtilityToken(address newUtilityToken) external onlyOwner { utilityToken = ILostSocksThread(newUtilityToken); }
1,576,275
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1000, 12788, 1345, 632, 891, 394, 6497, 1345, 394, 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, ...
[ 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, 225, 445, 444, 6497, 1345, 12, 2867, 394, 6497, 1345, 13, 3903, 1338, 5541, 288, 203, 565, 12788, 1345, 273, 467, 19024, 55, 20641, 3830, 12, 2704, 6497, 1345, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100,...
./full_match/137/0x9D5b588E5DaAC8055886D055418425c96faF9F56/sources/Special_Pool_V2.sol
update total staking amount
totalStaking = totalStaking.add(_quantity);
4,773,731
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 2078, 384, 6159, 3844, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 510, 6159, 273, 2078, 510, 6159, 18, 1289, 24899, 16172, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** * @authors: [@unknownunknown1] * @reviewers: [] * @auditors: [] * @bounties: [] * @deployments: [] */ /* solium-disable security/no-block-members */ pragma solidity ^0.5.0; import "./KlerosLiquid.sol"; import "@kleros/kleros-interaction/contracts/libraries/CappedMath.sol"; contract KlerosGovernor is A...
* @dev Returns true if the specified list in the specified round was funded. Note that for a dispute round this function will return false but it's not an issue since disputes are automatically funded with submission deposits anyway. @param _listID The index of the transaction list in the array of lists. @param _rou...
function isAppealFeePaid(uint _listID, uint _round) public view returns(bool){ return txLists[_listID].appealFeePaid[_round]; }
12,868,830
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 638, 309, 326, 1269, 666, 316, 326, 1269, 3643, 1703, 9831, 785, 18, 225, 3609, 716, 364, 279, 1015, 2507, 3643, 333, 445, 903, 327, 629, 1496, 518, 1807, 486, 392, 5672, 3241, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 1294, 347, 287, 14667, 16507, 350, 12, 11890, 389, 1098, 734, 16, 2254, 389, 2260, 13, 1071, 1476, 1135, 12, 6430, 15329, 203, 3639, 327, 2229, 7432, 63, 67, 1098, 734, 8009, 438, 347, 287, 14667, 16507, 350, 63, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; import "../interfaces/IContractsRegistry.sol"; abstract contract AbstractDependant { /// @dev keccak256(AbstractDependant.setInjector(address)) - 1 bytes32 private constant _INJECTOR_SLOT = 0xd6b8f2e074594ceb05d47c27386969754b6ad0c15e5eb8f691399c...
* @title Counters @author Matt Condon (@shrugs) @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number of elements in a mapping, issuing ERC721 ids, or counting request ids. Include with `using Counters for Counters.Counter;` Since it is not possible to over...
library CountersUpgradeable { using SafeMathUpgradeable for uint256; } struct Counter { } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { counter._value += 1; } ...
430,466
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 9354, 87, 632, 4161, 490, 4558, 735, 19752, 261, 36, 674, 8653, 564, 13, 632, 5206, 28805, 13199, 716, 848, 1338, 506, 28859, 578, 15267, 329, 635, 1245, 18, 1220, 848, 506, 1399, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 9354, 87, 10784, 429, 288, 203, 565, 1450, 14060, 10477, 10784, 429, 364, 2254, 5034, 31, 203, 203, 97, 203, 203, 565, 1958, 9354, 288, 203, 565, 289, 203, 203, 565, 445, 783, 12, 4789, 2502, 3895, 13, 2713, 1476, 1135, ...
./partial_match/1/0x34A542aCD8A717B5933228Ae3C554B1328F36e14/sources/ERC20ByMetadrop.sol
* @dev Transfers manager of the contract to a new account (`newManager`) and deletes any pending manager. Internal function without access restriction./
function _transferManager(address newManager) internal virtual override { delete _pendingManager; super._transferManager(newManager); }
2,631,498
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 3301, 434, 326, 6835, 358, 279, 394, 2236, 21863, 2704, 1318, 24065, 471, 9792, 1281, 4634, 3301, 18, 3186, 445, 2887, 2006, 9318, 18, 19, 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, 0, 0, 0, 0, 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, 389, 13866, 1318, 12, 2867, 394, 1318, 13, 2713, 5024, 3849, 288, 203, 565, 1430, 389, 9561, 1318, 31, 203, 565, 2240, 6315, 13866, 1318, 12, 2704, 1318, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./full_match/1/0xB18D7b29555f7Ae9D4bd9BCF19D666FE1C896c43/sources/contracts/VipCapped.sol
* @notice A basic guest list contract for testing. @dev For a Vyper implementation of this contract containing additional The bouncer can invite arbitrary guests A guest can be added permissionlessly with proof of inclusion in current merkle set The bouncer can change the merkle root at any time Merkle-based permission...
contract VipCappedGuestList { using SafeMath for uint256; address public vault; address public bouncer; bytes32 public guestRoot; uint256 public userDepositCap; mapping(address => bool) public guests; event ProveInvitation(address indexed account, bytes32 indexed guestRoot); event Se...
3,093,347
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 432, 5337, 13051, 666, 6835, 364, 7769, 18, 632, 5206, 2457, 279, 776, 8300, 4471, 434, 333, 6835, 4191, 3312, 1021, 324, 465, 2750, 848, 19035, 11078, 13051, 87, 432, 13051, 848, 506, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 776, 625, 4664, 1845, 12978, 682, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1758, 1071, 9229, 31, 203, 565, 1758, 1071, 324, 465, 2750, 31, 203, 203, 565, 1731, 1578, 1071, 13051, 2375, 31, 203...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.6; // Part: Address /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for w...
* @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 dealing with GSN meta-transactions the account sending and paying for ex...
contract Context { constructor() {} function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { return msg.data; } }
1,636,987
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 28805, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1772, 288, 203, 203, 203, 203, 565, 3885, 1435, 2618, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 565, 445, 389, 3...
pragma solidity ^0.7.0; contract Owned { modifier onlyOwner() { require(msg.sender == owner); _; } address owner; address newOwner; function changeOwner(address payable _newOwner) public onlyOwner { newOwner = _newOwner; } function acceptOwnership() public { ...
33,000 is Total Supply ; Rest 18 Zeros are Decimals
maxSupply = 33000000000000000000000;
2,436,870
[ 1, 4625, 348, 7953, 560, 30, 225, 13159, 16, 3784, 353, 10710, 3425, 1283, 274, 6320, 6549, 2285, 4345, 854, 3416, 11366, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 3088, 1283, 282, 273, 13159, 12648, 12648, 11706, 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...
./partial_match/3/0xDEFc008BAC1e38F13F081DDD20acf89985DFa7C8/sources/BoostedSavingsVault.sol
* @dev Updates the reward for a given address, before executing function. Locks 80% of new rewards up for 6 months, vesting linearly from (time of last action + 6 months) to (now + 6 months). This allows rewards to be distributed close to how they were accrued, as opposed to locking up for a flat 6 months from the time...
modifier updateReward(address _account) { uint256 currentTime = block.timestamp; uint64 currentTime64 = SafeCast.toUint64(currentTime); (uint256 newRewardPerToken, uint256 lastApplicableTime) = _rewardPerToken(); if(newRewardPerToken > 0) { rewardPerTokenStored = newRew...
5,072,192
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15419, 326, 19890, 364, 279, 864, 1758, 16, 1865, 11274, 445, 18, 3488, 87, 8958, 9, 434, 394, 283, 6397, 731, 364, 1666, 8846, 16, 331, 10100, 9103, 715, 628, 261, 957, 434, 1142, 1301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9606, 1089, 17631, 1060, 12, 2867, 389, 4631, 13, 288, 203, 3639, 2254, 5034, 6680, 273, 1203, 18, 5508, 31, 203, 3639, 2254, 1105, 6680, 1105, 273, 14060, 9735, 18, 869, 5487, 1105, 12, 2972, 950, 1769, 203, 203, 3639, 261,...
/** *Submitted for verification at Etherscan.io on 2020-09-04 */ // Copyright (C) 2020 Maker Ecosystem Growth Holdings, INC. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either...
Provides a descriptive tag for bot consumption This should be modified weekly to provide a summary of the actions Hash: seth keccak -- "$(wget https:raw.githubusercontent.com/makerdao/community/d8496d07a5eae08f2d1886f6bf4de1a813b4584d/governance/votes/Executive%20vote%20-%20September%204%2C%202020.md -q -O - 2>/dev/nu...
contract DssSpell { DSPauseAbstract public pause = DSPauseAbstract(0xbE286431454714F511008713973d3B053A2d38f3); address public action; bytes32 public tag; uint256 public eta; bytes public sig; uint256 public expiration; bool public...
5,535,298
[ 1, 4625, 348, 7953, 560, 30, 225, 28805, 279, 302, 31812, 1047, 364, 2512, 24550, 1220, 1410, 506, 4358, 4860, 715, 358, 5615, 279, 4916, 434, 326, 4209, 2474, 30, 444, 76, 417, 24410, 581, 1493, 4662, 12, 91, 588, 2333, 30, 1899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1049, 3389, 1165, 288, 203, 565, 463, 3118, 1579, 7469, 1071, 11722, 273, 203, 3639, 463, 3118, 1579, 7469, 12, 20, 6114, 41, 6030, 1105, 23, 3461, 6564, 27, 3461, 42, 25, 2499, 713, 11035, 24347, 9036, 72, 23, 38, ...
./partial_match/1/0xdF1d7FD22aC3aB5171E275796f123224039f3b24/sources/src/v0.8/ccip/onRamp/EVM2EVMOnRamp.sol
@dev The execution fee token config that can be set by the owner or fee admin
mapping(address token => FeeTokenConfig feeTokenConfig) internal s_feeTokenConfig;
4,303,761
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1021, 4588, 14036, 1147, 642, 716, 848, 506, 444, 635, 326, 3410, 578, 14036, 3981, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 2867, 1147, 516, 30174, 1345, 809, 14036, 1345, 809, 13, 2713, 272, 67, 21386, 1345, 809, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xDB7346f9Cc85ED5c81b7daE8A2Da86255c108E6F/sources/SUCKMYDICK.sol
* @dev See {IERC20-balanceOf}./
function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; }
2,652,329
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 3462, 17, 12296, 951, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 445, 11013, 951, 12, 2867, 2236, 13, 1071, 1476, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 327, 389, 70, 26488, 63, 4631, 15533, 203, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x3558a74679b6993be1FA230a961D8a4f3EB2C330/sources/browser/ZOMDeFi.sol
reduce 5% from the amount send rest amount to receiver burn 5% transfer the rest amount
function transfer(address recipient, uint256 amount) public override onlyPayloadSize(2 * 32) returns (bool) { uint256 amounttoburn = _getamount(amount); uint256 amounttosend = amount.sub(amounttoburn); _burn(_msgSender(), amounttoburn); _moveDelegates(_delegates[_msgSender(...
8,345,384
[ 1, 4625, 348, 7953, 560, 30, 225, 5459, 1381, 9, 628, 326, 3844, 1366, 3127, 3844, 358, 5971, 18305, 1381, 9, 7412, 326, 3127, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 377, 445, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 1071, 3849, 1338, 6110, 1225, 12, 22, 380, 3847, 13, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 3844, 869, 70, 321, 273, 389, 588, 8949, 12, 8949, 1769, 203, 3639,...
./partial_match/1/0xb0A8E48379131f417fed679e4D1499DE45c64d53/sources/JiggaToken.sol
now swapping half of the liquidity part + all of the distribution part into ETH
function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { uint256 liquidityPart = 0; if (_pendingLiquidityFees < contractTokenBalance) liquidityPart = _pendingLiquidityFees; uint256 distributionPart = contractTokenBalance.sub(liquidityPart); uint256 liquidityHalfPa...
2,612,132
[ 1, 4625, 348, 7953, 560, 30, 2037, 7720, 1382, 8816, 434, 326, 4501, 372, 24237, 1087, 397, 777, 434, 326, 7006, 1087, 1368, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 7720, 1876, 48, 18988, 1164, 12, 11890, 5034, 6835, 1345, 13937, 13, 3238, 2176, 1986, 12521, 288, 203, 3639, 2254, 5034, 4501, 372, 24237, 1988, 273, 374, 31, 203, 3639, 309, 261, 67, 9561, 48, 18988, 24237, 2954, 281, ...
./partial_match/1/0x59a3fa712bc01F3Af4E791BFF6A408dea2BbF39f/sources/Users/chichke/Documents/Work/Freelance/RealT/bridge-v2-chichke/contracts/operating/ComplianceRegistry.sol
* @dev Returns the CHF amount transfered (OUT) by an address for a 12 months period for a specific realm @param _realm the realm for which we want the amount to be returned @param _trustedIntermediaries array of trustedIntermediaries in which we lookup the address @param _address address to lookup @return the CHF amoun...
function _yearlyOutTransfers( address _realm, address[] memory _trustedIntermediaries, address _address ) internal view returns (uint256) { uint256 _userId; address _trustedIntermediary; (_userId, _trustedIntermediary) = _getUser(_trustedIntermediaries, _address); uint256 amount ...
2,718,031
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 6469, 42, 3844, 7412, 329, 261, 5069, 13, 635, 392, 1758, 364, 279, 2593, 8846, 3879, 364, 279, 2923, 11319, 632, 891, 389, 24056, 326, 11319, 364, 1492, 732, 2545, 326, 3844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 6874, 715, 1182, 1429, 18881, 12, 203, 565, 1758, 389, 24056, 16, 203, 565, 1758, 8526, 3778, 389, 25247, 2465, 5660, 5646, 16, 203, 565, 1758, 389, 2867, 203, 225, 262, 7010, 565, 2713, 1476, 1135, 261, 11890, 503...
// SPDX-License-Identifier: MIT // _____ _____ _______ _____ _____ _____ // /\ \ /\ \ /::\ \ /\ \ /\ \ /\ \ // /::\ \ ...
Write previous Owner Data
_addressIDs[prevOwner] = poID;
1,413,178
[ 1, 4625, 348, 7953, 560, 30, 2598, 2416, 16837, 1910, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 2867, 5103, 63, 10001, 5541, 65, 273, 8275, 734, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity >=0.4.22 <0.6.0; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } interface CitizenInterface { function pushGametRefIncome(address _sender) external payable; function pushGametRefIncomeToken(address ...
DAAContract, TicketContract, CitizenContract
function joinNetwork(address[3] _contract) public { require(address(CitizenContract) == 0x0,"already setup"); CitizenContract = CitizenInterface(_contract[2]); for(uint256 i =0; i<3; i++){ isCoreContract[_contract[i]]=true; coreContracts.push(_contract[i])...
1,768,420
[ 1, 4625, 348, 7953, 560, 30, 225, 463, 5284, 8924, 16, 22023, 8924, 16, 385, 305, 452, 275, 8924, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1233, 3906, 12, 2867, 63, 23, 65, 389, 16351, 13, 203, 3639, 1071, 203, 565, 288, 203, 3639, 2583, 12, 2867, 12, 39, 305, 452, 275, 8924, 13, 422, 374, 92, 20, 10837, 17583, 3875, 8863, 203, 3639, 385, 305, 452, 275...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "../interfaces/IController.sol"; import "../interfaces/IConverter.sol"; import "../int...
* @title Controller @notice This controller allows multiple strategies to be used for a single vault supporting multiple tokens./
contract Controller is IController { using SafeERC20 for IERC20; using SafeMath for uint256; IManager public immutable override manager; bool public globalInvestEnabled; uint256 public maxStrategies; struct VaultDetail { address converter; uint256 balance; address[] s...
930,678
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6629, 632, 20392, 1220, 2596, 5360, 3229, 20417, 358, 506, 1399, 364, 279, 2202, 9229, 22930, 3229, 2430, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6629, 353, 467, 2933, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 1318, 1071, 11732, 3849, 3301, 31, 203, 203, 565, 1426, ...
pragma solidity 0.7.3; abstract contract Context { function _msgSender() internal virtual view returns (address payable) { return msg.sender; } function _msgData() internal virtual view returns (bytes memory) { this; // silence state mutability warning without generating byteco...
assert(a == b * c + a % b); There is no case in which this doesn't hold
function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; return c; }
7,567,661
[ 1, 4625, 348, 7953, 560, 30, 225, 1815, 12, 69, 422, 324, 380, 276, 397, 279, 738, 324, 1769, 225, 6149, 353, 1158, 648, 316, 1492, 333, 3302, 1404, 6887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3739, 12, 203, 203, 203, 3639, 2254, 5034, 279, 16, 203, 203, 203, 3639, 2254, 5034, 324, 16, 203, 203, 203, 3639, 533, 3778, 9324, 203, 203, 203, 565, 262, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 203, 203,...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs struct StrategyParams { uint256 performanceFee; uint256 activation; uint256 debtRatio; uint256 minDebtPerHarvest; uint256 maxDebtPerHarvest; uint256 lastReport; uin...
convert bps to wad
liquidationThreshold = liquidationThreshold.mul(BPS_WAD_RATIO);
219,088
[ 1, 4625, 348, 7953, 560, 30, 225, 1765, 324, 1121, 358, 341, 361, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4501, 26595, 367, 7614, 273, 4501, 26595, 367, 7614, 18, 16411, 12, 38, 5857, 67, 59, 1880, 67, 54, 789, 4294, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x72AD58f0917deB04eC8b6AdA584ABd0dBe502128/sources/GStrategyGuard.sol
@notice Function that converts _amount of ETH to USD using CL ETH/USD pricefeed @notice It also scales the price to 18 decimals as ETH/USD feed has non 18 decimals @param _amount the amount of ETH to convert Scale the price to 18 decimals
function _convertETHToUSD(uint256 _amount) internal view returns (uint256) { (, int256 ethPriceInUsd, , , ) = CL_ETH_USD.latestRoundData(); uint256 ethPriceInWei = uint256(ethPriceInUsd) * 10**(TARGET_DECIMALS - CL_ETH_USD.decimals()); return (_amount * ethPriceInWei) / 10**TARGE...
3,586,996
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4284, 716, 7759, 389, 8949, 434, 512, 2455, 358, 587, 9903, 1450, 14934, 512, 2455, 19, 3378, 40, 6205, 7848, 632, 20392, 2597, 2546, 18211, 326, 6205, 358, 6549, 15105, 487, 512, 2455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 6283, 1584, 44, 774, 3378, 40, 12, 11890, 5034, 389, 8949, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 261, 16, 509, 5034, 13750, 5147, 382, 3477, 72, 16, 269, 269, 262, 273, 14934, 67, 1584, 44, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./KindlyERC721Interface.sol"; contract KindlyMarketplace { address public kindlyNFT; // = 0x08c7944E25b8AffB8ac7F47556629fe9175Ba092; // TODO: if contract is not hardcoded a revert is hit in th...
rewardsToken = IERC20(_rewardsToken); no need for reward token
constructor(address _stakingToken, /* address _rewardsToken,*/ address _kindlyNFTAddress, address _charityAddress) { stakingToken = IERC20(_stakingToken); kindlyNFT = _kindlyNFTAddress; charityAddress = _charityAddress; }
5,488,731
[ 1, 4625, 348, 7953, 560, 30, 225, 283, 6397, 1345, 273, 467, 654, 39, 3462, 24899, 266, 6397, 1345, 1769, 225, 1158, 1608, 364, 19890, 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, ...
[ 1, 1, 1, 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, 3885, 12, 2867, 389, 334, 6159, 1345, 16, 1748, 1758, 389, 266, 6397, 1345, 16, 5549, 1758, 389, 9224, 715, 50, 4464, 1887, 16, 1758, 389, 3001, 560, 1887, 13, 288, 203, 3639, 384, 6159, 1345, 273, 467, 654, 39, 3462, 2489...
./full_match/1/0xd40eEEFDe1832016d6C9cf9f4568d1aBDB356E75/sources/contracts/artist/common/AuctionHouse.sol
withdraw send a fraction of the balance to wild first
function _withdraw() internal { require(auctionSettled == true && block.timestamp > auctionEndDateTime, 'Auction not settled||not ended. Cannot withdraw.'); if (wildPrimaryRoyalty > 0) { require(successWild, 'AuctionHouse: Failed to withdraw to wild payee.'); } require(...
17,004,050
[ 1, 4625, 348, 7953, 560, 30, 225, 598, 9446, 1366, 279, 8330, 434, 326, 11013, 358, 23578, 1122, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1918, 9446, 1435, 2713, 288, 203, 3639, 2583, 12, 69, 4062, 694, 88, 1259, 422, 638, 597, 1203, 18, 5508, 405, 279, 4062, 1638, 5096, 16, 296, 37, 4062, 486, 26319, 1259, 20081, 902, 16926, 18, 14143, 598, 9446, ...
/** *Submitted for verification at Etherscan.io on 2020-06-09 */ /** *Submitted for verification at Etherscan.io on 2020-06-09 */ pragma solidity ^0.5.12; /** * @title Quotation data contract * @dev Verification of quotation contract */ contract NEST_3_OfferData { mapping (address => bool) addressMapping; ...
* @title SafeMath @dev Math operations with safety checks that revert on error/
library SafeMath { int256 constant private INT256_MIN = -2**255; function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } function mul(uint256 a, uint256 b) i...
12,642,499
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14060, 10477, 632, 5206, 2361, 5295, 598, 24179, 4271, 716, 15226, 603, 555, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 14060, 10477, 288, 203, 565, 509, 5034, 5381, 3238, 6137, 5034, 67, 6236, 273, 300, 22, 636, 10395, 31, 203, 203, 565, 445, 14064, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288...
/** Contract to enable the management of ZKSnark-hidden coin transactions. @Author Westlad, Chaitanya-Konda, iAmMichaelConnor */ pragma solidity ^0.5.8; import "./Ownable.sol"; import "./MerkleTree.sol"; import "./Verifier_Registry.sol"; //we import the implementation to have visibility of its 'getters' import "./Ver...
recalculate the root of the merkleTree as it's now different
latestRoot = insertLeaves(leaves);
6,397,422
[ 1, 4625, 348, 7953, 560, 30, 225, 26657, 326, 1365, 434, 326, 30235, 2471, 487, 518, 1807, 2037, 3775, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1377, 4891, 2375, 273, 2243, 1682, 6606, 12, 298, 6606, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* * _____________ _______ _____ ___________ ________ ________ _ _ ______ * / __ | ___ \ \ / | ___ |_ _| _ | _ | ___| \/ | _ | \ | |___ / * | / \| |_/ /\ V /| |_/ / | | | | | | | | | |__ | | | | | \| | / / * | | | / \ / | __/ | | | | | | | | | __|| |\/| | | | | | / / * ...
* @notice calculate rewards of each NFT based on our formula {see whitepaper for clear explanation}/
function _getReward( uint256 _rarity, uint256 _daysStaked, uint256 _multiplier, uint256 _amountOfStakers ) internal pure returns (uint256) { uint256 baseMultiplier = _multiplier * _daysStaked; uint256 basemultiplierxRarity = baseMultiplier * _rarity; uint2...
6,354,127
[ 1, 4625, 348, 7953, 560, 30, 380, 565, 632, 20392, 4604, 283, 6397, 434, 1517, 423, 4464, 2511, 603, 3134, 8013, 565, 288, 5946, 600, 305, 881, 7294, 364, 2424, 21285, 4004, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 17631, 1060, 12, 203, 3639, 2254, 5034, 389, 86, 20498, 16, 203, 3639, 2254, 5034, 389, 9810, 510, 9477, 16, 203, 3639, 2254, 5034, 389, 20538, 16, 203, 3639, 2254, 5034, 389, 8949, 951, 510, 581, 414, 203, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; contract realEstate { // Declare state variables in this section uint8 public avgBlockTime; // Avg block time in seconds. uint8 private decimals; // Decimals of our Shares. Has to be 0. uint8 public tax; ...
Price per Share a Stakeholder wants to have when offering to other Stakeholders
mapping (address => uint256) public shareSellPrice;
5,401,241
[ 1, 4625, 348, 7953, 560, 30, 225, 20137, 1534, 25805, 279, 934, 911, 4505, 14805, 358, 1240, 1347, 10067, 310, 358, 1308, 934, 911, 9000, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 7433, 55, 1165, 5147, 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...
// SPDX-License-Identifier: Unlicense pragma solidity 0.8.11; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) /// @dev Note that balanceOf does not revert if passed the zero address, in defiance of t...
@notice Modern, minimalist, and gas efficient ERC-721 implementation. @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) @dev Note that balanceOf does not revert if passed the zero address, in defiance of the ERC.
abstract contract ERC721 { EVENTS event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool a...
6,616,629
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3431, 8865, 16, 16745, 376, 16, 471, 16189, 14382, 4232, 39, 17, 27, 5340, 4471, 18, 632, 4161, 348, 355, 81, 340, 261, 4528, 2207, 6662, 18, 832, 19, 54, 12954, 17, 4664, 7053, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 288, 203, 4766, 9964, 55, 203, 203, 565, 871, 12279, 12, 2867, 8808, 628, 16, 1758, 8808, 358, 16, 2254, 5034, 8808, 612, 1769, 203, 203, 565, 871, 1716, 685, 1125, 12, 2867, 8808, 3410, 16, 175...
pragma solidity ^0.4.25; // ---------------------------------------------------------------------------- // 'btcc' token contract // // Symbol : BTCC // Name : BTCCREDIT Token // Total supply: 300000000 // Decimals : 18 // // -------------------------------------------------------------------...
---------------------------------------------------------------------------- Owned contract ----------------------------------------------------------------------------
contract Owned { address public owner; address public newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner, "You are not owner"); _; } fu...
15,795,454
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 14223, 11748, 6835, 8879, 13849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 11748, 288, 203, 565, 1758, 1071, 3410, 31, 203, 565, 1758, 1071, 394, 5541, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 389, 2080, 16, 1758, 8808, 389, 869, 1769, 203, 203, 565, 3885, 143...
pragma solidity ^0.4.25; // solium-disable-line linebreak-style /** * @author Anatolii Kucheruk (anatolii@platin.io) * @author Platin Limited, platin.io (platin@platin.io) */ /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev M...
* @dev Constructor @param _tgeTime uint256 TGE moment of time @param _token address Address of the Platin Token contract @param _preIcoPool address Address of the Platin PreICO Pool @param _liquidPool address Address of the Platin Liquid Pool @param _ico address Address of the Platin ICO contract @param _miningPool add...
) public { require(_token != address(0), "Token address can't be zero."); require(_preIcoPool != address(0), "PreICO Pool address can't be zero."); require(_liquidPool != address(0), "Liquid Pool address can't be zero."); require(_ico != address(0), "ICO address can't be zero."); ...
6,360,436
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11417, 632, 891, 389, 88, 908, 950, 2254, 5034, 399, 7113, 10382, 434, 813, 632, 891, 389, 2316, 1758, 5267, 434, 326, 3008, 270, 267, 3155, 6835, 632, 891, 389, 1484, 45, 2894, 2864, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 262, 1071, 288, 203, 3639, 2583, 24899, 2316, 480, 1758, 12, 20, 3631, 315, 1345, 1758, 848, 1404, 506, 3634, 1199, 1769, 203, 3639, 2583, 24899, 1484, 45, 2894, 2864, 480, 1758, 12, 20, 3631, 315, 1386, 2871, 51, 8828, 1758...
//Address: 0x12795d1331b2f9a4c789203efc5987030854ad55 //Contract name: ElecSaleSmartContract //Balance: 0 Ether //Verification Date: 2/20/2018 //Transacion Count: 8290 // CODE STARTS HERE pragma solidity ^0.4.11; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/eth...
just to check that funds goes to the right place tokens are not given in returnfunction debugBuy() public payable {
require( msg.value == 123 );
12,761,050
[ 1, 4625, 348, 7953, 560, 30, 225, 2537, 358, 866, 716, 284, 19156, 13998, 358, 326, 2145, 3166, 2430, 854, 486, 864, 316, 327, 915, 1198, 38, 9835, 1435, 1071, 8843, 429, 288, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 1234, 18, 1132, 422, 17335, 11272, 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, ...
//Part of this contract is from the solidity documentation pragma solidity ^0.4.10; /** Prepare for deployments: * * Add a *100 fee to askMembership() * Switch fee to 0.01 ether * Set voteLenght = 15 days * */ /// @title Fund for donations. contract Abie { bytes32 public name; bytes32 public statement;...
number of YES votes.
uint voteYes;
12,762,551
[ 1, 4625, 348, 7953, 560, 30, 225, 1300, 434, 1624, 3991, 19588, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 12501, 22352, 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, -10...
./full_match/5/0x2ae4249D5e966fdcA7aB12eFFCeaa4e42961E3Bf/sources/project_/contracts/SmartLeaseContract.sol
智能租賃合約 定義一個事件「租約簽訂」 定義一個事件「符合租客資格」 定義一個事件「租客完成簽約」 定義一個事件「租客繳交押金」 事件:提出議價(時間戳、議價者地址、議價價格、斡旋保證金) 租客(是一個結構 struct)
contract SmartLeaseContract { event WrittenContractProposed(uint256 timestamp, string ipfsHash); event TenantQualified( uint256 timestamp, address tenantAddress, uint256 depositAmount ); event TenantSigned(uint256 timestamp, address tenantAddress); event DepositPayed( ...
1,929,083
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 167, 252, 123, 169, 230, 126, 168, 105, 258, 169, 116, 230, 166, 243, 235, 168, 117, 231, 225, 166, 111, 253, 168, 127, 107, 165, 121, 227, 166, 227, 238, 165, 123, 238, 165, 124, 119, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 19656, 17746, 8924, 288, 203, 565, 871, 10423, 2253, 8924, 626, 7423, 12, 11890, 5034, 2858, 16, 533, 2359, 2556, 2310, 1769, 203, 565, 871, 20256, 8708, 12, 203, 3639, 2254, 5034, 2858, 16, 203, 3639, 1758, 8466, 1887, 16, ...
./full_match/43113/0x9123CccA8D2Ad252063BdaB35328F338DdF91bee/sources/test.sol
* @notice Get token grant for recipient @dev Returns 0 if `deadline` is reached @param recipient The address that has a grant @return The amount recipient can claim/
function getTokenGrant(address recipient) public view returns(uint256){ return tokenGrants[recipient]; }
7,108,266
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 1147, 7936, 364, 8027, 632, 5206, 2860, 374, 309, 1375, 22097, 1369, 68, 353, 8675, 632, 891, 8027, 1021, 1758, 716, 711, 279, 7936, 632, 2463, 1021, 3844, 8027, 848, 7516, 19, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9162, 9021, 12, 2867, 8027, 13, 1071, 1476, 1135, 12, 11890, 5034, 15329, 203, 3639, 327, 1147, 29598, 63, 20367, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0xe05c45635EC5610440c77e215EF122cdD7f2d314/sources/src/libraries/ActionUtil.sol
* @title libraries to encode action arguments/
library ActionUtil { pragma solidity ^0.8.0; function concat(ActionArgs[] memory x, ActionArgs[] memory v) internal pure returns (ActionArgs[] memory y) { y = new ActionArgs[](x.length + v.length); uint256 z; uint256 i; for (i; i < x.length;) { y[z] = x[i]; un...
9,222,148
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14732, 358, 2017, 1301, 1775, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 4382, 1304, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 445, 3835, 12, 1803, 2615, 8526, 3778, 619, 16, 4382, 2615, 8526, 3778, 331, 13, 2713, 16618, 1135, 261, 1803, 2615, 8526, 3778, 677, 1...
//SPDX-License-Identifier: MIT pragma solidity 0.6.9; pragma experimental ABIEncoderV2; import "./LimitOrderBook.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contrac...
Store addresses of smart contracts that we will be interacting with
contract SmartWallet is DecimalERC20, Initializable, ISmartWallet, Pausable { LimitOrderBook public OrderBook; SmartWalletFactory public factory; address private owner; using Decimal for Decimal.decimal; using SignedDecimal for SignedDecimal.signedDecimal; using Address for address; using SafeERC20 fo...
12,909,900
[ 1, 4625, 348, 7953, 560, 30, 225, 4994, 6138, 434, 13706, 20092, 716, 732, 903, 506, 16592, 310, 598, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 19656, 16936, 353, 11322, 654, 39, 3462, 16, 10188, 6934, 16, 4437, 81, 485, 16936, 16, 21800, 16665, 288, 203, 203, 225, 7214, 2448, 9084, 1071, 4347, 9084, 31, 203, 225, 19656, 16936, 1733, 1071, 3272, 31, 203, 203, 203, ...
./full_match/5/0x5ff3910641b4434A28EB7d6ae39AAb1B5b72F7FB/sources/_manifoldxyz/creator-core-solidity/contracts/ERC721CreatorImplementation.sol
* @dev Mint token via extension/ Track the extension that minted the token
function _mintExtension(address to, string memory uri) internal virtual returns(uint256 tokenId) { ++_tokenCount; tokenId = _tokenCount; _checkMintPermissions(to, tokenId); _tokensExtension[tokenId] = msg.sender; _safeMint(to, tokenId); if (bytes(uri).length > 0) ...
1,906,830
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 474, 1147, 3970, 2710, 19, 11065, 326, 2710, 716, 312, 474, 329, 326, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 81, 474, 3625, 12, 2867, 358, 16, 533, 3778, 2003, 13, 2713, 5024, 1135, 12, 11890, 5034, 1147, 548, 13, 288, 203, 3639, 965, 67, 2316, 1380, 31, 203, 3639, 1147, 548, 273, 389, 2316, 1380, 31, 203, 203, 3639, ...
./full_match/137/0x3fdB6Ecd5ac2C5f9463A524576A70A0aC44A645D/sources/contracts/IERC20.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function decimals() external view returns (uint8); function name() external view returns (string memory); function symbol() external view returns (string memory); function balanceOf(address account) external view returns ...
4,755,561
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 15105, 1435, 3903, 1476, 1135, 261, 11890, 28, 1769, 203, 203, 565, 445, 508, 1435, 3903, 1476, 1...
./partial_match/1/0xD746Bcb37C7bef967DCB5AC87F77517cDec04d4e/sources/WLD.sol
at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. set deadblock when add initial lp check if we are in a fee period and adjust fee accordingly until fee is updated if any account belongs to _isExcludedFromFee account then remove the fee only take fees on bu...
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); if (amount == 0) { super._transf...
2,614,312
[ 1, 4625, 348, 7953, 560, 30, 225, 622, 8037, 309, 326, 7412, 4624, 353, 3696, 16, 3387, 326, 1203, 11267, 364, 5405, 343, 345, 414, 353, 444, 1493, 4982, 8037, 18, 444, 8363, 2629, 1347, 527, 2172, 12423, 866, 309, 732, 854, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
./full_match/11155111/0x922647b0a7Aa1E8a9052c87Cf66F6099055132f9/sources/contracts/interfaces/IRaffle.sol
* @param entriesCount The number of entries that can be purchased for the given price. @param price The price of the entries./
struct PricingOption { uint40 entriesCount; uint208 price; }
3,796,966
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 891, 3222, 1380, 1021, 1300, 434, 3222, 716, 848, 506, 5405, 343, 8905, 364, 326, 864, 6205, 18, 632, 891, 6205, 1021, 6205, 434, 326, 3222, 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, 565, 1958, 453, 1512, 310, 1895, 288, 203, 3639, 2254, 7132, 3222, 1380, 31, 203, 3639, 2254, 26825, 6205, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ICRC1155Enumerable.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; abstract contract CRC1155Enumerable is ERC1155, ICRC1155Enumerable { using EnumerableSet for Enu...
* @dev Returns the number of token ids held by `owner`./
function tokenCountOf(address owner) public view virtual override returns (uint256) { return _ownedTokens[owner].length(); }
2,576,377
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1300, 434, 1147, 3258, 15770, 635, 1375, 8443, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 1380, 951, 12, 2867, 3410, 13, 1071, 1476, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 995, 329, 5157, 63, 8443, 8009, 2469, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/1/0xFc6a933a32AA6A382EA06d699A8b788A0BC49fCb/sources/abi.sol
pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebt Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: 1. The pool's `accRewardPerShare` (and `lastRewardBlock`) gets updated. 2. User receives the pending reward sent to his/her address. 3. User's `amount` gets ...
struct UserInfo { uint256 lockEndedTimestamp; }
3,924,604
[ 1, 4625, 348, 7953, 560, 30, 565, 4634, 19890, 273, 261, 1355, 18, 8949, 380, 2845, 18, 8981, 17631, 1060, 2173, 9535, 13, 300, 729, 18, 266, 2913, 758, 23602, 3497, 4009, 502, 279, 729, 443, 917, 1282, 578, 598, 9446, 87, 511, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 25003, 288, 203, 3639, 2254, 5034, 2176, 28362, 4921, 31, 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, -1...
./full_match/80001/0xBbE027D52E8FE0E39e17059D6B42942252f221a9/sources/src/MintpadERC1155Drop.sol
@dev Collects and distributes the primary sale value of NFTs being claimed.
function collectPriceOnClaim( uint256 _tokenId, address _primarySaleRecipient, uint256 _quantityToClaim, address _currency, uint256 _pricePerToken ) internal override { if (_pricePerToken == 0) { return; } address _saleRecipient = _pri...
9,433,838
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9302, 87, 471, 1015, 1141, 326, 3354, 272, 5349, 460, 434, 423, 4464, 87, 3832, 7516, 329, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3274, 5147, 1398, 9762, 12, 203, 3639, 2254, 5034, 389, 2316, 548, 16, 203, 3639, 1758, 389, 8258, 30746, 18241, 16, 203, 3639, 2254, 5034, 389, 16172, 774, 9762, 16, 203, 3639, 1758, 389, 7095, 16, 203, 3639, 2254, 503...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; // Certik DCK-01 import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract DebloxNFT is ERC721Enum...
* @dev To mint given mint amount of NFT/
function mint(uint256 _a) external payable { require(sale, "NA2"); require(_a > 0, "NA3"); require(_a <= maxMint, "NA4"); require(price * _a <= msg.value, "NA5"); uint256 supply = totalSupply(); require(supply + _a <= maxSupply, "NA6"); uint256 ownerMintedCou...
7,218,786
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2974, 312, 474, 864, 312, 474, 3844, 434, 423, 4464, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 11890, 5034, 389, 69, 13, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 87, 5349, 16, 315, 11277, 22, 8863, 203, 3639, 2583, 24899, 69, 405, 374, 16, 315, 11277, 23, 8863, 203, 3639, 2583, 24899, 69, 1648, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.7.5; import "../libraries/SafeMath.sol"; import "../libraries/SafeERC20.sol"; import "../interfaces/IUniswapV2Router2.sol"; import "../interfaces/IUniswapV2Factory.sol"; import "../interfaces/IHelper.sol"; import "hardhat/console.sol"; contract Helper is IHelper...
@notice get LP token and LP amount @param _swapArgs encoded data @return lpAddress_ lp token address @return lpAmount_ lp token amount
function swapForDeposit(bytes calldata _swapArgs) external override transferHandler(_swapArgs) returns (address lpAddress_, uint256 lpAmount_) { (lpAddress_, lpAmount_) = __swapForDeposit(_swapArgs); }
12,825,408
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 336, 511, 52, 1147, 471, 511, 52, 3844, 632, 891, 389, 22270, 2615, 3749, 501, 632, 2463, 12423, 1887, 67, 12423, 1147, 1758, 632, 2463, 12423, 6275, 67, 12423, 1147, 3844, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 1290, 758, 1724, 12, 3890, 745, 892, 389, 22270, 2615, 13, 203, 3639, 3903, 540, 203, 3639, 3849, 540, 203, 3639, 7412, 1503, 24899, 22270, 2615, 13, 203, 3639, 1135, 261, 2867, 12423, 1887, 67, 16, 2254, 5034, 12...
pragma solidity ^0.6.0; /** * @author MyName * @title My Governance * @notice An example of a governance contract * @dev Unsafe contract! Do not use in production! */ contract MyGovernance { event NewProposal(uint256 indexed proposalId, address proposalDestination, bytes proposalCalldata, uint256 startTime, u...
* @notice Votes in a proposal @param _proposalId proposal index @param _approval true for approved, false for rejected/TODO: ensure accounts can't vote twice
function vote(uint256 _proposalId, bool _approval) external { require(proposals.length > _proposalId, "Invalid proposal"); require(block.timestamp >= proposals[_proposalId].startTime, "Vote period is in future"); require(block.timestamp < proposals[_proposalId].endTime, "Vote period is in pa...
6,401,086
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 776, 6366, 316, 279, 14708, 632, 891, 389, 685, 8016, 548, 14708, 770, 632, 891, 389, 12908, 1125, 638, 364, 20412, 16, 629, 364, 11876, 19, 6241, 30, 3387, 9484, 848, 1404, 12501, 13605...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12501, 12, 11890, 5034, 389, 685, 8016, 548, 16, 1426, 389, 12908, 1125, 13, 3903, 288, 203, 3639, 2583, 12, 685, 22536, 18, 2469, 405, 389, 685, 8016, 548, 16, 315, 1941, 14708, 8863, 203, 3639, 2583, 12, 2629, 18, 5...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import {IGammaRedeemerV1} from "./interfaces/IGammaRedeemerV1.sol"; import {IGammaOperator} from "./interfaces/IGammaOperator.sol"; import {IResolver} from "./interfaces/IResolver.sol"; import {MarginVault} from "./external/OpynVault.sol"; /// @author Willy Shen ...
* SPDX-License-Identifier: UNLICENSED/* @title MarginVault @author Opyn Team @notice A library that provides the Controller with a Vault struct and the functions that manipulate vaults. Vaults describe discrete position combinations of long options, short options, and collateral assets that a user can have./ vault is a...
library MarginVault { function createOrder( address _otoken, uint256 _amount, uint256 _vaultId ) external; function cancelOrder(uint256 _orderId) external; function shouldProcessOrder(uint256 _orderId) external view returns (bool); function processOrder(uint256 _orderId) e...
1,414,932
[ 1, 4625, 348, 7953, 560, 30, 380, 11405, 28826, 17, 13211, 17, 3004, 30, 5019, 6065, 1157, 18204, 20308, 632, 2649, 490, 5243, 12003, 632, 4161, 6066, 878, 10434, 632, 20392, 432, 5313, 716, 8121, 326, 6629, 598, 279, 17329, 1958, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 490, 5243, 12003, 288, 203, 565, 445, 752, 2448, 12, 203, 3639, 1758, 389, 352, 969, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 2254, 5034, 389, 26983, 548, 203, 565, 262, 3903, 31, 203, 203, 565, 445, 3755, 24...
./full_match/42/0xF22B03E07043A0332DDE01cAb564d8d67B8339e3/sources/browser/GoalBet.sol
**************************** * Contract variables * ****************************
contract GoalBet is IArbitrable { struct Bet { address[3] parties; mapping(address => uint) amountTaker; Arbitrator arbitrator; bytes arbitratorExtraData; uint[3] stakeMultiplier; } struct Round { } Bet[] public bets; address _governor uint8 constant AMOUNT_OF_CHOICES ...
16,289,333
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 19482, 14465, 225, 380, 565, 13456, 3152, 565, 380, 225, 380, 19482, 14465, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4220, 287, 38, 278, 353, 467, 686, 3682, 354, 7119, 288, 203, 203, 203, 203, 225, 1958, 605, 278, 288, 203, 565, 1758, 63, 23, 65, 1087, 606, 31, 203, 565, 2874, 12, 2867, 516, 2254, 13, 3844, 56, 6388, 31, 203, 565, ...
/** *Submitted for verification at Etherscan.io on 2020-08-06 */ pragma solidity 0.5.9; interface tokenTransfer { function transfer(address receiver, uint amount) external; function transferFrom(address _from, address _to, uint256 _value) external; function balanceOf(address receiver) external returns(ui...
@notice This method can be used by the owner to extract mistakenly sent tokens to this contract. @param _token The address of the token contract that you want to recover set to 0 in case you want to extract TBR.
function claimTokens(address _token) onlyOwner external { ERC20 token = ERC20(_token); uint balance = token.balanceOf(address(this)); token.transfer(owner, balance); }
5,545,682
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1220, 707, 848, 506, 1399, 635, 326, 3410, 358, 2608, 27228, 7940, 715, 225, 3271, 2430, 358, 333, 6835, 18, 632, 891, 389, 2316, 1021, 1758, 434, 326, 1147, 6835, 716, 1846, 2545, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 5157, 12, 2867, 389, 2316, 13, 1338, 5541, 3903, 288, 203, 3639, 4232, 39, 3462, 1147, 273, 4232, 39, 3462, 24899, 2316, 1769, 203, 3639, 2254, 11013, 273, 1147, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 363...
./full_match/80001/0xC76871cfe7B6fbdD969A98A036D13f0097E3ce9D/sources/_thirdweb-dev/contracts/drop/DropERC1155.sol
Token name Token symbol @dev The next token ID of the NFT to "lazy mint".
{ using BitMapsUpgradeable for BitMapsUpgradeable.BitMap; using StringsUpgradeable for uint256; State variables bytes32 private constant MODULE_TYPE = bytes32("DropERC1155"); uint256 private constant VERSION = 2; string public name; string public symbol; byte...
9,435,633
[ 1, 4625, 348, 7953, 560, 30, 225, 3155, 508, 3155, 3273, 632, 5206, 1021, 1024, 1147, 1599, 434, 326, 423, 4464, 358, 315, 15998, 312, 474, 9654, 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, 95, 203, 565, 1450, 6539, 8903, 10784, 429, 364, 6539, 8903, 10784, 429, 18, 5775, 863, 31, 203, 565, 1450, 8139, 10784, 429, 364, 2254, 5034, 31, 203, 203, 18701, 3287, 3152, 203, 203, 565, 1731, 1578, 3238, 5381, 14057, 67, 239...
./partial_match/4/0xEc4A4875443B9f7059e7e3F9df5b7865e74B5735/sources/SLC.sol
Only a valid owner can sign the transaction*/
function signTransaction(uint transactionId) public validOwner payable{ Transaction storage transaction = _transactions[transactionId]; require(transaction.signatures[msg.sender] != 1); transaction.signatures[msg.sender] = 1; transaction.signatureCount++; emit TransactionSigned(msg.sen...
8,612,135
[ 1, 4625, 348, 7953, 560, 30, 5098, 279, 923, 3410, 848, 1573, 326, 2492, 5549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1573, 3342, 12, 11890, 24112, 13, 1071, 923, 5541, 8843, 429, 95, 203, 1377, 5947, 2502, 2492, 273, 389, 20376, 63, 7958, 548, 15533, 203, 1377, 2583, 12, 7958, 18, 30730, 63, 3576, 18, 15330, 65, 480, 404, 1769, 203, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "./interfaces/IIncentive.sol"; import "./ERC20Ubiquity.sol"; contract UbiquityAlgorithmicDollar is ERC20Ubiquity { /// @notice get associated incentive contract, 0 address if N/A mapping(address => address) public incentiveContract; event Inc...
@dev Creates `amount` new tokens for `to`.
function mint(address to, uint256 amount) public override onlyMinter whenNotPaused { _mint(to, amount); emit Minting(to, msg.sender, amount); }
1,505,441
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 10210, 1375, 8949, 68, 394, 2430, 364, 1375, 869, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 203, 3639, 1071, 203, 3639, 3849, 203, 3639, 1338, 49, 2761, 203, 3639, 1347, 1248, 28590, 203, 565, 288, 203, 3639, 389, 81, 474, 12, 869, 16, 3844, 1769, 203, 3639,...
pragma solidity ^0.5.3; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@ensdomains/ethregistrar/contracts/StringUtils.sol"; import "@rsksmart/erc677/contracts/ERC677.sol"; import "@rsksmart/erc677/contracts/ERC677TransferReceiver.sol"; import "./NodeOwner.sol"; import "./AbstractNamePrice.sol"; import "./...
@notice Change required commitment maturity. @dev Only owner. @param newMinCommitmentAge The new maturity required.
function setMinCommitmentAge (uint newMinCommitmentAge) external onlyOwner { minCommitmentAge = newMinCommitmentAge; }
2,543,284
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 7576, 1931, 23274, 29663, 18, 632, 5206, 5098, 3410, 18, 632, 891, 394, 2930, 5580, 475, 9692, 1021, 394, 29663, 1931, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27724, 5580, 475, 9692, 261, 11890, 394, 2930, 5580, 475, 9692, 13, 3903, 1338, 5541, 288, 203, 3639, 1131, 5580, 475, 9692, 273, 394, 2930, 5580, 475, 9692, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100,...
./full_match/80001/0x290B4e8126bB9D247583BA281aAe77D8659EFC40/sources/project_/contracts/polygon/LimitOrderChainlink.sol
@notice Create a Uni v3 LP and limit order @param inputToken Token to sell @param outputToken Token to receive @param inputAmount Amount to sell @param outputAmount Amount to receive if sold at the limit price @param fee Uni v3 pool fee tier
function createLimitOrder( address inputToken, address outputToken, uint256 inputAmount, uint256 outputAmount, uint24 fee ) external payable { bool isZeroForOne = inputToken < outputToken; (address token0, address token1) = isZeroForOne ? (inpu...
5,548,558
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1788, 279, 1351, 77, 331, 23, 511, 52, 471, 1800, 1353, 632, 891, 810, 1345, 3155, 358, 357, 80, 632, 891, 876, 1345, 3155, 358, 6798, 632, 891, 810, 6275, 16811, 358, 357, 80, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3039, 2448, 12, 203, 3639, 1758, 810, 1345, 16, 203, 3639, 1758, 876, 1345, 16, 203, 3639, 2254, 5034, 810, 6275, 16, 203, 3639, 2254, 5034, 876, 6275, 16, 203, 3639, 2254, 3247, 14036, 203, 565, 262, 3903, 8843, ...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view retu...
Returns everything about the pool except total in one call
function getPoolsDetails(uint256 _type) external view returns (uint256, uint256, uint256, uint256, uint256, uint256) { require(_type < tokenList.length,"Type out of range"); uint256 _3rdLastDeposit = 0; if(tokenList[_type].mixerTotal == 3){ _3rdDepositSinceWithdraw = tokenList[_t...
6,301,259
[ 1, 4625, 348, 7953, 560, 30, 225, 2860, 7756, 2973, 326, 2845, 1335, 2078, 316, 1245, 745, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 8192, 3790, 12, 11890, 5034, 389, 723, 13, 3903, 1476, 1135, 261, 11890, 5034, 16, 2254, 5034, 16, 2254, 5034, 16, 2254, 5034, 16, 2254, 5034, 16, 2254, 5034, 13, 288, 203, 3639, 2583, 24899, 723, 411, 1147, 682, ...
pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and a fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Constructor -...
contract Token is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { name = "BBD...
11,861,626
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 279, 5499, 14467, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 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, 0, 0, 0, 0, 0, 0, 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, 3155, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2...
// 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 Returns the total amount of tokens stored by the contract./* @dev Returns a token ID owned by `owner` at a given `index` of its token list. Use along with {balanceOf} to enumerate all of ``owner``'s tokens./* @dev Returns a token ID at a given `index` of all the tokens stored by the contract. Use along with {tot...
abstract contract Ownable is Context { address private _owner; address private _creator; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); function _beforeTokenTransfer( address from, address to, uint256 tokenId } pragm...
33,586
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2078, 3844, 434, 2430, 4041, 635, 326, 6835, 18, 20308, 632, 5206, 2860, 279, 1147, 1599, 16199, 635, 1375, 8443, 68, 622, 279, 864, 1375, 1615, 68, 434, 2097, 1147, 666, 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, 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, 20394, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 203, 3639, 1758, 8808, 2416, 5541, 16, 203, 3639, 1758, 8...
// SPDX-License-Identifier: GPL-3.0 // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `u...
============================================================================= =============================================================================
function withdraw() public payable onlyOwner { require(os); }
5,782,280
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 22121, 12275, 422, 22121, 12275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 598, 9446, 1435, 1071, 8843, 429, 1338, 5541, 288, 203, 203, 21281, 203, 203, 565, 2583, 12, 538, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; // Interface import { IDropERC20 } from "../interfaces/drop/IDropERC20.sol"; // Token import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC...
@dev Transfers the tokens being claimed. Update the supply minted under mint condition. if transfer claimed tokens is called when to != msg.sender, it'd use msg.sender's limits. behavior would be similar to msg.sender mint for itself, then transfer to `to`. wallet count limit is global, not scoped to the phases
function transferClaimedTokens( address _to, uint256 _conditionId, uint256 _quantityBeingClaimed ) internal { claimCondition.phases[_conditionId].supplyClaimed += _quantityBeingClaimed; claimCondition.limitLastClaimTimestamp[_conditionId][_msgSender()] = block.timestamp;...
6,344,998
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2604, 18881, 326, 2430, 3832, 7516, 329, 18, 2315, 326, 14467, 312, 474, 329, 3613, 312, 474, 2269, 18, 309, 7412, 7516, 329, 2430, 353, 2566, 1347, 358, 480, 1234, 18, 15330, 16, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 9762, 329, 5157, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 4175, 548, 16, 203, 3639, 2254, 5034, 389, 16172, 1919, 310, 9762, 329, 203, 565, 262, 2713, 288, 203, 3639, 7516, 3418, 18, 844, 3...
pragma solidity ^0.4.11; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) constant returns (uint256); function transfer(address to, uint256 value); ev...
* @title Blocktix Token Generation Event contract/ crowdsale parameters addresses
contract TIXGeneration is StandardToken { string public constant name = "Blocktix Token"; string public constant symbol = "TIX"; uint256 public constant decimals = 18; string public version = "1.0"; uint256 public constant t2tokenExchangeRate = 1250; uint256 public constant t3tokenExchangeRate ...
2,336,164
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 3914, 88, 697, 3155, 23234, 2587, 6835, 19, 276, 492, 2377, 5349, 1472, 6138, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 399, 12507, 13842, 353, 8263, 1345, 288, 203, 565, 533, 1071, 5381, 508, 273, 315, 1768, 88, 697, 3155, 14432, 203, 565, 533, 1071, 5381, 3273, 273, 315, 56, 12507, 14432, 203, 565, 2254, 5034, 1071, 5381, 15105, 273, 6549, ...
pragma solidity ^0.5.0; // It's important to avoid vulnerabilities due to numeric overflow bugs // OpenZeppelin's SafeMath library, when used correctly, protects agains such bugs // More info: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2018/november/smart-contract-insecurity-bad-arithmetic/ impor...
requireDidNotpurchaseInsurance(airline,flightName,timestampcheck if the passenger already has insuranceaddress(flightContractData).transfer(msg.value);flightSuretyData.buy(airline, flightName, arrival, msg.sender, msg.value);
function purchaseFlightInsurance ( address airline, string memory flightName, uint256 takeoffTimestamp ) public ...
13,091,343
[ 1, 4625, 348, 7953, 560, 30, 2583, 18250, 1248, 12688, 12104, 5048, 295, 1359, 12, 1826, 1369, 16, 19131, 461, 16, 5508, 1893, 309, 326, 1342, 14348, 1818, 711, 2763, 295, 1359, 2867, 12, 19131, 8924, 751, 2934, 13866, 12, 3576, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 23701, 24243, 5048, 295, 1359, 203, 27573, 261, 203, 4766, 565, 1758, 23350, 1369, 16, 203, 4766, 565, 533, 3778, 25187, 461, 16, 203, 4766, 565, 2254, 5034, 4862, 3674, 4921, 203, 27573, 262, 203, 27573, 1071, 203, 27573...
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see `ERC20Detailed`. */ interface IERC20 { /** * @dev Returns the amount of tokens in existenc...
Last claim time stamp
uint lastClaim;
5,496,539
[ 1, 4625, 348, 7953, 560, 30, 6825, 7516, 813, 14429, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1142, 9762, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2022-02-12 */ // File: @openzeppelin/[email protected]/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcde...
revealed will never be true before presale is revealed
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (presaleRevealed == false) { return no...
14,992,233
[ 1, 4625, 348, 7953, 560, 30, 225, 283, 537, 18931, 903, 5903, 506, 638, 1865, 4075, 5349, 353, 283, 537, 18931, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1147, 3098, 12, 11890, 5034, 1147, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, 1080, 3778, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 389, 1808, 12, 2316, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "hardhat/console.sol"; interface IFallback { function count() external; } contract Fallback { function foo() internal view { console.log("Hello, World!"); } // function that catches call that doesn't matches any func invocation ...
function that catches call that doesn't matches any func invocation
fallback() external payable { foo(); console.log("fallback"); revert("You shouldn't be here!"); }
6,430,817
[ 1, 4625, 348, 7953, 560, 30, 225, 445, 716, 1044, 281, 745, 716, 3302, 1404, 1885, 1281, 1326, 9495, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 5922, 1435, 3903, 8843, 429, 288, 203, 3639, 8431, 5621, 203, 3639, 2983, 18, 1330, 2932, 16471, 8863, 203, 203, 3639, 15226, 2932, 6225, 12044, 1404, 506, 2674, 4442, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100,...
/******************************************************************************\ file: RegBase.sol ver: 0.3.3 updated:12-Sep-2017 author: Darryl Morris (o0ragman0o) email: o0ragman0o AT gmail.com This file is part of the SandalStraps framework `RegBase` provides an inheriting contract the minimal API...
Events Function Abstracts
{ bytes32 public regName; bytes32 public resource; address public owner; address public newOwner; event ChangeOwnerTo(address indexed _newOwner); event ChangedOwner(address indexed _oldOwner, address indexed _newOwner); event ReceivedOwnership(address indexed _kAddr); eve...
13,141,023
[ 1, 4625, 348, 7953, 560, 30, 225, 9043, 4284, 4115, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 95, 203, 565, 1731, 1578, 1071, 960, 461, 31, 203, 203, 565, 1731, 1578, 1071, 1058, 31, 203, 377, 203, 565, 1758, 1071, 3410, 31, 203, 377, 203, 565, 1758, 1071, 394, 5541, 31, 203, 203, 203, 565, 871, 7576, 5541, 774, 12, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Ownable.sol"; import "./SafeMath.sol"; /** * @notice Stakeable is a contract who is ment to be inherited by other contract that wants Staking capabilities */ contract Stakeable is Ownable{ // we don't want to have any security issues using Safe...
* @notice Stakeholder is a staker that has active stakes/
struct Stakeholder{ address user; Stake[] address_stakes; }
14,084,098
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 934, 911, 4505, 353, 279, 384, 6388, 716, 711, 2695, 384, 3223, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 934, 911, 4505, 95, 203, 3639, 1758, 729, 31, 203, 3639, 934, 911, 8526, 1758, 67, 334, 3223, 31, 203, 540, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/56/0x7B9D43599AA3C5590CF068bE7BD67Ebf30462b47/sources/FeeProvider.sol
* @dev accumulates a predefined amount of asset to the reserve as a fixed, one time income. Used for example to accumulate the flashloan fee to the reserve, and spread it through the depositors. @param _self the reserve object @param _totalLiquidity the total liquidity available in the reserve @param _amount the amount...
function cumulateToLiquidityIndex( ReserveData storage _self, uint256 _totalLiquidity, uint256 _amount ) internal { uint256 amountToLiquidityRatio = _amount.wadToRay().rayDiv(_totalLiquidity.wadToRay()); uint256 cumulatedLiquidity = amountToLiquid...
11,035,029
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 8822, 815, 279, 19555, 3844, 434, 3310, 358, 326, 20501, 487, 279, 5499, 16, 1245, 813, 316, 5624, 18, 10286, 364, 3454, 358, 21757, 326, 9563, 383, 304, 14036, 358, 326, 20501, 16, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 276, 31284, 774, 48, 18988, 24237, 1016, 12, 203, 3639, 1124, 6527, 751, 2502, 389, 2890, 16, 203, 3639, 2254, 5034, 389, 4963, 48, 18988, 24237, 16, 203, 3639, 2254, 5034, 389, 8949, 203, 565, 262, 2713, 288, 203, 3639...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol"; import {ERC721URIStorage} from "@ope...
* @dev See {IMintableERC721-mint}./
function mint(address user, uint256 tokenId) external override onlyRole(PREDICATE_ROLE) whenNotPaused { _mint(user, tokenId); }
611,426
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 3445, 474, 429, 654, 39, 27, 5340, 17, 81, 474, 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...
[ 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, 312, 474, 12, 2867, 729, 16, 2254, 5034, 1147, 548, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 2996, 12, 3670, 2565, 13000, 67, 16256, 13, 203, 3639, 1347, 1248, 28590, 203, 565, 288, 203, 3639, 389, 81, 4...
pragma solidity 0.4.24; import "./Ownable.sol"; import "./SafeMath.sol"; import "./Token.sol"; import "./Managed.sol"; contract Crowdsale is Managed { using SafeMath for uint256; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * VARIABLES * * * * * * * * * * * * * * * * * * * * * * * * * *...
* @dev Send & freeze tokens for the participants wallets/
function sendReserves() internal onlyManager { require( !reservesSent, "Reserved tokens has already been sent" ); reservesSent = true; uint256 totalBank = token.totalSupply(); require(companyPart != 0 && companyWallet != address(0)); uint256 multipliedAmount = totalBank.mul(c...
6,459,483
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2479, 473, 16684, 2430, 364, 326, 22346, 17662, 2413, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 607, 264, 3324, 1435, 2713, 1338, 1318, 288, 203, 565, 2583, 12, 203, 1377, 401, 455, 264, 3324, 7828, 16, 203, 1377, 315, 10435, 2430, 711, 1818, 2118, 3271, 6, 203, 565, 11272, 203, 565, 400, 264, 3324, 7828, ...
/** *Submitted for verification at Etherscan.io on 2020-05-07 */ pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; interface TokenInterface { function allowance(address, address) external view returns (uint); function balanceOf(address) external view returns (uint); function approve(address, uint...
solium-disable-next-line security/no-call-value (bool success, bytes memory data) = address(getOneSplitAddress()).call.value(ethAmt)(_callData); if (!success) revert("Failed"); address _target = getOneSplitAddress(); buyAmt = data;
external payable{ if (!success) revert("Failed"); }
12,864,105
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 5077, 17, 8394, 17, 4285, 17, 1369, 4373, 19, 2135, 17, 1991, 17, 1132, 261, 6430, 2216, 16, 1731, 3778, 501, 13, 273, 1758, 12, 588, 3335, 5521, 1887, 1435, 2934, 1991, 18, 1132, 12, 546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3903, 8843, 429, 95, 203, 203, 3639, 309, 16051, 4768, 13, 15226, 2932, 2925, 8863, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: @openzeppelin/upgrades/contracts/Initializable.sol pragma solidity >=0.4.24 <0.6.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer...
* @dev Add a new payee to the contract. @param account The address of the payee to add. @param shares_ The number of shares owned by the payee./
function _addPayee(address account, uint256 shares_) private { require(account != address(0)); require(shares_ > 0); require(_shares[account] == 0); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares.add(shares_); emit PayeeAdded(a...
987,743
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 279, 394, 8843, 1340, 358, 326, 6835, 18, 632, 891, 2236, 1021, 1758, 434, 326, 8843, 1340, 358, 527, 18, 632, 891, 24123, 67, 1021, 1300, 434, 24123, 16199, 635, 326, 8843, 1340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 9148, 1340, 12, 2867, 2236, 16, 2254, 5034, 24123, 67, 13, 3238, 288, 203, 3639, 2583, 12, 4631, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 30720, 67, 405, 374, 1769, 203, 3639, 2583, 24899, 30720, 63, ...
/** *Submitted for verification at Etherscan.io on 2020-08-18 */ /** *Submitted for verification at Etherscan.io on 2020-08-18 */ pragma solidity ^0.5.2; contract DSMath { function add(uint x, uint y) internal pure returns (uint z) { require((z = x + y) >= x, "ds-math-add-overflow"); } function...
injected CONTRACT AFFECTED BY MINERS
} else if (block.coinbase == authority) {
2,518,393
[ 1, 4625, 348, 7953, 560, 30, 15776, 8020, 2849, 1268, 432, 2246, 4239, 2056, 6953, 6989, 11367, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 289, 469, 309, 261, 2629, 18, 12645, 1969, 422, 11675, 13, 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, -10...
pragma solidity 0.5.17; interface IERC20 { // brief interface for erc20 token tx function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) ...
if the sender is already a member, add to their existing shares
function claimShares(uint256 amount) external nonReentrant { if (members[msg.sender].exists == 1) { members[msg.sender].shares = members[msg.sender].shares.add(amount); registerMember(msg.sender, amount); } totalShares = totalShares.add(amount); ...
125,679
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 326, 5793, 353, 1818, 279, 3140, 16, 527, 358, 3675, 2062, 24123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 24051, 12, 11890, 5034, 3844, 13, 3903, 1661, 426, 8230, 970, 288, 203, 540, 203, 3639, 309, 261, 7640, 63, 3576, 18, 15330, 8009, 1808, 422, 404, 13, 288, 203, 5411, 4833, 63, 3576, 18, 15330, 8009, 30720, 273, ...
./full_match/137/0x350c116680b8556D04a57A5a96baa4f375325197/sources/contracts/MainV2Beta.sol
Events for contract logging
event IndexRemoved(address indexed user, uint indexed indexID);
4,672,935
[ 1, 4625, 348, 7953, 560, 30, 225, 9043, 364, 6835, 2907, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 3340, 10026, 12, 2867, 8808, 729, 16, 2254, 8808, 770, 734, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/4/0xcA41046b312b7055e5F52db3fbeb50AEc7b355CE/sources/contracts/TradingContractTools.sol
Getter for the equity assigned to the deployer converted to WETH
function getValueDeployerInUsd(address _tradingContract) public view returns (uint256) { return getAmountOutMin(WETHAddress, BUSDAddress, getValueDeployer(_tradingContract), _tradingContract, true); }
12,329,374
[ 1, 4625, 348, 7953, 560, 30, 968, 387, 364, 326, 1298, 560, 6958, 358, 326, 7286, 264, 5970, 358, 678, 1584, 44, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2366, 10015, 264, 382, 3477, 72, 12, 2867, 389, 313, 14968, 8924, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 24418, 1182, 2930, 12, 59, 1584, 44, 1887, 16, 605, 3378, 40, 1887, 16, 2366, 10015, 2...