file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
pragma solidity 0.5.10; import 'openzeppelin-solidity/contracts/token/ERC20/ERC20.sol'; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import {BytesLib} from "@summa-tx/bitcoin-spv-sol/contracts/BytesLib.sol"; import './Loans.sol'; import './Medianizer.sol'; import './DSMath.sol'; /** * @title Atomic ...
* @notice Container for the Bitcoin refundable and seizable signature information @member refundableSig The Bitcoin refundable signature to move collateral to swap P2WSH @member seizableSig The Bitcoin seizable signature to move collateral to swap P2WSH/
struct Sig { bytes refundableSig; bytes seizableSig; }
1,065,989
[ 1, 2170, 364, 326, 24420, 16255, 429, 471, 695, 6934, 3372, 1779, 632, 5990, 16255, 429, 8267, 1021, 24420, 16255, 429, 3372, 358, 3635, 4508, 2045, 287, 358, 7720, 453, 22, 2651, 44, 632, 5990, 695, 6934, 8267, 1021, 24420, 695, 6934...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 1958, 21911, 288, 203, 3639, 1731, 16255, 429, 8267, 31, 203, 3639, 1731, 695, 6934, 8267, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address publi...
* @dev Inits an owner, totalSupply and assigns tokens for the reserved addresses. Owner = 55% Team = 20% Company = 23% Wallet = 2% Fires ERC20 & ERC223 transfer events/ set the owner init totalSupply TODO: use info instead of empty. for example: team reserved Owner = 55% Team = 20% Company = 23% Wallet = 2%
constructor() public { owner = msg.sender; admin = 0xfb36E83F6bE7C0E9ba9FF403389001f2312121aF; uint256 INITIAL_SUPPLY = 223684211 * (10**decimals); totalSupply_ = INITIAL_SUPPLY; bytes memory empty; uint256 ownerSupply = 12302631605 * (10**(decimals-2)); balances[msg.sender] = ownerSu...
14,086,569
[ 1, 382, 1282, 392, 3410, 16, 2078, 3088, 1283, 471, 22698, 2430, 364, 326, 8735, 6138, 18, 16837, 273, 21483, 9, 10434, 273, 4200, 9, 26782, 273, 10213, 9, 20126, 273, 576, 9, 478, 2814, 4232, 39, 3462, 473, 4232, 39, 3787, 23, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3885, 1435, 1071, 288, 203, 565, 3410, 273, 1234, 18, 15330, 31, 203, 565, 3981, 273, 374, 5841, 70, 5718, 41, 10261, 42, 26, 70, 41, 27, 39, 20, 41, 29, 12124, 29, 2246, 7132, 3707, 6675, 11664, 74, 4366, 2138, 26009, 6...
./partial_match/1/0x93A20D8EbA6997ABB53aE94bd01727C8e74c8734/sources/TokenCore.sol
* @dev toUint256/ solhint-disable-next-line no-inline-assembly
function toUint256(bytes memory _source) internal pure returns (uint256 result) { require(_source.length == 32, "BC01"); assembly { result := mload(add(_source, 0x20)) } }
3,566,153
[ 1, 869, 5487, 5034, 19, 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, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 358, 5487, 5034, 12, 3890, 3778, 389, 3168, 13, 2713, 16618, 1135, 261, 11890, 5034, 563, 13, 288, 203, 565, 2583, 24899, 3168, 18, 2469, 422, 3847, 16, 315, 16283, 1611, 8863, 203, 565, 19931, 288, 203, 1377, 563, 519,...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity >=0.8.4; import "@prb/contracts/token/erc20/IErc20.sol"; import "@prb/contracts/access/IOwnable.sol"; import "../external/chainlink/IAggregatorV3.sol"; /// @title IChainlinkOperator /// @author Hifi /// @notice Aggregates the price feeds provided by Chainlink. int...
@title IChainlinkOperator @author Hifi @notice Aggregates the price feeds provided by Chainlink.
interface IChainlinkOperator { error ChainlinkOperator__DecimalsMismatch(string symbol, uint256 decimals); error ChainlinkOperator__FeedNotSet(string symbol); error ChainlinkOperator__PriceZero(string symbol); event DeleteFeed(IErc20 indexed asset, IAggregatorV3 indexed feed); event SetFeed(IE...
13,140,759
[ 1, 45, 3893, 1232, 5592, 225, 670, 704, 225, 10594, 815, 326, 6205, 27684, 2112, 635, 7824, 1232, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 3893, 1232, 5592, 288, 203, 203, 565, 555, 7824, 1232, 5592, 972, 31809, 16901, 12, 1080, 3273, 16, 2254, 5034, 15105, 1769, 203, 203, 565, 555, 7824, 1232, 5592, 972, 8141, 1248, 694, 12, 1080, 3273, 1769, 203, 203, 5...
./partial_match/1/0x8fBeDAFCc0a4EDA503ceEd3FF64e668AB27B4D65/sources/xBRKB.sol
* @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, `PAUSER_ROLE` to the account that deploys the contract. See {ERC20-constructor}./Mint amount to the sender
constructor(string memory contractName, string memory contractSymbol, uint256 initialAmount, uint8 decimals) ERC20(contractName, contractSymbol) { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(MINTER_ROLE, _msgSender()); _setupRole(PAUSER_ROLE, _msgSender()); _setupDecimal...
2,604,112
[ 1, 29598, 1375, 5280, 67, 15468, 67, 16256, 9191, 1375, 6236, 2560, 67, 16256, 9191, 1375, 4066, 4714, 67, 16256, 68, 358, 326, 2236, 716, 5993, 383, 1900, 326, 6835, 18, 2164, 288, 654, 39, 3462, 17, 12316, 5496, 19, 49, 474, 3844,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 1080, 3778, 6835, 461, 16, 533, 3778, 6835, 5335, 16, 2254, 5034, 2172, 6275, 16, 2254, 28, 15105, 13, 4232, 39, 3462, 12, 16351, 461, 16, 6835, 5335, 13, 288, 203, 3639, 389, 8401, 2996, 12, 5280, 67, 15468, 67,...
./full_match/1/0x3499933f1808B1b43Bfc126359c25e2592Ea8bd8/sources/contracts/Airdrop.sol
* Notify metadata changed*/
event MetadataChanges(uint256 indexed _id, string _value, address indexed caller);
2,987,667
[ 1, 9168, 1982, 3550, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 6912, 7173, 12, 11890, 5034, 8808, 389, 350, 16, 533, 389, 1132, 16, 1758, 8808, 4894, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0x30F06feCeFB1DAd39bB850A9D8a3Bf1E53EF0136/sources/browser/ERC20_Gen_Lib.sol
---------------------------------------------------------------------------- Owned contract ----------------------------------------------------------------------------
contract Owned { address public owner; address public newOwner; event OwnershipTransferred(address indexed _from, address indexed _to); constructor(address p_owner) public { owner = p_owner; } modifier onlyOwner { require(msg.sender == owner); _; } function tr...
8,152,548
[ 1, 5802, 7620, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 11748, 288, 203, 565, 1758, 1071, 3410, 31, 203, 565, 1758, 1071, 394, 5541, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 389, 2080, 16, 1758, 8808, 389, 869, 1769, 203, 203, 565, 3885, 12,...
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma experimental ABIEncoderV2; import "../helpers/LiquityHelper.sol"; import "../../../utils/TokenUtils.sol"; import "../../ActionBase.sol"; contract LiquityOpen is ActionBase, LiquityHelper { using TokenUtils for address; struct Params { ui...
Address where to pull the collateral from
address from;
5,390,605
[ 1, 1887, 1625, 358, 6892, 326, 4508, 2045, 287, 628, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 628, 31, 7734, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Addres...
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "LEGASYS::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { retu...
240,197
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 19384, ...
pragma solidity 0.5.17; /* import "./iElasticTokenInterface.sol"; */ import "./iTokenGovernance.sol"; import "../lib/SafeERC20.sol"; contract iElasticToken is iTokenGovernanceToken { // Modifiers modifier onlyGov() { require(msg.sender == gov); _; } modifier onlyRebaser() { re...
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. This method is included for ERC20 compatibility. increaseAllowance and decreaseAllowance should be used instead. Changing an allowance with this method brings the risk that someone may transfer both the old and the new al...
function approve(address spender, uint256 value) external returns (bool) { _allowedFragments[msg.sender][spender] = value; emit Approval(msg.sender, spender, value); return true; }
6,403,358
[ 1, 12053, 537, 326, 2275, 1758, 358, 17571, 326, 1269, 3844, 434, 2430, 603, 12433, 6186, 434, 1234, 18, 15330, 18, 1220, 707, 353, 5849, 364, 4232, 39, 3462, 8926, 18, 10929, 7009, 1359, 471, 20467, 7009, 1359, 1410, 506, 1399, 3560,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 460, 13, 203, 565, 3903, 203, 565, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 389, 8151, 27588, 63, 3576, 18, 15330, 6362, 87, 1302, 264, 65, 273, 460, 31, 203, 3...
//Address: 0x0f6029ebde2ecd9ab4d60dd5d0a297e9e59bf77a //Contract name: ADXExchange //Balance: 0 Ether //Verification Date: 11/16/2017 //Transacion Count: 34 // CODE STARTS HERE pragma solidity ^0.4.15; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control...
This can be done if a bid is accepted, but expired This is essentially the protection from never settling on verification, or from publisher not executing the bid within a reasonable time
function refundBid(uint _bidId) onlyRegisteredAcc onlyExistingBid(_bidId) onlyBidOwner(_bidId) onlyBidState(_bidId, BidState.Accepted) { Bid storage bid = bidsById[_bidId]; require(SafeMath.add(bid.acceptedTime, bid.requiredExecTime) < now); bid.state = BidState.Expired; require(token.transfer(bid.ad...
6,398,717
[ 1, 2503, 848, 506, 2731, 309, 279, 9949, 353, 8494, 16, 1496, 7708, 1220, 353, 18518, 11220, 326, 17862, 628, 5903, 26319, 2456, 603, 11805, 16, 578, 628, 12855, 486, 11274, 326, 9949, 3470, 279, 23589, 813, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 16255, 17763, 12, 11890, 389, 19773, 548, 13, 203, 202, 202, 3700, 10868, 8973, 203, 202, 202, 3700, 9895, 17763, 24899, 19773, 548, 13, 203, 202, 202, 3700, 17763, 5541, 24899, 19773, 548, 13, 203, 202, 202, 3700, 17763,...
./partial_match/1/0x0241855466D655e9EA5D195f55f1e11ED047AB0F/sources/DT.sol
消毁币 检查当前帐号余额是否足够 检查_value是否有效 从sender账户中中减去一定数量的token 更新发行币的总量 消币成功后触发Burn事件,并返回true
function burn(uint256 _value) public returns (bool success) { assert(balanceOf[msg.sender] >= _value); assert(_value > 0); balanceOf[msg.sender] = SafeMath.safeSub(balanceOf[msg.sender], _value); totalSupply = SafeMath.safeSub(totalSupply,_value); emit Burn(msg.sender, _value...
3,918,949
[ 1, 167, 119, 235, 167, 112, 228, 166, 121, 228, 225, 167, 101, 227, 167, 258, 103, 166, 126, 246, 166, 236, 240, 166, 121, 243, 166, 242, 120, 165, 126, 252, 170, 100, 256, 167, 251, 112, 166, 243, 104, 169, 119, 116, 166, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 18305, 12, 11890, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 1815, 12, 12296, 951, 63, 3576, 18, 15330, 65, 1545, 389, 1132, 1769, 203, 3639, 1815, 24899, 1132, 405, 374, 1769, 203, 3639, 1101...
./full_match/80001/0x7717aB77bf46033626CCF17366015A867f6FC9b2/sources/project:/contracts/superfluid/SuperfluidPool.sol
TODO transferability of admin should be allowed nft transferable? customizable metadata for the NFT can be considered solhint-disable-next-line no-empty-blocks What happens to the Admin NFT?
function transferAdmin(address admin_) external { }
5,577,494
[ 1, 6241, 7412, 2967, 434, 3981, 1410, 506, 2935, 290, 1222, 7412, 429, 35, 1679, 6934, 1982, 364, 326, 423, 4464, 848, 506, 7399, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 5531, 17, 7996, 18734, 10555, 358, 326, 7807, 423...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 4446, 12, 2867, 3981, 67, 13, 3903, 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, ...
./full_match/80001/0xF7D2ABDc8e53800C6DDFaaDe63E45d5a100fF6DA/sources/project_/contracts/Platform/XG_Game_ERC721A.sol
@notice Opensea contract-level metadata @dev Return contract URI for Opensea @return contractURI (string memory) Returns contract URI
function contractURI() public view returns (string memory) { return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, "games/", gameId.toString())) : ""; }
848,665
[ 1, 3678, 307, 69, 6835, 17, 2815, 1982, 225, 2000, 6835, 3699, 364, 3502, 307, 69, 327, 6835, 3098, 261, 1080, 3778, 13, 2860, 6835, 3699, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6835, 3098, 1435, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 203, 5411, 1731, 12, 1969, 3098, 2934, 2469, 405, 374, 203, 7734, 692, 533, 12, 21457, 18, 3015, 4420, 329, 12, 1969, 3098, 16, 315, 75, 75...
pragma solidity >=0.5.0; // import "../node_modules/openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /******************************************************************...
record flight insurance purchased
passengerFlightInsurance[passengerAddress][flightId] = insurancePurchased;
15,868,527
[ 1, 3366, 25187, 2763, 295, 1359, 5405, 343, 8905, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1342, 14348, 24243, 5048, 295, 1359, 63, 5466, 14348, 1887, 6362, 19131, 548, 65, 273, 2763, 295, 1359, 10262, 343, 8905, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {Initializable} from "@openzeppelin/contracts/proxy/Initializable.sol"; import {IWPowerPerp} from "../interfaces/IWPowerPerp.sol"; /** * @notice ERC20 Token representing wrapped long po...
* @notice init wPowerPerp contract @param _controller controller address/
function init(address _controller) external initializer { require(_controller != address(0), "Invalid controller address"); controller = _controller; }
12,896,372
[ 1, 2738, 341, 13788, 2173, 84, 6835, 225, 389, 5723, 2596, 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, 0, 0, 0, 0, 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, 1208, 12, 2867, 389, 5723, 13, 3903, 12562, 288, 203, 3639, 2583, 24899, 5723, 480, 1758, 12, 20, 3631, 315, 1941, 2596, 1758, 8863, 203, 3639, 2596, 273, 389, 5723, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -...
pragma solidity >=0.4.23; /// @title Math operations with safety checks /// @author Melonport AG <team@melonport.com> /// @notice From https://github.com/status-im/status-network-token/blob/master/contracts/safeMath.sol library safeMath { function mul(uint a, uint b) internal returns (uint) { uint c = a * b; ...
quantity of Melon withdrawn so far
uint public withdrawn;
12,769,783
[ 1, 16172, 434, 490, 292, 265, 598, 9446, 82, 1427, 10247, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 598, 9446, 82, 31, 1850, 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/5/0x5a08edfCC269505A42fd594F7a00288E4E40BF4b/sources/lib/ERC721B/contracts/extensions/ERC721BBaseTokenURI.sol
* @dev ERC721B token where token URIs are determined with a base URI/
abstract contract ERC721BBaseTokenURI is ERC721B, IERC721Metadata { using Strings for uint256; string private _baseTokenURI; function tokenURI(uint256 tokenId) public view virtual returns(string memory) { if(!_exists(tokenId)) revert NonExistentToken(); string memory baseURI = _baseTokenURI; return ...
1,867,378
[ 1, 654, 39, 27, 5340, 38, 1147, 1625, 1147, 24565, 854, 11383, 598, 279, 1026, 3699, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 38, 2171, 1345, 3098, 353, 4232, 39, 27, 5340, 38, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 225, 1450, 8139, 364, 2254, 5034, 31, 203, 225, 533, 3238, 389, 1969, 1345, 3098, 31, 203, 203, 2...
./partial_match/1/0xC8B4a74F7685e901D3c57a5Ec37aF8Ad450d8784/sources/PROGENS.sol
* @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `...
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender...
4,078,473
[ 1, 19297, 2430, 1375, 8949, 68, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 353, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, 5859, 1147, 1656, 281, 16, 9026, 310, 1791, 28757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628...
/** *Submitted for verification at Etherscan.io on 2022-01-31 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.11; /// @title ClonesWithImmutableArgs /// @author wighawag, zefram.eth /// @notice Enables creating clone contracts with immutable args library ClonesWithImmutableArgs { ...
@notice The ERC20 transfer function Cannot overflow because the sum of all user balances can't exceed the max uint256 value.
function transfer(address to, uint256 amount) public override returns (bool) { uint256 senderBalance = balanceOf[msg.sender]; uint256 senderClaimedUnderlyingAmount = claimedUnderlyingAmount[ msg.sender ]; ...
2,133,681
[ 1, 1986, 4232, 39, 3462, 7412, 445, 14143, 9391, 2724, 326, 2142, 434, 777, 729, 324, 26488, 848, 1404, 9943, 326, 943, 2254, 5034, 460, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 7412, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 203, 5411, 1071, 203, 5411, 3849, 203, 5411, 1135, 261, 6430, 13, 203, 3639, 288, 203, 5411, 2254, 5034, 5793, 13937, 273, 11013, 951, 63, 3576, 18, 15330, 15533, 203, 541...
pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; contract LongBar is ERC20("LongBar", "xLONG"){ using SafeMath for uint256; IERC20 public long; constructor(IERC20 _...
Enter the bar. Pay some LONGs. Earn some shares.
function enter(uint256 _amount) public { uint256 totalLong = long.balanceOf(address(this)); uint256 totalShares = totalSupply(); if (totalShares == 0 || totalLong == 0) { _mint(msg.sender, _amount); uint256 what = _amount.mul(totalShares).div(totalLong); _...
12,903,401
[ 1, 10237, 326, 4653, 18, 13838, 2690, 14011, 87, 18, 512, 1303, 2690, 24123, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6103, 12, 11890, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 2254, 5034, 2078, 3708, 273, 1525, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 2254, 5034, 2078, 24051, 273, 2078, 3088, 1283, 5621, 203, 3639, 309, ...
./partial_match/3/0x088312248BD02633360658A53a3AeDa5412e3A9D/sources/DataStructures1.sol
Metodo 1 los datos deben ir en orden.
function addToArrOfStructs1(string memory _marca, uint _precio) public { motos.push(Motos(_marca,_precio)); }
16,633,798
[ 1, 12244, 7370, 404, 22148, 19836, 18202, 275, 9482, 570, 4642, 275, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5715, 951, 3823, 87, 21, 12, 1080, 3778, 389, 3684, 5353, 16, 2254, 389, 4036, 1594, 13, 1071, 288, 203, 3639, 11310, 538, 18, 6206, 12, 49, 12440, 24899, 3684, 5353, 16, 67, 4036, 1594, 10019, 203, 565, 289, 20...
pragma solidity 0.6.12; abstract contract ERC20Interface { function totalSupply() public virtual view returns (uint); function balanceOf(address tokenOwner) public virtual view returns (uint256 balance); function allowance(address tokenOwner, address spender) public virtual view returns (uint256 rema...
------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------
contract Token is ERC20Interface, Owned { using SafeMath for uint256; string public symbol = "BREE"; string public name = "CBDAO"; uint256 public decimals = 18; address stakeFarmingContract; mapping(address => uint256) balances; mapping(address => mapping(address =>...
7,415,760
[ 1, 29461, 11417, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 288, 203, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 203, 565, 533, 1071, 3273, 273, 315, 38, 9719, 14432, 203, 203, 203, 565, 533, 1071, 225, 508, ...
./full_match/4/0xFA3f369c2979bf10841680A3C49F8BD2fC4FD93D/sources/HelloWorld.sol
Store a message in the smart contract Set the message
contract HelloWorld { string storedMessage; pragma solidity ^0.8.4; function set(string memory message) public { storedMessage = message; } function get() public view returns (string memory) { return storedMessage; } }
12,456,678
[ 1, 2257, 279, 883, 316, 326, 13706, 6835, 1000, 326, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 20889, 18071, 288, 203, 565, 533, 4041, 1079, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 24, 31, 203, 565, 445, 444, 12, 1080, 3778, 883, 13, 1071, 288, 203, 3639, 4041, 1079, 273, 883, 31, 203, 565, 28...
./full_match/43114/0x0EfC29e196da2e81AFE96eDD041bEdCdF9e74893/sources/contracts/synapse/wrappers/NerveMetaBridgeZap.sol
swap deposit into bridge, gets nUSD
function swapAndRedeem( address to, uint256 chainId, IERC20 token, uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline ) external { metaTokens[tokenIndexFrom].safeTransferFrom(msg.sender, address(this), dx); uint256 swappedAmount = metaSwap....
4,606,615
[ 1, 22270, 443, 1724, 1368, 10105, 16, 5571, 290, 3378, 40, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 7720, 1876, 426, 24903, 12, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 2687, 548, 16, 203, 565, 467, 654, 39, 3462, 1147, 16, 203, 565, 2254, 28, 1147, 1016, 1265, 16, 203, 565, 2254, 28, 1147, 1016, 774, 16, 20...
./partial_match/1/0x8A1D6b7fd5aa061AFe4Ce7F2Aaac0731A2266D41/sources/src/managers/StrategyRegistry.sol
there will be dust left after all vaults sync
function claimWithdrawals(address[] calldata strategies_, uint16a16 dhwIndexes, uint256[] calldata strategyShares) external onlyRole(ROLE_SMART_VAULT_MANAGER, msg.sender) returns (uint256[] memory) { address[] memory assetGroup; uint256[] memory totalWithdrawnAssets; ...
15,730,805
[ 1, 18664, 903, 506, 302, 641, 2002, 1839, 777, 9229, 87, 3792, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 7516, 1190, 9446, 1031, 12, 2867, 8526, 745, 892, 20417, 67, 16, 2254, 2313, 69, 2313, 11007, 91, 8639, 16, 2254, 5034, 8526, 745, 892, 6252, 24051, 13, 203, 3639, 3903, 203, 3639, 1338, 2996, 12, 16256, 67, 7303, 4928,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contract...
* @notice Constructor @param _token address @param _name string @param _symbol string @param _duration uint256/
) { token = _token; name = _name; symbol = _symbol; duration = _duration; minDelay = _minDelay; }
12,892,481
[ 1, 6293, 225, 389, 2316, 1758, 225, 389, 529, 533, 225, 389, 7175, 533, 225, 389, 8760, 2254, 5034, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 262, 288, 203, 565, 1147, 273, 389, 2316, 31, 203, 565, 508, 273, 389, 529, 31, 203, 565, 3273, 273, 389, 7175, 31, 203, 565, 3734, 273, 389, 8760, 31, 203, 565, 1131, 6763, 273, 389, 1154, 6763, 31, 203, 225, 289, 203, ...
pragma solidity ^0.4.19; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function sub(...
SafeMath.sub will throw if there is not enough balance.
function transfer(address _to, uint _value) public returns (bool) { require(_to != address(0)); require(_value <= balances[msg.sender]); if(!isContract(_to)){ balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); ...
13,659,427
[ 1, 9890, 10477, 18, 1717, 903, 604, 309, 1915, 353, 486, 7304, 11013, 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, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 24899, 1132, 1648, 324, 26488, 63, 3576, 18, 15330, 19226, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "../core/Common.sol"; import "../oracle/OracleFacade.sol"; /** * @title Main insurance contract * @dev Implement main contract for Insurance. contract between insurance and farmers is materialized in here * * @notice inhertit {Common} contract...
* @dev calculate at anytime the minimum liquidity that must be locked within the contract @return ammount Basically , always enough money to pay keepers and compensation in worst case scenarios/
function minimumAmount() public view returns (uint256) { return (KEEPER_FEE * totalOpenContracts) + (PERMIUM_PER_HA * totalOpenSize * rules[Severity.D4]) / 10; }
13,043,466
[ 1, 11162, 622, 1281, 957, 326, 5224, 4501, 372, 24237, 716, 1297, 506, 8586, 3470, 326, 6835, 327, 2125, 4778, 7651, 1230, 269, 3712, 7304, 15601, 358, 8843, 3455, 414, 471, 1161, 25159, 316, 22952, 648, 22456, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 5224, 6275, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 203, 5411, 261, 6859, 41, 3194, 67, 8090, 41, 380, 2078, 3678, 20723, 13, 397, 203, 5411, 261, 3194, 7492, 2799, 67, 3194, 67, 19191, 380, ...
/** *Submitted for verification at Etherscan.io on 2021-11-02 */ // SPDX-License-Identifier: MIT OR Apache-2.0 pragma solidity 0.8.6; pragma abicoder v2; // solhint-disable-line /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonRe...
Anytime fees are distributed that indicates the first sale is complete, which will not change state during a secondary sale. This must come after the `getFees` call above as this state is considered in the function.
nftContractToTokenIdToFirstSaleCompleted[tokenId] = true;
6,577,129
[ 1, 2961, 957, 1656, 281, 854, 16859, 716, 8527, 326, 1122, 272, 5349, 353, 3912, 16, 1492, 903, 486, 2549, 919, 4982, 279, 9946, 272, 5349, 18, 1220, 1297, 12404, 1839, 326, 1375, 588, 2954, 281, 68, 745, 5721, 487, 333, 919, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 290, 1222, 8924, 774, 1345, 28803, 3759, 30746, 9556, 63, 2316, 548, 65, 273, 638, 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,...
./full_match/1/0xE1b06a2A0DBcC98BD4C75027Ddd434531CcD603f/sources/contracts/token/Soar.sol
treasury (1x) swap eth to treasury zap amount swap add liquidity
function _swapTax() internal swapping { address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); uint256 balance = pendingTax; delete pendingTax; uint256 treasuryAmount = balance / 5; if (treasuryAmount > 0) { u...
4,971,146
[ 1, 27427, 345, 22498, 261, 21, 92, 13, 7720, 13750, 358, 9787, 345, 22498, 11419, 3844, 7720, 527, 4501, 372, 24237, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 22270, 7731, 1435, 2713, 7720, 1382, 288, 203, 3639, 1758, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 22, 1769, 203, 3639, 589, 63, 20, 65, 273, 1758, 12, 2211, 1769, 203, 3639, 589, 63, 21, 65, 273, 4633, 18, ...
./partial_match/1/0x860744711d50e6671BF1c8e40eCEDaB7D53Ca3EA/sources/XChanger.sol
oneSplit parts, 1-100 affects gas usage
uint public oneSplitParts;
2,865,065
[ 1, 476, 5521, 2140, 16, 404, 17, 6625, 30058, 16189, 4084, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 1245, 5521, 4305, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x8281f2bECfF37326Eb6cBE33527434611558B031/sources/PoolController.sol
solhint-disable-line
pool.updatedAt = block.timestamp;
4,153,857
[ 1, 18281, 11317, 17, 8394, 17, 1369, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2845, 18, 7007, 861, 273, 1203, 18, 5508, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x0000000000f5A96Dc85959cAeb0Cfe680f108FB5/sources/contracts/modules/SoundMetadata.sol
* @inheritdoc ISoundMetadata/
function tokenURI(uint256 tokenId) external view returns (string memory) { uint8 tier = ISoundEditionV2(msg.sender).tokenTier(tokenId); string memory uri = baseURI(msg.sender, tier); : tokenId; string memory indexString = tokenId == goldenEggTokenId(msg.sender, tier) ...
5,013,366
[ 1, 36, 10093, 4437, 772, 2277, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 3098, 12, 11890, 5034, 1147, 548, 13, 3903, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 2254, 28, 17742, 273, 4437, 772, 41, 1460, 58, 22, 12, 3576, 18, 15330, 2934, 2316, 15671, 12, 2316, 548, 1769, 203, 3...
pragma solidity ^0.5.2; import "../interfaces/IToken.sol"; /** * Library for token pair exchange. * * Has no knownledge about what the token does. Any logic deal with stable or * volatile nature of the token must put in the contract level. */ library dex { bytes32 constant ZERO_ID = bytes32(0x0); bytes32...
emit PartialFill(id, order.maker);
book.payoutPartial(id, fillableHave, fillableWant);
6,393,597
[ 1, 18356, 19060, 8026, 12, 350, 16, 1353, 18, 29261, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7734, 6978, 18, 84, 2012, 9447, 12, 350, 16, 3636, 429, 17944, 16, 3636, 429, 59, 970, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.23; import "./ownable.sol"; import "openzeppelin-solidity/contracts/token/ERC721/ERC721.sol"; /** * @title CowBreeding * @dev Cow Basic Implementation to breed them and provides basic functions. */ contract CowBreeding is Ownable { using SafeMath for uint256; event Breeding(uint tokenId...
* @dev Gives birth of a cow with variables @param _cowMom new cow's mother identity number @param _types new cow's type such as BrownSwiss @param _sex new cow's sex male or female/ Generate a unique identifier for cows
function cowBirth(uint _cowMom, string _types, string _sex) public { uint _cowNum = uint(keccak256(abi.encodePacked(msg.sender, blockhash(block.number - 1)))) % cowModulus; _cowBirth(_cowNum, _cowMom, _types, _sex); }
1,028,918
[ 1, 43, 3606, 17057, 434, 279, 276, 543, 598, 3152, 225, 389, 71, 543, 49, 362, 394, 276, 543, 1807, 312, 3011, 4215, 1300, 225, 389, 2352, 394, 276, 543, 1807, 618, 4123, 487, 605, 26253, 6050, 1054, 225, 389, 20909, 394, 276, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 225, 445, 276, 543, 25791, 12, 11890, 389, 71, 543, 49, 362, 16, 533, 389, 2352, 16, 533, 389, 20909, 13, 1071, 288, 203, 565, 2254, 389, 71, 543, 2578, 273, 2254, 12, 79, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 12,...
/** *Submitted for verification at Etherscan.io on 2021-04-02 */ // File: contracts/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally ava...
@notice marks the end of the genesis period @dev can only be called once solhint-disable-next-line not-rely-on-time
function completeGenesisGroup() external override { require( !hasGenesisGroupCompleted, "Core: Genesis Group already complete" ); require( msg.sender == genesisGroup, "Core: Caller is not Genesis Group" ); hasGenesisGroupComple...
10,794,199
[ 1, 17439, 326, 679, 434, 326, 21906, 3879, 225, 848, 1338, 506, 2566, 3647, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 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, 445, 3912, 7642, 16786, 1114, 1435, 3903, 3849, 288, 203, 3639, 2583, 12, 203, 5411, 401, 5332, 7642, 16786, 1114, 9556, 16, 203, 5411, 315, 4670, 30, 31637, 3756, 1818, 3912, 6, 203, 3639, 11272, 203, 3639, 2583, 12, 203, 5...
./partial_match/56/0x3417A7c981d81C3230Ef34d9884eD7F360140342/sources/HmstrChefTest.sol
Withdraw LP tokens from HmstrChef.
function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accHmstrPerSha...
11,231,805
[ 1, 1190, 9446, 511, 52, 2430, 628, 670, 81, 701, 39, 580, 74, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 6610, 6362, 3576, ...
// SPDX-License-Identifier: GNU /// @notice adapted from https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleOracleSimple.sol pragma solidity 0.7.6; import "../OracleCommon.sol"; import "../../_openzeppelin/math/SafeMath.sol"; import '../../_uniswap/v2-core/contracts/interfaces/IUni...
library with helper methods for oracles that are concerned with computing average prices helper function that returns the current block timestamp within the range of uint32, i.e. [0, 2**32 - 1]
library UniswapV2OracleLibrary { using FixedPoint for *; function currentBlockTimestamp() internal view returns (uint32) { return uint32(block.timestamp % 2 ** 32); } function currentCumulativePrices( address pair ) internal view returns (uint256 price0Cumulative, uint256 price1Cu...
1,106,246
[ 1, 12083, 598, 4222, 2590, 364, 578, 69, 9558, 716, 854, 356, 2750, 11748, 598, 20303, 8164, 19827, 4222, 445, 716, 1135, 326, 783, 1203, 2858, 3470, 326, 1048, 434, 2254, 1578, 16, 277, 18, 73, 18, 306, 20, 16, 576, 1578, 300, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12083, 1351, 291, 91, 438, 58, 22, 23601, 9313, 288, 203, 565, 1450, 15038, 2148, 364, 380, 31, 203, 203, 203, 565, 445, 30610, 4921, 1435, 2713, 1476, 1135, 261, 11890, 1578, 13, 288, 203, 3639, 327, 2254, 1578, 12, 2629, 18, ...
./full_match/43113/0x3dfe264d187CD8ae674c642C0De95F78EFC411DF/sources/OG.sol
* Initializes the contract. Sets token addresses, owner, and leftover token destination. Claiming period is not enabled. @param png_ the PNG token contract address @param owner_ the privileged contract owner @param remainderDestination_ address to transfer remaining PNG to when claiming ends. Should be community tr...
) { require(owner_ != address(0), 'Airdrop::Construct: invalid new owner'); require(png_ != address(0), 'Airdrop::Construct: invalid png address'); airdropSupply = supply_; png = png_; owner = owner_; remainderDestination = remainderDestination_; }
7,208,749
[ 1, 9685, 326, 6835, 18, 11511, 1147, 6138, 16, 3410, 16, 471, 29709, 1147, 2929, 18, 18381, 310, 3879, 353, 486, 3696, 18, 225, 14476, 67, 326, 22476, 1147, 6835, 1758, 225, 3410, 67, 326, 11334, 2423, 6835, 3410, 225, 10022, 5683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 262, 288, 203, 3639, 2583, 12, 8443, 67, 480, 1758, 12, 20, 3631, 296, 37, 6909, 1764, 2866, 7249, 30, 2057, 394, 3410, 8284, 203, 3639, 2583, 12, 6446, 67, 480, 1758, 12, 20, 3631, 296, 37, 6909, 1764, 2866, 7249, 30, 2...
./partial_match/1/0xe2A92856f6B5ac556Ac4a7eBCE63B72CBf9b22B1/sources/JackpotHandler.sol
why on Earth would you send ETH here? Don't.
payable(iCMON.getCh()).transfer(address(this).balance);
15,680,242
[ 1, 3350, 93, 603, 512, 27076, 4102, 1846, 1366, 512, 2455, 2674, 35, 7615, 1404, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8843, 429, 12, 77, 9611, 673, 18, 588, 782, 1435, 2934, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1313161554/0xa200B567579a577F582d292f7A1b5C4ecce195F8/sources/Comptroller.sol
* @notice Set the given borrow caps for the given auToken markets. Borrowing that brings total borrows to or above borrow cap will revert. @dev Admin or borrowCapGuardian function to set the borrow caps. A borrow cap of 0 corresponds to unlimited borrowing. @param auTokens The addresses of the markets (tokens) to chang...
function _setMarketBorrowCaps(AuToken[] calldata auTokens, uint[] calldata newBorrowCaps) external { require(msg.sender == admin || msg.sender == borrowCapGuardian, "only admin or borrow cap guardian"); uint numMarkets = auTokens.length; uint numBorrowCaps = newBorrowCaps.length; requ...
16,936,474
[ 1, 694, 326, 864, 29759, 15788, 364, 326, 864, 20309, 1345, 2267, 2413, 18, 605, 15318, 310, 716, 5186, 899, 2078, 324, 280, 3870, 358, 578, 5721, 29759, 3523, 903, 15226, 18, 225, 7807, 578, 29759, 4664, 16709, 2779, 445, 358, 444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 3882, 278, 38, 15318, 24193, 12, 37, 89, 1345, 8526, 745, 892, 20309, 5157, 16, 2254, 8526, 745, 892, 394, 38, 15318, 24193, 13, 3903, 288, 203, 377, 202, 6528, 12, 3576, 18, 15330, 422, 3981, 747, 1234, 18,...
./partial_match/56/0x856D781fFafa4CD2464aa267f0692edAA9175Ec5/sources/MasterChef.sol
Safe SUB transfer function, just in case if rounding error causes pool to not have enough SUB.
function safeSUBTransfer(address _to, uint256 _amount) internal { uint256 SUBBal = SUB.balanceOf(address(this)); if (_amount > SUBBal) { SUB.transfer(_to, SUBBal); SUB.transfer(_to, _amount); } }
11,215,634
[ 1, 9890, 10025, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 10025, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 8362, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 10025, 38, 287, 273, 10025, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, 261, 67, 8949, 405, 10025, ...
./full_match/1/0x85578D91DAC3Fe97dd31206A9779654bE3ae9365/sources/tests/newFile_test.sol
Use 'Assert' methods: https:remix-ide.readthedocs.io/en/latest/assert_library.html Assert.ok(2 == 2, 'should be true'); Assert.greaterThan(uint(2), uint(1), "2 should be greater than to 1"); Assert.lesserThan(uint(2), uint(3), "2 should be lesser than to 3");
function checkSuccess() public { }
3,116,284
[ 1, 3727, 296, 8213, 11, 2590, 30, 2333, 30, 2764, 697, 17, 831, 18, 25254, 329, 22280, 18, 1594, 19, 275, 19, 13550, 19, 11231, 67, 12083, 18, 2620, 5452, 18, 601, 12, 22, 422, 576, 16, 296, 13139, 506, 638, 8284, 5452, 18, 1155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4510, 1435, 1071, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.18; // Test contract to test against reentrancy in the case where a payment contract is payable and requires contract TestRequestPaymentStuckRevert { function () public payable { // solium-disable-next-line error-reason require(false); } }
solium-disable-next-line error-reason
{ require(false); }
13,053,884
[ 1, 18281, 5077, 17, 8394, 17, 4285, 17, 1369, 555, 17, 10579, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 3639, 2583, 12, 5743, 1769, 203, 565, 289, 7010, 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...
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** *...
asymptotic, up to a point
if (halvings >= 120) {
14,410,108
[ 1, 345, 2942, 337, 352, 335, 16, 731, 358, 279, 1634, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 22314, 90, 899, 1545, 15743, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.10; library FTSU { struct MerkleProof { bytes32 label; // the hash value of the sibling uint posIden; // the binary bit indicating the position } // functions for signature verification function splitSignature(bytes memory sig) internal pure returns (uint8...
functions for signature verification
function splitSignature(bytes memory sig) internal pure returns (uint8 v, bytes32 r, bytes32 s){ require(sig.length == 65); assembly { r := mload(add(sig, 32)) s := mload(add(sig, 64)) v := byte(0, mload(add(sig, 96))) } return (v, r, s); } ...
1,752,917
[ 1, 10722, 364, 3372, 11805, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1416, 5374, 12, 3890, 3778, 3553, 13, 2713, 16618, 1135, 261, 11890, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 15329, 203, 3639, 2583, 12, 7340, 18, 2469, 422, 15892, 1769, 203, 3639, 19931, 288, 203, 5411, 436...
./full_match/1/0xA1F18e3E99976AdA8F598458c6c0dc0b5c713Db4/sources/contracts/ERC721ACMUpgradeable.sol
old _addressData slotslither-disable-next-line constable-states
uint256 private _emptySlot;
3,075,776
[ 1, 1673, 389, 2867, 751, 4694, 2069, 2927, 17, 8394, 17, 4285, 17, 1369, 1866, 429, 17, 7992, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 3238, 389, 5531, 8764, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/56/0x1Ba50fB34360143b4006d8Bb803485D2D1837bB3/sources/Digihats.sol
* @dev Mints `tokenId` and transfers it to `to`. WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible Requirements: - `tokenId` must not exist. - `to` cannot be the zero address. Emits a {Transfer} event./
function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0)); require(!_exists(tokenId)); _beforeTokenTransfer(address(0), to, tokenId); _holderTokens[to].add(tokenId); _tokenOwners.set(tokenId, to); emit Transfer(address(0), to, tokenI...
11,055,936
[ 1, 49, 28142, 1375, 2316, 548, 68, 471, 29375, 518, 358, 1375, 869, 8338, 9744, 30, 10858, 434, 333, 707, 353, 19169, 477, 11349, 16, 999, 288, 67, 4626, 49, 474, 97, 17334, 3323, 29076, 30, 300, 1375, 2316, 548, 68, 1297, 486, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 81, 474, 12, 2867, 358, 16, 2254, 5034, 1147, 548, 13, 2713, 5024, 288, 203, 3639, 2583, 12, 869, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 5, 67, 1808, 12, 2316, 548, 10019, 203, 203, 3639, 389, 5771, 134...
./full_match/1/0xFe6667986f58F2F7ed1e7C17Cee3951d8ABb717f/sources/contracts/RedPacket.sol
passcode hash of red packet
uint256 passcodeHash;
16,584,323
[ 1, 5466, 710, 1651, 434, 1755, 4414, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 1342, 710, 2310, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one...
@notice Creates EIP-1167 clone of the contract under the provided `target` address. Returns address of the created clone. @dev In specific circumstances, such as the `target` contract destroyed, create opcode may return 0x0 address. The code calling this function should handle this corner case proper...
function createClone(address target) internal returns (address result) { bytes20 targetBytes = bytes20(target); assembly { let clone := mload(0x40) mstore( clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000 ) ...
112,325
[ 1, 2729, 512, 2579, 17, 20562, 27, 3236, 434, 326, 6835, 3613, 326, 2112, 540, 1375, 3299, 68, 1758, 18, 2860, 1758, 434, 326, 2522, 3236, 18, 225, 657, 2923, 29951, 2639, 16, 4123, 487, 326, 1375, 3299, 68, 6835, 17689, 16, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 10930, 12, 2867, 1018, 13, 2713, 1135, 261, 2867, 563, 13, 288, 203, 3639, 1731, 3462, 1018, 2160, 273, 1731, 3462, 12, 3299, 1769, 203, 3639, 19931, 288, 203, 5411, 2231, 3236, 519, 312, 945, 12, 20, 92, 7132, 1...
// IKB TOKEN // By Mitchell F. Chan /* OVERVIEW: This contract manages the purchase and transferral of Digital Zones of Immaterial Pictorial Sensibility. It reproduces the rules originally created by Yves Klein which governed the transferral of his original Zones of Immaterial Pictorial Sensi...
execute an event reflecting the change
Transfer(this, msg.sender, amount);
12,666,868
[ 1, 8837, 392, 871, 3037, 310, 326, 2549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 12279, 12, 2211, 16, 1234, 18, 15330, 16, 3844, 1769, 12900, 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, ...
pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; import './Ownable.sol'; import './SafeMath.sol'; import './Address.sol'; import './ACONameFormatter.sol'; import './ACOAssetHelper.sol'; import './ERC20.sol'; import './IACOPool.sol'; import './IACOFactory.sol'; import './IACOStrategy.sol'; import './IACOToken....
* @dev Internal function to the size data for a quote. @param isPoolSelling True whether the pool is selling an ACO token, otherwise the pool is buying. @param acoToken Address of the ACO token. @param tokenAmount Amount of ACO tokens to swap. @return The collateral amount and the collateral available on the pool./
function _getSizeData(bool isPoolSelling, address acoToken, uint256 tokenAmount) internal view returns(uint256, uint256) { uint256 collateralAmount; uint256 collateralAvailable; if (isCall) { collateralAvailable = _getPoolBalanceOf(underlying); collateralAmount = toke...
48,877
[ 1, 3061, 445, 358, 326, 963, 501, 364, 279, 3862, 18, 225, 353, 2864, 55, 1165, 310, 1053, 2856, 326, 2845, 353, 357, 2456, 392, 432, 3865, 1147, 16, 3541, 326, 2845, 353, 30143, 310, 18, 225, 1721, 83, 1345, 5267, 434, 326, 432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 1225, 751, 12, 6430, 353, 2864, 55, 1165, 310, 16, 1758, 1721, 83, 1345, 16, 2254, 5034, 1147, 6275, 13, 2713, 1476, 1135, 12, 11890, 5034, 16, 2254, 5034, 13, 288, 203, 3639, 2254, 5034, 4508, 2045, 287, 62...
// SPDX-License-Identifier: MIT pragma solidity 0.8.15; import {IForwarderRegistry} from "./../../../../metatx/interfaces/IForwarderRegistry.sol"; import {ERC721DeliverableOnceFacet} from "./../../../../token/ERC721/facets/ERC721DeliverableOnceFacet.sol"; /// @title ERC721DeliverableOnceFacetMock contract ERC721Deliv...
@title ERC721DeliverableOnceFacetMock
contract ERC721DeliverableOnceFacetMock is ERC721DeliverableOnceFacet { pragma solidity 0.8.15; import {IForwarderRegistry} from "./../../../../metatx/interfaces/IForwarderRegistry.sol"; import {ERC721DeliverableOnceFacet} from "./../../../../token/ERC721/facets/ERC721DeliverableOnceFacet.sol"; constructor(IForwar...
12,541,226
[ 1, 654, 39, 27, 5340, 20813, 429, 12212, 11137, 9865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 20813, 429, 12212, 11137, 9865, 353, 4232, 39, 27, 5340, 20813, 429, 12212, 11137, 288, 203, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3600, 31, 203, 5666, 288, 45, 30839, 4243, 97, 628, 25165, 16644...
./full_match/1/0x1bAC1E3003668fc0Cc4838DD3Fb62E8C2671b271/sources/browser/TorroDao.sol
Emit event that a proposal has been voted for.
emit Vote(id);
3,118,689
[ 1, 17982, 871, 716, 279, 14708, 711, 2118, 331, 16474, 364, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 3626, 27540, 12, 350, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0xefaCa6Fc316B3B2Aa6c55FF5E02a62A85d4391e8/sources/contracts/modules/core/MarketManagerModule.sol
* @inheritdoc IMarketManagerModule/
function getMarketReportedDebt(uint128 marketId) external view override returns (uint256) { return Market.load(marketId).getReportedDebt(); }
16,517,013
[ 1, 36, 10093, 467, 3882, 278, 1318, 3120, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 23232, 278, 426, 1798, 758, 23602, 12, 11890, 10392, 13667, 548, 13, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 6622, 278, 18, 945, 12, 27151, 548, 2934, 588, 426, 1798, 758, 23602, 5621, 203, 56...
./full_match/1/0x2b265B8336456158D2Ed4aD03B8d611079714F23/sources/src/Magai/Magai.sol
100% of the balance assigned to this contract
uint256 liquidityTokens = balanceOf(address(this));
16,488,872
[ 1, 6625, 9, 434, 326, 11013, 6958, 358, 333, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 11890, 5034, 4501, 372, 24237, 5157, 273, 11013, 951, 12, 2867, 12, 2211, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external ...
ERC20 basic token contract being held
contract MultipleTransfer is Ownable { using SafeERC20 for IERC20; IERC20 private _token; constructor ( IERC20 token_ ) public { _token = token_; } function token() public view virtual returns (IERC20) { return _token; } function balanceOf() public view virtual returns (uint256) { r...
571,699
[ 1, 654, 39, 3462, 5337, 1147, 6835, 3832, 15770, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13531, 5912, 353, 14223, 6914, 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, 3885, 261, 203, 565, 467, 654, 39, 3462, 1147,...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; pragma experimental ABIEncoderV2; import "contracts/ImpartialSelection.sol"; import "contracts/ExactDollarPartitionNoStorage.sol"; /// @title Impartial Selection noStorage implementation /// @author Giovanni Rescinito /// @notice smart contract implemen...
@notice ends the reveal phase and checks that everyone submitted their scores
function endRevealPhase() public override{ super.endRevealPhase(); ExactDollarPartitionNoStorage.finalizeScores(revealed,partition,scoreAccumulated); }
2,546,133
[ 1, 5839, 326, 283, 24293, 6855, 471, 4271, 716, 3614, 476, 9638, 3675, 8474, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 679, 426, 24293, 11406, 1435, 1071, 3849, 95, 203, 3639, 2240, 18, 409, 426, 24293, 11406, 5621, 203, 3639, 30794, 40, 25442, 7003, 2279, 3245, 18, 30343, 20037, 12, 266, 537, 18931, 16, 10534, 16, 6355, 8973, 5283, 690, ...
./partial_match/1/0x34A542aCD8A717B5933228Ae3C554B1328F36e14/sources/ERC20ByMetadrop.sol
Approval cannot be given to the zero address.
error ApproveToTheZeroAddress();
2,631,338
[ 1, 23461, 2780, 506, 864, 358, 326, 3634, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 555, 1716, 685, 537, 774, 1986, 7170, 1887, 5621, 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, ...
./full_match/4/0x208426c2B281aC34f7005A03f638F43C6489505e/sources/contracts/lib/balancer/configurable-rights-pool/contracts/ConfigurableRightsPool.sol
Hold the parameters used in updateWeightsGradually
SmartPoolManager.GradualUpdateParams public gradualUpdate;
12,287,933
[ 1, 20586, 326, 1472, 1399, 316, 1089, 16595, 14571, 2544, 1230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 19656, 2864, 1318, 18, 30420, 1462, 1891, 1370, 1071, 6058, 1462, 1891, 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, ...
./full_match/5/0xc1991bF5359f0BCe4f936e718353b07DeE97DaBa/sources/contracts/Kingdomly Shitcoins/GenericShitcoinETH(test).sol
Updates the buy and sell taxes to the new inputs
function updateTaxes(uint256 _buyTax, uint256 _sellTax) public onlyOwner{ require(_buyTax >= 0 && _sellTax >= 0, "Cant input a negative tax"); buyTax = _buyTax; sellTax = _sellTax; }
1,870,485
[ 1, 5121, 326, 30143, 471, 357, 80, 5320, 281, 358, 326, 394, 4540, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 7731, 281, 12, 11890, 5034, 389, 70, 9835, 7731, 16, 2254, 5034, 389, 87, 1165, 7731, 13, 1071, 1338, 5541, 95, 203, 3639, 2583, 24899, 70, 9835, 7731, 1545, 374, 597, 389, 87, 1165, 7731, 1545, 374, 16, 315, 39...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/math/Math.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/Safe...
@notice The address of the base token used to denominate staking rewards
function baseStakingToken() internal view returns (IERC20withDec) { return config.getFidu(); }
13,058,084
[ 1, 1986, 1758, 434, 326, 1026, 1147, 1399, 358, 10716, 3322, 384, 6159, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1026, 510, 6159, 1345, 1435, 2713, 1476, 1135, 261, 45, 654, 39, 3462, 1918, 1799, 13, 288, 203, 565, 327, 642, 18, 588, 42, 350, 89, 5621, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.7.6; import "@openzeppelin/contracts/proxy/TransparentUpgradeableProxy.sol"; import "@openzeppelin/contracts-upgradeable/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "@openzeppelin/...
implementation from https:github.com/Uniswap/uniswap-lib/commit/99f3f28770640ba1bb1ff460ac7c5292fb8291a0 original implementation: https:github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol#L687
library MathUtil { pragma solidity 0.7.6; function sqrt(uint256 x) internal pure returns (uint256) { if (x == 0) return 0; uint256 xx = x; uint256 r = 1; if (xx >= 0x100000000000000000000000000000000) { xx >>= 128; r <<= 64; } if (xx >= 0x100...
1,172,771
[ 1, 30810, 628, 2333, 30, 6662, 18, 832, 19, 984, 291, 91, 438, 19, 318, 291, 91, 438, 17, 2941, 19, 7371, 19, 2733, 74, 23, 74, 6030, 4700, 20, 1105, 20, 12124, 21, 9897, 21, 1403, 24, 4848, 1077, 27, 71, 25, 5540, 22, 19192, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 2361, 1304, 288, 203, 203, 683, 9454, 18035, 560, 374, 18, 27, 18, 26, 31, 203, 565, 445, 5700, 12, 11890, 5034, 619, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 92, 422, 374, 13, 327, 374, 3...
pragma solidity 0.6.6; pragma experimental ABIEncoderV2; /** * SafeMath from OpenZeppelin - commit https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5dfe7215a9156465d550030eadc08770503b2b2f * * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operation...
* @dev Adds a new Controller @param _controller - Controller to be added @return True if success/
function newController(address _controller) public onlyController returns (bool) { require(!controllers[_controller], "Already a controller"); require(_controller != address(0), "Invalid Controller address"); require( msg.sender != _controller, ...
23,674
[ 1, 3655, 279, 394, 6629, 225, 389, 5723, 300, 6629, 358, 506, 3096, 327, 1053, 309, 2216, 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, 394, 2933, 12, 2867, 389, 5723, 13, 203, 3639, 1071, 203, 3639, 1338, 2933, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 5, 20171, 63, 67, 5723, 6487, 315, 9430, 279, 2596, 8863, 203, 3639, 2583...
//Address: 0x3d63da14a12a559ad081f291ae3a6f34d69be159 //Contract name: Crowdsale //Balance: 0 Ether //Verification Date: 6/24/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** ...
check limit for sale
require(tokensForSale >= (token.totalSupply() + _tokenAmount));
15,873,700
[ 1, 1893, 1800, 364, 272, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 7860, 1290, 30746, 1545, 261, 2316, 18, 4963, 3088, 1283, 1435, 397, 389, 2316, 6275, 10019, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0xD6ee3B39dD53b753E3253Befa40222602406409B/sources/src/Vault.sol
@notice Add an array of new depositors to the allow list @param depositors Array of new depositors
function addDepositorsToAllowlist(address[] calldata depositors) external onlyVaultAdmin { for (uint256 i = 0; i < depositors.length; i++) { _depositorsAllowlist.add(depositors[i]); } }
1,876,145
[ 1, 986, 392, 526, 434, 394, 443, 1724, 1383, 358, 326, 1699, 666, 225, 443, 1724, 1383, 1510, 434, 394, 443, 1724, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 758, 1724, 1383, 774, 7009, 1098, 12, 2867, 8526, 745, 892, 443, 1724, 1383, 13, 3903, 1338, 12003, 4446, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 443, 1724, 1383, 18, 2469, 31, 277, 27...
./full_match/3/0x4f7df3Da3e2aC27B8446A2C6799352782107ca4D/sources/browser/Vesting.sol
amount they can withdraw
vested_total = vesting_seconds.mul(vest_per_second_sats).add(s.initial);
14,223,031
[ 1, 8949, 2898, 848, 598, 9446, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 331, 3149, 67, 4963, 273, 331, 10100, 67, 7572, 18, 16411, 12, 26923, 67, 457, 67, 8538, 67, 87, 2323, 2934, 1289, 12, 87, 18, 6769, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.24; contract AcceptsExchange { Exchange public tokenContract; constructor(address _tokenContract) public { tokenContract = Exchange(_tokenContract); } modifier onlyTokenContract { require(msg.sender == address(tokenContract)); _; } /** * @dev ...
---------- HELPERS AND CALCULATORS ----------*/* Method to view the current Ethereum stored in the contract Example: totalEthereumBalance()/
function totalEthereumBalance() public view returns(uint) { return address(this).balance; }
1,511,670
[ 1, 15392, 225, 22557, 3194, 55, 4116, 385, 1013, 39, 1506, 3575, 55, 225, 12181, 19, 2985, 358, 1476, 326, 783, 512, 18664, 379, 4041, 316, 326, 6835, 5090, 30, 2078, 41, 18664, 379, 13937, 1435, 19, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 41, 18664, 379, 13937, 1435, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 12, 11890, 13, 203, 565, 288, 203, 3639, 327, 1758, 12, 2211, 2934, 12296, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import { ISwapManager } from "./ISwapManager.sol"; interface IUniswapV2Router0...
* Executes a token <> token swap using the uniswapRouterV2./ Fill return vars
function swapTokenToToken( IERC20 _srcToken, IERC20 _dstToken, uint256 _srcAmount, uint256 _maxDstAmount, address _beneficiary ) external override returns (uint256 dstAmount, uint256 srcRemainder) { IERC20(_srcToken).safeIncreaseAllowance(uniswapV2Rout...
1,064,451
[ 1, 9763, 279, 1147, 2813, 1147, 7720, 1450, 326, 640, 291, 91, 438, 8259, 58, 22, 18, 19, 14192, 327, 4153, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 1345, 774, 1345, 12, 203, 3639, 467, 654, 39, 3462, 389, 4816, 1345, 16, 203, 3639, 467, 654, 39, 3462, 389, 11057, 1345, 16, 203, 3639, 2254, 5034, 389, 4816, 6275, 16, 203, 3639, 2254, 5034, 389, 1896, 15295, ...
./full_match/44787/0xD9CcbFc602110a447b1A7Ac05204c1eae2A8CdCD/sources/MagePunks.sol
@dev sets royalties address for royalties addon for 2981
function setRoyaltiesAddress(address _royaltiesAddress) public onlyOwner { super._setRoyaltiesAddress(_royaltiesAddress); }
13,261,511
[ 1, 4424, 721, 93, 2390, 606, 1758, 364, 721, 93, 2390, 606, 15466, 364, 576, 10689, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 54, 13372, 2390, 606, 1887, 12, 2867, 389, 3800, 2390, 606, 1887, 13, 1071, 1338, 5541, 288, 203, 3639, 2240, 6315, 542, 54, 13372, 2390, 606, 1887, 24899, 3800, 2390, 606, 1887, 1769, 203, 565, 289, 203, 203, 2, ...
pragma solidity ^0.5.11; import "./oraclizeAPI.sol"; import "./roulette.sol"; contract Oracle is usingOraclize{ // Oracle, manages the generation of the random number via Oraclize //Random.org API-KEY:7dab0ab9-8f2f-4b2d-8ed1-b62cc1454c00 event LogOraclizeFee(uint fee); event LogQuerySent(string des...
Oracle, manages the generation of the random number via OraclizeRandom.org API-KEY:7dab0ab9-8f2f-4b2d-8ed1-b62cc1454c00
contract Oracle is usingOraclize{ event LogOraclizeFee(uint fee); event LogQuerySent(string description); event LogQueryNotSent(string description); event LogQueryDone(bytes32 id, string result); bytes32 rng; uint urng; constructor()public payable{ OAR = OraclizeAddrResolverI(0x6...
15,853,951
[ 1, 23601, 16, 20754, 281, 326, 9377, 434, 326, 2744, 1300, 3970, 531, 354, 830, 554, 8529, 18, 3341, 1491, 17, 3297, 30, 27, 72, 378, 20, 378, 29, 17, 28, 74, 22, 74, 17, 24, 70, 22, 72, 17, 28, 329, 21, 17, 70, 8898, 952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 28544, 353, 1450, 51, 354, 830, 554, 95, 203, 203, 203, 203, 565, 871, 1827, 51, 354, 830, 554, 14667, 12, 11890, 14036, 1769, 203, 565, 871, 1827, 1138, 7828, 12, 1080, 2477, 1769, 203, 565, 871, 1827, 1138, 1248, 7828, ...
// SPDX-License-Identifier: MIT // Inspired on Timelock.sol from Compound. // Special thanks to BoringCrypto and Mudit Gupta for their feedback. pragma solidity ^0.8.0; import "../access/AccessControl.sol"; import "./RevertMsgExtractor.sol"; import "./IsContract.sol"; interface ITimelock { struct Call { ...
Each role in AccessControl.sol is a 1-of-n multisig. It is recommended that trusted individual accounts get `propose` and `execute` permissions, while only the governor keeps `approve` permissions. The governor should keep the `propose` and `execute` permissions, but use them only in emergency situations (such as all ...
constructor(address governor) AccessControl() { _grantRole(ITimelock.propose.selector, governor); _grantRole(ITimelock.proposeRepeated.selector, governor); _grantRole(ITimelock.approve.selector, governor); _grantRole(ITimelock.execute.selector, governor); _grantRole(ITimeloc...
12,153,311
[ 1, 3442, 2478, 316, 24349, 18, 18281, 353, 279, 404, 17, 792, 17, 82, 22945, 360, 18, 2597, 353, 14553, 716, 13179, 7327, 9484, 336, 1375, 685, 4150, 68, 471, 1375, 8837, 68, 4371, 16, 1323, 1338, 326, 314, 1643, 29561, 20948, 1375,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 3885, 12, 2867, 314, 1643, 29561, 13, 24349, 1435, 288, 203, 203, 3639, 389, 16243, 2996, 12, 1285, 381, 292, 975, 18, 685, 4150, 18, 9663, 16, 314, 1643, 29561, 1769, 203, 3639, 389, 16243, 2996, 12, 1285, 381, 292, 975, ...
./full_match/4/0xDC750c9a411e3BfA0fB0Dd1248251D5831321352/sources/cache/solpp-generated-contracts/Config.sol
@title zkSync configuration constants @author Matter Labs
contract Config { uint256 constant ERC20_WITHDRAWAL_GAS_LIMIT = 50000; uint256 constant ETH_WITHDRAWAL_GAS_LIMIT = 10000; uint8 constant CHUNK_BYTES = 9; uint8 constant ADDRESS_BYTES = 20; uint8 constant PUBKEY_HASH_BYTES = 20; uint8 constant PUBKEY_BYTES = 32; uint8 constant ETH_SIGN_...
749,257
[ 1, 22888, 4047, 1664, 6810, 225, 490, 9293, 511, 5113, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1903, 288, 203, 565, 2254, 5034, 5381, 4232, 39, 3462, 67, 9147, 40, 10821, 1013, 67, 43, 3033, 67, 8283, 273, 1381, 2787, 31, 203, 203, 565, 2254, 5034, 5381, 512, 2455, 67, 9147, 40, 10821, 1013, 67, 43, 3033, 67, 8283...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; library Math { function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function average(uint256 ...
========== RESTRICTED FUNCTIONS ========== */
function notifyRewardAmount(uint256 reward) external override onlyRewardsDistribution updateReward(address(0)) { require(reward > 0, "Invalid reward amount"); rewardsToken.mint(address(this), reward); if(rewardRate == 0 || periodFinish <= block.timestamp){ rewardRate = reward.div...
7,213,471
[ 1, 1432, 631, 8392, 2259, 15494, 13690, 55, 422, 1432, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5066, 17631, 1060, 6275, 12, 11890, 5034, 19890, 13, 3903, 3849, 1338, 17631, 14727, 9003, 1089, 17631, 1060, 12, 2867, 12, 20, 3719, 288, 203, 3639, 2583, 12, 266, 2913, 405, 374, 16, 315, 1941, 19890, 3844, 8863, 203, ...
./partial_match/1/0xAdFc8C296eb7CEc677C2DdecE28007A3D4e465a1/sources/contracts/dependencies/openzeppelin/contracts/SafeMath.sol
@notice Returns x - y, reverts if underflows @param x The minuend @param y The subtrahend @return z The difference of x and y
function sub(uint256 x, uint256 y) internal pure returns (uint256 z) { unchecked { require((z = x - y) <= x); } }
2,890,219
[ 1, 1356, 619, 300, 677, 16, 15226, 87, 309, 3613, 24190, 225, 619, 1021, 1131, 89, 409, 225, 677, 1021, 720, 2033, 25710, 327, 998, 1021, 7114, 434, 619, 471, 677, 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, 720, 12, 11890, 5034, 619, 16, 2254, 5034, 677, 13, 2713, 16618, 1135, 261, 11890, 5034, 998, 13, 288, 203, 3639, 22893, 288, 203, 5411, 2583, 12443, 94, 273, 619, 300, 677, 13, 1648, 619, 1769, 203, 3639, 289, 203, 5...
//SPDX-License-Identifier: MIT pragma solidity 0.6.8; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./UsingRegistry.sol"; import "./interfaces/IExchange.sol"; /// @title SavingsCELO validator G...
Proxy function for locked CELO management.
function withdrawLockedGold(uint256 index) onlyOwner external { getLockedGold().withdraw(index); }
945,823
[ 1, 3886, 445, 364, 8586, 29538, 1502, 11803, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 8966, 43, 1673, 12, 11890, 5034, 770, 13, 1338, 5541, 3903, 288, 203, 202, 202, 588, 8966, 43, 1673, 7675, 1918, 9446, 12, 1615, 1769, 203, 202, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e....
@author nexusque For RandomlyAssigned: Max supply is 1000; id start from 1 (instead of 0)
contract LostTRIShore is ContextMixin, NativeMetaTransaction, Ownable, Whitelistable, Priceable, Pauseable, WithLimitedSupply { using SafeMath for uint256; address payable public clientAddress; address payable public artistAddress; address payable public paymentAddress; string public baseTokenUR...
498,097
[ 1, 82, 21029, 1857, 2457, 8072, 715, 20363, 30, 4238, 14467, 353, 4336, 31, 612, 787, 628, 404, 261, 8591, 684, 434, 374, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 669, 6566, 1555, 479, 353, 225, 1772, 14439, 16, 225, 16717, 2781, 3342, 16, 14223, 6914, 16, 3497, 7523, 429, 16, 20137, 429, 16, 31357, 429, 16, 3423, 3039, 329, 3088, 1283, 288, 203, 565, 1450, 14060, 10477, 364, 2...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity =0.7.6; pragma abicoder v2; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; import "@uniswap/v3-core/contracts/libraries/TickMath.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@uniswap/v3-periphery/contra...
@notice Calls the mint function defined in periphery, mints the same amount of each token. For this example we are providing 1000 DAI and 1000 USDC in liquidity @return tokenId The id of the newly minted ERC721 @return liquidity The amount of liquidity for the position @return amount0 The amount of token0 @return amou...
function mintNewPosition() external returns ( uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1 ) { uint256 amount0ToMint = 1000; uint256 amount1ToMint = 1000; TransferHelper.safeApprove( ...
12,748,433
[ 1, 10125, 326, 312, 474, 445, 2553, 316, 1534, 16045, 627, 16, 312, 28142, 326, 1967, 3844, 434, 1517, 1147, 18, 2457, 333, 3454, 732, 854, 17721, 4336, 463, 18194, 471, 4336, 11836, 5528, 316, 4501, 372, 24237, 327, 1147, 548, 1021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 312, 474, 1908, 2555, 1435, 203, 3639, 3903, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 1147, 548, 16, 203, 5411, 2254, 10392, 4501, 372, 24237, 16, 203, 5411, 2254, 5034, 3844, 20, 16, 203, 5411, 2254, 5034, 3844, 21...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "../../contracts/ActiveBridgeSetBlockRelay.sol"; /** * @title Test Helper for the new block Relay contract * @dev The aim of this contract is to raise the visibility modifier of new block relay contract functions for testing purposes * @author Witnet...
Gets the vote with the poposeBlock inputs
function getVote( uint256 _blockHash, uint256 _epoch, uint256 _drMerkleRoot, uint256 _tallyMerkleRoot, uint256 _previousVote) external pure returns(uint256) { uint256 vote = uint256( sha256( abi.encodePacked( _blockHash, _epoch, _drMerkleRoot, _tallyMe...
5,430,838
[ 1, 3002, 326, 12501, 598, 326, 1843, 2584, 1768, 4540, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11031, 1168, 12, 203, 565, 2254, 5034, 389, 2629, 2310, 16, 203, 565, 2254, 5034, 389, 12015, 16, 203, 565, 2254, 5034, 389, 3069, 8478, 15609, 2375, 16, 203, 565, 2254, 5034, 389, 88, 1230, 8478, 15609, 2375, 16, 203, ...
/** *Submitted for verification at Etherscan.io on 2021-07-23 */ // Sources flattened with hardhat v2.3.0 https://hardhat.org // File contracts/forwarder/IRelayRecipient.sol // SPDX-License-Identifier:MIT pragma solidity ^0.7.6; /** * a contract must implement this interface in order to support relayed transactio...
* @notice Unstake and claim rewards @param stakeId Stake ID of the user/ lockableDays check optional lock check Checks State updation Balance check Transfer staked token back to user Emit state changes
function unStake(address userAddress, uint256 stakeId) external whenNotPaused returns (bool) { require( _msgSender() == userAddress || _msgSender() == _owner, "UNSTAKE: Invalid User Entry" ); address stakedToken = stakingDetails[userAddress].tokenAddress[stakeId]; require( ...
6,521,959
[ 1, 984, 334, 911, 471, 7516, 283, 6397, 225, 384, 911, 548, 934, 911, 1599, 434, 326, 729, 19, 2176, 429, 9384, 866, 3129, 2176, 866, 13074, 3287, 2166, 367, 30918, 866, 12279, 384, 9477, 1147, 1473, 358, 729, 16008, 919, 3478, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 640, 510, 911, 12, 2867, 729, 1887, 16, 2254, 5034, 384, 911, 548, 13, 203, 565, 3903, 203, 565, 1347, 1248, 28590, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 2583, 12, 203, 1377, 389, 3576, 12021, 1435, ...
./full_match/4/0xb1086EE7F3cbc3f45065cCc341854A71a94D9062/sources/contracts/ERC721.sol
@notice Count all NFTs assigned to an owner @dev NFTs assigned to the zero address are considered invalid, and this function throws for queries about the zero address. @param _owner An address for whom to query the balance @return The number of NFTs owned by `_owner`, possibly zero
function balanceOf(address _owner) public view override returns (uint256) { require(_owner != address(0), "No NFT assigned to the zero address"); return _balances[_owner]; }
13,354,319
[ 1, 1380, 777, 423, 4464, 87, 6958, 358, 392, 3410, 225, 423, 4464, 87, 6958, 358, 326, 3634, 1758, 854, 7399, 2057, 16, 471, 333, 225, 445, 1216, 364, 6218, 2973, 326, 3634, 1758, 18, 225, 389, 8443, 1922, 1758, 364, 600, 362, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 565, 445, 11013, 951, 12, 2867, 389, 8443, 13, 1071, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 24899, 8443, 480, 1758, 12, 20, 3631, 315, 2279, 423, 4464, 6958, 358, 326, 3634, 1758, 8863, 203, 3639, 327, 389,...
pragma solidity ^0.4.8; contract SafeMath { function safeMul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a / b; ret...
Give all of the initial tokens to the contract deployer.
function QuantumXICO() { totalSupply = INITIAL_SUPPLY; balances[msg.sender] = INITIAL_SUPPLY; endTime = now + 1 weeks; owner = msg.sender; price = 100; }
924,899
[ 1, 43, 688, 777, 434, 326, 2172, 2430, 358, 326, 6835, 7286, 264, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 4783, 970, 379, 60, 2871, 51, 1435, 288, 203, 202, 202, 4963, 3088, 1283, 273, 28226, 67, 13272, 23893, 31, 203, 202, 202, 70, 26488, 63, 3576, 18, 15330, 65, 273, 28226, 67, 13272, 23893, 31, 203, 202, 202, 409, 950,...
// SPDX-License-Identifier: (c) Armor.Fi DAO, 2021 pragma solidity ^0.6.12; interface IArmorMaster { function registerModule(bytes32 _key, address _module) external; function getModule(bytes32 _key) external view returns(address); function keep() external; } /** * @title Ownable * @dev The Ownable cont...
* @dev Transfer all wNXM directly to arNXM. This will not mint more arNXM so it will add value to arNXM./
function _transferWNXM() internal { uint256 wNxmBalance = WNXM.balanceOf( address(this) ); WNXM.transfer(address(ARNXM_VAULT), wNxmBalance); }
175,183
[ 1, 5912, 777, 341, 17106, 49, 5122, 358, 419, 17106, 49, 18, 1220, 903, 486, 312, 474, 1898, 419, 17106, 49, 1427, 518, 903, 527, 460, 358, 419, 17106, 49, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13866, 5665, 60, 49, 1435, 203, 1377, 2713, 203, 565, 288, 203, 3639, 2254, 5034, 341, 50, 92, 81, 13937, 273, 678, 17106, 49, 18, 12296, 951, 12, 1758, 12, 2211, 13, 11272, 203, 3639, 678, 17106, 49, 18, 13866, ...
pragma solidity ^0.4.0; /** * @title ConstitutionalDNA * @author ola * --- Collaborators --- * @author zlatinov * @author panos * @author yemi * @author archil * @author anthony */ contract ConstitutionalDNA { struct Person{ address addr; bytes name; ...
* @notice Deploying Constitution contract. Setting `msg.sender.address()` as Founder @dev Deploy and instantiate the Constitution contract/
function ConstitutionalDNA(){ foundingTeam[msg.sender].addr = msg.sender; foundingTeam[msg.sender].role = "Founder"; foundingTeam[msg.sender].rank = 1; foundingTeamAddresses.push(msg.sender); }
14,035,396
[ 1, 10015, 310, 735, 14278, 6835, 18, 13274, 1375, 3576, 18, 15330, 18, 2867, 20338, 487, 478, 465, 765, 225, 7406, 471, 10275, 326, 735, 14278, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 445, 735, 14278, 287, 8609, 37, 1435, 95, 203, 1850, 1392, 310, 8689, 63, 3576, 18, 15330, 8009, 4793, 273, 1234, 18, 15330, 31, 203, 1850, 1392, 310, 8689, 63, 3576, 18, 15330, 8009, 4615, 273, 315, 42, 465, 765, 14432, ...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; import {IFollowNFT} from '../interfaces/IFollowNFT.sol'; import {IFollowModule} from '../interfaces/IFollowModule.sol'; import {ILensHub} from '../interfaces/ILensHub.sol'; import {Errors} from '../libraries/Errors.sol'; import {Events} from '../librar...
@inheritdoc IFollowNFT First check most recent balance Next check implicit zero balance
function getPowerByBlockNumber(address user, uint256 blockNumber) external view override returns (uint256) { if (blockNumber > block.number) revert Errors.BlockNumberInvalid(); uint256 snapshotCount = _snapshotCount[user]; if (snapshotCount == 0) { ...
6,345,857
[ 1, 36, 10093, 467, 8328, 50, 4464, 5783, 866, 4486, 8399, 11013, 4804, 866, 10592, 3634, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1689, 2085, 858, 1768, 1854, 12, 2867, 729, 16, 2254, 5034, 1203, 1854, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 309, 261, 2629, 1854, 405, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; /// @notice A checkpoint for marking number of votes from a given block st...
* @notice Gets the current votes balance for `account` @param account The address to get votes balance @return The number of current votes for `account`/
function getCurrentVotes(address account) external view returns (uint256) { uint256 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; }
1,758,305
[ 1, 3002, 326, 783, 19588, 11013, 364, 1375, 4631, 68, 225, 2236, 1021, 1758, 358, 336, 19588, 11013, 327, 1021, 1300, 434, 783, 19588, 364, 1375, 4631, 68, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5175, 29637, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 290, 1564, 4139, 273, 818, 1564, 4139, 63, 4631, 15533, 203, 3639, 327, 203, 5411, 290, 1564, 4139, 405, 374, 692, 264...
pragma solidity ^0.4.21; // The GNU General Public License v3 // &#169; Musqogees Tech 2018, Redenom ™ // -------------------- SAFE MATH ---------------------------------------------- library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); ...
Writting last round in wich user got dividends
return accounts[account].balance;
2,274,768
[ 1, 4913, 1787, 1142, 3643, 316, 341, 1354, 729, 2363, 3739, 350, 5839, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10792, 327, 9484, 63, 4631, 8009, 12296, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.4.21; /** * @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...
@dev Unlocks an address so that its owner can transfer tokens out again. Addresses can be unlocked any time. Only the locker account can unlock addresses @param _address address The address to unlock. @return True if the operation was successful.
function unlockAddress(address _address) public onlyLocker returns(bool) { require(locked[_address]); locked[_address] = false; emit Unlock(_address); return true; }
12,685,521
[ 1, 7087, 87, 392, 1758, 1427, 716, 2097, 3410, 848, 7412, 2430, 596, 3382, 18, 1377, 23443, 848, 506, 25966, 1281, 813, 18, 5098, 326, 28152, 2236, 848, 7186, 6138, 225, 389, 2867, 1758, 1021, 1758, 358, 7186, 18, 327, 1053, 309, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7186, 1887, 12, 2867, 389, 2867, 13, 1071, 1338, 2531, 264, 1135, 12, 6430, 13, 288, 203, 3639, 2583, 12, 15091, 63, 67, 2867, 19226, 203, 203, 3639, 8586, 63, 67, 2867, 65, 273, 629, 31, 203, 3639, 3626, 3967, 24899,...
pragma solidity ^0.5.15; pragma experimental ABIEncoderV2; import { ParamManager } from "./libs/ParamManager.sol"; import { Governance } from "./Governance.sol"; import { NameRegistry as Registry } from "./NameRegistry.sol"; contract MerkleTreeUtils { // The default hashes bytes32[] public defaultHashes; u...
* @notice Get the merkle root computed from some set of data blocks. @param nodes The data being used to generate the tree. @return the merkle tree root NOTE: This is a stateless operation/ Add a defaultNode if we've got an odd number of leaves Now generate each level Calculate the nodes for the currentLevel Check if w...
function getMerkleRootFromLeaves(bytes32[] memory nodes) public view returns (bytes32) { uint256 nextLevelLength = nodes.length; uint256 currentLevel = 0; if (nodes.length == 1) { return nodes[0]; } if (nextLevelLength % 2 == 1) { ...
14,098,910
[ 1, 967, 326, 30235, 1365, 8470, 628, 2690, 444, 434, 501, 4398, 18, 225, 2199, 1021, 501, 3832, 1399, 358, 2103, 326, 2151, 18, 327, 326, 30235, 2151, 1365, 5219, 30, 1220, 353, 279, 610, 12617, 1674, 19, 1436, 279, 805, 907, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30040, 15609, 2375, 1265, 1682, 6606, 12, 3890, 1578, 8526, 3778, 2199, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 3890, 1578, 13, 203, 565, 288, 203, 3639, 2254, 5034, 1024, 2355, 1782, 273, 2199, 18, ...
./full_match/5/0x327340BB260172C3AFd97dEC3877Dc11271523c2/sources/project_/contracts/NFTCollection.sol
Set the base URI Suffix
string baseURISuffix = ".json";
1,869,909
[ 1, 694, 326, 1026, 3699, 348, 2609, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 533, 1026, 3098, 5791, 273, 3552, 1977, 14432, 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,...
./full_match/5/0xE058A8Ed175911823e347B6310Cb4EC672d81201/sources/project:/contracts/source/tokens/ERC721/CryptopiaERC721.sol
@title Cryptopia ERC721 @notice Non-fungible token that extends Openzeppelin ERC721 @dev Implements the ERC721 standard @author HFB - <frank@cryptopia.com>
abstract contract CryptopiaERC721 is ICryptopiaERC721, ERC721EnumerableUpgradeable, ContextMixin, NativeMetaTransaction, OwnableUpgradeable, AccessControlUpgradeable, TokenRetriever { string public contractURI; string public baseTokenURI; IAuthenticator public authenticator; bytes32 public constant ...
1,956,911
[ 1, 22815, 556, 1155, 4232, 39, 27, 5340, 225, 3858, 17, 12125, 75, 1523, 1147, 716, 3231, 3502, 94, 881, 84, 292, 267, 4232, 39, 27, 5340, 225, 29704, 326, 4232, 39, 27, 5340, 4529, 225, 670, 22201, 300, 411, 4840, 2304, 36, 22784...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 22752, 556, 1155, 654, 39, 27, 5340, 353, 467, 22815, 556, 1155, 654, 39, 27, 5340, 16, 4232, 39, 27, 5340, 3572, 25121, 10784, 429, 16, 1772, 14439, 16, 16717, 2781, 3342, 16, 14223, 6914, 10784, 429, 16, 24349, 107...
pragma solidity ^0.5.0; import "../installed_contracts/Ownable.sol"; import "../installed_contracts/Pausable.sol"; ///@title A personal virtual graveyard for beloved hamsters. ///@author Soth02 ///@notice Use this contract at your own risk! It has not been professionally audited for security. contract Hamste...
@dev allows anyone to view the owner's hamster graveyard@param hamsterGraveNum - id of the hamster grave to view@return name, yearOfBirth, yearOfDeath, memoriam
function viewHamsterGrave (uint hamsterGraveNum) view public returns (string memory name, uint yearOfBirth, uint yearOfDeath, string memory memoriam) { name = graves[hamsterGraveNum].name; yearOfBirth = graves[hamsterGraveNum].yearOfBirth; yearOfDeath = graves[hamsterGraveNum].yearOfDeath; ...
5,401,215
[ 1, 5965, 87, 1281, 476, 358, 1476, 326, 3410, 1807, 366, 301, 8190, 3087, 9062, 1060, 366, 301, 8190, 14571, 537, 2578, 300, 612, 434, 326, 366, 301, 8190, 3087, 537, 358, 1476, 2463, 508, 16, 3286, 951, 25791, 16, 3286, 951, 758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 1476, 44, 301, 8190, 14571, 537, 261, 11890, 366, 301, 8190, 14571, 537, 2578, 13, 1476, 1071, 203, 202, 225, 1135, 261, 1080, 3778, 508, 16, 2254, 3286, 951, 25791, 16, 2254, 3286, 951, 758, 421, 16, 533, 3778, 1663, ...
./full_match/1/0x7c21F5114A6226900a68Df97ebbaE4863b594046/sources/contracts/Landing/LendingPool.sol
transferring the tokens in the end
token.transfer(user, _amount);
17,186,863
[ 1, 2338, 74, 20245, 326, 2430, 316, 326, 679, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1147, 18, 13866, 12, 1355, 16, 389, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; pragma experimental ABIEncoderV2; import './interfaces/IForceMove.sol'; import './interfaces/IForceMoveApp.sol'; /** * @dev An implementation of ForceMove protocol, which allows state channels to be adjudicated and finalized. */ contract ForceMove is IForceMove...
* @notice Checks that a given channel is in the Challenge mode. @dev Checks that a given channel is in the Challenge mode. @param channelId Unique identifier for a channel./
function _requireOngoingChallenge(bytes32 channelId) internal view { require(_mode(channelId) == ChannelMode.Challenge, 'No ongoing challenge.'); }
993,169
[ 1, 4081, 716, 279, 864, 1904, 353, 316, 326, 1680, 8525, 1965, 18, 225, 13074, 716, 279, 864, 1904, 353, 316, 326, 1680, 8525, 1965, 18, 225, 27709, 14584, 2756, 364, 279, 1904, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 6528, 1398, 8162, 18359, 12, 3890, 1578, 27709, 13, 2713, 1476, 288, 203, 3639, 2583, 24899, 3188, 12, 4327, 548, 13, 422, 5307, 2309, 18, 18359, 16, 296, 2279, 30542, 12948, 1093, 1769, 203, 565, 289, 203, 203, 2,...
pragma solidity ^0.4.24; import './DNSUtilLibrary.sol'; import './BidRegistry.sol'; import './DNSDataModel.sol'; import './DNSStates.sol'; import './DNSBid.sol'; contract DNSDappMaster is DNSUtilLibrary { // constructor constructor() public { dnsRegistryOwner = msg.sender; emit DnsNameCreate...
mapping for name to corresponding bidRegistry for name key: dnsNameOwner value: BidRegistry (contains all bids received for the owner)
mapping (bytes32 => BidRegistry) bidRegistryMap;
12,940,606
[ 1, 6770, 364, 508, 358, 4656, 9949, 4243, 364, 508, 498, 30, 6605, 461, 5541, 460, 30, 605, 350, 4243, 261, 12298, 777, 30534, 5079, 364, 326, 3410, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 3890, 1578, 516, 605, 350, 4243, 13, 9949, 4243, 863, 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,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol"; contract Lottery is VRFConsumerBase { address public owner; address payable[] public players; uint public lotteryID; mapping (uint => address payable) public lotteryHistory; byte...
fee to get random number
uint internal fee;
2,492,575
[ 1, 21386, 358, 336, 2744, 1300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 2713, 14036, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.6.0 <0.7.0; pragma experimental ABIEncoderV2; import "./PrizePoolBuilder.sol"; import "../registry/RegistryInterface.sol"; import "../prize-pool/compound/CompoundPrizePoolProxyFactory.sol"; import "../external/compound/CTokenInterface.sol"; /// @title Creates...
@notice Sets the drip rate for a balance drip. The drip rate is the number of drip tokens given to the entire supply of measure tokens. Only callable by the owner. @param source The balance drip "source"; i.e. Prize Pool @param measure The token to use to measure a user's share of the drip rate @param dripToken The ...
function setBalanceDripRate(address source, address measure, address dripToken, uint256 dripRatePerSecond) external onlyOwner { balanceDrips[source].setDripRate(measure, dripToken, dripRatePerSecond, _currentTime().toUint32(), _availableDripTokenBalance(dripToken)); emit BalanceDripRateSet( source, ...
12,863,603
[ 1, 2785, 326, 302, 21335, 4993, 364, 279, 11013, 302, 21335, 18, 225, 1021, 302, 21335, 4993, 353, 326, 1300, 434, 302, 21335, 2430, 864, 358, 326, 7278, 14467, 434, 6649, 2430, 18, 225, 5098, 4140, 635, 326, 3410, 18, 225, 1084, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 444, 13937, 40, 21335, 4727, 12, 2867, 1084, 16, 1758, 6649, 16, 1758, 302, 21335, 1345, 16, 2254, 5034, 302, 21335, 4727, 2173, 8211, 13, 3903, 1338, 5541, 288, 203, 565, 11013, 40, 566, 1121, 63, 3168, 8009, 542, 40, ...
./partial_match/1/0x70D802a6aF373F8fF6962a745aB9CeDdEF83BaEc/sources/AI247Token.sol
* @return the address where funds are collected./
function wallet() public view returns (address payable) { return _wallet; }
3,558,782
[ 1, 2463, 326, 1758, 1625, 284, 19156, 854, 12230, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9230, 1435, 1071, 1476, 1135, 261, 2867, 8843, 429, 13, 288, 203, 3639, 327, 389, 19177, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.19; /* * Creator: BINO (Binocoin) */ /* * Abstract Token Smart Contract * */ /* * Safe Math Smart Contract. * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract SafeMath { function mul(uint256 a, uint256 b) internal pure returns ...
* Maximum allowed number of tokens in circulation. tokenSupply = tokensIActuallyWant (10 ^ decimals)/* Address of the owner of this smart contract./* Frozen account list holder/* Current number of tokens in circulation./* True if tokens transfers are currently frozen, false otherwise./* Create new token smart contract...
function BINOToken () { owner = msg.sender; }
13,477
[ 1, 13528, 2935, 1300, 434, 2430, 316, 5886, 1934, 367, 18, 1147, 3088, 1283, 273, 2430, 45, 2459, 3452, 59, 970, 225, 261, 2163, 3602, 15105, 13176, 5267, 434, 326, 3410, 434, 333, 13706, 6835, 18, 19, 478, 9808, 2236, 666, 10438, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18369, 51, 1345, 1832, 288, 203, 565, 3410, 273, 1234, 18, 15330, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...