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
/** Orgon Token Smart Contract. Copyright © 2019 by Oris.Space. v25 */ pragma solidity ^0.4.25; library SafeMath { /** * Add two uint256 values, throw in case of overflow. * @param x first value to add * @param y second value to add * @return x + y */ function safeAdd (uint256 x, uint2...
* Allow Partner to transfer given number of tokens @param _partner Partner address @param _value number of tokens to allow to transfer @return true if token transfer was successfully approved, false otherwise / *********************************************** */
public returns (bool success) { require (msg.sender == owner); forPartners [_partner] = forPartners[_partner].safeAdd(_value); return true; }
895,344
[ 1, 4625, 348, 7953, 560, 30, 380, 7852, 6393, 1224, 358, 7412, 864, 1300, 434, 2430, 632, 891, 389, 31993, 6393, 1224, 1758, 632, 891, 389, 1132, 1300, 434, 2430, 358, 1699, 358, 7412, 632, 2463, 638, 309, 1147, 7412, 1703, 4985, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 482, 1135, 261, 6430, 2216, 13, 288, 203, 377, 203, 565, 2583, 261, 3576, 18, 15330, 422, 3410, 1769, 203, 565, 364, 1988, 9646, 306, 67, 31993, 65, 273, 364, 1988, 9646, 63, 67, 31993, 8009, 4626, 986, 24899, 1132, 1769, 203, ...
/** *Submitted for verification at Etherscan.io on 2022-04-06 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity ^0.8.4; // OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol) /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also know...
@notice Unsets the root user (granted `ANY_SIG`) @param root Address of who should be unset as root
function _unsetRoot(address root) internal { _canCall[ANY_SIG][root] = false; emit AllowCaller(ANY_SIG, root); }
10,802,038
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1351, 4424, 326, 1365, 729, 261, 16243, 329, 1375, 15409, 67, 18513, 24065, 632, 891, 1365, 5267, 434, 10354, 1410, 506, 2646, 487, 1365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 18579, 2375, 12, 2867, 1365, 13, 2713, 288, 203, 3639, 389, 4169, 1477, 63, 15409, 67, 18513, 6362, 3085, 65, 273, 629, 31, 203, 3639, 3626, 7852, 11095, 12, 15409, 67, 18513, 16, 1365, 1769, 203, 565, 289, 203, ...
pragma solidity ^0.4.24; // File: contracts/lib/ownership/Ownable.sol contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner,address indexed newOwner); /// @dev The Ownable constructor sets the original `owner` of the contract to the sender account. ...
@dev Parameter-count specific method called by data provider in response
function respondIntArray( uint256 id, int[] response ) external returns (bool) { if (getProvider(id) != msg.sender || !fulfillQuery(id)) revert(); if(getSubscriberOnchain(id)) { ClientIntArray(getSubscriber(id)).callback(id, response); ...
7,219,452
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 5498, 17, 1883, 2923, 707, 2566, 635, 501, 2893, 316, 766, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6846, 1702, 1076, 12, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 509, 8526, 766, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 309, 261, 588, 2249, 12, 350, 13, 480, 1234, ...
// SPDX-License-Identifier: UNLICENCED // Implementation Copyright 2021, the author; All rights reserved // // This contract is an on-chain implementation of a concept created and // developed by John F Simon Jr in partnership with e•a•t•works and // @fingerprintsDAO pragma solidity 0.8.10; import "./EveryIconLib.sol"...
@notice Returns a random Token for an NFT which has not had its icon set by the cut-off point. Deterministically seeded from tokenId and mintingBlock.
function randomToken(uint256 tokenId, uint256 mintingBlock) public pure returns (Token memory) { PRNG.Source src = PRNG.newSource( keccak256(abi.encodePacked(tokenId, mintingBlock)) ); return EveryIconLib.Token({ designIcon...
1,513,229
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 279, 2744, 3155, 364, 392, 423, 4464, 1492, 711, 486, 9323, 2097, 4126, 444, 635, 326, 6391, 17, 3674, 1634, 18, 23608, 5846, 1230, 2621, 785, 628, 1147, 548, 471, 312, 474, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2744, 1345, 12, 11890, 5034, 1147, 548, 16, 2254, 5034, 312, 474, 310, 1768, 13, 203, 3639, 1071, 203, 3639, 16618, 203, 3639, 1135, 261, 1345, 3778, 13, 203, 565, 288, 203, 3639, 11770, 4960, 18, 1830, 1705, 273, 11770...
pragma solidity ^0.4.20; //a loaded 'state'. The state is unaware of it's surrounding world - //it doesnt know if the transaction is valid or not. contract tokenState { bytes8 displacement; bytes32 signature; address from; address to; bool spent; //load a given 'state' function tokenState...
verify address from input is signed in the signature
function tokenState(bytes input, bytes signature) public { processState(input); require(smartVerf.ecverify(sha3(input), signature, from)); } ex: input: "0x8215292337Ce0b5cbfFeFa7292B7C8224f15b241a0843d40f1cdad7a0ad7826abcc309d90561512c42" gets broken down into ...
13,021,717
[ 1, 4625, 348, 7953, 560, 30, 3929, 1758, 628, 810, 353, 6726, 316, 326, 3372, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1147, 1119, 12, 3890, 810, 16, 1731, 3372, 13, 1071, 288, 203, 3639, 1207, 1119, 12, 2630, 1769, 203, 540, 203, 3639, 2583, 12, 26416, 3945, 74, 18, 557, 8705, 12, 7819, 23, 12, 2630, 3631, 3372, 16, 628, 10019, 203, ...
contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balance) {} /// @notice s...
Set the symbol for display purposes
symbol = "OKM";
14,959,869
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 326, 3273, 364, 2562, 13694, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3273, 273, 315, 3141, 49, 14432, 27573, 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...
./partial_match/97/0x4d1586CC1cd49006eb1D8f4971cB2D6cE59297ED/sources/BSCFarm.sol
Total allocation points. Must be the sum of all allocation points in all pools same reward token.
mapping(IBEP20 => uint256) public totalAllocPoints;
17,205,296
[ 1, 4625, 348, 7953, 560, 30, 225, 10710, 13481, 3143, 18, 6753, 506, 326, 2142, 434, 777, 13481, 3143, 316, 777, 16000, 1967, 19890, 1147, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 45, 5948, 52, 3462, 516, 2254, 5034, 13, 1071, 2078, 8763, 5636, 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, ...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ /...
UniV2 / SLP LP Token Price Alpha Homora Fair LP Pricing Method (flash loan resistant) https:cmichel.io/pricing-lp-tokens/ https:blog.alphafinance.io/fair-lp-token-pricing/ https:github.com/AlphaFinanceLab/alpha-homora-v2-contract/blob/master/contracts/oracle/UniswapV2Oracle.sol Get info about the LP token Get the pric...
function uniV2LPPriceInfo() public view returns (UniV2PriceInfo memory) { UniV2LPBasicInfo memory lp_basic_info = uniV2LPBasicInfo(); uint256 eth_price = combo_oracle.getETHPricePrecise(); uint256 precise_price; { uint256 precise_price_eth112 = (((sqrtK * 2 * HomoraMat...
15,803,991
[ 1, 4625, 348, 7953, 560, 30, 225, 1351, 77, 58, 22, 342, 348, 14461, 511, 52, 3155, 20137, 24277, 670, 362, 10610, 478, 1826, 511, 52, 453, 1512, 310, 2985, 261, 13440, 28183, 400, 17175, 13, 2333, 30, 7670, 1354, 292, 18, 1594, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7738, 58, 22, 14461, 5147, 966, 1435, 1071, 1476, 1135, 261, 984, 77, 58, 22, 5147, 966, 3778, 13, 288, 203, 3639, 1351, 77, 58, 22, 14461, 8252, 966, 3778, 12423, 67, 13240, 67, 1376, 273, 7738, 58, 22, 14461, 8252, ...
./partial_match/56/0xDcFF21561663C70d301564aBd4db3362D2fAC5e8/sources/project_/contracts/interfaces/IERC20Metadata.sol
* @dev Interface for the optional metadata functions from the ERC20 standard. _Available since v4.1._/
interface IERC20Metadata { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function name() external view returns (string memory); function symbol() external view returns (string memory); funct...
11,143,382
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 364, 326, 3129, 1982, 4186, 628, 326, 4232, 39, 3462, 4529, 18, 389, 5268, 3241, 331, 24, 18, 21, 6315, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2277, 288, 203, 565, 871, 12279, 12, 2867, 8808, 628, 16, 1758, 8808, 358, 16, 2254, 5034, 460, 1769, 203, 203, 565, 871, 1716, 685, 1125, 12, 2867, 8808, 3410, 16, 1758, 8808, 17571, 264, 16, 2254, 50...
/** *Submitted for verification at Etherscan.io on 2021-01-05 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts-ethereum-package/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace...
* @dev Transfer tokens to a specified address. @param to The address to transfer to. @param value The amount to be transferred. @return True on success, false otherwise./
function transfer(address to, uint256 value) public override(ERC20UpgradeSafe, ERC677) validRecipient(to) returns (bool) { require(bannedUsers[msg.sender] == false, "you are banned"); require(!transfersPaused || transferPauseExemptList[msg.sender], "paused"); ...
7,821,813
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 2430, 358, 279, 1269, 1758, 18, 632, 891, 358, 1021, 1758, 358, 7412, 358, 18, 632, 891, 460, 1021, 3844, 358, 506, 906, 4193, 18, 632, 2463, 1053, 603, 2216, 16, 629, 3541, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 358, 16, 2254, 5034, 460, 13, 203, 3639, 1071, 203, 3639, 3849, 12, 654, 39, 3462, 10784, 9890, 16, 4232, 39, 26, 4700, 13, 203, 3639, 923, 18241, 12, 869, 13, 203, 3639, 1135, 261, 6430, 13, 203, 56...
./partial_match/1/0x968348C6135C25e7160AD0671C8C9CA2eD2bb982/sources/contracts/eclp/GyroECLPMath.sol
@dev calculate -(At)_x ^2 (A chi)_y ^2 + (At)_x ^2, rounding down in signed direction (At)_x^2 (A chi)_y^2 = (x^2 c^2 - xy2sc + y^2 s^2) (u^2 + 2uv/lambda + v^2/lambda^2) account for 4 factors of dSq (8 s,c factors) (At)_x^2 = (x^2 c^2 - xy2sc + y^2 s^2)/lambda^2 account for 1 factor of dSq (2 s,c factors) n...
function calcMinAtxAChiySqPlusAtxSq( int256 x, int256 y, Params memory p, DerivedParams memory d ) internal pure returns (int256 val) { int256 termNp = x.mulUpMagU(x).mulUpMagU(p.c).mulUpMagU(p.c) + y.mulUpMagU(y).mulUpMagU(p.s).mulUpMagU(p.s); termNp = termNp - x...
15,967,267
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 4604, 300, 12, 861, 13, 67, 92, 3602, 22, 261, 37, 17198, 13, 67, 93, 3602, 22, 397, 261, 861, 13, 67, 92, 3602, 22, 16, 13885, 2588, 316, 6726, 4068, 261, 861, 13, 67, 92, 66, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7029, 2930, 861, 21703, 782, 77, 93, 19643, 13207, 861, 92, 19643, 12, 203, 3639, 509, 5034, 619, 16, 203, 3639, 509, 5034, 677, 16, 203, 3639, 8861, 3778, 293, 16, 203, 3639, 14969, 2950, 1370, 3778, 302, 203, 565, 2...
/* This is the STE token - a crowdfunding token of the STeX.Exchange project. All token info and stats will be published at https://stex.exchange/ste page You can use safeLock function to hard lock your tokens on your address for any period from 1 day and up to 2 years. There would be no way for a villain t...
Total Supply of STE is 4714285714285710
function STEToken() public { name = "STeX Exchange Token"; symbol = "STE"; decimals = 8; allowTransfer = false; maxLockPeriod = 4600000; totalSupply_ = 4714285714285710; balances[address(this)] = totalSupply_; }
1,088,161
[ 1, 4625, 348, 7953, 560, 30, 225, 10710, 3425, 1283, 434, 22839, 353, 17495, 3461, 6030, 10321, 3461, 6030, 10321, 2163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 22839, 1345, 1435, 1071, 288, 203, 202, 202, 529, 273, 315, 882, 73, 60, 18903, 3155, 14432, 203, 202, 202, 7175, 273, 315, 882, 41, 14432, 203, 202, 202, 31734, 273, 1725, 31, 203, 202, 202, 5965, 5912, 273, 629, 31,...
// Dependency file: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they...
========== STATE VARIABLES ========== */ ========== CONSTRUCTOR ========== */
constructor(address initialLiquidityManager_) public { _transfersEnabled = false; minters[msg.sender] = true; initialLiquidityManager = initialLiquidityManager_; _canTransferInitialLiquidity[msg.sender] = true; }
46,538
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 7442, 22965, 55, 422, 1432, 1195, 422, 1432, 3492, 13915, 916, 422, 1432, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3885, 12, 2867, 2172, 48, 18988, 24237, 1318, 67, 13, 1071, 288, 203, 3639, 389, 2338, 18881, 1526, 273, 629, 31, 203, 3639, 1131, 5432, 63, 3576, 18, 15330, 65, 273, 638, 31, 203, 3639, 2172, 48, 18988, 24237, 1318, 273, ...
./partial_match/1/0x59BC239cAb00CADd9b14f299835ae39E8B4B569c/sources/contracts/protocol/libraries/configuration/UserConfiguration.sol
* @dev Sets if the user is using as collateral the reserve identified by reserveIndex @param self The configuration object @param reserveIndex The index of the reserve in the bitmap @param usingAsCollateral True if the user is usin the reserve as collateral, false otherwise/
function setUsingAsCollateral( DataTypes.UserConfigurationMap storage self, uint256 reserveIndex, bool usingAsCollateral ) internal { require(reserveIndex < 128, Errors.UL_INVALID_INDEX); self.data = (self.data & ~(1 << (reserveIndex * 2 + 1))) | (...
15,931,696
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 309, 326, 729, 353, 1450, 487, 4508, 2045, 287, 326, 20501, 9283, 635, 20501, 1016, 632, 891, 365, 1021, 1664, 733, 632, 891, 20501, 1016, 1021, 770, 434, 326, 20501, 316, 326, 938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 7736, 1463, 13535, 2045, 287, 12, 203, 3639, 1910, 2016, 18, 1299, 1750, 863, 2502, 365, 16, 203, 3639, 2254, 5034, 20501, 1016, 16, 203, 3639, 1426, 1450, 1463, 13535, 2045, 287, 203, 565, 262, 2713, 288, 203, 363...
pragma solidity ^0.4.20; contract EIP20MinimumInterface { /** * @dev total amount of tokens, automatic public getter function created */ uint256 public totalSupply; function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _from, address _to, uint256 _v...
Give the creator all initial tokens
balances[msg.sender] = totalSupply;
6,364,701
[ 1, 4625, 348, 7953, 560, 30, 225, 22374, 326, 11784, 777, 2172, 2430, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 324, 26488, 63, 3576, 18, 15330, 65, 273, 2078, 3088, 1283, 31, 8227, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.23; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner,...
add a verified KYC/AML address
function addAllowedAddress(address _address) public onlyOwnerOrApi { allowedAdresses[_address] = true; }
6,979,755
[ 1, 4625, 348, 7953, 560, 30, 225, 527, 279, 13808, 1475, 61, 39, 19, 7982, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 5042, 1887, 12, 2867, 389, 2867, 13, 1071, 1338, 5541, 1162, 3064, 288, 203, 565, 2935, 19672, 63, 67, 2867, 65, 273, 638, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0xD83c243E9F4C1D1FaE4E4f7acACFa29E2782c24B/sources/browser/Locking2MF6ME.sol
* @dev A token holder contract that will allow a beneficiary to extract the tokens after a given release time. Useful for simple vesting schedules like "advisors get all of their tokens after 1 year"./ ERC20 basic token contract being held beneficiary of tokens after they are released timestamp when token release is en...
contract TokenTimelock is Ownable{ using SafeERC20 for IERC20; using SafeMath for uint256; IERC20 private _token; address private _beneficiary; uint256 private _initialReleaseDuration; uint256 private _releaseDuration; uint256 private _startTime; uint256 private _releasedAmount; u...
9,788,736
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 432, 1147, 10438, 6835, 716, 903, 1699, 279, 27641, 74, 14463, 814, 358, 2608, 326, 2430, 1839, 279, 864, 3992, 813, 18, 19256, 364, 4143, 331, 10100, 26720, 3007, 315, 361, 3516, 1383, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 3155, 10178, 292, 975, 353, 14223, 6914, 95, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 654, 39, 3462, 3238, 389, 2316, 31, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@op...
Whitelist smart contract This smart contract keeps list of addresses to whitelist @notice it will return status of white listing @return true if user is white listed and false if is not
contract WhiteList is Ownable { mapping(address => bool) public whiteList; event LogWhiteListed(address indexed user, uint whiteListedNum); event LogRemoveWhiteListed(address indexed user); pragma solidity ^0.8.0; function isWhiteListed(address _user) public view virtual returns (bool) { retur...
190,894
[ 1, 4625, 348, 7953, 560, 30, 225, 3497, 7523, 13706, 6835, 1220, 13706, 6835, 20948, 666, 434, 6138, 358, 10734, 632, 20392, 518, 903, 327, 1267, 434, 9578, 11591, 632, 2463, 638, 309, 729, 353, 9578, 12889, 471, 629, 309, 353, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 30233, 682, 353, 14223, 6914, 288, 203, 565, 2874, 12, 2867, 516, 1426, 13, 1071, 27859, 31, 203, 203, 565, 871, 1827, 13407, 682, 329, 12, 2867, 8808, 729, 16, 2254, 27859, 329, 2578, 1769, 203, 565, 871, 1827, 3288, 1340...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol"; /** * @dev This contract allows cross chain token transfers. * * There ...
* @dev setter @param _maxReleaseLimit new maxReleaseLimit/
function setMaxReleaseLimit(uint256 _maxReleaseLimit) public onlyOwner greaterThanZero(_maxReleaseLimit) { maxReleaseLimit = _maxReleaseLimit; }
12,961,010
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7794, 632, 891, 389, 1896, 7391, 3039, 565, 394, 943, 7391, 3039, 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, 10851, 7391, 3039, 12, 11890, 5034, 389, 1896, 7391, 3039, 13, 1071, 1338, 5541, 6802, 9516, 7170, 24899, 1896, 7391, 3039, 13, 288, 203, 3639, 943, 7391, 3039, 273, 389, 1896, 7391, 3039, 31, 203, 565, 289, 203, 203, 2...
./full_match/1/0x82Fa142E820C492cBA84245cD65d0443C9e9768E/sources/SHIBASWAP.sol
* @dev Wrappers over Solidity's arithmetic operations with added overflow checks. Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { .-. . .--.--.--. . .-.. . . .. .--. function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uin...
3,086,812
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4266, 10422, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 263, 17, 18, 263, 282, 263, 413, 18, 413, 18, 413, 18, 565, 263, 565, 263, 17, 838, 225, 263, 282, 263, 225, 6116, 565, 263, 413, 18, 7010, 203, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import { SafeMath } from "@openzeppelin/contracts/math/SafeMath.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { Address } from "@openzeppelin/contracts/utils/Address.sol"; import { Bo...
SPDX-License-Identifier: MIT
library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function lpToken(uint256 pid) external view returns (IERC20); function poolInfo(uint256 pid) external view returns (PoolInfo memory); function totalAllocPoint() external view returns (uint256); function de...
14,526,764
[ 1, 4625, 348, 7953, 560, 30, 225, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 2983, 288, 203, 202, 2867, 5381, 3492, 3584, 900, 67, 15140, 273, 1758, 12, 20, 92, 12648, 2787, 9449, 4449, 26, 42, 26, 73, 27, 5718, 42, 26, 71, 9222, 22, 73, 26, 71, 26, 74, 9599, 1769, 203, 203, 202, 915, 12423, ...
./full_match/80001/0x6e7840B9f96c010a34a2d7E2f4B862A1B0cF07b0/sources/contracts/hai_2.sol
* @dev Implementation of the basic standard multi-token. _Available since v3.1._/ Mapping from token ID to account balances Mapping from account to operator approvals Used as the URI for all token types by relying on ID substitution, e.g. https:token-cdn-domain/{id}.json
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; mapping (uint256 => mapping(address => uint256)) private _balances; mapping (address => mapping(address => bool)) private _operatorApprovals; string private _uri; } constructor (string memory uri_) {...
5,580,764
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 5337, 4529, 3309, 17, 2316, 18, 389, 5268, 3241, 331, 23, 18, 21, 6315, 19, 9408, 628, 1147, 1599, 358, 2236, 324, 26488, 9408, 628, 2236, 358, 3726, 6617, 4524, 10286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2499, 2539, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 2499, 2539, 16, 467, 654, 39, 2499, 2539, 2277, 3098, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 11890, 5034, 516, 2874, 12...
pragma solidity ^0.5.13; import { StakingAsset } from "./StakingAsset.sol"; import { AStakedToken } from "./AStakedToken.sol"; import { Registry } from "@trusttoken/registry/contracts/Registry.sol"; import { RegistrySubscriber } from "./RegistrySubscriber.sol"; /** * @title StakedToken * @dev Implementation of ASta...
* @dev configure this contract/
) external { require(!initalized, "already initalized StakedToken"); stakeAsset_ = _stakeAsset; rewardAsset_ = _rewardAsset; registry_ = _registry; liquidator_ = _liquidator; initialize(); initalized = true; }
1,010,816
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5068, 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, 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, 262, 3903, 288, 203, 3639, 2583, 12, 5, 2738, 287, 1235, 16, 315, 17583, 1208, 287, 1235, 934, 9477, 1345, 8863, 203, 3639, 384, 911, 6672, 67, 273, 389, 334, 911, 6672, 31, 203, 3639, 19890, 6672, 67, 273, 389, 266, 2913,...
/** *Submitted for verification at Etherscan.io on 2021-03-27 */ /** *Submitted for verification at Etherscan.io on 2021-03-19 */ // SPDX-License-Identifier: UNLICENSED // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP...
Safe raxowas transfer function, just in case if rounding error causes pool to not have enough raxowass.
function saferaxowasTransfer(address _to, uint256 _amount) internal { uint256 raxowasBal = raxowas.balanceOf(address(this)); if (_amount > raxowasBal) { raxowas.transfer(_to, raxowasBal); raxowas.transfer(_to, _amount); } }
15,186,399
[ 1, 4625, 348, 7953, 560, 30, 225, 14060, 767, 92, 543, 345, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 767, 92, 543, 428, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7864, 586, 651, 543, 345, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 767, 92, 543, 345, 38, 287, 273, 767, 92, 543, 345, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203...
pragma solidity 0.7.1; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among ot...
* @dev Initializes the contract setting the deployer as the initial owner./
function _onInitialize(address sender) internal initializer { _owner = sender; emit OwnershipTransferred(address(0), _owner); }
7,416,484
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 265, 7520, 12, 2867, 5793, 13, 2713, 12562, 288, 203, 203, 3639, 389, 8443, 273, 5793, 31, 203, 203, 3639, 3626, 14223, 9646, 5310, 1429, 4193, 12, 2867, 12, 20, 3631, 389, 8443, 1769, 203, 203, 565, 289, 203, 20...
pragma solidity ^0.5.17; contract CloneFactory { function createClone(address target) internal returns (address result) { bytes20 targetBytes = bytes20(target); assembly { let clone := mload(0x40) mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(...
chainId => collection address => nft id = this NFTs id required to determine if creation or minting needs to be performed
mapping(bytes => mapping ( address => mapping ( bytes => uint256 ) ) ) public bridged;
302,998
[ 1, 4625, 348, 7953, 560, 30, 225, 2687, 548, 516, 1849, 1758, 516, 290, 1222, 612, 273, 333, 423, 4464, 87, 612, 1931, 358, 4199, 309, 6710, 578, 312, 474, 310, 4260, 358, 506, 9591, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 6770, 12, 3890, 516, 2874, 261, 1758, 516, 2874, 261, 1731, 516, 2254, 5034, 262, 262, 262, 1071, 324, 1691, 2423, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.6.0; import "./Roles.sol"; import "./Renounceable.sol"; /** * @title TwoTiered * @author Alberto Cuesta Canada * @notice Implements a two-role Roles */ contract TwoTiered is Roles, Renounceable { bytes32 public constant ADMIN_ROLE_ID = "ADMIN"; bytes32 public constant USER_ROLE_ID = "US...
@dev Remove an account from the user role. Restricted to admins.
function removeUser(address account) public virtual onlyAdmin { _removeMember(account, USER_ROLE_ID); }
7,319,776
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 3581, 392, 2236, 628, 326, 729, 2478, 18, 29814, 358, 31116, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 1299, 12, 2867, 2236, 13, 1071, 5024, 1338, 4446, 288, 203, 3639, 389, 4479, 4419, 12, 4631, 16, 7443, 67, 16256, 67, 734, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSE pragma solidity ^0.8.0; import { DiamondLib } from "../lib/DiamondLib.sol"; import { IDiamondLoupe } from "../lib/interfaces/IDiamondLoupe.sol"; import { IERC165 } from "../lib/interfaces/IERC165.sol"; // The DiamondLoupeFacet contract // // This contract keeps track of all the...
@notice Gets all the function selectors supported by a specific facet. @param _facet The facet address. @return _facetFunctionSelectors The selectors associated with a facet address. loop through function selectors Set the number of selectors in the array
function facetFunctionSelectors(address _facet) external override view returns (bytes4[] memory _facetFunctionSelectors) { DiamondLib.DiamondStorage storage ds = DiamondLib.diamondStorage(); uint256 numSelectors; _facetFunctionSelectors = new bytes4[](ds.selectorCount); uint256 selectorIndex; for (uint256 sl...
13,664,167
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11881, 777, 326, 445, 11424, 3260, 635, 279, 2923, 11082, 18, 632, 891, 389, 21568, 1021, 11082, 1758, 18, 632, 2463, 389, 21568, 2083, 19277, 1021, 11424, 3627, 598, 279, 11082, 1758, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 11082, 2083, 19277, 12, 2867, 389, 21568, 13, 3903, 3849, 1476, 1135, 261, 3890, 24, 8526, 3778, 389, 21568, 2083, 19277, 13, 288, 203, 202, 202, 14521, 301, 1434, 5664, 18, 14521, 301, 1434, 3245, 2502, 3780, 273, 12508,...
./full_match/80001/0x24f51617c1ad2120CCd1c238AED2f770A772630E/sources/src/AllowListDrop.sol
@notice Getter for metadataRenderer contract
function metadataRenderer() external view returns (IAllowListMetadataRenderer) { return IAllowListMetadataRenderer(config.metadataRenderer); }
851,129
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 387, 364, 1982, 6747, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1982, 6747, 1435, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 45, 7009, 682, 2277, 6747, 13, 203, 565, 288, 203, 3639, 327, 467, 7009, 682, 2277, 6747, 12, 1425, 18, 4165, 6747, 1769, 203, 565, 289, 203, 2...
./full_match/1/0xc258fF338322b6852C281936D4EdEff8AdfF23eE/sources/src/EuclideanFarm.sol
Instances Constant for various precisions Time tracking Lock time and multiplier settings Coordination multipliers uint256 public lastRatioUpdate; uint256 public min_cooldown = 21 days; uint256 public min_ratio_distance = 0.5e18;there is only one lockTime - needs to be equal to shanghaiTime Reward addresses, rates, an...
contract EuclideanFarm is Owned, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public stakingToken; uint256 private constant MULTIPLIER_PRECISION = 1e18; uint256 public periodFinish; uint256 public lastUpdateTime; uint256 public max_cord_multipli...
4,833,060
[ 1, 4625, 348, 7953, 560, 30, 225, 18357, 10551, 364, 11191, 13382, 12682, 2647, 11093, 3488, 813, 471, 15027, 1947, 10320, 1735, 3309, 8127, 414, 2254, 5034, 1071, 1142, 8541, 1891, 31, 2254, 5034, 1071, 1131, 67, 71, 1371, 2378, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 22392, 42, 4610, 353, 14223, 11748, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 203, 203, 565, 467,...
./full_match/1/0xBC9934df96EeACF5B86F7070E8A60CA5665cd2E9/sources/contracts/YukonToken.sol
CHANGEME - Uniswap LP pair address
excludedFromDividends[0xAca52998a3CBA700Cd9D1F344d9FDfba3eB10Ac9] = true;
3,047,289
[ 1, 4625, 348, 7953, 560, 30, 26267, 958, 300, 1351, 291, 91, 438, 511, 52, 3082, 1758, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 8845, 1265, 7244, 350, 5839, 63, 20, 21703, 5353, 9401, 2733, 28, 69, 23, 8876, 37, 26874, 19728, 29, 40, 21, 42, 5026, 24, 72, 29, 16894, 74, 12124, 23, 73, 38, 2163, 9988, 29, 65, 273, 638, 31, 225, 2, -100, -100, -...
/*** ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▓▓ ...
address payable public devAddress; Anti-bot and anti-whale mappings and variables these values are pretty much arbitrary since they get overwritten for every txn, but the placeholders make it easier to work with current contract.bool private gasLimitActive = false; Changing this to false to facilitate smoother launches...
contract CheemsBurglar is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; address payable public marketingAddress; address payable public liquidityAddress; mapping(address => uint256) private _rOwned; mapping(address => uint256) private _tOwned; ...
10,887,807
[ 1, 4625, 348, 7953, 560, 30, 1758, 8843, 429, 1071, 4461, 1887, 31, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4259, 924, 854, 7517, 9816, 11078, 3241, 2898, 336, 15345, 364, 3614, 7827, 16, 1496, 326, 12150, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22682, 7424, 38, 295, 7043, 297, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 1758, 8843, 429, 1071, 13667,...
./partial_match/1/0x3e9a668D590B92256bb8D926b147f310791b2B1E/sources/TimeCapsuleFactory.sol
NOT AN ADMIN KEY -- Only used to allow contract creator to airdrop free capsules (promotional)
address private founder;
3,576,034
[ 1, 4625, 348, 7953, 560, 30, 225, 4269, 8175, 25969, 5311, 1493, 5098, 1399, 358, 1699, 6835, 11784, 358, 279, 6909, 1764, 4843, 15788, 1513, 261, 17401, 8240, 287, 13, 203, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 284, 465, 765, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; //----------------------------------------------------------------------------- /// @title TOY Ownership /// @notice defines TOY Token ownership-tracking structures and view functions. //----------------------------------------------------------------------------- contract ToyOwnership {...
------------------------------------------------------------------------- @notice Withdraw Ether from approved TOY Token to TOY Token's owner @dev Throws if Ether to withdraw is zero. Throws if sender is not an approved operator for TOY Token #`_fromUid`. Throws if TOY Token #`_fromUid` has insufficient balance to wi...
function withdrawEther( uint _fromUid, uint _amount ) external canOperate(_fromUid) notZero(_amount) { require ( externalTokenBalances[address(this)][_fromUid] >= _amount, "Insufficient Ether to withdraw" ); externalTokenBalances[address(this)][_f...
935,254
[ 1, 4625, 348, 7953, 560, 30, 8879, 788, 632, 20392, 3423, 9446, 512, 1136, 628, 20412, 8493, 61, 3155, 358, 8493, 61, 3155, 1807, 3410, 632, 5206, 22435, 309, 512, 1136, 358, 598, 9446, 353, 3634, 18, 22435, 309, 5793, 353, 486, 392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 598, 9446, 41, 1136, 12, 203, 3639, 2254, 389, 2080, 11994, 16, 7010, 3639, 2254, 389, 8949, 203, 565, 262, 3903, 848, 3542, 340, 24899, 2080, 11994, 13, 486, 7170, 24899, 8949, 13, 288, 203, 3639, 2583, 261, 203, 5411,...
./full_match/4/0x2eCBe30EdccDeF3e4D0535658Ac0cc0E9a8c0aFD/sources/contracts/utils/LiquidityTree.sol
* @dev push changes from last "lazy update" down to leaf @param node - last node from lazy update @param begin - leaf search start @param end - leaf search end @param leaf - last node to update @param updateId_ update number/ if node is leaf, stop
function push( uint48 node, uint48 begin, uint48 end, uint48 leaf, uint64 updateId_ ) internal { if (node == leaf) { return; } uint48 lChild = node * 2; uint48 rChild = node * 2 + 1; uint128 amount = treeNode[node].amoun...
752,291
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1817, 3478, 628, 1142, 315, 15998, 1089, 6, 2588, 358, 7839, 632, 891, 756, 300, 1142, 756, 628, 7962, 1089, 632, 891, 2376, 300, 7839, 1623, 787, 632, 891, 679, 300, 7839, 1623, 679, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1817, 12, 203, 3639, 2254, 8875, 756, 16, 203, 3639, 2254, 8875, 2376, 16, 203, 3639, 2254, 8875, 679, 16, 203, 3639, 2254, 8875, 7839, 16, 203, 3639, 2254, 1105, 1089, 548, 67, 203, 565, 262, 2713, 288, 203, 3639, 30...
//SPDX-License-Identifier: MIT pragma solidity 0.6.12; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import "./IContributorsVault.sol"; import...
Stake WASABI tokens to MasterChef
function enterStaking(uint256 _amount) public { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[0][msg.sender]; updatePool(0); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accWasabiPerShare).div(1e12).sub(user.rewardDebt); ...
12,814,038
[ 1, 4625, 348, 7953, 560, 30, 225, 934, 911, 678, 3033, 2090, 45, 2430, 358, 13453, 39, 580, 74, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6103, 510, 6159, 12, 11890, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 20, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 20, 6362, 3576, 18, 15330, 15533, 203, 3639, 1089...
pragma solidity >=0.8.0 <0.9.0; //SPDX-License-Identifier: MIT import "hardhat/console.sol"; //import "@openzeppelin/contracts/access/Ownable.sol"; //https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol contract Staker { //event SetPurpose(address sender, string purpose);...
event SetPurpose(address sender, string purpose);
contract Staker { mapping (address => uint256) public balances; uint256 public constant THRESHOLD = 1 ether; constructor() { } function setPurpose(string memory newPurpose) public { purpose = newPurpose; console.log(msg.sender,"set purpose to",purpose); } }
6,354,971
[ 1, 4625, 348, 7953, 560, 30, 871, 1000, 10262, 4150, 12, 2867, 5793, 16, 533, 13115, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 934, 6388, 288, 203, 203, 203, 225, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 324, 26488, 31, 203, 225, 2254, 5034, 1071, 5381, 7662, 20798, 273, 404, 225, 2437, 31, 203, 203, 203, 203, 203, 225, 3885, 1435, 288, 203, ...
pragma solidity 0.4.25; // <ORACLIZE_API> /* Copyright (c) 2015-2016 Oraclize SRL Copyright (c) 2016 Oraclize LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, i...
* @dev calcu three numbers sum @param _numbers result numbers/
function sum(uint8[3] _numbers) public pure returns(uint8){ return uint8(_numbers[0].add(_numbers[1]).add(_numbers[2])); }
942,942
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1443, 6319, 8925, 5600, 2142, 632, 891, 389, 13851, 563, 5600, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2142, 12, 11890, 28, 63, 23, 65, 389, 13851, 13, 1071, 16618, 1135, 12, 11890, 28, 15329, 203, 3639, 327, 2254, 28, 24899, 13851, 63, 20, 8009, 1289, 24899, 13851, 63, 21, 65, 2934, 1289, 24899, 13851, 63, 22, 5717, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface INFT { function mintBatch( address _to, uint256 _amount) external returns (uint256 fromId, uint256 toId); } // File: Rabbits-NFT/IRoyaltyDistributor.sol pragma solidity ^0.8.0; interface IRoyaltyDistributor { function getRo...
* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20...
library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value } ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, ...
218,886
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14060, 654, 39, 3462, 632, 5206, 4266, 10422, 6740, 4232, 39, 3462, 5295, 716, 604, 603, 5166, 261, 13723, 326, 1147, 6835, 1135, 629, 2934, 13899, 716, 327, 1158, 460, 261, 464, 3560, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 654, 39, 3462, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 445, 4183, 5912, 12, 203, 3639, 467, 654, 39, 3462, 1147, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 460, 203, 97, 203, 203, 203, ...
pragma solidity ^0.5.7; import "./Identity.sol"; import "../../openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol"; import "../../openzeppelin-solidity/contracts/token/ERC20/ERC20Detailed.sol"; import "./UniformTokenGrantor.sol"; /** * @dev An ERC20 implementation of the Dyncoin Proxy Token. All tokens ar...
* @dev An ERC20 implementation of the Dyncoin Proxy Token. All tokens are initially pre-assigned to the creator, and can later be distributed freely using transfer transferFrom and other ERC20 functions./
contract ProxyToken is Identity, ERC20, ERC20Pausable, ERC20Burnable, ERC20Detailed, UniformTokenGrantor { uint32 public constant VERSION = 6; uint8 private constant DECIMALS = 18; uint256 private constant TOKEN_WEI = 10 ** uint256(DECIMALS); uint256 private constant INITIAL_WHOLE_TOKENS = uint256(5 *...
5,414,870
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1922, 4232, 39, 3462, 4471, 434, 326, 463, 1209, 885, 7659, 3155, 18, 4826, 2430, 854, 22458, 675, 17, 15938, 358, 326, 11784, 16, 471, 848, 5137, 506, 16859, 22010, 2357, 1450, 7412, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7659, 1345, 353, 7808, 16, 4232, 39, 3462, 16, 4232, 39, 3462, 16507, 16665, 16, 4232, 39, 3462, 38, 321, 429, 16, 4232, 39, 3462, 40, 6372, 16, 1351, 6854, 1345, 9021, 280, 288, 203, 565, 2254, 1578, 1071, 5381, 8456, 2...
pragma solidity ^0.4.17; import "./Factory.sol"; import "./ProcedureTable.sol"; contract CapabilityManager is ProcedureTable { // CAPABILITY_TYPES uint8 constant CAP_PROC_CALL = 3; uint8 constant CAP_PROC_REGISTER = 4; uint8 constant CAP_PROC_DELETE = 5; uint8 constant ...
Check that all of the topics required by the cap are satisfied. That is, for every topic in the capability, the corresponding exists in the system call and is set to that exact value. First we check that there are enough topics in the request. The system call specifies an insufficient number of topics
if (reqTopics.length < nTopics) { return false; }
2,499,338
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 716, 777, 434, 326, 11204, 1931, 635, 326, 3523, 854, 18958, 18, 12466, 353, 16, 364, 3614, 3958, 316, 326, 12593, 16, 326, 4656, 1704, 316, 326, 2619, 745, 471, 353, 444, 358, 716, 5565, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 309, 261, 3658, 17477, 18, 2469, 411, 290, 17477, 13, 288, 203, 5411, 327, 629, 31, 203, 3639, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// File: @airswap/types/contracts/Types.sol /* Copyright 2019 Swap Holdings Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless re...
Address of the wallet used to sign
address signer;
1,778,067
[ 1, 4625, 348, 7953, 560, 30, 225, 5267, 434, 326, 9230, 1399, 358, 1573, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 10363, 31, 3639, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.5.15; ...
inject NONSTANDARD NAMING
function MAXSCALINGFACTOR640() external view returns (uint256) {
12,794,149
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4552, 2312, 1013, 1360, 26835, 1105, 20, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/43113/0x34eB4878df1C2AD412421292048d270a27Baf1F3/sources/AttentionSeekerNFT.sol
@dev Contains Id of all seekers. @dev mapping from seekerId => index of m_allSeekers.
) AttentionSeekerToken(name, symbol, contractURI, tokenURIPrefix) { emit CreateERC1155_v1(msg.sender, name, symbol); c_MembershipToken = membershipToken; }
7,137,122
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 8398, 3124, 434, 777, 6520, 414, 18, 632, 5206, 2874, 628, 6520, 264, 548, 516, 770, 434, 312, 67, 454, 16134, 414, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 262, 6020, 5054, 31691, 1345, 12, 529, 16, 3273, 16, 6835, 3098, 16, 1147, 3098, 2244, 13, 288, 203, 203, 3639, 3626, 1788, 654, 39, 2499, 2539, 67, 90, 21, 12, 3576, 18, 15330, 16, 508, 16, 3273, 1769, 203, 203, 3639, ...
pragma solidity ^0.4.22; import "oraclize"; contract Investor is usingOraclize{ string[] service = ["github","twitter","linkedin","accreditation"]; // change with uint for performance mapping (string => uint) scores; bool eResident; mapping (bytes32 => bytes32) expectedId; mapping (bytes32 => bool) isVeri...
change with uint for performance
string[] service = ["github","twitter","linkedin","accreditation"];
6,400,178
[ 1, 4625, 348, 7953, 560, 30, 225, 2549, 598, 2254, 364, 9239, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 533, 8526, 1156, 273, 8247, 6662, 15937, 19406, 15937, 17738, 267, 15937, 8981, 1118, 8773, 11929, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.24; /** * * ........... ........... * ..... t... * TT.. ..T. * TUx. .TT * ...
* @dev Update the finish time. each token will increase 30 seconds, up to 24 hours/
function updateFinishTime(uint256 _tokenAmount) private { uint256 _timeDelta = _tokenAmount.div(ONE_TOKEN).mul(TIME_DURATION_INCREASE); uint256 _finishTime = finishTime.add(_timeDelta); uint256 _maxTime = now.add(TIME_DURATION_MAX); finishTime = _finishTime <= _maxTime ? _finishTime ...
10,736,403
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2315, 326, 4076, 813, 18, 1517, 1147, 903, 10929, 5196, 3974, 16, 731, 358, 4248, 7507, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 11641, 950, 12, 11890, 5034, 389, 2316, 6275, 13, 3238, 288, 203, 3639, 2254, 5034, 389, 957, 9242, 273, 389, 2316, 6275, 18, 2892, 12, 5998, 67, 8412, 2934, 16411, 12, 4684, 67, 24951, 67, 706, 5458, 4429, 1769, ...
./partial_match/1/0xB390595C54C8b0A10AFd4700c1456ad404298fe7/sources/BlendETH.sol
count total refrrla money also
referralTotalAmountsUSDC[_refferal] += PerReferral;
16,151,565
[ 1, 4625, 348, 7953, 560, 30, 1056, 2078, 1278, 523, 11821, 15601, 2546, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 540, 1278, 29084, 5269, 6275, 87, 3378, 5528, 63, 67, 1734, 586, 287, 65, 1011, 5722, 1957, 29084, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // Import the library 'Roles' import "./Roles.sol"; // Define a contract 'PharmacistRole' to manage this role - add, remove, check contract PharmacistRole { using Roles for Roles.Role; // Define 2 events, one for Adding, and other for Removing event PharmacistAdded(address indexed acco...
Define a function 'isPharmacist' to check this role
function isPharmacist(address account) public view returns (bool) { return Roles.has(pharmacists, account); }
6,397,176
[ 1, 4625, 348, 7953, 560, 30, 225, 13184, 279, 445, 296, 291, 3731, 4610, 1077, 376, 11, 358, 866, 333, 2478, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 3731, 4610, 1077, 376, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 19576, 18, 5332, 12, 844, 4610, 1077, 1486, 16, 2236, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100...
./full_match/1/0xd8b132A0abA610D0AaA18716A2b26e14141f112C/sources/contracts/peer-to-peer/DataTypesPeerToPeer.sol
token addresse token amounts
struct WrappedERC20TokenInfo { address tokenAddr; uint256 tokenAmount; }
17,175,915
[ 1, 4625, 348, 7953, 560, 30, 225, 1147, 527, 7613, 1147, 30980, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 24506, 654, 39, 3462, 1345, 966, 288, 203, 3639, 1758, 1147, 3178, 31, 203, 3639, 2254, 5034, 1147, 6275, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/utils/math/Math.sol"; import "./interfaces/IOverlayV1Factory.sol"; import "./interfaces/IOverlayV1Market.sol"; import "./interfaces/IOverlayV1Token.sol"; import "./interfaces/feeds/IOverlayV1Feed.sol"; import "./libraries/FixedPo...
@dev sanity check on data fetched from oracle in case of manipulation @dev rough check that log price bounded by +/- priceDriftUpperLimit * dt @dev when comparing priceMacro(now) vs priceMacro(now - macroWindow) upper and lower limits are e**(+/- priceDriftUpperLimit * dt) compare current price over macro window vs pr...
function dataIsValid(Oracle.Data memory data) public view returns (bool) { uint256 _dpUpperLimit = dpUpperLimit; uint256 _dpLowerLimit = ONE.divDown(_dpUpperLimit); uint256 priceNow = data.priceOverMacroWindow; uint256 priceLast = data.priceOneMacroWindowAgo; if (priceLast =...
14,060,234
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 16267, 866, 603, 501, 12807, 628, 20865, 316, 648, 434, 27029, 632, 5206, 23909, 866, 716, 613, 6205, 28079, 635, 397, 19, 17, 6205, 27885, 5988, 3039, 380, 3681, 632, 5206, 1347, 17553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 501, 20536, 12, 23601, 18, 751, 3778, 501, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 389, 9295, 5988, 3039, 273, 9986, 5988, 3039, 31, 203, 3639, 2254, 5034, 389, 9295, 4070, 3039, 273, 15623, 18,...
./partial_match/1/0xE50D1b7dc3Ac3702caBaDB48E59F4b0aaF99DA14/sources/Utcoin.sol
PullPayment Base contract supporting async send for pull payments. Inherit from this contract and use asyncSend instead of send./
contract PullPayment { using SafeMath for uint; mapping(address => uint) public payments; event LogRefundETH(address to, uint value); function asyncSend(address dest, uint amount) internal { payments[dest] = payments[dest].add(amount); } function withdrawPayments() { address payee = msg.sender; ...
15,967,071
[ 1, 4625, 348, 7953, 560, 30, 225, 14899, 6032, 3360, 6835, 22930, 4326, 1366, 364, 6892, 25754, 18, 25953, 628, 333, 6835, 471, 999, 4326, 3826, 3560, 434, 1366, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14899, 6032, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 225, 2874, 12, 2867, 516, 2254, 13, 1071, 25754, 31, 203, 225, 871, 1827, 21537, 1584, 44, 12, 2867, 358, 16, 2254, 460, 1769, 203, 225, 445, 4326, ...
./full_match/7700/0x9B2a63F27661A468E2da22226b64A4914144f195/sources/contracts/libraries/CurveMath.sol
@notice Calculates the change to quote token reserves associated with a price move along an AMM curve of constant liquidity. @dev Result is almost always within a fixed-point precision unit from the true real value. However in certain rare cases, the result could be up to 2 wei below the true mathematical value....
function deltaQuote (uint128 liq, uint128 price, uint128 limitPrice) internal pure returns (uint128) { if (limitPrice > price) { return calcQuoteDelta(liq, limitPrice, price); return calcQuoteDelta(liq, price, limitPrice); } }
4,651,646
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 26128, 326, 2549, 358, 3862, 1147, 400, 264, 3324, 3627, 598, 279, 6205, 282, 3635, 7563, 392, 432, 8206, 8882, 434, 5381, 4501, 372, 24237, 18, 632, 5206, 3438, 353, 23889, 3712, 3470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3622, 10257, 261, 11890, 10392, 4501, 85, 16, 2254, 10392, 6205, 16, 2254, 10392, 1800, 5147, 13, 203, 3639, 2713, 16618, 1135, 261, 11890, 10392, 13, 288, 203, 3639, 309, 261, 3595, 5147, 405, 6205, 13, 288, 203, 5411, ...
./full_match/43113/0x6dEc09598f16ad84fF6b61AFcd21e361D510a476/sources/ETHP_flat_flat.sol
IBEP20 EP = IBEP20(0x49D5c2BdFfac6CE2BFdB6640F4F80f226bc10bAB); address WAVAX = 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7;
address WAVAX =0x4C1b0c8721a49351DbB559B2D017ab0CE47280B3;
7,194,875
[ 1, 4625, 348, 7953, 560, 30, 225, 467, 5948, 52, 3462, 24067, 273, 467, 5948, 52, 3462, 12, 20, 92, 7616, 40, 25, 71, 22, 38, 72, 42, 11639, 26, 1441, 22, 15259, 72, 38, 26, 1105, 20, 42, 24, 42, 3672, 74, 3787, 26, 13459, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 282, 1758, 678, 5856, 2501, 273, 20, 92, 24, 39, 21, 70, 20, 71, 11035, 5340, 69, 7616, 4763, 21, 4331, 38, 2539, 29, 38, 22, 40, 1611, 27, 378, 20, 1441, 24, 9060, 3672, 38, 23, 31, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/3/0xE333bacb250b1aDC74074d4DBf13662c6Bd96172/sources/GoldenGoose.sol
* @dev check lock status of all transfers @return lock status/
function getAllTransfersLockStatus() external view returns (bool) { return _lockStatus; }
5,077,809
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 866, 2176, 1267, 434, 777, 29375, 632, 2463, 2176, 1267, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5514, 1429, 18881, 2531, 1482, 1435, 3903, 1476, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 327, 389, 739, 1482, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
//SPDX-License-Identifier: ISC pragma solidity 0.7.6; pragma experimental ABIEncoderV2; // Inherited import "./openzeppelin-l2/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IOptionToken.sol"; /** * @title OptionToken * @author Lyra * @dev Provides a tokenised representatio...
* @dev Initialise the contract. @param _optionMarket The OptionMarket contract address./
function init(address _optionMarket) external { require(!initialized, "contract already initialized"); optionMarket = _optionMarket; initialized = true; }
5,460,305
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 31739, 326, 6835, 18, 632, 891, 389, 3482, 3882, 278, 1021, 2698, 3882, 278, 6835, 1758, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1208, 12, 2867, 389, 3482, 3882, 278, 13, 3903, 288, 203, 565, 2583, 12, 5, 13227, 16, 315, 16351, 1818, 6454, 8863, 203, 565, 1456, 3882, 278, 273, 389, 3482, 3882, 278, 31, 203, 565, 6454, 273, 638, 31, 203, 225, ...
./full_match/5/0x7A78E149C05b4Dfaec811B70A3801b45B34F32Cb/sources/contracts/DigitalCowriesToken_flattened.sol
Marketing fee percentage (3%)
uint256 private constant _marketingFeePercentage = 3;
1,861,689
[ 1, 4625, 348, 7953, 560, 30, 225, 6622, 21747, 14036, 11622, 261, 23, 9, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 5381, 389, 3355, 21747, 14667, 16397, 273, 890, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Utils { // 判断一个address是否为协约地址 function isContract(address addr) public view returns (bool) { uint size; assembly { size := extcodesize(addr) } return size > 0; } function encodeMessagep3(address to, u...
bytes_all = bytes_1 + bytes_2 连接 Get a location of some free memory and store it in tempBytes as Solidity does for memory variables. Store the length of the first bytes array at the beginning of the memory for tempBytes. Maintain a memory counter for the current write location in the temp bytes array by adding the 32 ...
function bytesConcat( bytes memory _preBytes, bytes memory _postBytes ) public pure returns (bytes memory) { bytes memory tempBytes; assembly { tempBytes := mload(0x40) let length := mload(_preBytes) mstore(tempByt...
12,877,295
[ 1, 4625, 348, 7953, 560, 30, 225, 1731, 67, 454, 273, 1731, 67, 21, 397, 1731, 67, 22, 225, 169, 128, 257, 167, 241, 103, 968, 279, 2117, 434, 2690, 4843, 3778, 471, 1707, 518, 316, 1906, 2160, 487, 348, 7953, 560, 1552, 364, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1731, 15113, 12, 203, 3639, 1731, 3778, 389, 1484, 2160, 16, 203, 3639, 1731, 3778, 389, 2767, 2160, 203, 565, 262, 203, 3639, 1071, 203, 3639, 16618, 203, 3639, 1135, 261, 3890, 3778, 13, 203, 565, 288, 203, 3639, 1731...
./partial_match/1/0xaA1a15De535B2628E5FCfCa9C84Af6e42c44D108/sources/SecurityTokenProxy.sol
* @title Interface for the Polymath Security Token Registry contract/ Emit when network becomes paused Emit when network becomes unpaused Emit when the ticker is removed from the registry Emit when the token ticker expiry is changed Emit when changeSecurityLaunchFee is called Emit when changeTickerRegistrationFee is ca...
interface ISecurityTokenRegistry { event Pause(address account); event Unpause(address account); event TickerRemoved(string _ticker, address _removedBy); event ChangeExpiryLimit(uint256 _oldExpiry, uint256 _newExpiry); event ChangeSecurityLaunchFee(uint256 _oldFee, uint256 _newFee); event Chang...
16,181,876
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6682, 364, 326, 6730, 2942, 421, 6036, 3155, 5438, 6835, 19, 16008, 1347, 2483, 12724, 17781, 16008, 1347, 2483, 12724, 640, 8774, 3668, 16008, 1347, 326, 14063, 353, 3723, 628, 326, 4023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 4368, 1345, 4243, 288, 203, 203, 565, 871, 31357, 12, 2867, 2236, 1769, 203, 565, 871, 1351, 19476, 12, 2867, 2236, 1769, 203, 565, 871, 399, 5448, 10026, 12, 1080, 389, 88, 5448, 16, 1758, 389, 14923, 858, 1769, 203, ...
pragma solidity >0.4.24 <0.6.0; import "browser/ERC777Flat.sol"; import "browser/PolyRegisterClient.sol"; import "browser/ERC1820Client.sol"; import "browser/PolyToken.sol"; import "browser/auctionInterface.sol"; import "browser/ERC721Full.sol"; contract AuctionRegulator is IERC777Recipient, IERC777Sender, IERC...
note this contract must be approved
function sendTokensERC721 (uint tokenId, address tokenContract, address sender, address recipient) public { ERC721Full(tokenContract).safeTransferFrom(sender, recipient, tokenId); }
15,883,003
[ 1, 4625, 348, 7953, 560, 30, 4721, 333, 6835, 1297, 506, 20412, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 915, 1366, 5157, 654, 39, 27, 5340, 261, 11890, 1147, 548, 16, 225, 1758, 1147, 8924, 16, 1758, 5793, 16, 1758, 8027, 13, 1071, 288, 203, 565, 4232, 39, 27, 5340, 5080, 12, 2316, 8924, 2934, 4626, 5912, 1265, 12, 15330, 16, 802...
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "./lib/Ownable.sol"; import "./lib/Pausable.sol"; import "./erc/ERC721Enumerable.sol"; import "./IDegens.sol"; import "./IFortress.sol"; import "./ITraits.sol"; import "./IGains.sol"; contract Degens is IDegens, ERC721Enumerable, Ownable, Pausabl...
Hardcode the fortress's approval so that users don't have to waste gas approving
function transferFrom( address from, address to, uint256 tokenId ) public virtual override(IERC721, ERC721) { if (_msgSender() != address(fortress)) require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _trans...
6,855,760
[ 1, 4625, 348, 7953, 560, 30, 225, 670, 1060, 710, 326, 364, 88, 663, 1807, 23556, 1427, 716, 3677, 2727, 1404, 1240, 358, 341, 14725, 16189, 6617, 6282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 1071, 5024, 3849, 12, 45, 654, 39, 27, 5340, 16, 4232, 39, 27, 5340, 13, 288, 203, 3639, 309, 261,...
./full_match/4/0x926B5bFB2990208A9F57884aA0De0b728d5b54bC/sources/contracts/ERC721.sol
* @dev Add a value to a set. O(1). Returns true if the value was added to the set, that is if it was not already present./
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); }
13,338,192
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 279, 460, 358, 279, 444, 18, 531, 12, 21, 2934, 2860, 638, 309, 326, 460, 1703, 3096, 358, 326, 444, 16, 716, 353, 309, 518, 1703, 486, 1818, 3430, 18, 19, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 915, 527, 12, 2160, 1578, 694, 2502, 444, 16, 1731, 1578, 460, 13, 2713, 1135, 261, 6430, 13, 288, 203, 202, 202, 2463, 389, 1289, 12, 542, 6315, 7872, 16, 460, 1769, 203, 202, 97, 203, 2, -100, -100, -100, -100, -100, -...
pragma solidity ^0.7.0; import "./../dependencies/erc-1155/contracts/SafeMath.sol"; import "./../dependencies/openzeppelin-contracts/contracts/cryptography/ECDSA.sol"; import "./Commons.sol"; import "./ClaimCommons.sol"; import "./ClaimVerifier.sol"; import "./IdentityContract.sol"; library IdentityContractLib { ...
address(this) needs to be part of the struct so that the tx cannot be replayed to a different IDC owned by the same EOA.
function execute(address owner, uint256 _executionNonce, uint256 _operationType, address _to, uint256 _value, bytes calldata _data, bytes calldata _signature) external { address signer = ECDSA.recover(keccak256(abi.encodePacked(_operationType, _to, _value, _data, address(this), _executionNonce)), _signature...
13,111,651
[ 1, 4625, 348, 7953, 560, 30, 225, 1758, 12, 2211, 13, 4260, 358, 506, 1087, 434, 326, 1958, 1427, 716, 326, 2229, 2780, 506, 16033, 329, 358, 279, 3775, 1599, 39, 16199, 635, 326, 1967, 512, 28202, 18, 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, 1836, 12, 2867, 3410, 16, 2254, 5034, 389, 16414, 13611, 16, 2254, 5034, 389, 7624, 559, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 16, 1731, 745, 892, 389, 892, 16, 1731, 745, 892, 389, 8195, 13, 3903, 288, 203, ...
/** *Submitted for verification at Etherscan.io on 2021-06-11 */ // Dependency file: @chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol // SPDX-License-Identifier: MIT // pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operat...
* Set the Pool Config, initializes an instance of and start the pool. @param _feeRecipient Number of winners in the pool/
function setFeeRecipient(address _feeRecipient) external onlyOwner { require(_feeRecipient != address(0), "Invalid address"); feeRecipient = _feeRecipient; emit FeeRecipientSet(feeRecipient); }
2,153,257
[ 1, 4625, 348, 7953, 560, 30, 380, 1000, 326, 8828, 1903, 16, 11643, 392, 791, 434, 471, 787, 326, 2845, 18, 632, 891, 389, 21386, 18241, 540, 3588, 434, 5657, 9646, 316, 326, 2845, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 14667, 18241, 12, 2867, 389, 21386, 18241, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 21386, 18241, 480, 1758, 12, 20, 3631, 315, 1941, 1758, 8863, 203, 3639, 14036, 18241, 273, 389, 21386, 18241, 31, 203, 20...
./partial_match/1/0x95e10B1793d8fA99C43990f47b1C6022861045A9/sources/Presale.sol
@dev ERC20 token address and decimals@dev amount of tokens per ether 100 indicates 1 token per eth@dev decimal for tokenRatePerEth,2 means if you want 100 tokens per eth then set the rate as 100 + number of rateDecimals i.e => 10000
contract Presale is Owned { using SafeMath for uint256; bool public isPresaleOpen; address public tokenAddress; uint256 public tokenDecimals = 18; uint256 public tokenRatePerEth = 4_00; uint256 public rateDecimals = 2; uint256 public minEthLimit = 100 finney; uint256 ...
2,876,920
[ 1, 4625, 348, 7953, 560, 30, 632, 5206, 4232, 39, 3462, 1147, 1758, 471, 15105, 36, 5206, 3844, 434, 2430, 1534, 225, 2437, 2130, 8527, 404, 1147, 1534, 13750, 36, 5206, 6970, 364, 1147, 4727, 2173, 41, 451, 16, 22, 4696, 309, 1846,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18346, 5349, 353, 14223, 11748, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1426, 1071, 353, 12236, 5349, 3678, 31, 203, 377, 203, 565, 1758, 1071, 1147, 1887, 31, 203, 565, 2254, 5034, 1071, 1147, 3180...
//v1.0.14 //License: Apache2.0 pragma solidity ^0.4.21; library IexecLib { /***************************************************************************/ /* Market Order */ /***************************************************************************/ enum M...
* Reputation for PoCo/
mapping(address => uint256) public m_scores;
1,581,888
[ 1, 4625, 348, 7953, 560, 30, 380, 868, 458, 367, 364, 453, 83, 4249, 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, 202, 6770, 12, 2867, 516, 2254, 5034, 13, 225, 1071, 312, 67, 12630, 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, ...
./full_match/42/0xCaAb46789dAE11436c815b995a1CFBeB221C0985/sources/contracts/userProxy/UserProxy.sol
* @dev Access control and ownership management./
modifier onlyOwner() { require(owner == msg.sender, "UserProxy: not the owner"); _; }
16,215,971
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5016, 3325, 471, 23178, 11803, 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, 9606, 1338, 5541, 1435, 288, 203, 3639, 2583, 12, 8443, 422, 1234, 18, 15330, 16, 315, 1299, 3886, 30, 486, 326, 3410, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
/* Introducing "STAKE THEM ALL" Version 1.0 "STAKE THEM ALL" is playable @ https://stakethemall.io (Ethereum Edition) and https://trx.stakethemall.io (TRON Edition) About the game : "STAKE THEM ALL" IS A FUN AND REWARDING PHYSICS GAME RUNNING ON THE BLOCKCHAIN HAVE FUN WHILE PARTICIPATING TO THE HDX20 TOKEN ...
we need to validate the score before buying a torpedo batch
function CoreBuyMode2( address _player_address , uint256 eth , address _referrer_address , GameVar_s gamevar) private { PlayerData_s storage _PlayerData = PlayerData[ _player_address]; if (gamevar.BatchID !=0 || _PlayerData.mode2BatchID !=0) { coreValidMode2...
15,787,564
[ 1, 4625, 348, 7953, 560, 30, 732, 1608, 358, 1954, 326, 4462, 1865, 30143, 310, 279, 8934, 1845, 83, 2581, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4586, 38, 9835, 2309, 22, 12, 1758, 389, 14872, 67, 2867, 269, 2254, 5034, 13750, 269, 225, 1758, 389, 1734, 11110, 67, 2867, 269, 14121, 1537, 67, 87, 7920, 1401, 13, 3238, 203, 565, 288, 203, 377, 203, 3639, 19185, ...
./full_match/4/0x55A4fb9102D7ed72ffb3c716ceF9B278fb14fa00/sources/contracts/testHorsee.sol
uint256 public cost = 0.025 ether;uint256 public maxSupply = 4096 ;uint256 public maxMintAmount = 4095;
contract NFTHorses is ERC1155, Ownable, ContextMixin { string baseURI; string public baseExtension= ". json"; string public name = "Test Horses"; }
657,175
[ 1, 4625, 348, 7953, 560, 30, 2254, 5034, 1071, 6991, 273, 374, 18, 20, 2947, 225, 2437, 31, 11890, 5034, 1071, 943, 3088, 1283, 273, 16797, 274, 11890, 5034, 1071, 943, 49, 474, 6275, 273, 13127, 25, 31, 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, 16351, 423, 42, 2455, 1383, 281, 353, 4232, 39, 2499, 2539, 16, 14223, 6914, 16, 1772, 14439, 288, 203, 377, 203, 377, 203, 565, 533, 1026, 3098, 31, 203, 565, 533, 1071, 1026, 3625, 33, 3552, 1163, 14432, 203, 565, 533, 1071, ...
./full_match/42220/0xDD85f95883a8B1836849AC76CBD7F92D1619e4c0/sources/StrategySushiLPV2_flat.sol
called as part of strat migration. Sends all the available funds back to the vault.
function retireStrat() external { require(msg.sender == vault, "!vault"); IMiniChefV2(chef).emergencyWithdraw(poolId, address(this)); uint256 wantBal = IERC20(want).balanceOf(address(this)); IERC20(want).transfer(vault, wantBal); }
16,323,662
[ 1, 4625, 348, 7953, 560, 30, 225, 2566, 487, 1087, 434, 609, 270, 6333, 18, 2479, 87, 777, 326, 2319, 284, 19156, 1473, 358, 326, 9229, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 325, 577, 1585, 270, 1435, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 9229, 16, 17528, 26983, 8863, 203, 3639, 467, 2930, 77, 39, 580, 74, 58, 22, 12, 343, 10241, 2934, 351, 24530, 1190, 9446, 12, 6011, 548...
/** *Submitted for verification at Etherscan.io on 2022-04-08 */ pragma solidity ^0.6.12; // SPDX-License-Identifier: MIT // @author: YummyDAO with Sadio.tech interface IERC20 { function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */...
function setLiquidityFeePercent(uint256 liquidityFee) external onlyOwner() {
_liquidityFee = liquidityFee;
7,805,104
[ 1, 4625, 348, 7953, 560, 30, 445, 444, 48, 18988, 24237, 14667, 8410, 12, 11890, 5034, 4501, 372, 24237, 14667, 13, 3903, 1338, 5541, 1435, 288, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 549, 372, 24237, 14667, 273, 4501, 372, 24237, 14667, 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, ...
/* DevToken - Documentation Contract to deploy: DevToken Arguments (with example-values): { name: "DevToken", // Name of the token symbol: "DVT", // Symbol of the token maxSupply: web3.toWei(100, 'ether'), // max number of tokens maxStake: 25, ...
transferring the desired amount of ETH to the owners address
owner.transfer(value);
12,724,392
[ 1, 4625, 348, 7953, 560, 30, 225, 906, 74, 20245, 326, 6049, 3844, 434, 512, 2455, 358, 326, 25937, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3410, 18, 13866, 12, 1132, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "../interfaces/AggregatorValidatorInterface.sol"; import "../interfaces/TypeAndVersionInterface.sol"; import "../interfaces/AccessControllerInterface.sol"; import "../SimpleWriteAccessController.sol"; /* dev dependencies - to be re/moved after audit */ im...
dev dependencies - to be re/moved after audit */
import "./vendor/arb-bridge-eth/v0.8.0-custom/contracts/bridge/interfaces/IInbox.sol";
6,451,159
[ 1, 4625, 348, 7953, 560, 30, 225, 4461, 5030, 300, 358, 506, 283, 19, 81, 9952, 1839, 8215, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5666, 25165, 10645, 19, 6779, 17, 18337, 17, 546, 19, 90, 20, 18, 28, 18, 20, 17, 3662, 19, 16351, 87, 19, 18337, 19, 15898, 19, 45, 382, 2147, 18, 18281, 14432, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/43114/0x1db69e08e497639177C11e79d146f24C60FbDe60/sources/https_/github.com/traderjoe-xyz/joe-core/blob/main/contracts/traderjoe/JoeRouter02.sol
**** ADD LIQUIDITY **** create the pair if it doesn't exist yet
function _addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin ) internal virtual returns (uint256 amountA, uint256 amountB) { if (IJoeFactory(factory).getPair(tokenA, tokenB) ...
4,643,698
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 14465, 11689, 8961, 53, 3060, 4107, 380, 14465, 752, 326, 3082, 309, 518, 3302, 1404, 1005, 4671, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1289, 48, 18988, 24237, 12, 203, 3639, 1758, 1147, 37, 16, 203, 3639, 1758, 1147, 38, 16, 203, 3639, 2254, 5034, 3844, 1880, 281, 2921, 16, 203, 3639, 2254, 5034, 3844, 38, 25683, 16, 203, 3639, 2254, 5034, 3844, ...
pragma solidity ^0.4.18; import "../TaxableToken.sol"; contract TaxableTokenMock is TaxableToken{ function TaxableTokenMock(uint256 supply, uint256 _minimunFee, uint8 _percentage,string _name,string _symbol,uint8 _decimals) public{ //we don't need test for this require(_percentage < 100); ...
we don't need test for this
function TaxableTokenMock(uint256 supply, uint256 _minimunFee, uint8 _percentage,string _name,string _symbol,uint8 _decimals) public{ require(_percentage < 100); require(supply > 0); require(_decimals < 18); name = _name; symbol = _symbol; decimals = _decimals; ...
12,983,659
[ 1, 4625, 348, 7953, 560, 30, 732, 2727, 1404, 1608, 1842, 364, 333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18240, 429, 1345, 9865, 12, 11890, 5034, 14467, 16, 2254, 5034, 389, 1154, 381, 318, 14667, 16, 2254, 28, 389, 18687, 16, 1080, 389, 529, 16, 1080, 389, 7175, 16, 11890, 28, 389, 31734, 13, 1071, 95, 203, 3639, 2583, ...
./full_match/1/0xFD9E52A73d92E08903BFe6f42aeDEB82a86EFF35/sources/contracts/NAGOMIMinterHalfYear.sol
@dev セールフェーズのsetter
function setPhase(SalePhase _phase) external onlyOwner { if (_phase != phase) { phase = _phase; emit PhaseChanged(_phase); } }
3,024,510
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 225, 164, 229, 124, 164, 230, 125, 164, 230, 109, 164, 230, 248, 164, 229, 105, 164, 230, 125, 164, 229, 123, 164, 228, 111, 18062, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 11406, 12, 30746, 11406, 389, 13961, 13, 3903, 1338, 5541, 288, 203, 3639, 309, 261, 67, 13961, 480, 6855, 13, 288, 203, 5411, 6855, 273, 389, 13961, 31, 203, 5411, 3626, 19459, 5033, 24899, 13961, 1769, 203, 3639, ...
./partial_match/3/0x20eBac08D0B05d65a3FabA45E5320e972099F6BC/sources/Sumon.sol
---------------------------------------------------------------------------- ERC Token Standard #20 Interface https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md ----------------------------------------------------------------------------
interface ERC20Interface { function totalSupply() external view returns (uint256); function balanceOf(address tokenOwner) external view returns (uint balance); function allowance(address tokenOwner, address spender) external view returns (uint remaining); function transfer(address to, uint tokens) exter...
5,067,101
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3155, 8263, 468, 3462, 6682, 2333, 30, 6662, 18, 832, 19, 546, 822, 379, 19, 41, 18246, 19, 10721, 19, 7525, 19, 41, 2579, 55, 19, 73, 625, 17, 3462, 17, 2316, 17, 10005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 5831, 4232, 39, 3462, 1358, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 11013, 951, 12, 2867, 1147, 5541, 13, 3903, 1476, 1135, 261, 11890, 11013, 1769, 203, 565, 445, 1699, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint...
assemble the given address bytecode. If bytecode exists then the _addr is a contract.retrieve the size of the code on target address, this needs assembly
function isContract(address _addr) private view returns (bool is_contract) { uint length; assembly { length := extcodesize(_addr) } return (length > 0); }
331,275
[ 1, 4625, 348, 7953, 560, 30, 19540, 326, 864, 1758, 22801, 18, 971, 22801, 1704, 1508, 326, 389, 4793, 353, 279, 6835, 18, 17466, 326, 963, 434, 326, 981, 603, 1018, 1758, 16, 333, 4260, 19931, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 8924, 12, 2867, 389, 4793, 13, 3238, 1476, 1135, 261, 6430, 353, 67, 16351, 13, 288, 203, 565, 2254, 769, 31, 203, 565, 19931, 288, 203, 1377, 769, 519, 1110, 7000, 554, 24899, 4793, 13, 203, 565, 289, 203, 565, ...
/* solhint-disable avoid-low-level-calls */ /* solhint-disable no-inline-assembly */ /* solhint-disable not-rely-on-time */ /* solhint-disable avoid-tx-origin */ /* solhint-disable bracket-align */ // SPDX-License-Identifier:MIT pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts...
/Check if Relay Manager is staked
function addRelayWorkers(address[] calldata newRelayWorkers) external override { address relayManager = msg.sender; workerCount[relayManager] = workerCount[relayManager] + newRelayWorkers.length; require( workerCount[relayManager] <= ma...
5,496,651
[ 1, 4625, 348, 7953, 560, 30, 342, 1564, 309, 4275, 528, 8558, 353, 384, 9477, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 27186, 15252, 12, 2867, 8526, 745, 892, 394, 27186, 15252, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 565, 288, 203, 3639, 1758, 18874, 1318, 273, 1234, 18, 15330, 31, 203, 3639, 4322, 1380, 63, 2878, 528, 1318, 65...
pragma solidity^0.6.0; /* * Team Equitable Builds Inc presents.. * ====================================* * _____ ___ _______ ______ * * | _ | || | __| __| * * | | | | __| |__ * * |__|__|_____|____|_____| * * * * =============...
* Whitelist a Minting Request that has been confirmed on the site.. ceva only/
function AsetWhitelistedPropertyValue(address _OwnerAddress, bytes32 _propertyUniqueID, uint256 _propertyValue) onlyCEVA(msg.sender) public returns(uint256) { require(propertywhitelist_[_OwnerAddress][_propertyUniqueID] = true && _propertyValue >= 0); if(_OwnerAddress...
6,506,281
[ 1, 4625, 348, 7953, 560, 30, 380, 3497, 7523, 279, 490, 474, 310, 1567, 716, 711, 2118, 19979, 603, 326, 2834, 838, 5898, 15304, 1338, 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, 565, 445, 432, 542, 18927, 329, 16107, 12, 2867, 389, 5541, 1887, 16, 1731, 1578, 389, 4468, 31118, 16, 2254, 5034, 389, 4468, 620, 13, 203, 3639, 1338, 1441, 27722, 12, 3576, 18, 15330, 13, 203, 3639, 1071, 203, 3639, 1135, 12, ...
/** * @title ByteSlice * * Slices are objects that allow you to work with arrays without copying them. * * @author Andreas Olofsson (androlo1980@gmail.com) */ library ByteSlice { struct Slice { uint _unsafe_memPtr; // Memory address of the first byte. uint _unsafe_length; // Length. }...
Same as new(Slice memory, uint, uint) but allows for negative indices. Warning: higher cost then using unsigned integers. @param self The slice. @param startpos The starting position. @param endpos The end position. @return The new slice. Don't allow slice on bytes of length 0.
function slice(Slice memory self, int startpos, int endpos) internal constant returns (Slice memory newSlice) { uint startpos_; uint endpos_; uint len = self._unsafe_length; if (startpos < 0) { startpos_ = uint(-startpos); if (startpos_ > len) ...
954,847
[ 1, 4625, 348, 7953, 560, 30, 225, 17795, 487, 394, 12, 5959, 3778, 16, 2254, 16, 2254, 13, 1496, 5360, 364, 6092, 4295, 18, 9728, 30, 10478, 6991, 1508, 1450, 9088, 12321, 18, 632, 891, 365, 1021, 2788, 18, 632, 891, 787, 917, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2788, 12, 5959, 3778, 365, 16, 509, 787, 917, 16, 509, 679, 917, 13, 2713, 5381, 1135, 261, 5959, 3778, 394, 5959, 13, 288, 203, 3639, 2254, 787, 917, 67, 31, 203, 3639, 2254, 679, 917, 67, 31, 203, 3639, 2254, 562,...
// SPDX-License-Identifier: None pragma solidity ^0.8.0; library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { ...
Royalty for Wallet 4
_royaltyShares[_royaltyAddresses[3]] = 25;
6,268,503
[ 1, 4625, 348, 7953, 560, 30, 225, 534, 13372, 15006, 364, 20126, 1059, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 3800, 15006, 24051, 63, 67, 3800, 15006, 7148, 63, 23, 13563, 273, 6969, 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, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(ad...
F1 - F10: OK C1 - C24: OK All safeTransfer, swap: X1 - X5: OK Checks X1 - X5: OK Interactions X1 - X5: OK TODO: Add maximum slippage? TODO: Add maximum slippage?
function _swap( address fromToken, address toToken, uint256 amountIn, address to ) internal returns (uint256 amountOut) { IUniswapV2Pair pair = IUniswapV2Pair(factory.getPair(fromToken, toToken)); require(address(pair) != address(0), "TanosiaMaker: Can...
532,068
[ 1, 4625, 348, 7953, 560, 30, 225, 478, 21, 300, 478, 2163, 30, 7791, 385, 21, 300, 385, 3247, 30, 7791, 4826, 4183, 5912, 16, 7720, 30, 1139, 21, 300, 1139, 25, 30, 7791, 13074, 1139, 21, 300, 1139, 25, 30, 7791, 5294, 4905, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22270, 12, 203, 3639, 1758, 628, 1345, 16, 203, 3639, 1758, 358, 1345, 16, 203, 3639, 2254, 5034, 3844, 382, 16, 203, 3639, 1758, 358, 203, 565, 262, 2713, 1135, 261, 11890, 5034, 3844, 1182, 13, 288, 203, 3639, ...
./full_match/1/0x9d58E094AF317D4d2e9e9F7f716Ca0B811a3ea19/sources/contracts/suitcase.sol
Mapping from token ID to tokenURI
contract Suitcase is ERC721Enumerable, AccessControl { using SafeMath for uint256; using Counters for Counters.Counter; uint256 public maxSupply; Counters.Counter private _tokenIdCounter; mapping(uint256 => string) private _tokenURIs; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN"); ...
4,913,876
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 628, 1147, 1599, 358, 1147, 3098, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 348, 14945, 3593, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 24349, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 203, 565, 2254, 5034, 1071, 943, 3088, ...
./full_match/4/0xA97Cbe3C41B7f4a7a3D7e4c087d9B1DE2A53424F/sources/contracts/finalshit.sol
* Set testies aside for the team. Only can be called once after sale is active. @param numberOfTokens Number of tokens to be minted./
function reserveTeamtesties(uint256 numberOfTokens) public onlyOwner{ uint256 supply = totalSupply(); require(!aretestiesReserved, "Already reserved some testies for the team."); require(supply + TEAM_testies <= MAX_testies, "Purchase would exceed max supply of testies"); for (u...
675,866
[ 1, 4625, 348, 7953, 560, 30, 380, 1000, 1842, 606, 487, 831, 364, 326, 5927, 18, 5098, 848, 506, 2566, 3647, 1839, 272, 5349, 353, 2695, 18, 632, 891, 7922, 5157, 3588, 434, 2430, 358, 506, 312, 474, 329, 18, 19, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20501, 8689, 3813, 606, 12, 11890, 5034, 7922, 5157, 13, 1071, 1338, 5541, 95, 203, 3639, 2254, 5034, 14467, 273, 2078, 3088, 1283, 5621, 203, 3639, 2583, 12, 5, 834, 3813, 606, 10435, 16, 315, 9430, 8735, 2690, 1842, 6...
./full_match/137/0xb6Bc9B50b4AC1397AB03d8a24d8fa529a5070ff0/sources/_ensofinance/weiroll/contracts/CommandBuilder.sol
Variable length data
argLen = state[idx & IDX_VALUE_MASK].length;
4,740,423
[ 1, 4625, 348, 7953, 560, 30, 225, 7110, 769, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10792, 1501, 2891, 273, 919, 63, 3465, 473, 1599, 60, 67, 4051, 67, 11704, 8009, 2469, 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, ...
//Address: 0xc654ec1fc5a1c76a19bf169ef2765cef23cdd236 //Contract name: PreIco //Balance: 0 Ether //Verification Date: 1/25/2018 //Transacion Count: 17 // CODE STARTS HERE pragma solidity ^0.4.18; contract AbstractToken { // This is not an abstract function, because solc won't recognize generated getter function...
@dev Moves tokens from one user to another. Can be called only by manager. This function added for users that send ether by stock exchanges
function moveIcoTokens(address _from, address _to, uint _value) public onlyManager { balances[_from] = sub(balances[_from], _value); balances[_to] = add(balances[_to], _value); MoveTokens(_from, _to, _value); }
5,460,131
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 490, 10829, 2430, 628, 1245, 729, 358, 4042, 18, 4480, 506, 2566, 1338, 635, 3301, 18, 1220, 445, 3096, 364, 3677, 716, 1366, 225, 2437, 635, 12480, 431, 6329, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3635, 45, 2894, 5157, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 389, 1132, 13, 1071, 1338, 1318, 288, 203, 3639, 324, 26488, 63, 67, 2080, 65, 273, 720, 12, 70, 26488, 63, 67, 2080, 6487, 389, 1132, 1769, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.1; import "./Land.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract LandSale is LandRegistration { //address public owner; struct BidDetail { uint256 highestBid; address highestBidder; mapping(address => uint2...
require(msg.sender!=ownerOf(landID));
function instantBuy(uint256 landID) public payable { BidDetails[landID].highestBidder = msg.sender; BidDetails[landID].bidders.push(msg.sender); BidDetails[landID].highestBid = BidDetails[landID].bids[msg.sender] + msg.value; BidDetails[landID].bids[msg.sender...
1,070,332
[ 1, 4625, 348, 7953, 560, 30, 2583, 12, 3576, 18, 15330, 5, 33, 8443, 951, 12, 15733, 734, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5934, 38, 9835, 12, 11890, 5034, 19193, 734, 13, 1071, 8843, 429, 288, 203, 3639, 605, 350, 3790, 63, 15733, 734, 8009, 8766, 395, 17763, 765, 273, 1234, 18, 15330, 31, 203, 3639, 605, 350, 3790, 63, 15733, 734, 8009, ...
./partial_match/1/0xB571eFe897F38C6cB03c42decb15a5f57BB62A75/sources/HairyPlotterSBFCoin.sol
/* @dev See {IERC20-approve - `spender` cannot be the zero address./
{ address owner = _msgSender(); _approve (owner , spender , amount ) ; return true; } function allowance
11,024,973
[ 1, 4625, 348, 7953, 560, 30, 1748, 632, 5206, 2164, 288, 45, 654, 39, 3462, 17, 12908, 537, 300, 1375, 87, 1302, 264, 68, 2780, 506, 326, 3634, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 3639, 1758, 3410, 273, 389, 3576, 12021, 5621, 203, 3639, 389, 12908, 537, 203, 12, 8443, 203, 16, 17571, 264, 203, 16, 203, 3844, 203, 13, 203, 31, 203, 3639, 327, 638, 31, 203, 565, 289, 445, 1699, 1359, 203, 2, -1...
pragma solidity ^0.5.11; // Defines an ERC20 standard to be able to transfer to contract IERC20 { uint256 public totalSupply; function balanceOf(address _owner) public view returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success); function transferFrom(address _fr...
Gets the minimum eth per trade
function getMinimumEthPerTrade() external view returns(uint){ return _minimumEthPerTrade; }
12,831,665
[ 1, 4625, 348, 7953, 560, 30, 225, 11881, 326, 5224, 13750, 1534, 18542, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30665, 41, 451, 2173, 22583, 1435, 3903, 1476, 1135, 12, 11890, 15329, 203, 540, 327, 389, 15903, 41, 451, 2173, 22583, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0xE4dD566b410Fe45db55BD9F5f928269290B0a674/sources/SecurityToken.sol
Emit when the token details get updated
event UpdateTokenDetails(string _oldDetails, string _newDetails);
4,335,548
[ 1, 4625, 348, 7953, 560, 30, 225, 16008, 1347, 326, 1147, 3189, 336, 3526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 2315, 1345, 3790, 12, 1080, 389, 1673, 3790, 16, 533, 389, 2704, 3790, 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...
pragma solidity ^0.5.0; import "./ERC721Full.sol"; import "./Ownable.sol"; contract PlantBase is ERC721Full, Ownable { // Name and Symbol for plant tokens constructor() ERC721Full("Ethgarden.io", "GROW") public { } // Grown event to be emitted when shipIt is called event Grown(uint256 plantId, u...
Approve new ERC20 contract address Change bool mapping to true for an input address
function approveERC20(address _address) external onlyOwner() { isApprovedERC20[_address] = true; }
13,094,809
[ 1, 4625, 348, 7953, 560, 30, 225, 1716, 685, 537, 394, 4232, 39, 3462, 6835, 1758, 7576, 1426, 2874, 358, 638, 364, 392, 810, 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, ...
[ 1, 1, 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, 6617, 537, 654, 39, 3462, 12, 2867, 389, 2867, 13, 3903, 1338, 5541, 1435, 288, 203, 3639, 353, 31639, 654, 39, 3462, 63, 67, 2867, 65, 273, 638, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/44787/0x0296cAF27d9229f95eB951F52a7b577bE5De55A9/sources/contracts/StarFarm.sol
MasterChef is the master of Star. He can make Star and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once STAR is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it's ...
contract MasterChef is Initializable, OwnableUpgradeable { using SafeMathUpgradeable for uint256; using SafeERC20Upgradeable for IERC20Upgradeable; struct UserInfo { uint256 lastDeposit; uint256 nftAmount; uint256 nftRewardDebt; uint256 nftLastDeposit; } struct Poo...
13,249,807
[ 1, 4625, 348, 7953, 560, 30, 225, 13453, 39, 580, 74, 353, 326, 4171, 434, 934, 297, 18, 8264, 848, 1221, 934, 297, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 491, 87, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13453, 39, 580, 74, 353, 10188, 6934, 16, 14223, 6914, 10784, 429, 288, 203, 565, 1450, 14060, 10477, 10784, 429, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 10784, 429, 364, 467, 654, 39, 3462, 10784, 429, ...
pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract RNG { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; ...
Public variables of the token This creates an array with all balances This generates a public event on the blockchain that will notify clients This notifies clients about the amount burnt
contract RNG { string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; mapping (address => uint256) public balanceOf; mapping (address => mapping (address => uint256)) public allowance; event Transfer(address indexed from, address indexed to, uint2...
10,848,640
[ 1, 4625, 348, 7953, 560, 30, 225, 7224, 3152, 434, 326, 1147, 1220, 3414, 392, 526, 598, 777, 324, 26488, 1220, 6026, 279, 1071, 871, 603, 326, 16766, 716, 903, 5066, 7712, 1220, 19527, 7712, 2973, 326, 3844, 18305, 88, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 534, 4960, 288, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 273, 6549, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 50...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asser...
* @dev Store setting deprecation @param _settingId The ID of the setting @param _creatorNameId The nameId that created the setting @param _creatorTAOId The taoId that created the setting @param _associatedTAOId The taoId that the setting affects @param _newSettingId The new settingId value to route @param _newSettingCo...
function _storeSettingDeprecation(uint256 _settingId, address _creatorNameId, address _creatorTAOId, address _associatedTAOId, uint256 _newSettingId, address _newSettingContractAddress) internal returns (bool) { require (settingDatas[_settingId].creatorNameId != address(0) && settingDatas[_settingId].rejected == fal...
10,007,221
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4994, 3637, 20097, 632, 891, 389, 8920, 548, 1021, 1599, 434, 326, 3637, 632, 891, 389, 20394, 461, 548, 1021, 508, 548, 716, 2522, 326, 3637, 632, 891, 389, 20394, 9833, 51, 548, 1021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 389, 2233, 5568, 758, 13643, 12, 11890, 5034, 389, 8920, 548, 16, 1758, 389, 20394, 461, 548, 16, 1758, 389, 20394, 9833, 51, 548, 16, 1758, 389, 28441, 9833, 51, 548, 16, 2254, 5034, 389, 2704, 5568, 548, 16, 1758, 3...
pragma solidity >=0.5.12 <=0.6.2; /** * @title Option AMM * @author Primitive */ // Primitive import { ERC20 } from "../tokens/ERC20.sol"; import { IERC20 } from "../tokens/IERC20.sol"; import { IOptionPool } from "./interfaces/IOptionPool.sol"; import { IProxyPriceProvider } from "../oracle/interfaces/IProxyPrice...
* @dev Updates Calibration struct storage with a time period and weight target. @param finalWeightsArray An array of uint256 values for denormalized weights to target. @param beginBlock The block which will start the targeting. @param finalBlock The block that will have the weights set to the target weights./ Check fin...
function targetWeightsOverTime( uint256[] calldata finalWeightsArray, uint256 beginBlock, uint256 finalBlock ) external onlyBinder { require(finalBlock > beginBlock, "ERR_FINAL_BLOCK_BEFORE"); IBPool optionPool_ = optionPool(); uint256 weightsTotalSum = 0; ...
1,824,870
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15419, 3596, 11723, 1958, 2502, 598, 279, 813, 3879, 471, 3119, 1018, 18, 632, 891, 727, 16595, 1076, 1922, 526, 434, 2254, 5034, 924, 364, 24919, 1235, 5376, 358, 1018, 18, 632, 891, 237...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1018, 16595, 4851, 950, 12, 203, 3639, 2254, 5034, 8526, 745, 892, 727, 16595, 1076, 16, 203, 3639, 2254, 5034, 2376, 1768, 16, 203, 3639, 2254, 5034, 727, 1768, 203, 565, 262, 3903, 1338, 17700, 288, 203, 3639, 2583, 1...
pragma solidity ^0.6.0; // SPDX-License-Identifier: GPL; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/EnumerableSet.sol"; import "./SDTrust.sol"; /* @future includ...
sTrust.distribute(numTrusts, share);
sTrust.distribute(will.beneficiaries, share);
2,486,686
[ 1, 4625, 348, 7953, 560, 30, 225, 272, 14146, 18, 2251, 887, 12, 2107, 14146, 87, 16, 7433, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 272, 14146, 18, 2251, 887, 12, 20194, 18, 70, 4009, 74, 14463, 5646, 16, 7433, 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, ...
//Part of this contract is from the solidity documentation pragma solidity ^0.4.10; /** Prepare for deployments: * * Add a *100 fee to askMembership() * Switch fee to 0.01 ether * Set voteLenght = 15 days * */ /// @title Fund for donations. contract Abie { bytes32 public name; bytes32 public statement;...
The proposal will be executed.
proposal.executed=true;
12,762,606
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 14708, 903, 506, 7120, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 14708, 18, 4177, 4817, 33, 3767, 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: MIT pragma solidity ^0.5.13; pragma experimental ABIEncoderV2; import "../codes/ERC20Upgradeable.sol"; import "../codes/OwnableUpgradeable.sol"; import "../libraries/SafeERC20.sol"; import "../libraries/SafeCast.sol"; import "../libraries/BoringMath.sol"; import "../proxy/Initializable.sol...
@notice A checkpoint for marking number of votes from a given block
struct Checkpoint { uint32 fromBlock; uint256 votes; } address indexed delegator, address indexed fromDelegate, address indexed toDelegate ); address indexed delegate, uint256 previousBalance, uint256 newBalance );
13,037,852
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 9776, 364, 24073, 1300, 434, 19588, 628, 279, 864, 1203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 25569, 288, 203, 3639, 2254, 1578, 628, 1768, 31, 203, 3639, 2254, 5034, 19588, 31, 203, 565, 289, 203, 203, 203, 203, 3639, 1758, 8808, 11158, 639, 16, 203, 3639, 1758, 8808, 628, 9586, 16, 203, 3639, 1758, 8808, 358,...
./partial_match/1/0x91eD8986F096Ed86D80f5E3A4218DAAfC59c1368/sources/XEN.sol
at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch.when buywhen sell if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!_blacklist[to] && !_blacklist[from],...
4,267,954
[ 1, 4625, 348, 7953, 560, 30, 225, 622, 8037, 309, 326, 7412, 4624, 353, 3696, 16, 3387, 326, 1203, 11267, 364, 5405, 343, 345, 414, 353, 444, 1493, 4982, 8037, 18, 13723, 30143, 13723, 357, 80, 309, 1281, 2236, 11081, 358, 389, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
./full_match/1/0x92C159895901439CaA212997D505083a2fe88885/sources/contracts/Drppr721.sol
* @notice Allows the owner to set the cost of whitelist minting. @param _newCostWL - The new cost of whitelist minting. @dev Only the owner can call this function./
function setCostWL(uint256 _newCostWL) public onlyOwner { costWL = _newCostWL; }
4,910,011
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 25619, 326, 3410, 358, 444, 326, 6991, 434, 10734, 312, 474, 310, 18, 632, 891, 389, 2704, 8018, 59, 48, 300, 1021, 394, 6991, 434, 10734, 312, 474, 310, 18, 632, 5206, 5098, 326, 3410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 8018, 59, 48, 12, 11890, 5034, 389, 2704, 8018, 59, 48, 13, 1071, 1338, 5541, 288, 203, 3639, 6991, 59, 48, 273, 389, 2704, 8018, 59, 48, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100...