file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/1/0xE3C67a3be126b6f41D66EAbB89F1e346Cd099195/sources/MiltonUsdt.sol
* @dev Returns the downcasted int200 from int256, reverting on overflow (when the input is less than smallest int200 or greater than largest int200). Counterpart to Solidity's `int200` operator. Requirements: - input must fit into 200 bits _Available since v4.7._/
function toInt200(int256 value) internal pure returns (int200) { require(value >= type(int200).min && value <= type(int200).max, "SafeCast: value doesn't fit in 200 bits"); return int200(value); }
2,612,621
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2588, 4155, 329, 509, 6976, 628, 509, 5034, 16, 15226, 310, 603, 9391, 261, 13723, 326, 810, 353, 5242, 2353, 13541, 509, 6976, 578, 6802, 2353, 12756, 509, 6976, 2934, 9354, 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, 20771, 6976, 12, 474, 5034, 460, 13, 2713, 16618, 1135, 261, 474, 6976, 13, 288, 203, 3639, 2583, 12, 1132, 1545, 618, 12, 474, 6976, 2934, 1154, 597, 460, 1648, 618, 12, 474, 6976, 2934, 1896, 16, 315, 9890, 9735, 30...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; /** * @title MysteryBox ERC20 token * * @dev Implementation of the mystery box token. * @dev https://github.com/myst3rybox/solidity */ import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "../libraries/SafeMath.sol"; contract MbcErc20 is ERC20 { ...
* @dev mint MBC to user address. @param _to The address of user. @param _value The quantity of MBC./
function mint(address _to, uint256 _value) public onlyCaller{ require(address(0) != _to, "Invalid address"); require(total.add(totalSupply()) <= MAX_SUPPLY, "Total supply is Overflow"); _mint(_to, _value); emit Mint(_to, _value); _mint(moneyer_address, total.sub(_value))...
14,097,897
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 312, 474, 490, 16283, 358, 729, 1758, 18, 632, 891, 389, 869, 1021, 1758, 434, 729, 18, 632, 891, 389, 1132, 1021, 10457, 434, 490, 16283, 18, 19, 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, 0, 0, 0, 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, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 7010, 565, 1071, 1338, 11095, 95, 203, 3639, 2583, 12, 2867, 12, 20, 13, 480, 389, 869, 16, 315, 1941, 1758, 8863, 203, 3639, 2583, 12, 4963, 18, 1289, 12...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.10 <0.8.0; import "@openzeppelin/contracts/math/SafeMath.sol"; /// @notice Unsettled trade of a taker buy order or a maker sell order /// @param frozenQuote Amount of quote assets from the taker /// @param effectiveQuote Effective amount of quote assets at zero pr...
@dev Accumulate buy trades @param self Trade to update @param other New trade to be added to storage
function add(UnsettledBuyTrade storage self, UnsettledBuyTrade memory other) internal { self.frozenQuote = self.frozenQuote.add(other.frozenQuote); self.effectiveQuote = self.effectiveQuote.add(other.effectiveQuote); self.reservedBase = self.reservedBase.add(other.reservedBase); }
2,497,037
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 15980, 31284, 30143, 1284, 5489, 632, 891, 365, 2197, 323, 358, 1089, 632, 891, 1308, 1166, 18542, 358, 506, 3096, 358, 2502, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 13250, 88, 1259, 38, 9835, 22583, 2502, 365, 16, 31769, 88, 1259, 38, 9835, 22583, 3778, 1308, 13, 2713, 288, 203, 3639, 365, 18, 28138, 10257, 273, 365, 18, 28138, 10257, 18, 1289, 12, 3011, 18, 28138, 10257, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import {Modifiers, ListingListItem} from "../libraries/LibAppStorage.sol"; import {LibERC1155Marketplace, ERC1155Listing} from "../libraries/LibERC1155Marketplace.sol"; import {IERC20} from "../../shared/interfaces/IERC20.sol"; import {LibERC20} from "../../shared...
@notice Allow a buyer to execcute an open listing i.e buy the NFT@dev Will throw if the NFT has been sold or if the listing has been cancelled already@param _listingId The identifier of the listing to execute@param _quantity The amount of ERC1155 NFTs execute/buy@param _priceInWei the cost price of the ERC1155 NFTs ind...
function executeERC1155Listing( uint256 _listingId, uint256 _quantity, uint256 _priceInWei ) external { ERC1155Listing storage listing = s.erc1155Listings[_listingId]; require(_priceInWei == listing.priceInWei, "ERC1155Marketplace: wrong price or price changed"); require(list...
1,030,925
[ 1, 4625, 348, 7953, 560, 30, 632, 20392, 7852, 279, 27037, 358, 1196, 71, 624, 392, 1696, 11591, 277, 18, 73, 30143, 326, 423, 4464, 36, 5206, 9980, 604, 309, 326, 423, 4464, 711, 2118, 272, 1673, 578, 309, 326, 11591, 711, 2118, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 654, 39, 2499, 2539, 19081, 12, 203, 1377, 2254, 5034, 389, 21228, 548, 16, 203, 1377, 2254, 5034, 389, 16172, 16, 203, 1377, 2254, 5034, 389, 8694, 382, 3218, 77, 203, 565, 262, 3903, 288, 203, 1377, 4232, 39, ...
pragma solidity >=0.5.6; import "./ERC721Base.sol"; import "./interfaces/ERC721Metadata.sol"; /** * @title ERC-721 Non-Fungible Token with metadata extension logic. * @dev See https://eips.ethereum.org/EIPS/eip-721. */ contract ERC721BaseMetadata is ERC721Base, ERC721Metadata { /** * Token name. */ string ...
* @return string Returns the representing token name./
function name() external view returns (string memory) { return _name; }
5,355,926
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 533, 2860, 326, 5123, 1147, 508, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 508, 1435, 203, 225, 3903, 203, 225, 1476, 203, 225, 1135, 261, 1080, 3778, 13, 203, 225, 288, 203, 565, 327, 389, 529, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.21; // File: contracts/ISimpleCrowdsale.sol interface ISimpleCrowdsale { function getSoftCap() external view returns(uint256); function isContributorInLists(address contributorAddress) external view returns(bool); function processReservationFundContribution( address contributo...
* @title MultiOwnable @dev The MultiOwnable contract has owners addresses and provides basic authorization control functions, this simplifies the implementation of "users permissions"./
contract MultiOwnable { address[] public owners; mapping(address => bool) public ownerByAddress; event SetOwners(address[] owners); modifier onlyOwner() { require(ownerByAddress[msg.sender] == true); _; } function MultiOwnable() public { manager = msg.sender; } ...
574,535
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 5991, 5460, 429, 632, 5206, 1021, 5991, 5460, 429, 6835, 711, 25937, 6138, 471, 8121, 5337, 6093, 3325, 4186, 16, 333, 9330, 5032, 326, 4471, 434, 315, 5577, 4371, 9654, 19, 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, 5991, 5460, 429, 288, 203, 565, 1758, 8526, 1071, 25937, 31, 203, 565, 2874, 12, 2867, 516, 1426, 13, 1071, 3410, 858, 1887, 31, 203, 203, 565, 871, 1000, 5460, 414, 12, 2867, 8526, 25937, 1769, 203, 203, 203, 565, 9606, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; /* ////////////////////////////////////////////////////////////////////////////////////// // // // //...
VARIABLES ...
contract Fractionizer is ERC20 { uint256 private sharePrice; uint256 private ttlSupply; uint256 private availableSupply; bool private Limit; uint256 private End; uint256 private nftId; address private nftAdr; address private ercAdr; string private fractionName; string ...
1,077,786
[ 1, 4625, 348, 7953, 560, 30, 28524, 28524, 28524, 28524, 22965, 55, 28524, 28524, 28524, 28524, 28524, 28524, 28524, 4766, 282, 12584, 45, 2053, 62, 2689, 28524, 28524, 28524, 27573, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 478, 5738, 1824, 353, 4232, 39, 3462, 288, 203, 377, 203, 377, 203, 565, 2254, 5034, 3238, 7433, 5147, 31, 203, 565, 2254, 5034, 3238, 6337, 3088, 1283, 31, 203, 565, 2254, 5034, 3238, 2319, 3088, 1283, 31, 203, 565, 1426,...
./full_match/5/0x46C9A4340ca50324010769C3069D1937229e3E80/sources/src/utils/MinterUtilities.sol
* @dev Updates the maximum allowed quantity for the allowlist. @param _maxAllowlistQuantity The new maximum allowed quantity for the allowlist./
function updateMaxAllowlistQuantity( uint256 _maxAllowlistQuantity ) external onlyAdmin { maxAllowlistQuantity = _maxAllowlistQuantity; }
1,918,076
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15419, 326, 4207, 2935, 10457, 364, 326, 1699, 1098, 18, 632, 891, 389, 1896, 7009, 1098, 12035, 1021, 394, 4207, 2935, 10457, 364, 326, 1699, 1098, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 2747, 7009, 1098, 12035, 12, 203, 3639, 2254, 5034, 389, 1896, 7009, 1098, 12035, 203, 565, 262, 3903, 1338, 4446, 288, 203, 3639, 943, 7009, 1098, 12035, 273, 389, 1896, 7009, 1098, 12035, 31, 203, 565, 289, 203, ...
./partial_match/1/0x371e9DfaE46c788cadf6eEA68Aaa75a27C557E11/sources/WOLFPUPS.sol
only doesn't exist if user is mintApproved
function transferFrom( address from, address to, uint256 tokenId ) public virtual override { if (!_exists(tokenId) && mintApproved[_msgSender()]) { safeMint(to, tokenId); require( _isApprovedOrOwner(_msgSender(), tokenId), "...
11,005,728
[ 1, 4625, 348, 7953, 560, 30, 225, 1338, 3302, 1404, 1005, 309, 729, 353, 312, 474, 31639, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7412, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 1071, 5024, 3849, 288, 203, 3639, 309, 16051, 67, 1808, 12, 2316, 548, 13, 597, 312, 474, 31639, 63,...
./full_match/2222/0xE88b19885935B4Be8dCF38e2C96b8c73CfC9b6e2/sources/contracts/base/Callbacks.sol
@title ERC Callback Support @notice Implements various functions introduced by a variety of ERCs for security reasons. All are called by external contracts to ensure that this contract safely supports the ERC in question.
contract Callbacks is IERC721Receiver, IERC1155Receiver { pragma solidity ^0.8.17; import {IERC721Receiver} from '../interfaces/IERC721Receiver.sol'; import {IERC1155Receiver} from '../interfaces/IERC1155Receiver.sol'; import {IERC165} from '../interfaces/IERC165.sol'; function onERC721Received(address, address, ui...
7,102,185
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 4232, 39, 8444, 13619, 632, 20392, 29704, 11191, 4186, 26339, 635, 279, 1394, 14369, 434, 4232, 14272, 364, 4373, 14000, 18, 4826, 854, 2566, 635, 3903, 20092, 358, 3387, 716, 333, 6835, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 28472, 353, 467, 654, 39, 27, 5340, 12952, 16, 467, 654, 39, 2499, 2539, 12952, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 4033, 31, 203, 5666, 288, 45, 654, 39, 27, 5340, 12952, 97, 628, 25226, 15898, 19, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.7.0 <0.9.0; import "./test.sol"; import "../contracts/Dao.sol"; import "../contracts/DaoContract.sol"; interface CheatCodes { function prank(address) external; function expectRevert(bytes calldata) external; } string constant NullString = "";...
================================== Test promoting an Admin to Officer ================================== Add gUsers[1] as a Member Add gUsers[2] as an Admin Promote gUsers[2] to Officer as gUsers[1] who is a Member
function testPromoteAdminToOfficerAsMember() public { addAUserNoImpersonateNoRevert(gUsers[1], AccessType.Member); addAUserNoImpersonateNoRevert(gUsers[2], AccessType.Admin); assertEq(dao.getUserCount(), 3); addAUserWithImpersonateWithRevert(gUsers[2], AccessType.Officer, gUsers[1],...
14,053,816
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 4428, 7766, 3012, 17128, 392, 7807, 358, 531, 4493, 264, 422, 4428, 1436, 314, 6588, 63, 21, 65, 487, 279, 8596, 1436, 314, 6588, 63, 22, 65, 487, 392, 7807, 17552, 1168, 314, 6588, 63, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 13224, 1168, 4446, 774, 7210, 21349, 1463, 4419, 1435, 1071, 288, 203, 3639, 527, 37, 1299, 2279, 1170, 12479, 340, 2279, 426, 1097, 12, 75, 6588, 63, 21, 6487, 5016, 559, 18, 4419, 1769, 203, 3639, 527, 37, 1299,...
pragma solidity ^0.4.21; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner...
@dev After seeding the Standard sale with a few loads of packs, kick off the sale here.
function startStandardSale() external onlyOwner { require(standardSale.packsLoaded > 0, "You must first load some packs into the Standard sale."); unpause(); emit SaleStarted(standardSale.id, standardSale.packPrice, standardSale.featuredChecklistItem); }
10,346,090
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 7360, 5009, 310, 326, 8263, 272, 5349, 598, 279, 11315, 6277, 434, 2298, 87, 16, 23228, 3397, 326, 272, 5349, 2674, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 787, 8336, 30746, 1435, 3903, 1338, 5541, 288, 203, 565, 2583, 12, 10005, 30746, 18, 2920, 87, 8835, 405, 374, 16, 315, 6225, 1297, 1122, 1262, 2690, 2298, 87, 1368, 326, 8263, 272, 5349, 1199, 1769, 203, 565, 640, 1947...
./partial_match/1/0x6601d3f885D1A91FfE63B4b4A834Cf9E2490C2D8/sources/lib/core-physical/src/core/engines/BaseEngine.sol
* @dev Remove long token from the account to increase capital requirement. @param _subAccount subaccount that will be update in place/ decode parameters update the state transfer the option token out
function _removeOption(address _subAccount, bytes calldata _data) internal virtual { (uint256 tokenId, uint64 amount, address to) = abi.decode(_data, (uint256, uint64, address)); _decreaseLongInAccount(_subAccount, tokenId, amount); emit PhysicalOptionTokenRemoved(_subAccount, tokenId, amo...
4,199,092
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3581, 1525, 1147, 628, 326, 2236, 358, 10929, 12872, 12405, 18, 632, 891, 389, 1717, 3032, 720, 4631, 716, 903, 506, 1089, 316, 3166, 19, 2495, 1472, 1089, 326, 919, 7412, 326, 1456, 1147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4479, 1895, 12, 2867, 389, 1717, 3032, 16, 1731, 745, 892, 389, 892, 13, 2713, 5024, 288, 203, 3639, 261, 11890, 5034, 1147, 548, 16, 2254, 1105, 3844, 16, 1758, 358, 13, 273, 24126, 18, 3922, 24899, 892, 16, 261...
./partial_match/1/0x12746bD686306bB78E525D05CC391963972d77C1/sources/D4ACreateProjectProxy.sol
@notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/SafeTransferLib.sol) @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/SafeTransferLib.sol) @dev Caution! This ...
library SafeTransferLib { error ETHTransferFailed(); error TransferFromFailed(); error TransferFailed(); error ApproveFailed(); uint256 internal constant _GAS_STIPEND_NO_STORAGE_WRITES = 2300; uint256 internal constant _GAS_STIPEND_NO_GRIEF = 100000; function safeTransferETH(address...
9,288,849
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 14060, 512, 2455, 471, 4232, 39, 3462, 7412, 5313, 716, 25063, 7372, 3315, 327, 924, 18, 632, 4161, 348, 355, 361, 93, 261, 4528, 2207, 6662, 18, 832, 19, 7737, 1235, 19, 18281, 361, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 5912, 5664, 288, 203, 203, 565, 555, 512, 2455, 5912, 2925, 5621, 203, 203, 565, 555, 12279, 1265, 2925, 5621, 203, 203, 565, 555, 12279, 2925, 5621, 203, 203, 565, 555, 1716, 685, 537, 2925, 5621, 203, 203, 203, 56...
./partial_match/1/0x357ADa6E0da1BB40668BDDd3E3aF64F472Cbd9ff/sources/StakingPool.sol
compute withdrawnable amount
function claimAndRestake() public { UserInfo storage user = userInfo[msg.sender]; require(user.amount > 0); massUpdatePools(); if (user.releaseTime == 0) { user.releaseTime = block.timestamp.add(REWARD_LOCKED_PERIOD); } uint256 _rewards = 0; if (b...
4,460,285
[ 1, 4625, 348, 7953, 560, 30, 3671, 598, 9446, 6914, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 1876, 5188, 911, 1435, 1071, 288, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 3576, 18, 15330, 15533, 203, 3639, 2583, 12, 1355, 18, 8949, 405, 374, 1769, 203, 3639, 8039, 1891, 16639, 5621, 203, 203, 3639, 309, ...
./partial_match/3/0x4C8C148fFb177b93b82faa9322Fd209C6F8563b9/sources/AWOStaking.sol
utc data timestampcheck maxsend yesterday reward
function staking(address from, uint256 amount) public{ uint256 totalSave = 0; uint256 dataTimestamp = now - now%(3600*24); AWOT awo = AWOT(awoContractAddr); require(stakingHistory[dataTimestamp] == 0, "one day one call"); for(uint256 i=0;i<whitelist.length;i++){ totalSave = totalSav...
5,150,973
[ 1, 4625, 348, 7953, 560, 30, 9439, 501, 2858, 1893, 943, 4661, 677, 26309, 19890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 384, 6159, 12, 2867, 628, 16, 2254, 5034, 3844, 13, 1071, 95, 203, 1377, 202, 202, 11890, 5034, 2078, 4755, 273, 374, 31, 203, 203, 1377, 202, 202, 11890, 5034, 501, 4921, 273, 225, 2037, 300, 2037, 17105, 5718, 713, ...
/** *Submitted for verification at Etherscan.io on 2021-04-07 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While thes...
* @dev Gets Contract Metadata URL/
function contractURI() public view returns (string memory) { return metadataURL; }
2,381,213
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 13456, 6912, 1976, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6835, 3098, 1435, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 1982, 1785, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; import "../libs/IERC20.sol"; import "../libs/SafeERC20.sol"; import "../libs/FixedPoint.sol"; import "../libs/DaoOwnable.sol"; import "../libs/interface/ITreasury.sol"; import "../libs/interface/IBondCalculator.sol"; import "../libs/interface/IsGaa...
* @notice calculate amount of Gaas available for claim by depositor @param _depositor address @return pendingPayout_ uint/
function pendingPayoutFor( address _depositor ) external view returns ( uint pendingPayout_ ) { uint percentVested = percentVestedFor( _depositor ); uint payout = bondInfo[ _depositor ].gonsPayout; if ( percentVested >= 10000 ) { pendingPayout_ = payout; pendingPayou...
124,454
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 20392, 4604, 3844, 434, 611, 18020, 2319, 364, 7516, 635, 443, 1724, 280, 225, 632, 891, 389, 323, 1724, 280, 1758, 225, 632, 2463, 4634, 52, 2012, 67, 2254, 19, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4634, 52, 2012, 1290, 12, 1758, 389, 323, 1724, 280, 262, 3903, 1476, 1135, 261, 2254, 4634, 52, 2012, 67, 262, 288, 203, 3639, 2254, 5551, 58, 3149, 273, 5551, 58, 3149, 1290, 12, 389, 323, 1724, 280, 11272, 203, 363...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; contract CAGC is ERC721, Ownable, PaymentSplitter { uint256 public constant MAX_...
* @dev Returns the token collection name./* @dev Returns the token collection symbol./* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token./ SPDX-License-Identifier: MIT OpenZeppelin Contracts v4.4.1 (utils/Address.sol)* @dev Collection of functions related to the address type/
library Address { function _beforeTokenTransfer( address from, address to, uint256 tokenId } pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; } pragma solidity ^0.8.0; } pragma solidity ^0.8.0; } pragma solidity ^0.8.0; import "../IERC721.sol"; } pragma...
82,504
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 1147, 1849, 508, 18, 20308, 632, 5206, 2860, 326, 1147, 1849, 3273, 18, 20308, 632, 5206, 2860, 326, 1351, 6854, 2591, 10333, 261, 3098, 13, 364, 1375, 2316, 548, 68, 1147, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 5267, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 97, 203, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 20...
./full_match/1/0x1A36c461a902E0bE4Ee334DF0817fb828a357358/sources/FairToken.sol
0 is a sentinel showing that this index has already been recorded.
adScores[maxIndex] = 0;
17,183,640
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 353, 279, 20285, 17253, 716, 333, 770, 711, 1818, 2118, 16421, 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, ...
[ 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, 5411, 1261, 20037, 63, 1896, 1016, 65, 273, 374, 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, -1...
/*Stealth launch - Community and social media coming soon!*/ // SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstract contract Context { function _msgSender() internal view v...
Anti-bot and anti-whale mappings and variables Penalty Fee for first Sell Penalty Fee Time Bots block number of opened trading exclude from fees, max transaction amount and max wallet amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer am...
contract ExtremeInu is ERC20, Ownable { using SafeMath for uint256; mapping (address => uint256) private _rOwned; uint256 private constant MAX = ~uint256(0); uint256 private constant _tTotal = 1 * 1e12 * 1e18; uint256 private _rTotal = (MAX - (MAX % _tTotal)); uint256 private _tFeeTotal; ...
13,672,420
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 453, 275, 15006, 30174, 364, 1122, 348, 1165, 453, 275, 15006, 30174, 2647, 605, 6968, 1203, 1300, 434, 10191, 1284, 7459, 4433, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6419, 2764, 73, 382, 89, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 86, 5460, 329, 31, 203, 565, 2254, 50...
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "./inte...
all whitelist mints take place during the presale phase, no need to check for other prices. verify merkle proof
function whitelistMintCommit(uint256 index, uint256 a, uint256 amount, bytes32[] calldata merkleProof, bool stake) external payable whenNotPaused nonReentrant requireEOA { require(_pendingCommitId[_msgSender()] == 0, "Already have pending mints"); require(_whitelistClaims[_msgSender()] + amount <= 2, "ex...
5,845,926
[ 1, 4625, 348, 7953, 560, 30, 225, 777, 10734, 312, 28142, 4862, 3166, 4982, 326, 4075, 5349, 6855, 16, 1158, 1608, 358, 866, 364, 1308, 19827, 18, 3929, 30235, 14601, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 10734, 49, 474, 5580, 12, 11890, 5034, 770, 16, 2254, 5034, 279, 16, 2254, 5034, 3844, 16, 1731, 1578, 8526, 745, 892, 30235, 20439, 16, 1426, 384, 911, 13, 3903, 8843, 429, 1347, 1248, 28590, 1661, 426, 8230, 970, 2583...
//Address: 0x15a058323dcd425Be52B9340fb13d7d1F135f554 //Contract name: TeaToken //Balance: 0 Ether //Verification Date: 8/7/2017 //Transacion Count: 11 // CODE STARTS HERE pragma solidity ^0.4.11; //defines the contract (this is the entire program basically) contract TeaToken { //Definition section. To the non...
this checks to see if the sender is actually authorized to trigger the withdrawl. The sender must be the beneficiary in this case or it wont work.the now >= deadline*3 line acts as a deadman switch, ensuring that anyone in the world can trigger the fund release after the specified timefor the very final address, send t...
function safeWithdrawal() { require(controllerAddress1 == msg.sender || controllerAddress2 == msg.sender || controllerAddress3 == msg.sender || now >= deadmanSwitchDeadline); require(this.balance > 0); uint256 sendValue = this.balance / numAddresses; for (uint256 i = 0; i<numAddre...
1,041,177
[ 1, 4625, 348, 7953, 560, 30, 333, 4271, 358, 2621, 309, 326, 5793, 353, 6013, 10799, 358, 3080, 326, 598, 9446, 80, 18, 1021, 5793, 1297, 506, 326, 27641, 74, 14463, 814, 316, 333, 648, 578, 518, 341, 1580, 1440, 18, 5787, 2037, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4183, 1190, 9446, 287, 1435, 288, 203, 203, 203, 3639, 2583, 12, 5723, 1887, 21, 422, 1234, 18, 15330, 747, 2596, 1887, 22, 422, 1234, 18, 15330, 747, 2596, 1887, 23, 422, 1234, 18, 15330, 747, 2037, 1545, 8363, 4728, ...
./full_match/421613/0x4072323792850E86C8cB0FB67326E593768333d3/sources/src/Bank/Bank.sol
@title BetSwirl's Bank @author Romuald Hog, edited by munji(yimunj931@gmail.com) @notice The Bank contract holds the casino's funds, whitelist the games betting tokens, define the max bet amount based on a risk, payout the bet profit to user and collect the loss bet amount from the game's contract, split and allocate ...
contract BankV3 is AccessControlEnumerable, Multicall { using SafeERC20 for IERC20; TODO: rewrite automation related functions event SetTokenMaxBetUnit(address indexed token, uint256 minBetUnit); function setTokenMaxBetUnit( address token, uint256 tokenMaxBetUnit ) external on...
11,580,284
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 605, 278, 6050, 481, 80, 1807, 25610, 632, 4161, 534, 362, 1462, 72, 670, 717, 16, 18532, 635, 312, 318, 21102, 12, 93, 381, 318, 78, 29, 6938, 36, 75, 4408, 18, 832, 13, 632, 20392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25610, 58, 23, 353, 24349, 3572, 25121, 16, 7778, 335, 454, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 3639, 2660, 30, 10738, 17539, 3746, 4186, 203, 203, 203, 565, 871, 1000, 1345, 2747, ...
./partial_match/1/0x59e7E6d903d3dCa7De48f9DB4eF4c53409358d5c/sources/Token.sol
exlcude 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 Token is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; uint256 public maxTransactionAmount; uint256 pu...
15,592,301
[ 1, 4625, 348, 7953, 560, 30, 225, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869, 14, 4259, 6138, 3377, 506, 3221, 358, 279, 4207, 7412, 3844, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203, 565, ...
//Address: 0xd275b50f71badf4fa2f911e80e1e420730ab403e //Contract name: DragonCrowdsaleCore //Balance: 0 Ether //Verification Date: 12/25/2017 //Transacion Count: 7 // CODE STARTS HERE pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) {...
tallies total dragons sold
tokensSold = tokensSold.add(award);
12,799,370
[ 1, 4625, 348, 7953, 560, 30, 225, 268, 454, 606, 2078, 8823, 7008, 272, 1673, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2430, 55, 1673, 273, 2430, 55, 1673, 18, 1289, 12, 69, 2913, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0x612644Ef115b3bB7Afd8c5e902e8B531fD5ffeed/sources/browser/main_dapp_main.sol
ASD token address in Rinkbey need to be SALE token for mainnet Stake token for ropsten
address constant platformToken = 0x376aA1Dd55571aF93C4063e05173B2db3059b25a;
8,091,302
[ 1, 4625, 348, 7953, 560, 30, 5355, 40, 1147, 1758, 316, 534, 754, 70, 402, 225, 1608, 358, 506, 17127, 900, 1147, 364, 2774, 2758, 225, 934, 911, 1147, 364, 721, 84, 334, 275, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 225, 5381, 4072, 1345, 273, 374, 92, 6418, 26, 69, 37, 21, 40, 72, 2539, 10321, 21, 69, 42, 11180, 39, 7132, 4449, 73, 6260, 31331, 38, 22, 1966, 5082, 6162, 70, 2947, 69, 31, 282, 2, -100, -100, -100, -100, -100, ...
./full_match/43114/0xD316e1E95399a7aa03B2686Bc71A0Cf25128fF8C/sources/contracts/Strategy.sol
pauses deposits and withdraws all funds from third party systems.
function panic() public onlyManager { pause(); IMasterChef(masterchef).emergencyWithdraw(poolId); }
4,516,352
[ 1, 4625, 348, 7953, 560, 30, 225, 6790, 6117, 443, 917, 1282, 471, 598, 9446, 87, 777, 284, 19156, 628, 12126, 18285, 14908, 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, ...
[ 1, 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, 3933, 1435, 1071, 1338, 1318, 288, 203, 3639, 11722, 5621, 203, 3639, 6246, 2440, 39, 580, 74, 12, 7525, 343, 10241, 2934, 351, 24530, 1190, 9446, 12, 6011, 548, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100,...
// 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 functi...
@dev Add a batch of token Ids given as a bytes array to the sender @param to address minting token to this address @param tokenIds bytes a bytes of tokenIds as bytes2 (uint16)
function safeMintBatch(address to, bytes calldata tokenIds) internal virtual { _mintBatch(to, tokenIds); _checkOnERC721Received( address(0), to, BytesLib.toUint16(tokenIds, 0), "" ); }
989,060
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1436, 279, 2581, 434, 1147, 29085, 864, 487, 279, 1731, 526, 358, 326, 5793, 632, 891, 358, 1758, 312, 474, 310, 1147, 358, 333, 1758, 632, 891, 1147, 2673, 1731, 279, 1731, 434, 1147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 49, 474, 4497, 12, 2867, 358, 16, 1731, 745, 892, 1147, 2673, 13, 203, 3639, 2713, 203, 3639, 5024, 203, 565, 288, 203, 3639, 389, 81, 474, 4497, 12, 869, 16, 1147, 2673, 1769, 203, 3639, 389, 1893, 1398, 654, ...
// Sources flattened with hardhat v2.1.1 https://hardhat.org // File contracts/oracle/interfaces/FinderInterface.sol // SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.0; /** * @title Provides addresses of the live contracts implementing certain interfaces. * @dev Examples are the Oracle or Store inter...
* @title Simple implementation of the OracleInterface used to communicate price request data cross-chain between EVM networks. Can be extended either into a "Source" or "Sink" oracle that specializes in making and resolving cross-chain price requests, respectively. The "Source" Oracle is the originator or source of pri...
abstract contract BeaconOracle { enum RequestState { NeverRequested, PendingRequest, Requested, PendingResolve, Resolved } struct Price { RequestState state; int256 price; } event PriceRequestAdded(uint8 indexed chainID, bytes32 indexed identifier, uint256 time, bytes ancillaryData...
12,056,139
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4477, 4471, 434, 326, 28544, 1358, 1399, 358, 15541, 6205, 590, 501, 6828, 17, 5639, 3086, 512, 7397, 13884, 18, 4480, 506, 7021, 3344, 1368, 279, 315, 1830, 6, 578, 315, 11326, 6, 20865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4823, 16329, 23601, 288, 203, 203, 203, 565, 2792, 1567, 1119, 288, 24496, 11244, 16, 16034, 691, 16, 25829, 16, 16034, 8460, 16, 22776, 289, 203, 565, 1958, 20137, 288, 203, 3639, 1567, 1119, 919, 31, 203, 3639, 509, ...
// This file is part of the Blockchain-based Fair Exchange Benchmark Tool // https://gitlab.com/MatthiasLohr/bfebench // // Copyright 2021-2022 Matthias Lohr <mail@mlohr.com> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Y...
* @notice Calculates the channel's ID from the given parameters. @param params The parameters of the channel. @return The ID of the channel. Source:/
function getChannelID(Channel.Params memory params) public pure returns (bytes32) { return keccak256(Channel.encodeParams(params)); }
12,976,498
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 26128, 326, 1904, 1807, 1599, 628, 326, 864, 1472, 18, 632, 891, 859, 1021, 1472, 434, 326, 1904, 18, 632, 2463, 1021, 1599, 434, 326, 1904, 18, 4998, 27824, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16454, 734, 12, 2909, 18, 1370, 3778, 859, 13, 1071, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 327, 417, 24410, 581, 5034, 12, 2909, 18, 3015, 1370, 12, 2010, 10019, 203, 565, 289, 203, 2, -100, -100, -100, -1...
./full_match/44787/0xD46736fdAac3822372160FC59E1f07fb59774666/sources/1_PaggloAmbec.sol
* @dev Store value in array @param _id, _idTransactionton, _evento, _message/
function addEvent(string memory _id, string memory _idTransaction, string memory _evento, string memory _message) public ownerOnly { eventsArray[_id].push(Event(_id, _idTransaction, _evento, _message)); }
13,272,093
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4994, 460, 316, 526, 632, 891, 389, 350, 16, 389, 350, 3342, 1917, 16, 389, 2575, 83, 16, 389, 2150, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21781, 12, 1080, 3778, 389, 350, 16, 533, 3778, 389, 350, 3342, 16, 533, 3778, 389, 2575, 83, 16, 533, 3778, 389, 2150, 13, 1071, 3410, 3386, 288, 203, 3639, 2641, 1076, 63, 67, 350, 8009, 6206, 12, 1133, 24899, 350, ...
//Address: 0xce0589450422ce360215c6c50f9809e753e3829b //Contract name: RntCrowdsale //Balance: 0 Ether //Verification Date: 1/10/2018 //Transacion Count: 43 // CODE STARTS HERE pragma solidity ^0.4.15; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control ...
@dev Returns array with owner addresses, which confirmed transaction. @param transactionId Transaction ID. @return Returns array of owner addresses.
function getConfirmations(uint transactionId) public constant returns (address[] _confirmations) { address[] memory confirmationsTemp = new address[](owners.length); uint count = 0; uint i; for (i = 0; i < owners.length; i++) if (confirmations[transactionI...
5,417,864
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 526, 598, 3410, 6138, 16, 1492, 19979, 2492, 18, 632, 891, 24112, 5947, 1599, 18, 632, 2463, 2860, 526, 434, 3410, 6138, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 11269, 1012, 12, 11890, 24112, 13, 203, 565, 1071, 203, 565, 5381, 203, 565, 1135, 261, 2867, 8526, 389, 10927, 1012, 13, 203, 565, 288, 203, 3639, 1758, 8526, 3778, 6932, 1012, 7185, 273, 394, 1758, 8526, 12, 995,...
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.13; import "./SVG.sol"; import "./WatchData.sol"; // Renders the hands, which are layered on top of every other core element library Hands { function render( uint256 _second, uint256 _minute, uint256 _hour ) public pure returns (string memory)...
Renders the hands, which are layered on top of every other core element
library Hands { function render( uint256 _second, uint256 _minute, uint256 _hour pragma solidity ^0.8.13; ) public pure returns (string memory) { return svg.g( string.concat( svg.prop("stroke", utils.getCssVar("fa")), svg.prop("stroke-opacity", "0.1"), svg...
1,090,007
[ 1, 4625, 348, 7953, 560, 30, 225, 534, 10130, 326, 948, 87, 16, 1492, 854, 3018, 329, 603, 1760, 434, 3614, 1308, 2922, 930, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 2841, 87, 288, 203, 225, 445, 1743, 12, 203, 565, 2254, 5034, 389, 8538, 16, 203, 565, 2254, 5034, 389, 17637, 16, 203, 565, 2254, 5034, 389, 12091, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 3437, 31, 203, 225, ...
/** *Submitted for verification at Etherscan.io on 2021-06-15 */ // File: @openzeppelin/upgrades/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `...
for each token, holds an array of the creator collaborators. For layer tokens it will likely just be [artist], for master tokens it may hold multiples
mapping(uint256 => address payable[]) public uniqueTokenCreators;
2,041,741
[ 1, 4625, 348, 7953, 560, 30, 225, 364, 1517, 1147, 16, 14798, 392, 526, 434, 326, 11784, 21326, 31391, 18, 2457, 3018, 2430, 518, 903, 10374, 2537, 506, 306, 25737, 6487, 364, 4171, 2430, 518, 2026, 6887, 3309, 6089, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 1758, 8843, 429, 63, 5717, 1071, 3089, 1345, 1996, 3062, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.10; /** * Hodld DAO and ERC20 token * Author: CurrencyTycoon on GitHub * License: MIT * Date: 2017 * * Deploy with the following args: * 0, "Hodl DAO", 18, "HODL" * */ contract HodlDAO { /* ERC20 Public variables of the token */ string public version = 'HDAO 0.2'; string p...
* ERC-20 Approves and then calls the receiving contract/call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn't have to include a contract in here just for this.receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _ext...
function approveAndCall(address _spender, uint256 _value, bytes _extraData) notPendingWithdrawal returns (bool success) { allowance[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; }
7,273,964
[ 1, 4625, 348, 7953, 560, 30, 380, 4232, 39, 17, 3462, 1716, 685, 3324, 471, 1508, 4097, 326, 15847, 6835, 19, 1991, 326, 6798, 23461, 445, 603, 326, 6835, 1846, 2545, 358, 506, 18791, 18, 1220, 276, 5015, 87, 326, 445, 3372, 10036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6617, 537, 1876, 1477, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 16, 1731, 389, 7763, 751, 13, 486, 8579, 1190, 9446, 287, 203, 565, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 1699, 1359, 63, 3576, 18, ...
./full_match/4/0xd6DeD87d4DA1338d2106679b2519163fd2834A2a/sources/browser/3_Ballot.sol
require(!userInfos[msg.sender].joined, 'User exist');require(msg.value == priceOfLevel[1], 'Incorrect Value');
function _regUser(address _user, uint _mainReferral) internal { uint _referrerID = lastFreeParent; uint amount = priceOfLevel[1]; if(userInfos[userAddressByID[_referrerID]].childCount >= maxDownLimit) lastFreeParent++; lastIDCount++; userInfos[_user].id = lastIDCount; ...
649,657
[ 1, 4625, 348, 7953, 560, 30, 2583, 12, 5, 1355, 7655, 63, 3576, 18, 15330, 8009, 5701, 329, 16, 296, 1299, 1005, 8284, 6528, 12, 3576, 18, 1132, 422, 6205, 951, 2355, 63, 21, 6487, 296, 16268, 1445, 8284, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1574, 1299, 12, 2867, 389, 1355, 16, 2254, 389, 5254, 1957, 29084, 13, 2713, 225, 288, 203, 3639, 2254, 389, 1734, 11110, 734, 273, 1142, 9194, 3054, 31, 203, 3639, 2254, 3844, 273, 225, 6205, 951, 2355, 63, 21, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "../interfaces/ITokenExchange.sol"; import "../connectors/curve/interfaces/IRewardOnlyGauge.sol"; contract A3Crv2A...
TODO: denominator usage
uint256 denominator = 10**(18 - IERC20Metadata(address(a3CrvGaugeToken)).decimals());
7,242,279
[ 1, 4625, 348, 7953, 560, 30, 2660, 30, 15030, 4084, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 2254, 5034, 15030, 273, 1728, 636, 12, 2643, 300, 467, 654, 39, 3462, 2277, 12, 2867, 12, 69, 23, 39, 4962, 18941, 1345, 13, 2934, 31734, 10663, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/43114/0xE32d5eAe7ac6AA094761A19AD8B01a8f6fefdD29/sources/boneswap-avax/BoneVault.sol
* @notice Withdraws from funds from the BONE Vault @param _shares: Number of shares to withdraw/
function withdraw(uint256 _shares) public notContract { UserInfo storage user = userInfo[msg.sender]; require(_shares > 0, "Nothing to withdraw"); require(_shares <= user.shares, "Withdraw amount exceeds balance"); uint256 currentAmount = (balanceOf().mul(_shares)).div(totalShares);...
4,577,995
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3423, 9446, 87, 628, 284, 19156, 628, 326, 605, 5998, 17329, 632, 891, 389, 30720, 30, 3588, 434, 24123, 358, 598, 9446, 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, 598, 9446, 12, 11890, 5034, 389, 30720, 13, 1071, 486, 8924, 288, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 3576, 18, 15330, 15533, 203, 3639, 2583, 24899, 30720, 405, 374, 16, 315, 23814, 358, 598, 9446, 8863, 203, ...
pragma solidity ^0.4.13; // ERC20 token interface is implemented only partially // (no SafeMath is used because contract code is very simple) // // Some functions left undefined: // - transfer, transferFrom, // - approve, allowance. contract PresaleToken { /// Fields: string public constant name = "R...
Functions: @dev Constructor @param _tokenManager Token manager address.
function PresaleToken(address _tokenManager, address _escrow) public { require(_tokenManager!=0); require(_escrow!=0); tokenManager = _tokenManager; escrow = _escrow; }
5,381,943
[ 1, 4625, 348, 7953, 560, 30, 225, 15486, 30, 632, 5206, 11417, 632, 891, 389, 2316, 1318, 3155, 3301, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 18346, 5349, 1345, 12, 2867, 389, 2316, 1318, 16, 1758, 389, 742, 492, 13, 1071, 203, 565, 288, 203, 3639, 2583, 24899, 2316, 1318, 5, 33, 20, 1769, 203, 3639, 2583, 24899, 742, 492, 5, 33, 20, 1769, 203, 203, 3639, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; /** * @dev Xcert burnable interface. */ interface XcertBurnable // is Xcert { /** * @dev Destroys a specified Xcert. Reverts if not called from Xcert owner or operator. * @param _tokenId Id of the Xcert we want to destroy. */ function destroy( ...
* @dev Xcert burnable interface./
{ function destroy( uint256 _tokenId ) external; }
12,716,753
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1139, 7593, 18305, 429, 1560, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 203, 225, 445, 5546, 12, 203, 565, 2254, 5034, 389, 2316, 548, 203, 225, 262, 203, 565, 3903, 31, 203, 203, 203, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x8002Aa3A2065cdc24c72FE518a0aEd5c9f8FA9D9/sources/ShareTokenSaleData.sol
* @dev Constructor Implementations 1. Set current round and _currentPurchase property 2. Set tokenRemains for each round, initially is total token to sell 3. Set token sale round durations/
constructor(){ _releaseDurations[0] = [180 days, 270 days, 360 days, 450 days, 540 days, 630 days, 720 days]; _releasePercents[0] = [250, 125, 125, 125, 125, 125, 125]; _releaseDurations[1] = [180 days, 270 days, 360 days, 450 days, 540 days, 630 days, 720 days]; _releasePercents[1]...
4,138,287
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11417, 10886, 1012, 282, 404, 18, 1000, 783, 3643, 471, 389, 2972, 23164, 1272, 282, 576, 18, 1000, 1147, 1933, 4167, 364, 1517, 3643, 16, 22458, 353, 2078, 1147, 358, 357, 80, 282, 890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 95, 203, 3639, 389, 9340, 5326, 87, 63, 20, 65, 273, 306, 18278, 4681, 16, 29966, 4681, 16, 12360, 4681, 16, 1059, 3361, 4681, 16, 1381, 7132, 4681, 16, 1666, 5082, 4681, 16, 2371, 3462, 4681, 15533, 203, 3639, ...
./partial_match/1/0x3119Fe7395A2656045c75Cd59dFfe935022FcCD3/sources/Token.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20 { mapping(address => uint256) public _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; constructor(string memory name_, string memory symbol_) { ...
4,344,644
[ 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, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 2254, 5034, 3719, 3238, 389, 5965,...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity >=0.7.6; import "./UniV2AdapterCore.sol"; contract UniV2ExcessIn is UniV2AdapterCore { function tokenToTokenExcess(IERC20 tokenIn, IERC20 tokenOut, uint tokenInAmount, uint tokenOutAmount) external view override returns (address[] memory excessTok...
requires the initial amount to have already been sent to the first pair
function _swap(uint[] memory amounts, address[] memory path, address _to) internal { for (uint i; i < path.length - 1; i++) { (address input, address output) = (path[i], path[i + 1]); (address token0,) = UniswapV2Library.sortTokens(input, output); uint amountOut = amounts[i + 1]; (uint amo...
13,432,117
[ 1, 4625, 348, 7953, 560, 30, 225, 4991, 326, 2172, 3844, 358, 1240, 1818, 2118, 3271, 358, 326, 1122, 3082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 22270, 12, 11890, 8526, 3778, 30980, 16, 1758, 8526, 3778, 589, 16, 1758, 389, 869, 13, 2713, 288, 203, 565, 364, 261, 11890, 277, 31, 277, 411, 589, 18, 2469, 300, 404, 31, 277, 27245, 288, 203, 1377, 261, 2867,...
./full_match/100/0xa43328ABd99ae605A87661E7fC84a0e509DE6BD0/sources/contracts/Core.sol
* @notice LP: Register new bet in the core. @param conditionId the match or game ID @param tokenId AzuroBet token ID @param amount amount of tokens to bet @param outcome ID of predicted outcome @param minOdds minimum allowed bet odds @return betting odds @return fund bank of condition's outcome 1 @return fund bank...
{ Condition storage condition = conditions[conditionId]; if (allConditionsStopped || condition.state != ConditionState.CREATED) revert BetNotAllowed(); uint8 outcomeIndex = ( outcome == conditions[conditionId].outcomes[0] ? 0 : 1 ); if ( (c...
14,277,054
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 511, 52, 30, 5433, 394, 2701, 316, 326, 2922, 18, 632, 891, 225, 2269, 548, 326, 845, 578, 7920, 1599, 632, 891, 225, 1147, 548, 432, 94, 19321, 38, 278, 1147, 1599, 632, 891, 225, 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, 288, 203, 3639, 7949, 2502, 2269, 273, 4636, 63, 4175, 548, 15533, 203, 3639, 309, 261, 454, 8545, 15294, 747, 2269, 18, 2019, 480, 7949, 1119, 18, 18546, 13, 203, 5411, 15226, 605, 278, 19354, 5621, 203, 3639, 2254, 28, 128...
./full_match/1/0xbB6881874825E60e1160416D6C426eae65f2459E/sources/@balancer-labs/v2-pool-linear/contracts/LinearMath.sol
Since real = nominal + fees, rounding down fees is equivalent to rounding down real.
function _fromNominal(uint256 nominal, Params memory params) internal pure returns (uint256) { if (nominal < params.lowerTarget) { return (nominal.add(params.fee.mulDown(params.lowerTarget))).divDown(FixedPoint.ONE.add(params.fee)); return nominal; return (nominal.sub(pa...
4,898,758
[ 1, 4625, 348, 7953, 560, 30, 225, 7897, 2863, 273, 12457, 1490, 397, 1656, 281, 16, 13885, 2588, 1656, 281, 353, 7680, 358, 13885, 2588, 2863, 18, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2080, 26685, 1490, 12, 11890, 5034, 12457, 1490, 16, 8861, 3778, 859, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 203, 3639, 309, 261, 12306, 1490, 411, 859, 18, 8167, 2326, 13, 288, 203, 5411, 327, 261,...
./partial_match/1/0xABF05c898AB723b22485B85cE0Ded84b7bd8eD7F/sources/IconFactory.sol
* @title TradeableERC721Token TradeableERC721Token - ERC721 contract that whitelists a trading address, and has minting functionality./
contract TradeableERC721Token is ERC721Full, Ownable { using Strings for string; address proxyRegistryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) public ERC721Full(_name, _symbol) { ...
4,100,478
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 2197, 323, 429, 654, 39, 27, 5340, 1345, 2197, 323, 429, 654, 39, 27, 5340, 1345, 300, 4232, 39, 27, 5340, 6835, 716, 600, 305, 292, 1486, 279, 1284, 7459, 1758, 16, 471, 711, 312, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2197, 323, 429, 654, 39, 27, 5340, 1345, 353, 4232, 39, 27, 5340, 5080, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 533, 31, 203, 203, 565, 1758, 2889, 4243, 1887, 31, 203, 565, 2254, 5034, 3238, 389, 2972, 1345, 54...
// This Auth Model also includes UserWallet Logics // TODO => make it single Auth code for future launch where this Auth Contract will be the owner of UserWallet pragma solidity ^0.5.2; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; /** * @title AddressRegistryInterface Interface */ interface Address...
* @dev Throws if the msg.sender is not guardian/
function isGuardian(address _guardian) public view returns (bool) { if (_guardian == guardians[1] || _guardian == guardians[2] || _guardian == guardians[3] || _guardian == guardians[4] || _guardian == guardians[5]) { return true; return false; } }
7,238,908
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 326, 1234, 18, 15330, 353, 486, 11026, 2779, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 16709, 2779, 12, 2867, 389, 24594, 2779, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 309, 261, 67, 24594, 2779, 422, 11026, 19657, 63, 21, 65, 747, 389, 24594, 2779, 422, 11026, 19657, 63, 22, 65, 747, 3...
./partial_match/1/0xD3B55Ba131CE66c1F4299917e1347533Ad16E06c/sources/CloversController.sol
, string memory msg , game.msg
function getGame (bytes28[2] memory moves) public pure returns ( bool error, bool complete, bool symmetrical, bytes16 board, uint8 currentPlayer, uint8 moveKey ) { Game memory game = playGame(moves); return ( game.error, game....
4,139,288
[ 1, 4625, 348, 7953, 560, 30, 225, 269, 533, 3778, 1234, 269, 7920, 18, 3576, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7162, 339, 261, 3890, 6030, 63, 22, 65, 3778, 13934, 13, 1071, 16618, 1135, 261, 203, 3639, 1426, 555, 16, 203, 3639, 1426, 3912, 16, 203, 3639, 1426, 15108, 287, 16, 203, 3639, 1731, 2313, 11094, 16, 203, 3639, 2254, ...
./partial_match/1/0xa76EA705783b595b420bb36F196540a2Ed629673/sources/MatchingMarket.sol
set the minimum sell amount for a token Function is used to avoid "dust offers" that have very small amount of tokens to sell, and it would cost more gas to accept the offer, than the value of tokens received. params: ERC20 pay_gem: token to assign minimum sell amount to uint dust: maker (ask) minimum sell ...
function setMinSell(ERC20 pay_gem, uint dust) public auth note returns (bool) { _dust[address(pay_gem)] = dust; emit LogMinSell(address(pay_gem), dust); return true; }
3,575,004
[ 1, 4625, 348, 7953, 560, 30, 444, 326, 5224, 357, 80, 3844, 364, 279, 1147, 565, 4284, 353, 1399, 358, 4543, 315, 72, 641, 28641, 6, 716, 1240, 565, 8572, 5264, 3844, 434, 2430, 358, 357, 80, 16, 471, 518, 4102, 565, 6991, 1898, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27724, 55, 1165, 12, 654, 39, 3462, 8843, 67, 23465, 16, 2254, 302, 641, 13, 1071, 1357, 4721, 1135, 261, 6430, 13, 288, 203, 203, 203, 3639, 389, 72, 641, 63, 2867, 12, 10239, 67, 23465, 25887, 273, 302, 641, 31, 2...
./full_match/84531/0x810482187D3BAEA64f0d4f0eF0475a56162F15A3/sources/contracts/utils/Forwarder.sol
require(verify(req, signature), 'MinimalForwarder: signature does not match request'); Validate that the relayer has sent enough gas for the call. See https:ronan.eth.link/blog/ethereum-gas-dangers/ We explicitly trigger invalid opcode to consume all gas and bubble-up the effects, since neither revert or assert consume...
function execute(ForwardRequest calldata req, bytes calldata signature) public payable whenNotPaused returns (bool, bytes memory) { if (!verify(req, signature)) revert InvalidSignature(); if (_nonces[req.nonce]) revert InvalidNonce(); _nonces[req.nonce] = ...
14,317,930
[ 1, 4625, 348, 7953, 560, 30, 2583, 12, 8705, 12, 3658, 16, 3372, 3631, 296, 2930, 2840, 30839, 30, 3372, 1552, 486, 845, 590, 8284, 3554, 716, 326, 1279, 1773, 711, 3271, 7304, 16189, 364, 326, 745, 18, 2164, 2333, 30, 1949, 304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 8514, 691, 745, 892, 1111, 16, 1731, 745, 892, 3372, 13, 203, 3639, 1071, 203, 3639, 8843, 429, 203, 3639, 1347, 1248, 28590, 203, 3639, 1135, 261, 6430, 16, 1731, 3778, 13, 203, 565, 288, 203, 3639, 309, 16...
/** *Submitted for verification at Etherscan.io on 2021-06-14 */ // File: @openzeppelin/upgrades/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `...
only cluster registry is necessary because the rewards should be updated in the cluster registry against the cluster
function claimReward(address _cluster) public onlyRewardDelegatorsContract returns(uint256) { uint256 pendingRewards = clusterRewards[_cluster]; if(pendingRewards > 1) { uint256 rewardsToTransfer = pendingRewards.sub(1); clusterRewards[_cluster] = 1; return reward...
10,870,951
[ 1, 4625, 348, 7953, 560, 30, 225, 1338, 2855, 4023, 353, 4573, 2724, 326, 283, 6397, 1410, 506, 3526, 316, 326, 2855, 4023, 5314, 326, 2855, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7516, 17631, 1060, 12, 2867, 389, 7967, 13, 1071, 1338, 17631, 1060, 15608, 3062, 8924, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 4634, 17631, 14727, 273, 2855, 17631, 14727, 63, 67, 7967, 15533, 203, 3639, 3...
./partial_match/1/0xddE1cDDBBC4bfc0D2E9F5B2957456A2B651aAa6B/sources/Cycle.sol
DEPLOYED BY JURY.ONLINE GENERAL CYCLE VARIABLES -------------------------------------------------
contract Cycle { using SafeMath for uint; struct Milestone { string description; string result; } uint public currentMilestone; struct Investor { bool disputing; uint tokenAllowance; uint etherUsed; uint sumEther; uint sumToken; ...
9,408,816
[ 1, 4625, 348, 7953, 560, 30, 225, 2030, 22971, 2056, 6953, 804, 1099, 61, 18, 673, 5997, 13679, 1013, 29335, 23181, 22965, 55, 13420, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 385, 3409, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 203, 203, 203, 203, 565, 1958, 490, 18270, 288, 203, 3639, 533, 2477, 31, 203, 3639, 533, 563, 31, 203, 565, 289, 203, 203, 565, 2254, 1071, 783...
pragma solidity ^0.6.12; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when de...
CCM tokens created per block.
uint256 public CCMPerBlock;
11,873,158
[ 1, 4625, 348, 7953, 560, 30, 225, 385, 9611, 2430, 2522, 1534, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 385, 9611, 2173, 1768, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.9; // optimization enabled, runs: 10000, evm: constantinople /** * @title HomeWork Interface (version 1) - EIP165 ID 0xe5399799 * @author 0age * @notice Homework is a utility to find, share, and reuse "home" addresses for * contracts. Anyone can work to find a new home address by searching for...
* @notice Pure function to get the token name. @return String representing the token name./* @notice Pure function to get the token symbol. @return String representing the token symbol./* @notice Pure function to determine the key that is derived from a given salt and submitting address. @param salt bytes32 The salt va...
{ key = _deriveKey(salt, submitter); }
15,817,940
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 16616, 445, 358, 336, 326, 1147, 508, 18, 632, 2463, 514, 5123, 326, 1147, 508, 18, 20308, 632, 20392, 16616, 445, 358, 336, 326, 1147, 3273, 18, 632, 2463, 514, 5123, 326, 1147, 3273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 288, 203, 565, 498, 273, 389, 765, 688, 653, 12, 5759, 16, 4879, 387, 1769, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// Copyright (c) 2016-2018 Clearmatics Technologies Ltd // SPDX-License-Identifier: LGPL-3.0+ pragma solidity ^0.4.23; import "./libraries/RLP.sol"; import "./libraries/SolidityUtils.sol"; /* EventVerifier This contract is the basic global EventVerifier interface that all specific event verifiers must inheri...
/ Decode the receipt into it's consituents and grab the logs with it's known position in the receipt/ The receipts could contain multiple event logs if a single transaction emitted multiple events. We need to/ If event signature is found, check the contract address it was emitted from
It supplies a function `retrieveLog` that will output the relevant log for a specified event signature from the provided receipts. Each specific verifier that inherits this contract must hold knowledge of the event signature it intends to consume which will be passed to the retrieval function for log separa...
14,069,950
[ 1, 4625, 348, 7953, 560, 30, 342, 225, 6209, 326, 16030, 1368, 518, 1807, 1959, 305, 89, 4877, 471, 11086, 326, 5963, 598, 518, 1807, 4846, 1754, 316, 326, 16030, 19, 225, 1021, 2637, 27827, 3377, 912, 3229, 871, 5963, 309, 279, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2597, 1169, 5259, 279, 445, 1375, 17466, 1343, 68, 716, 903, 876, 326, 9368, 613, 364, 279, 1269, 871, 3372, 628, 326, 203, 565, 2112, 2637, 27827, 18, 8315, 2923, 20130, 716, 24664, 333, 6835, 1297, 6887, 20272, 434, 326, 8...
/** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/OpenZeppelin/openzeppelin-solidity * * The AFW token contract bases on the ERC20 standard token contracts * Company Optimum Consulting - Courbevoie * */ pragma solidity ^0.4.21; /** * @title Saf...
@notice Buy tokens from contract by sending ether only accept a minimum amount of ETH?
function buyTokens() internal { require(msg.value >= 0.001 ether); uint256 tokens ; uint256 xAmount = msg.value; uint256 toReturnEth; uint256 toTokensReturn; uint256 balanceIco ; if(isPreSale()){ balanceIco = preIcoCap.sub(stat.currentFundraiser); tokens =computeTokenAmountAll(...
7,917,475
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 605, 9835, 2430, 628, 6835, 635, 5431, 225, 2437, 1338, 2791, 279, 5224, 3844, 434, 512, 2455, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 5157, 1435, 2713, 288, 1082, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 374, 18, 11664, 225, 2437, 1769, 203, 3639, 2254, 5034, 2430, 274, 203, 202, 202, 11890, 5034, 619, 6275, 273, 1234, 18, 1132, 31, 203, 202,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; interface ILegitArtERC721 { function mintTo( address creator, uint256 royaltyFee, address gallerist, uint256 galleristFee, address to, uint256 tokenId, string memory tokenURI ) external; functio...
Whether the initial auth address has been set. */
constructor() { AuthenticatedProxy impl = new AuthenticatedProxy(); impl.initialize(address(this), this); impl.setRevoke(true); delegateProxyImplementation = address(impl); }
6,334,130
[ 1, 4625, 348, 7953, 560, 30, 225, 17403, 326, 2172, 1357, 1758, 711, 2118, 444, 18, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 288, 203, 3639, 3123, 6096, 3886, 9380, 273, 394, 3123, 6096, 3886, 5621, 203, 3639, 9380, 18, 11160, 12, 2867, 12, 2211, 3631, 333, 1769, 203, 3639, 9380, 18, 542, 29196, 12, 3767, 1769, 203, 3639, 7152, 3886, 1...
pragma solidity ^0.5.5; import './IERC20.sol'; import './usingOraclize.sol'; /// @notice The open source bank and lending platform for ERC-20 tokens and ETH /// @author Merunas Grincalaitis <merunasgrincalaitis@gmail.com> contract Bank is usingOraclize { /* We want the following features - A funct...
@notice To check how much ether you've earned @return int256 The number of ETH
function checkEarnings() public view returns(int256) { int256 quantityOfEarnings; for(uint256 i = 0; i < holdings[msg.sender].length; i++) { int256 percentageOfHoldings = holdingEth[msg.sender].quantity * 100 / address(this).balance; uint256 daysPassed = now - holdings[msg.se...
2,558,650
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2974, 866, 3661, 9816, 225, 2437, 1846, 8081, 425, 1303, 329, 632, 2463, 509, 5034, 1021, 1300, 434, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 866, 41, 1303, 899, 1435, 1071, 1476, 1135, 12, 474, 5034, 13, 288, 203, 3639, 509, 5034, 10457, 951, 41, 1303, 899, 31, 203, 3639, 364, 12, 11890, 5034, 277, 273, 374, 31, 277, 411, 6887, 899, 63, 3576, 18, 15330, ...
./partial_match/1/0xC4136C364289cc5b42ACAE1442eA28c1e994aAB5/sources/FBOTR.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("FineBot", "FBOT") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2Factory(_unis...
4,269,929
[ 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, 42, 558, 6522, 3113, 315, 22201, 1974, 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, 22, ...
pragma solidity ^0.4.24; import "./IDiscountPolicy.sol"; import "../common/SafeMathLib.sol"; import "../common/Active.sol"; import "../shop/IWallet.sol"; import "../token/IERC20Token.sol"; import "../common/EtherHolder.sol"; /**@dev Discount settings that calcultes cashback for token holders. Also stores accumulated...
Events Storage data Methods
contract DiscountPolicy is Active, EtherHolder, IDiscountPolicy { using SafeMathLib for uint256; event CashbackCalculated(address indexed customer, uint256 amount); event CashbackAdded(address indexed customer, uint256 amount); event CashbackWithdrawn(address indexed customer, uint256 amount); ...
6,442,281
[ 1, 4625, 348, 7953, 560, 30, 225, 9043, 5235, 501, 13063, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3035, 1883, 2582, 353, 8857, 16, 512, 1136, 6064, 16, 1599, 291, 1883, 2582, 288, 203, 203, 565, 1450, 14060, 10477, 5664, 364, 2254, 5034, 31, 203, 203, 565, 871, 385, 961, 823, 4844, 690, 12, 2867, 8808, 6666, 16, 2254, ...
pragma solidity 0.5.10; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b...
Standard ERC-20 interface.
interface ERC20Interface { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSupply() external view returns (uint256...
7,270,334
[ 1, 4625, 348, 7953, 560, 30, 225, 8263, 4232, 39, 17, 3462, 1560, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4232, 39, 3462, 1358, 288, 203, 225, 445, 7412, 12, 2867, 358, 16, 2254, 5034, 460, 13, 3903, 1135, 261, 6430, 1769, 203, 225, 445, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 460, 13, 3903, 1135, 261, 6430, 1769, 20...
pragma solidity >=0.4.25 <0.6.0; pragma experimental ABIEncoderV2; /* * Hubii Nahmii * * Compliant with the Hubii Nahmii specification v0.12. * * Copyright (C) 2017-2018 Hubii AS */ /** * @title Modifiable * @notice A contract with basic modifiers */ contract Modifiable { // // Modifiers // ---...
@notice Set the fraud challenge contract @param newFraudChallenge The (address of) FraudChallenge contract instance Set new fraud challenge Emit event
{ FraudChallenge oldFraudChallenge = fraudChallenge; fraudChallenge = newFraudChallenge; emit SetFraudChallengeEvent(oldFraudChallenge, newFraudChallenge); }
12,574,690
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1000, 326, 284, 354, 1100, 12948, 6835, 632, 891, 394, 42, 354, 1100, 18359, 1021, 261, 2867, 434, 13, 478, 354, 1100, 18359, 6835, 791, 1000, 394, 284, 354, 1100, 12948, 16008, 871, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 478, 354, 1100, 18359, 1592, 42, 354, 1100, 18359, 273, 284, 354, 1100, 18359, 31, 203, 3639, 284, 354, 1100, 18359, 273, 394, 42, 354, 1100, 18359, 31, 203, 203, 3639, 3626, 1000, 42, 354, 1100, 18359, 1133,...
./partial_match/1/0x9c12d9b1223130B641154d8d3DB35F91D81c8dfd/sources/InBitToken.sol
@dev Transfers from [msg.sender] account and locks against specified address a specified amount of tokens, for a specified reason and time @param _to Address against which tokens have to be locked (to which address should be transferred after unlocking and claiming) @param _reason The reason to lock tokens @param _amo...
function transferWithLock( address _to, bytes32 _reason, uint256 _amount, uint256 _time ) public returns (bool) { uint256 validUntil = now.add(_time); require(tokensLocked(_to, _reason) == 0, 'Tokens already locked'); require(_amount != 0, 'Amount can not be 0'); if (locked...
16,074,262
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2604, 18881, 628, 306, 3576, 18, 15330, 65, 2236, 471, 13046, 5314, 1269, 1758, 279, 1269, 3844, 434, 2430, 16, 364, 279, 1269, 3971, 471, 813, 632, 891, 389, 869, 5267, 5314, 1492, 2430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 7412, 1190, 2531, 12, 203, 565, 1758, 389, 869, 16, 203, 565, 1731, 1578, 389, 10579, 16, 203, 565, 2254, 5034, 389, 8949, 16, 203, 565, 2254, 5034, 389, 957, 203, 225, 262, 203, 565, 1071, 203, 565, 1135, 261, 6430, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@# %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
* Override tokenURI/
function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "Token does not exist"); return tokenURIs[_tokenId]; }
1,286,336
[ 1, 4625, 348, 7953, 560, 30, 380, 1439, 1147, 3098, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 3098, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 2583, 24899, 1808, 24899, 2316, 548, 3631, 315, 1345, 1552, 486, 1005, 8863, 203, 3639, 327, 1147, 1099, 2520, ...
./partial_match/1/0xd137ffBa56D0AA386034968387BF7c3c0889eD5b/sources/DOJ.sol
Anti-bot and anti-whale mappings and variables exlcude 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 DOJ is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public charityWallet; address public marketingWallet...
15,912,978
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5467, 46, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "hardhat/console.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable...
Address of the reward pool (StakingMultiRewardsUpgradable)
address rewardPool;
276,845
[ 1, 4625, 348, 7953, 560, 30, 225, 5267, 434, 326, 19890, 2845, 261, 510, 6159, 5002, 17631, 14727, 1211, 9974, 429, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 19890, 2864, 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,...
pragma solidity ^0.5.0; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // // ---------------------------------------------------------------------------- contract ERC20Interface { function totalSupply() public view returns (uint); function ba...
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
constructor() public { name = "Yearn Finance Gold"; symbol = "YFGD"; decimals = 18; _totalSupply = 9000000000000000000000; balances[msg.sender] = _totalSupply; emit Transfer(address(0), msg.sender, _totalSupply); }
5,981,698
[ 1, 4625, 348, 7953, 560, 30, 380, 735, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 3885, 1435, 1071, 288, 203, 3639, 508, 273, 315, 61, 73, 1303, 9458, 1359, 611, 1673, 14432, 203, 3639, 3273, 273, 315, 61, 42, 27338, 14432, 203, 3639, 15105, 273, 6549, 31, 203, 3639, 389, 4963, 3088, 1283, 273, 2468, 1264...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.4; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "../libraries/SafeMathExt.sol"; import "../libraries/Utils.sol"; contract Tracer { using SafeMath for ...
liquidity pool address[]
EnumerableSetUpgradeable.AddressSet internal _liquidityPoolSet;
12,750,653
[ 1, 4625, 348, 7953, 560, 30, 225, 4501, 372, 24237, 2845, 1758, 8526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6057, 25121, 694, 10784, 429, 18, 1887, 694, 2713, 389, 549, 372, 24237, 2864, 694, 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...
pragma solidity 0.5.14; pragma experimental ABIEncoderV2; import {BlockHeaderMerkleParts} from "./BlockHeaderMerkleParts.sol"; import {SafeMath} from "openzeppelin-solidity/contracts/math/SafeMath.sol"; import {Ownable} from "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import {IAVLMerklePath} from "./IAVLMe...
Verifies that the given data is a valid data on BandChain as of the given block height. @param _blockHeight The block height. Someone must already relay this block. @param _data The data to verify, with the format similar to what on the blockchain store. @param _requestId The ID of request for this data piece. @param ...
function verifyOracleData( uint256 _blockHeight, bytes memory _data, uint64 _requestId, uint64 _oracleScriptId, bytes memory _params, uint256 _version, IAVLMerklePath.Data[] memory _merklePaths ) public view returns (VerifyOracleDataResult memory) { ...
12,997,145
[ 1, 4625, 348, 7953, 560, 30, 225, 6160, 5032, 716, 326, 864, 501, 353, 279, 923, 501, 603, 27601, 3893, 487, 434, 326, 864, 1203, 2072, 18, 632, 891, 389, 2629, 2686, 1021, 1203, 2072, 18, 10548, 476, 1297, 1818, 18874, 333, 1203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 23601, 751, 12, 203, 3639, 2254, 5034, 389, 2629, 2686, 16, 203, 3639, 1731, 3778, 389, 892, 16, 203, 3639, 2254, 1105, 389, 2293, 548, 16, 203, 3639, 2254, 1105, 389, 280, 16066, 3651, 548, 16, 203, 3639, 1731, ...
pragma solidity ^0.7.0; import { TokenInterface } from "../../../common/interfaces.sol"; import { DSMath } from "../../../common/math.sol"; import { Basic } from "../../../common/basic.sol"; import { SwapData } from "./interface.sol"; abstract contract Helpers is DSMath, Basic { /** * @dev UniswapV3 Swap Router Ad...
* @dev Gets the swapping data from auto router sdk @param swapData Struct with multiple swap data defined in interfaces.sol @param setId Set token amount at this ID in `InstaMemory` Contract./
function _swap(SwapData memory swapData, uint256 setId) internal returns (SwapData memory) { bool isEthSellToken = address(swapData.sellToken) == ethAddr; bool isEthBuyToken = address(swapData.buyToken) == ethAddr; swapData.sellToken = isEthSellToken ? TokenInterface(wethAddr) : swapData.sellToken; ...
15,884,637
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11881, 326, 7720, 1382, 501, 628, 3656, 4633, 14446, 632, 891, 7720, 751, 7362, 598, 3229, 7720, 501, 2553, 316, 7349, 18, 18281, 632, 891, 10446, 1000, 1147, 3844, 622, 333, 1599, 316, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 389, 22270, 12, 12521, 751, 3778, 7720, 751, 16, 2254, 5034, 10446, 13, 203, 202, 202, 7236, 203, 202, 202, 6154, 261, 12521, 751, 3778, 13, 203, 202, 95, 203, 202, 202, 6430, 353, 41, 451, 55, 1165, 1345, 273, 1758, ...
// Verified using https://dapp.tools // hevm: flattened sources of src/ChaosInu.sol // SPDX-License-Identifier: MIT pragma solidity =0.8.10 >=0.8.0 <0.9.0; pragma experimental ABIEncoderV2; ////// lib/openzeppelin-contracts/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) /* pragma so...
Anti-bot and anti-whale mappings and variables exlcude 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 ChaosInu is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address public devWa...
5,940,870
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1680, 69, 538, 382, 89, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.8.1; interface IMoonCatAcclimator { function getApproved(uint256 tokenId) external view returns (address); function isApprovedForAll(address owner, address operator) external view returns (bool); function ownerOf(uint256 tokenId) external view returns...
* @dev Has an AddrChanged event been emitted for the current owner of a MoonCat (identified by Rescue Order)?/
function needsAnnouncing(uint256 rescueOrder) public view returns (bool) { require(MCR.catOwners(MCR.rescueOrder(rescueOrder)) == address(MCA), "Not Acclimated"); return lastAnnouncedAddress[rescueOrder] != MCA.ownerOf(rescueOrder); }
15,333,107
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4393, 392, 10216, 5033, 871, 2118, 17826, 364, 326, 783, 3410, 434, 279, 14987, 265, 11554, 261, 6392, 939, 635, 534, 742, 344, 4347, 9945, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4260, 14694, 465, 2822, 12, 11890, 5034, 8223, 2448, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 49, 5093, 18, 2574, 5460, 414, 12, 49, 5093, 18, 455, 8007, 2448, 12, 455, 8007, 2448, 3719, 422, 175...
pragma solidity ^0.5.0; /** * X3ProfitInMonthV2 contract (300% per 33 day, 99% per 11 day, 9% per day, in first iteration) * This percent will decrease every restart of system to lowest value of 0.9% per day * * Improved, no bugs and backdoors! Your investments are safe! * * LOW RISK! You can take yo...
time through which you can take dividends
uint private constant TIME_QUANT = 1 days;
12,627,271
[ 1, 4625, 348, 7953, 560, 30, 813, 3059, 1492, 1846, 848, 4862, 3739, 350, 5839, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8721, 67, 3500, 6856, 273, 404, 4681, 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, -1...
/** *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...
add y^01 / 01 - y^02 / 02
res += z * (0x100000000000000000000000000000000 - y) / 0x100000000000000000000000000000000; z = z * w / FIXED_1;
451,574
[ 1, 4625, 348, 7953, 560, 30, 225, 527, 677, 66, 1611, 342, 8743, 300, 677, 66, 3103, 342, 17896, 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, 3639, 400, 1011, 998, 380, 261, 20, 92, 21, 12648, 12648, 12648, 12648, 300, 677, 13, 342, 374, 92, 21, 12648, 12648, 12648, 12648, 31, 998, 273, 998, 380, 341, 342, 26585, 67, 21, 31, 225, 2, -100, -100, -100, -100, -100, -100...
./partial_match/42/0x61803c77605d7b383f7C2750973063668c251DF7/sources/HodlerPool.sol
contract BaseHodlerPool is Ownable, RewardDistributionRecipient { function printArray() public returns(uint) { for (uint i = 0; i < first40Addresses.length; i++){ emit Log(strConcat("printArray, i: ", uint2str(i), " address: " ,addressToString(first40Addresses[i]),"")); } }
abstract contract BaseHodlerPool is Ownable { function char(byte b) private pure returns (byte c) { if (uint8(b) < 10) return byte(uint8(b) + 0x30); else return byte(uint8(b) + 0x57); } function addressToString(address x) private pure returns (string memory) { bytes memory s = new...
3,394,439
[ 1, 4625, 348, 7953, 560, 30, 6835, 3360, 44, 369, 749, 2864, 353, 14223, 6914, 16, 534, 359, 1060, 9003, 18241, 288, 445, 1172, 1076, 1435, 1071, 1135, 12, 11890, 13, 288, 377, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 1122, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3360, 44, 369, 749, 2864, 353, 14223, 6914, 288, 203, 203, 203, 565, 445, 1149, 12, 7229, 324, 13, 3238, 16618, 1135, 261, 7229, 276, 13, 288, 203, 3639, 309, 261, 11890, 28, 12, 70, 13, 411, 1728, 13, 327, 1160, ...
./partial_match/42/0xd70f59314d8d2C9D5A64d5d542eeE5b5f35825Bd/sources/Diziex.sol
data setupdeduct commissions for referrals fire event
function purchaseTokens(uint256 _incomingEthereum) internal returns(uint256) { address _customerAddress = msg.sender; uint256 _dividends = _incomingEthereum * buyPercent/100000; commFunds += _dividends; uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, _div...
3,454,588
[ 1, 4625, 348, 7953, 560, 30, 225, 501, 3875, 785, 853, 1543, 1054, 1115, 364, 1278, 370, 1031, 4452, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23701, 5157, 12, 11890, 5034, 389, 31033, 41, 18664, 379, 13, 203, 3639, 2713, 203, 3639, 1135, 12, 11890, 5034, 13, 203, 565, 288, 203, 3639, 1758, 389, 10061, 1887, 273, 1234, 18, 15330, 31, 203, 3639, 2254, 5034, 389...
// SPDX-License-Identifier: MIT // The difference with GamersePool is without rewardHolder pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./libs/SafeBEP20.sol"; contra...
Accrued token per share The block number when GAMERSE mining ends. The block number when GAMERSE mining starts. The block number of the last pool update GAMERSE tokens created per block. The precision factor The reward token. It cannot mark as immutable because need to read its precision in constructor. The staked tok...
contract GamersePool2 is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; uint256 public accTokenPerShare; uint256 public bonusEndBlock; uint256 public startBlock; uint256 public lastRewardBlock; uint256 public rewardPerBlock; uint256 public immuta...
13,084,577
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 86, 5957, 1147, 1534, 7433, 1021, 1203, 1300, 1347, 611, 2192, 654, 1090, 1131, 310, 3930, 18, 1021, 1203, 1300, 1347, 611, 2192, 654, 1090, 1131, 310, 2542, 18, 1021, 1203, 1300, 434, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 611, 24458, 307, 2864, 22, 353, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 5948, 52, 3462, 364, 467, 5948, 52, 3462, 31, 203, 203, 565, 2254, 50...
pragma solidity 0.6.6; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when de...
@notice Event emitted when user makes a deposit and receipt token is minted
event ReceiptMinted(address indexed user, uint256 amount);
361,842
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2587, 17826, 1347, 729, 7297, 279, 443, 1724, 471, 16030, 1147, 353, 312, 474, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 29787, 49, 474, 329, 12, 2867, 8808, 729, 16, 2254, 5034, 3844, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.5.16; pragma experimental ABIEncoderV2; /** _____ ____ ____ _____ ____ |___ /| _ \| __ )_ _/ ___| |_ \| | | | _ \ | || | ___) | |_| | |_) || || |___ ...
*@param times: Quantity purchased/
function saleRandom(uint256 times) public payable reentrancyGuard returns (uint256[] memory _tokenIds) { require(times > 0 && times < 16, "Invalid times"); uint256 size = balanceOf(address(this)); require(size >= times, "Out of stock"); require(pu...
388,917
[ 1, 4625, 348, 7953, 560, 30, 380, 36, 891, 4124, 30, 18189, 5405, 343, 8905, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 272, 5349, 8529, 12, 11890, 5034, 4124, 13, 203, 3639, 1071, 203, 3639, 8843, 429, 203, 3639, 283, 8230, 12514, 16709, 203, 3639, 1135, 261, 11890, 5034, 8526, 3778, 389, 2316, 2673, 13, 203, 565, 288, 203, 3639, 2583, ...
pragma solidity ^0.4.8; import "./User.sol"; import "./DNNToken.sol"; contract ReviewProcess { uint constant REQUIRED_VOTER_REQUESTS = 10; uint constant REQUIRED_VOTERS = 7; uint constant WRITER_FEE = 100; uint constant VOTING_PERIOD_DURATION = 3 days; // Addresses where the DNNToken and User...
Create new article object and initialize it's fields
Article memory newArticle;
884,997
[ 1, 4625, 348, 7953, 560, 30, 225, 1788, 394, 7559, 733, 471, 4046, 518, 1807, 1466, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 17889, 3778, 394, 7880, 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,...
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than ...
@notice Verifies if the account is whitelisted.
modifier ifWhitelisted(address _account) { require(_account != address(0)); require(whitelist[_account]); _; }
10,556,161
[ 1, 4625, 348, 7953, 560, 30, 632, 20392, 6160, 5032, 309, 326, 2236, 353, 26944, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 309, 18927, 329, 12, 2867, 389, 4631, 13, 288, 203, 565, 2583, 24899, 4631, 480, 1758, 12, 20, 10019, 203, 565, 2583, 12, 20409, 63, 67, 4631, 19226, 203, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; abstract contract ERC20 { // Returns the total supply of the token function totalSupply() virtual public view returns (uint); // Returns account balance with address 'tokenOwner' function balanceOf(address tokenOwner) virtual public vie...
Returns the total supply of the token Returns account balance with address 'tokenOwner' Returns amount 'spender' can withdraw from 'tokenOwner' Transfers 'tokens' amount to address 'to'. Fires Transfer event which can potentially throw error if balance too low. Lets 'spender' withdraw from an account multiple times, u...
abstract contract ERC20 { function totalSupply() virtual public view returns (uint); function balanceOf(address tokenOwner) virtual public view returns (uint balance); function allowance(address tokenOwner, address spender) virtual public view returns (uint remaining); function tran...
6,409,954
[ 1, 4625, 348, 7953, 560, 30, 225, 2860, 326, 2078, 14467, 434, 326, 1147, 2860, 2236, 11013, 598, 1758, 296, 2316, 5541, 11, 2860, 3844, 296, 87, 1302, 264, 11, 848, 598, 9446, 628, 296, 2316, 5541, 11, 2604, 18881, 296, 7860, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4232, 39, 3462, 288, 203, 377, 203, 565, 445, 2078, 3088, 1283, 1435, 5024, 1071, 1476, 1135, 261, 11890, 1769, 203, 377, 203, 565, 445, 11013, 951, 12, 2867, 1147, 5541, 13, 5024, 1071, 1476, 1135, 261, 11890, 11013, ...
./full_match/295/0x0000000000000000000000000000000000233233/sources/HederaResponseCodes.sol
Pre-Check error when TransactionValidStart + transactionValidDuration is less than current consensus time.
int32 internal constant TRANSACTION_EXPIRED = 4;
4,664,149
[ 1, 4625, 348, 7953, 560, 30, 225, 2962, 17, 1564, 555, 1347, 5947, 1556, 1685, 397, 2492, 1556, 5326, 353, 5242, 2353, 783, 18318, 813, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 509, 1578, 2713, 5381, 24896, 67, 18433, 5879, 273, 1059, 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/0x887fAdFC958C44cc0bAb0E211ec8bfba67Cee03b/sources/contracts/Halo/HaloNFTV2.sol
* @dev function to set a base url of the metadata/
function setBaseURI(string memory uri) public onlyOwner { _baseUri = uri; }
4,205,720
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 445, 358, 444, 279, 1026, 880, 434, 326, 1982, 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, 565, 445, 26435, 3098, 12, 1080, 3778, 2003, 13, 1071, 1338, 5541, 288, 203, 3639, 389, 1969, 3006, 273, 2003, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/97/0x0eb3c9825706100e7903863347B47132d786c0A3/sources/DAIBSGLPTokenSharePool.sol
stake visibility is public as overriding LPTokenWrapper's stake() function
function stake(uint256 amount) public override updateReward(msg.sender) checkStart { require(amount > 0, 'DAIBSGLPTokenSharePool: Cannot stake 0'); super.stake(amount); emit Staked(msg.sender, amount); }
11,381,733
[ 1, 4625, 348, 7953, 560, 30, 225, 384, 911, 9478, 353, 1071, 487, 19488, 511, 52, 1345, 3611, 1807, 384, 911, 1435, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 3844, 13, 203, 3639, 1071, 203, 3639, 3849, 203, 3639, 1089, 17631, 1060, 12, 3576, 18, 15330, 13, 203, 3639, 866, 1685, 203, 565, 288, 203, 3639, 2583, 12, 8949, 405, 374, 16, 296, 9793, 45...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; import "./SafeMath.sol"; import "./Events.sol"; import "./Ownable.sol"; import "./Upgradeable.sol"; import "./UpgradeableMaster.sol"; /// @title Upgrade Gatekeeper Contract /// @author Matter Labs /// @author ZKSwap L2 Labs contract UpgradeGatekeeper is Upgrad...
@notice Starts upgrade (activates notice period) @param newTargets New managed contracts targets (if element of this array is equal to zero address it means that appropriate upgradeable contract wouldn't be upgraded this time)
function startUpgrade(address[] calldata newTargets) external { requireMaster(msg.sender); uint noticePeriod = mainContract.getNoticePeriod(); mainContract.upgradeNoticePeriodStarted(); upgradeStatus = UpgradeStatus.NoticePeriod; noticePeriodFinishTimestamp = now.add(noticeP...
287,694
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 30620, 8400, 261, 11422, 815, 11690, 3879, 13, 632, 891, 394, 9432, 1166, 7016, 20092, 5774, 261, 430, 930, 434, 333, 526, 353, 3959, 358, 3634, 1758, 518, 4696, 716, 5505, 8400, 429, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 787, 10784, 12, 2867, 8526, 745, 892, 394, 9432, 13, 3903, 288, 203, 3639, 2583, 7786, 12, 3576, 18, 15330, 1769, 203, 203, 3639, 2254, 11690, 5027, 273, 2774, 8924, 18, 588, 20127, 5027, 5621, 203, 3639, 2774, 8924, 18...
./full_match/1/0x3D3097Cd94fEC5Dc823E5025A59438E63757dC79/sources/Plasma.sol
split the contract balance except swapCallerFee into halves swap tokens for pairToken add liquidity to uniswap
function swapAndLiquifyForTokens( address pairTokenAddress, uint256 lockedBalanceForPool ) private lockTheSwap { uint256 lockedForSwap = lockedBalanceForPool.sub(_autoSwapCallerFee); uint256 half = lockedForSwap.div(2); uint256 otherHalf = lockedForSwap.sub(half); ...
4,898,087
[ 1, 4625, 348, 7953, 560, 30, 225, 1416, 326, 6835, 11013, 1335, 7720, 11095, 14667, 1368, 19514, 3324, 7720, 2430, 364, 3082, 1345, 527, 4501, 372, 24237, 358, 640, 291, 91, 438, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 1876, 48, 18988, 1164, 1290, 5157, 12, 203, 3639, 1758, 3082, 1345, 1887, 16, 203, 3639, 2254, 5034, 8586, 13937, 1290, 2864, 203, 565, 262, 3238, 2176, 1986, 12521, 288, 203, 3639, 2254, 5034, 8586, 1290, 12521, 27...
/* Copyright 2021 Pulsar Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
* @title PPTypes @author Pulsar @dev Library for common types used in PowerPerpetual contracts./ ============ Structs ============
library PPTypes { struct Index { uint32 timestamp; bool isPositive; uint128 value; } struct Balance { bool marginIsPositive; bool positionIsPositive; uint120 margin; uint120 position; } struct Context { uint256 price; uint2...
5,457,905
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 453, 1856, 989, 632, 4161, 453, 332, 87, 297, 632, 5206, 18694, 364, 2975, 1953, 1399, 316, 23783, 2173, 6951, 1462, 20092, 18, 19, 422, 1432, 631, 7362, 87, 422, 1432, 631, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 453, 1856, 989, 288, 203, 203, 203, 203, 565, 1958, 3340, 288, 203, 3639, 2254, 1578, 2858, 31, 203, 3639, 1426, 353, 14900, 31, 203, 3639, 2254, 10392, 460, 31, 203, 565, 289, 203, 203, 565, 1958, 30918, 288, 203, 3639, ...
pragma solidity ^0.4.11; // ---------------------------------------------------------------------------- // Integrative Wallet Token & Crowdsale // Iwtoken.com // Developer from @Adatum // Taking ideas from @BokkyPooBah // -----------------------------------------------------------------------...
------------------------------------------------------------------------ Token information ------------------------------------------------------------------------ Initial date 2017-08-31 : 13 00 hs UTC Cap USD 12.5 mil @ 196.88 ETH/USD -> 12.5m / 196.88 -> 63490 -> 63500 Cannot have a constant address here - Solidity...
contract IntegrativeWalletToken is ERC20Token { string public constant symbol = "IWT"; string public constant name = "Integrative Wallet Token"; uint256 public constant decimals = 18; uint256 public constant STARTDATE = 1504184400; uint256 public constant ENDDATE = STARTDATE + 28 days; uint25...
6,666,448
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 3155, 1779, 8879, 17082, 10188, 1509, 11015, 17, 6840, 17, 6938, 294, 5958, 9631, 12670, 9951, 11200, 587, 9903, 2593, 18, 25, 312, 330, 632, 22882, 18, 5482, 512, 2455, 19, 3378, 40, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 15285, 1535, 16936, 1345, 353, 4232, 39, 3462, 1345, 288, 203, 203, 565, 533, 1071, 5381, 3273, 273, 315, 45, 8588, 14432, 203, 565, 533, 1071, 5381, 508, 273, 315, 11476, 1535, 20126, 3155, 14432, 203, 565, 2254, 5034, 1071...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; import "./IAccessControlEnumerableUpgradeable.sol"; import "./AccessControlUpgradeable.sol"; import "../utils/structs/EnumerableSetUpgradeable.sol"; import "../proxy/utils/Initi...
* @inheritdoc Upgradeable/
function version() public pure override(IVersioned, Upgradeable) returns (uint16) { return 1; }
87,002
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 17699, 429, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1177, 1435, 1071, 16618, 3849, 12, 45, 23676, 16, 17699, 429, 13, 1135, 261, 11890, 2313, 13, 288, 203, 3639, 327, 404, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; import "../client/node_modules/@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol"; import "../client/node_modules/@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol"; contract Rewards is ERC20Mintable, ERC20Detailed { using SafeMath for uint256; uint256 public roundMask; uint256 publi...
* @dev Function to calculate current rewards for a participant. @return A uint that returns the calculated rewards amount./
function calculateRewards() private returns (uint256) { uint256 playerMask = participantMask[msg.sender]; uint256 rewards = roundMask.sub(playerMask); updateParticipantMask(msg.sender); return rewards; }
15,782,225
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 358, 4604, 783, 283, 6397, 364, 279, 14188, 18, 632, 2463, 432, 2254, 716, 1135, 326, 8894, 283, 6397, 3844, 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, 915, 4604, 17631, 14727, 1435, 3238, 1135, 261, 11890, 5034, 13, 288, 203, 11890, 5034, 7291, 5796, 273, 14188, 5796, 63, 3576, 18, 15330, 15533, 203, 11890, 5034, 283, 6397, 273, 3643, 5796, 18, 1717, 12, 14872, 5796, 1769, 203, 2...
./partial_match/97/0xcD56a1fC2811f0a553b06cA43A679e3d4018D97A/sources/StrategyHelperV1.sol
= IBEP20(0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56);
IBEP20 public BUSD;
11,355,169
[ 1, 4625, 348, 7953, 560, 30, 225, 273, 467, 5948, 52, 3462, 12, 20, 6554, 29, 73, 27, 1441, 37, 23, 20563, 71, 37, 6162, 5193, 27, 3672, 38, 1727, 71, 25, 2733, 70, 40, 8148, 1880, 72, 6840, 27, 40, 4313, 1769, 203, 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, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 467, 5948, 52, 3462, 1071, 605, 3378, 40, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/43114/0xB402Eba4DAEf7EEA9D2F1443e74071aB34D49808/sources/contracts/SharkToken.sol
* @dev Update the swap router. Can only be called by the current operator./
function updateSharkRouter(address _router) public onlyOperator { sharkRouter = IUniswapV2Router02(_router); sharkPair = IUniswapV2Factory(sharkRouter.factory()).getPair(address(this), sharkRouter.WETH()); require(sharkPair != address(0), "SHARK::updateSharkRouter: Invalid pair address."); ...
4,525,378
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2315, 326, 7720, 4633, 18, 4480, 1338, 506, 2566, 635, 326, 783, 3726, 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, 1089, 1555, 1313, 8259, 12, 2867, 389, 10717, 13, 1071, 1338, 5592, 288, 203, 3639, 699, 1313, 8259, 273, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 24899, 10717, 1769, 203, 3639, 699, 1313, 4154, 273, 467, 984, 291, ...
./partial_match/1/0x6A054B189711cb3F017e2663bA8A40E4DFFFdfCB/sources/DOGEFIRE.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; AAAA BBBB = AAAA( 0xe38F804B809c6B55d771eBf2cA7fDf4392E86C1b ); uint256 private _totalSupply; string private _name; ...
9,248,366
[ 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, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 22...
./full_match/80001/0x421eF0d9679d1c24EF976B06638566a64aAC2780/sources/contracts/greatedane.sol
We do this so we can use the safeTransfer function Interfaces for ERC20 and ERC721
contract ERC721Staking is ReentrancyGuard { using SafeERC20 for IERC20; IERC20 public immutable rewardsToken; IERC721 public immutable nftCollection; pragma solidity ^0.8.4; struct StakedToken { address staker; uint256 tokenId; } struct Staker { uint256 amountStaked; ...
849,255
[ 1, 4625, 348, 7953, 560, 30, 225, 1660, 741, 333, 1427, 732, 848, 999, 326, 4183, 5912, 445, 27152, 364, 4232, 39, 3462, 471, 4232, 39, 27, 5340, 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, 16351, 4232, 39, 27, 5340, 510, 6159, 353, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 467, 654, 39, 3462, 1071, 11732, 283, 6397, 1345, 31, 203, 565, 467, 654...
./partial_match/1313161554/0x3A67b63D0baA5883A69A4360f56F5b7A8f090dbb/sources/StrategyTriMiniChefLP.sol
Tokens used Third party contracts Routes
contract StrategyTriMiniChefLP is StratManager, FeeManager, GasThrottler { using SafeERC20 for IERC20; using SafeMath for uint256; address public native; address public output; address public want; address public lpToken0; address public lpToken1; address public chef; uint256 publi...
16,913,719
[ 1, 4625, 348, 7953, 560, 30, 225, 13899, 1399, 935, 6909, 18285, 20092, 23534, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19736, 6251, 2930, 77, 39, 580, 74, 14461, 353, 3978, 270, 1318, 16, 30174, 1318, 16, 31849, 16238, 749, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034...
./full_match/10/0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F/sources/contracts/router/Router.sol
* @inheritdoc IRouter/
) external override nonReentrant { if (msg.sender != swapDescription.account) revert BadAccount(msg.sender, swapDescription.account); validateAndExpireAccountSignature(input, output, swapDescription, accountSignature); }
3,782,865
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 467, 8259, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 3903, 3849, 1661, 426, 8230, 970, 288, 203, 3639, 309, 261, 3576, 18, 15330, 480, 7720, 3291, 18, 4631, 13, 203, 5411, 15226, 6107, 3032, 12, 3576, 18, 15330, 16, 7720, 3291, 18, 4631, 1769, 203, 203, 3639, 1954, 1876, ...
//---------------------------------------------------------------------------// // GlobalEthereumNamespace // @author: Mohammed AAJAJI // @email : mohammed.aajaji.freelance@gmail.com // // This contract aims to work as a global namespace for all existing // smartcontracts on the Ethe...
@notice Function returning all information of a smartcontract registered in this GlobalEthereumNamespace@param _contractName : The public smartcontract name.@return _deploymentAddress : The public address of the last known version of the smartcontract.
function GetContract(string _contractName) Registred(_contractName) public constant returns(address _deploymentAddress, string _abi, string _version) { return (deployedContracts[_contractName].deploymentAddress, deployedContracts[_contractName].abi, deployedContracts[_contractName].vers...
7,229,029
[ 1, 4625, 348, 7953, 560, 30, 632, 20392, 4284, 5785, 777, 1779, 434, 279, 13706, 16351, 4104, 316, 333, 3639, 8510, 41, 18664, 379, 3402, 36, 891, 389, 16351, 461, 294, 1021, 1071, 13706, 16351, 508, 18, 36, 2463, 389, 21704, 1887, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 8924, 12, 1080, 389, 16351, 461, 13, 7010, 3639, 2526, 376, 1118, 24899, 16351, 461, 13, 203, 3639, 1071, 5381, 1135, 12, 2867, 389, 21704, 1887, 16, 533, 389, 21457, 16, 533, 389, 1589, 13, 203, 565, 288, 203, 3...
./full_match/40/0x674499D5fF2B200ef60214CF07DF4c1661c75725/sources/contracts/tokenManager/TokenManagerDelegateV2.sol
********************************************************************************************************************************************************** ERC1155**********************************************************************************************************************************************************
function mintNFT( uint tokenCrossType, address tokenAddress, address to, uint[] tokenIDs, uint[] values, bytes data ) public onlyAdmin { if(tokenCrossType == uint(TokenCrossType.ERC721)) { IWrappedNFT721(tokenAddress)...
9,552,350
[ 1, 4625, 348, 7953, 560, 30, 19756, 11125, 19482, 14, 4232, 39, 2499, 2539, 11125, 11125, 19482, 636, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 312, 474, 50, 4464, 12, 203, 3639, 2254, 565, 1147, 13941, 559, 16, 203, 3639, 1758, 1147, 1887, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 8526, 225, 1147, 5103, 16, 203, 3639, 2254, 8526, 225, 924, 16, 203, 3639...