file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/1/0x1Fb94559BAe9D113b53bd5E0f55782a250A340a9/sources/Orangutan.sol
SPDX-License-Identifier: UNLICENSED
abstract contract Context { Orangutan 🦧 function _msgSender() internal view virtual returns (address) { return msg.sender; } }
9,325,822
[ 1, 3118, 28826, 17, 13211, 17, 3004, 30, 5019, 6065, 1157, 18204, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17801, 6835, 1772, 288, 203, 1162, 539, 322, 304, 225, 177, 258, 104, 105, 203, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 15330, 31, 203, 565, 289, 203, 97, 203...
./partial_match/1/0x157ED4Dcd657d17Aa2c3dCA31f30043e8Eff4f2E/sources/contracts/base/StrategyBase.sol
instance of manager contract
IStrategyManager public override manager;
3,598,218
[ 1, 1336, 434, 3301, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 467, 4525, 1318, 1071, 3849, 3301, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xB40E270C98d2F3D966A03DA5F56C034303645FA0/sources/contracts/Acrocalypse.sol
* @notice It allows the admin to set the contract address of V1 NFT @dev Only callable by owner./
function setAcrocalypseV1Address(address newV1Address) external onlyOwner { if (address(newV1Address) != address(0)) { acrocalypseV1Address = newV1Address; } }
4,915,838
[ 1, 7193, 5360, 326, 3981, 358, 444, 326, 6835, 1758, 434, 776, 21, 423, 4464, 225, 5098, 4140, 635, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 444, 9988, 30101, 879, 307, 58, 21, 1887, 12, 2867, 394, 58, 21, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 309, 261, 2867, 12, 2704, 58, 21, 1887, 13, 480, 1758, 12, 20, 3719, 288, 203, 5411, 1721, 30101, 879, 307...
./partial_match/1/0xe2fD02741bcbf34723320Fb80b77AB4Ff82D7979/sources/BCEToken.sol
assert(b > 0); Solidity automatically throws when dividing by 0 assert(a == b * c + a % b); There is no case in which this doesn't hold
function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; }
2,676,173
[ 1, 11231, 12, 70, 405, 374, 1769, 225, 348, 7953, 560, 6635, 1216, 1347, 3739, 10415, 635, 374, 1815, 12, 69, 422, 324, 225, 276, 397, 279, 738, 324, 1769, 225, 6149, 353, 1158, 648, 316, 1492, 333, 3302, 1404, 6887, 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, 445, 3739, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 342, 324, 31, 203, 3639, 327, 276, 31, 203, 565, 289, 203, 21281, 2, -100, -100,...
//SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/utils/Address.sol"; import "../TokenPaymaster.sol"; import "./ProxyFactory.sol"; contract ProxyDeployingPaymaster is TokenPaymaster { using Address for address; string public override ver...
solhint-disable-next-line
uniswap.tokenToEthSwapOutput(relayRequest.request.value, uint256(-1), block.timestamp+60*15);
6,434,500
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 640, 291, 91, 438, 18, 2316, 774, 41, 451, 12521, 1447, 12, 2878, 528, 691, 18, 2293, 18, 1132, 16, 2254, 5034, 19236, 21, 3631, 1203, 18, 5508, 15, 4848, 14, 3600, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xE45Ca57cdc67EEA9F60c2190402630944f9303b1/sources/AVENGERS/utils/Withdrawable.sol
* @dev Withdraw asset. @param _assetAddress Asset to be withdrawn./
function withdraw(address _assetAddress) public onlyOwner { uint assetBalance; if (_assetAddress == ETHER) { assetBalance = self.balance; msg.sender.transfer(assetBalance); assetBalance = ERC20(_assetAddress).balanceOf(address(this)); ERC20(_assetAddre...
2,937,222
[ 1, 1190, 9446, 3310, 18, 225, 389, 9406, 1887, 10494, 358, 506, 598, 9446, 82, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 2867, 389, 9406, 1887, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 3310, 13937, 31, 203, 3639, 309, 261, 67, 9406, 1887, 422, 512, 19905, 13, 288, 203, 5411, 3310, 13937, 273, 365, 18, 12296, 31, 203, 5...
./partial_match/42/0x8fe80F7CA77dAA68b059f8B3e29e1c5d962f01E7/sources/Uni.sol
* @notice Mint new tokens @param dst The address of the destination account @param rawAmount The number of tokens to be minted/ record the mint mint the amount transfer the amount to the recipient move delegates
function mint(address dst, uint256 rawAmount) external { require(msg.sender == minter, "Uni::mint: only the minter can mint"); require( block.timestamp >= mintingAllowedAfter, "Uni::mint: minting not allowed yet" ); require( dst != address(0), ...
8,844,714
[ 1, 49, 474, 394, 2430, 225, 3046, 1021, 1758, 434, 326, 2929, 2236, 225, 1831, 6275, 1021, 1300, 434, 2430, 358, 506, 312, 474, 329, 19, 1409, 326, 312, 474, 312, 474, 326, 3844, 7412, 326, 3844, 358, 326, 8027, 3635, 22310, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 3046, 16, 2254, 5034, 1831, 6275, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 1131, 387, 16, 315, 984, 77, 2866, 81, 474, 30, 1338, 326, 1131, 387, 848, 312, 474, 8863, 203, 3639, 2...
pragma solidity ^0.4.23; import "./erc721.sol"; import "./SafeMath.sol"; import "./Random.sol"; import "./Database.sol"; contract WarriorBase is ERC721 { using SafeMath for uint256; using SafeMath for uint64; Random private randomContract; Database private databaseContract; ...
@dev adopt a level 3 warrior (0.1 eth)
function adoptLvThree() external payable returns(uint256) { require(msg.sender != address(0)); require(msg.value >= 0.1 ether); uint newWarriorId = WarriorList.length; WarriorList.length += 1; Warrior storage war = WarriorList[newWarriorId];...
1,821,251
[ 1, 361, 3838, 279, 1801, 890, 21983, 2432, 261, 20, 18, 21, 13750, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1261, 3838, 48, 90, 28019, 1435, 7010, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1135, 12, 11890, 5034, 13, 203, 3639, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 3576, ...
pragma solidity ^0.4.16; import "./RefundVault.sol"; /** * @title Owned * @dev The Owned contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Owned { address public owner; event OwnershipTransferred(addres...
* @dev Overrides parent method taking into account variable rate. @param _weiAmount The value in wei to be converted into tokens @return The number of tokens _weiAmount wei will buy at present time/
function _getTokenAmount(uint256 _weiAmount) internal view returns (uint256) { uint256 currentRate = getCurrentRate(); return currentRate.mul(_weiAmount); }
12,743,136
[ 1, 13084, 982, 707, 13763, 1368, 2236, 2190, 4993, 18, 225, 389, 1814, 77, 6275, 1021, 460, 316, 732, 77, 358, 506, 5970, 1368, 2430, 327, 1021, 1300, 434, 2430, 389, 1814, 77, 6275, 732, 77, 903, 30143, 622, 3430, 813, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 588, 1345, 6275, 12, 11890, 5034, 389, 1814, 77, 6275, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 2254, 5034, 783, 4727, 273, 5175, 4727, 5621, 203, 565, 327, 783, 4727, 18, 16411, 24899, 1814, 77, ...
//Address: 0xd16c5175c90c8730d365d3616d36148ff43c110c //Contract name: BearCoin //Balance: 0 Ether //Verification Date: 10/12/2017 //Transacion Count: 2 // CODE STARTS HERE pragma solidity ^0.4.13; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; ...
Internal helper functions
function _nameValid(string s) internal returns (bool) { return bytes(s).length != 0 && keccak256(s) != keccak256(genesis) && bytes(s).length <= 32; }
12,739,750
[ 1, 3061, 4222, 4186, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 389, 529, 1556, 12, 1080, 272, 13, 2713, 1135, 261, 6430, 13, 288, 203, 202, 202, 2463, 1731, 12, 87, 2934, 2469, 480, 374, 597, 417, 24410, 581, 5034, 12, 87, 13, 480, 417, 24410, 581, 5034, 12, 4507, 16786, 13, 59...
/** @title Onasander Token Contract * * @author: Andrzej Wegrzyn * Contact: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e6828390838a89968b838892a6898887958788828394c885898b">[email&#160;protected]</a> * Date: May 5, 2018 * Location: New York, USA * Token: Onasander * Symbol: ...
amount of Onasander tokens you get for 1 ETH
uint public tokensPerETH = 800;
2,073,844
[ 1, 8949, 434, 2755, 345, 464, 264, 2430, 1846, 336, 364, 404, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 2430, 2173, 1584, 44, 273, 1725, 713, 31, 7682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.6.12; 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 send...
if the account is already a member, add to their existing shares & loot
function growGuild(address account, uint256 shares, uint256 loot) internal { if (members[account].exists == 1) { members[account].shares = members[account].shares.add(shares); members[account].loot = members[account].loot.add(loot); if (members[memberAddressByDelegateKey...
1,235,876
[ 1, 430, 326, 2236, 353, 1818, 279, 3140, 16, 527, 358, 3675, 2062, 24123, 473, 437, 352, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13334, 43, 680, 12, 2867, 2236, 16, 2254, 5034, 24123, 16, 2254, 5034, 437, 352, 13, 2713, 288, 203, 3639, 309, 261, 7640, 63, 4631, 8009, 1808, 422, 404, 13, 288, 203, 5411, 4833, 63, 4631, 8009, 30720, 273, 4833, 63...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import {PercentageMath} from '../protocol/libraries/math/PercentageMath.sol'; import {SafeMath} from '../dependencies/openzeppelin/contracts/SafeMath.sol'; import {IERC20} from '../dependencies/openzeppelin/contracts/IERC20....
* @dev Returns the cached LendingPoolAddressesProvider connected to this contract/
function getAddressesProvider() external view override returns (ILendingPoolAddressesProvider) { return _addressesProvider; }
68,745
[ 1, 1356, 326, 3472, 511, 2846, 2864, 7148, 2249, 5840, 358, 333, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 336, 7148, 2249, 1435, 3903, 1476, 3849, 1135, 261, 2627, 2846, 2864, 7148, 2249, 13, 288, 203, 565, 327, 389, 13277, 2249, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/42/0x2f51F00827981615588Ff32587850cA6f15275D3/sources/browser/Core/NeonVault.sol
Accumulated Shows per share, times 1e12. See below.
uint256 accShowPerShare;
9,567,029
[ 1, 8973, 5283, 690, 9674, 87, 1534, 7433, 16, 4124, 404, 73, 2138, 18, 2164, 5712, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 4078, 5706, 2173, 9535, 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,...
// SPDX-License-Identifier: Unlicensed pragma solidity 0.8.9; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning ...
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map block number of opened trading exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract FUNC is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; bool private swapping; address private marketingWallet; address private devWallet; uint256 private maxTransactionAmount; uint...
176,483
[ 1, 14925, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 557...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 478, 21163, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203,...
./partial_match/1/0xB690fC16279C096999264e3C049fA133024b4d69/sources/contracts/storefront/interfaces/IStorefront.sol
* @notice Dynamic Blueprint and Expansion storefront interface @author Ohimire Labs/
interface IStorefront { pragma solidity ^0.8.4; enum SaleState { not_started, started, paused } struct Sale { uint64 maxPurchaseAmount; uint128 saleEndTimestamp; uint128 price; uint256 packId; address erc20Token; bytes32 merkleroot; ...
3,599,605
[ 1, 9791, 14499, 471, 7784, 12162, 1707, 10211, 1560, 225, 531, 76, 381, 577, 511, 5113, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 2257, 10211, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 24, 31, 203, 565, 2792, 348, 5349, 1119, 288, 203, 3639, 486, 67, 14561, 16, 203, 3639, 5746, 16, 203, 3639, 17781, 203, 565, 289, 203, 203, 565, ...
pragma solidity ^0.6.0; ...
inject NONSTANDARD NAMING
function LOG40(uint p0, uint p1, uint p2, address p3) internal view {
1,018,963
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 2018, 7132, 12, 11890, 293, 20, 16, 2254, 293, 21, 16, 2254, 293, 22, 16, 1758, 293, 23, 13, 2713, 1476, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.8.0; /// @title Shared constants contract PhotoNFTFactoryConstants { uint8 constant EXAMPLE_VALUE = 0; }
@title Shared constants
contract PhotoNFTFactoryConstants { uint8 constant EXAMPLE_VALUE = 0; }
6,431,313
[ 1, 7887, 6810, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26867, 50, 4464, 1733, 2918, 288, 203, 203, 565, 2254, 28, 5381, 5675, 21373, 67, 4051, 273, 374, 31, 203, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.5.16; import "./MixinResolver.sol"; // Internal references import "./interfaces/IFlexibleStorage.sol"; // https://docs.synthetix.io/contracts/source/contracts/mixinsystemsettings contract MixinSystemSettings is MixinResolver { bytes32 internal constant SETTING_CONTRACT_NAME = "SystemSettings"...
ERROR: type should be string, got " https:docs.synthetix.io/contracts/source/contracts/mixinsystemsettings"
contract MixinSystemSettings is MixinResolver { bytes32 internal constant SETTING_CONTRACT_NAME = "SystemSettings"; bytes32 internal constant SETTING_WAITING_PERIOD_SECS = "waitingPeriodSecs"; bytes32 internal constant SETTING_PRICE_DEVIATION_THRESHOLD_FACTOR = "priceDeviationThresholdFactor"; bytes32 ...
5,346,604
[ 1, 4528, 30, 8532, 18, 11982, 451, 278, 697, 18, 1594, 19, 16351, 87, 19, 3168, 19, 16351, 87, 19, 14860, 2679, 1108, 4272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 490, 10131, 3163, 2628, 353, 490, 10131, 4301, 288, 203, 565, 1731, 1578, 2713, 5381, 3174, 12239, 67, 6067, 2849, 1268, 67, 1985, 273, 315, 3163, 2628, 14432, 203, 203, 565, 1731, 1578, 2713, 5381, 3174, 12239, 67, 19046, 1...
pragma solidity ^0.4.13; /** * @title Array16 Library * @author Majoolr.io * * version 1.0.0 * Copyright (c) 2017 Majoolr, LLC * The MIT License (MIT) * https://github.com/Majoolr/ethereum-libraries/blob/master/LICENSE * * The Array16 Library provides a few utility functions to work with * storage uint16[] t...
@dev Sum vector @param self Storage array containing uint256 type variables @return sum The sum of all elements, does not check for overflow
function sumElements(uint16[] storage self) constant returns(uint16 sum) { uint256 term; assembly { mstore(0x60,self_slot) term := sload(add(sha3(0x60,0x20),div(i,16))) switch mod(i,16) case 1 { term := div(term,65536) } } case 2 { ...
15,288,615
[ 1, 3495, 3806, 225, 365, 5235, 526, 4191, 2254, 5034, 618, 3152, 327, 2142, 1021, 2142, 434, 777, 2186, 16, 1552, 486, 866, 364, 9391, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2142, 3471, 12, 11890, 2313, 8526, 2502, 365, 13, 5381, 1135, 12, 11890, 2313, 2142, 13, 288, 203, 565, 2254, 5034, 2481, 31, 203, 565, 19931, 288, 203, 1377, 312, 2233, 12, 20, 92, 4848, 16, 2890, 67, 14194, 13, 203,...
/** *Submitted for verification at Etherscan.io on 2022-02-05 */ /** ░█▀█░█▀█░█▀▄░▀█▀░▀█▀░█▀█░█▀█░░░█▀▀░▀█▀░█▀█░█░█░▀█▀░█▀█░█▀▀ ░█▀▀░█░█░█▀▄░░█░░░█░░█░█░█░█░░░▀▀█░░█░░█▀█░█▀▄░░█░░█░█░█░█ ░▀░░░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░▀░▀░░░▀▀▀░░▀░░▀░▀░▀░▀░▀▀▀░▀░▀░▀▀▀ **/ // File: @openzeppelin/contracts/utils/math/SafeMath.sol pragma s...
* @dev User reflects the info of each user @param {total_invested} how many tokens the user staked @param {total_withdrawn} how many tokens withdrawn so far @param {lastPayout} time at which last claim was done @param {depositTime} Time of last deposit @param {totalClaimed} Total claimed by the user/
struct User { uint256 total_invested; uint256 total_withdrawn; uint256 lastPayout; uint256 depositTime; uint256 totalClaimed; }
5,720,857
[ 1, 1299, 3037, 87, 326, 1123, 434, 1517, 729, 225, 288, 4963, 67, 5768, 3149, 97, 3661, 4906, 2430, 326, 729, 384, 9477, 225, 288, 4963, 67, 1918, 9446, 82, 97, 3661, 4906, 2430, 598, 9446, 82, 1427, 10247, 225, 288, 2722, 52, 201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2177, 288, 203, 3639, 2254, 5034, 2078, 67, 5768, 3149, 31, 203, 3639, 2254, 5034, 2078, 67, 1918, 9446, 82, 31, 203, 3639, 2254, 5034, 1142, 52, 2012, 31, 203, 3639, 2254, 5034, 443, 1724, 950, 31, 203, 3639, 2254, ...
./full_match/80001/0xb4f3ACAaB34D7c16655A752a3fb7FFC795036120/sources/contracts/uNiFTswap-V1-core/contracts/uNiFTswapV1Pair.sol
/ libraryを作りましょう。 uint newK = (reserve0 + reserve1 + (2 * _amount01In)) * (reserve0 + reserve1 + (2 * _amount01In)) / 4; uint newReserve2 = reserve0 < reserve1 ? (newK / (reserve1 + _amount01In)).sub(reserve0 + _amount01In) : (newK / (reserve0 + _amount01In)).sub(reserve1 + _amount01In); uint value2 = newReserve2 - re...
function addLiquidity(uint _amount01In) external override { require(msg.sender == pairCreater); require(_amount01In > 0); require(sufficientLiquidity == false); require(IERC721(token0).balanceOf(pairCreater) >= _amount01In); require(IERC721(token1).balanceOf(pairCre...
5,549,585
[ 1, 19, 225, 5313, 164, 229, 245, 165, 126, 255, 164, 229, 237, 164, 228, 127, 164, 228, 250, 164, 229, 234, 164, 228, 233, 164, 227, 229, 2254, 394, 47, 273, 261, 455, 6527, 20, 397, 20501, 21, 397, 261, 22, 225, 389, 8949, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 527, 48, 18988, 24237, 12, 11890, 389, 8949, 1611, 382, 13, 3903, 3849, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3082, 1996, 2045, 1769, 203, 3639, 2583, 24899, 8949, 1611, 382, 405, 374, 1769, 203, 3639, 2583, 1...
./full_match/1/0x666D080bD673679b927B7006bDbDF50925f27D9F/sources/contracts/MIRLStaking.sol
@notice View function to see pending MIRL on frontend. @param _pid The index of the pool. See `poolInfo`. @param _user Address of user. @return pending MIRL reward for a given user.
function pendingMirl(uint256 _pid, address _user) external view returns (uint256 pending) { PoolInfo memory pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 poolMirlPerShare = pool.accumulatedMirlPerShare; uint256 lpSupply = pool.totalSupply; uint256 startBlockPeriod ...
9,625,482
[ 1, 1767, 445, 358, 2621, 4634, 490, 7937, 48, 603, 15442, 18, 225, 389, 6610, 1021, 770, 434, 326, 2845, 18, 2164, 1375, 6011, 966, 8338, 225, 389, 1355, 5267, 434, 729, 18, 327, 4634, 490, 7937, 48, 19890, 364, 279, 864, 729, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4634, 49, 481, 80, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 1476, 1135, 261, 11890, 5034, 4634, 13, 288, 203, 565, 8828, 966, 3778, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 565, 25003, 2502, 7...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABL...
more than 50% votes, so airline can be registered
function voteForAirline(address airline, address airlineVoter) external requireIsOperational { require( airlineStatus[airlineVoter].isFunded, "Voter needs to pay fund" ); airlineVotes[airline]++; if (airlineVotes[airline] > registeredAirlineCount / 2) { ...
5,362,944
[ 1, 10161, 2353, 6437, 9, 19588, 16, 1427, 23350, 1369, 848, 506, 4104, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 12501, 1290, 29752, 1369, 12, 2867, 23350, 1369, 16, 1758, 23350, 1369, 58, 20005, 13, 3903, 2583, 2520, 2988, 287, 288, 203, 3639, 2583, 12, 203, 5411, 23350, 1369, 1482, 63, 1826, 1369, 58, 20005, 8009, 291, 42, 12254, ...
pragma solidity 0.4.24; pragma experimental "v0.5.0"; /* Copyright 2018 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENS...
* Transfer ownership of a loan to a new address. This new address will be entitled to all payouts for this loan. Only callable by the lender for a position. If "who" is a contract, it must implement the LoanOwner interface. @param positionId Unique ID of the position @param who New owner of the loan/
function transferLoan( bytes32 positionId, address who ) external nonReentrant { TransferImpl.transferLoanImpl( state, positionId, who); }
1,594,153
[ 1, 5912, 23178, 434, 279, 28183, 358, 279, 394, 1758, 18, 1220, 394, 1758, 903, 506, 3281, 305, 1259, 358, 777, 293, 2012, 87, 364, 333, 28183, 18, 5098, 4140, 635, 326, 328, 2345, 364, 279, 1754, 18, 971, 315, 3350, 83, 6, 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, 7412, 1504, 304, 12, 203, 3639, 1731, 1578, 1754, 548, 16, 203, 3639, 1758, 10354, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1661, 426, 8230, 970, 203, 565, 288, 203, 3639, 12279, 2828, 18, 13866, 1504, 304, 2828, 12, ...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2020, Offchain Labs, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
* @title Standard (i.e., non-custom) contract used as a base for different L2 Gateways/
abstract contract L2GatewayToken is aeERC20, IArbToken { address public l2Gateway; address public override l1Address; modifier onlyGateway { require(msg.sender == l2Gateway, "ONLY_GATEWAY"); _; } function _initialize( string memory _name, string memory _symbol, ...
12,678,220
[ 1, 8336, 261, 77, 18, 73, 12990, 1661, 17, 3662, 13, 6835, 1399, 487, 279, 1026, 364, 3775, 511, 22, 31045, 3052, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 511, 22, 5197, 1345, 353, 14221, 654, 39, 3462, 16, 467, 686, 70, 1345, 288, 203, 565, 1758, 1071, 328, 22, 5197, 31, 203, 565, 1758, 1071, 3849, 328, 21, 1887, 31, 203, 203, 203, 203, 565, 9606, 1338, 5197, 288, ...
//Address: 0x5027880b5A4C5BBB88D229a334Aa8F31e6e67197 //Contract name: HDLContract //Balance: 0 Ether //Verification Date: 10/12/2017 //Transacion Count: 198 // CODE STARTS HERE pragma solidity ^0.4.13; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/...
Contract owner addredd Contract vault address - all collected funds are moved to this address after successful sale Contains list of all investor addresses contains list of all investors with transfered amount Reference to HDL token. The token is created with this contract. Sale period start date as unix timestamp Sal...
contract HDLContract is Ownable { using SafeMath for uint; address _ownerAddress; address _vaultAddress; address[] public _investorAddresses; mapping (address => uint256) _investors; HDLToken public token; uint _start; uint _period; uint public _goal; uint _rate; uint...
7,233,046
[ 1, 8924, 3410, 527, 266, 449, 13456, 9229, 1758, 300, 777, 12230, 284, 19156, 854, 10456, 358, 333, 1758, 1839, 6873, 272, 5349, 8398, 666, 434, 777, 2198, 395, 280, 6138, 1914, 666, 434, 777, 2198, 395, 1383, 598, 7412, 329, 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, 16351, 670, 8914, 8924, 353, 14223, 6914, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 202, 2867, 389, 8443, 1887, 31, 203, 203, 565, 1758, 389, 26983, 1887, 31, 203, 203, 565, 1758, 8526, 1071, 389, 5768, 395...
pragma solidity ^0.5.11; pragma experimental ABIEncoderV2; import "./StorageDefinition.sol"; /** * @title EternalStorage * @dev An ownable contract that can be used as a storage where the variables * are stored in a set of mappings indexed by hash names. */ contract EternalStorage is StorageDefinition { // Al...
* @dev Allows the owner to set a value for a string variable. @param h The keccak256 hash of the variable name @param v The value to be stored/
function setString(bytes32 h, string calldata v) external onlyRegisteredContract { s._string[h] = v; }
12,618,549
[ 1, 19132, 326, 3410, 358, 444, 279, 460, 364, 279, 533, 2190, 18, 225, 366, 1021, 417, 24410, 581, 5034, 1651, 434, 326, 2190, 508, 225, 331, 1021, 460, 358, 506, 4041, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 14600, 12, 3890, 1578, 366, 16, 533, 745, 892, 331, 13, 3903, 1338, 10868, 8924, 288, 203, 565, 272, 6315, 1080, 63, 76, 65, 273, 331, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: Apache pragma solidity 0.8.10; //import "hardhat/console.sol"; interface IERC20 { function transfer(address recipient, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); } contract ExchangeHub ...
the lowest byte is v
uint8 v = uint8(takerAddr_dueTime80_v8);
13,012,502
[ 1, 5787, 11981, 1160, 353, 331, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 11890, 28, 331, 273, 2254, 28, 12, 88, 6388, 3178, 67, 24334, 950, 3672, 67, 90, 28, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "../interfaces/IInflow1155BC.sol"; contract Splitter is Ownable { us...
@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 account
function _addPayee(address account, uint256 shares_) private { require(account != address(0), "Splitter: account is the zero address"); require(shares_ > 0, "Splitter: shares are 0"); require(_shares[account] == 0, "Splitter: account already has shares"); _payees.add(account); _shares[account] = s...
12,826,898
[ 1, 986, 279, 394, 8843, 1340, 358, 326, 6835, 18, 225, 2236, 1021, 1758, 434, 326, 8843, 1340, 358, 527, 18, 225, 24123, 67, 1021, 1300, 434, 24123, 16199, 635, 326, 2236, 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, 225, 445, 389, 1289, 9148, 1340, 12, 2867, 2236, 16, 2254, 5034, 24123, 67, 13, 3238, 288, 203, 565, 2583, 12, 4631, 480, 1758, 12, 20, 3631, 315, 26738, 30, 2236, 353, 326, 3634, 1758, 8863, 203, 565, 2583, 12, 30720, 67, 405,...
pragma solidity ^0.4.25; /** .----------------. .----------------. .----------------. .----------------. | .--------------. || .--------------. || .--------------. || .--------------. | | | ____ ____ | || | ____ | || | _____ | || | ________ | | | | |_ || _|...
07 -- > Maximum Contribution N
mapping(address => uint256) public maxcontribution;
2,562,570
[ 1, 8642, 1493, 405, 18848, 735, 4027, 6862, 202, 50, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 6770, 12, 2867, 516, 2254, 5034, 13, 3196, 202, 482, 943, 591, 4027, 31, 3196, 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, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/access/AccessContr...
@dev TokenURI generated on the fly from stored data (function override required by solidity) require(_exists(tokenId), "nonexistent token"); TODO: Only show TokenURI to authorized people (patient, doctor, pharmacist) TODO: Modify SVG when a prescription is 'dispensed'
function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return TokenURIDescriptor.constructTokenURI(tokenId, name(), symbol(), rxs[tokenId]); }
13,112,966
[ 1, 1345, 3098, 4374, 603, 326, 21434, 628, 4041, 501, 261, 915, 3849, 1931, 635, 18035, 560, 13, 2583, 24899, 1808, 12, 2316, 548, 3631, 315, 5836, 19041, 1147, 8863, 2660, 30, 5098, 2405, 3155, 3098, 358, 10799, 16951, 261, 16330, 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, 565, 445, 1147, 3098, 12, 11890, 5034, 1147, 548, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 3849, 12, 654, 39, 27, 5340, 16, 4232, 39, 27, 5340, 3098, 3245, 13, 203, 3639, 1135, 261, 1080, 3778, 13, 203, 3639, 288, 203, ...
pragma solidity ^0.4.21; library BWUtility { // -------- UTILITY FUNCTIONS ---------- // Return next higher even _multiple for _amount parameter (e.g used to round up to even finneys). function ceil(uint _amount, uint _multiple) pure public returns (uint) { return ((_amount + _multiple - 1) ...
ensure enough funds paid for all tiles
require(_fortifyAmount >= 1 finney * tileCount);
6,618
[ 1, 15735, 7304, 284, 19156, 30591, 364, 777, 12568, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 24899, 18850, 1164, 6275, 1545, 404, 574, 82, 402, 380, 4769, 1380, 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, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // File: contracts/thirdparty/loopring-wallet/ILoopringWalletV2.sol // Taken from: https://github.com/Loopring/protocols/tree/master/packages/hebao_v2/contracts/iface/ILoopringWalletV2.sol // Copyright 2017 Loopring Techno...
Disable `approveTransactionsFor`
function approveTransactionsFor( address[] calldata /*wallets*/, bytes32[] calldata /*txHashes*/, bytes[] calldata /*signatures*/ ) external override pure { revert("UNSUPPORTED"); }
1,427,413
[ 1, 11879, 1375, 12908, 537, 14186, 1290, 68, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 14186, 1290, 12, 203, 3639, 1758, 8526, 745, 892, 1748, 8019, 2413, 5549, 16, 203, 3639, 1731, 1578, 8526, 745, 892, 1748, 978, 14455, 5549, 16, 203, 3639, 1731, 8526, 282, 745, 892, 1748, 30730, 5549, 203, 3...
./full_match/3/0x25a5F12a707Bc30b2081f750976E489b62F567aE/sources/localhost/deployments/Option.full.sol
* @title Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function symbol() external view returns (string memory); function balanceOf(address account) external view returns (uint256); fu...
8,097,047
[ 1, 1358, 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, 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, 5831, 467, 654, 39, 3462, 288, 203, 565, 871, 12279, 12, 2867, 8808, 628, 16, 1758, 8808, 358, 16, 2254, 5034, 460, 1769, 203, 565, 871, 1716, 685, 1125, 12, 2867, 8808, 3410, 16, 1758, 8808, 17571, 264, 16, 2254, 5034, 460, 17...
// SPDX-License-Identifier: Unlicense pragma solidity >=0.7.6; import 'src/tsm/contracts/NutBerryTokenBridge.sol'; import 'src/v1/contracts/NutBerryFlavorV1.sol'; import './V1TestOneChallenge.sol'; contract V1TestOne is NutBerryFlavorV1, V1TestOneChallenge { function submitCustomBlock (uint256, uint256) external { ...
all power the core protocol
function onOne (address msgSender, bytes memory one, uint256 nonce, bytes memory two) external { require(msg.sender == address(this)); _storeCallDataHash(); _incrementNonce(msgSender); assembly { let ptr := mload(64) let size := 32 size := mload(one) log0(add(one, 32), size) ...
12,770,373
[ 1, 454, 7212, 326, 2922, 1771, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 603, 3335, 261, 2867, 1234, 12021, 16, 1731, 3778, 1245, 16, 2254, 5034, 7448, 16, 1731, 3778, 2795, 13, 3903, 288, 203, 565, 2583, 12, 3576, 18, 15330, 422, 1758, 12, 2211, 10019, 203, 565, 389, 2233, 1477, 751, 2310, ...
./partial_match/1313161554/0xFE878CdC89e9d7Cd643339197704E40DF851b8a8/sources/_contracts/ReaperStrategyCompoundLeverage.sol
* @dev This strategy will deposit and leverage a token on Compound to maximize yield by farming reward tokens/
contract ReaperStrategyCompoundLeverage is ReaperBaseStrategyv2 { using SafeERC20Upgradeable for IERC20Upgradeable; address public constant nativeToken = address(0xC42C30aC6Cc15faC9bD938618BcaA1a1FaE8501d); address public constant feesToken = address(0xB12BFcA5A55806AaF64E99521918A4bf0fC40802); address...
16,945,890
[ 1, 2503, 6252, 903, 443, 1724, 471, 884, 5682, 279, 1147, 603, 21327, 358, 943, 10153, 2824, 635, 284, 4610, 310, 19890, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 868, 7294, 4525, 16835, 1682, 5682, 353, 868, 7294, 2171, 4525, 90, 22, 288, 203, 565, 1450, 14060, 654, 39, 3462, 10784, 429, 364, 467, 654, 39, 3462, 10784, 429, 31, 203, 203, 565, 1758, 1071, 5381, 6448, 1345, 273, 1758...
./full_match/97/0x52EC3FD654EF2756601acF7Ae64b939b608441e8/sources/contracts/AULP.sol
买卖10%滑点,3%销毁,3%回流筑池(1.5%币、1.5%U),3%LP分红 DAPP实现,1%基金会(U到账)用于存储每个地址的余额数量存储授权数量,资产拥有者 owner => 授权调用方 spender => 授权数量
abstract contract AbsToken is IERC20, Ownable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private constant MAX = ~uint256(0); address private usdt; address DEAD = 0x000000000000000000000000000000000000dEaD; ...
3,283,043
[ 1, 165, 122, 113, 166, 240, 249, 2163, 9, 167, 124, 244, 168, 229, 122, 176, 125, 239, 23, 9, 170, 247, 227, 167, 112, 228, 176, 125, 239, 23, 9, 166, 254, 257, 167, 118, 228, 168, 260, 244, 167, 114, 259, 176, 125, 235, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15084, 1345, 353, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 2254, 5034, 3719, 3238, 389, ...
// contracts/token/modules/Lease.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./interfaces/ILease.sol"; import "./Taxation.sol"; abstract contract Lease is ILease, Taxation { ////////////////////////////// /// State ////////////////////////////// /// @notice Mapping from token ID to p...
@dev See {ILease.selfAssess}
function selfAssess(uint256 tokenId_, uint256 newValuation_) public override _onlyApprovedOrOwner(tokenId_) _collectTax(tokenId_) { uint256 currentValuation = valuationOf(tokenId_); require(newValuation_ > 0, "New valuation cannot be zero"); require(newValuation_ != currentValuation, "Ne...
15,837,069
[ 1, 9704, 288, 45, 17746, 18, 2890, 2610, 403, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 365, 2610, 403, 12, 11890, 5034, 1147, 548, 67, 16, 2254, 5034, 394, 58, 700, 367, 67, 13, 203, 565, 1071, 203, 565, 3849, 203, 565, 389, 3700, 31639, 1162, 5541, 12, 2316, 548, 67, 13, 203, 565, 389, 14676, 7731, 1...
//Address: 0x00391d08b3e68e476a774ada379258264eb74485 //Contract name: DipTge //Balance: 0 Ether //Verification Date: 6/22/2018 //Transacion Count: 14 // CODE STARTS HERE pragma solidity 0.4.24; // File: contracts/tokensale/DipTgeInterface.sol contract DipTgeInterface { function tokenIsLocked(address _contribu...
* @title FinalizableCrowdsale @dev Extension of Crowdsale where an owner can do extra work after finishing./
contract FinalizableCrowdsale is Crowdsale, Ownable { using SafeMath for uint256; bool public isFinalized = false; event Finalized(); function finalize() onlyOwner public { require(!isFinalized); require(hasEnded()); finalization(); Finalized(); isFinalized = true; } function fina...
994,319
[ 1, 7951, 6934, 39, 492, 2377, 5349, 225, 10021, 434, 385, 492, 2377, 5349, 1625, 392, 3410, 848, 741, 2870, 1440, 1839, 4076, 310, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 16351, 16269, 6934, 39, 492, 2377, 5349, 353, 385, 492, 2377, 5349, 16, 14223, 6914, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 1426, 1071, 29200, 1235, 273, 629, 31, 203, 203, 225, 871, 16269, 1235, 5...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // Sources flattened with hardhat v2.8.3 https://hardhat.org // File contracts/Math/Math.sol /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ ...
Total locked liquidity / LP tokens
function lockedLiquidityOf(address account) external view returns (uint256) { return _locked_liquidity[account]; }
193,426
[ 1, 5269, 8586, 4501, 372, 24237, 342, 511, 52, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8586, 48, 18988, 24237, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 15091, 67, 549, 372, 24237, 63, 4631, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
// File: @openzeppelin/contracts/math/Math.sol pragma solidity 0.5.16; library Math { function MAX818(uint256...
utc+8 2020-09-09 20:00:00 inject NONSTANDARD NAMING
uint256 public constant starttime308 = 1599652800;
5,362,693
[ 1, 17892, 15, 28, 26599, 20, 17, 5908, 17, 5908, 4200, 30, 713, 30, 713, 202, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 23437, 5082, 28, 273, 4711, 2733, 9222, 6030, 713, 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, -...
pragma solidity ^0.5.0; import './ERCX.sol'; import '../Interface/IERCXMetadata.sol'; contract ERCXMetadata is ERC165, ERCX, IERCXMetadata { // item name string internal _name; // item symbol string internal _symbol; // Base URI string private _baseURI; // Optional mapping for item URIs mapping(uin...
* @dev Internal function to burn a specific item Reverts if the item does not exist @param itemId uint256 ID of the item being burned by the msg.sender/ Clear metadata (if any)
function _burn(uint256 itemId) internal { super._burn(itemId); if (bytes(_itemURIs[itemId]).length != 0) { delete _itemURIs[itemId]; } }
12,610,835
[ 1, 3061, 445, 358, 18305, 279, 2923, 761, 868, 31537, 309, 326, 761, 1552, 486, 1005, 225, 18424, 2254, 5034, 1599, 434, 326, 761, 3832, 18305, 329, 635, 326, 1234, 18, 15330, 19, 10121, 1982, 261, 430, 1281, 13, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 70, 321, 12, 11890, 5034, 18424, 13, 2713, 288, 203, 565, 2240, 6315, 70, 321, 12, 1726, 548, 1769, 203, 203, 565, 309, 261, 3890, 24899, 1726, 1099, 2520, 63, 1726, 548, 65, 2934, 2469, 480, 374, 13, 288, 203, ...
/** *Submitted for verification at Etherscan.io on 2019-07-31 */ /* pragma solidity ^0.4.24; */ pragma solidity ^0.5.0; // File: contracts/math/SafeMath.sol // https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol // @title SafeMath: overflow/underflow checks // @notice Math ope...
@notice reverts if the funding deadline has not passed
modifier beforeDeadline(address _assetAddress) { require(now < database.uintStorage(keccak256(abi.encodePacked("crowdsale.deadline", _assetAddress))), "Before deadline"); _; }
5,372,315
[ 1, 266, 31537, 309, 326, 22058, 14096, 711, 486, 2275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 1865, 15839, 12, 2867, 389, 9406, 1887, 13, 288, 203, 565, 2583, 12, 3338, 411, 2063, 18, 11890, 3245, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 2932, 71, 492, 2377, 5349, 18, 22097, 1369, 3113, 389, ...
pragma solidity ^0.5.0; import "./TellorGetters.sol"; /** * @title Tellor Oracle System * @dev Oracle contract where miners can submit the proof of work along with the value. * The logic for this contract is in TellorLibrary.sol, TellorDispute.sol, TellorStake.sol, * and TellorTransfer.sol */ contract Tellor is...
* @dev tallies the votes. @param _disputeId is the dispute id/
function tallyVotes(uint256 _disputeId) external { tellor.tallyVotes(_disputeId); }
1,046,190
[ 1, 88, 454, 606, 326, 19588, 18, 225, 389, 2251, 2507, 548, 353, 326, 1015, 2507, 612, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 268, 1230, 29637, 12, 11890, 5034, 389, 2251, 2507, 548, 13, 3903, 288, 203, 3639, 9276, 280, 18, 88, 1230, 29637, 24899, 2251, 2507, 548, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x4978dB69dE50602c64d72A3bc6DcBe0e90B040bC/sources/MasterChef.sol
Deposit LP tokens to MasterChef for ANON allocation.
function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user .amount .mul(pool.accanonPe...
3,918,329
[ 1, 758, 1724, 511, 52, 2430, 358, 13453, 39, 580, 74, 364, 432, 3993, 13481, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 6610, 6362, 3576, ...
./full_match/4/0x77F67740bD08Ba29A8823EfdD81C25BBA6cBAe50/sources/contracts/OlympusERC20.sol
* @dev Returns the number of values on the set. O(1)./
function length(Bytes4Set storage set) internal view returns (uint256) { return _length(set._inner); }
647,043
[ 1, 1356, 326, 1300, 434, 924, 603, 326, 444, 18, 531, 12, 21, 2934, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 769, 12, 2160, 24, 694, 2502, 444, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 389, 2469, 12, 542, 6315, 7872, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/* * * https://t.me/Hubcoin_Official * * SPDX-License-Identifier: Unlicensed */ pragma solidity ^0.8.0; interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view re...
list for Max Bal limits
mapping (address => bool) public _isExcludedBal;
42,542
[ 1, 1098, 364, 4238, 605, 287, 8181, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 1426, 13, 1071, 389, 291, 16461, 38, 287, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.17; library Defi { struct Position { bytes id; // encoded platform specific id for the position bytes currency; // encoded platform specific currency for the position uint256 amount; // total amount owed or supplied (with int...
encoded platform specific currency for the position
bytes currency;
1,788,036
[ 1, 10787, 4072, 2923, 5462, 364, 326, 1754, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1731, 5462, 31, 9079, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* Library Imports */ import { AddressAliasHelper } from "../../standards/AddressAliasHelper.sol"; import { Lib_CrossDomainUtils } from "../../libraries/bridge/Lib_CrossDomainUtils.sol"; import { Lib_DefaultValues } from "../../libraries/constants/Lib_DefaultValu...
slither-disable-next-line reentrancy-no-eth, reentrancy-events, reentrancy-benign
(bool success, ) = _target.call(_message);
6,389,763
[ 1, 2069, 2927, 17, 8394, 17, 4285, 17, 1369, 283, 8230, 12514, 17, 2135, 17, 546, 16, 283, 8230, 12514, 17, 5989, 16, 283, 8230, 12514, 17, 19425, 724, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 261, 6430, 2216, 16, 262, 273, 389, 3299, 18, 1991, 24899, 2150, 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, -1...
./full_match/1/0xCf3b485bd11BCa74103D7D3534503bAD3fbdaC6d/sources/contracts/JBFundingCycleStore.sol
/ If the project does not have a funding cycle, return an empty struct. Get a reference to the configuration of the standby funding cycle. If it exists, return its funding cycle if it is approved. Resolve the funding cycle for the latest configured funding cycle. Resolve the funding cycle for the latest configured fund...
function queuedOf(uint256 _projectId) external view override returns (JBFundingCycle memory fundingCycle) { if (latestConfigurationOf[_projectId] == 0) return _getStructFor(0, 0); uint256 _standbyFundingCycleConfiguration = _standbyOf(_projectId); if (_standbyFundingCycleConfiguration ...
17,049,512
[ 1, 19, 971, 326, 1984, 1552, 486, 1240, 279, 22058, 8589, 16, 327, 392, 1008, 1958, 18, 968, 279, 2114, 358, 326, 1664, 434, 326, 12842, 1637, 22058, 8589, 18, 971, 518, 1704, 16, 327, 2097, 22058, 8589, 309, 518, 353, 20412, 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, 225, 445, 12234, 951, 12, 11890, 5034, 389, 4406, 548, 13, 203, 565, 3903, 203, 565, 1476, 203, 565, 3849, 203, 565, 1135, 261, 8877, 42, 14351, 13279, 3778, 22058, 13279, 13, 203, 225, 288, 203, 565, 309, 261, 13550, 1750, 951, ...
// contracts/CollectionItem.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such ...
* @dev Tranfert amount from the contract/
function withdraw(uint amount) public onlyOwner() { address payable owner_pay = payable(owner()); owner_pay.transfer(amount); }
10,094,446
[ 1, 17730, 586, 88, 3844, 628, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 3844, 13, 1071, 1338, 5541, 1435, 288, 203, 3639, 1758, 8843, 429, 3410, 67, 10239, 273, 8843, 429, 12, 8443, 10663, 203, 3639, 3410, 67, 10239, 18, 13866, 12, 8949, 1769, 203, 565, 289, 203, 377, ...
pragma solidity ^0.5.0; import "./token/ERC20/IERC20.sol"; /** * Atomic Swap with Escrow account * * Steps to use Escrow account using executeOrder flow: 1. party1 registers the order 2. party1 creates allowance for Escrow 3. party2 creates allowance for Escrow 4. party2 call executeOrder * * Steps t...
this is used by onTokenTransferVersion
struct Order { address party1; IERC20 coin1; uint256 amount1; address party2; IERC20 coin2; uint256 amount2; bool party1Done; bool party2Done; } uint256 private nextOrder = 0;
5,490,222
[ 1, 2211, 353, 1399, 635, 603, 1345, 5912, 1444, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 4347, 288, 203, 3639, 1758, 18285, 21, 31, 203, 3639, 467, 654, 39, 3462, 13170, 21, 31, 203, 3639, 2254, 5034, 3844, 21, 31, 203, 3639, 1758, 18285, 22, 31, 203, 3639, 467, 654, 39, 3462, 13170, 22, 31, 203, 3639, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IFeesCalculator.sol"; contract FeesCalculator is IFeesCalculator, Ownable { uint256 private constant PRECISION_DECIMALS = 1e10; uint256 private constant FUNDING_FEE_MIN_RATE =...
100% is MAX_PERCENTAGE = 10000
uint16 public maxVolumeFeeDeltaCollateral = 400;
5,979,771
[ 1, 6625, 9, 353, 4552, 67, 3194, 19666, 2833, 273, 12619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 2313, 1071, 943, 4545, 14667, 9242, 13535, 2045, 287, 273, 7409, 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, ...
./full_match/7001/0x3D9892247AEa8BEcc9f487Fb3709DfbCFF3c83c1/sources/contracts/Withdraw.sol
* @title Withdraw @dev This contract enables the withdrawal of ZRC20 tokens./
contract Withdraw is zContract { error WrongGasContract(); error NotEnoughToPayGasFee(); error InvalidZRC20Address(); error ZeroAmount(); function doWithdrawal( address targetZRC20, uint256 amount, bytes32 recipient pragma solidity 0.8.7; ) private { (address gas...
13,228,956
[ 1, 1190, 9446, 225, 1220, 6835, 19808, 326, 598, 9446, 287, 434, 2285, 11529, 3462, 2430, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3423, 9446, 353, 998, 8924, 288, 203, 565, 555, 24668, 27998, 8924, 5621, 203, 565, 555, 2288, 664, 4966, 774, 9148, 27998, 14667, 5621, 203, 565, 555, 1962, 62, 11529, 3462, 1887, 5621, 203, 565, 555, 12744, 6275, 5621, 203...
///////////////////////////////////////////////////////////////////////////////////// //version 2.0 //Author: Taurus //Copyright: tlu4@lsu.edu // //NOTE: non-view functions cannot return values, only possible way is event //Changes from v0.9x. Each node has unique address as identifier. All pools removed //All req and...
Send a request from user to blockchain. Assumes price is including the cost for verification
function startRequest(uint64 time, uint16 target, uint64 price, bytes memory dataID) payable public returns (bool) { if(requestList[msg.sender].blockNumber == 0){ requestList[msg.sender].reqID = requestCount; requestList[msg.sender].blockNumber = block.number; ...
6,430,858
[ 1, 3826, 279, 590, 628, 729, 358, 16766, 18, 25374, 6205, 353, 6508, 326, 6991, 364, 11805, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 691, 12, 11890, 1105, 813, 16, 2254, 2313, 1018, 16, 2254, 1105, 6205, 16, 1731, 3778, 501, 734, 13, 8843, 429, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 309, 12, 2293, 682, 63, 3576, 18, 15330, 8009, 2629, 1854...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
продрогнуть на морозе
rus_verbs:продрогнуть{},
5,484,422
[ 1, 145, 128, 146, 227, 145, 127, 145, 117, 146, 227, 145, 127, 145, 116, 145, 126, 146, 230, 146, 229, 146, 239, 225, 145, 126, 145, 113, 225, 145, 125, 145, 127, 146, 227, 145, 127, 145, 120, 145, 118, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 436, 407, 67, 502, 2038, 30, 145, 128, 146, 227, 145, 127, 145, 117, 146, 227, 145, 127, 145, 116, 145, 126, 146, 230, 146, 229, 146, 239, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.6; import "./Supplier.sol"; contract Exchange { address public owner; uint public currentTicket; // the next ticket to be served once an order has come in uint public recentTicket; // the ticket most in the future to serve the order mapping (bytes32 => address) supplierListed; // NOTE: T...
TODO if already enlisted throw
function enlist(address supplierContractAddress) { Supplier supplierContract = Supplier(supplierContractAddress); bytes32 supplierNameBytes = supplierContract.getSupplierNameBytes(); supplierListed[supplierNameBytes] = supplierContractAddress; recentTicket = recentTicket + 1; supplierQueue[recentT...
1,823,420
[ 1, 6241, 309, 1818, 570, 18647, 604, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 570, 1098, 12, 2867, 17402, 8924, 1887, 13, 288, 203, 565, 17216, 17402, 8924, 273, 17216, 12, 2859, 5742, 8924, 1887, 1769, 203, 565, 1731, 1578, 17402, 461, 2160, 273, 17402, 8924, 18, 588, 13254, 461, 2160, 5621, 203, ...
./full_match/9001/0xf0EE62005149B008bD3991EdfEA2cAd5EAE592aA/sources/contracts/governed-owner/SimpleGovernance.sol
voter addr -> voting power
mapping(address => uint256) public voterPowers;
11,533,147
[ 1, 90, 20005, 3091, 317, 331, 17128, 7212, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 331, 20005, 28289, 414, 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, -10...
./full_match/1/0xBe2B3A004204245812739B29a21dCD9C0b5CE7c3/sources/contracts/PullPaymentMarket.sol
Function to remove a token from the whitelist
function removeFromWhitelist(address _token) external onlyOwner { whitelistedTokens[_token] = false; }
16,398,459
[ 1, 2083, 358, 1206, 279, 1147, 628, 326, 10734, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 22386, 18927, 12, 2867, 389, 2316, 13, 3903, 1338, 5541, 288, 203, 3639, 26944, 5157, 63, 67, 2316, 65, 273, 629, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xdDc2c27eA8a42b35B329c4e0216600F12EED13d1/sources/contracts/wombat-core/pool/PoolV3.sol
@notice Dev address
address public dev;
2,762,401
[ 1, 8870, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 4461, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// 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 Hook that is called before any token transfer. This includes minting and burning. Calling conditions: - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be transferred to `to`. - When `from` is zero, `tokenId` will be minted for `to`. - When `to` is zero, ``from``'s `tokenId` will be burned. - `...
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); _removeTokenFromOwnerEnumerat...
13,826,581
[ 1, 5394, 716, 353, 2566, 1865, 1281, 1147, 7412, 18, 1220, 6104, 312, 474, 310, 471, 18305, 310, 18, 21020, 4636, 30, 300, 5203, 1375, 2080, 68, 471, 1375, 869, 68, 854, 3937, 1661, 17, 7124, 16, 12176, 2080, 10335, 11, 87, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 3849, 288, 203, 3639, 2240, 6315, 5771, 1345, 5912, 12, 2080, 16, 358, 16, 11...
./full_match/80001/0xe7Ebc638409b8f4f0DAde04c16e843a94bBc667e/sources/src/Access.sol
* @dev Toggles the transferrable status of a specific token. @param _tokenId The ID of the token. @param _status The new transferrable status of the token./
function toggleTransferrable(uint256 _tokenId, bool _status) public onlyRole(ADMIN_ROLE()) { tokenTransferrableStatus[_tokenId] = [++transferrableCounter, bool2uint(_status)]; }
5,606,049
[ 1, 56, 23972, 1040, 326, 7412, 354, 7119, 1267, 434, 279, 2923, 1147, 18, 225, 389, 2316, 548, 1021, 1599, 434, 326, 1147, 18, 225, 389, 2327, 1021, 394, 7412, 354, 7119, 1267, 434, 326, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10486, 5912, 354, 7119, 12, 11890, 5034, 389, 2316, 548, 16, 1426, 389, 2327, 13, 1071, 1338, 2996, 12, 15468, 67, 16256, 10756, 288, 203, 3639, 1147, 5912, 354, 7119, 1482, 63, 67, 2316, 548, 65, 273, 306, 9904, 13866,...
./full_match/84531/0xD920Cd72ea026c9ce7620d19245A773a972c555a/sources/contracts/prebuilts/account/managed/ManagedAccountFactory.sol
@dev Returns whether all relevant permission and other checks are met before any upgrade.
function _isAuthorizedCallToUpgrade() internal view virtual override returns (bool) { return hasRole(keccak256("EXTENSION_ROLE"), msg.sender); }
14,307,482
[ 1, 1356, 2856, 777, 9368, 4132, 471, 1308, 4271, 854, 5100, 1865, 1281, 8400, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 291, 15341, 1477, 774, 10784, 1435, 2713, 1476, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 28335, 12, 79, 24410, 581, 5034, 2932, 12796, 67, 16256, 6, 3631, 1234, 18, 15330, 1769, 203, 565, 289, 203, 203...
./full_match/3/0xfcbf96EE4780Cb4cE0080151785D4F21Aa960CAB/sources/contracts/1_Storage.sol
ERC20("CRYPTO LeisureMeta", "LeisureMeta")constructor (string memory name, string memory symbol)
contract LeisureMetaCoin is ERC20,ERC20Burnable,ERC20Pausable { constructor () public { _mint(msg.sender, 10000000000 * (10**uint256(18))); } function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) { super._beforeTo...
8,122,631
[ 1, 654, 39, 3462, 2932, 14306, 51, 3519, 291, 594, 2781, 3113, 315, 1682, 291, 594, 2781, 7923, 12316, 261, 1080, 3778, 508, 16, 533, 3778, 3273, 13, 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, 16351, 3519, 291, 594, 2781, 27055, 353, 4232, 39, 3462, 16, 654, 39, 3462, 38, 321, 429, 16, 654, 39, 3462, 16507, 16665, 288, 203, 565, 3885, 1832, 203, 3639, 1071, 203, 565, 288, 203, 3639, 389, 81, 474, 12, 3576, 18, 15330,...
./full_match/222000222/0xc3023a2c9f7B92d1dd19F488AF6Ee107a78Df9DB/sources/contracts/MasterChef.sol
MELD tokens created per block.
uint256 public meldPerBlock;
13,222,818
[ 1, 958, 12069, 2430, 2522, 1534, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 312, 488, 2173, 1768, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; /** * @title NFT Smart Contract * @author Stephan Fowler * @notice ERC721 contract for stand-alone NFT collections with lazy-min...
* @notice Returns the price at which a token may be bought. Zero means the token is not for sale. @param id The token id/
function priceOf(uint256 id) external view returns (uint256) { return prices[id]; }
7,277,399
[ 1, 1356, 326, 6205, 622, 1492, 279, 1147, 2026, 506, 800, 9540, 18, 12744, 4696, 326, 1147, 353, 486, 364, 272, 5349, 18, 282, 612, 1021, 1147, 612, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6205, 951, 12, 11890, 5034, 612, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 19827, 63, 350, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
//SPDX-License-Identifier: UNLICENSED pragma solidity >=0.5.0; contract MyCasino { //OWNER OF THE ACCOUNT address payable public owner; constructor(uint _minBet) public { owner = msg.sender; //USER THAT CREATED THIS CONTRACT IS THE OWNER if(_minBet != 0) mi...
USER THAT CREATED THIS CONTRACT IS THE OWNER
owner = msg.sender;
1,011,794
[ 1, 4714, 7662, 789, 21397, 20676, 8020, 2849, 1268, 4437, 12786, 531, 22527, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3410, 273, 1234, 18, 15330, 31, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import {BTCUtils} from "@interlay/bitcoin-spv-sol/contracts/BTCUtils.sol"; import {BytesLib} from "@interlay/bitcoin-spv-sol/contracts/BytesLib.sol"; import {S_ReplaceRequest, RequestStatus} from "./Request.sol"; import {TxValidate} from "./TxValidate.sol"; impo...
Retrieve the ReplaceRequest as per the replaceId parameter from Vaults in the VaultRegistry NOTE: anyone can call this method provided the proof is correct decrease old-vault's issued & to-be-redeemed tokens, and change new-vault's to-be-issued tokens to issued tokens if the old vault has not been liquidated, give it ...
function _executeReplace(uint256 replaceId, bytes memory _vout) internal { S_ReplaceRequest storage replace = replaceRequests[replaceId]; require(replace.status == RequestStatus.Pending, "Wrong request status"); address oldVaultId = replace.oldVault; address newVaultId = replace.new...
13,048,517
[ 1, 5767, 326, 6910, 691, 487, 1534, 326, 1453, 548, 1569, 628, 17329, 87, 316, 326, 17329, 4243, 5219, 30, 1281, 476, 848, 745, 333, 707, 2112, 326, 14601, 353, 3434, 20467, 1592, 17, 26983, 1807, 16865, 473, 358, 17, 2196, 17, 266,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8837, 5729, 12, 11890, 5034, 1453, 548, 16, 1731, 3778, 389, 90, 659, 13, 2713, 288, 203, 3639, 348, 67, 5729, 691, 2502, 1453, 273, 1453, 6421, 63, 2079, 548, 15533, 203, 3639, 2583, 12, 2079, 18, 2327, 422, 156...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.1; // File: contracts/oracle/RegularIntervalOracleInterface.sol /** * @dev Interface of the regular interval price oracle. */ interface RegularIntervalOracleInterface { function setPrice(uint256 roundId) external returns (bool); function setOptimize...
* @notice Set optimized parameters for EWMA only by quants address Recalculate latest Volatility with new lambda Recalculation starts from price at `latestTimestamp - _dataNum _interval`/
function setOptimizedParameters(uint16 newLambdaE4) external override onlyQuants returns (bool) { require( newLambdaE4 > 9000 && newLambdaE4 < 10000, "new lambda is out of valid range" ); require( (_latestTimestamp - _oldestTimestamp) / _interval > _dataNum, ...
5,808,640
[ 1, 694, 15411, 1472, 364, 512, 59, 5535, 1338, 635, 719, 4388, 1758, 868, 11162, 4891, 26861, 30139, 598, 394, 3195, 868, 29916, 2542, 628, 6205, 622, 1375, 13550, 4921, 300, 389, 892, 2578, 225, 389, 6624, 68, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 13930, 1235, 2402, 12, 11890, 2313, 394, 12025, 41, 24, 13, 203, 565, 3903, 203, 565, 3849, 203, 565, 1338, 928, 4388, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 377, 203, 565, 2583, 12, 203, 1377, 394, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma experimental ABIEncoderV2; import "./ERC2746.sol"; import "./TransactionStateInterface.sol"; import "./WonkaLibrary.sol"; import "./WonkaEngineMetadata.sol"; import "./WonkaEngineRuleSets.sol"; /// @title An Ethereum contract that contains the functional...
@dev This method will set an Attribute value on the record associated with the provided address/account @notice We do not currently check here to see if the value qualifies according to the Attribute's definition
function setValueOnRecord(address ruler, bytes32 key, string memory value) public override returns(string memory) { return wonkaRuleSets.setValueOnRecord(ruler, key, value); }
2,479,035
[ 1, 2503, 707, 903, 444, 392, 3601, 460, 603, 326, 1409, 3627, 598, 326, 2112, 1758, 19, 4631, 225, 1660, 741, 486, 4551, 866, 2674, 358, 2621, 309, 326, 460, 4544, 5032, 4888, 358, 326, 3601, 1807, 2379, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5524, 1398, 2115, 12, 2867, 436, 17040, 16, 1731, 1578, 498, 16, 533, 3778, 460, 13, 1071, 3849, 1135, 12, 1080, 3778, 13, 288, 7010, 203, 3639, 327, 8462, 7282, 2175, 2785, 18, 542, 620, 1398, 2115, 12, 86, 17040, 16...
// SPDX-License-Identifier: MIT pragma solidity 0.8.5; import {InitializedProxy} from "./InitializedProxy.sol"; import {PartyBid} from "./PartyBid.sol"; /** * @title PartyBid Factory * @author Anna Carroll * * WARNING: A malicious MarketWrapper contract could be used to steal user funds; * A poorly implemented M...
============ External Imports: External Contracts & Contract Interfaces ============
import { IERC721VaultFactory } from "./external/interfaces/IERC721VaultFactory.sol";
102,668
[ 1, 14468, 11352, 2221, 4363, 30, 11352, 30131, 473, 13456, 27152, 422, 1432, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5666, 288, 203, 565, 467, 654, 39, 27, 5340, 12003, 1733, 203, 97, 628, 25165, 9375, 19, 15898, 19, 45, 654, 39, 27, 5340, 12003, 1733, 18, 18281, 14432, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } functi...
* event for token purchase logging @param purchaser who paid for the tokens @param beneficiary who got the tokens @param value weis paid for purchase @param amount amount of tokens purchased/TODO: Uncomment the following before deployment on main networkTODO: Comment the following when deploying on main networkstartTim...
{ require(_wallet != 0x0); require(_startTime >=now); startTime = _startTime; endTime = startTime + totalDurationInDays; require(endTime >= startTime); owner = _wallet; maxTokensToSale = 32500000 * 10 ** 18; bonusInPreSalePhase1 = 30; bonusInPreSalePhase2 ...
2,261,312
[ 1, 2575, 364, 1147, 23701, 2907, 225, 5405, 343, 14558, 10354, 30591, 364, 326, 2430, 225, 27641, 74, 14463, 814, 10354, 2363, 326, 2430, 225, 460, 732, 291, 30591, 364, 23701, 225, 3844, 3844, 434, 2430, 5405, 343, 8905, 19, 6241, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 377, 203, 565, 2583, 24899, 19177, 480, 374, 92, 20, 1769, 203, 565, 2583, 24899, 1937, 950, 1545, 3338, 1769, 203, 565, 8657, 273, 389, 1937, 950, 31, 21281, 377, 203, 565, 13859, 273, 8657, 397, 2078, 5326, 382, ...
./partial_match/1/0x499f3911aeEE63aB82c6979Fa27Af3AD0e6EACf4/sources/MasterEgyptian.sol
Safe anubis transfer function, just in case if rounding error causes pool to not have enough ANUBISs.
function safeAnubisTransfer(address _to, uint256 _amount) internal { uint256 anubisBal = anubis.balanceOf(address(this)); if (_amount > anubisBal) { anubis.transfer(_to, anubisBal); anubis.transfer(_to, _amount); } }
16,043,221
[ 1, 9890, 392, 373, 291, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 8175, 3457, 5127, 87, 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, ...
[ 1, 1, 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, 4183, 979, 373, 291, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 392, 373, 291, 38, 287, 273, 392, 373, 291, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, ...
pragma solidity ^0.5.0; interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function balanceOf(address w...
* @dev getting rates from Kyber @param src is the token being sold @param dest is the token being bought @param srcAmt is the amount of token being sold @return expectedRate - the current rate @return slippageRate - rate with 3% slippage/
function getExpectedRate( address src, address dest, uint srcAmt ) public view returns ( uint expectedRate, uint slippageRate ) { (expectedRate,) = KyberInterface(getAddressKyber()).getExpectedRate(src, dest, srcAmt); }
5,444,621
[ 1, 588, 1787, 17544, 628, 1475, 93, 744, 225, 1705, 353, 326, 1147, 3832, 272, 1673, 225, 1570, 353, 326, 1147, 3832, 800, 9540, 225, 1705, 31787, 353, 326, 3844, 434, 1147, 3832, 272, 1673, 327, 2665, 4727, 300, 326, 783, 4993, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 6861, 4727, 12, 203, 3639, 1758, 1705, 16, 203, 3639, 1758, 1570, 16, 203, 3639, 2254, 1705, 31787, 203, 565, 262, 1071, 1476, 1135, 261, 203, 3639, 2254, 2665, 4727, 16, 203, 3639, 2254, 272, 3169, 2433, 4727, 203...
./partial_match/1/0x43e967c68D00C5670382D2C00689400a107f7178/sources/CoffeeWars.sol
This function is external because it will only be called from outside of this contractThis function returns a booleanCall the internal _burn function making sure to pass in true to make sure owner or approved checks are enforcedReturn true
function burn(uint256 _tokenId) external returns(bool){ _burn(_tokenId,true); return true; }
4,274,153
[ 1, 2503, 445, 353, 3903, 2724, 518, 903, 1338, 506, 2566, 628, 8220, 434, 333, 6835, 2503, 445, 1135, 279, 1250, 1477, 326, 2713, 389, 70, 321, 445, 10480, 3071, 358, 1342, 316, 638, 358, 1221, 3071, 3410, 578, 20412, 4271, 854, 570...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 445, 18305, 12, 11890, 5034, 389, 2316, 548, 13, 3903, 1135, 12, 6430, 15329, 203, 540, 203, 3639, 389, 70, 321, 24899, 2316, 548, 16, 3767, 1769, 203, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, ...
//SPDX-License-Identifier: MIT pragma solidity >=0.6.0; import '../Tree/TreeLib.sol'; import '../Array/ArrayLibUInt32.sol'; /** * @dev An optimized uint32 min/max heap * * Heap are efficient in keeping track of the min/max of a set of elements. The * root of the heap is always the min/max and this applies recursiv...
* @dev Get heap root @param slot storage slot @return value/
function root(bytes32 slot) internal view returns (uint32 value) { value = slot.get(0); }
7,272,007
[ 1, 967, 10500, 1365, 225, 4694, 2502, 4694, 327, 460, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1365, 12, 3890, 1578, 4694, 13, 2713, 1476, 1135, 261, 11890, 1578, 460, 13, 288, 203, 3639, 460, 273, 4694, 18, 588, 12, 20, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/5/0x89b581b51CB252D5cFcb933B748d9237bCf894AD/sources/contracts/interfaces/ICrosschain.sol
* @notice Defines functions and events for receiving and tracking crosschain claims/
interface ICrosschain is IDistributor, IXReceiver { event CrosschainClaim( bytes32 indexed id, address indexed beneficiary, address indexed recipient, uint32 recipientDomain, uint256 amount ); pragma solidity 0.8.16; import { IDistributor } from './IDistributor.sol'; import { IXReceiver } from '...
11,613,584
[ 1, 15109, 4186, 471, 2641, 364, 15847, 471, 11093, 6828, 5639, 11955, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13941, 5639, 353, 1599, 291, 19293, 16, 467, 60, 12952, 288, 203, 225, 871, 19742, 5639, 9762, 12, 203, 565, 1731, 1578, 8808, 612, 16, 203, 565, 1758, 8808, 27641, 74, 14463, 814, 16, 203, 565, 1758, 8808, 8027, 16, ...
./full_match/80001/0x463cB80b48c526ACb869c2C94bd691316c54e6a8/sources/contracts/GetVotedToEarn.sol
default: one unique value in the array
uint256 uniqueCounter = 1;
874,164
[ 1, 1886, 30, 1245, 3089, 460, 316, 326, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 10792, 2254, 5034, 3089, 4789, 273, 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, ...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.9; import "@uma/core/contracts/financial-templates/common/financial-product-libraries/long-short-pair-libraries/LongShortPairFinancialProductLibrary.sol"; import "@uma/core/contracts/common/implementation/Lockable.sol"; /** * @title Linear Long Short Pai...
@notice Parameters already set for calling LSP.
error ParametersSet();
6,357,301
[ 1, 2402, 1818, 444, 364, 4440, 511, 3118, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 555, 7012, 694, 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, -100, -100, -100, -100, ...
./full_match/1/0x894F99E775E350a6A5Ac0714D98C18F1826D9F83/sources/contracts/v2/s54basicERC1155.sol
uint256 needed = amount - inExistance;mint(from, amount - inExistance, tokenId);_tokenData[tokenId][from].forSale += amount - inExistance;
function buy( address from, address to, uint256 tokenId, uint256 amount, int256 maxSupply, uint256 royalties, string memory ipfs, bool outsideSell, uint256 nounce, bytes memory data if(tokenId > 0){ if(verifyTransa...
17,105,140
[ 1, 11890, 5034, 3577, 273, 3844, 300, 316, 4786, 1359, 31, 81, 474, 12, 2080, 16, 3844, 300, 316, 4786, 1359, 16, 1147, 548, 1769, 67, 2316, 751, 63, 2316, 548, 6362, 2080, 8009, 1884, 30746, 1011, 3844, 300, 316, 4786, 1359, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 509, 5034, 225, 943, 3088, 1283, 16, 203, 3639, 2254, 5034, 721, 93, 239...
./full_match/1/0x82a7b5842085f434c6584A8c44b6A1C15c25a512/sources/contracts/filters/SetCollectionCollateralFilter.sol
*************************************************************************/ State */*************************************************************************/* @notice Supported token/* @notice Set of supported token IDs/*************************************************************************/ Initializer */***********...
function _initialize(address token, uint256[] memory tokenIds_) internal { if (tokenIds_.length == 0) revert InvalidCollateralFilterParameters(); _token = token; for (uint256 i; i < tokenIds_.length; i++) { _tokenIds.add(tokenIds_[i]); } }
9,659,643
[ 1, 19, 3287, 368, 225, 19503, 1147, 19, 225, 1000, 434, 3260, 1147, 7115, 759, 4378, 3926, 368, 225, 1000, 2532, 13535, 2045, 287, 1586, 12562, 19, 3554, 1365, 471, 756, 1056, 342, 1000, 3260, 1147, 342, 1436, 1517, 1147, 1599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 11160, 12, 2867, 1147, 16, 2254, 5034, 8526, 3778, 1147, 2673, 67, 13, 2713, 288, 203, 3639, 309, 261, 2316, 2673, 27799, 2469, 422, 374, 13, 15226, 1962, 13535, 2045, 287, 1586, 2402, 5621, 203, 203, 3639, 389, 23...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; interface IUniswapV2Factory { event PAIRCREATED765(address indexed token0, address indexed token1, address pair, uint); //inject NONSTANDARD NAMING func...
inject NONSTANDARD NAMING
function GETQUOTELIMIT880(uint gasUsed) external view returns (uint);
12,917,704
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4978, 18980, 8283, 28, 3672, 12, 11890, 16189, 6668, 13, 3903, 1476, 1135, 261, 11890, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; pragma abicoder v2; // OpenZeppelin v4 import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { StorageSlot } from "@openzeppelin/contracts/utils/StorageSlot.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/util...
Calculate commitment hash
uint256 hash = hashCommitment(generatedCommitments[notesIter]);
5,809,460
[ 1, 8695, 23274, 1651, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 1651, 273, 1651, 5580, 475, 12, 11168, 5580, 1346, 63, 12903, 2360, 19226, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title A Multi Sig Safe Contract @notice Implements a multi signature safe. Users are added to the safe when it is initialized. The number of required signatures is also set at that time. In orde...
@notice @param from The address of the user that created the transaction. @param to The address of the recepient. @param amount The amount sent to the recepient. @param transactionId The transaction Id.
event TransactionCompleted(address from, address to, uint256 amount, uint256 transactionId);
12,962,550
[ 1, 2080, 1021, 1758, 434, 326, 729, 716, 2522, 326, 2492, 18, 225, 358, 1021, 1758, 434, 326, 2637, 84, 1979, 18, 225, 3844, 1021, 3844, 3271, 358, 326, 2637, 84, 1979, 18, 225, 24112, 1021, 2492, 3124, 18, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 5947, 9556, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 3844, 16, 2254, 5034, 24112, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0xadb797366e36697dc9742a8c820d3dda931668d2 //Contract name: minter //Balance: 3.229862423516881406 Ether //Verification Date: 10/23/2017 //Transacion Count: 6 // CODE STARTS HERE pragma solidity ^0.4.16; /** @title owned. */ contract owned { address owner; function owned() { owner = msg.sender; ...
_details.amount / _Price
_ETHReturned = wdiv(_details.amount , _Price);
13,108,936
[ 1, 67, 6395, 18, 8949, 342, 389, 5147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 1584, 44, 22360, 273, 341, 2892, 24899, 6395, 18, 8949, 269, 389, 5147, 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, -1...
pragma solidity 0.4.18; // File: contracts/ERC20Interface.sol // https://github.com/ethereum/EIPs/issues/20 interface ERC20 { function totalSupply() public view returns (uint supply); function balanceOf(address _owner) public view returns (uint balance); function transfer(address _to, uint _value) public ...
@notice use token address ETH_TOKEN_ADDRESS for ether @dev do one trade with a reserve @param src Src token @param amount amount of src tokens @param dest Destination token @param destAddress Address to send tokens to @param reserve Reserve to use @param validate If true, additional validations are applicable @retur...
function doReserveTrade( ERC20 src, uint amount, ERC20 dest, address destAddress, uint expectedDestAmount, KyberReserveInterface reserve, uint conversionRate, bool validate ) internal returns(bool) { uint callValue = 0; ...
509,360
[ 1, 1202, 1147, 1758, 512, 2455, 67, 8412, 67, 15140, 364, 225, 2437, 225, 741, 1245, 18542, 598, 279, 20501, 225, 1705, 26632, 1147, 225, 3844, 3844, 434, 1705, 2430, 225, 1570, 282, 10691, 1147, 225, 1570, 1887, 5267, 358, 1366, 2430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 741, 607, 6527, 22583, 12, 203, 3639, 4232, 39, 3462, 1705, 16, 203, 3639, 2254, 3844, 16, 203, 3639, 4232, 39, 3462, 1570, 16, 203, 3639, 1758, 1570, 1887, 16, 203, 3639, 2254, 2665, 9378, 6275, 16, 203, 3639, 1475, ...
./full_match/1/0x28462739c3EB65a571Bf92689e8257c806bD275D/sources/contracts/A0K1Passport.sol
* @dev See {IERC1155Receiver-onERC1155Received}./
function onERC1155Received( address, address from, uint256 id, uint256 value, bytes calldata data ) external override nonReentrant returns(bytes4) { _onERC1155Received(from, id, value, data); return this.onERC1155Received.selector; }
2,965,404
[ 1, 9704, 288, 45, 654, 39, 2499, 2539, 12952, 17, 265, 654, 39, 2499, 2539, 8872, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 603, 654, 39, 2499, 2539, 8872, 12, 203, 3639, 1758, 16, 203, 3639, 1758, 628, 16, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 2254, 5034, 460, 16, 203, 3639, 1731, 745, 892, 501, 203, 565, 262, 3903, 3849, 1661, 426, ...
pragma solidity ^0.6.0; /** * @title Primitive's Exchange Contract * @notice A Decentralized Exchange to manage the buying and selling of Prime Option tokens. * @author Primitive */ /* * @dev Provides information about the current execution context, including the * sender of the transaction and i...
* @dev users withdraw ether rather than have it directly sent to them @param _amount value of ether to withdraw/
function withdrawEther(uint256 _amount) external nonReentrant { require(_etherBalance[msg.sender] >= _amount, 'Bal < amount'); (bool success, ) = msg.sender.call.value(_amount)(""); require(success, "Transfer failed."); }
13,010,079
[ 1, 5577, 598, 9446, 225, 2437, 9178, 2353, 1240, 518, 5122, 3271, 358, 2182, 225, 389, 8949, 460, 434, 225, 2437, 358, 598, 9446, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 41, 1136, 12, 11890, 5034, 389, 8949, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 24899, 2437, 13937, 63, 3576, 18, 15330, 65, 1545, 389, 8949, 16, 296, 38, 287, 411, 3844, 8284, 203, 3639, 261, 6...
./full_match/43114/0xBc7aB8Ccb5EA70e52410391522f84638376379DD/sources/SnowBank.sol
Returng the balance of the tokenAddress and the ownerAddress
function getTokenBalance(address _tokenAddress, address _ownerAddress) public view returns (uint256) { return IERC20Joe(_ownerAddress).balanceOf(_tokenAddress); }
4,508,210
[ 1, 990, 75, 326, 11013, 434, 326, 1147, 1887, 471, 326, 3410, 1887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9162, 13937, 12, 2867, 389, 2316, 1887, 16, 1758, 389, 8443, 1887, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 467, 654, 39, 3462, 46, 15548, 24899, 8443, 1887, 2934, 12296, 951, 24899, 2316, 1887, 1...
pragma solidity ^0.4.21; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address publi...
* @dev low level token purchase DO NOT OVERRIDE @param _beneficiary Address performing the token purchase/ calculate token amount to be created Validation Checks update state Send tokens from token wallet Forward the funds to wallet Event trigger
function buyTokens(address _beneficiary) internal whenNotPaused { uint256 weiAmount = msg.value; uint256 tokenAmount = getTokenAmount(weiAmount); preValidateChecks(_beneficiary, weiAmount, tokenAmount); tokensIssued = tokensIssued.add(tokenAmount); weiRaised = weiRaised.add(weiAmount);...
1,837,683
[ 1, 821, 1801, 1147, 23701, 5467, 4269, 22577, 25382, 225, 389, 70, 4009, 74, 14463, 814, 5267, 14928, 326, 1147, 23701, 19, 4604, 1147, 3844, 358, 506, 2522, 5684, 13074, 1089, 919, 2479, 2430, 628, 1147, 9230, 17206, 326, 284, 19156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30143, 5157, 12, 2867, 389, 70, 4009, 74, 14463, 814, 13, 2713, 1347, 1248, 28590, 288, 203, 377, 203, 565, 2254, 5034, 732, 77, 6275, 273, 1234, 18, 1132, 31, 203, 203, 565, 2254, 5034, 1147, 6275, 273, 9162, 6275, 1...
./partial_match/1/0xEaB7862De669FF23e205bec75c6F4Ea871Cd5298/sources/LUFI.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Ownable, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping (address => bool) private _rewards; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; b...
9,297,620
[ 1, 13621, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 14223, 6914, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 565, 2874, 261, 2867, 516, 1426, 13, 3238, 389, ...
pragma solidity ^0.4.25; /* Version 1.0.14 This contract accepts ETH, and distributes tokens. DBLK Airdrop Accelerator */ interface IERC20Token { function balanceOf(address owner) external returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function deci...
tally of the number of tokens distributed
uint256 public tokensDistributed;
1,035,764
[ 1, 88, 1230, 434, 326, 1300, 434, 2430, 16859, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 2430, 1669, 11050, 31, 6647, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// File: @openzeppelin/contracts/access/IAccessControl.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitt...
* @dev Grants `role` to `account`. Internal function without access restriction./
function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } }
12,104,704
[ 1, 29598, 1375, 4615, 68, 358, 1375, 4631, 8338, 3186, 445, 2887, 2006, 9318, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 16243, 2996, 12, 3890, 1578, 2478, 16, 1758, 2236, 13, 2713, 5024, 288, 203, 3639, 309, 16051, 5332, 2996, 12, 4615, 16, 2236, 3719, 288, 203, 5411, 389, 7774, 63, 4615, 8009, 7640, 63, 4631, 65, 273, 638, 31, 20...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.7.0; pragma experimental ABIEncoderV2; // File: witnet-ethereum-block-relay/contracts/BlockRelayInterface.sol /** * @title Block Relay Interface * @notice Interface of a Block Relay to a Witnet network * It defines how to interact with the Block Relay in o...
* @notice Decode a CBOR.Value structure from raw bytes. @dev This is an alternate factory for CBOR.Value instances, which can be later decoded into native EVM types. @param _buffer A Buffer structure representing a CBOR-encoded value. @return A `CBOR.Value` instance containing a partially decoded value./ Extract basic ...
function valueFromBuffer(BufferLib.Buffer memory _buffer) public pure returns(Value memory) { require(_buffer.data.length > 0, "Found empty buffer when parsing CBOR value"); uint8 initialByte; uint8 majorType = 255; uint8 additionalInformation; uint64 length; uint64 tag = UINT64_MAX; boo...
901,242
[ 1, 6615, 279, 21262, 916, 18, 620, 3695, 628, 1831, 1731, 18, 225, 1220, 353, 392, 12184, 3272, 364, 21262, 916, 18, 620, 3884, 16, 1492, 848, 506, 5137, 6383, 1368, 6448, 512, 7397, 1953, 18, 225, 389, 4106, 432, 3525, 3695, 5123, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 460, 1265, 1892, 12, 1892, 5664, 18, 1892, 3778, 389, 4106, 13, 1071, 16618, 1135, 12, 620, 3778, 13, 288, 203, 565, 2583, 24899, 4106, 18, 892, 18, 2469, 405, 374, 16, 315, 2043, 1008, 1613, 1347, 5811, 21262, 916, 4...
pragma solidity 0.4.24; // File: contracts/commons/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c ...
* @title Bitox token contract./
contract BitoxToken is BaseExchangeableToken { using SafeMath for uint; string public constant name = "BitoxTokens"; string public constant symbol = "BITOX"; uint8 public constant decimals = 18; uint internal constant ONE_TOKEN = 1e18; constructor(uint totalSupplyTokens_) public { ...
5,842,210
[ 1, 5775, 2409, 1147, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6539, 2409, 1345, 353, 3360, 11688, 429, 1345, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 533, 1071, 5381, 508, 273, 315, 5775, 2409, 5157, 14432, 203, 203, 565, 533, 1071, 5381, 3273, 273, 315, 15650, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.6.2; /** * @title SKALEStorage * @dev Create, kill & retrieve code of contract */ contract SkaleStorage { // struct to save creation blockNumber and removing blockNumber struct BlockData { uint256 blockStarted; uint256 blockFinished; }...
* @dev stores that contract was killed @param contractAddress - address of contract contract should be created contract should be created before kill contract should not be already killed/
function kill(address contractAddress) public { require(_contractLife[contractAddress].blockStarted != 0, "Contract was not created"); require(_contractLife[contractAddress].blockStarted <= block.number, "Contract will create after it killed"); require(_contractLife[contractAddress].blockFin...
13,089,513
[ 1, 19632, 716, 6835, 1703, 24859, 225, 6835, 1887, 300, 1758, 434, 6835, 6835, 1410, 506, 2522, 6835, 1410, 506, 2522, 1865, 8673, 6835, 1410, 486, 506, 1818, 24859, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8673, 12, 2867, 6835, 1887, 13, 1071, 288, 203, 3639, 2583, 24899, 16351, 15315, 63, 16351, 1887, 8009, 2629, 9217, 480, 374, 16, 315, 8924, 1703, 486, 2522, 8863, 203, 3639, 2583, 24899, 16351, 15315, 63, 16351, 1887, 80...
./full_match/1/0x9965cCd16803432C6a0842f1D5690f32E427aEDd/sources/contracts/LaunchpadRegistry.sol
* @dev Returns The Minted Work BaseURI For A Project/
function ViewBaseURIMintedWork(uint ProjectID) public view returns(string memory) { return Projects[ProjectID]._MetadataMintedWork; }
8,470,671
[ 1, 1356, 1021, 490, 474, 329, 4147, 3360, 3098, 2457, 432, 5420, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4441, 2171, 3098, 49, 474, 329, 2421, 12, 11890, 5420, 734, 13, 1071, 1476, 1135, 12, 1080, 3778, 13, 7010, 565, 288, 7010, 3639, 327, 30491, 63, 4109, 734, 65, 6315, 2277, 49, 474, 329, 2421, 31, 7010, 565, 289, 203,...
./partial_match/1/0x1Fa85cbB83B065E5Eb3Ea302Dc49A9Cde7a5D47f/sources/MiniMeToken.sol
Then update the balance array with the new value for the address receiving the tokens
var previousBalanceTo = balanceOfAt(_to, block.number);
2,760,053
[ 1, 20112, 1089, 326, 11013, 526, 598, 326, 394, 460, 364, 326, 1758, 225, 15847, 326, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 569, 2416, 13937, 774, 273, 11013, 951, 861, 24899, 869, 16, 1203, 18, 2696, 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, -10...
./full_match/3/0xFbd0aEef07bB33778E610741564F67Ccbcd551E7/sources/contracts/VestingMartin1.sol
@notice Allows a grant recipient to claim their vested tokens. Errors if no tokens have vested It is advised recipients check they are entitled to claim via `calculateGrantClaim` before calling this
function claimVestedTokens(uint256 _grantId) external { uint16 timeVested; uint256 amountVested; (timeVested, amountVested) = calculateGrantClaim(_grantId); require(amountVested > 0, "amountVested is 0"); Grant storage tokenGrant = tokenGrants[_grantId]; tokenGrant.d...
8,109,905
[ 1, 19132, 279, 7936, 8027, 358, 7516, 3675, 331, 3149, 2430, 18, 9372, 309, 1158, 2430, 1240, 331, 3149, 2597, 353, 1261, 26779, 12045, 866, 2898, 854, 3281, 305, 1259, 358, 7516, 3970, 1375, 11162, 9021, 9762, 68, 1865, 4440, 333, 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, 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, 58, 3149, 5157, 12, 11890, 5034, 389, 16243, 548, 13, 3903, 288, 203, 3639, 2254, 2313, 813, 58, 3149, 31, 203, 3639, 2254, 5034, 3844, 58, 3149, 31, 203, 3639, 261, 957, 58, 3149, 16, 3844, 58, 3149, 13, 273, ...