file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/288/0x4200000000000000000000000000000000000007/sources/contracts/L2/messaging/IL2CrossDomainMessenger.sol
* @title IL2CrossDomainMessenger/
interface IL2CrossDomainMessenger is ICrossDomainMessenger { function relayMessage( address _target, address _sender, bytes memory _message, uint256 _messageNonce ) external; pragma solidity ^0.8.9; import {ICrossDomainMessenger} from '../../libraries/bridge/ICrossDomainMessenger.sol'; }
16,906,043
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 467, 48, 22, 13941, 3748, 29329, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 48, 22, 13941, 3748, 29329, 353, 467, 13941, 3748, 29329, 288, 203, 203, 225, 445, 18874, 1079, 12, 203, 565, 1758, 389, 3299, 16, 203, 565, 1758, 389, 15330, 16, 203, 565, 1731, 3778, 389, 2150, 16, 203, 565, 2254, ...
/** *Submitted for verification at Etherscan.io on 2019-12-19 */ // hevm: flattened sources of src/Redeemer.sol pragma solidity =0.5.11 >0.4.13 >0.4.20 >=0.4.23 >=0.5.0 <0.6.0 >=0.5.5 <0.6.0 >=0.5.11 <0.6.0; ////// lib/dpass/lib/openzeppelin-contracts/src/GSN/Context.sol /* pragma solidity ^0.5.0; */ /* * @dev Pro...
fees are sent in this token_
token_ = sellToken_;
13,091,114
[ 1, 4625, 348, 7953, 560, 30, 225, 1656, 281, 854, 3271, 316, 333, 1147, 67, 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, 7734, 1147, 67, 273, 357, 80, 1345, 67, 31, 4766, 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...
./partial_match/56/0xABB22eaF61172044e884AFD94461ec5815D18BF1/sources/PriceBettingT1S2.sol
win: +0.88 or lose: -1
int256 winloss;
11,109,956
[ 1, 4625, 348, 7953, 560, 30, 5657, 30, 397, 20, 18, 5482, 578, 29612, 30, 300, 21, 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,...
[ 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, 509, 5034, 225, 5657, 7873, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.3; import { IERC20, ISafeMath, IChainlinkOracle, IKladeDiffToken } from "./Interfaces.sol"; contract ChainlinkReceiver { uint256 constant multiple = 10**7; uint256 constant initial_factor = 1396984; // initial_factor = 600 * 10^13 / 2^32 rou...
* Check that the values that are trying to be added to the ChainlinkData for a quarter actually makes sense. Returns True if the update seems reasonable and returns false if the update values seems unreasonable Very generous constraints that are just sanity checks. @param update ChainlinkUpdate - A chainlink update wit...
function check_reasonable_values(ChainlinkUpdate memory update) internal view returns (bool reasonable) { uint256 update_diff = update.difficulty; uint256 update_block_number = update.block_number; uint256 number_of_updates = Q3_details.number_of_updates; ...
14,730,084
[ 1, 4625, 348, 7953, 560, 30, 380, 2073, 716, 326, 924, 716, 854, 8374, 358, 506, 3096, 358, 326, 7824, 1232, 751, 364, 279, 24821, 6013, 7297, 12764, 18, 2860, 1053, 309, 326, 1089, 12001, 23589, 471, 1135, 629, 309, 326, 1089, 924,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 10579, 429, 67, 2372, 12, 3893, 1232, 1891, 3778, 1089, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 23589, 13, 203, 565, 288, 203, 3639, 2254, 5034, 1089, 67, 5413, 273, 1089, 18, 5413, ...
./partial_match/1/0xc6CadA314389430d396C7b0C70c6281e99ca7fe8/sources/src/contracts/Timelock2Step.sol
@notice The ```_setTimelock``` function sets the timelock address @dev This function is to be implemented by a public function @param _newTimelock The address of the new timelock
function _setTimelock(address _newTimelock) internal { emit TimelockTransferred(timelockAddress, _newTimelock); timelockAddress = _newTimelock; }
2,822,982
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 31621, 67, 542, 10178, 292, 975, 10335, 68, 445, 1678, 326, 1658, 292, 975, 1758, 632, 5206, 1220, 445, 353, 358, 506, 8249, 635, 279, 1071, 445, 632, 891, 389, 2704, 10178, 292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 542, 10178, 292, 975, 12, 2867, 389, 2704, 10178, 292, 975, 13, 2713, 288, 203, 3639, 3626, 12652, 292, 975, 1429, 4193, 12, 8584, 292, 975, 1887, 16, 389, 2704, 10178, 292, 975, 1769, 203, 3639, 1658, 292, 975, ...
./partial_match/56/0x1b35DA6c149fbc1b73A4Cc1f27cF26C4D4dF5181/sources/canefinance.sol
burns to this address, this address will be the reward address
function transfer(address to, uint256 value) public returns (bool) { require(value <= _balances[msg.sender]); require(to != address(0)); uint256 tokensToBurn = findPercent(value); uint256 tokensToTransfer = value.sub(tokensToBurn); _balances[msg.sender] = _balances[msg.sender].sub(value); _b...
11,068,511
[ 1, 4625, 348, 7953, 560, 30, 225, 18305, 87, 358, 333, 1758, 16, 333, 1758, 903, 506, 326, 19890, 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,...
[ 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, 225, 445, 7412, 12, 2867, 358, 16, 2254, 5034, 460, 13, 1071, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 1132, 1648, 389, 70, 26488, 63, 3576, 18, 15330, 19226, 203, 565, 2583, 12, 869, 480, 1758, 12, 20, 10019, 203, 203, ...
pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; /** @title Know You Customer contract * @author Chris Ball * @notice This contract handles basic "white listing" of addresses */ contract KycContract is Ownable { mapping(address => bool) allowed; /** @dev valid...
* @notice function whitelistis of the incoming address @param _addr the address to whitelist/
function setKycCompleted(address _addr) public onlyOwner { allowed[_addr] = true; }
12,913,555
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 445, 10734, 291, 434, 326, 6935, 1758, 632, 891, 389, 4793, 326, 1758, 358, 10734, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 47, 93, 71, 9556, 12, 2867, 389, 4793, 13, 1071, 1338, 5541, 288, 203, 3639, 2935, 63, 67, 4793, 65, 273, 638, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.17; contract Poly { /** * @notice Implementation of lagrange interpolation formula * @param X - . * @param Y - known n points (X[0], Y[0]), ... , (X[n-1], Y[n-1]). * @param x - . * @return y - calc y corresponding to given x. */ function InterpolateInt...
* @notice Implementation of lagrange interpolation formula @param X - [整数部分, 小数部分, 整数部分,小数部分, ..., 整数部分, 小数部分]. @param Y - [整数部分, 小数部分, 整数部分,小数部分, ..., 整数部分, 小数部分], point is ( double(X[0],X[1]), double(Y[0],Y[1]) ) @param x - [整数部分, 小数部分]. @return y - calc y corresponding to given x./ b = Y[i]; b = ...
function Interpolate( int256[] memory X, int256[] memory Y, int256[2] memory x ) public view returns (int256[2] memory y) { require(X.length == Y.length); require(X.length % 2 == 0); y = [int256(0), int256(0)]; for (uint256 i = 0; i < Y.length; i += 2) {...
12,984,104
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 25379, 434, 17241, 3676, 12851, 8013, 632, 891, 1139, 282, 300, 306, 167, 248, 117, 167, 248, 113, 170, 230, 106, 166, 235, 233, 16, 225, 166, 113, 242, 167, 248, 113, 170, 230, 106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24301, 340, 12, 203, 3639, 509, 5034, 8526, 3778, 1139, 16, 203, 3639, 509, 5034, 8526, 3778, 1624, 16, 203, 3639, 509, 5034, 63, 22, 65, 3778, 619, 203, 565, 262, 1071, 1476, 1135, 261, 474, 5034, 63, 22, 65, 3778, ...
pragma solidity 0.4.24; contract SnooKarma { //The oracle checks the authenticity of the Reddit accounts and their karma address public oracle; //The maintainer manages donations and a small Karma fee //The maintainer is in charge of keeping the oracle running address public maintainer; ...
The oracle checks the authenticity of the Reddit accounts and their karmaThe maintainer manages donations and a small Karma feeThe maintainer is in charge of keeping the oracle runningThe owner can replace the oracle or maintainer if they are compromisedERC20 codeSee https:github.com/ethereum/EIPs/blob/e451b058521ba6cc...
contract SnooKarma { address public oracle; address public maintainer; address public owner; mapping(address => uint) public balanceOf; mapping(address => mapping (address => uint)) public allowance; string public constant symbol = "SNK"; string public constant name = "Sn...
1,660,483
[ 1, 4625, 348, 7953, 560, 30, 1021, 20865, 4271, 326, 21784, 560, 434, 326, 4621, 72, 305, 9484, 471, 3675, 417, 297, 2540, 1986, 11566, 1521, 20754, 281, 2727, 1012, 471, 279, 5264, 1475, 297, 2540, 14036, 1986, 11566, 1521, 353, 316,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 348, 2135, 83, 47, 297, 2540, 288, 203, 377, 203, 565, 1758, 1071, 20865, 31, 203, 377, 203, 565, 1758, 1071, 11566, 1521, 31, 203, 377, 203, 565, 1758, 1071, 3410, 31, 203, 377, 203, 565, 2874, 12, 2867, 516, 2254, 13, ...
./full_match/1/0x9eE4530EE122E82c700Ef355CC9b8F11079AE636/sources/contracts/protocol/libraries/helpers/Errors.sol
'Transferred amount needs to be greater than zero'
string internal constant CT_TRANSFER_AMOUNT_NOT_GT_0 = '31';
3,217,654
[ 1, 4625, 348, 7953, 560, 30, 225, 296, 1429, 4193, 3844, 4260, 358, 506, 6802, 2353, 3634, 11, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2713, 5381, 21088, 67, 16596, 6553, 67, 2192, 51, 5321, 67, 4400, 67, 16506, 67, 20, 273, 296, 6938, 13506, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; ...
@notice Query if an address implements an interface and thru which contract @param addr Address that is being queried for the implementation of an interface @param iHash SHA3 of the name of the interface as a string Example `web3.utils.sha3('Ierc777`')` @return The address of the contract that implements a speficic i...
function getInterfaceImplementer(address addr, bytes32 iHash) public constant returns (address) { return interfaces[addr][iHash]; }
12,596,350
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2770, 309, 392, 1758, 4792, 392, 1560, 471, 286, 8653, 1492, 6835, 632, 891, 3091, 5267, 716, 353, 3832, 23264, 364, 326, 4471, 434, 392, 1560, 632, 891, 277, 2310, 9777, 23, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 336, 1358, 5726, 264, 12, 2867, 3091, 16, 1731, 1578, 277, 2310, 13, 1071, 5381, 1135, 261, 2867, 13, 288, 203, 3639, 327, 7349, 63, 4793, 6362, 77, 2310, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -10...
pragma solidity ^0.4.17; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; ...
Wednesday, May 16, 2018 5:00:00 AM
uint constant ITSEndTime = 1526446800;
10,145,476
[ 1, 4625, 348, 7953, 560, 30, 225, 678, 329, 23712, 2881, 16, 16734, 2872, 16, 14863, 1381, 30, 713, 30, 713, 20653, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5381, 467, 8047, 25255, 273, 4711, 23728, 8749, 17374, 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,...
./full_match/80001/0x8e82483B435D4f8731B9f9Fb3960C053d62A056c/sources/project_/contracts/Limits.sol
@notice After calling this function the {_defaultSecondaryTradingLimit} will apply to addresses from array `_accountsToReset` instead of there {individualSecondaryTradingLimit} (if they had it) @dev Allowed only for ComplianceManager. @param _accountsToReset array of addresses to reset limit to default
function resetSecondaryTradingLimitToDefault( address[] calldata _accountsToReset ) external ifTokenNotPaused onlyComplianceManager { for (uint256 i = 0; i < _accountsToReset.length; i++) { userData[_accountsToReset[i]].hasOwnSecondaryLimit = false; } }
5,627,596
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 7360, 4440, 333, 445, 326, 288, 67, 1886, 14893, 1609, 7459, 3039, 97, 540, 903, 2230, 358, 6138, 628, 526, 1375, 67, 4631, 11634, 7013, 68, 540, 3560, 434, 1915, 288, 22032, 5557, 14893...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2715, 14893, 1609, 7459, 3039, 774, 1868, 12, 203, 3639, 1758, 8526, 745, 892, 389, 4631, 11634, 7013, 203, 565, 262, 3903, 309, 1345, 1248, 28590, 1338, 16687, 1318, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, ...
pragma solidity ^0.4.18; /** * @title ERC20Interface * @dev Standard version of ERC20 interface */ contract ERC20Interface { uint256 public totalSupply; function balanceOf(address _owner) public view returns (uint256 balance); function transfer(address _to, uint256 _value) public returns (bool success);...
* @dev Add to unminted @param _value The amount to be add/
function addToUnminted(uint256 _value) public onlyOwner returns (uint256 unmintedTokens) { _unmintedTokens += _value; return _unmintedTokens; }
10,874,927
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 358, 27701, 474, 329, 632, 891, 389, 1132, 1021, 3844, 358, 506, 527, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9604, 984, 81, 474, 329, 12, 11890, 5034, 389, 1132, 13, 1071, 1338, 5541, 1135, 261, 11890, 5034, 27701, 474, 329, 5157, 13, 288, 203, 540, 203, 3639, 389, 318, 81, 474, 329, 5157, 1011, 389, 1132, 31, 203, 203, 3639...
./partial_match/1/0x241609ad37a5038E459bDA70FFb1C052E76a1b8a/sources/EtheleGenerator.sol
Each of the 5 elements has 2 elements which create it. 1 Yin and 1 Yang creates 1 of any element of choice. Allow each element to burn the components that are transmuted to it. All 5 elements are allowed to burn yin and yang. Because Yin + Yang can transmute to any of the 5 elements.
function step() public { require(_step <= 3 && LAUNCH_TIME < block.timestamp); if (_step == 0) { _fire = address(new EtheleToken("Ethele Fire", "EEFI")); _earth = address(new EtheleToken("Ethele Earth", "EEEA")); _metal = address(new EtheleToken("Ethele Metal", "...
9,368,440
[ 1, 4625, 348, 7953, 560, 30, 225, 8315, 434, 326, 1381, 2186, 711, 576, 2186, 1492, 752, 518, 18, 404, 1624, 267, 471, 404, 1624, 539, 3414, 404, 434, 1281, 930, 434, 6023, 18, 7852, 1517, 930, 358, 18305, 326, 4085, 716, 854, 906...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2235, 1435, 1071, 288, 203, 3639, 2583, 24899, 4119, 1648, 890, 597, 2928, 2124, 1792, 67, 4684, 411, 1203, 18, 5508, 1769, 203, 203, 3639, 309, 261, 67, 4119, 422, 374, 13, 288, 203, 5411, 389, 12179, 273, 1758, 12, ...
pragma solidity 0.6.6; import "./FluxAggregator.sol"; import "./SimpleReadAccessController.sol"; /** * @title AccessControlled FluxAggregator contract * @notice This contract requires addresses to be added to a controller * in order to read the answers stored in the FluxAggregator contract */ contract AccessContr...
* @notice recalculate the amount of LINK available for payouts/
function updateAvailableFunds() public { Funds memory funds = recordedFunds; uint256 nowAvailable = linkToken.balanceOf(address(this)).sub(funds.allocated); if (funds.available != nowAvailable) { recordedFunds.available = uint128(nowAvailable); emit AvailableFundsUpdated(nowAvailable);...
565,220
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 26657, 326, 3844, 434, 22926, 2319, 364, 293, 2012, 87, 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, 225, 445, 1089, 5268, 42, 19156, 1435, 203, 565, 1071, 203, 225, 288, 203, 565, 478, 19156, 3778, 284, 19156, 273, 16421, 42, 19156, 31, 203, 203, 565, 2254, 5034, 2037, 5268, 273, 1692, 1345, 18, 12296, 951, 12, 2867, 12, 2211, ...
/** *Submitted for verification at Etherscan.io on 2021-04-11 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, u...
View function to see pending Caramel on frontend.
function pendingTokens(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accCaramelPerShare = pool.accCaramelPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this));...
10,822,464
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 385, 439, 292, 603, 15442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 5157, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 1675...
pragma solidity ^0.4.11; // <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, including w...
When the bet's event is expected to start
uint public EXPECTED_START = 1521154200;
13,766,881
[ 1, 4625, 348, 7953, 560, 30, 225, 5203, 326, 2701, 1807, 871, 353, 2665, 358, 787, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 1071, 5675, 23615, 67, 7570, 273, 4711, 22, 2499, 6564, 6976, 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, -1...
/* * The following is a smart contract written for University of Ontario Institute of Technology's Cloud Computing course * The objective is to demonstrate a ticket deployment app, using Ethereum blockchain at its core * This contract serves as a means for users to deploy tickets, view events, and resell purchase...
Add new ticket to the complete ticket list
function addTicket(address payable _ticketOwner, string memory _eventName, string memory _location, uint _price, uint _eventCount, string memory _eventDate) public { ticketCount++; tickets[ticketCount] = Ticket(_ticketOwner, _eventName, ticketCount, _location, _price, true, _eventCount, _eventDate);...
5,365,284
[ 1, 4625, 348, 7953, 560, 30, 1436, 394, 9322, 358, 326, 3912, 9322, 666, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 13614, 12, 2867, 8843, 429, 389, 16282, 5541, 16, 533, 3778, 389, 2575, 461, 16, 533, 3778, 389, 3562, 16, 2254, 389, 8694, 16, 2254, 389, 2575, 1380, 16, 533, 3778, 389, 2575, 1626, 13, 1071, 288, 203, 3639, 932...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract CryptoFightersPotio...
* @dev Allows owner to set Crypto Fighters Alliance address/
function setCryptoFightersAllianceContract(address _cryptoFightersAlliance) external onlyOwner { cryptoFightersAlliance = _cryptoFightersAlliance; }
1,678,091
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25619, 3410, 358, 444, 15629, 478, 2031, 5432, 2262, 549, 1359, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11440, 5486, 42, 2031, 5432, 1067, 549, 1359, 8924, 12, 2867, 389, 18489, 42, 2031, 5432, 1067, 549, 1359, 13, 3903, 1338, 5541, 288, 203, 3639, 8170, 42, 2031, 5432, 1067, 549, 1359, 273, 389, 18489, 42, 2031, 5432, 10...
./full_match/100/0x2c3DE641b0448FF29f917F9808ce63047A04d83c/sources/contracts/rari-fuse/src/core/InterestRateModel.sol
* @title Compound's InterestRateModel Interface @author Compound/
contract InterestRateModel { bool public constant isInterestRateModel = true; function getBorrowRate( uint256 cash, uint256 borrows, uint256 reserves ) external view returns (uint256); function getSupplyRate( uint256 cash, uint256 borrows, uint256 reserv...
14,267,809
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 21327, 1807, 5294, 395, 4727, 1488, 6682, 632, 4161, 21327, 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, 16351, 5294, 395, 4727, 1488, 288, 203, 565, 1426, 1071, 5381, 353, 29281, 4727, 1488, 273, 638, 31, 203, 203, 565, 445, 2882, 15318, 4727, 12, 203, 3639, 2254, 5034, 276, 961, 16, 203, 3639, 2254, 5034, 324, 280, 3870, 16, 203, ...
pragma solidity 0.4.25; // File: contracts/ERC777/ERC20Token.sol /* This Source Code Form is subject to the terms of the Mozilla external * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This code has not been reviewed. ...
@notice ERC20 backwards compatible allowance. This function makes it easy to read the `allowed[]` map @param _owner The address of the account that owns the token @param _spender The address of the account able to transfer the tokens @return Amount of remaining tokens of _owner that _spender is allowed to spend
function allowance(address _owner, address _spender) public erc20 view returns (uint256 remaining) { return mAllowed[_owner][_spender]; }
7,310,089
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 4232, 39, 3462, 12727, 7318, 1699, 1359, 18, 225, 1220, 445, 7297, 518, 12779, 358, 855, 326, 1375, 8151, 8526, 68, 852, 632, 891, 389, 8443, 1021, 1758, 434, 326, 2236, 716, 29065, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 1699, 1359, 12, 2867, 389, 8443, 16, 1758, 389, 87, 1302, 264, 13, 1071, 6445, 71, 3462, 1476, 1135, 261, 11890, 5034, 4463, 13, 288, 203, 565, 327, 312, 5042, 63, 67, 8443, 6362, 67, 87, 1302, 264, 15533, 203, 225, ...
./full_match/3/0x712e5a5Fc94B1C4843A3ac907f6E0d3dd9C825Dd/sources/browser/TortugaIsland.sol
Check sufficient balance to withdraw requested amount Overflow check to ensure future balance less than or equal to the current balance after deducting the withdrawn amount Deduct amount requested to be withdrawing from the DEX Token Balance Check that the `transfer` function of the Token Contract returns true
function withdrawToken(string memory symbolName, uint amountTokens) public { uint8 _symbolNameIndex = getSymbolIndexOrThrow(symbolName); require(tokens[_symbolNameIndex].tokenContract != address(0),"Token not exist"); ERC20Interface token = ERC20Interface(tokens[_symbolNameIndex].tokenContr...
8,227,035
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 18662, 11013, 358, 598, 9446, 3764, 3844, 10752, 2426, 866, 358, 3387, 3563, 11013, 5242, 2353, 578, 3959, 358, 326, 783, 11013, 1839, 11140, 853, 310, 326, 598, 9446, 82, 3844, 463, 329, 853, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1345, 12, 1080, 3778, 3273, 461, 16, 2254, 3844, 5157, 13, 1071, 288, 203, 3639, 2254, 28, 389, 7175, 461, 1016, 273, 18712, 1016, 30180, 12, 7175, 461, 1769, 203, 3639, 2583, 12, 7860, 63, 67, 7175, 461, 1...
./partial_match/42/0xAf5d2BC0A47f0aE99b7E7225349e3d5C48F46Fd5/sources/STERegistryV1.sol
* @title Interface for the modules deployer/
interface IModulesDeployer { function deployMultipleModulesFromFactories( bytes32[] calldata _extensionProtocolNames, uint8 _major, uint8 _minor, uint8 _patch ) external returns(address[] memory deployedModuleAddresses); } }
3,412,079
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 6682, 364, 326, 4381, 7286, 264, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 7782, 10015, 264, 288, 203, 565, 445, 7286, 8438, 7782, 1265, 19271, 12, 203, 3639, 1731, 1578, 8526, 745, 892, 389, 6447, 5752, 1557, 16, 203, 3639, 2254, 28, 389, 14019, 16, 203, 3639, 2254, 28, 389, 17364, 16, 203, ...
//Address: 0x4145492ad5039b802bd7e58098c8d71706a2cd14 //Contract name: ElepigCrowdsale //Balance: 0 Ether //Verification Date: 6/24/2018 //Transacion Count: 4 // CODE STARTS HERE pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { ...
sets address of community wallet - address where tokens not sold will be minted
community = _communityAddress;
951,672
[ 1, 4625, 348, 7953, 560, 30, 225, 1678, 1758, 434, 19833, 9230, 300, 1758, 1625, 2430, 486, 272, 1673, 903, 506, 312, 474, 329, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 19833, 273, 389, 20859, 1887, 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,...
./full_match/137/0x929ac147F87e7ae880a979C9C3B53302E2247bbB/sources/jizhi.sol
generate the uniswap pair path of token -> weth make the swap
function swapTokensForEth(uint256 tokenAmount) private { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, path,...
4,696,992
[ 1, 4625, 348, 7953, 560, 30, 225, 2103, 326, 640, 291, 91, 438, 3082, 589, 434, 1147, 317, 341, 546, 1221, 326, 7720, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 7720, 5157, 1290, 41, 451, 12, 11890, 5034, 1147, 6275, 13, 3238, 288, 203, 202, 2867, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 22, 1769, 203, 202, 803, 63, 20, 65, 273, 1758, 12, 2211, 1769, 203, 202, 803, 63, 21...
./partial_match/1/0xdF1d7FD22aC3aB5171E275796f123224039f3b24/sources/src/v0.8/ccip/onRamp/EVM2EVMOnRamp.sol
@dev Maximum nop fee that can accumulate in this onramp
uint96 internal immutable i_maxNopFeesJuels;
4,303,750
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 18848, 28797, 14036, 716, 848, 21757, 316, 333, 603, 86, 931, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 2254, 10525, 2713, 11732, 277, 67, 1896, 50, 556, 2954, 281, 46, 89, 10558, 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, ...
pragma solidity ^0.4.17; import 'zeppelin-solidity/contracts/ownership/Ownable.sol'; import './BotCoin.sol'; /** * @title BotCoinSale */ contract BotCoinSale is Ownable { using SafeMath for uint256; //uint256 private constant E18 = 10**18; //uint256 private constant ETH_DECIMALS = 18; //uint256 private c...
Tokens issuance that can only be called by project creators and only during the pre-crowdfund
function allocateWings() payable is_pre_crowdfund_period only_creator { prebuyPortionTotal += amount; if (!Token.createToken(wingsAddress, o_amount)) throw; tokenSold += o_amount; etherRaised += msg.value; }
12,575,633
[ 1, 4625, 348, 7953, 560, 30, 225, 13899, 3385, 89, 1359, 716, 848, 1338, 506, 2566, 635, 1984, 1519, 3062, 471, 1338, 4982, 326, 675, 17, 71, 492, 2180, 1074, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10101, 59, 899, 1435, 203, 565, 8843, 429, 203, 565, 353, 67, 1484, 67, 71, 492, 2180, 1074, 67, 6908, 203, 565, 1338, 67, 20394, 203, 225, 288, 203, 565, 675, 70, 9835, 2617, 285, 5269, 1011, 3844, 31, 203, 565, 30...
./full_match/1/0x0000007eE460B0928c2119E3B9747454A10d1557/sources/contracts/YunGouAggregators/YunGouAggregators.sol
execute trades return remaining ETH (if any)
function batchBuyWithETH( MarketRegistry.TradeDetails[] calldata tradeDetails ) external payable nonReentrant { _trade(tradeDetails); assembly { if gt(selfbalance(), 0) { let callStatus := call( gas(), caller(), ...
17,111,549
[ 1, 4625, 348, 7953, 560, 30, 225, 1836, 1284, 5489, 327, 4463, 512, 2455, 261, 430, 1281, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2581, 38, 9835, 1190, 1584, 44, 12, 203, 3639, 6622, 278, 4243, 18, 22583, 3790, 8526, 745, 892, 18542, 3790, 203, 565, 262, 3903, 8843, 429, 1661, 426, 8230, 970, 288, 203, 3639, 389, 20077, 12, 20077, 3790, 1769, 203,...
// 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 required by applicable law or agreed to in writing, software // distributed ...
------------------------------------------------------------------------ ERC 20 fields ------------------------------------------------------------------------ ------------------------------------------------------------------------ Fields required for the referendum ---------------------------------------------------...
contract VotingToken is ERC20Interface, Owned { using SafeMath for uint; string public symbol; string public name; uint8 public decimals; uint public totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; Description public description; ...
895,882
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 4232, 39, 4200, 1466, 8879, 17082, 8879, 17082, 7190, 1931, 364, 326, 8884, 409, 379, 8879, 17082, 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, 16351, 776, 17128, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, ...
./full_match/5/0x88E6A8bA858c86D4c395ed44797fA6Abf3a99fa7/sources/src/lib/SlotsDataTypes.sol
@notice Struct containing Secondary Market Data without mapping of orders. Used for getSecondaryMarketData getter.
struct SecondaryMarketData { }
11,622,951
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 7362, 4191, 30983, 6622, 278, 1910, 2887, 2874, 434, 11077, 18, 10286, 364, 21741, 814, 3882, 278, 751, 7060, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 30983, 3882, 278, 751, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/43113/0xAf6fDB5573Ac4A7E83E6761A738A7E0bE2c527F4/sources/AtivoFarm.sol
Accumulated ATIVOs per share, times 1e12. See below.
uint256 accAtivoPerShare;
7,111,807
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 5283, 690, 14464, 8188, 15112, 1534, 7433, 16, 4124, 404, 73, 2138, 18, 2164, 5712, 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,...
[ 1, 1, 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, 3639, 2254, 5034, 4078, 861, 20593, 2173, 9535, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2012, Offchain Labs, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * *...
Send given Eth to dest.
interface Sys2 { function getStorageAt(address account, uint256 index) external view returns (uint256); }
12,606,651
[ 1, 4625, 348, 7953, 560, 30, 225, 2479, 864, 512, 451, 358, 1570, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16995, 22, 288, 203, 565, 445, 13840, 861, 12, 2867, 2236, 16, 2254, 5034, 770, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x6C0B7415425EA6e0677920E5B48aee4712A73742/sources/contracts/SolidlyV2/Escrow/VeSolidEscrow.sol
* @notice Manager should not be able to do anything other than revoking the veNFT Operator should be able to do anything other than approvals as long as the veNFT remains in the escrow/
contract VeSolidEscrow { Events event OperatorStatus(address indexed operator, bool state); Modifiers modifier onlyManager() { require(msg.sender == manager, "Only manager"); _; } modifier onlyOperator() { require(isOperator[msg.sen...
9,166,143
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 225, 8558, 1410, 486, 506, 7752, 358, 741, 6967, 1308, 2353, 5588, 601, 310, 326, 10489, 50, 4464, 1875, 202, 5592, 1410, 506, 7752, 358, 741, 6967, 1308, 2353, 6617, 4524, 487, 1525, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 776, 73, 25044, 6412, 492, 288, 203, 203, 203, 8227, 9043, 203, 203, 565, 871, 11097, 1482, 12, 2867, 8808, 3726, 16, 1426, 919, 1769, 203, 203, 5397, 3431, 3383, 203, 565, 9606, 1338, 1318, 1435, 288, 203, 3639, 2583, 12,...
./partial_match/4/0x0f92374f323E11B13583538610e8076B63F7d671/sources/SpartanCouncil.sol
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection./
constructor() public { name = "SpartanCouncilFV"; symbol = "SCFV"; }
8,616,944
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 635, 3637, 279, 1375, 529, 68, 471, 279, 1375, 7175, 68, 358, 326, 1147, 1849, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 55, 2680, 304, 39, 465, 71, 330, 28324, 14432, 203, 3639, 3273, 273, 315, 2312, 28324, 14432, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "./IUniswapV2Factory.sol"; import "../kernel/TransferHelper.sol"; import "./ECDSA.sol"; import "./libraries/UniswapV2Library.sol"; import "./libraries/SafeMath.sol"; import "./interfaces/IERC20.sol"; import "./interfaces/IWETH.sol"; contract UniswapV2R...
Checks for a unique hash
mapping(bytes32 => bool) public signedHash;
15,862,062
[ 1, 4625, 348, 7953, 560, 30, 225, 13074, 364, 279, 3089, 1651, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 3890, 1578, 516, 1426, 13, 1071, 6726, 2310, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
//*********************************************************************// //*********************************************************************// // __ __ __ __ _ __ // / / / /___ _/ /_ ___ _____/ /_ ____ _ ____ _(_)____/ /____ // / /_/ / __ `/ __ \/ _ \/ __...
* @dev Transfers tokenId from from to to. Requirements: - to cannot be the zero address. - tokenId token must be owned by from. Emits a {Transfer} event./ Clear approvals from the previous owner
function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSend...
9,892,605
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2604, 18881, 1147, 548, 628, 628, 358, 358, 18, 29076, 30, 300, 358, 2780, 506, 326, 3634, 1758, 18, 300, 1147, 548, 1147, 1297, 506, 16199, 635, 628, 18, 7377, 1282, 279, 288, 5912, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 389, 13866, 12, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 1147, 548, 203, 225, 262, 3238, 288, 203, 565, 3155, 5460, 12565, 3778, 2807, 5460, 12565, 273, 23178, 951, 12, 2316, 548, 1769, ...
pragma solidity ^0.4.21; // welcome to EtherWild (EthWild) // game which is a simple coin toss game, you have 50% chance to win. // you always play against someone else. // there are two ways to play; the auto-way by just placing a bet (only one allowed) // this is the standard way to play // if you place this bet a...
do not play against self, would send fee, unfair.
require(game.Owner != msg.sender);
7,729,306
[ 1, 4625, 348, 7953, 560, 30, 225, 741, 486, 6599, 5314, 365, 16, 4102, 1366, 14036, 16, 640, 507, 481, 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, ...
[ 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, 5411, 2583, 12, 13957, 18, 5541, 480, 1234, 18, 15330, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-02-14 */ // SPDX-License-Identifier: MIT pragma solidity =0.8.10; pragma experimental ABIEncoderV2; abstract contract IDFSRegistry { function getAddr(bytes4 _id) public view virtual returns (address); function addNewContract( bytes32 _i...
@inheritdoc ActionBase
function executeActionDirect(bytes memory _callData) public payable override { Params memory inputData = parseInputs(_callData); (, bytes memory logData) = gUniWithdraw(inputData); logger.logActionDirectEvent("GUniWithdraw", logData); }
6,515,927
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 4382, 2171, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 1803, 5368, 12, 3890, 3778, 389, 1991, 751, 13, 1071, 8843, 429, 3849, 288, 203, 3639, 8861, 3778, 24149, 273, 1109, 10059, 24899, 1991, 751, 1769, 203, 3639, 261, 16, 1731, 3778, 613, 751, 13, 273, 314, 984, 77, ...
pragma solidity ^0.5.9; // See: https://github.com/ricmoo/Takoyaki ///////////////////////////// // ENS Interfaces interface Resolver { function addr(bytes32 node) external view returns (address); function setAddr(bytes32 node, address addr) external; } interface ReverseRegistrar { function claim(addres...
Approval All approvals
mapping (address => mapping (address => bool)) private _approveAll;
13,102,086
[ 1, 4625, 348, 7953, 560, 30, 225, 1716, 685, 1125, 4826, 6617, 4524, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 261, 2867, 516, 2874, 261, 2867, 516, 1426, 3719, 3238, 389, 12908, 537, 1595, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer f...
@notice Unpauses an agent's action for a given collateral type for this stablecoin @param agent Agent (`SLP` or `STABLE`) to unpause the action of @param poolManager Reference to the associated `PoolManager` @dev Before calling this function, the agent should have been paused for this collateral Checking for the `pool...
function unpause(bytes32 agent, IPoolManager poolManager) external override onlyRole(GUARDIAN_ROLE) { Collateral storage col = collateralMap[poolManager]; _contractMapCheck(col); _unpause(keccak256(abi.encodePacked(agent, address(poolManager)))); }
5,974,131
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1351, 8774, 6117, 392, 4040, 1807, 1301, 364, 279, 864, 4508, 2045, 287, 618, 364, 333, 14114, 12645, 632, 891, 4040, 8669, 21863, 4559, 52, 68, 578, 1375, 882, 2782, 24065, 358, 640, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 640, 19476, 12, 3890, 1578, 4040, 16, 467, 2864, 1318, 2845, 1318, 13, 3903, 3849, 1338, 2996, 12, 30673, 985, 2565, 1258, 67, 16256, 13, 288, 203, 3639, 17596, 2045, 287, 2502, 645, 273, 4508, 2045, 287, 863, 63, 6011,...
pragma solidity ^0.5.0; // File: openzeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint25...
* @title BasicCompanyCrowdsale. Investment is stored in vault and forwarded to wallet on end. */ Variables Constructor
contract BasicAssetTokenCrowdsaleNoFeature is Ownable { using SafeMath for uint256; using CrowdsaleL for CrowdsaleL.Data; using CrowdsaleL for CrowdsaleL.Roles; CrowdsaleL.Data crowdsaleData; CrowdsaleL.Roles roles; } Copyright 2018, CONDA constructor(address _assetToken) public { ...
1,083,288
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 7651, 12627, 39, 492, 2377, 5349, 18, 5454, 395, 475, 353, 4041, 316, 9229, 471, 19683, 358, 9230, 603, 679, 18, 1195, 23536, 11417, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7651, 6672, 1345, 39, 492, 2377, 5349, 2279, 4595, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 385, 492, 2377, 5349, 48, 364, 385, 492, 2377, 5349, 48, 18, 751, 31, 203, 565, ...
pragma solidity ^0.5.2; import 'openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol'; contract TokenLock { using SafeERC20 for IERC20; // ERC20 basic token contract being held IERC20 private _token; // beneficiary of tokens after they are released address private _beneficiary; // timestamp when t...
ERC20 basic token contract being held beneficiary of tokens after they are released timestamp when token release is enabled generator of the tokenLock
contract TokenLock { using SafeERC20 for IERC20; IERC20 private _token; address private _beneficiary; uint256 private _releaseTime; address private _owner; bool private _ownable; event UnLock(address _receiver, uint256 _amount); event Retrieve(address _receiver, uint256 _amount); modifier onlyOw...
12,663,018
[ 1, 4625, 348, 7953, 560, 30, 225, 4232, 39, 3462, 5337, 1147, 6835, 3832, 15770, 27641, 74, 14463, 814, 434, 2430, 1839, 2898, 854, 15976, 2858, 1347, 1147, 3992, 353, 3696, 4456, 434, 326, 1147, 2531, 2, 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, 16351, 3155, 2531, 288, 203, 225, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 225, 467, 654, 39, 3462, 3238, 389, 2316, 31, 203, 203, 225, 1758, 3238, 389, 70, 4009, 74, 14463, 814, 31, 203, 203, 225, 2...
pragma solidity >=0.5.0 <0.6.0; /* License (MIT) reminder: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIAB...
0x20fE562d797A42Dcb3399062AE9546cd06f63280); - Ropsten chainlink token contract
tokenContract = ERC20Interface(_tokenContractAddress);
943,611
[ 1, 4625, 348, 7953, 560, 30, 374, 92, 3462, 74, 41, 4313, 22, 72, 7235, 27, 37, 9452, 40, 7358, 3707, 2733, 7677, 22, 16985, 29, 6564, 26, 4315, 7677, 74, 26, 1578, 3672, 1769, 300, 534, 556, 334, 275, 2687, 1232, 1147, 6835, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 2316, 8924, 273, 4232, 39, 3462, 1358, 24899, 2316, 8924, 1887, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//"SPDX-License-Identifier: UNLICENSED" pragma solidity ^0.6.6; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ fu...
@dev withdraw token bonus earned from locking up liquidity -------------------------------------------------------------- @param _user --> address of the user making withdrawal @param releasedAmount --> released token to be withdrawn ------------------------------------------------------------------ returns w...
function _withdrawUserTokenBonus(address _user, uint releasedAmount, uint _id) internal returns(bool) { _users[_user].tokenWithdrawn = _users[_user].tokenWithdrawn.add(releasedAmount); _pendingBonusesToken = _pendingBonusesToken.sub(releasedAmount); (uint fee, uint feeInTok...
1,197,707
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 598, 9446, 1147, 324, 22889, 425, 1303, 329, 628, 18887, 731, 4501, 372, 24237, 13420, 16982, 632, 891, 389, 1355, 1850, 15431, 1758, 434, 326, 729, 10480, 598, 9446, 287, 632, 891, 15976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1918, 9446, 1299, 1345, 38, 22889, 12, 2867, 389, 1355, 16, 2254, 15976, 6275, 16, 2254, 389, 350, 13, 2713, 1135, 12, 6430, 13, 288, 203, 540, 203, 3639, 389, 5577, 63, 67, 1355, 8009, 2316, 1190, 9446, 82, 273,...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; /** * This contract was deployed by Ownerfy Inc. of Ownerfy.com * * EGGS are layed by Chic-A-Dees NFTs * Chic-A-Dee NFT Contract 0xB352131fE48571B7661390E65BE4F12119e9686f * To lay eggs you must be an owner of a Chic-A-Dee * Then trigger the startOneLaying...
* @dev Checks `ids` of Chics if they are owned by owner./
function _ownsChics(uint256[] memory ids) internal virtual returns(bool owns){ for (uint i = 0; i < ids.length; i++) { if(_ownsChic(ids[i]) == false) { return false; } } return true; }
11,983,790
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 1375, 2232, 68, 434, 1680, 2102, 309, 2898, 854, 16199, 635, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 995, 87, 782, 2102, 12, 11890, 5034, 8526, 3778, 3258, 13, 2713, 5024, 1135, 12, 6430, 29065, 15329, 203, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 3258, 18, 2469, 31, 277, 27245, 288, 203, 203, 18...
/** *Submitted for verification at Etherscan.io on 2021-07-28 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs library DataTypes { // refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties. ...
refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties.
library DataTypes { struct ReserveData { ReserveConfigurationMap configuration; uint128 liquidityIndex; uint128 variableBorrowIndex; uint128 currentLiquidityRate; uint128 currentVariableBorrowRate; uint128 currentStableBorrowRate; uint40 lastUpdateTimestamp...
6,544,681
[ 1, 4625, 348, 7953, 560, 30, 225, 8884, 358, 326, 600, 305, 881, 7294, 16, 2442, 404, 18, 21, 5337, 28415, 364, 279, 25739, 2477, 434, 4259, 1790, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 1910, 2016, 288, 203, 203, 203, 203, 565, 1958, 1124, 6527, 751, 288, 203, 3639, 1124, 6527, 1750, 863, 1664, 31, 203, 3639, 2254, 10392, 4501, 372, 24237, 1016, 31, 203, 3639, 2254, 10392, 2190, 38, 15318, 1016, 31, 203, ...
/* || THE LEXDAO REGISTRY (TLDR) || version 0.2 DEAR MSG.SENDER(S): / TLDR is a project in beta. // Please audit and use at your own risk. /// Entry into TLDR shall not create an attorney/client relationship. //// Likewise, TLDR should not be construed as legal advice or replacement for professional counsel. ///// S...
ERC-20 digital token (0x) address used to transfer digital value on ethereum under rddr / e.g., DAI 'digital dollar' - 0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359
ERC20 ddrToken;
2,555,094
[ 1, 4625, 348, 7953, 560, 30, 225, 4232, 39, 17, 3462, 25615, 1147, 261, 20, 92, 13, 1758, 1399, 358, 7412, 25615, 460, 603, 13750, 822, 379, 3613, 27777, 86, 342, 425, 18, 75, 12990, 463, 18194, 296, 28095, 302, 25442, 11, 300, 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, 3639, 4232, 39, 3462, 302, 3069, 1345, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.6.7; pragma experimental ABIEncoderV2; import "../../TestHelpers.sol"; import "../../../uni/UniswapV3Pool.sol"; import "../../../GebUniswapV3LiquidityManager.sol"; import "../../../uni/UniswapV3Factory.sol"; contract SetupTokens { TestToken public token0; TestToken public token1; constr...
create the token wrappers switch them around so that token0's address is lower than token1's since this is what the uniswap factory will do when you create the pool
constructor() public { TestToken t0 = new TestToken("tkn", 1000000 ether); TestToken t1 = new TestToken("tkn", 1000000 ether); if (address(t0) > address(t1)) { (token1, token0) = (t0, t1); (token0, token1) = (t0, t1); } }
14,025,304
[ 1, 4625, 348, 7953, 560, 30, 225, 752, 326, 1147, 21589, 1620, 2182, 6740, 1427, 716, 1147, 20, 1807, 1758, 353, 2612, 2353, 1147, 21, 1807, 3241, 333, 353, 4121, 326, 640, 291, 91, 438, 3272, 903, 741, 1347, 1846, 752, 326, 2845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 1071, 288, 203, 3639, 7766, 1345, 268, 20, 273, 394, 7766, 1345, 2932, 16099, 82, 3113, 15088, 225, 2437, 1769, 203, 3639, 7766, 1345, 268, 21, 273, 394, 7766, 1345, 2932, 16099, 82, 3113, 15088, 225, 2437, 1769, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
* @dev withdraws funds/
function withdraw() onlyOwner public { uint balance = address(this).balance; address payable own = payable(address(msg.sender)); own.transfer(balance); }
235,092
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 598, 9446, 87, 284, 19156, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 1338, 5541, 1071, 288, 203, 3639, 2254, 11013, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 1758, 8843, 429, 4953, 273, 8843, 429, 12, 2867, 12, 3576, 18, 15330, 10019, 203, 3639, 4953, 18, 13866, 1...
./full_match/80001/0x1E298C5bb202048f84Ec2416e7164d30F201d620/sources/lib/solady/src/utils/Base64.sol
@dev Encodes `data` using the base64 encoding described in RFC 4648. See: https://datatracker.ietf.org/doc/html/rfc4648 @param fileSafe Whether to replace '+' with '-' and '/' with '_'. @param noPadding Whether to strip away the padding. @solidity memory-safe-assembly Multiply by 4/3 rounded up. The `shl(2, ...)` is ...
{ assembly { let dataLength := mload(data) if dataLength { let encodedLength := shl(2, div(add(dataLength, 2), 3)) result := mload(0x40) mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef") mstore(0x3f, sub("ghijklmnopqrs...
5,639,576
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1374, 7000, 1375, 892, 68, 1450, 326, 1026, 1105, 2688, 11893, 316, 8372, 1059, 27382, 18, 2164, 30, 2333, 2207, 3404, 270, 21580, 264, 18, 18508, 18, 3341, 19, 2434, 19, 2620, 19, 16784,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 3639, 19931, 288, 203, 5411, 2231, 27972, 519, 312, 945, 12, 892, 13, 203, 203, 5411, 309, 27972, 288, 203, 7734, 2231, 3749, 1782, 519, 699, 80, 12, 22, 16, 3739, 12, 1289, 12, 892, 1782, 16, 576, 3631, 890, 3...
pragma solidity ^0.4.24; /* // © 2018 SafeBlocks LTD. All rights reserved. _____ __ ____ _ _ / ____| / _| | _ \ | | | | | (___ __ _ | |_ ___ | |_) | | | ___ ___ | | __ ___ \___ \ / _` | | _| / _ \ | _ < | | /...
*************************************** setters ****************************************
public { proxyContract = _proxy; emit ConfigurationChanged(msg.sender, _proxy, "a new proxy contract address has been assigned"); }
12,919,323
[ 1, 4625, 348, 7953, 560, 30, 20210, 11345, 25627, 20210, 27243, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1071, 288, 203, 3639, 2889, 8924, 273, 389, 5656, 31, 203, 3639, 3626, 4659, 5033, 12, 3576, 18, 15330, 16, 389, 5656, 16, 315, 69, 394, 2889, 6835, 1758, 711, 2118, 6958, 8863, 203, 565, 289, 203, 2, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/token/ERC777/IERC777.sol"; import "@openzeppelin/contracts/token/ERC777/IERC777Recipient.sol"; import "@openzeppelin/contracts/token/ERC777/IERC777Sender.sol"; import "@ope...
* @dev See {IERC777-operatorSend}. Emits {Sent} and {IERC20-Transfer} events./
function operatorSend( address sender, address recipient, uint256 amount, bytes memory data, bytes memory operatorData ) public override { require(isOperatorFor(_msgSender(), sender), "ERC777: caller is not an operator for holder"); _send(sender, recipient...
1,228,430
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 14509, 17, 9497, 3826, 5496, 7377, 1282, 288, 7828, 97, 471, 288, 45, 654, 39, 3462, 17, 5912, 97, 2641, 18, 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, 1, 0, 0, 0, 0, 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, 3726, 3826, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 1731, 3778, 501, 16, 203, 3639, 1731, 3778, 3726, 751, 203, 565, 262, 1071, 3849, 288, 203, 3639, 2583, ...
./partial_match/1/0x73ED6d3f4941F7B3B065C5e7D37365167A0c2898/sources/contracts/pools/interfaces/IPoolCollection.sol
the pool token of the pool
IPoolToken poolToken;
3,563,738
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 2845, 1147, 434, 326, 2845, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 467, 2864, 1345, 2845, 1345, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.0; import "openzeppelin-eth/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-eth/contracts/math/SafeMath.sol"; import "./compound/ICErc20.sol"; import "openzeppelin-eth/contracts/ownership/Ownable.sol"; import "kleros/contracts/data-structures/SortitionSumTreeFactory.sol"; import "./UniformR...
* @notice Makes msg.sender leave their given group and become a solo player @author jmartinmcfly/ WARNING: This may get funky because storage
function leaveGroup() external hasEntry hasGroup { Entry storage senderEntry = activeEntries[msg.sender]; Group storage group = groups[uint(getGroupId(msg.sender))]; uint index = group.members.length; for (uint i = 0; i < group.members.length; i++) { if (group.members[i] == msg.sender) { ...
15,884,381
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 490, 3223, 1234, 18, 15330, 8851, 3675, 864, 1041, 471, 12561, 279, 3704, 83, 7291, 632, 4161, 28296, 485, 267, 81, 8522, 715, 19, 9744, 30, 1220, 2026, 336, 284, 1683, 93, 2724, 2502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 8851, 1114, 1435, 3903, 711, 1622, 711, 1114, 288, 203, 565, 3841, 2502, 5793, 1622, 273, 2695, 5400, 63, 3576, 18, 15330, 15533, 203, 565, 3756, 2502, 1041, 273, 3252, 63, 11890, 12, 588, 8722, 12, 3576, 18, 15330, 371...
pragma solidity ^0.4.18; import 'zeppelin-solidity/contracts/math/SafeMath.sol'; import 'zeppelin-solidity/contracts/token/ERC20/MintableToken.sol'; import './Whitelist.sol'; /** * @title Ballot * @dev Voting capacity */ contract Ballot is MintableToken, Whitelist { using SafeMath for uint256; struct Voter { ...
* @dev Returns the number of votes available for an account @param addr The address to enquire./
function showVotes(address addr) public constant returns (uint256) { if (isVoteOngoing()) { Voter memory voter = votingObjects[votingObjects.length-1].voters[addr]; if (voter.hasVoted) { return 0; } if(voter.isNbVotesInitialized) { return ...
1,076,567
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1300, 434, 19588, 2319, 364, 392, 2236, 632, 891, 3091, 1021, 1758, 358, 570, 1039, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2405, 29637, 12, 2867, 3091, 13, 1071, 5381, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 291, 19338, 1398, 8162, 10756, 288, 203, 540, 202, 58, 20005, 3778, 331, 20005, 273, 331, 17128, 4710, 63, 90, 17128, 47...
./full_match/1/0xC36559fEE6B5444dd49075DeDb9EF9E858cE410C/sources/browser/mith-mis-usdt-vault.sol
**** Emergency functions **** call contract in current context throw if delegatecall failed
function _withdrawSome(uint256 _amount) internal virtual returns (uint256); function harvest() public virtual; function execute(address _target, bytes memory _data) public payable returns (bytes memory response) { require(msg.sender == strategist, "Not strategist"); ...
4,847,998
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 14465, 512, 6592, 75, 2075, 4186, 380, 14465, 745, 6835, 316, 783, 819, 604, 309, 7152, 1991, 2535, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1918, 9446, 17358, 12, 11890, 5034, 389, 8949, 13, 2713, 5024, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 17895, 26923, 1435, 1071, 5024, 31, 203, 203, 203, 565, 445, 1836, 12, 2867, 389, 3299, 16, 1731, 377...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import './openzeppelin-solidity/contracts/SafeMath.sol'; import './openzeppelin-solidity/contracts/Ownable.sol'; import './openzeppelin-solidity/contracts/ERC20/SafeERC20.sol'; //Libraries import "./libraries/TxDataUtils.sol"; //Interfaces import "./interfaces...
* @dev Returns the attribute's value as a bool @dev Reverts if the attribute is not found or if the attribute doesn't have bool type @param _id NFT id @param _attributeName Name of the attribute @return (bool) Value of the attribute/
function getBoolValue(uint _id, bytes32 _attributeName) external view override isValidId(_id) isValidAttributeName(_attributeName) returns (bool) { require(keccak256(abi.encodePacked(attributes[_attributeName].variableType)) == keccak256(abi.encodePacked("bool")), "ExternalStorage: Expected bool type."); ...
1,769,574
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1566, 1807, 460, 487, 279, 1426, 632, 5206, 868, 31537, 309, 326, 1566, 353, 486, 1392, 578, 309, 326, 1566, 3302, 1404, 1240, 1426, 618, 632, 891, 389, 350, 423, 4464, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 565, 445, 2882, 1371, 620, 12, 11890, 389, 350, 16, 1731, 1578, 389, 4589, 461, 13, 3903, 1476, 3849, 4908, 548, 24899, 350, 13, 4908, 19240, 24899, 4589, 461, 13, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 79, 24410, 581, ...
pragma solidity 0.4.21; /** * @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,...
* @notice Transfers tokens held by timelock to beneficiary./
function claim() external { require(whitelisting.isInvestorApproved(msg.sender)); uint256 transferTokenCount = 0; for (uint i = 0; i < vestingObj[msg.sender].length; i++) { if (now >= vestingObj[msg.sender][i].releaseTime) { transferTokenCount = transferTokenCount...
2,407,801
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2604, 18881, 2430, 15770, 635, 1658, 292, 975, 358, 27641, 74, 14463, 814, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 1435, 3903, 288, 203, 3639, 2583, 12, 20409, 310, 18, 291, 3605, 395, 280, 31639, 12, 3576, 18, 15330, 10019, 203, 3639, 2254, 5034, 7412, 1345, 1380, 273, 374, 31, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, ...
/** *Submitted for verification at Etherscan.io on 2021-07-12 */ // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.6; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this funct...
@dev In case infinite approval is reduced so that strategy cannot function
function approve(uint _amount) external onlyAuthorized { token.safeApprove(address(cToken), _amount); }
2,185,921
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 657, 648, 14853, 23556, 353, 13162, 1427, 716, 6252, 2780, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6617, 537, 12, 11890, 389, 8949, 13, 3903, 1338, 15341, 288, 203, 3639, 1147, 18, 4626, 12053, 537, 12, 2867, 12, 71, 1345, 3631, 389, 8949, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
// File: contracts/lib/InitializableOwnable.sol /* Copyright 2020 DODO ZOO. SPDX-License-Identifier: Apache-2.0 */ pragma solidity 0.6.9; pragma experimental ABIEncoderV2; /** * @title Ownable * @author DODO Breeder * * @notice Ownership related functions */ contract InitializableOwnable { address...
============ Storage ============
contract FeeRateDIP3Impl is InitializableOwnable { using SafeMath for uint256; uint256 public _LP_MT_RATIO_ = 25; struct CPPoolInfo { address quoteToken; int globalQuota; address feeAddr; address quotaAddr; } mapping(address => CPPoolInfo) cpPools; mapping(add...
6,248,703
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 631, 5235, 225, 422, 1432, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30174, 4727, 2565, 52, 23, 2828, 353, 10188, 6934, 5460, 429, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 203, 565, 2254, 5034, 1071, 389, 14461, 67, 6152, 67, 54, 789, 4294, 67, 273, 6969, 31, 203, ...
pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) {...
------------------------------ Token Distribution and Address ------------------------------ saleable 90% airdrop 5% developer 5% --------------------- sale start price and bonus --------------------- presale ico ico1 ico2ico start and end ----------------------- events ----------------------- ------------------- STA...
contract NafCoin is ERC20, Owned { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; string public constant name = "NafCoin"; string public constant symbol = "NFC"; uint publi...
13,900,587
[ 1, 4625, 348, 7953, 560, 30, 225, 12146, 16982, 3155, 17547, 471, 5267, 12146, 16982, 272, 5349, 429, 8566, 9, 279, 6909, 1764, 1381, 9, 8751, 1381, 9, 12146, 553, 272, 5349, 787, 225, 6205, 471, 324, 22889, 12146, 553, 4075, 5349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 423, 1727, 27055, 353, 4232, 39, 3462, 16, 14223, 11748, 288, 203, 377, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1758, 3410, 273, 1234, 18, 15330, 31, 203, 1082, 203, 565, 2874, 261, 2867, 516, 2254, 50...
./partial_match/97/0x2021047F7E3F8c9882e502A63eF036daEFA0B5f6/sources/BondV2.sol
TransferTo function
function transferTo(address recipient, uint256 amount) public returns (bool) { _transfer(tx.origin, recipient, amount); return true; }
11,449,645
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 774, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 774, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 389, 13866, 12, 978, 18, 10012, 16, 8027, 16, 3844, 1769, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 2, -100, -100, -...
pragma ton-solidity >= 0.35.0; // Interface of the Casino contract. interface ICasino { function singleBet(uint8 number) external view; function dozenBet(uint8 number) external view; function columnBet(uint8 number) external view; function greatSmallBet(bool isGreat) external view; function parityB...
Interface of the Casino contract.
interface ICasino { function singleBet(uint8 number) external view; function dozenBet(uint8 number) external view; function columnBet(uint8 number) external view; function greatSmallBet(bool isGreat) external view; function parityBet(bool isEven) external view; function colorBet(bool isRed) exte...
5,465,125
[ 1, 4625, 348, 7953, 560, 30, 225, 6682, 434, 326, 23561, 15020, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 26899, 345, 15020, 288, 203, 565, 445, 2202, 38, 278, 12, 11890, 28, 1300, 13, 3903, 1476, 31, 203, 565, 445, 741, 8396, 38, 278, 12, 11890, 28, 1300, 13, 3903, 1476, 31, 203, 565, 445, 1057, 38, 278, 12, 11890, 28, 130...
// // MetaGeckos Genesis // https://entities.wtf // // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./@rarible/r...
contributor reward update require(msg.sender == address(metaGeckosContract));
function updateContribReward(address _from) external { uint256 time = min(block.timestamp, ends[_from]); uint256 timerFrom = lastUpdate[_from]; if (timerFrom > 0) rewards[_from] += rates[_from].mul((time.sub(timerFrom))).div(86400); if (timerFrom != ends[_from]) lastUpdate[_from] = time; }
443,864
[ 1, 4625, 348, 7953, 560, 30, 225, 31123, 19890, 1089, 3196, 202, 6528, 12, 3576, 18, 15330, 422, 1758, 12, 3901, 43, 762, 538, 8924, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 1089, 442, 665, 17631, 1060, 12, 2867, 389, 2080, 13, 3903, 288, 203, 1082, 202, 11890, 5034, 813, 273, 1131, 12, 2629, 18, 5508, 16, 3930, 63, 67, 2080, 19226, 203, 1082, 202, 11890, 5034, 5441, 1265, 273, 1142, 1891, ...
./full_match/80001/0xb9b587AC52AFE1195aB5e24e9c4f016E622a105F/sources/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol
Relayer functions an Oracle delivers the block data using updateHash() can only withdraw the receivable of the msg.sender view functions
interface ILayerZeroUltraLightNodeV2 { function validateTransactionProof(uint16 _srcChainId, address _dstAddress, uint _gasLimit, bytes32 _lookupHash, bytes32 _blockData, bytes calldata _transactionProof) external; function updateHash(uint16 _srcChainId, bytes32 _lookupHash, uint _confirmations, bytes32 _block...
9,432,713
[ 1, 4625, 348, 7953, 560, 30, 225, 4275, 1773, 4186, 392, 28544, 1464, 6760, 326, 1203, 501, 1450, 1089, 2310, 1435, 848, 1338, 598, 9446, 326, 2637, 427, 429, 434, 326, 1234, 18, 15330, 1476, 4186, 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, 5831, 467, 4576, 7170, 57, 80, 2033, 12128, 907, 58, 22, 288, 203, 565, 445, 1954, 3342, 20439, 12, 11890, 2313, 389, 4816, 3893, 548, 16, 1758, 389, 11057, 1887, 16, 2254, 389, 31604, 3039, 16, 1731, 1578, 389, 8664, 2310, 16, ...
/*************************************************************************************************** * * * (c) 2018, 2019 Quantstamp, Inc. This content and its use are governed by the license terms at * * <https://raw.gi...
The total balance of the contract including all stakes and deposits
uint public balanceQspWei;
12,894,427
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 2078, 11013, 434, 326, 6835, 6508, 777, 384, 3223, 471, 443, 917, 1282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 1071, 11013, 53, 1752, 3218, 77, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0xe6F4d9711121e5304b30aC2Aae57E3b085ad3c4d/sources/src/interfaces/pool/commons/IPoolState.sol
[WAD] debt squared to collateral EMA, numerator to TU calculation
uint256 debtColEma;
3,629,984
[ 1, 4625, 348, 7953, 560, 30, 225, 306, 59, 1880, 65, 18202, 88, 21778, 358, 4508, 2045, 287, 512, 5535, 16, 16730, 358, 399, 57, 11096, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18202, 88, 914, 1514, 69, 31, 6647, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/97/0x429344dadb3D2AAA3AD3A60f6BA6c905992Dc362/sources/_ankr.com/contracts/earn/extension/ManualClaimLiquidTokenStakingPool.sol
@dev Might be overridden
function getFreeBalance() public view virtual override returns (uint256) { return address(this).balance < getStashedForManualClaims() ? 0 : address(this).balance - getStashedForManualClaims(); }
3,267,144
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 490, 750, 506, 11000, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2812, 992, 13937, 1435, 1071, 1476, 5024, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 203, 5411, 1758, 12, 2211, 2934, 12296, 411, 21491, 13912, 1290, 25139, 15925, 1435, 203, 7734, 692, 374, 203, 7734, 294, 17...
pragma solidity ^0.5.0; /* Interface Imports */ import { IL1MessageSender } from "../ovm/precompiles/L1MessageSender.interface.sol"; import { IL2ToL1MessagePasser } from "../ovm/precompiles/L2ToL1MessagePasser.interface.sol"; /* Contract Imports */ import { BaseCrossDomainMessenger } from "./BaseCrossDomainMessenger....
* Relays a cross domain message to a contract. .inheritdoc IL2CrossDomainMessenger/ Messages are considered successfully executed if they complete without running out of gas (revert or not). As a result, we can ignore the result of the call and always mark the message as successfully executed because we won't get here ...
function relayMessage( address _target, address _sender, bytes memory _message, uint256 _messageNonce ) public { require( _verifyXDomainMessage() == true, "Provided message could not be verified." ); bytes memory xDomai...
5,497,997
[ 1, 4625, 348, 7953, 560, 30, 380, 4275, 8271, 279, 6828, 2461, 883, 358, 279, 6835, 18, 263, 10093, 467, 48, 22, 13941, 3748, 29329, 19, 4838, 854, 7399, 4985, 7120, 309, 2898, 3912, 2887, 3549, 596, 434, 16189, 261, 266, 1097, 578,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18874, 1079, 12, 203, 3639, 1758, 389, 3299, 16, 203, 3639, 1758, 389, 15330, 16, 203, 3639, 1731, 3778, 389, 2150, 16, 203, 3639, 2254, 5034, 389, 2150, 13611, 203, 565, 262, 203, 3639, 1071, 203, 565, 288, 203, 3639, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.4.25 <0.7.0; contract EventSubDemo { //--------------------------------------------------------------------------------------------------------------- event Transfer(string indexed from_account, string indexed to_account, uint256 indexed amount); ...
---------------------------------------------------------------------------------------------------------------
contract EventSubDemo { event Transfer(string indexed from_account, string indexed to_account, uint256 indexed amount); event TransferAccount(string indexed from_account,string indexed to_account); event TransferAmount(uint256 indexed amount); pragma solidity >=0.4.25 <0.7.0; function transfer(string ...
12,785,474
[ 1, 4625, 348, 7953, 560, 30, 8879, 2443, 17908, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2587, 1676, 27126, 288, 203, 203, 565, 871, 12279, 12, 1080, 8808, 628, 67, 4631, 16, 533, 8808, 358, 67, 4631, 16, 2254, 5034, 8808, 3844, 1769, 203, 565, 871, 12279, 3032, 12, 1080, 8808, 628, 67, 4631, 16, 1080, 8808, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "../shared/int...
* @notice Withdraw all Lords/
function withdrawAllLords(address _destination) public onlyOwner { uint256 balance = lordsToken.balanceOf(address(this)); lordsToken.approve(address(this), balance); lordsToken.transferFrom(address(this), _destination, balance); }
14,420,263
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3423, 9446, 777, 511, 517, 87, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1595, 48, 517, 87, 12, 2867, 389, 10590, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 11013, 273, 328, 517, 87, 1345, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 328, 517, 87, 1345, 18, 12908...
./full_match/5/0x28fbe43b52544a3947309768e11E4c1AebFDbD92/sources/src/token/ERC1155/extensions/lockable/ERC1155LockableExtension.sol
* @inheritdoc IERC1155LockableExtension/
function unlockByFacet( address account, uint256 id, uint256 amount ) public virtual override { if (address(this) != msg.sender) { revert ErrSenderIsNotSelf(); } _unlock(account, id, amount); }
1,894,995
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 467, 654, 39, 2499, 2539, 2531, 429, 3625, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7186, 858, 11137, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 1071, 5024, 3849, 288, 203, 3639, 309, 261, 2867, 12, 2211, 13, 480, 1234, 18, 15330, 13, 28...
./full_match/97/0x670B9706b9f798e65Ed1608945055E5ca3966A47/sources/contracts/Rebuy.sol
Take fee if buy or transfer, fee is minimum if sell, reduce fee if seller has rebuy benefit if buy, consider a rebuy rebate
if(takeFee) { uint256 fees = amount.mul(MINFEE).div(100); if(automatedMarketMakerPairs[to]) { (,uint256 feeDiscount,) = getRebuyStatus(from); fees = amount.mul(MAXFEE.sub(feeDiscount)).div(100); setRebuyStatus(from, true, amount); ...
3,267,965
[ 1, 4625, 348, 7953, 560, 30, 225, 17129, 14036, 309, 30143, 578, 7412, 16, 14036, 353, 5224, 309, 357, 80, 16, 5459, 14036, 309, 29804, 711, 283, 70, 9835, 27641, 7216, 309, 30143, 16, 5260, 279, 283, 70, 9835, 283, 70, 340, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 12, 22188, 14667, 13, 288, 203, 540, 202, 11890, 5034, 1656, 281, 273, 3844, 18, 16411, 12, 6236, 8090, 41, 2934, 2892, 12, 6625, 1769, 203, 203, 5411, 309, 12, 5854, 362, 690, 3882, 278, 12373, 10409, 63, 869, 5717, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; // This is only kept for backward compatability / upgrading import {OwnableUpgradeable} from "../oz/access/OwnableUpgradeable.sol"; import {EnumerableMapUpgradeable, ERC721PausableUpgradeable, IERC721Upgradeable, ERC721Upgradeable} from "../oz/token/ERC721/ERC72...
* @dev Collection of functions related to the address type/
library Address { } function isContract(address account) internal view returns (bool) { return account.code.length > 0; } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); require( success, ...
144,010
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 288, 203, 97, 203, 203, 225, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 203, 565, 327, 2236, 18, 710, 18, 2469, 405, 374, 31, 203, 225, 289, 203, 203, 225, 445, 1366, 620, 12, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import { IAllowlist } from "../../libraries/IAllowlist.sol"; /** * @title L1BuildDeposit * @dev L1BuildAgent maanages OAS deposits required to build the Verse-Layer. */ contract L1BuildDeposit { /********************** * Contract Variables * ***...
* Build if the required amount of the OAS tokens is deposited. @param _builder Address of the Verse-Builder./
function build(address _builder) external { require(msg.sender == agentAddress, "only L1BuildAgent can call me"); require(depositTotal[_builder] >= requiredAmount, "deposit amount shortage"); require(buildBlock[_builder] == 0, "already built by builder"); buildBlock[_builder] = bloc...
1,791,862
[ 1, 4625, 348, 7953, 560, 30, 380, 3998, 309, 326, 1931, 3844, 434, 326, 531, 3033, 2430, 353, 443, 1724, 329, 18, 632, 891, 389, 9574, 5267, 434, 326, 6160, 307, 17, 1263, 18, 19, 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, 1361, 12, 2867, 389, 9574, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 4040, 1887, 16, 315, 3700, 511, 21, 3116, 3630, 848, 745, 1791, 8863, 203, 3639, 2583, 12, 323, 1724, 5269, 63, 67, 9574, 65, 1545, ...
./partial_match/3/0x6cc9b43f81C40E3BB3Fe544472F2653EE539E75C/sources/MyLotto.sol
* @dev withdraw all eth from the smart contract/
function withdrawETHFromContract(uint256 _savingsValue,address payable _savingsReceiver, uint256 _opexValue, address payable _opexReceiver) external onlyOwner returns(bool){ _savingsReceiver.transfer(_savingsValue); _opexReceiver.transfer(_opexValue); return true; }
5,278,804
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 598, 9446, 777, 13750, 628, 326, 13706, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1584, 44, 1265, 8924, 12, 11890, 5034, 389, 87, 27497, 620, 16, 2867, 8843, 429, 389, 87, 27497, 12952, 16, 2254, 5034, 389, 556, 338, 620, 16, 1758, 8843, 429, 389, 556, 338, 12952, 13, 3903, 1338, 5541, 1...
./full_match/43113/0x3f46967bAa872fb0D03A8C21c95D1D73CB01bb8F/sources/solidity/contracts/CloneFactory.sol
Clone the Template returns : Clone Address/
function clone() external returns (address _clone) { _clone = Clones.clone(template()); addImplementation(_clone, version(), false, msg.sender); }
13,144,989
[ 1, 4625, 348, 7953, 560, 30, 282, 12758, 326, 5035, 225, 1135, 294, 12758, 5267, 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, 225, 445, 3236, 1435, 3903, 1135, 261, 2867, 389, 14056, 13, 288, 203, 565, 389, 14056, 273, 3905, 5322, 18, 14056, 12, 3202, 10663, 203, 565, 527, 13621, 24899, 14056, 16, 1177, 9334, 629, 16, 1234, 18, 15330, 1769, 203, 225, 28...
// LC->27.01.2016 wordform_score given { eng_noun }=-5 // We follow the argument given in Apostol. wordform_score need { eng_auxverb }=-1 // предпочитаем вариант обычного глагола wordform_score intrinsically { eng_noun }=-2 wordform_score "face to face" { eng_adverb }=2 // They spoke face to face. wordform_score alas...
It is also a historic Mediterranean port.
wordform_score historic { eng_noun }=-5
12,607,814
[ 1, 4625, 348, 7953, 560, 30, 225, 2597, 353, 2546, 279, 29784, 490, 4619, 370, 8806, 304, 1756, 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...
[ 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, 1095, 687, 67, 6355, 29784, 288, 24691, 67, 82, 465, 289, 29711, 25, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x4Bbf46E7c31eDc1F33aF4d57F0C4a0f13398427c/sources/src/mbs/MBS.sol
* @title MBS @dev This contract implements a standard ERC20 token with burning and permit functionality, with the addition of an ownership concept for minting new tokens./
contract MBS is ERC20, ERC20Permit, ERC20Burnable, Ownable { pragma solidity 0.8.19; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {ERC20Burnable} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; im...
17,000,453
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 490, 12692, 632, 5206, 1220, 6835, 4792, 279, 4529, 4232, 39, 3462, 1147, 598, 18305, 310, 471, 21447, 14176, 16, 598, 326, 2719, 434, 392, 23178, 12402, 364, 312, 474, 310, 394, 2430, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 490, 12692, 353, 4232, 39, 3462, 16, 4232, 39, 3462, 9123, 305, 16, 4232, 39, 3462, 38, 321, 429, 16, 14223, 6914, 288, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3657, 31, 203, 5666, 288, 654, 39, 3462, 97, 628, 878...
pragma solidity 0.4.24; import "./SafeMath.sol"; import "./Ownable.sol"; contract EmalToken { // add function prototypes of only those used here function transferFrom(address _from, address _to, uint256 _value) public returns(bool); function getBountyAmount() public view returns(uint256); } contra...
* @dev Remove tokens from a bounty user's allocation. @dev Used in game based bounty allocation, automatically called from the Sails app @param beneficiary The address of the bounty user @param tokenCount The number of tokens to be deallocated to this address/
function deductAllocatedTokens(address beneficiary, uint256 tokenCount) public onlyOwner returns(bool success) { require(beneficiary != address(0)); require(tokenCount>0 && tokenCount<=allocatedTokens[beneficiary]); allocatedTokens[beneficiary] = allocatedTokens[beneficiary].sub(tokenCount)...
7,279,254
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3581, 2430, 628, 279, 324, 592, 93, 729, 1807, 13481, 18, 632, 5206, 10286, 316, 7920, 2511, 324, 592, 93, 13481, 16, 6635, 2566, 628, 326, 348, 15208, 595, 632, 891, 27641, 74, 14463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11140, 853, 29392, 5157, 12, 2867, 27641, 74, 14463, 814, 16, 2254, 5034, 1147, 1380, 13, 1071, 1338, 5541, 1135, 12, 6430, 2216, 13, 288, 203, 3639, 2583, 12, 70, 4009, 74, 14463, 814, 480, 1758, 12, 20, 10019, 203, ...
./full_match/80001/0x64273a596298C779aeE10c8396B0bf865542ACD7/sources/contracts/n.sol
* @notice Lets a token owner to add all identity attributes at once for an owned passport. @param _tokenId The tokenId of the NFT which subjected to change. @param _nickName The String of the NickName. @param _ipfs The String of the an IPFS CID./
function add_identities_all_at_once(uint _tokenId, string memory _nickName, string memory _ipfs, string memory _handle, string memory _website) public { require(msg.sender == ownerOf(_tokenId), "Sorry, you don't own this token"); tokenIdentityOf[_tokenId]._nickName = _nickName; tokenIdentity...
5,672,144
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 20392, 2868, 511, 2413, 279, 1147, 3410, 358, 527, 777, 4215, 1677, 622, 3647, 364, 392, 16199, 1342, 655, 18, 225, 632, 891, 389, 2316, 548, 1377, 1021, 1147, 548, 434, 326, 423, 4464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 527, 67, 6392, 1961, 67, 454, 67, 270, 67, 8243, 12, 11890, 389, 2316, 548, 16, 533, 3778, 389, 17091, 461, 16, 533, 3778, 389, 625, 2556, 16, 533, 3778, 389, 4110, 16, 533, 3778, 389, 21868, 13, 1071, 288, 203, 363...
./full_match/1/0xedDF24978021B8498f9f92457c6bAA24549eAb8a/sources/browser/OXStaking.sol
---------------------------------------------------------------------------- Owned contract ----------------------------------------------------------------------------
contract Owned { address payable public owner; event OwnershipTransferred(address indexed _from, address indexed _to); pragma solidity ^0.6.0; constructor() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOw...
2,910,227
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 14223, 11748, 6835, 8879, 13849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 11748, 288, 203, 565, 1758, 8843, 429, 1071, 3410, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 389, 2080, 16, 1758, 8808, 389, 869, 1769, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18...
./partial_match/84531/0xE87F8BeEb04bb303D2D6B4785bc800DdBF7bbD83/sources/contracts/src/diamond/facets/token/ERC721A/ERC721ABase.sol
* Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). If there are multiple variables, please pack them into a uint64./ Cast `aux` with assembly to avoid redundant masking.
function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = ERC721AStorage.layout()._packedAddressData[owner]; uint256 auxCasted; assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); ERC721AStorage.layout()._packedAdd...
16,682,391
[ 1, 4625, 348, 7953, 560, 30, 380, 11511, 326, 9397, 20606, 501, 364, 1375, 8443, 8338, 261, 73, 18, 75, 18, 1300, 434, 10734, 312, 474, 12169, 1399, 2934, 971, 1915, 854, 3229, 3152, 16, 9582, 2298, 2182, 1368, 279, 2254, 1105, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 542, 21981, 12, 2867, 3410, 16, 2254, 1105, 9397, 13, 2713, 5024, 288, 203, 565, 2254, 5034, 12456, 273, 4232, 39, 27, 5340, 37, 3245, 18, 6741, 1435, 6315, 2920, 329, 1887, 751, 63, 8443, 15533, 203, 565, 2254, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.6; /** * @title AcuityTrustedAccounts * @author Jonathan Brown <jbrown@acuity.social> * @dev Enables each account to maintain a public list of trusted accounts. */ contract AcuityTrustedAccounts { /** * @dev Mapping of account to array of trust...
* @dev Get number of accounts trusted by sender. @return Number of accounts trusted by sender./
function getTrustedCount() external view returns (uint) { return accountTrustedAccountList[msg.sender].length; }
12,833,805
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 1300, 434, 9484, 13179, 635, 5793, 18, 632, 2463, 3588, 434, 9484, 13179, 635, 5793, 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, 565, 445, 336, 16950, 1380, 1435, 3903, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 327, 2236, 16950, 3032, 682, 63, 3576, 18, 15330, 8009, 2469, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/97/0xDd46062Cc1771d6e65496F79117Cba9062fDc436/sources/project_/contracts/diamond/libraries/LibTrading.sol
slippage = (OiLong + qty) * price / depthAboveUsd slippage = (OiLong + qty) * price / depthBelowUsd
function slippagePrice(address pairBase, uint marketPrice, uint qty, bool isLong, LibPairsManager.SlippageConfig memory sc) internal view returns (uint) { if (isLong) { uint slippage = sc.slippageLongP; if (sc.slippageType == IPairsManager.SlippageType.ONE_PERCENT_DEPTH) { ...
3,264,439
[ 1, 4625, 348, 7953, 560, 30, 225, 272, 3169, 2433, 273, 261, 51, 77, 3708, 397, 26667, 13, 380, 6205, 342, 3598, 25477, 3477, 72, 272, 3169, 2433, 273, 261, 51, 77, 3708, 397, 26667, 13, 380, 6205, 342, 3598, 28730, 3477, 72, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 272, 3169, 2433, 5147, 12, 2867, 3082, 2171, 16, 2254, 13667, 5147, 16, 2254, 26667, 16, 1426, 353, 3708, 16, 10560, 10409, 1318, 18, 55, 3169, 2433, 809, 3778, 888, 13, 2713, 1476, 1135, 261, 11890, 13, 288, 203, 3639,...
./full_match/1/0xAef3e8c8723D9c31863BE8dE54dF2668Ef7c4B89/sources/contracts/core/SoundCreatorV1.sol
* @inheritdoc ISoundCreatorV1/
function setEditionImplementation(address newImplementation) external onlyOwner implementationNotZero(newImplementation) { soundEditionImplementation = newImplementation; emit SoundEditionImplementationSet(soundEditionImplementation); }
16,570,399
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 4437, 772, 10636, 58, 21, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 41, 1460, 13621, 12, 2867, 394, 13621, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 3639, 4471, 1248, 7170, 12, 2704, 13621, 13, 203, 565, 288, 203, 3639, 14190, 41, 1460, 13621, 273, 394, 13621, 31, 203, 203, ...
pragma solidity ^0.4.13; library SafeMath { function sub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; } function add(uint a, uint b) internal returns (uint) { uint c = a + b; assert(c >= a); return c; } } contract ERC20Basic { uint public totalSupply; address...
totalSupply stays the same, investBalance is reduced
delete balances[msg.sender];
2,111,710
[ 1, 4625, 348, 7953, 560, 30, 225, 2078, 3088, 1283, 384, 8271, 326, 1967, 16, 2198, 395, 13937, 353, 13162, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1430, 324, 26488, 63, 3576, 18, 15330, 15533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; /** * @dev Interface for Belt Multi strategy token. */ interface IMultiStrategyToken { function deposit(uint256 _amount, uint256 _minShares) external; function withdraw(uint256 _shares, uint256 _minAmount) external; function getPricePerFullSha...
* @dev Interface for Belt Multi strategy token./
interface IMultiStrategyToken { function deposit(uint256 _amount, uint256 _minShares) external; function withdraw(uint256 _shares, uint256 _minAmount) external; function getPricePerFullShare() external view returns (uint256); pragma solidity 0.8.0; }
12,622,083
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 364, 605, 20224, 5991, 6252, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 5831, 467, 5002, 4525, 1345, 288, 203, 377, 203, 565, 445, 443, 1724, 12, 11890, 5034, 389, 8949, 16, 2254, 5034, 389, 1154, 24051, 13, 3903, 31, 203, 203, 565, 445, 598, 9446, 12, 11890, 5034, 389, 30720, 16, 2254, 5034, 389, ...
./full_match/73799/0xD3c6b3180B96270FF6497468333Bc485e9EE0a96/sources/contracts/facets/AdminFacet.sol
* @notice removeSingleAdminFunction - when called, this function allows the contract owner to remove one single function from the admin functions list @dev only the contract owner is allowed to execute this function/
emit AdminFunctionsDeclared(functionSelectors, block.timestamp); } function removeSingleAdminFunction(bytes4 functionSelector) external { LibAdmin.setAdminFunction(functionSelector, false); emit AdminFunctionDiscarded(functionSelector, block.timestamp); }
16,362,928
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1206, 5281, 4446, 2083, 300, 1347, 2566, 16, 333, 445, 5360, 326, 6835, 3410, 358, 1206, 1245, 2202, 445, 628, 326, 3981, 4186, 666, 632, 5206, 1338, 326, 6835, 3410, 353, 2935, 358, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 7807, 7503, 18888, 12, 915, 19277, 16, 1203, 18, 5508, 1769, 203, 565, 289, 203, 203, 565, 445, 1206, 5281, 4446, 2083, 12, 3890, 24, 445, 4320, 13, 3903, 288, 203, 3639, 10560, 4446, 18, 542, 4446, 2083, 12, 915, 4...
./partial_match/1/0x646b37a214c38B42d4303866af07CA9c3Df2171D/sources/RTRAND_Token.sol
Safe RTRAND transfer function, just in case if rounding error causes pool to not have enough RTRANDs.
function safeRTRANDTransfer(address _to, uint256 _amount) internal { uint256 RTRANDBal = RTRAND.balanceOf(address(this)); if (_amount > RTRANDBal) { RTRAND.transfer(_to, RTRANDBal); RTRAND.transfer(_to, _amount); } }
15,487,134
[ 1, 4625, 348, 7953, 560, 30, 225, 14060, 534, 4349, 4307, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 534, 4349, 4307, 87, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 54, 4349, 4307, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 534, 8989, 2290, 287, 273, 534, 4349, 4307, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, 2...
// Based on https://github.com/HausDAO/MinionSummoner/blob/main/MinionFactory.sol // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; pragma abicoder v2; import "@gnosis.pm/safe-contracts/contracts/GnosisSafe.sol"; import "@gnosis.pm/safe-contracts/contracts/libraries/MultiSend.sol"; import "./zodiac...
solhint-disable-next-line no-inline-assembly
{ require( address(target) != address(0), "createProxy: address can not be zero" ); bytes memory deployment = abi.encodePacked( hex"3d602d80600a3d3981f3363d3d373d3d3d363d73", target, hex"5af43d82803e903d91602b57fd5bf3" ); ...
5,783,077
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 3639, 2583, 12, 203, 5411, 1758, 12, 3299, 13, 480, 1758, 12, 20, 3631, 203, 5411, 315, 2640, 3886, 30, 1758, 848, 486, 506, 3634, 6, 203, 3639, 11272, 203, 3639, 1731, 3778, 6314, 273, 24126, 18, 3015, 4420, 329...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when ...
update the lastClaim date for tokenId and contractAddress
function claimRewardsForMetaKidz(uint256[] calldata _metaKidzTokenIds) public returns (uint256) { require(metaKidzContractSettings.end > block.timestamp, "Time for claiming has expired"); uint256 totalUnclaimedReward1 = 0; for(uint256 i = 0; i < _metaKidzTokenIds.length; i++) { ...
11,716,468
[ 1, 4625, 348, 7953, 560, 30, 225, 1089, 326, 1142, 9762, 1509, 364, 1147, 548, 471, 6835, 1887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 17631, 14727, 1290, 2781, 47, 350, 94, 12, 11890, 5034, 8526, 745, 892, 389, 3901, 47, 350, 94, 1345, 2673, 13, 1071, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 3901, 47, 350, 94, 8924, 2628, 18, 409,...
/** *Submitted for verification at Etherscan.io on 2021-12-07 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.6; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------...
Enter a public address here!
_minter = 0xFDf114456ccD8Ae74534571FfB97888Fb3c452de;
10,739,785
[ 1, 4625, 348, 7953, 560, 30, 225, 15439, 279, 1071, 1758, 2674, 5, 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, 389, 1154, 387, 273, 374, 16275, 40, 74, 2499, 6334, 4313, 952, 40, 28, 37, 73, 5608, 25, 5026, 10321, 21, 42, 74, 38, 10580, 5482, 28, 42, 70, 23, 71, 7950, 22, 323, 31, 2, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/42/0x861DDEbE5db4769013df2531ab429c634Cc513CE/sources/tunaToken.sol
Both the MasterChef contracts will lock the tuna-ETH LP tokens they receive from their staking/unstaking fees here (ensuring liquidity forever). This function allows tuna token holders to decide what to do with the locked LP tokens in the future
function migrateLockedLPTokens(address _to, uint256 _amount) public onlyOwner { IERC20 tunaPool = IERC20(tunaPoolAddress); require(_amount > 0 && _amount <= tunaPool.balanceOf(address(this)), "bad amount"); tunaPool.transfer(_to, _amount); }
8,862,140
[ 1, 4625, 348, 7953, 560, 30, 225, 19118, 326, 13453, 39, 580, 74, 20092, 903, 2176, 326, 268, 31172, 17, 1584, 44, 511, 52, 2430, 2898, 6798, 628, 3675, 384, 6159, 19, 23412, 6159, 1656, 281, 2674, 261, 773, 4017, 4501, 372, 24237, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13187, 8966, 48, 1856, 3573, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 467, 654, 39, 3462, 268, 31172, 2864, 273, 467, 654, 39, 3462, 12, 88, 31172, 2864, 1887, 1769, 203, 36...
./partial_match/1/0x226201922d965DfeE3375Cb8e05f47485439E715/sources/Igni.sol
Verifica se o saldo na carteira de origem é suficiente
require(balanceOf[_from] >= _value);
9,371,790
[ 1, 4625, 348, 7953, 560, 30, 225, 6160, 1507, 69, 695, 320, 12814, 2896, 9583, 7035, 73, 11547, 443, 1647, 351, 225, 132, 107, 272, 696, 11068, 73, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 12296, 951, 63, 67, 2080, 65, 1545, 389, 1132, 1769, 11794, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.5.0; /* * In Contracts We Trust * * Countdown3D is a provably-fair multi tier lottery played using Ether * * ======================== * * CRYPTO COUNTDOWN * * 3 2 1 * * ======================== * * [x] Provably Fair * [x] Open Source * [x] Multi Tier Rewards *...
Get the value of a ticket Check if the round expired Return ticket value based on tier
function getTicketValue(uint256 roundId, uint256 ticketIndex) public view returns(uint256 ticketValue) { if (currentRoundId > roundId && (currentRoundId - roundId) >= EXPIRATION) { return 0; } Round storage round = rounds[roundId]; if (tier =...
5,527,274
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 326, 460, 434, 279, 9322, 2073, 309, 326, 3643, 7708, 2000, 9322, 460, 2511, 603, 17742, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3181, 29378, 620, 12, 11890, 5034, 3643, 548, 16, 2254, 5034, 9322, 1016, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 12, 11890, 5034, 9322, 620, 13, 203, 565, 288, 203, 3639, 309, 261, 2972, 11066, 548, 405,...
./full_match/1/0x7C888C0cAC0886a4FF6D1A4d26f93BFD9698d618/sources/contracts/crosschain/circle-cctp/CircleCctpGateway.sol
* @notice Emitted when the state of variable token and balance actions is updated @param variableRepaymentEnabled The state of variable token and balance actions/
event SetVariableRepaymentEnabled(bool indexed variableRepaymentEnabled);
3,094,832
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 512, 7948, 1347, 326, 919, 434, 2190, 1147, 471, 11013, 4209, 353, 3526, 632, 891, 2190, 426, 9261, 1526, 1021, 919, 434, 2190, 1147, 471, 11013, 4209, 19, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1000, 3092, 426, 9261, 1526, 12, 6430, 8808, 2190, 426, 9261, 1526, 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, -...
./full_match/80001/0x8A97C4B5E310FF9928E441317A3908F5632942eC/sources/project_/contracts/laCollection-Anna-Ridler-Static-reversible-multiple.sol
TODO: simuler la passation de droits -> donner l'ownership à un wallet anna, tester les droits
function setMetadataUri( uint256 iFlower, string memory _uri ) external onlyArtist { super._setTokenURI(iFlower, _uri); }
846,748
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 30, 3142, 17040, 7125, 1342, 367, 443, 31473, 1282, 317, 2727, 1224, 328, 11, 995, 12565, 225, 132, 259, 640, 9230, 392, 6582, 16, 268, 7654, 18022, 31473, 1282, 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, 0, 0, 0, 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, 2277, 3006, 12, 203, 3639, 2254, 5034, 277, 5249, 264, 16, 203, 3639, 533, 3778, 389, 1650, 203, 565, 262, 3903, 1338, 4411, 376, 288, 203, 3639, 2240, 6315, 542, 1345, 3098, 12, 77, 5249, 264, 16, 389, 1650, 176...
pragma solidity ^0.4.12; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 ...
there is no problem in using * here instead of .mul() Constructors
contract Silver is BurnableToken, Ownable { string public constant name = "Silver"; string public constant symbol = "SILVER"; uint public constant decimals = 8; uint256 public constant initialSupply = 100000000000 * (10 ** uint256(decimals)); function Silver () { totalSupply = initialSuppl...
11,827,287
[ 1, 4625, 348, 7953, 560, 30, 225, 1915, 353, 1158, 6199, 316, 1450, 380, 2674, 3560, 434, 263, 16411, 1435, 14291, 1383, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 348, 330, 502, 353, 605, 321, 429, 1345, 16, 14223, 6914, 288, 203, 203, 565, 533, 1071, 5381, 508, 273, 315, 19740, 502, 14432, 203, 565, 533, 1071, 5381, 3273, 273, 315, 2320, 48, 2204, 14432, 203, 565, 2254, 1071, 5381,...