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
./full_match/4/0x7C383E9578da9f6068532bd0d4a2c1De34516B96/sources/contracts/Mainnet/V1_Vanilla/MintingAuctionV1.sol
@author Guillaume Gonnaud 2019 @title Minting Auction Header @notice Contain all the events emitted by the Minting Auction
contract MintingAuctionHeaderV1 { event BidAccepted(uint256 bidValue, address bidder); event Payout(uint256 amount, address beneficiary, address contributor); event BidCancelled(uint256 bidValue, uint256 ethReturned, address bidder); event SaleStarted(address seller, uint256 hammerTime, uint256 hammerBl...
13,351,565
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 4161, 6467, 10745, 2066, 611, 265, 6582, 1100, 30562, 632, 2649, 490, 474, 310, 432, 4062, 4304, 632, 20392, 1816, 530, 777, 326, 2641, 17826, 635, 326, 490, 474, 310, 432, 4062, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 490, 474, 310, 37, 4062, 1864, 58, 21, 288, 203, 565, 871, 605, 350, 18047, 12, 11890, 5034, 9949, 620, 16, 1758, 9949, 765, 1769, 203, 565, 871, 453, 2012, 12, 11890, 5034, 3844, 16, 1758, 27641, 74, 14463, 814, 16, 175...
./full_match/137/0x9CA52603d5F51057dec1DCA0d80d8c03Ec1ee2a4/sources/project_/contracts/libraries/NonceInvalidations.sol
Changing the Chain Propagation Period will not affect the effectiveBlockNumber for this invalidation
effectiveBlockNumber = block.number + chainPropagationPeriod;
4,694,970
[ 1, 4625, 348, 7953, 560, 30, 225, 1680, 18183, 326, 7824, 1186, 9095, 367, 12698, 903, 486, 13418, 326, 11448, 1768, 1854, 364, 333, 22996, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 11448, 1768, 1854, 273, 1203, 18, 2696, 397, 2687, 14225, 5027, 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, ...
// COPIED FROM https://github.com/compound-finance/compound-protocol/blob/master/contracts/Comptroller.sol //Copyright 2020 Compound Labs, Inc. //Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: //1. Redistributions of source ...
Pausing is a very serious situation - we revert to sound the alarms only pTokens may call borrowAllowed if borrower not in market attempt to add borrower to the market Borrow cap of 0 corresponds to unlimited borrowingdistribute wpc
function borrowAllowed(address pToken, address borrower, uint borrowAmount) external override(IComptroller) returns (uint) { require(!pTokenBorrowGuardianPaused[pToken], "borrow is paused"); if (!markets[pToken].isListed) { return uint(Error.MARKET_NOT_LISTED); } if (!...
5,421,759
[ 1, 4625, 348, 7953, 560, 30, 225, 21800, 9940, 353, 279, 8572, 703, 22774, 20886, 300, 732, 15226, 358, 14190, 326, 524, 20452, 1338, 293, 5157, 2026, 745, 29759, 5042, 309, 29759, 264, 486, 316, 13667, 4395, 358, 527, 29759, 264, 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, 0, 0, 0, 0...
[ 1, 565, 445, 29759, 5042, 12, 2867, 293, 1345, 16, 1758, 29759, 264, 16, 2254, 29759, 6275, 13, 3903, 3849, 12, 45, 799, 337, 1539, 13, 1135, 261, 11890, 13, 288, 203, 203, 3639, 2583, 12, 5, 84, 1345, 38, 15318, 16709, 2779, 2859...
/* * Nomin TokenState Contract * * Stores ERC20 balance and approval information for the * nomin component of the Havven stablecoin system. * * version: nUSDa.1 * date: 29 Jun 2018 * url: https://github.com/Havven/havven/releases/tag/nUSDa.1 */ pragma solidity 0.4.24; /* ---------------...
* @title ERC20 Token State @notice Stores balance information of an ERC20 token contract./
contract TokenState is State { mapping(address => uint) public balanceOf; mapping(address => mapping(address => uint)) public allowance; constructor(address _owner, address _associatedContract) State(_owner, _associatedContract) public function setAllowance(address tokenOwner, ad...
7,319,796
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 3462, 3155, 3287, 632, 20392, 20296, 455, 11013, 1779, 434, 392, 4232, 39, 3462, 1147, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 1119, 353, 3287, 288, 203, 7010, 565, 2874, 12, 2867, 516, 2254, 13, 1071, 11013, 951, 31, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 2254, 3719, 1071, 1699, 1359, 31, 203, 7010, 565, 3885, 12, 2867, 389, ...
./full_match/3/0xe885772c41780Ea311E2F122D7EEB22D0E82718f/sources/browser/MyKyberHelper.sol
check for overflows do encoding
function encodeTokenImbalanceData(KyberTokenImbalanceData memory data) internal pure returns(uint) { require(data.lastBlockBuyUnitsImbalance < int(POW_2_64 / 2)); require(data.lastBlockBuyUnitsImbalance > int(-1 * int(POW_2_64) / 2)); require(data.lastBlock < POW_2_64); require(data....
14,161,261
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 364, 9391, 87, 741, 2688, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2017, 1345, 1170, 12296, 751, 12, 47, 93, 744, 1345, 1170, 12296, 751, 3778, 501, 13, 2713, 16618, 1135, 12, 11890, 13, 288, 203, 3639, 2583, 12, 892, 18, 2722, 1768, 38, 9835, 7537, 1170, 12296, 411, 509, 12, 2419, 5...
// Defines the compiler version pragma solidity ^0.4.24; import './Library/Ownable.sol'; // Basic Token contract BasicToken is Ownable { string public tokenSymbol; string public tokenName; // Token balance storage mapping(address => uint256) tokenBalances; // Token information struct CoinB...
Basic Token Token balance storage Token information
contract BasicToken is Ownable { string public tokenSymbol; string public tokenName; mapping(address => uint256) tokenBalances; pragma solidity ^0.4.24; }
12,857,116
[ 1, 4625, 348, 7953, 560, 30, 225, 7651, 3155, 3155, 11013, 2502, 3155, 1779, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7651, 1345, 353, 14223, 6914, 288, 203, 203, 565, 533, 1071, 1147, 5335, 31, 203, 565, 533, 1071, 1147, 461, 31, 203, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1147, 38, 26488, 31, 203, 203, 683, 9454, 18035, 560, 3...
./full_match/1/0x801C71A771E5710D41AC4C0F1d6E82bd07B5Fa43/sources/contracts/ESAGIToken.sol
* @dev returns quantity of "userAddress" pending redeems/
function getUserRedeemsLength(address userAddress) external view returns (uint256) { return userRedeems[userAddress].length; }
9,676,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1135, 10457, 434, 315, 1355, 1887, 6, 4634, 283, 323, 7424, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4735, 426, 323, 7424, 1782, 12, 2867, 729, 1887, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 729, 426, 323, 7424, 63, 1355, 1887, 8009, 2469, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100,...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; // TODO dev only // import "hardhat/console.sol"; /** * IcyMembership con...
Allows `owner` to set address paid up to
function setAddressPaidUpTo(address _addr, uint256 _paidUpTo) external onlyOwner { addressPaidUpTo[_addr] = _paidUpTo; }
11,987,741
[ 1, 4625, 348, 7953, 560, 30, 225, 25619, 1375, 8443, 68, 358, 444, 1758, 30591, 731, 358, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 1887, 16507, 350, 1211, 774, 12, 2867, 389, 4793, 16, 2254, 5034, 389, 29434, 1211, 774, 13, 3903, 1338, 5541, 288, 203, 565, 1758, 16507, 350, 1211, 774, 63, 67, 4793, 65, 273, 389, 29434, 1211, 774, 31, 203, 22...
./full_match/5/0x80A20CBA41343c2571903265F0dEC4B088eF5fE7/sources/project_/contracts/ERC721Lazy.sol
* @dev Releases the amount of tokens held againts the address @param tokenId The token Id @param tokenUri The token uri associated with the token Id @param from The address from which token wil be transfered @param to The address to which token will be transfered Emits two {Transfer} events. One when the token is mint,...
function mintAndTransfer(uint256 tokenId, string memory tokenUri, address from, address to) public onlyOperator { _safeMint(from, tokenId); _setTokenURI(tokenId, tokenUri); _transfer(from, to, tokenId); }
1,879,736
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4275, 73, 3304, 326, 3844, 434, 2430, 15770, 1737, 1598, 87, 326, 1758, 632, 891, 1147, 548, 1021, 1147, 3124, 632, 891, 1147, 3006, 1021, 1147, 2003, 3627, 598, 326, 1147, 3124, 632, 891...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1876, 5912, 12, 11890, 5034, 1147, 548, 16, 533, 3778, 1147, 3006, 16, 1758, 628, 16, 1758, 358, 13, 1071, 1338, 5592, 288, 203, 3639, 389, 4626, 49, 474, 12, 2080, 16, 1147, 548, 1769, 203, 3639, 389, 542, ...
// SPDX-License-Identifier: MIT pragma solidity >0.7.5; pragma experimental ABIEncoderV2; /* Interface Imports */ import { iL1NFTBridge } from "./interfaces/iL1NFTBridge.sol"; import { iL2NFTBridge } from "./interfaces/iL2NFTBridge.sol"; import { IERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; /* L...
needs to verify comes from correct l1Contract
require(exits[_l2Contract][_tokenId] == _l1Contract, "Incorrect Deposit");
12,620,404
[ 1, 4625, 348, 7953, 560, 30, 225, 4260, 358, 3929, 14535, 628, 3434, 328, 21, 8924, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 2583, 12, 338, 1282, 63, 67, 80, 22, 8924, 6362, 67, 2316, 548, 65, 422, 389, 80, 21, 8924, 16, 315, 16268, 4019, 538, 305, 8863, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: BUSL-1.1 // For further clarification please see https://license.premia.legal pragma solidity ^0.8.0; import {ERC165} from "@solidstate/contracts/introspection/ERC165.sol"; import {ERC1155Enumerable} from "@solidstate/contracts/token/ERC1155/enumerable/ERC1155Enumerable.sol"; import {IERC2...
* @inheritdoc IERC165/
function supportsInterface(bytes4 interfaceId) public view returns (bool) { return ERC165Storage.layout().isSupportedInterface(interfaceId); }
596,740
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 467, 654, 39, 28275, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 4232, 39, 28275, 3245, 18, 6741, 7675, 291, 7223, 1358, 12, 5831, 548, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100...
./partial_match/3/0x508d2c2C3584E6e1e2AdFA0b7c0823846914BfFf/sources/LnChainLinkPrices.sol
外部调用,更新汇率 oracle是一个地址,从外部用脚本定期调用这个接口
function updateAll( bytes32[] calldata currencyNames, uint[] calldata newPrices, uint timeSent ) external onlyOracle returns (bool) { _updateAll(currencyNames, newPrices, timeSent); }
5,138,634
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 166, 102, 249, 170, 230, 106, 169, 113, 230, 168, 247, 106, 176, 125, 239, 167, 254, 117, 167, 249, 113, 167, 114, 234, 168, 241, 234, 20865, 167, 251, 112, 165, 121, 227, 165, 121, 108, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1595, 12, 203, 3639, 1731, 1578, 8526, 745, 892, 5462, 1557, 16, 203, 3639, 2254, 8526, 745, 892, 394, 31862, 16, 203, 3639, 2254, 813, 7828, 203, 565, 262, 3903, 1338, 23601, 1135, 261, 6430, 13, 288, 203, 3639, ...
./full_match/137/0x6ceb95626A59a2F8B1d0B6DB970F4190B89354C7/sources/contracts/base/InvariantGrowthProtocolFees.sol
After all joins and exits we store the post join/exit invariant in order to compute growth due to swap fees in the next one. Compute the post balances by adding or removing the deltas. Note that we're allowed to mutate preBalances. Cannot optimize calls with a function selector: there are 2- and 3-argument versions of...
function _afterJoinExit( bool isJoin, uint256[] memory preBalances, uint256[] memory balanceDeltas, uint256[] memory normalizedWeights ) internal virtual override { for (uint256 i = 0; i < preBalances.length; ++i) { preBalances[i] = isJoin ? S...
3,751,518
[ 1, 4625, 348, 7953, 560, 30, 225, 7360, 777, 13471, 471, 19526, 732, 1707, 326, 1603, 1233, 19, 8593, 22514, 316, 1353, 358, 3671, 13334, 451, 6541, 358, 7720, 1656, 281, 316, 326, 1024, 1245, 18, 8155, 326, 1603, 324, 26488, 635, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5205, 4572, 6767, 12, 203, 3639, 1426, 353, 4572, 16, 203, 3639, 2254, 5034, 8526, 3778, 675, 38, 26488, 16, 203, 3639, 2254, 5034, 8526, 3778, 11013, 2837, 9158, 16, 203, 3639, 2254, 5034, 8526, 3778, 5640, 16595, ...
./full_match/5/0x8FCB2B8271Bb1a80849FBaC39f17581225C5DF05/sources/project_/contracts/SweetToken.sol
Mark this account as a whale
_isWhale[account] = true;
1,854,015
[ 1, 4625, 348, 7953, 560, 30, 225, 6622, 333, 2236, 487, 279, 600, 5349, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 389, 291, 2888, 5349, 63, 4631, 65, 273, 638, 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,...
pragma solidity ^0.4.11; contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) throw; _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract tokenRecipient { function re...
Check if this address is part of presale contributors
if (!presaleContributorAllowance[msg.sender]) throw;
12,965,948
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 333, 1758, 353, 1087, 434, 4075, 5349, 13608, 13595, 4697, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 9506, 202, 430, 16051, 12202, 5349, 442, 19293, 7009, 1359, 63, 3576, 18, 15330, 5717, 604, 31, 6862, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2020-02-11 */ // File: @aragon/os/contracts/common/EtherTokenConstant.sol /* * SPDX-License-Identitifer: MIT */ pragma solidity ^0.4.24; // aragonOS and aragon-apps rely on address(0) to denote native ETH, in // contracts where both tokens and ETH are accept...
* Returns the ABI associated with an ENS node. Defined in EIP205. @param node The ENS node to query @param contentTypes A bitwise OR of the ABI formats accepted by the caller. @return contentType The content type of the return value @return data The ABI data/
function ABI(bytes32 node, uint256 contentTypes) public constant returns (uint256 contentType, bytes data) { var record = records[node]; for(contentType = 1; contentType <= contentTypes; contentType <<= 1) { if ((contentType & contentTypes) != 0 && record.abis[contentType].length > 0) { ...
451,436
[ 1, 4625, 348, 7953, 560, 30, 380, 2860, 326, 10336, 45, 3627, 598, 392, 512, 3156, 756, 18, 18003, 329, 316, 512, 2579, 31777, 18, 632, 891, 756, 1021, 512, 3156, 756, 358, 843, 632, 891, 21535, 432, 25337, 4869, 434, 326, 10336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10336, 45, 12, 3890, 1578, 756, 16, 2254, 5034, 21535, 13, 1071, 5381, 1135, 261, 11890, 5034, 5064, 16, 1731, 501, 13, 288, 203, 3639, 569, 1409, 273, 3853, 63, 2159, 15533, 203, 3639, 364, 12, 22194, 273, 404, 31, 5...
pragma solidity ^0.4.10; /** * @title Interface to communicate with ICO token contract */ contract IToken { function balanceOf(address _address) constant returns (uint balance); function transferFromOwner(address _to, uint256 _value) returns (bool success); } /** * @title Presale token contract */ contract To...
Second million of tokens will go 12106537530266 wei for 1 token
tokenSupplies[1] = TokenSupply(100000000, 0, 11848341232227);
13,038,991
[ 1, 4625, 348, 7953, 560, 30, 225, 7631, 312, 737, 285, 434, 2430, 903, 1960, 2593, 22135, 8643, 5877, 23, 3103, 6028, 732, 77, 364, 404, 1147, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 2316, 3088, 5259, 63, 21, 65, 273, 3155, 3088, 1283, 12, 21, 12648, 16, 374, 16, 404, 2643, 8875, 5026, 2138, 1578, 3787, 27, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Con...
* For gasless transactions on OpenSea/
abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { sender := and( mload(add(ar...
5,382,005
[ 1, 4625, 348, 7953, 560, 30, 380, 2457, 16189, 2656, 8938, 603, 3502, 1761, 69, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 1772, 14439, 288, 203, 565, 445, 1234, 12021, 1435, 2713, 1476, 1135, 261, 2867, 8843, 429, 5793, 13, 288, 203, 3639, 309, 261, 3576, 18, 15330, 422, 1758, 12, 2211, 3719, 288, 203, 5411, 1731, 3778, 526, 273, 1234, ...
./full_match/1/0x51a3282B75D1a82A0eEB85be2b9BEb1FfeEE0250/sources/contracts/ZIPO.sol
0.42% burning rate
uint256 private constant BURN_RATE = 42;
4,963,802
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 18, 9452, 9, 18305, 310, 4993, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 5381, 605, 8521, 67, 24062, 273, 14856, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x15FdD1e902cAC70786fe7D31013B1a806764B5a2/sources/ConnectCompound.sol
* @dev Liquidate a position. @param borrower Borrower's Address. @param tokenToPay token address to pay for liquidation.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) @param tokenInReturn token address to return for liquidation.(For ETH: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) @param amt token amount to pay ...
function liquidate( address borrower, address tokenToPay, address tokenInReturn, uint amt, uint getId, uint setId ) external payable { uint _amt = getUint(getId, amt); address cTokenPay = InstaMapping(getMappingAddr()).cTokenMapping(tokenToPay)...
4,121,126
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 511, 18988, 350, 340, 279, 1754, 18, 632, 891, 29759, 264, 605, 15318, 264, 1807, 5267, 18, 632, 891, 1147, 774, 9148, 1147, 1758, 358, 8843, 364, 4501, 26595, 367, 18, 12, 1290, 512, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4501, 26595, 340, 12, 203, 3639, 1758, 29759, 264, 16, 203, 3639, 1758, 1147, 774, 9148, 16, 203, 3639, 1758, 1147, 382, 990, 16, 203, 3639, 2254, 25123, 16, 203, 3639, 2254, 2634, 16, 203, 3639, 2254, 10446, 203, 565, ...
pragma solidity ^0.4.23; interface ERC721 /* is ERC165 */ { event Transfer(address indexed _from, address indexed _to, uint256 indexed _tokenId); event Approval(address indexed _owner, address indexed _approved, uint256 indexed _tokenId); event ApprovalForAll(address indexed _owner, addre...
via https:github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol
library Strings { function strConcat(string _a, string _b, string _c, string _d, string _e) internal pure returns (string) { bytes memory _ba = bytes(_a); bytes memory _bb = bytes(_b); bytes memory _bc = bytes(_c); bytes memory _bd = bytes(_d); bytes memory _be = bytes(_e); st...
5,493,033
[ 1, 4625, 348, 7953, 560, 30, 225, 3970, 2333, 30, 6662, 18, 832, 19, 280, 10150, 554, 19, 546, 822, 379, 17, 2425, 19, 10721, 19, 7525, 19, 280, 10150, 554, 2557, 67, 20, 18, 25, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 8139, 288, 203, 377, 203, 225, 445, 609, 15113, 12, 1080, 389, 69, 16, 533, 389, 70, 16, 533, 389, 71, 16, 533, 389, 72, 16, 533, 389, 73, 13, 2713, 16618, 1135, 261, 1080, 13, 288, 203, 1377, 1731, 3778, 389, 12124, ...
pragma solidity ^0.4.10; /** * @title Interface to communicate with ICO token contract */ contract IToken { function balanceOf(address _address) constant returns (uint balance); function transferFromOwner(address _to, uint256 _value) returns (bool success); } /** * @title Presale token contract */ contract To...
* @dev Converts/exchanges sold Presale tokens to ICO ones according to provided exchange rate @param owner address/
function exchangeToIco(address owner) private returns (bool) { if(icoToken != address(0)) { return icoToken.transferFromOwner(owner, balanceFor[owner] * exchangeRate); } return false; }
13,039,008
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 20377, 19, 338, 6329, 272, 1673, 18346, 5349, 2430, 358, 467, 3865, 5945, 4888, 358, 2112, 7829, 4993, 632, 891, 3410, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7829, 774, 45, 2894, 12, 2867, 3410, 13, 3238, 1135, 261, 6430, 13, 288, 203, 202, 565, 309, 12, 10764, 1345, 480, 1758, 12, 20, 3719, 288, 203, 1082, 565, 327, 277, 2894, 1345, 18, 13866, 1265, 5541, 12, 8443, 16, ...
pragma solidity ^0.5.0; import "../math/SafeMath.sol"; import "../access/Owner.sol"; import "./TokenHandler.sol"; contract ERC20TokenLock is Owner,TokenHandler { using SafeMath for uint256; uint256 constant MIN_AMOUNT = 100 ether; // 最小的锁仓数量,Token精度与以太币一致为18 uint256 constant ONE_YEAR_SECONDS = 365*24*6...
最小的锁仓数量,Token精度与以太币一致为18
uint256 constant MIN_AMOUNT = 100 ether;
12,717,243
[ 1, 4625, 348, 7953, 560, 30, 225, 225, 167, 255, 227, 166, 113, 242, 168, 253, 231, 170, 247, 228, 165, 124, 246, 167, 248, 113, 170, 234, 242, 176, 125, 239, 1345, 168, 115, 127, 166, 123, 104, 165, 121, 241, 165, 124, 103, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2254, 5034, 5381, 6989, 67, 2192, 51, 5321, 282, 273, 2130, 225, 2437, 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,...
// File: @openzeppelin/contracts/utils/math/SafeMath.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow c...
File: @openzeppelin/contracts/access/Ownable.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 that deploys the contract. This can later be changed wit...
abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function _beforeTokenTransfer( address from, address to, uint256 tokenId function _afterTokenTransfer( address from, ...
255,664
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 3860, 19, 5460, 429, 18, 18281, 14, 632, 5206, 13456, 1605, 1492, 8121, 279, 5337, 2006, 3325, 12860, 16, 1625, 1915, 353, 392, 2236,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 14223, 6914, 353, 1772, 288, 203, 565, 1758, 3238, 389, 8443, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 4193, 12, 2867, 8808, 2416, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 203, 565, 445, 389, 5771, 1345, 5...
// SPDX-License-Identifier: Unlicense pragma solidity 0.7.6; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; import "@uniswap/v3-core/contracts/libraries/TickMath.sol"; import "./AlphaVault.sol"; import { IStrikeSelection, IOptionsPremiumPricer } from "./interfaces/IRibbon.sol"; import "./u...
* @notice Calculates new ranges for orders and calls `vault.rebalance()` so that vault can update its positions. Can only be called by keeper./ Check price is not too close to min/max allowed by Uniswap. Price shouldn't be this extreme unless something was wrong with the pool. Check price has not moved a lot recently. ...
function rebalance() external { require(msg.sender == keeper, "keeper"); int24 _baseThreshold = baseThreshold; int24 _limitThreshold = limitThreshold; int24 tick = getTick(); int24 maxThreshold = _baseThreshold > _limitThreshold ? _baseThreshold : _limitThreshol...
2,518,818
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 26128, 394, 7322, 364, 11077, 471, 4097, 1375, 26983, 18, 266, 12296, 20338, 1427, 716, 9229, 848, 1089, 2097, 6865, 18, 4480, 1338, 506, 2566, 635, 417, 9868, 18, 19, 2073, 6205, 353, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 12296, 1435, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 417, 9868, 16, 315, 79, 9868, 8863, 203, 203, 3639, 509, 3247, 389, 1969, 7614, 273, 1026, 7614, 31, 203, 3639, 509, 3247, 389, 3595, 7614, 273, ...
./full_match/11155111/0x039794dAe419d28AEF3d115F257eccF5125962be/sources/project_/contracts/World1.sol
true: only NFT_CREATOR_ROLE can create NFTs; false = anybody can create NFTs
bool onlyNFTCreatorRole;
3,813,768
[ 1, 4625, 348, 7953, 560, 30, 225, 638, 30, 1338, 423, 4464, 67, 5458, 3575, 67, 16256, 848, 752, 423, 4464, 87, 31, 629, 273, 1281, 3432, 848, 752, 423, 4464, 87, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 1426, 1338, 50, 4464, 10636, 2996, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.4.9 <0.9.0; library HederaResponseCodes { // response codes int32 public constant OK = 0; // The transaction passed the precheck validations. int32 public constant INVALID_TRANSACTION = 1; // For any error not handled by specific error codes liste...
For any error not handled by specific error codes listed below.
int32 public constant INVALID_TRANSACTION = 1;
14,068,783
[ 1, 4625, 348, 7953, 560, 30, 225, 2457, 1281, 555, 486, 7681, 635, 2923, 555, 6198, 12889, 5712, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 1578, 1071, 5381, 10071, 67, 22364, 273, 404, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0x46708A7B62f04482dAEF7b914Bfafdd471FdAF19/sources/contracts/esLBRMinterV2.sol
Duration of rewards to be paid out (in seconds) Timestamp of when the rewards finish Minimum of last updated time and reward finish time Reward to be paid out per second Sum of (reward rate * dt * 1e18 / total supply) User address => rewardPerTokenStored User address => rewards to be claimed Currently, the official re...
contract esLBRMinerV2 is Ownable { ILybra public immutable lybra; Ihelper public helper; IesLBRBoost public esLBRBoost; IlybraFund public lybraFund; address public esLBR; uint256 public duration = 2_592_000; uint256 public finishAt; uint256 public updatedAt; uint256 public rewardRat...
2,909,857
[ 1, 4625, 348, 7953, 560, 30, 225, 4822, 434, 283, 6397, 358, 506, 30591, 596, 261, 267, 3974, 13, 8159, 434, 1347, 326, 283, 6397, 4076, 23456, 434, 1142, 3526, 813, 471, 19890, 4076, 813, 534, 359, 1060, 358, 506, 30591, 596, 1534,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 5001, 48, 7192, 2930, 264, 58, 22, 353, 14223, 6914, 288, 203, 565, 467, 48, 93, 15397, 1071, 11732, 18519, 15397, 31, 203, 565, 467, 4759, 1071, 4222, 31, 203, 565, 467, 281, 48, 7192, 26653, 1071, 5001, 48, 7192, 26653, ...
./partial_match/1/0x9460b380c57F65e8AFc4bA3518F643A526640F26/sources/contracts/protocol/libraries/logic/ValidationLogic.sol
* @notice Validates a repay action. @param reserveCache The cached data of the reserve @param amountSent The amount sent for the repayment. Can be an actual value or uint(-1) @param onBehalfOf The address of the user msg.sender is repaying for @param variableDebt The borrow balance of the user/
function validateRepay( DataTypes.ReserveCache memory reserveCache, uint256 amountSent, address onBehalfOf, uint256 variableDebt ) internal view { require(amountSent != 0, Errors.INVALID_AMOUNT); require( amountSent != type(uint256).max || msg.sender =...
4,203,402
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2364, 815, 279, 2071, 528, 1301, 18, 632, 891, 20501, 1649, 1021, 3472, 501, 434, 326, 20501, 632, 891, 3844, 7828, 1021, 3844, 3271, 364, 326, 2071, 2955, 18, 4480, 506, 392, 3214, 460,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 426, 10239, 12, 203, 3639, 1910, 2016, 18, 607, 6527, 1649, 3778, 20501, 1649, 16, 203, 3639, 2254, 5034, 3844, 7828, 16, 203, 3639, 1758, 603, 1919, 20222, 951, 16, 203, 3639, 2254, 5034, 2190, 758, 23602, 203, 5...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/...
@notice The Convex Booster contract (for deposit/withdraw) @notice The Convex Rewards contract (for claiming rewards)*/
{ convexBooster = _convexBooster; convexRewards = _convexRewards; pid = _convexRewards.pid(); asset.safeApprove(address(convexBooster), type(uint256).max); }
10,129,655
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1021, 18263, 338, 17980, 29811, 6835, 261, 1884, 443, 1724, 19, 1918, 9446, 13, 632, 20392, 1021, 18263, 338, 534, 359, 14727, 6835, 261, 1884, 7516, 310, 283, 6397, 13, 5549, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 26213, 26653, 264, 273, 389, 4896, 338, 26653, 264, 31, 203, 3639, 26213, 17631, 14727, 273, 389, 4896, 338, 17631, 14727, 31, 203, 203, 3639, 4231, 273, 389, 4896, 338, 17631, 14727, 18, 6610, 5621, 203, 203, ...
./full_match/1/0xCEB1aAaf0E97b7a9b6d7313e999a3a27b04d75Cb/sources/src/tokens/ERC20.sol
* @dev See {IERC20-balanceOf}./
function balanceOf(address guy) external view virtual override returns (uint256) { return _balanceOf[guy]; }
17,135,353
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 45, 654, 39, 3462, 17, 12296, 951, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 951, 12, 2867, 3058, 93, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, 12296, 951, 63, 6891, 93, 15533, 203, ...
./partial_match/1/0xCa0efDE99FaD821a5b457cc5708F2de6f130B3C6/sources/LUCY.sol
2% from total supply maxTransactionAmountTxn
maxTransactionAmount = 70_000_000 * 1e18;
3,607,245
[ 1, 4625, 348, 7953, 560, 30, 225, 576, 9, 628, 2078, 14467, 943, 3342, 6275, 13789, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 3342, 6275, 273, 16647, 67, 3784, 67, 3784, 380, 404, 73, 2643, 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, ...
./partial_match/1/0x4F08eE02951C376A13406894AB678D249C9E68c1/sources/RAYBancorConverter.sol
* @dev deposits the _reserveToken in _amount to the corresponding RAY token owned by the instance of this contract. Fails upon error. note - assumes ERC20 approval given to the RAY contract already, need to decide if we wish to do this once (max. approval), etc. Example: Deposit 10 DAI: (rayTokenId, 1e19) @param rayCon...
function depositToRAY(address rayContract, bytes32 rayTokenId, uint256 _amount) internal { }
9,259,214
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 443, 917, 1282, 326, 389, 455, 6527, 1345, 316, 389, 8949, 358, 326, 4656, 534, 5255, 1147, 16199, 635, 326, 791, 434, 333, 6835, 18, 8911, 87, 12318, 555, 18, 4721, 300, 13041, 4232, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 443, 1724, 774, 6722, 12, 2867, 14961, 8924, 16, 1731, 1578, 14961, 1345, 548, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 203, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0x7E16eFB8B68e04075F368B5618EbC479F57c20E5 //Contract name: Cents //Balance: 0 Ether //Verification Date: 10/12/2017 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^ 0.4 .11; /* * @title String & slice utility library for Solidity contracts. * @author Nick Johnson <arachnid@notdot.net> * *...
A contract attempts to get the coins */ contractCheck( _to , _value );
function transferFrom(address _from, address _to, uint256 _value) returns(bool success) { if ( accountFreeze[ _from ] ) throw; appendTokenHolders(_to); setZeroMarker( _to ); setZeroMarker( _from ); distributionSync( _to , false ); distribut...
908,484
[ 1, 4625, 348, 7953, 560, 30, 225, 432, 6835, 7531, 358, 336, 326, 276, 9896, 1195, 6835, 1564, 12, 389, 869, 269, 389, 1132, 11272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1135, 12, 6430, 2216, 13, 288, 203, 3639, 309, 261, 2236, 9194, 8489, 63, 389, 2080, 308, 225, 262, 604, 31, 203, 540, 203, 540, 20...
// SPDX-License-Identifier: AGPL-3.0-or-later // Copyright (C) 2021 Dai Foundation // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your op...
IMPORTANT: this function assumes Vat rate of this ilk will always be == 1 * RAY (no fees). That's why it converts normalized debt (art) to Vat DAI generated with a simple RAY multiplication or division This module will have an unintended behaviour if rate is changed to some other value. Normal mode or module just cage...
function _unwind(uint256 supplyReduction, uint256 availableLiquidity, Mode mode) internal { address end; uint256 adaiBalance = adai.balanceOf(address(this)); uint256 daiDebt; if (mode == Mode.NORMAL) { (,daiDebt) = vat.urns(ilk, address(this)); daiDebt = vat....
1,083,599
[ 1, 4625, 348, 7953, 560, 30, 225, 21840, 6856, 30, 333, 445, 13041, 25299, 4993, 434, 333, 14254, 79, 903, 3712, 506, 422, 404, 380, 534, 5255, 261, 2135, 1656, 281, 2934, 12466, 1807, 11598, 518, 7759, 5640, 18202, 88, 261, 485, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 10094, 12, 11890, 5034, 14467, 3715, 4062, 16, 2254, 5034, 2319, 48, 18988, 24237, 16, 8126, 1965, 13, 2713, 288, 203, 203, 3639, 1758, 679, 31, 203, 3639, 2254, 5034, 1261, 10658, 13937, 273, 1261, 10658, 18, ...
./full_match/1/0x5A65B7afeE4Ab9D899b6Ab12d9211A776ffA6631/sources/Kaiji.sol
@dev Changes the minimum balance of tokens the contract must have before swapping tokens for ETH. Base 100000, so 0.5% = 500. @param newAmount The new amount, in base 100000. Maximum 500 for 0.5%. Cant be higher than maxSwapbackLimit
function updateMinSwapbackLimit(uint256 newAmount) external onlyOwner returns (bool) { require( newAmount >= totalSupply()/ 100000, "Swap amount cannot be lower than 0.001% total supply." ); require( newAmount <= 500 * totalSupp...
17,046,648
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 17776, 326, 5224, 11013, 434, 2430, 326, 6835, 1297, 1240, 1865, 7720, 1382, 2430, 364, 512, 2455, 18, 3360, 25259, 16, 1427, 374, 18, 25, 9, 273, 6604, 18, 632, 891, 394, 6275, 1021, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1089, 2930, 12521, 823, 3039, 12, 11890, 5034, 394, 6275, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 394, 6275, 1545, 2078, 3088, 1283, 143...
./full_match/3/0xAF0068Bd7189A9C7A75D40b68AC1bDc6000b8a49/sources/pepedao.sol
set as marketing wallet
marketingWallet = address(0xAB7bA46A9680Aa23331f67267107362d83B83B3b);
14,167,893
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 13667, 310, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 2090, 27, 70, 37, 8749, 37, 10525, 3672, 37, 69, 31026, 6938, 74, 9599, 5558, 27, 23054, 5718, 22, 72, 10261, 38, 10261, 38, 23, 70, 1769, 225, 2, -100, -100, -100, -100, -100, ...
//pragma solidity ^0.4.25; pragma solidity ^0.5.0; //import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; using SafeMath for uint; /********************************************************************...
Insurance key to insurance itself
mapping(bytes32 => Insurance) private insurancesList;
13,107,638
[ 1, 4625, 348, 7953, 560, 30, 225, 657, 10050, 1359, 498, 358, 2763, 295, 1359, 6174, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 3890, 1578, 516, 657, 10050, 1359, 13, 3238, 2763, 295, 6872, 682, 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,...
./partial_match/1/0xA53de764935d71968c7B5d311E6E76Ba22109a11/sources/DharmaTradeReserveV17ImplementationStaging.sol
Establish direct path between tokens. Trade for the quoted token amount on Uniswap and send to recipient. Establish path between provided token and WETH. Trade all provided tokens for WETH on Uniswap and send to this contract. Establish path between WETH and received token. Trade bought WETH for received token on Unis...
if (routeThroughEther == false) { (address[] memory path, uint256[] memory amounts) = _createPathAndAmounts( address(tokenProvided), tokenReceived, false ); amounts = _UNISWAP_ROUTER.swapTokensForExactTokens( quotedTokenReceivedAmount, tokenProvidedAmount, path, ...
9,400,998
[ 1, 4625, 348, 7953, 560, 30, 225, 17787, 23385, 2657, 589, 3086, 2430, 18, 2197, 323, 364, 326, 9298, 1147, 3844, 603, 1351, 291, 91, 438, 471, 1366, 358, 8027, 18, 17787, 23385, 589, 3086, 2112, 1147, 471, 678, 1584, 44, 18, 2197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 261, 5547, 14287, 41, 1136, 422, 629, 13, 288, 203, 1377, 261, 2867, 8526, 3778, 589, 16, 2254, 5034, 8526, 3778, 30980, 13, 273, 389, 2640, 743, 1876, 6275, 87, 12, 203, 3639, 1758, 12, 2316, 19254, 3631, 1147, 8872, ...
pragma solidity ^0.4.21; // File: zeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint...
optional time lock
require(lockedUntil[_sender] < now, "Timelock");
14,927,940
[ 1, 4625, 348, 7953, 560, 30, 225, 3129, 813, 2176, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 15091, 9716, 63, 67, 15330, 65, 411, 2037, 16, 315, 10178, 292, 975, 8863, 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: contracts/equity/IERC20.sol /** * MIT License * * Copyright (c) 2016-2019 zOS Global Limited * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including ...
Address where DSHS is deployed
address public DSHSContractAddress;
1,057,555
[ 1, 4625, 348, 7953, 560, 30, 225, 5267, 1625, 463, 2664, 55, 353, 19357, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 463, 2664, 55, 8924, 1887, 31, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xb8901a14261fD460b3E14a4501CcDddd2c822DC3/sources/FrzBASE.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20MinterPauser}. TIP: For a detailed writeup see our guide to implement supply mechanism...
contract ERC20 is IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; ...
16,118,680
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 2...
// SPDX-License-Identifier: MIT pragma solidity ^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 view returns (uint256); /** * @dev Returns the amount o...
* @title Calculate voting power for VSP holders/
contract VesperVotingPower { address public constant VSP = 0x1b40183EFB4Dd766f11bDa7A7c3AD8982e998421; address public constant vVSP = 0xbA4cFE5741b357FA371b506e5db0774aBFeCf8Fc; uint256 public constant MINIMUM_VOTING_POWER = 1e18; } pragma solidity 0.8.5; modifier onlyIfAddressIsValid(address wallet)...
10,367,509
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 9029, 331, 17128, 7212, 364, 776, 3118, 366, 4665, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 776, 281, 457, 58, 17128, 13788, 288, 203, 565, 1758, 1071, 5381, 776, 3118, 273, 374, 92, 21, 70, 27002, 10261, 41, 22201, 24, 40, 72, 27, 6028, 74, 2499, 70, 40, 69, 27, 37, 27, 71, 23, 1880, 6675, 11149, 73, 2733, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ContextMockUpgradeable.sol"; import "../metatx/ERC2771ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; // By inheriting from ERC2771Context, Context's internal functions are overridden automatically contract ERC2771ContextMockUpgrad...
By inheriting from ERC2771Context, Context's internal functions are overridden automatically
contract ERC2771ContextMockUpgradeable is Initializable, ContextMockUpgradeable, ERC2771ContextUpgradeable { function __ERC2771ContextMock_init(address trustedForwarder) internal initializer { __Context_init_unchained(); __ContextMock_init_unchained(); __ERC2771Context_init_unchained(truste...
6,415,476
[ 1, 4625, 348, 7953, 560, 30, 225, 2525, 6811, 310, 628, 4232, 39, 22, 4700, 21, 1042, 16, 1772, 1807, 2713, 4186, 854, 11000, 6635, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 22, 4700, 21, 1042, 9865, 10784, 429, 353, 10188, 6934, 16, 1772, 9865, 10784, 429, 16, 4232, 39, 22, 4700, 21, 1042, 10784, 429, 288, 203, 203, 565, 445, 1001, 654, 39, 22, 4700, 21, 1042, 9865, 67, 2738, 12, ...
./full_match/1/0x533C5c15E073f56860B3091d7f7414f1cf6d4aE3/sources/contracts/RWAHubInstantMints.sol
* @notice Set the RedemptionLimit constraint inside the TimeBasedRateLimiter base contract @param newRedemptionLimit New limit that dicates how much RWA can be redeemed in a specified duration (in 18 decimals per the RWA contract)/
function setInstantRedemptionLimit( uint256 newRedemptionLimit ) external onlyRole(MANAGER_ADMIN) { _setInstantRedemptionLimit(newRedemptionLimit); }
3,221,143
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1000, 326, 868, 19117, 375, 3039, 4954, 4832, 326, 2647, 9802, 17184, 264, 540, 1026, 6835, 632, 891, 394, 426, 19117, 375, 3039, 1166, 1800, 716, 302, 8242, 3661, 9816, 25920, 37, 15604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 445, 444, 10675, 426, 19117, 375, 3039, 12, 203, 565, 2254, 5034, 394, 426, 19117, 375, 3039, 203, 225, 262, 3903, 1338, 2996, 12, 19402, 67, 15468, 13, 288, 203, 565, 389, 542, 10675, 426, 19117, 375, 3039, 12, 2704, 426, ...
./partial_match/4/0x0F73DAca635CaA591dda9e242e98F781dcF6E7A2/sources/OroNetwork.sol
* Shows latest ORO price for given asset/ Asset Price USDC Price Converting to gram
function toORO(address assetAdd, uint256 asset) public view returns(uint256 value) { uint256 backed = getPrice(assetAdd); uint256 OROValue = getPrice(ORO); backed = backed / 28.35e8; backed = backed * 10E8; backed = (asset * backed) / 10**16; ...
8,601,973
[ 1, 4625, 348, 7953, 560, 30, 380, 9674, 87, 4891, 531, 1457, 6205, 364, 864, 3310, 19, 10494, 20137, 11836, 5528, 20137, 4037, 310, 358, 24663, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 358, 916, 51, 12, 2867, 3310, 986, 16, 2254, 5034, 3310, 13, 7010, 3639, 1071, 7010, 3639, 1476, 7010, 3639, 1135, 12, 11890, 5034, 460, 13, 288, 203, 3639, 2254, 5034, 20732, 273, 25930, 12, 9406, 986, 1769, 21281, 363...
pragma solidity 0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } func...
* @dev Transfer the specified amounts of tokens to the specified addresses from authorized balance of sender. @dev Be aware that there is no check for duplicate recipients. @param _from The address of the sender @param _toAddresses The addresses of the recipients (MAX 255) @param _amounts The amounts of tokens to be tr...
function multiPartyTransferFrom(address _from, address[] _toAddresses, uint256[] _amounts) external erc20 { require(_toAddresses.length <= 255); require(_toAddresses.length == _amounts.length); for (uint8 i = 0; i < _toAddresses.length; i++) { transferFrom(_from, _toAddresses[i]...
1,825,428
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 326, 1269, 30980, 434, 2430, 358, 326, 1269, 6138, 628, 10799, 11013, 434, 5793, 18, 632, 5206, 4823, 18999, 716, 1915, 353, 1158, 866, 364, 6751, 12045, 18, 632, 891, 389, 2080, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3309, 17619, 5912, 1265, 12, 2867, 389, 2080, 16, 1758, 8526, 389, 869, 7148, 16, 2254, 5034, 8526, 389, 8949, 87, 13, 3903, 6445, 71, 3462, 288, 203, 3639, 2583, 24899, 869, 7148, 18, 2469, 1648, 4561, 1769, 203, 3639,...
pragma solidity ^0.4.18; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = ms...
* event for token purchase logging @param purchaser who paid for the tokens @param beneficiary who got the tokens @param value weis paid for purchase @param amount amount of tokens purchased/ require(_startTime >= now);
function Crowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet) public { require(_endTime >= _startTime); require(_rate > 0); require(_wallet != address(0)); token = createTokenContract(); startTime = _startTime; endTime = _endTime; rate = _rate; wallet =...
7,811,634
[ 1, 4625, 348, 7953, 560, 30, 380, 871, 364, 1147, 23701, 2907, 632, 891, 5405, 343, 14558, 10354, 30591, 364, 326, 2430, 632, 891, 27641, 74, 14463, 814, 10354, 2363, 326, 2430, 632, 891, 460, 732, 291, 30591, 364, 23701, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 385, 492, 2377, 5349, 12, 11890, 5034, 389, 1937, 950, 16, 2254, 5034, 389, 409, 950, 16, 2254, 5034, 389, 5141, 16, 1758, 389, 19177, 13, 1071, 288, 203, 377, 203, 565, 2583, 24899, 409, 950, 1545, 389, 1937, 950, 17...
./partial_match/56/0x5B36eDBc6067F2625A0a79b7C28FE02af4dF7C24/sources/MasterNiu.sol
* @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, "NIU::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0...
11,158,365
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10229, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 632, 5206, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 4...
pragma solidity 0.8.4; /// SPDX-License-Identifier: MIT import "./interface/IxSNOB.sol"; contract DummyXSNOB is IxSNOB { mapping (address => uint256) private _balances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values fo...
* @dev Sets the values for {name} and {symbol}. All two of these values are immutable: they can only be set once during construction./
constructor () { _name = "Staked SNOB"; _symbol = "xSNOB"; }
5,456,389
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5496, 4826, 2795, 434, 4259, 924, 854, 11732, 30, 2898, 848, 1338, 506, 444, 3647, 4982, 16171, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1832, 288, 203, 3639, 389, 529, 273, 315, 510, 9477, 348, 3417, 38, 14432, 203, 3639, 389, 7175, 273, 315, 92, 55, 3417, 38, 14432, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/137/0x16D66b01664bc834f5db13D01E51E1Fa7C44f03B/sources/browser/NFT721.sol
/ solhint-disable-next-line avoid-low-level-calls, avoid-call-value
function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); require(success, "Address: unable to send value, recipient may have reverted"); }
4,781,857
[ 1, 4625, 348, 7953, 560, 30, 342, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 4543, 17, 821, 17, 2815, 17, 12550, 16, 4543, 17, 1991, 17, 1132, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 620, 12, 2867, 8843, 429, 8027, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 1377, 2583, 12, 2867, 12, 2211, 2934, 12296, 1545, 3844, 16, 315, 1887, 30, 2763, 11339, 11013, 8863, 203, 203, 1377, 2583, 12, 4768, 16, ...
// File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers ov...
File: contracts/UkraineHeroes.solSPDX-License-Identifier: UNLICENSED
contract UkraineHeroesToken is ERC721A, Ownable { uint256 private _price = 0.04 ether; string public baseURI; bool public isSaleActive; uint256 public stage; uint256 public constant FIRESALE_SUPPLY = 999; uint256 public constant MAX_SUPPLY = 111111; uint256 public constant MAX_MINT_PER_TRX...
548,999
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 57, 79, 354, 558, 44, 2439, 281, 18, 18281, 3118, 28826, 17, 13211, 17, 3004, 30, 5019, 6065, 1157, 18204, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 587, 79, 354, 558, 44, 2439, 281, 1345, 353, 4232, 39, 27, 5340, 37, 16, 14223, 6914, 288, 203, 565, 2254, 5034, 3238, 389, 8694, 273, 374, 18, 3028, 225, 2437, 31, 203, 203, 565, 533, 1071, 1026, 3098, 31, 203, 565, 1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract MyFunction { uint256 myState = 256; uint8 myAge = 27; string name = "Jake"; // Functions can be declared pure in which case they promise // not to read from or modify the state. function myPureFunc(uint256 x, uint256 y) public p...
Functions can be declared pure in which case they promise not to read from or modify the state.
contract MyFunction { uint256 myState = 256; uint8 myAge = 27; string name = "Jake"; pragma solidity ^0.8.0; function myPureFunc(uint256 x, uint256 y) public pure returns(uint256){ return x + y; } function myViewFunc() public view returns(string memory) { return name; } ...
5,396,050
[ 1, 4625, 348, 7953, 560, 30, 225, 15486, 848, 506, 7886, 16618, 316, 1492, 648, 2898, 5109, 486, 358, 855, 628, 578, 5612, 326, 919, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8005, 2083, 288, 203, 565, 2254, 5034, 3399, 1119, 273, 8303, 31, 7010, 565, 2254, 28, 3399, 9692, 273, 12732, 31, 203, 565, 533, 508, 273, 315, 46, 911, 14432, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, ...
./full_match/1/0x4085174546a2638525540bDA32496250F742141d/sources/Users/kroll/Dev/StakingDeployment1/contracts/StakingRewardsFactory.sol
info about rewards for a particular staking token
contract StakingRewardsFactory is Ownable { struct StakingRewardsInfo { address stakingRewards; uint256 yflRewardAmount; address extraRewardToken; uint256 extraRewardTokenAmount; } uint256 public stakingRewardsGenesis; address public yflToken; address[] public sta...
3,018,780
[ 1, 4625, 348, 7953, 560, 30, 225, 1123, 2973, 283, 6397, 364, 279, 6826, 384, 6159, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 934, 6159, 17631, 14727, 1733, 353, 14223, 6914, 288, 203, 565, 1958, 934, 6159, 17631, 14727, 966, 288, 203, 3639, 1758, 384, 6159, 17631, 14727, 31, 203, 3639, 2254, 5034, 677, 2242, 17631, 1060, 6275, 31, 203, 3639, 1758, ...
./full_match/11155111/0xB737164EbBec5e9e3302d7F428504eb645068175/sources/src/SimpleStorage.sol
uint256[] listOfFavNumbers;
contract SimpleStorage { struct Person { uint256 favoriteNumber; string name; } Person[] public listOfPeople; mapping(string => uint256) public nameToNumber; function store(uint256 _favoriteNumber) public virtual { myFavoriteNumber = _favoriteNumber; } function re...
3,835,219
[ 1, 4625, 348, 7953, 560, 30, 2254, 5034, 8526, 24692, 42, 842, 10072, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4477, 3245, 288, 203, 203, 203, 565, 1958, 11573, 288, 203, 3639, 2254, 5034, 30705, 1854, 31, 203, 3639, 533, 508, 31, 203, 565, 289, 203, 565, 11573, 8526, 1071, 24692, 11227, 11763, 31, 203, 565, 2874, 12, 1080, 516, 22...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import "./Ownable.sol"; import "./TokenHolder.sol"; import "./INftRandomness.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; contract FusionNft is ERC721Enumera...
maximum different types of each trait, without level (first) and special (last)
uint8[] private _traitVariations = [72, 12, 27, 19, 29, 28, 17, 21];
1,616,983
[ 1, 4625, 348, 7953, 560, 30, 225, 4207, 3775, 1953, 434, 1517, 13517, 16, 2887, 1801, 261, 3645, 13, 471, 4582, 261, 2722, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 28, 8526, 3238, 389, 22513, 4205, 1012, 273, 306, 9060, 16, 2593, 16, 12732, 16, 5342, 16, 12899, 16, 9131, 16, 8043, 16, 9035, 15533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. * @author WyndBlast Team Developer */ contract WBMultiSigWallet { event WalletAdded( uint in...
* @notice Receive deposit of token/
receive() external payable { emit Deposit(msg.sender, msg.value, address(this).balance); }
15,802,401
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 17046, 443, 1724, 434, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 6798, 1435, 3903, 8843, 429, 288, 203, 565, 3626, 4019, 538, 305, 12, 3576, 18, 15330, 16, 1234, 18, 1132, 16, 1758, 12, 2211, 2934, 12296, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/10/0x0dEC3173683e4B1E587d466FD0e3A8ad81a39a19/sources/contracts/periphery/OptionMarketSafeSlippage.sol
* @dev Attempts to close some amount of an open position within bounds, reverts if the returned amount is outside of the accepted bounds. @param _listingId The id of the relevant OptionListing @param tradeType Is the trade a long/short & call/put? @param amount The amount the user has requested to close @param maxCost ...
function closePosition( uint _listingId, IOptionMarket.TradeType tradeType, uint amount, uint minCost, uint maxCost ) external { optionToken.safeTransferFrom( msg.sender, address(this), _listingId + uint(tradeType), amount, "OptionMarketSafeSlippage: Close" ...
3,780,991
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6020, 9585, 358, 1746, 2690, 3844, 434, 392, 1696, 1754, 3470, 4972, 16, 15226, 87, 309, 326, 2106, 3844, 353, 8220, 434, 326, 8494, 4972, 18, 632, 891, 389, 21228, 548, 1021, 612, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 2555, 12, 203, 565, 2254, 389, 21228, 548, 16, 203, 565, 1665, 375, 3882, 278, 18, 22583, 559, 18542, 559, 16, 203, 565, 2254, 3844, 16, 203, 565, 2254, 1131, 8018, 16, 203, 565, 2254, 943, 8018, 203, 225, 262, ...
./full_match/43114/0x7799a0EC14B74bfeb563A2bcb160D7993aFbCB28/sources/LQTY/LQTYStaking.sol
Send accumulated LUSD and ETH gains to the caller
lusdToken.transfer(msg.sender, LUSDGain);
4,530,919
[ 1, 4625, 348, 7953, 560, 30, 225, 2479, 24893, 511, 3378, 40, 471, 512, 2455, 314, 4167, 358, 326, 4894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 328, 407, 72, 1345, 18, 13866, 12, 3576, 18, 15330, 16, 511, 3378, 40, 43, 530, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) 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 functio...
January 10, 6 pm EST
uint256 public startPresaleDate = 1641855600;
5,978,748
[ 1, 4625, 348, 7953, 560, 30, 225, 23214, 24335, 1728, 16, 1666, 7430, 512, 882, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 787, 12236, 5349, 1626, 273, 404, 1105, 2643, 2539, 28133, 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, ...
./partial_match/1/0x00dcAd22C93afc3d27D19436C1Dd2aF408AD277E/sources/MLGMEMES.sol
Get Liquidity Pair Balance Calculate Burn Amount Pull Tokens From Pair Liquidity and ove to Permanent Dead Address
function manualBurnLiquidityPairTokens(uint256 percent) external onlyOwner returns (bool){ require(block.timestamp > lastManualLpBurnTime + manualBurnFrequency , "Must wait for cooldown to finish"); require(percent <= 1000, "May not nuke more than 10% of tokens in LP"); lastManualLpBurnTime ...
2,582,019
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 511, 18988, 24237, 8599, 30918, 9029, 605, 321, 16811, 14899, 13899, 6338, 8599, 511, 18988, 24237, 471, 320, 537, 358, 13813, 12055, 23967, 5267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11297, 38, 321, 48, 18988, 24237, 4154, 5157, 12, 11890, 5034, 5551, 13, 3903, 1338, 5541, 1135, 261, 6430, 15329, 203, 3639, 2583, 12, 2629, 18, 5508, 405, 1142, 25139, 48, 84, 38, 321, 950, 397, 11297, 38, 321, 13865,...
./full_match/1/0x4432227442E082e32C21D0eBc9F230f57c1f43ed/sources/TheEggsWorld_flat.sol
File: contracts/TheEggsWorld.sol
contract TheEggsWorld is ERC721, Ownable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private supply; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; uint256 public cost = 0.3 ether; uint256 public maxSupply = 10...
4,891,638
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 1986, 41, 75, 564, 18071, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1021, 41, 75, 564, 18071, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 225, 1450, 8139, 364, 2254, 5034, 31, 203, 225, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 203, 225, 9354, 87, 18, 4789, 3238, 14467, ...
// SPDX-License-Identifier: GPL-3.0-or-later // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is dis...
exactBPTInForTokenOut a = amountOut b = balance / / totalBPT - bptIn \ (1 / w) \ bptIn = bptAmountIn a = b * | 1 - | ---------------------...
function _calcTokenOutGivenExactBptIn( uint256 balance, uint256 normalizedWeight, uint256 bptAmountIn, uint256 bptTotalSupply, uint256 swapFee ) internal pure returns (uint256) { uint256 invariantRatio = bptTotalSupply.sub(bptAmountIn).divUp(bptTotalSupply); ...
67,493
[ 1, 4625, 348, 7953, 560, 30, 225, 5565, 38, 1856, 382, 1290, 1345, 1182, 28524, 279, 273, 3844, 1182, 28524, 540, 324, 273, 11013, 5397, 342, 1377, 342, 565, 2078, 38, 1856, 300, 324, 337, 382, 4202, 521, 565, 261, 21, 342, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12448, 1345, 1182, 6083, 14332, 38, 337, 382, 12, 203, 3639, 2254, 5034, 11013, 16, 203, 3639, 2254, 5034, 5640, 6544, 16, 203, 3639, 2254, 5034, 324, 337, 6275, 382, 16, 203, 3639, 2254, 5034, 324, 337, 5269, 3088...
./full_match/3/0xEb99aE6F970F489cD197c4436863cB7A85E31D46/sources/browser/PoolPortal.sol
CoTrader platform recognize ETH by this address Enum NOTE: You can add a new type at the end, but do not change this order events Contract for handle tokens types
contract PoolPortal is Ownable{ using SafeMath for uint256; IGetBancorData public bancorData; UniswapFactoryInterface public uniswapFactory; IERC20 constant private ETH_TOKEN_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE); event BuyPool(address poolToken, uint256 amount, address trader); e...
14,251,405
[ 1, 4625, 348, 7953, 560, 30, 225, 7695, 1609, 765, 4072, 21431, 512, 2455, 635, 333, 1758, 6057, 5219, 30, 4554, 848, 527, 279, 394, 618, 622, 326, 679, 16, 1496, 741, 486, 2549, 333, 1353, 2641, 13456, 364, 1640, 2430, 1953, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8828, 24395, 353, 14223, 6914, 95, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 467, 967, 38, 304, 3850, 751, 1071, 25732, 3850, 751, 31, 203, 225, 1351, 291, 91, 438, 1733, 1358, 1071, 640, 291, 91, ...
./full_match/1/0xA4342F9566a9c2FA79A04294fB21dB8dF3888405/sources/contracts/VibeStakingPool.sol
Precision factor for reward calculation
uint256 public constant PRECISION_FACTOR = 10**24;
8,440,509
[ 1, 4625, 348, 7953, 560, 30, 225, 2962, 5156, 5578, 364, 19890, 11096, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 5381, 7071, 26913, 67, 26835, 273, 1728, 636, 3247, 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, ...
pragma solidity ^0.4.23; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "./ECVerify.sol"; contract ValidatorManagerContract is Ownable { using ECVerify for bytes32; mapping (address => bool) public allowedTokens; mapping (address => uint256) public nonces; mapping (address => bool) v...
Can't pass bytes[] to use the whole sig due to ABI enc, so we need to send v,r,s params Check that all addresess were from validators Prevent duplicates by requiring that the sender sigs get submitted in increasing order influenced by https:github.com/christianlundkvist/simple-multisig
function checkThreshold(bytes32 _message, uint8[] _v, bytes32[] _r, bytes32[] _s) private view { require(_v.length > 0 && _v.length == _r.length && _r.length == _s.length, "Incorrect number of params"); require(_v.length >= (threshold_num * numValidators / threshold_denom ), "Not enough votes"); ...
12,964,508
[ 1, 4625, 348, 7953, 560, 30, 225, 4480, 1404, 1342, 1731, 8526, 358, 999, 326, 7339, 3553, 6541, 358, 10336, 45, 2446, 16, 1427, 732, 1608, 358, 1366, 331, 16, 86, 16, 87, 859, 2073, 716, 777, 527, 455, 403, 4591, 628, 11632, 1941...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 7614, 12, 3890, 1578, 389, 2150, 16, 2254, 28, 8526, 389, 90, 16, 1731, 1578, 8526, 389, 86, 16, 1731, 1578, 8526, 389, 87, 13, 3238, 1476, 288, 203, 565, 2583, 24899, 90, 18, 2469, 405, 374, 597, 389, 90, 18, ...
./full_match/44787/0x8F846cA5e22F37DeE087eFf72533eC2a007a3CCC/sources/contracts/WakalaEscrow2.sol
* Run the method for withdrawal transactions only./
modifier withdrawalsOnly(uint _transactionid) { require(escrowedPayments[_transactionid].txType == TransactionType.WITHDRAWAL, "Method can only be called for withdrawal transactions only!!"); _; }
13,241,369
[ 1, 4625, 348, 7953, 560, 30, 380, 1939, 326, 707, 364, 598, 9446, 287, 8938, 1338, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 598, 9446, 1031, 3386, 12, 11890, 389, 7958, 350, 13, 288, 203, 3639, 2583, 12, 742, 492, 329, 23725, 63, 67, 7958, 350, 8009, 978, 559, 422, 5947, 559, 18, 9147, 40, 10821, 1013, 16, 203, 3639, 315, 1305, 848, 1338,...
./partial_match/1/0x704A0737a046BeC408b65176105AFB0DEc3E9e1B/sources/SlowBurn.sol
Might have a very small amount of tokens left in our contract. Tidy up.
uint leftoverTokens = balanceOf(address(this));
16,196,724
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 750, 1240, 279, 8572, 5264, 3844, 434, 2430, 2002, 316, 3134, 6835, 18, 399, 29609, 731, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 2254, 29709, 5157, 273, 11013, 951, 12, 2867, 12, 2211, 10019, 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, ...
./full_match/1/0x63c9362a7bEDC92Dec83433C15d623fbD3E1e5A9/sources/contracts/Memswap.sol
* @notice Solve an intent with authorization (compared to the regular `solve` this method allows filling intents of a matchmaker as long as there is a valid authorization in-place for the current solver). The auth will be done on-chain (via a transaction from the matchmaker). @param intent Inten...
function solveWithOnChainAuthorizationCheck( Intent calldata intent, Solution calldata solution ) external nonReentrant { bytes32 intentHash = getIntentHash(intent); bytes32 authId = keccak256(abi.encodePacked(intentHash, msg.sender)); Authorization memory auth = authori...
3,873,186
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 348, 5390, 392, 10376, 598, 6093, 261, 9877, 72, 358, 326, 6736, 1375, 24626, 68, 540, 333, 707, 5360, 25740, 509, 4877, 434, 279, 845, 29261, 487, 1525, 487, 1915, 540, 353, 279, 923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12439, 1190, 1398, 3893, 6063, 1564, 12, 203, 3639, 15251, 745, 892, 10376, 16, 203, 3639, 29172, 745, 892, 6959, 203, 565, 262, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 1731, 1578, 10376, 2310, 273, 8145, 319, 2310, ...
pragma solidity 0.5.17; /* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Synthetix: StakingRewards.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * ===========...
@notice Update rewardsDuration value
function setRewardsDuration(address stakingToken, uint256 rewardsDuration) public onlyOwner { StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken]; require(info.rewardsDuration != rewardsDuration, 'StakingRewardsFactory::setRewardsDuration: the new rewardsDuration value i...
1,172,877
[ 1, 4625, 348, 7953, 560, 30, 632, 20392, 2315, 283, 6397, 5326, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 17631, 14727, 5326, 12, 2867, 384, 6159, 1345, 16, 2254, 5034, 283, 6397, 5326, 13, 1071, 1338, 5541, 288, 203, 3639, 934, 6159, 17631, 14727, 966, 2502, 1123, 273, 384, 6159, 17631, 14727, 966, 858, 510, 6159, 1345,...
./full_match/1/0x53A5f7d0E7335477d206b365B4342Fd7338eC62d/sources/contracts/_Shits.sol
for events and giveaways
uint public shitsReserve = 20;
9,635,236
[ 1, 4625, 348, 7953, 560, 30, 225, 364, 2641, 471, 8492, 69, 3052, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 699, 1282, 607, 6527, 273, 4200, 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, -...
pragma solidity ^0.4.18; import "contracts/Library/ClaimLib.sol"; import "contracts/Library/ExecutionLib.sol"; import "contracts/Library/PaymentLib.sol"; import "contracts/Library/RequestMetaLib.sol"; import "contracts/Library/RequestScheduleLib.sol"; import "contracts/Library/MathLib.sol"; import "contracts/zeppelin...
TODO check accuracy of this number
uint private constant _EXECUTION_GAS_OVERHEAD = 180000;
12,569,999
[ 1, 4625, 348, 7953, 560, 30, 225, 2660, 866, 15343, 434, 333, 1300, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 3238, 5381, 389, 15271, 13269, 67, 43, 3033, 67, 12959, 12458, 273, 6549, 2787, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// File: contracts/interfaces/IAMB.sol pragma solidity 0.4.24; interface IAMB { function messageSender() external view returns (address); function maxGasPerTx() external view returns (uint256); function transactionHash() external view returns (bytes32); function messageId() external view returns (byt...
* @dev Tells the mediator contract address from the other network. @return the address of the mediator contract./
function mediatorContractOnOtherSide() public view returns (address) { return addressStorage[MEDIATOR_CONTRACT]; }
52,152
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29860, 87, 326, 6735, 10620, 6835, 1758, 628, 326, 1308, 2483, 18, 632, 2463, 326, 1758, 434, 326, 6735, 10620, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6735, 10620, 8924, 1398, 8290, 8895, 1435, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1758, 3245, 63, 15971, 3575, 67, 6067, 2849, 1268, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0xeAF131fb0EF7Ac91a33600d5617CE0d633e010F8/sources/CoinFlip.sol
pre-deteremine the flip outcome If I guessed correctly, submit my guess If I guess incorrectly, submit the opposite
function hackFlip(bool _guess) public { uint256 blockValue = uint256(blockhash(block.number-1)); uint256 coinFlip = blockValue / FACTOR; bool side = coinFlip == 1 ? true : false; if (side == _guess) { originalContract.flip(_guess); originalContract.flip(!_guess); } }
656,088
[ 1, 4625, 348, 7953, 560, 30, 225, 675, 17, 72, 847, 351, 558, 326, 9668, 12884, 971, 467, 3058, 281, 730, 8783, 16, 4879, 3399, 7274, 971, 467, 7274, 25621, 16, 4879, 326, 20759, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 11769, 28535, 12, 6430, 389, 20885, 13, 1071, 288, 203, 377, 203, 565, 2254, 5034, 1203, 620, 273, 2254, 5034, 12, 2629, 2816, 12, 2629, 18, 2696, 17, 21, 10019, 203, 565, 2254, 5034, 13170, 28535, 273, 1203, 620, 342, ...
pragma solidity ^0.4.24; import "./abstracts/BlockRewardBase.sol"; import "./interfaces/IConsensus.sol"; import "./eternal-storage/EternalStorage.sol"; import "./ProxyStorage.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; /** * @title Contract handling block reward logic * @author LiorRabin */ cont...
* @title Contract handling block reward logic @author LiorRabin/
contract BlockReward is EternalStorage, BlockRewardBase { using SafeMath for uint256; uint256 public constant DECIMALS = 10 ** 18; event Rewarded(address[] receivers, uint256[] rewards); modifier onlySystem() { require(msg.sender == addressStorage[SYSTEM_ADDRESS]); _; } modifier onlyOwner() { ...
6,386,421
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 13456, 5057, 1203, 19890, 4058, 632, 4161, 511, 9659, 54, 378, 267, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3914, 17631, 1060, 353, 512, 1174, 3245, 16, 3914, 17631, 1060, 2171, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 2254, 5034, 1071, 5381, 25429, 55, 273, 1728, 2826, 6549, 31, 203, 203, 225, 871, ...
//Address: 0xa7df9fe76b5c4928de450afe0b2ff95a968640c2 //Contract name: Crowdsale //Balance: 0 Ether //Verification Date: 3/22/2018 //Transacion Count: 5 // CODE STARTS HERE pragma solidity ^0.4.17; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * f...
* @dev Function to send ETH from contract address to team ETH address./
function sendETHfromContract() public onlyOwner { forTeamETH.transfer(this.balance); }
1,847,722
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 358, 1366, 512, 2455, 628, 6835, 1758, 358, 5927, 512, 2455, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1366, 1584, 44, 2080, 8924, 1435, 1071, 1338, 5541, 288, 203, 3639, 364, 8689, 1584, 44, 18, 13866, 12, 2211, 18, 12296, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; /* * Contract that is working with ERC223 tokens */ contract ContractReceiver { function tokenFallback(address _from, uint256 _value, bytes _data) public; } /* New ERC223 contract interface */ contract ERC223 { uint public totalSupply; function balanceOf(address who) publi...
Function that is called when a user or another contract wants to transfer funds .
function transfer(address _to, uint _value, bytes _data, string _custom_fallback) public returns (bool success) { if (isContract(_to)) { return transferToContractCustom(msg.sender, _to, _value, _data, _custom_fallback); return transferToAddress(msg.sender, _to, _value, _data); } }
1,082,020
[ 1, 4625, 348, 7953, 560, 30, 225, 4284, 716, 353, 2566, 1347, 279, 729, 578, 4042, 6835, 14805, 358, 7412, 284, 19156, 263, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 16, 1731, 389, 892, 16, 533, 389, 3662, 67, 16471, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 565, 309, 261, 291, 8924, 24899, 869, 3719, 288, 203, 1377, 327, 7412, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "./erc1363.sol"; import "./pausable.sol"; import "./managable.sol"; import "./vendorregistry.sol"; import "./imigratablewrappedasset.sol"; import "./imigratablevendorregistry.sol"; /// An ERC1363 (also ERC20) for wrapping MRX on the ethereum or BSC chai...
Get the amount of wrapped MRX in the caller's account in satoshi. @return The caller's balance in satoshi.
function balance() public view virtual returns (uint256) { return super.balanceOf(_msgSender()); }
7,309,019
[ 1, 4625, 348, 7953, 560, 30, 225, 968, 326, 3844, 434, 5805, 490, 54, 60, 316, 326, 4894, 1807, 2236, 316, 5942, 538, 12266, 18, 632, 2463, 1021, 4894, 1807, 11013, 316, 5942, 538, 12266, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 1435, 1071, 1476, 5024, 1135, 261, 11890, 5034, 13, 203, 3639, 288, 203, 3639, 327, 2240, 18, 12296, 951, 24899, 3576, 12021, 10663, 203, 3639, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity >= 0.5.0; import "./IF_EAS_artworks.sol"; import "./IF_EAS_types.sol"; import "./IF_EAS.sol"; import "./IF_EAS_mission.sol"; import "./IF_EAS_platform.sol"; import "./IF_EAO.sol"; import "./IF_EAM.sol"; import "./strings.sol"; import "./SafeMath.sol"; import "./Ownable.sol"; contract...
*************** RECORD WINNER CARDS HERE ********************/
IFEAS_mission.SetStageTargets(stageNo, winnerType1, winnerType2);
5,360,135
[ 1, 4625, 348, 7953, 560, 30, 380, 1644, 11345, 24346, 678, 25000, 385, 985, 3948, 670, 29340, 380, 2751, 636, 5549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 467, 8090, 3033, 67, 3951, 18, 694, 8755, 9432, 12, 12869, 2279, 16, 5657, 1224, 559, 21, 16, 5657, 1224, 559, 22, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.4.24; // File: zos-lib/contracts/upgradeability/Proxy.sol /** * @title Proxy * @dev Implements delegation of calls to other contracts, with proper * forwarding of return values and bubbling of failures. * It defines a fallback function that delegates all calls to the address * returned by the a...
* @title PintuTokenProxy @dev This contract proxies PintuToken calls and enables PintuToken upgrades/
contract PintuTokenProxy is AdminUpgradeabilityProxy { constructor(address _implementation) public AdminUpgradeabilityProxy(_implementation) { } }
5,994,601
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 453, 474, 89, 1345, 3886, 632, 5206, 1220, 6835, 13263, 453, 474, 89, 1345, 4097, 471, 19808, 453, 474, 89, 1345, 28844, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 453, 474, 89, 1345, 3886, 353, 7807, 10784, 2967, 3886, 288, 203, 203, 565, 3885, 12, 2867, 389, 30810, 13, 1071, 7807, 10784, 2967, 3886, 24899, 30810, 13, 288, 203, 565, 289, 203, 97, 2, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.11; contract Owner { address public owner; function Owner() { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract ...
Business Service Token string public constant STANDARD = "Token 1.0"; string public standard = STANDARD; string public name; string public symbol; uint public decimals;
contract BDragon is Token, Owner { uint8 public constant DECIMALS = 18; uint256 constant RATE = 1 szabo; bool private couldTrade = false; uint256 public sellPrice; uint256 public buyPrice; uint minBalanceForAccounts; mapping (address => uint256) public balanceOf; mapping (address => b...
2,298,343
[ 1, 4625, 348, 7953, 560, 30, 21759, 1956, 3155, 533, 1071, 5381, 23255, 273, 315, 1345, 404, 18, 20, 14432, 533, 1071, 4529, 273, 23255, 31, 533, 1071, 508, 31, 533, 1071, 3273, 31, 2254, 1071, 15105, 31, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 11728, 265, 353, 3155, 16, 16837, 288, 203, 565, 2254, 28, 1071, 5381, 25429, 55, 273, 6549, 31, 203, 565, 2254, 5034, 5381, 534, 1777, 273, 404, 11262, 378, 83, 31, 203, 565, 1426, 3238, 3377, 22583, 273, 629, 31, ...
//Address: 0xdf203118a954c918b967a94e51f3570a2faba4ac //Contract name: SuperCountriesEth //Balance: 1.696874206974341727 Ether //Verification Date: 6/7/2018 //Transacion Count: 994 // CODE STARTS HERE pragma solidity ^0.4.24; /* ...
* @dev First step to withdraw : players must confirm their pending Divs before withdrawing this function sums the pending balances (pendingDividends and the pending divs from playerScore) Then this sum moves to balanceReadyToWithdraw, the player can call the next function and withdraw divs/ fire event
function confirmDividends() public onlyRealAddress { require (dividendsScore >= handicap[potVersion][msg.sender]); require (dividendsScore >= 0); address _playerAddress = msg.sender; uint256 playerSc = playerScore[_playerAddress]; uint256 handicap_ = handicap[potVersion][_playerAddress]; uint256 refb...
2,504,903
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5783, 2235, 358, 598, 9446, 294, 18115, 1297, 6932, 3675, 4634, 21411, 87, 1865, 598, 9446, 310, 333, 445, 26608, 326, 4634, 324, 26488, 261, 9561, 7244, 350, 5839, 471, 326, 4634, 3739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 6932, 7244, 350, 5839, 1435, 1071, 1338, 6955, 1887, 288, 203, 202, 202, 6528, 261, 2892, 350, 5839, 7295, 1545, 948, 335, 438, 63, 13130, 1444, 6362, 3576, 18, 15330, 19226, 203, 202, 202, 6528, 261, 2892, 350, 5839, 7...
pragma solidity ^0.4.11; // Token abstract definitioin contract Token { function transfer(address to, uint256 value) returns (bool success); function transferFrom(address from, address to, uint256 value) returns (bool success); function approve(address spender, uint256 value) returns (bool success); ...
release for safe, will never be called in normal condition
function safeRelease() public { if (msg.sender != wtcFundation) throw; uint256 totalTokenBalance = token.balanceOf(this); if (totalTokenBalance > 0) if (!token.transfer(wtcFundation, totalTokenBalance)) throw; }
12,850,842
[ 1, 4625, 348, 7953, 560, 30, 225, 3992, 364, 4183, 16, 903, 5903, 506, 2566, 316, 2212, 2269, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4183, 7391, 1435, 1071, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 341, 5111, 42, 1074, 367, 13, 203, 5411, 604, 31, 203, 203, 3639, 2254, 5034, 2078, 1345, 13937, 273, 1147, 18, 12296, 951, 12, 2211, 1769, 203, ...
./full_match/1/0x99775ec83523F1013e3d4389CB229260237e2Bd8/sources/src/contracts/tokens/erc721/custom-erc721/ERC721A.sol
* @dev Interface of ERC721 token receiver./
interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
8,493,707
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 4232, 39, 27, 5340, 1147, 5971, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4232, 39, 27, 5340, 37, 972, 45, 654, 39, 27, 5340, 12952, 288, 203, 225, 445, 603, 654, 39, 27, 5340, 8872, 12, 203, 565, 1758, 3726, 16, 203, 565, 1758, 628, 16, 203, 565, 2254, 5034, 1147, 548, 16, 203, 565, 1731, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; ...
Stores an nft in this cell. Must approve this contract to spend the nft before calling.
function putContent(uint256 cellIndex, uint256 contentIndex, address contractAddress, uint256 tokenId, uint256 sealValue) external { require(msg.sender == ownerOf(cellIndex), "Owner"); require(cellIndex < SUPPLY_INDEX, "Cell index"); require(contentIndex < MAX_CONTENTS, "Content index"); require(!_contentExist...
6,938,447
[ 1, 4625, 348, 7953, 560, 30, 225, 20296, 455, 392, 290, 1222, 316, 333, 2484, 18, 6753, 6617, 537, 333, 6835, 358, 17571, 326, 290, 1222, 1865, 4440, 18, 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, 202, 915, 1378, 1350, 12, 11890, 5034, 2484, 1016, 16, 2254, 5034, 913, 1016, 16, 1758, 6835, 1887, 16, 2254, 5034, 1147, 548, 16, 2254, 5034, 28144, 620, 13, 3903, 288, 203, 202, 202, 6528, 12, 3576, 18, 15330, 422, 3410, 951, ...
/** *Submitted for verification at Etherscan.io on 2021-04-14 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.2; /******************************************************* * Interfaces * *******************************************************/ interface IV1Vault { ...
* Fetch the total number of assets for this adapter/
function assetsLength() public view returns (uint256) { return addressesGenerator.assetsLength(); }
1,334,221
[ 1, 4625, 348, 7953, 560, 30, 380, 8065, 326, 2078, 1300, 434, 7176, 364, 333, 4516, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7176, 1782, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 6138, 3908, 18, 9971, 1782, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1287/0xb4136B5b279c73649234305a979012e5cb9255e7/sources/src/BettingDex.sol
* @notice getBetIdAddr(uint256 betId). @dev returns bet generating address. @param betId uint256. @return address betIdAddress./
function getBetIdAddr(uint256 betId) public view returns (address) { return bets[betId].betIdAddress; }
7,097,787
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 225, 2882, 278, 548, 3178, 12, 11890, 5034, 2701, 548, 2934, 632, 5206, 377, 1135, 2701, 12516, 1758, 18, 632, 891, 282, 2701, 548, 225, 2254, 5034, 18, 632, 2463, 225, 1758, 225, 2701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2882, 278, 548, 3178, 12, 11890, 5034, 2701, 548, 13, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 324, 2413, 63, 70, 278, 548, 8009, 70, 278, 548, 1887, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -1...
./full_match/42/0x3C22e27a3A1FEB00A202e5e5C8e2238890f73Ee1/sources/GuessingGame.sol
S T A T E V A R I A B L E
address playerAddress;
16,203,195
[ 1, 4625, 348, 7953, 560, 30, 225, 348, 399, 432, 399, 512, 225, 776, 432, 534, 467, 432, 605, 511, 512, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 7291, 1887, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x285633333615b13e665Be0e714d85C1cEf0A19F1/sources/browser/Symbio.sol
@notice Creates a new clone token with the initial distribution being this token at `_snapshotBlock` @param _cloneTokenName Name of the clone token @param _cloneDecimalUnits Number of decimals of the smallest unit @param _cloneTokenSymbol Symbol of the clone token @param _snapshotBlock Block when the distribution of ...
function createCloneToken( string memory _cloneTokenName, uint8 _cloneDecimalUnits, string memory _cloneTokenSymbol, uint _snapshotBlock, bool _transfersEnabled ) public returns(address) { if (_snapshotBlock == 0) _snapshotBlock = block.number; MiniMeT...
1,952,601
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 10210, 279, 394, 3236, 1147, 598, 326, 2172, 7006, 3832, 225, 333, 1147, 622, 1375, 67, 11171, 1768, 68, 632, 891, 389, 14056, 1345, 461, 1770, 434, 326, 3236, 1147, 632, 891, 389, 14056...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1345, 12, 203, 3639, 533, 3778, 389, 14056, 1345, 461, 16, 203, 3639, 2254, 28, 389, 14056, 5749, 7537, 16, 203, 3639, 533, 3778, 389, 14056, 1345, 5335, 16, 203, 3639, 2254, 389, 11171, 1768, 16, 203, 3639,...
// Sources flattened with hardhat v2.6.8 https://hardhat.org // File contracts/IERC165.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* Fully commented standard ERC721 Distilled from OpenZeppelin Docs Base for Building ERC721 by Martin McConnell All the utility without the fluff. */ inte...
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection./
constructor() { _name = "Society of Derivative Apes"; _symbol = "SODA"; mintActive = false; presaleActive = false; price = 0.04 ether; maxPerWallet = 6; maxPerTx = 3; }
315,877
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 635, 3637, 279, 1375, 529, 68, 471, 279, 1375, 7175, 68, 358, 326, 1147, 1849, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 288, 203, 3639, 389, 529, 273, 315, 55, 1882, 14369, 434, 14969, 427, 1535, 1716, 281, 14432, 203, 3639, 389, 7175, 273, 315, 55, 1212, 37, 14432, 203, 203, 3639, 312, 474, 3896, 273, 629, 31, 203, 3639, 4075, ...
./full_match/1/0x4b53a1E2C0417F95dbf71342De7FeD9EA28cc259/sources/browser/rebalancer.sol
the DyDx will call `callFunction(address sender, Info memory accountInfo, bytes memory data) public` after during `operate` call
function flashloan(address token, uint256 amount, bytes memory data) internal virtual { IERC20(token).approve(address(pool), amount + 1); Info[] memory infos = new Info[](1); ActionArgs[] memory args = new ActionArgs[](3); infos[0] = Info(address(this), 0); Asse...
4,981,315
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 463, 93, 40, 92, 903, 745, 1375, 1991, 2083, 12, 2867, 5793, 16, 3807, 3778, 2236, 966, 16, 1731, 3778, 501, 13, 1071, 68, 1839, 4982, 1375, 4063, 340, 68, 745, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 9563, 383, 304, 12, 2867, 1147, 16, 2254, 5034, 3844, 16, 1731, 3778, 501, 13, 203, 3639, 2713, 5024, 203, 565, 288, 203, 3639, 467, 654, 39, 3462, 12, 2316, 2934, 12908, 537, 12, 2867, 12, 6011, 3631, 3844, 397, 404,...
// SPDX-License-Identifier: Unlicensed /* FIITLAB Website: https://www.fiitlab.com Telegram: https://t.me/fiitlab */ pragma solidity 0.8.9; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view vi...
Anti-bot and anti-whale mappings and variables Seller Map Blacklist Map exclude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract FIITLAB is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; bool private swapping; address private marketingWallet; address private devWallet; uint256 public maxTransactionAmount; ui...
13,944,876
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 4352, 749, 1635, 22467, 1098, 1635, 4433, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 4011, 1285, 48, 2090, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 7010, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259...
/** *Submitted for verification at Etherscan.io on 2022-03-28 */ /** * */ /** * */ /** // SPDX-License-Identifier: Unlicensed */ pragma solidity 0.8.9; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData...
exclude from paying fees or having max transaction amount
constructor() ERC20("Shibanaut", "Shib") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_un...
7,754,739
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 4232, 39, 3462, 2932, 1555, 495, 304, 5854, 3113, 315, 1555, 495, 7923, 288, 203, 7010, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58,...
//Address: 0x12e627125abcfa989de831572f198577780d7127 //Contract name: IdentityFactory //Balance: 0 Ether //Verification Date: 5/3/2017 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.4; library ArrayLib{ function findAddress(address a, address[] storage arry) returns (int){ for (uint i = 0 ; i...
doesnt check record existence
return d.deletedAfter <= now;
5,396,972
[ 1, 4625, 348, 7953, 560, 30, 31272, 866, 1409, 15782, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 327, 302, 18, 8600, 4436, 1648, 2037, 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, -...
pragma solidity ^0.5.4; /** * ERC20 contract interface. */ contract ERC20 { function totalSupply() public view returns (uint); function decimals() public view returns (uint); function balanceOf(address tokenOwner) public view returns (uint balance); function allowance(address tokenOwner, address spen...
* @dev Helper method to get the current limit from a Limit struct. @param _current The value of the current parameter @param _pending The value of the pending parameter @param _changeAfter The value of the changeAfter parameter/ solium-disable-next-line security/no-block-members
function currentLimit(uint128 _current, uint128 _pending, uint64 _changeAfter) internal view returns (uint128) { if(_changeAfter > 0 && _changeAfter < now) { return _pending; } return _current; }
2,472,119
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9705, 707, 358, 336, 326, 783, 1800, 628, 279, 7214, 1958, 18, 632, 891, 389, 2972, 1021, 460, 434, 326, 783, 1569, 632, 891, 389, 9561, 1021, 460, 434, 326, 4634, 1569, 632, 891, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 783, 3039, 12, 11890, 10392, 389, 2972, 16, 2254, 10392, 389, 9561, 16, 2254, 1105, 389, 3427, 4436, 13, 2713, 1476, 1135, 261, 11890, 10392, 13, 288, 203, 3639, 309, 24899, 3427, 4436, 405, 374, 597, 389, 3427, 4436, 4...
/** *Submitted for verification at Etherscan.io on 2021-07-19 */ // File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are g...
* @notice Constructs the ERC20 contract and sets the immutable variables @param _token - The synthetic token to which the legacy currency is pegged @param _rate - The rate at which the conversion happens @param _name - The name of the synthetic legacy currency token @param _symbol - The symbol of the synthetic legacy c...
) ERC20(_name, _symbol) { synth = _token; rate = _rate; }
2,135,090
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 14291, 87, 326, 4232, 39, 3462, 6835, 471, 1678, 326, 11732, 3152, 632, 891, 389, 2316, 300, 1021, 25535, 1147, 358, 1492, 326, 8866, 5462, 353, 29231, 2423, 632, 891, 389, 5141, 300, 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, 262, 4232, 39, 3462, 24899, 529, 16, 389, 7175, 13, 288, 203, 565, 6194, 451, 273, 389, 2316, 31, 203, 565, 4993, 273, 389, 5141, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256...
human 0.1 standard. Just an arbitrary versioning scheme.
string public version = "H1.0";
7,634,449
[ 1, 4625, 348, 7953, 560, 30, 8672, 374, 18, 21, 4529, 18, 12526, 392, 11078, 1177, 310, 4355, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 533, 1071, 1177, 273, 315, 44, 21, 18, 20, 14432, 3639, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity =0.8.4; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openz...
Add a new underlying to the vault. Can only be called by the owner. XXX DO NOT add the same underlying token more than once. Rewards will be messed up if you do.here to ensure it's a valid address
function add(Vault.VaultSettings memory _vault, bool _withUpdate ) external onlyOwner { require(!isAdded[address(_vault.underlying)], "Vault already is added"); uint256 underlyingSupply = _vault.underlying.balanceOf(address(this)); require(underlyingSupply == 0, "Vault should not...
5,439,071
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 279, 394, 6808, 225, 358, 326, 9229, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 6808, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 12003, 18, 12003, 2628, 3778, 389, 26983, 16, 203, 3639, 1426, 389, 1918, 1891, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 291, 8602, 63, 2867, 24899, 26983, 18, 9341, 6291, 13, 6487, 315, ...
./partial_match/3/0x3Cd9ceb078399B3068564fc71B894EF3be4C0443/sources/SmartChain.sol
deposit time by cycle
mapping(uint256 => uint256) deposit_time;
5,153,757
[ 1, 4625, 348, 7953, 560, 30, 225, 443, 1724, 813, 635, 8589, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 443, 1724, 67, 957, 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,...
./full_match/5/0x1Db92012eB832fF7d93fC020cc04c6cd9758b173/sources/contracts/module/NTS-Multi.sol
Calculate the base TMHC reward for the team.
uint256 _tmhcReward = ((block.timestamp - _lastUpdateBlock) * rewardPerHour) / 3600;
1,864,887
[ 1, 4625, 348, 7953, 560, 30, 225, 9029, 326, 1026, 27435, 23408, 19890, 364, 326, 5927, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 16925, 28353, 17631, 1060, 273, 14015, 2629, 18, 5508, 300, 389, 2722, 1891, 1768, 13, 380, 19890, 2173, 13433, 13, 342, 12396, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...