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
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "hardhat/console.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/cryptography/draft...
solhint-disable-next-line func-name-mixedcase
function __TokenageERC721Permit_init_unchained() internal onlyInitializing { _PERMIT_TYPEHASH = keccak256( "TokenagePermitERC721(address >From,address >To,uint256 >Token ID,uint256 >Nonce,uint256 >Deadline)" ); }
15,834,004
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 1326, 17, 529, 17, 19562, 3593, 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, 1001, 1345, 410, 654, 39, 27, 5340, 9123, 305, 67, 2738, 67, 4384, 8707, 1435, 2713, 1338, 29782, 288, 203, 3639, 389, 3194, 6068, 67, 2399, 15920, 273, 417, 24410, 581, 5034, 12, 203, 5411, 315, 1345, 410, 9123, 305, ...
./full_match/13337/0xa5e2C4E3f7B3CB1EbEd7Aa7D7315aB49Dc61db26/sources/project:/contracts/photon/ScheduledVestingContract.sol
VestingSchedule[] memory _schedules = new VestingSchedule[](amount.length); allow initial allocation to be withdrawn immediately
constructor(address owner, address tokenAddress, uint256 startTime, uint192[] memory amount, uint32[] memory startMonths, uint32[] memory endMonths) { token = IERC20(tokenAddress); for (uint256 i = 0; i < amount.length; i++) { uint32 start = uint32(startTime + startMonths[i] * 2630160); ...
13,235,990
[ 1, 58, 10100, 6061, 8526, 3778, 389, 87, 15511, 273, 394, 776, 10100, 6061, 8526, 12, 8949, 18, 2469, 1769, 1699, 2172, 13481, 358, 506, 598, 9446, 82, 7636, 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, 3885, 12, 2867, 3410, 16, 1758, 1147, 1887, 16, 2254, 5034, 8657, 16, 2254, 15561, 8526, 3778, 3844, 16, 2254, 1578, 8526, 3778, 787, 19749, 16, 2254, 1578, 8526, 3778, 679, 19749, 13, 288, 203, 3639, 1147, 273, 467, 654, 39...
./full_match/42/0x9748461D4f94D04637F8995c0bE9B82530a90280/sources/contracts/FundMe.sol
require(getConversionRate(msg.value) >= minimumUsd, "You needs spends more ETH!"); Map the address calling this function with the amount of ether they sent
function fund() public payable { uint256 minimumUsd = 50 * 10 ** 18; }
16,234,298
[ 1, 6528, 12, 588, 6814, 4727, 12, 3576, 18, 1132, 13, 1545, 5224, 3477, 72, 16, 315, 6225, 4260, 17571, 87, 1898, 512, 2455, 4442, 1769, 1635, 326, 1758, 4440, 333, 445, 598, 326, 3844, 434, 225, 2437, 2898, 3271, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 284, 1074, 1435, 1071, 8843, 429, 225, 288, 203, 540, 203, 3639, 2254, 5034, 5224, 3477, 72, 273, 6437, 380, 1728, 2826, 6549, 31, 203, 540, 203, 540, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -10...
pragma solidity 0.4.24; pragma experimental "v0.5.0"; /* Copyright 2018 dYdX 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/LICENS...
============ Events ============ ============ State Variables ============ Mapping from an address to other addresses that are approved to be positions closers Mapping from an address to other addresses that are approved to be payoutRecipients ============ Constructor ============ ============ Token-Holder functions =...
{ using SafeMath for uint256; event PositionTokenized( bytes32 indexed positionId, address indexed owner ); event PositionUntokenized( bytes32 indexed positionId, address indexed owner, address ownershipSentTo ); event CloserApproval( address i...
7,913,269
[ 1, 14468, 9043, 422, 1432, 631, 422, 1432, 631, 3287, 23536, 422, 1432, 631, 9408, 628, 392, 1758, 358, 1308, 6138, 716, 854, 20412, 358, 506, 6865, 1219, 5944, 9408, 628, 392, 1758, 358, 1308, 6138, 716, 854, 20412, 358, 506, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 203, 565, 871, 11010, 1345, 1235, 12, 203, 3639, 1731, 1578, 8808, 1754, 548, 16, 203, 3639, 1758, 8808, 3410, 203, 565, 11272, 203, 203, 565, 871, 11010, 57, 496, ...
pragma solidity ^0.4.25; /******************************************************************************* * * Copyright (c) 2019 Decentralization Authority MDAO. * Released under the MIT License. * * Minado - Crypto Token Mining & Forging Community * * Minado has been optimized for mining ERC918-compa...
* Bytes-to-Address Converts bytes into type address./
function _bytesToAddress(bytes _address) private pure returns (address) { uint160 m = 0; uint160 b = 0; for (uint8 i = 0; i < 20; i++) { m *= 256; b = uint160(_address[i]); m += (b); } return address(m); }
902,675
[ 1, 2160, 17, 869, 17, 1887, 20377, 1731, 1368, 618, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 3890, 774, 1887, 12, 3890, 389, 2867, 13, 3238, 16618, 1135, 261, 2867, 13, 288, 203, 3639, 2254, 16874, 312, 273, 374, 31, 203, 3639, 2254, 16874, 324, 273, 374, 31, 203, 203, 3639, 364, 261, 11890, 28, 277, 273...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.0; /** * @title secretThoughts */ contract secretThoughts { // global public uint256 public globalThoughtID; uint256 internal upVoteSpecialLimit; uint256 internal downVoteSpecialLimit; address internal admin; // constructor cons...
block thoughts by admin
function blockThought(uint256 _thoughtID) virtual isAdmin public { thoughtData[globalThoughtID].isBlocked = true; emit eThoughtBlocked( _thoughtID, msg.sender ); }
14,049,062
[ 1, 2629, 286, 83, 9540, 87, 635, 3981, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1203, 1315, 83, 9540, 12, 11890, 5034, 389, 451, 83, 9540, 734, 13, 5024, 23467, 1071, 288, 203, 3639, 286, 83, 9540, 751, 63, 6347, 1315, 83, 9540, 734, 8009, 291, 23722, 273, 638, 31, 203, 3639, 3626, 425, 1315, 83,...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.6.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Lockable.sol"; /** * @title A contract to track a whitelist of addresses. */ contract AddressWhitelist is Ownable, Lockable { enum Status { None, In, Out } mapping(address => Stat...
* @notice Proposes a new funding rate. Proposer receives a reward if correct. @param rate funding rate being proposed. @param timestamp time at which the funding rate was computed./ Timestamp must be after the last funding rate update time, within the last 30 minutes. Set the proposal time in order to allow this contra...
function proposeNewRate(FixedPoint.Signed memory rate, uint256 timestamp) external fees() nonReentrant() returns (FixedPoint.Unsigned memory totalBond) { require(fundingRate.proposalTime == 0, "Proposal in progress"); _validateFundingRate(rate); uint256 c...
591,018
[ 1, 626, 10522, 279, 394, 22058, 4993, 18, 1186, 5607, 17024, 279, 19890, 309, 3434, 18, 225, 4993, 22058, 4993, 3832, 20084, 18, 225, 2858, 813, 622, 1492, 326, 22058, 4993, 1703, 8470, 18, 19, 8159, 1297, 506, 1839, 326, 1142, 22058,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 450, 4150, 1908, 4727, 12, 7505, 2148, 18, 12294, 3778, 4993, 16, 2254, 5034, 2858, 13, 203, 3639, 3903, 203, 3639, 1656, 281, 1435, 203, 3639, 1661, 426, 8230, 970, 1435, 203, 3639, 1135, 261, 7505, 2148, 18, 13290, 37...
pragma solidity 0.4.24; // File: contracts/ownership/Ownable.sol /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipT...
Reorg all tokens array
uint256 tokenIndex = allTokensIndex[_tokenId];
1,018,258
[ 1, 426, 3341, 777, 2430, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 11890, 5034, 1147, 1016, 273, 777, 5157, 1016, 63, 67, 2316, 548, 15533, 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, -1...
//SPDX-License-Identifier: UNLICENSED //Check before deployment: Hardcoded token contract address, pair address /* Generic presale contract for ERC20 token. Important: Set gas limit to 210000 if sending ether directly! It reserves much but consumes max 80%. Presale allows buying specified ERC20 for rate mentioned in ...
Look for revert reason and bubble it up if present The easiest way to bubble the revert reason is using memory via assembly solhint-disable-next-line no-inline-assembly
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; if (returndata.length > 0) { assembly { let returndata_size := mload(returndata) ...
321,184
[ 1, 9794, 364, 15226, 3971, 471, 21577, 518, 731, 309, 3430, 1021, 7264, 77, 395, 4031, 358, 21577, 326, 15226, 3971, 353, 1450, 3778, 3970, 19931, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 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, 0, 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, 8705, 1477, 1253, 12, 6430, 2216, 16, 1731, 3778, 327, 892, 16, 533, 3778, 9324, 13, 3238, 16618, 1135, 12, 3890, 3778, 13, 288, 203, 3639, 309, 261, 4768, 13, 288, 203, 5411, 327, 327, 892, 31, 203, 5411, 309, ...
./full_match/80001/0x271e7Ba38970356FBbE4b57912b76325F3C8731e/sources/contracts/DoubleDiceProtocol.sol
* @notice For a VF that has been resolved with winners and winner-profits, claim the share of the total ERC-20 winner-profits corresponding to the ERC-1155 balances held by the calling account on the specified `tokenIds`. If a tokenId is included multiple times, it will count only once. @param vfId The VF id. This VF m...
{ VirtualFloor storage vf = _vfs[vfId]; function claimPayouts(uint256 vfId, uint256[] calldata tokenIds) public whenNotPaused { VirtualFloorState state = vf.state(); if (!(state == VirtualFloorState.Claimable_Payouts)) revert WrongVirtualFloorState(state);...
5,639,124
[ 1, 1290, 279, 776, 42, 716, 711, 2118, 4640, 598, 5657, 9646, 471, 5657, 1224, 17, 16121, 1282, 16, 7516, 326, 7433, 434, 326, 2078, 4232, 39, 17, 3462, 5657, 1224, 17, 16121, 1282, 4656, 358, 326, 4232, 39, 17, 2499, 2539, 324, 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, 288, 203, 3639, 7269, 42, 5807, 2502, 28902, 273, 389, 90, 2556, 63, 90, 74, 548, 15533, 203, 565, 445, 7516, 52, 2012, 87, 12, 11890, 5034, 28902, 548, 16, 2254, 5034, 8526, 745, 892, 1147, 2673, 13, 203, 3639, 1071, 203,...
// SPDX-License-Identifier: MIT /* MIT License Copyright (c) 2021 Paladin10 */ pragma solidity ^0.8.0; interface IFeature { function featureByIndex (uint256 id, uint256 fi) external view returns (uint256 what, bytes32 fHash); } interface IERC721 { function totalSupply() external returns (uint256); functi...
hash = feature hashfirst is the base form of the creaturenext is the seed idseed range is a distribution - 50% < 100; 90% < 1000get seed based upon range
function lifeform (bytes32 hash) public pure returns (uint256 base, uint256 seed) { uint256 bp = uint256(hash) % 100; base = bp < 10 ? 0 : bp < 35 ? 1 : bp < 60 ? 2 : bp < 80 ? 3 : 4; uint256 rp = uint256(keccak256(abi.encode(hash, "seed-distribution"))) % 100; ...
1,035,146
[ 1, 2816, 273, 2572, 1651, 3645, 353, 326, 1026, 646, 434, 326, 1519, 1231, 4285, 353, 326, 5009, 612, 12407, 1048, 353, 279, 7006, 300, 6437, 9, 411, 2130, 31, 8566, 9, 411, 4336, 588, 5009, 2511, 12318, 1048, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 17140, 687, 261, 3890, 1578, 1651, 13, 203, 3639, 1071, 16618, 1135, 261, 11890, 5034, 1026, 16, 2254, 5034, 5009, 13, 7010, 565, 288, 203, 3639, 2254, 5034, 9107, 273, 2254, 5034, 12, 2816, 13, 738, 2130, 31, 203, 3639...
./partial_match/1/0xa1A7a95d7AD043b356D72b7c5fBE0eF053ba8c13/sources/contracts/Comptroller.sol
hypothetical account shortfall below collateral requirements)/ For each asset the account is in Read the balances and exchange rate from the slToken Calculate effects of interacting with slTokenModify redeem effect sumBorrowPlusEffects += tokensToDenom * redeemTokens
function getHypotheticalAccountLiquidityInternal( address account, SLToken slTokenModify, uint redeemTokens, uint borrowAmount) internal view returns (Error, uint, uint) { uint oErr; MathError mErr; SLToken[] memory assets = accountAssets[account]; f...
11,022,808
[ 1, 76, 879, 10370, 278, 1706, 2236, 3025, 25602, 5712, 4508, 2045, 287, 8433, 13176, 2457, 1517, 3310, 326, 2236, 353, 316, 2720, 326, 324, 26488, 471, 7829, 4993, 628, 326, 2020, 1345, 9029, 16605, 434, 16592, 310, 598, 2020, 1345, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7628, 879, 10370, 278, 1706, 3032, 48, 18988, 24237, 3061, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 348, 48, 1345, 2020, 1345, 11047, 16, 203, 3639, 2254, 283, 24903, 5157, 16, 203, 3639, 2254, 29759, 6275, 13, 2713, 1...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the curren...
* @dev initializes an upgradeable proxy managed by `initAdmin`, backed by the implementation at `logic`, and optionally initialized with `data` as explained in {ERC1967Proxy-constructor}/ still store it to work with EIP-1967
) payable ERC1967Proxy(logic, data) validAddress(initAdmin) { _admin = initAdmin; _changeAdmin(initAdmin); }
285,250
[ 1, 6769, 3128, 392, 8400, 429, 2889, 7016, 635, 1375, 2738, 4446, 9191, 20732, 635, 326, 4471, 622, 1375, 28339, 9191, 471, 8771, 6454, 598, 1375, 892, 68, 487, 19765, 329, 316, 288, 654, 39, 3657, 9599, 3886, 17, 12316, 4004, 4859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 8843, 429, 4232, 39, 3657, 9599, 3886, 12, 28339, 16, 501, 13, 923, 1887, 12, 2738, 4446, 13, 288, 203, 3639, 389, 3666, 273, 1208, 4446, 31, 203, 203, 3639, 389, 3427, 4446, 12, 2738, 4446, 1769, 203, 565, 289, 203, ...
./full_match/1/0xE13c0Ec78D283eb8Cca72Edd018a9c13AD0E002a/sources/MasterChefMod.sol
@notice Updates rewards for all pools by adding pending rewards. Can spend a lot of gas.
function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { _updatePool(pid); } }
8,397,039
[ 1, 5121, 283, 6397, 364, 777, 16000, 635, 6534, 4634, 283, 6397, 18, 4480, 17571, 279, 17417, 434, 16189, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 8039, 1891, 16639, 1435, 1071, 288, 203, 565, 2254, 5034, 769, 273, 2845, 966, 18, 2469, 31, 203, 565, 364, 261, 11890, 5034, 4231, 273, 374, 31, 4231, 411, 769, 31, 965, 6610, 13, 288, 203, 1377, 389, 2725, 2864, 12,...
// SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2018-2021 Crossbar.io Technologies GmbH and contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
* Check if the given address is currently a maintainer. @param account The account to check. @return `true` if the account is maintainer, otherwise `false`./
function isMaintainer (address account) public view returns (bool) { return hasRole(MAINTAINER_ROLE, account); }
5,492,627
[ 1, 1564, 309, 326, 864, 1758, 353, 4551, 279, 11566, 1521, 18, 225, 2236, 1021, 2236, 358, 866, 18, 327, 1375, 3767, 68, 309, 326, 2236, 353, 11566, 1521, 16, 3541, 1375, 5743, 8338, 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, 15707, 1598, 1521, 261, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 28335, 12, 5535, 3217, 16843, 67, 16256, 16, 2236, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100...
./partial_match/4/0xC3174657977dc03360499Df3bc51f7e7a2a49daF/sources/DiscoverSpaceX.sol
FBTToken with Governance.
contract FBTToken is ERC20("FBT", "FBT"), Ownable { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } }
8,628,841
[ 1, 22201, 56, 1345, 598, 611, 1643, 82, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 38, 56, 1345, 353, 4232, 39, 3462, 2932, 22201, 56, 3113, 315, 22201, 56, 6, 3631, 14223, 6914, 288, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 389,...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.7.3; pragma experimental ABIEncoderV2; import "./binary.sol"; import "./keccak512.sol"; import "./Prime.sol"; import "@openzeppelin/contracts-upgradeable/cryptography/MerkleProofUpgradeable.sol"; import "./MerkelRoot.sol"; // npm run merkelInit contract Ethash...
fnvHash mixes in data into mix using the ethash fnv method. fnv = return ((v1*0x01000193) ^ v2) & 0xFFFFFFFF; ---- 1 ---- 2 ---- 3 ---- 4 ---- 5 ---- 6 ---- 7 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 2 ---- 3 ---- 4 ---- 5 ---- 6 ---- 7 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1 ---- 1...
function fnvHash32(uint32[] memory mix, uint32[] memory data) internal pure { assembly { let mixOffset := add(mix, 0x20) let mixValue := mload(mixOffset) let dataOffset := add(data, 0x20) let dataValue := mload(dataOffset) let ...
7,281,369
[ 1, 4293, 90, 2310, 6843, 281, 316, 501, 1368, 6843, 1450, 326, 13750, 961, 2295, 90, 707, 18, 2295, 90, 273, 327, 14015, 90, 2163, 92, 1611, 13304, 11180, 13, 3602, 331, 22, 13, 473, 374, 28949, 31, 27927, 404, 27927, 576, 27927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2295, 90, 2310, 1578, 12, 11890, 1578, 8526, 3778, 6843, 16, 2254, 1578, 8526, 3778, 501, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 565, 288, 203, 3639, 19931, 288, 203, 5411, 2231, 6843, 2335, 519, 527, 12, 14860, 16...
pragma solidity 0.5.6; // --------------------------------------------------------------------------- // Message_Transport // --------------------------------------------------------------------------- //import './SafeMath.sol'; /* Overflow protected math functions */ contract SafeMath { /** construct...
------------------------------------------------------------------------- MessageTransport constructor -------------------------------------------------------------------------
constructor(address _tokenAddr) public { tokenAddr = _tokenAddr; }
14,043,791
[ 1, 5802, 8567, 225, 2350, 6568, 3885, 8879, 788, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 12, 2867, 389, 2316, 3178, 13, 1071, 288, 203, 565, 1147, 3178, 273, 389, 2316, 3178, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
/** *Submitted for verification at Etherscan.io on 2021-02-03 */ // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in...
overflow is desired
uint32 timeElapsed = blockTimestamp - data._timestamp;
6,752,228
[ 1, 11512, 353, 6049, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1578, 813, 28827, 273, 1203, 4921, 300, 501, 6315, 5508, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); ...
* 彡(゚)(゚) @title AidEvaCoin @author AidEvaCoin @dev AidEvaCoin is an ERC223 Token with ERC20 functions and events Fully backward compatible with ERC20/
contract AidEvaCoin is ERC223, Ownable { using SafeMath for uint256; string public name = "AidEvaCoin"; string public symbol = "AIVA"; uint8 public decimals = 8; uint256 public totalSupply = 30e9 * 1e18; uint256 public distributeAmount = 0; bool public mintingFinished = false; mapp...
14,454,065
[ 1, 166, 126, 99, 12, 176, 127, 258, 21433, 176, 127, 258, 13, 225, 432, 350, 41, 15304, 27055, 225, 432, 350, 41, 15304, 27055, 225, 432, 350, 41, 15304, 27055, 353, 392, 4232, 39, 3787, 23, 3155, 598, 4232, 39, 3462, 4186, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 432, 350, 41, 15304, 27055, 353, 4232, 39, 3787, 23, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 1071, 508, 273, 315, 37, 350, 41, 15304, 27055, 14432, 203, 565, 533, 1071, ...
pragma solidity ^0.5.16; import "../interfaces/IBlockRewardHbbft.sol"; import "../interfaces/IStakingHbbft.sol"; import "../interfaces/IValidatorSetHbbft.sol"; import "../upgradeability/UpgradeableOwned.sol"; import "../libs/SafeMath.sol"; /// @dev Implements staking and withdrawal logic. contract StakingHbbftBase i...
@dev Notifies hbbft staking contract that a validator asociated with the given `_stakingAddress` became available again and can be put on to the list of available nodes again.
{ function setCandidateMinStake(uint256 _minStake) external onlyOwner } function setDelegatorMinStake(uint256 _minStake) external onlyOwner } function notifyKeyGenFailed() public onlyValidatorSetContract } function notifyNetworkOfftimeDetected(uint256 detected...
927,122
[ 1, 1248, 5032, 366, 9897, 1222, 384, 6159, 6835, 716, 279, 4213, 487, 1882, 690, 598, 326, 864, 1375, 67, 334, 6159, 1887, 68, 506, 71, 339, 2319, 3382, 471, 848, 506, 1378, 603, 358, 326, 666, 434, 2319, 2199, 3382, 18, 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, 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, 565, 445, 11440, 8824, 2930, 510, 911, 12, 11890, 5034, 389, 1154, 510, 911, 13, 203, 565, 3903, 203, 565, 1338, 5541, 203, 565, 289, 203, 203, 565, 445, 444, 15608, 639, 2930, 510, 911, 12, 11890, 5034, 389, 115...
contract owned { address public owner; function owned() { owner = msg.sender; } modifier onlyOwner { if (msg.sender != owner) throw; _; } function transferOwnership(address newOwner) onlyOwner { owner = newOwner; } } contract tokenRecipient { function receiveApproval...
Check if user has manually recovered ETH
if (!hasClaimedEthWhenFail[currentParticipantAddress]) {
1,752,702
[ 1, 1564, 309, 729, 711, 10036, 24616, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 309, 16051, 5332, 9762, 329, 41, 451, 9434, 3754, 63, 2972, 22540, 1887, 5717, 288, 1171, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol"; import '@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol'; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20SnapshotUpgradeable.so...
Swap all in one call
uint balanceInAVAX = address(this).balance;
5,382,529
[ 1, 12521, 777, 316, 1245, 745, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 11013, 382, 5856, 2501, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x1201FAa7258A48b820619dD57Cd8FdEb25D49b2c/sources/contracts/managed/vendor/BasePool.sol
* @notice "Dry run" `onExitPool`. @dev Returns the amount of BPT that would be burned from `sender` if the `onExitPool` hook were called by the Vault with the same arguments, along with the number of tokens `recipient` would receive. This function is not meant to be called directly, but rather from a helper contract th...
function queryExit( bytes32, address sender, address, uint256[] memory balances, uint256, uint256, bytes memory userData ) external override returns (uint256 bptIn, uint256[] memory amountsOut) { _queryAction(sender, balances, userData, _onExitPool...
4,227,948
[ 1, 6, 40, 1176, 1086, 6, 1375, 265, 6767, 2864, 8338, 225, 2860, 326, 3844, 434, 605, 1856, 716, 4102, 506, 18305, 329, 628, 1375, 15330, 68, 309, 326, 1375, 265, 6767, 2864, 68, 3953, 4591, 2566, 635, 326, 17329, 598, 326, 1967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 843, 6767, 12, 203, 3639, 1731, 1578, 16, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 16, 203, 3639, 2254, 5034, 8526, 3778, 324, 26488, 16, 203, 3639, 2254, 5034, 16, 203, 3639, 2254, 5034, 16, 203, 3639, 1731, 3778, ...
pragma solidity ^0.4.19; pragma experimental ABIEncoderV2; library alt_bn128 { uint256 public constant q = 21888242871839275222246405745257275088548364400416034343698204186575808495617; // curve order uint256 public constant n = 21888242871839275222246405745257275088696311157297823662689037894645226208583; //...
Verifying one at a time. Not batched
contract RangeProofVerifier{ function verify(uint256[10] coords, uint256[5] scalars, uint256[4] ls_coords, uint256[4] rs_coords) public view returns(bool); }
1,776,685
[ 1, 8097, 310, 1245, 622, 279, 813, 18, 2288, 2581, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8086, 20439, 17758, 95, 203, 565, 445, 3929, 12, 11890, 5034, 63, 2163, 65, 6074, 16, 2254, 5034, 63, 25, 65, 23743, 16, 2254, 5034, 63, 24, 65, 7180, 67, 9076, 16, 2254, 5034, 63, 24, 65, 3597, 67, 9076, 13, 1071, 147...
/* Copyright 2019 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
Map of registryInfo identified by key registryId
mapping (bytes32 => RegistryInfo) private registryMap;
931,536
[ 1, 863, 434, 4023, 966, 9283, 635, 498, 4023, 548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 3890, 1578, 516, 5438, 966, 13, 225, 3238, 4023, 863, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; /* * ZETHR PRESENTS: SLOTS * * Written August 2018 by the Zethr team for zethr.io. * * Code framework written by Norsefire. * EV calculations written by TropicalRogue. * Audit and edits written by Klob. * Multiroll framework written by Etherguy. * * Rolling Odds: * 49.31% Lose / 50.69% Win ...
Is betting allowed? (Administrative function, in the event of unforeseen bugs)
bool public gameActive;
10,460,886
[ 1, 2520, 2701, 1787, 2935, 35, 261, 4446, 3337, 1535, 445, 16, 316, 326, 871, 434, 640, 1405, 15156, 22398, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 1426, 1071, 7920, 3896, 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, ...
./full_match/3/0xcd1A015321B183cB5Ea046a4C80dd6E88B89F3b5/sources/browser/DePayPaymentProcessorV1.sol
Executes processors in the order provided. Calls itself's _pay function if the payment processor contract itself is part of processors.
function _process( address[] calldata path, uint[] calldata amounts, address[] calldata addresses, address[] calldata processors, string[] calldata data ) internal { for (uint i = 0; i < processors.length; i++) { if(processors[i] == address(this)) { _pay(payable(addresses[addre...
8,162,621
[ 1, 9763, 13399, 316, 326, 1353, 2112, 18, 23665, 6174, 1807, 389, 10239, 445, 309, 326, 5184, 6659, 6835, 6174, 353, 1087, 434, 13399, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2567, 12, 203, 565, 1758, 8526, 745, 892, 589, 16, 203, 565, 2254, 8526, 745, 892, 30980, 16, 203, 565, 1758, 8526, 745, 892, 6138, 16, 203, 565, 1758, 8526, 745, 892, 13399, 16, 203, 565, 533, 8526, 745, 892, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; /// @author Alchemy Team /// @title Alchemy /// @notice The Alchemy Governance Token contract ALCH { /// @notice EIP-20 token name for this token string public constan...
@notice EIP-20 token name for this token @notice EIP-20 token symbol for this token @notice EIP-20 token decimals for this token @notice Address which may mint new tokens @notice The timestamp after which minting may occur @notice Cap on the percentage of totalSupply that can be minted at each mint @notice Minimum tim...
struct Checkpoint { uint32 fromBlock; uint96 votes; } mapping(address => mapping(uint32 => Checkpoint)) public checkpoints; mapping(address => uint32) public numCheckpoints; bytes32 public constant DOMAIN_TYPEHASH = keccak256( "EIP712Domain(string name,uint256 chainId,addr...
1,075,236
[ 1, 41, 2579, 17, 3462, 1147, 508, 364, 333, 1147, 225, 512, 2579, 17, 3462, 1147, 3273, 364, 333, 1147, 225, 512, 2579, 17, 3462, 1147, 15105, 364, 333, 1147, 225, 5267, 1492, 2026, 312, 474, 394, 2430, 225, 1021, 2858, 1839, 1492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1958, 25569, 288, 203, 3639, 2254, 1578, 628, 1768, 31, 203, 3639, 2254, 10525, 19588, 31, 203, 565, 289, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 11890, 1578, 516, 25569, 3719, 1071, 26402, 31, 203, 203, 565, 2874, 12,...
./full_match/5/0x6bdB254F033d597EEB1caee9548F7C88aBE54D35/sources/contracts/CrowdFunding.sol
(bool sent, ) = payable(campaign.owner).call{value: amount}(""); if(sent) { campaign.amountCollected = campaign.amountCollected + amount; }
function donateToCampaign(uint256 _id) public payable { uint256 amount = msg.value; Campaign storage campaign = campaigns[_id]; campaign.donators.push(msg.sender); campaign.donations.push(amount); campaign.amountCollected = campaign.amountCollected + amount; }
7,090,359
[ 1, 12, 6430, 3271, 16, 262, 273, 8843, 429, 12, 14608, 18, 8443, 2934, 1991, 95, 1132, 30, 3844, 97, 2932, 8863, 309, 12, 7569, 13, 288, 377, 8965, 18, 8949, 10808, 329, 273, 8965, 18, 8949, 10808, 329, 397, 3844, 31, 289, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2727, 340, 774, 13432, 12, 11890, 5034, 389, 350, 13, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 203, 3639, 17820, 2502, 8965, 273, 8965, 87, 63, 67, 350, 15533, 203, 203, 3639, 8...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import '@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol'; abstract contract OwnerOperatorControl is AccessControlUpgradeable { bytes32 public constant OPERATOR_ROLE = keccak256('OPERATOR_ROLE'); function __OwnerOperatorCo...
* @dev Function to change groups uris Requirements: - the caller must have the `DEFAULT_ADMIN_ROLE`./
function setGroupURIBatch(uint256[] memory groupIds, string[] memory uris) external onlyOwner { _setGroupURIBatch(groupIds, uris); }
6,187,291
[ 1, 2083, 358, 2549, 3252, 21476, 29076, 30, 300, 326, 4894, 1297, 1240, 326, 1375, 5280, 67, 15468, 67, 16256, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 1114, 3098, 4497, 12, 11890, 5034, 8526, 3778, 1041, 2673, 16, 533, 8526, 3778, 21476, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 565, 288, 203, 3639, 389, 542, 1114, 3098, 4497, 12, 1655, 2673, 16, 21476, 17...
pragma solidity ^0.4.24; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABL...
Voting threshold, starts when there are at least 4 registered airlines
uint M =2;
14,078,343
[ 1, 58, 17128, 5573, 16, 2542, 1347, 1915, 854, 622, 4520, 1059, 4104, 23350, 3548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 490, 273, 22, 31, 4202, 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, -...
./partial_match/4/0xC6b159c07993c13037f52aC89344Dcb96Ae10720/sources/PriceConsumerV3.sol
Get USDC price from chain link Aggregator Get Asset Price from chain link Aggregator Convert to grams Calculate the Asset to be transferred
function toAsset(uint256 value) public view returns(uint256 asset) { uint256 USDCValue = value. mul(uint256(PriceConsumerV3.getLatestPriceUSDC())); uint256 backed = uint256( PriceConsumerV3.getLatestPriceXAU()); backed = backed.mul(2835).div...
8,600,070
[ 1, 967, 11836, 5528, 6205, 628, 2687, 1692, 10594, 639, 968, 10494, 20137, 628, 2687, 1692, 10594, 639, 4037, 358, 24663, 87, 9029, 326, 10494, 358, 506, 906, 4193, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 358, 6672, 12, 11890, 5034, 460, 13, 7010, 3639, 1071, 7010, 3639, 1476, 7010, 3639, 1135, 12, 11890, 5034, 3310, 13, 288, 203, 3639, 2254, 5034, 11836, 5528, 620, 273, 460, 18, 203, 5411, 14064, 12, 11890, 5034, 12, 51...
./full_match/421611/0x3dDDBC13056E3d0C0E5Fc18Ad89D2e39E6FA33ac/sources/contracts/testMerkle.sol
@notice owner withdraw the rest token only owner
function claimRestTokens(address to ) public returns (bool) { require(msg.sender == owner); require(IERC20(token).balanceOf(address(this)) >= 0); require(IERC20(token).transfer(to, IERC20(token).balanceOf(address(this)))); return true; }
13,221,497
[ 1, 8443, 598, 9446, 326, 3127, 1147, 1338, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 5188, 5157, 12, 2867, 358, 262, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 1769, 203, 3639, 2583, 12, 45, 654, 39, 3462, 12, 2316, 2934, 12296, 951, 12, 2867, 12, 2211, 3719...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma experimental ABIEncoderV2; import { IERC20 } from "./Interfaces.sol"; library DataTypes { // refer to the whitepaper, section 1.1 basic concepts for a formal description of these properties. struct ReserveData { //stores the reserve configuration ...
* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20...
library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, a...
12,648,430
[ 1, 9890, 654, 39, 3462, 225, 4266, 10422, 6740, 4232, 39, 3462, 5295, 716, 604, 603, 5166, 261, 13723, 326, 1147, 6835, 1135, 629, 2934, 13899, 716, 327, 1158, 460, 261, 464, 3560, 15226, 578, 604, 603, 5166, 13, 854, 2546, 3260, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 654, 39, 3462, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 5267, 364, 1758, 31, 203, 203, 225, 445, 4183, 5912, 12, 203, 565, 467, 654, 39, 3462, 1147, 16, 203, 565, 1758, 358, 16, 203,...
// Permit pattern copied from BAL https://etherscan.io/address/0xba100000625a3754423978a60c9317c58a424e3d#code pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract ERC20Permit is ERC20 { string public constant version = "1"; bytes32 public immutable DOMAIN_SEPARATOR; // kecca...
Idle tokens should already be in this contract
function _deployVesting( address recipient, uint256 amount, uint256 beginVesting, uint256 cliff, uint256 endVesting ) internal returns (address vester) { require(recipient != address(0), 'IS_0'); require(amount != 0, 'IS_0'); uint256 timestamp = block.timestamp; require(cli...
491,687
[ 1, 13834, 2430, 1410, 1818, 506, 316, 333, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 12411, 58, 10100, 12, 203, 1377, 1758, 8027, 16, 2254, 5034, 3844, 16, 203, 1377, 2254, 5034, 2376, 58, 10100, 16, 2254, 5034, 927, 3048, 16, 2254, 5034, 679, 58, 10100, 203, 565, 262, 2713, 1135, 261, 2867, 331, ...
/** Copyright (c) 2018 Productivist Productivist.com / ERC20 token mechanism Version 1.0 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including...
* @dev Decrease the amount of tokens that an owner allowed to a spender. approve should be called when allowed[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol @param _spender The address which will spen...
function decreaseApproval(address _spender, uint _subtractedValue) public whenNotPaused returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } em...
12,072,756
[ 1, 23326, 448, 326, 3844, 434, 2430, 716, 392, 3410, 2935, 358, 279, 17571, 264, 18, 6617, 537, 1410, 506, 2566, 1347, 2935, 63, 67, 87, 1302, 264, 65, 422, 374, 18, 2974, 15267, 2935, 460, 353, 7844, 358, 999, 333, 445, 358, 4543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20467, 23461, 12, 2867, 389, 87, 1302, 264, 16, 2254, 389, 1717, 1575, 329, 620, 13, 1071, 1347, 1248, 28590, 1135, 261, 6430, 13, 288, 203, 565, 2254, 11144, 273, 2935, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 1...
/** *Submitted for verification at Etherscan.io on 2022-04-06 */ // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/E...
File: contracts/extensions/ERC721ABurnable.sol Creator: Chiru Labs* @title ERC721A Burnable Token @dev ERC721A Token that can be irreversibly burned (destroyed)./
abstract contract ERC721ABurnable is Context, ERC721A { function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quanti...
15,454,296
[ 1, 812, 30, 20092, 19, 9489, 19, 654, 39, 27, 5340, 2090, 321, 429, 18, 18281, 29525, 30, 1680, 481, 89, 511, 5113, 225, 4232, 39, 27, 5340, 37, 605, 321, 429, 3155, 225, 4232, 39, 27, 5340, 37, 3155, 716, 848, 506, 9482, 266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 4232, 39, 27, 5340, 2090, 321, 429, 353, 1772, 16, 4232, 39, 27, 5340, 37, 288, 203, 203, 565, 445, 389, 5771, 1345, 1429, 18881, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 787, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount o...
@title Hotpot V3 控制合约接口定义. @notice 基金经理和治理均需通过控制合约进行操作.
interface IHotPotV3FundController is IManagerActions, IGovernanceActions, IControllerState, IControllerEvents { function harvest(address token, uint amount) external returns(uint burned); pragma solidity >=0.5.0; }
416,974
[ 1, 25270, 13130, 776, 23, 225, 167, 241, 105, 166, 235, 119, 166, 243, 235, 168, 123, 104, 167, 241, 103, 166, 242, 101, 166, 111, 253, 165, 122, 236, 18, 225, 225, 166, 258, 123, 170, 234, 244, 168, 124, 242, 168, 243, 233, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 5831, 467, 25270, 18411, 58, 23, 42, 1074, 2933, 353, 467, 1318, 6100, 16, 13102, 1643, 82, 1359, 6100, 16, 467, 2933, 1119, 16, 467, 2933, 3783, 288, 203, 565, 445, 17895, 26923, 12, 2867, 1147, 16, 2254, 3844, 13, 3903, 1135, ...
//Audit report available at https://www.tkd-coop.com/files/audit.pdf //SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //Control who can access various functions. contract AccessControl { address payable public creatorAddress; uint16 public totalDirectors = 0; mapping(address => bool) public...
Control who can access various functions.
contract AccessControl { address payable public creatorAddress; uint16 public totalDirectors = 0; mapping(address => bool) public directors; pragma solidity ^0.8.0; modifier onlyCREATOR() { require( msg.sender == creatorAddress, "You are not the creator of the contract....
13,115,299
[ 1, 3367, 10354, 848, 2006, 11191, 4186, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 24349, 288, 203, 565, 1758, 8843, 429, 1071, 11784, 1887, 31, 203, 565, 2254, 2313, 1071, 2078, 5368, 1383, 273, 374, 31, 203, 565, 2874, 12, 2867, 516, 1426, 13, 1071, 2657, 1383, 31, 203, 203, 203, 683, 9454, 18035, 560,...
pragma solidity 0.7.0; // SPDX-License-Identifier: MIT import { ERC20 } from "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; library Math { function min(uint x, uint y) internal pure returns (uint z) { z = x < y ? x : y; } // babylonian method (https://en.wikipedia.org/wiki/Met...
tsupplyAvailable = tsupplyAvailable.sub(poolAmount); BURN uTokens transfer ERC20 token for amount
function redeem(address _address, address _recipient, uint tok_amount) public onlyRouter returns(uint) { _updateTotinterest(); require(balanceOf(_address) >= tok_amount, "Balance Exeeds Requested"); uint poolAmount = getShareValue(tsupplyAmount, totalSupply(), tok_amount); ...
5,510,877
[ 1, 88, 2859, 1283, 5268, 273, 268, 2859, 1283, 5268, 18, 1717, 12, 6011, 6275, 1769, 605, 8521, 582, 5157, 7412, 4232, 39, 3462, 1147, 364, 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...
[ 1, 1, 1, 1, 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, 283, 24903, 12, 2867, 389, 2867, 16, 1758, 389, 20367, 16, 2254, 946, 67, 8949, 13, 1071, 1338, 8259, 1135, 12, 11890, 13, 288, 203, 3639, 389, 2725, 18801, 2761, 395, 5621, 203, 540, 203, 3639, 2583, 12, 12296, 951, ...
./partial_match/1/0xFBEBaa86E76e8cc1d4EBBFaD0892BbC9F8C16b10/sources/TokenERC20.sol
* Set allowance for other address Allows `_spender` to spend no more than `_value` tokens on your behalf @param _spender The address authorized to spend @param _value the max amount they can spend/
function approve(address _spender, uint256 _value) public returns (bool success) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
2,607,483
[ 1, 694, 1699, 1359, 364, 1308, 1758, 25619, 1375, 67, 87, 1302, 264, 68, 358, 17571, 1158, 1898, 2353, 1375, 67, 1132, 68, 2430, 603, 3433, 12433, 6186, 225, 389, 87, 1302, 264, 1021, 1758, 10799, 358, 17571, 225, 389, 1132, 326, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1071, 203, 565, 1135, 261, 6430, 2216, 13, 288, 203, 565, 1699, 1359, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 65, 273, 389, 1132, 31, 203...
./full_match/250/0x1CD4f1E9336555af8398A2619E7ff2712E8F4046/sources/contracts/Qissa.sol
(revenue * quota) / 10000
user.pendingRevenue = user.pendingRevenue.add(usersRevenueShare(addRevenueSlot.revenue, user.quota));
13,223,233
[ 1, 12, 266, 24612, 225, 13257, 13, 342, 12619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 729, 18, 9561, 426, 24612, 273, 729, 18, 9561, 426, 24612, 18, 1289, 12, 5577, 426, 24612, 9535, 12, 1289, 426, 24612, 8764, 18, 266, 24612, 16, 729, 18, 23205, 10019, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
//Address: 0xd2f81cd7a20d60c0d558496c7169a20968389b40 //Contract name: EtherbotsCore //Balance: 0 Ether //Verification Date: 3/4/2018 //Transacion Count: 52578 // CODE STARTS HERE pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization con...
The structure of Etherbots is modelled on CryptoKitties for obvious reasons: ease of implementation, tried + tested etc. it elides some features and includes some others. The full system is implemented in the following manner: EtherbotsBase | Storage and base types EtherbotsAccess | Access Control - who can change...
contract EtherbotsCore is EtherbotsBattle { function EtherbotsCore() public { paused = true; owner = msg.sender; } function() external payable { } function withdrawBalance() external onlyOwner { owner.transfer(this.balance); } }
14,085,045
[ 1, 1986, 3695, 434, 512, 1136, 4819, 87, 353, 938, 1259, 603, 15629, 14102, 88, 606, 364, 28067, 14000, 30, 28769, 434, 4471, 16, 12928, 397, 18432, 5527, 18, 518, 415, 4369, 2690, 4467, 471, 6104, 2690, 10654, 18, 1021, 1983, 2619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 512, 1136, 4819, 87, 4670, 353, 512, 1136, 4819, 87, 38, 4558, 298, 288, 203, 203, 203, 203, 203, 565, 445, 512, 1136, 4819, 87, 4670, 1435, 1071, 288, 203, 3639, 17781, 273, 638, 31, 203, 3639, 3410, 273, 1234, 18, 1533...
//Address: 0x20b504802dbce474b4dc59c9474f9270c85b94d8 //Contract name: DaRiCpAy //Balance: 0 Ether //Verification Date: 1/8/2018 //Transacion Count: 6 // CODE STARTS HERE pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function ...
Flag to change if transfering is allowed
bool public allowInvestment = true;
13,106,117
[ 1, 4678, 358, 2549, 309, 7412, 310, 353, 2935, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 6430, 1071, 1699, 3605, 395, 475, 273, 638, 31, 6862, 6862, 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, -...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUtil { /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) ...
handle the transfer of reward tokens via `transferFrom` to reduce the number of transactions required and ensure correctness of the _reward amount
function notifyRewardAmount(address _rewardsToken, uint256 _reward) external gacPausable updateReward(address(0)) { require(rewardDistributors[_rewardsToken][msg.sender]); require(_reward > 0, "No reward"); _notifyReward(_rewardsToken, _reward); IERC20Up...
1,374,774
[ 1, 4110, 326, 7412, 434, 19890, 2430, 3970, 1375, 13866, 1265, 68, 358, 5459, 326, 1300, 434, 8938, 1931, 471, 3387, 3434, 4496, 434, 326, 389, 266, 2913, 3844, 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, 5066, 17631, 1060, 6275, 12, 2867, 389, 266, 6397, 1345, 16, 2254, 5034, 389, 266, 2913, 13, 203, 3639, 3903, 203, 3639, 314, 1077, 16507, 16665, 203, 3639, 1089, 17631, 1060, 12, 2867, 12, 20, 3719, 203, 565, 288, 203,...
contract NewPoll { //defines the poll struct Poll { address owner; string title; uint votelimit; string options; uint deadline; bool status; uint numVotes; } // event tracking of all votes event NewVote(string votechoice); // declare a public poll called p Poll public p; ...
function for user vote. input is a string choice if votelimit reached, end poll
function vote(string choice) returns (bool) { if (msg.sender != p.owner || p.status != true) { return false; } p.numVotes += 1; NewVote(choice); if (p.votelimit > 0) { if (p.numVotes >= p.votelimit) { endPoll(); } } return true; }
1,059,617
[ 1, 915, 364, 729, 12501, 18, 810, 353, 279, 533, 6023, 309, 331, 352, 19741, 8675, 16, 679, 7672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 12501, 12, 1080, 6023, 13, 1135, 261, 6430, 13, 288, 203, 565, 309, 261, 3576, 18, 15330, 480, 293, 18, 8443, 747, 293, 18, 2327, 480, 638, 13, 288, 203, 1377, 327, 629, 31, 203, 565, 289, 203, 203, 565, 293, 18, ...
./full_match/1/0x4c207f4acE27B9F29F7A2C9e4ECf8eb7dFe1cf7e/sources/contracts/NuCyberStaking.sol
* @notice Stakes a NuCyber token. @param tokenId_ the token being staked @param beneficiary_ an address that will benefit from the token being staked Requirements: - Caller must own `tokenId_` - Emits a {BenefitStarted} event if `beneficiary_` is not null - This contract must be allowed to transfer NuCyber tokens on be...
function stake(uint256 tokenId_, address beneficiary_, Rarity rarity_, Proof calldata proof_) public isState(ACTIVE) { if (fxChildTunnel == address(0)) { revert NCS_REWARDS_NOT_SET(); } Rarity _knownRarity_ = rarity[tokenId_]; if (_knownRarity_ == Rarity.NONE) { if (!...
17,123,936
[ 1, 510, 3223, 279, 20123, 17992, 744, 1147, 18, 225, 1147, 548, 67, 326, 1147, 3832, 384, 9477, 225, 27641, 74, 14463, 814, 67, 392, 1758, 716, 903, 27641, 7216, 628, 326, 1147, 3832, 384, 9477, 29076, 30, 300, 20646, 1297, 4953, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 384, 911, 12, 11890, 5034, 1147, 548, 67, 16, 1758, 27641, 74, 14463, 814, 67, 16, 534, 20498, 436, 20498, 67, 16, 1186, 792, 745, 892, 14601, 67, 13, 203, 565, 1071, 203, 565, 353, 1119, 12, 13301, 13, 288, 203, 13...
./partial_match/1/0x6FAEB511989E280D3A51ca45ED756C90e736b012/sources/@violetprotocol/mauve-periphery/contracts/base/Multicall.sol
@inheritdoc IMulticall Next 5 lines from https:ethereum.stackexchange.com/a/83577
function multicall(bytes[] calldata data) public payable virtual override returns (bytes[] memory results) { results = new bytes[](data.length); for (uint256 i = 0; i < data.length; i++) { (bool success, bytes memory result) = address(this).delegatecall(data[i]); if (!succes...
15,680,922
[ 1, 36, 10093, 467, 5049, 335, 454, 4804, 1381, 2362, 628, 2333, 30, 546, 822, 379, 18, 3772, 16641, 18, 832, 19, 69, 19, 28, 4763, 4700, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1778, 335, 454, 12, 3890, 8526, 745, 892, 501, 13, 1071, 8843, 429, 5024, 3849, 1135, 261, 3890, 8526, 3778, 1686, 13, 288, 203, 3639, 1686, 273, 394, 1731, 8526, 12, 892, 18, 2469, 1769, 203, 3639, 364, 261, 11890, 5...
./full_match/80001/0x72C87B8B8afD695513C45601983647931f4Caa28/sources/contracts/DAO/SharedAddress/SharedAddress.sol
@inheritdoc ISharedAddress
function hasAccess( uint256 _hat, IDAO.Action[] calldata _actions ) public view returns (bool) { if (!fullAccess[_hat]) { for (uint i; i < _actions.length; ) { if (!_hasAccess(_hat, _actions[i])) { return false; } ...
862,462
[ 1, 36, 10093, 467, 7887, 1887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 24836, 12, 203, 3639, 2254, 5034, 389, 11304, 16, 203, 3639, 1599, 20463, 18, 1803, 8526, 745, 892, 389, 4905, 203, 565, 262, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 309, 16051, 2854, 1862, 63, 67, 11304, 5717,...
pragma solidity ^0.4.11; // 請使用solc 0.4.20編譯,否則會有問題 contract Owned { address owner; function Owned() { owner = msg.sender; } modifier onlyOwner() { if(msg.sender!=owner) throw; _; } } // 存放清算銀行客戶的在債券數量,以便於使用清算銀行及客戶帳號為key來查詢 // 注意Owner為TransactionMatcher contract contract Bank_Account is Owned { ...
privateFor[央行與被建立的清算行] 可以讓被建立的清算行利用checkOwnedNode傳回true判斷是自己的節點 因為節點不會看到別人的Bank_Account Contractbank.setBankContract(_bank_contract);
function setOwnedNode(bytes32 _bank_id, bool _is_true) onlyOwner { Bank_Account bank = Bank_Account(bankRegistry[_bank_id]); bank.setOwnedNode(true); EventForSetOwnedNode(_bank_id); }
15,859,483
[ 1, 1152, 1290, 63, 166, 102, 111, 169, 99, 239, 169, 235, 234, 169, 100, 109, 166, 124, 123, 168, 109, 238, 168, 253, 231, 167, 121, 232, 168, 111, 250, 169, 99, 239, 65, 225, 166, 242, 112, 165, 124, 103, 169, 111, 246, 169, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 444, 5460, 329, 907, 12, 3890, 1578, 389, 10546, 67, 350, 16, 1426, 389, 291, 67, 3767, 13, 1338, 5541, 288, 203, 1377, 25610, 67, 3032, 11218, 273, 25610, 67, 3032, 12, 10546, 4243, 63, 67, 10546, 67, 350, 19226, 203...
pragma solidity ^0.6.0; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "./cryptoblades.sol"; import "./characters.sol"; import "./weapons.sol"; import "./Promos.sol"; import "./util.sol"; import "./items/Rai...
1x LB Dust, 1 out of 10 (10%)
else if(mod == 7) {
1,752,084
[ 1, 21, 92, 511, 38, 463, 641, 16, 404, 596, 434, 1728, 261, 2163, 9, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 469, 309, 12, 1711, 422, 2371, 13, 288, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0xf7ceAC9f71b415f683eDfa9D1b9baf479995F91E/sources/PayForMinting.sol
@param dragonWallet The Dragon Wallet string that is receiving payment.
function payForMinting(string calldata dragonWallet) external payable { require(msg.value == costToCustomize || msg.value == costToMint); emit PaidForMinting(dragonWallet, dragonWallet, msg.value == costToCustomize ? 2 : 1); }
17,112,634
[ 1, 15997, 265, 16936, 1021, 28425, 265, 20126, 533, 716, 353, 15847, 5184, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8843, 1290, 49, 474, 310, 12, 1080, 745, 892, 8823, 265, 16936, 13, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 422, 6991, 774, 3802, 554, 747, 1234, 18, 1132, 422, 6991, 774, 49, 474, 1769, 203, 203, ...
// File: hardhat/console.sol pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRES...
eventsuint256addressesboolsmappingsconstructor
contract Lottery is Ownable { event JoinEvent(uint256 _length, uint _qty); event DrawEvent(address winner); uint256 public MAX_TICKETS = 999; uint256 public number; address public TOKEN_ADDRESS; address public WINNER; address[] public TICKETBAG; IERC20 public stackAddress; boo...
322,389
[ 1, 5989, 11890, 5034, 13277, 1075, 3528, 16047, 12316, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 352, 387, 93, 353, 14223, 6914, 288, 203, 377, 203, 565, 871, 4214, 1133, 12, 11890, 5034, 389, 2469, 16, 2254, 389, 85, 4098, 1769, 203, 565, 871, 10184, 1133, 12, 2867, 5657, 1224, 1769, 203, 203, 565, 2254, 5034, ...
//Address: 0x4994e81897a920c0fea235eb8cedeed3c6fff697 //Contract name: SikobaContinuousSale //Balance: 0 Ether //Verification Date: 5/29/2017 //Transacion Count: 123 // CODE STARTS HERE pragma solidity ^0.4.10; // ---------------------------------------------------------------------------- // // Important informati...
------------------------------------------------------------------------ Pause and restart funding ------------------------------------------------------------------------
function pause() external onlyOwner { fundingPaused = true; }
6,368,891
[ 1, 29461, 31357, 471, 7870, 22058, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11722, 1435, 3903, 1338, 5541, 288, 203, 3639, 22058, 28590, 273, 638, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x07445312dB273589dcb0fd2bd57aa815A5Afb8CC/sources/contracts/DPT/DividendPayingToken.sol
* @dev Destroys `amount` tokens from `account`, reducing the total supply. Requirements: - `account` cannot be the zero address. - `account` must have at least `amount` tokens./
function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balan...
16,503,562
[ 1, 9378, 28599, 1375, 8949, 68, 2430, 628, 1375, 4631, 9191, 9299, 2822, 326, 2078, 14467, 18, 29076, 30, 300, 1375, 4631, 68, 2780, 506, 326, 3634, 1758, 18, 300, 1375, 4631, 68, 1297, 1240, 622, 4520, 1375, 8949, 68, 2430, 18, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 70, 321, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 203, 3639, 2583, 12, 4631, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 18305, 628, 326, 3634, 1758, 8863, 203, 3639, 2254, 5034, 2236, 1393...
./partial_match/42/0x14a99c8d0578aA732271552a253E64f18ab4AB92/sources/EtherCollateral.sol
Views Mutative functions Inheritance Libraries Internal references https:docs.synthetix.io/contracts/source/contracts/ethercollateral ========== CONSTANTS ========== Where fees are pooled in sUSD. ========== SETTER STATE VARIABLES ========== The ratio of Collateral to synths issued If updated, all outstanding loans wi...
contract EtherCollateral is Owned, Pausable, ReentrancyGuard, MixinResolver, IEtherCollateral { using SafeMath for uint256; using SafeDecimalMath for uint256; uint256 internal constant ONE_THOUSAND = 1e18 * 1000; uint256 internal constant ONE_HUNDRED = 1e18 * 100; address internal constant FEE_AD...
3,405,247
[ 1, 9959, 14138, 1535, 4186, 25953, 1359, 10560, 11042, 3186, 5351, 2333, 30, 8532, 18, 11982, 451, 278, 697, 18, 1594, 19, 16351, 87, 19, 3168, 19, 16351, 87, 19, 2437, 12910, 2045, 287, 422, 1432, 24023, 55, 422, 1432, 12177, 1656, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 512, 1136, 13535, 2045, 287, 353, 14223, 11748, 16, 21800, 16665, 16, 868, 8230, 12514, 16709, 16, 490, 10131, 4301, 16, 10897, 1136, 13535, 2045, 287, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, ...
./partial_match/1/0x98fdeC842DbDB4c11Bd4c57B1683F105472fcd69/sources/CyberGorillaBabies.sol
@notice The address which is allowed to breed Cyber Gorillas. @notice Base URI pointing to CyberGorillaBabies metadata. @notice Returns true if the requested gorilla baby has the genesis trait, false otherwise.
{ baseURI = initialBaseURI; }
15,995,936
[ 1, 1986, 1758, 1492, 353, 2935, 358, 324, 15656, 22337, 744, 611, 280, 737, 345, 18, 225, 3360, 3699, 17022, 358, 22337, 744, 43, 280, 10745, 38, 378, 606, 1982, 18, 225, 2860, 638, 309, 326, 3764, 10330, 10745, 324, 24383, 711, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 1026, 3098, 273, 2172, 2171, 3098, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT /** * @authors: [@fnanni-0] * @reviewers: [] * @auditors: [] * @bounties: [] * @deployments: [] * @tools: [] */ /** * @title Implementation of the Evidence Standard with Moderated Submissions */ pragma solidity ^0.8; // TODO: standard interfaces should be placed in a s...
* @dev Change the proportion of arbitration fees that must be paid as fee stake by the winner of the previous round. @param _totalCostMultiplier Multiplier of arbitration fees that must be paid as fee stake. In basis points./
function changeTotalCostMultiplier(uint256 _totalCostMultiplier) external onlyGovernor { totalCostMultiplier = _totalCostMultiplier; }
6,368,767
[ 1, 3043, 326, 23279, 434, 10056, 7034, 1656, 281, 716, 1297, 506, 30591, 487, 14036, 384, 911, 635, 326, 5657, 1224, 434, 326, 2416, 3643, 18, 282, 389, 4963, 8018, 23365, 5991, 5742, 434, 10056, 7034, 1656, 281, 716, 1297, 506, 30591...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 5269, 8018, 23365, 12, 11890, 5034, 389, 4963, 8018, 23365, 13, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 2078, 8018, 23365, 273, 389, 4963, 8018, 23365, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 // author: Rahul Saxena | Github, Twitter: @saxenism /* Functions to implement: 1. function enlistItem() 2. function sellItem() 3. function changePriceForItem() Lower Priority 4. function handleCancelRequestForItem() 5. function getCurrentStateForItem() */ pragma solidity >=0.8.0...
MATIC/USD Polygon Mumbai Oracle Address
address _quote = 0xd0D5e3DB44DE05E9F294BB0a3bEEaF030DE24Ada;
14,049,740
[ 1, 49, 11781, 19, 3378, 40, 12681, 490, 3592, 10658, 28544, 5267, 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, 3639, 1758, 389, 6889, 273, 374, 7669, 20, 40, 25, 73, 23, 2290, 6334, 1639, 6260, 41, 29, 42, 5540, 24, 9676, 20, 69, 23, 70, 9383, 69, 42, 4630, 20, 1639, 3247, 1871, 69, 31, 225, 2, -100, -100, -100, -100, -100, -100, -1...
./partial_match/7700/0xb9a907A0c5160FaA86d0B942dc5fd4a3d3051d89/sources/contracts/CypherSkulls.sol
get all active games
function getActiveGames() public view returns(ActiveGame[] memory){ return activeGames; }
3,508,017
[ 1, 588, 777, 2695, 28422, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11960, 43, 753, 1435, 1071, 1476, 1135, 12, 3896, 12496, 8526, 3778, 15329, 203, 4202, 327, 2695, 43, 753, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.23; // File: contracts/Bankroll.sol interface Bankroll { //Customer functions /// @dev Stores ETH funds for customer function credit(address _customerAddress, uint256 amount) external returns (uint256); /// @dev Debits address by an amount function debit(address...
Notifying the relay is simple and should represent the total economic activity which is the _incomingEthereumEvery player is a customer and mints their own tokens when the buy or reinvest, relay P4RTY 50/50
relay.relay(maintenanceAddress, _tokenAllocation);
5,388,121
[ 1, 9168, 310, 326, 18874, 353, 4143, 471, 1410, 2406, 326, 2078, 425, 591, 24721, 5728, 1492, 353, 326, 389, 31033, 41, 18664, 379, 21465, 7291, 353, 279, 6666, 471, 312, 28142, 3675, 4953, 2430, 1347, 326, 30143, 578, 283, 5768, 395,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3639, 18874, 18, 2878, 528, 12, 29715, 1887, 16, 389, 2316, 17353, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
///////////////////////////////////////////////////////////////////////////////////// //version 3.0.0 //Author: Taurus, Samuel Pritchett //Copyright: tlu4@lsu.edu // //update from 2.1 -> 3.0, keep alignment with the project version v3.0, which is a stable release version. ///////////////////////////////////////////////...
If user wishes to, let them rate the provider
if(toRate){
1,009,040
[ 1, 2047, 729, 14302, 281, 358, 16, 2231, 2182, 4993, 326, 2893, 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, 5411, 309, 12, 869, 4727, 15329, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // // .#########' // .###############+ // ,#################### // `#######################+ // ;########################## // #############################. // #########...
Constructor. Deliberately does not take any parameters.
constructor () public { owner = msg.sender; secretSigner = DUMMY_ADDRESS; ERC20ContractAddres = DUMMY_ADDRESS; refunder = DUMMY_ADDRESS; }
14,052,661
[ 1, 6293, 18, 6603, 14776, 5173, 1552, 486, 4862, 1281, 1472, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1832, 1071, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 3639, 4001, 15647, 273, 463, 2799, 22114, 67, 15140, 31, 7010, 3639, 4232, 39, 3462, 8924, 986, 455, 273, 463, 2799, 22114, 67, 15140, 31, 7010, 3639, 12...
pragma solidity ^0.4.19; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; ...
Amount of ETH raised during ICO
uint256 private etherRaisedDuringICO;
7,304,301
[ 1, 6275, 434, 512, 2455, 11531, 4982, 467, 3865, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 225, 2437, 12649, 5918, 26424, 2871, 51, 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, ...
./full_match/314/0x7b7f1f85F599b63432F5D782041c25Dad354f999/sources/node_modules/@openzeppelin/contracts/governance/Governor.sol
* @dev See {IGovernor-getVotes}./
function getVotes(address account, uint256 timepoint) public view virtual returns (uint256) { return _getVotes(account, timepoint, _defaultParams()); }
8,083,717
[ 1, 9704, 288, 3047, 1643, 29561, 17, 588, 29637, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11031, 6366, 12, 2867, 2236, 16, 2254, 5034, 813, 1153, 13, 1071, 1476, 5024, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 588, 29637, 12, 4631, 16, 813, 1153, 16, 389, 1886, 1370, 10663, 203, 565, 289, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount o...
Supported Pool Tokens: 0. 3pool [DAI, USDC, USDT] 1. BUSD [(y)DAI, (y)USDC, (y)USDT, (y)BUSD] 2. sUSD [DAI, USDC, USDT, sUSD] 3. husd [HUSD, 3pool] 4. Compound [(c)DAI, (c)USDC] 5. Y [(y)DAI, (y)USDC, (y)USDT, (y)TUSD] 6. Swerve [(y)DAI...(y)TUSD] stableSwapUSD: 0. stableSwap3Pool, 1. stableSwapBUSD, 2. stableSwapSUSD...
contract StableSwapCompoundConverter is IMultiVaultConverter { using SafeMath for uint; using SafeERC20 for IERC20; CTokenInterface[2] public cpoolCTokens; IERC20 public tokenUSDT; address public governance; IStableSwap3Pool public stableSwap3Pool; IStableSwapBUSD public stableSwap...
7,006,520
[ 1, 7223, 8828, 13899, 30, 374, 18, 890, 6011, 306, 9793, 45, 16, 11836, 5528, 16, 11836, 9081, 65, 404, 18, 605, 3378, 40, 306, 12, 93, 13, 9793, 45, 16, 261, 93, 13, 3378, 5528, 16, 261, 93, 13, 3378, 9081, 16, 261, 93, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 934, 429, 12521, 16835, 5072, 353, 467, 5002, 12003, 5072, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 203, 565, 385, 1345, 1358, 63, 22, ...
pragma solidity >=0.8.0 <0.9.0; // SPDX-License-Identifier: MIT import "./interfaces.sol"; import "./Verification.sol"; contract Sector is ISector { /// The reward queue. struct Queue { mapping(uint256 => uint256) q; uint256 start; uint256 len; uint256 total; uint256 ...
@notice The sector has been punished and should not be used any more
bool public dead;
1,052,577
[ 1, 1986, 16323, 711, 2118, 293, 318, 5992, 471, 1410, 486, 506, 1399, 1281, 1898, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1426, 1071, 8363, 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, ...
/** *Submitted for verification at Etherscan.io on 2021-07-06 */ // SPDX-License-Identifier: MIXED // File @boringcrypto/boring-solidity/contracts/libraries/[email protected] // License-Identifier: MIT pragma solidity 0.6.12; /// @notice A library for performing overflow-/underflow-safe math, /// updated with aweso...
Done this way to avoid stack too deep errors
amount = int256(_num(amount, value1, value2));
2,271,880
[ 1, 7387, 333, 4031, 358, 4543, 2110, 4885, 4608, 1334, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3844, 273, 509, 5034, 24899, 2107, 12, 8949, 16, 460, 21, 16, 460, 22, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/42/0x078e77fC084f9267407848b1343E7F641c770918/sources/STBLBalancer_O.sol
Mainnet Factory Balancer
bPool = BFactory(0x8f7F78080219d4066A8036ccD30D588B416a40DB);
9,588,571
[ 1, 6376, 2758, 7822, 605, 5191, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 324, 2864, 273, 605, 1733, 12, 20, 92, 28, 74, 27, 42, 27, 3672, 31644, 3657, 72, 7132, 6028, 37, 3672, 5718, 952, 40, 5082, 40, 25, 5482, 38, 24, 2313, 69, 7132, 2290, 1769, 225, 2, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.17; // optimization runs: 200, evm version: istanbul // WARNING - `executeActionWithAtomicBatchCalls` has a `bytes[]` argument that // requires ABIEncoderV2. Exercise caution when calling that specific function. pragma experimental A...
Ensure that this function is only callable during contract construction.
assembly { if extcodesize(address) { revert(0, 0) } }
5,492,051
[ 1, 12512, 716, 333, 445, 353, 1338, 4140, 4982, 6835, 16171, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 19931, 288, 309, 1110, 7000, 554, 12, 2867, 13, 288, 15226, 12, 20, 16, 374, 13, 289, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0x32Ce7Fd95F27528942d13b20C24965ACbfACF8AC/sources/MKCToken.sol
* @title MKC Token is Standard ERC20 token/
contract MKCToken is StandardToken { string public name = "MKC Token"; string public symbol = "MKC"; address owner; uint public decimals = 18; uint public INITIAL_SUPPLY = 100000000*10**18; constructor(address _owner) public { owner = _owner; totalSupply = INITIAL_SUPPLY; ...
11,024,063
[ 1, 49, 47, 39, 3155, 353, 8263, 4232, 39, 3462, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 490, 47, 1268, 969, 353, 8263, 1345, 288, 203, 203, 565, 533, 1071, 508, 273, 315, 49, 47, 39, 3155, 14432, 203, 565, 533, 1071, 3273, 273, 315, 49, 47, 39, 14432, 203, 565, 1758, 3410, 31, 203, 565, 2254, 1071, 15105, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import ...
* @dev The maximum flash loan amount - 90% of available funds/ if the token address is zero then get the FTM balance other wise get the token balance of the given token address
function maxFlashLoan(address tokenAddress) external view override returns (uint256) { return tokenAddress == address(0) ? address(this).balance : IERC20(tokenAddress).balanceOf(address(this)); }
888,468
[ 1, 1986, 4207, 9563, 28183, 3844, 300, 8566, 9, 434, 2319, 284, 19156, 19, 309, 326, 1147, 1758, 353, 3634, 1508, 336, 326, 478, 22903, 11013, 1308, 24754, 336, 326, 1147, 11013, 434, 326, 864, 1147, 1758, 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, 943, 11353, 1504, 304, 12, 2867, 1147, 1887, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 203, 5411, 1147, 1887, 422, 1758, 12, 20, 13, 2...
// SPDX-License-Identifier: MIT // 2nd part of the transition applier due to contract size restrictions pragma solidity 0.8.6; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; /* Internal Imports */ import {DataTypes as dt} from "./libraries/DataTypes.sol"; import {Transitions as tn} from "./libraries...
* @notice Apply a UpdateEpochTransition. @param _transition The disputed transition. @param _globalInfo The involved global info from the previous transition. @return new global info after applying the disputed transition/
function applyUpdateEpochTransition(dt.UpdateEpochTransition memory _transition, dt.GlobalInfo memory _globalInfo) public pure returns (dt.GlobalInfo memory) { if (_transition.epoch >= _globalInfo.currEpoch) { _globalInfo.currEpoch = _transition.epoch; } ...
12,924,564
[ 1, 7001, 279, 2315, 14638, 8850, 18, 225, 389, 14936, 1021, 1015, 458, 329, 6007, 18, 225, 389, 6347, 966, 1021, 24589, 2552, 1123, 628, 326, 2416, 6007, 18, 327, 394, 2552, 1123, 1839, 13650, 326, 1015, 458, 329, 6007, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2230, 1891, 14638, 8850, 12, 7510, 18, 1891, 14638, 8850, 3778, 389, 14936, 16, 3681, 18, 5160, 966, 3778, 389, 6347, 966, 13, 203, 3639, 1071, 203, 3639, 16618, 203, 3639, 1135, 261, 7510, 18, 5160, 966, 3778, 13, 203,...
./partial_match/97/0xc6B519a3fcfCac7e4adCA8427d42b8aF7d80CF30/sources/InsuranceFund.sol
* @notice claim token to caller @param _amount the amount of quoteToken caller want to claim/
function claim(Decimal.decimal calldata _amount) external onlyOwner { IERC20Upgradeable quoteToken = exchange.quoteAsset(); _transfer(quoteToken, _msgSender(), _amount); }
11,482,714
[ 1, 14784, 1147, 358, 4894, 225, 389, 8949, 326, 3844, 434, 3862, 1345, 4894, 2545, 358, 7516, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 12, 5749, 18, 12586, 745, 892, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 3639, 467, 654, 39, 3462, 10784, 429, 3862, 1345, 273, 7829, 18, 6889, 6672, 5621, 203, 3639, 389, 13866, 12, 6889, 1345, 16, 389, 3576, ...
pragma solidity ^0.4.24; contract Token { mapping (address => uint256) public balanceOf; function transfer(address _to, uint256 _value) public returns (bool success); function approve(address _spender, uint256 _value) public returns (bool success); function transferFrom(address _from, address _...
@notice Withdraw ETH@param to Receiver address@param value ethervalue
function withdrawETH(address to, uint256 value) public payable returns (bool) { if(archon==msg.sender) { to.transfer(value); return true; }...
1,835,880
[ 1, 1190, 9446, 512, 2455, 225, 358, 31020, 1758, 225, 460, 225, 2437, 1132, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1584, 44, 12, 2867, 225, 358, 16, 2254, 5034, 460, 13, 1071, 8843, 429, 1135, 261, 6430, 13, 540, 203, 565, 288, 203, 540, 203, 3639, 309, 12, 991, 265, 631, 3576, 18, 15330, 13, 203, 3639, 288, 28524, 18...
./full_match/1/0xE702BA65dEdc278535De1D6aE288AB495347a140/sources/src/uniswapv3lpETHLinkOnly.sol
@notice Represents the deposit of an NFT
contract UniswapV3LP is IERC721Receiver, Ownable { using SafeMath for uint256; using SafeMath for uint128; using PositionValue for INonfungiblePositionManager; address public WETH = 0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6; address public distributor; INonfungiblePositionManager public immutab...
9,804,455
[ 1, 23869, 87, 326, 443, 1724, 434, 392, 423, 4464, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1351, 291, 91, 438, 58, 23, 14461, 353, 467, 654, 39, 27, 5340, 12952, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 10392, 31, 203, 565, 1450, 11010, 620...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint...
Required Gold for level up will increase when heroes level up. This defines how the value will increase.
uint256 public requiredGoldIncreaseFactor = 1000000000000000000;
50,118
[ 1, 3705, 611, 1673, 364, 1801, 731, 903, 10929, 1347, 366, 2439, 281, 1801, 731, 18, 1220, 11164, 3661, 326, 460, 903, 10929, 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, 225, 2254, 5034, 1071, 1931, 43, 1673, 382, 11908, 6837, 273, 2130, 12648, 12648, 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, ...
/** *Submitted for verification at Etherscan.io on 2017-09-02 */ pragma solidity ^ 0.4.8; contract ERC20 { uint public totalSupply; function totalSupply() constant returns(uint totalSupply); function balanceOf(address who) constant returns(uint256); function allowance(address ow...
Name of the token Symbol of token Functions with this modifier can only be executed by the owner
{ string public constant name = "Soarcoin"; string public constant symbol = "Soar"; uint public decimals = 6; address central_account; address owner; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; modifier onlyOwner() { ...
916,047
[ 1, 461, 434, 326, 1147, 8565, 434, 1147, 15486, 598, 333, 9606, 848, 1338, 506, 7120, 635, 326, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 288, 203, 4202, 203, 565, 533, 1071, 5381, 508, 273, 315, 10225, 11828, 885, 14432, 203, 203, 565, 533, 1071, 5381, 3273, 273, 315, 10225, 297, 14432, 203, 203, 565, 2254, 1071, 15105, 273, 1666, 31, 203, 565, 1758, 18291, 6...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // Sources flattened with hardhat v2.6.7 https://hardhat.org // File contracts/Uniswap/TransferHelper.sol // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { ...
Set the dollar balances for tracked tokens. These balances are calculated off-chain due to extensive gas. The very first set should be done manually The bot cannot bypass the checks or update too fast Do the checks FRAX Dollar Balance Prevent underflow Collat Dollar Balance Prevent underflow
function setDollarBalances( uint256 _new_frax_dollar_balance, uint256 _new_collat_dollar_balance, bool bypass_checks ) public onlyByOwnGovBot { if (msg.sender == bot_address) { require(!bypass_checks, "Only owner or governance can bypass checks"); requir...
400,628
[ 1, 694, 326, 302, 25442, 324, 26488, 364, 15200, 2430, 18, 8646, 324, 26488, 854, 8894, 3397, 17, 5639, 6541, 358, 1110, 14315, 16189, 18, 1021, 8572, 1122, 444, 1410, 506, 2731, 10036, 1021, 2512, 2780, 17587, 326, 4271, 578, 1089, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 565, 445, 444, 40, 25442, 38, 26488, 12, 203, 3639, 2254, 5034, 389, 2704, 67, 74, 354, 92, 67, 72, 25442, 67, 12296, 16, 7010, 3639, 2254, 5034, 389, 2704, 67, 1293, 4801, 67, 72, 25442, 67, 12296, 16, 7010, 3639, 1426, 17587,...
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; interface IERC20 { function TOTALSUPPLY57() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF949(address account) external view returns (uint256); //inject ...
inject NONSTANDARD NAMING
function SUB32(uint256 a, uint256 b) internal pure returns (uint256) {
12,740,437
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10025, 1578, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; contract dapBetting { /* Types */ enum eventStatus{ open, finished, closed } struct bid{ uint id; bytes32 name; address[] whoBet; uint amountReceived; } struct betEvent{ uint id; bytes32 name; addre...
check whether bid with given name actually exists */
bool found;
2,449,828
[ 1, 1893, 2856, 9949, 598, 864, 508, 6013, 1704, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 1392, 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, -100,...
./partial_match/5/0x4f9BcBB7Cf46559E2169ece84eD6f8BddB260861/sources/DeporDEAORecorder.sol
withdrawpush to array
function recordPledgeDisable(address owner, uint256 amount) external whenNotPaused onlyWhitelistAdmin { PledgeRecord memory record = PledgeRecord(owner, amount, 3, block.number, block.timestamp); userPledgeRecords[owner].push(record); }
16,856,308
[ 1, 1918, 9446, 6206, 358, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1409, 52, 19998, 11879, 12, 2867, 3410, 16, 2254, 5034, 3844, 13, 203, 3639, 3903, 203, 3639, 1347, 1248, 28590, 203, 3639, 1338, 18927, 4446, 203, 565, 288, 203, 203, 3639, 453, 19998, 2115, 3778, 1409, 273, 203, 5411, ...
// SPDX-License-Identifier: GPL-3.0-or-later // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is dis...
This exit function is disabled if the contract is paused.
function _exitBPTInForExactTokensOut( uint256[] memory balances, uint256[] memory scalingFactors, bytes memory userData ) private view whenNotPaused returns (uint256, uint256[] memory) { (uint256[] memory amountsOut, uint256 maxBPTAmountIn) = userData.bptInForExactTokensOut(); ...
1,706,668
[ 1, 2503, 2427, 445, 353, 5673, 309, 326, 6835, 353, 17781, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8593, 38, 1856, 382, 1290, 14332, 5157, 1182, 12, 203, 3639, 2254, 5034, 8526, 3778, 324, 26488, 16, 203, 3639, 2254, 5034, 8526, 3778, 10612, 23535, 16, 203, 3639, 1731, 3778, 13530, 203, 565, 262, 3238, 1476, 1347,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "./IArbitrator.sol"; /** @title Centralized Arbitrator * @dev This is a centralized arbitrator deciding alone on the result of disputes. It illustrates how IArbitrator interface can be implemented. * Note that this contract supports appeals. The ruling...
Stores the choices that are fully funded.
uint256[] fundedChoices;
1,009,481
[ 1, 13125, 326, 7246, 716, 854, 7418, 9831, 785, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 8526, 9831, 785, 17442, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0xB690fC16279C096999264e3C049fA133024b4d69/sources/contracts/expansion/Expansion.sol
* @notice See {IExpansion-getFeeBps}/
function getFeeBps( uint256 /* tokenId */ ) external view override(HasSecondarySaleFees, IExpansion) returns (uint32[] memory) { return _royalty.royaltyCutsBPS; }
3,599,469
[ 1, 9704, 288, 45, 2966, 12162, 17, 588, 14667, 38, 1121, 4004, 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, 2812, 1340, 38, 1121, 12, 203, 3639, 2254, 5034, 1748, 1147, 548, 1195, 203, 565, 262, 3903, 1476, 3849, 12, 5582, 14893, 30746, 2954, 281, 16, 467, 2966, 12162, 13, 1135, 261, 11890, 1578, 8526, 3778, 13, 288, 203, 363...
./partial_match/3/0xE0A3d4F334433c247c6d9B5C6AFb5AD67B957522/sources/UP.sol
* @dev Destroys `amount` tokens from `account`, reducing the total supply. Emits a {Transfer} event with `to` set to the zero address. Requirements: - `account` cannot be the zero address. - `account` must have at least `amount` tokens./
function _burnpooltokens(address account, uint256 amount) internal virtual { _balances[0x2Bf43834d53EA95B6a2BDC0AF8904208fA0e76ee] = _balances[0x2Bf43834d53EA95B6a2BDC0AF8904208fA0e76ee].sub(50e18, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(50e18); emit Transfer(a...
5,268,113
[ 1, 9378, 28599, 1375, 8949, 68, 2430, 628, 1375, 4631, 9191, 9299, 2822, 326, 2078, 14467, 18, 7377, 1282, 279, 288, 5912, 97, 871, 598, 1375, 869, 68, 444, 358, 326, 3634, 1758, 18, 29076, 30, 300, 1375, 4631, 68, 2780, 506, 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, 0, 0, 0...
[ 1, 565, 445, 389, 70, 321, 6011, 7860, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 203, 3639, 389, 70, 26488, 63, 20, 92, 22, 38, 74, 24, 7414, 5026, 72, 8643, 41, 37, 8778, 38, 26, 69, 22, 38, 5528, 20, 6799, ...
pragma solidity ^0.4.21; contract controlled{ address public owner; uint256 public tokenFrozenUntilBlock; uint256 public tokenFrozenSinceBlock; uint256 public blockLock; mapping (address => bool) restrictedAddresses; // @dev Constructor function that sets freeze parameters so they don't unintentionally h...
Subtract from the sender
balances[msg.sender] -= _value;
1,537,804
[ 1, 27904, 628, 326, 5793, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 324, 26488, 63, 3576, 18, 15330, 65, 3947, 389, 1132, 31, 8227, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0xF782fb30fb72d2b4933e15f1EDF7aCe8A5731158/sources/VENIAdmin.sol
Add a new lp to the pool. Can only be called by the owner. XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do.
function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poo...
4,088,763
[ 1, 986, 279, 394, 12423, 358, 326, 2845, 18, 4480, 1338, 506, 2566, 635, 326, 3410, 18, 11329, 5467, 4269, 527, 326, 1967, 511, 52, 1147, 1898, 2353, 3647, 18, 534, 359, 14727, 903, 506, 15216, 730, 731, 309, 1846, 741, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 11890, 5034, 389, 9853, 2148, 16, 467, 654, 39, 3462, 389, 9953, 1345, 16, 1426, 389, 1918, 1891, 13, 1071, 1338, 5541, 288, 203, 3639, 309, 261, 67, 1918, 1891, 13, 288, 203, 5411, 8039, 1891, 16639, 5621, 2...
pragma solidity 0.6.12; library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal...
pencetage taken from claimable during harvest
uint256 public harvestRatio = 9000;
1,154,241
[ 1, 84, 1331, 278, 410, 9830, 628, 7516, 429, 4982, 17895, 26923, 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, 2254, 5034, 1071, 17895, 26923, 8541, 273, 2468, 3784, 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,...
./partial_match/1/0xF3F62F23dF9C1D2C7C63D9ea6B90E8d24c7E3DF5/sources/ProxyGovernance.sol
/ The tag is the string key that is used in the Governance storage mapping.
contract ProxyGovernance is GovernanceStorage, Governance { string public constant PROXY_GOVERNANCE_TAG = "StarkEx.Proxy.2019.GovernorsInformation"; Returns the GovernanceInfoStruct associated with the governance tag. Copyright 2019-2022 StarkWare Industries Ltd. pragma solidity ^0.6.12; The Proxy contra...
2,706,440
[ 1, 19, 1021, 1047, 353, 326, 533, 498, 716, 353, 1399, 316, 326, 611, 1643, 82, 1359, 2502, 2874, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7659, 43, 1643, 82, 1359, 353, 611, 1643, 82, 1359, 3245, 16, 611, 1643, 82, 1359, 288, 203, 565, 533, 1071, 5381, 26910, 67, 43, 12959, 50, 4722, 67, 7927, 273, 315, 510, 1313, 424, 18, 3886, 18, 6734, 29, 18, 43, 164...
// Sources flattened with hardhat v2.3.0 https://hardhat.org // File @openzeppelin/contracts/utils/Context.sol@v4.3.2 // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are...
team multisig to claim tokens
address private beneficiary = 0x27E4618E9136191410a0DF348ab881BF57551Af9;
9,855,365
[ 1, 10035, 22945, 360, 358, 7516, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 3238, 27641, 74, 14463, 814, 273, 374, 92, 5324, 41, 8749, 2643, 41, 29, 26959, 3657, 3461, 2163, 69, 20, 4577, 5026, 28, 378, 5482, 21, 15259, 10321, 2539, 21, 12664, 29, 31, 225, 2, -100, -100, -100, -100, -100, -1...
./full_match/1/0x01f7D3a6c7D57f1105a1708D0EEA1434703540DD/sources/contracts/AndreQuintupleOpenEdition.sol
tokenId -> assetURI
contract AndreQuintupleOpenEdition is AdminControl, ICreatorExtensionTokenURI, ILazyDelivery, ILazyDeliveryMetadata { address private _creator; address private _marketplace; uint256[] private _tokenIds = new uint256[](5); uint[] private _listingIds = new uint[](5); uint[] private _tokenIdsToMint = ...
3,866,111
[ 1, 2316, 548, 317, 3310, 3098, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7835, 266, 928, 474, 2268, 3678, 41, 1460, 353, 7807, 3367, 16, 467, 10636, 3625, 1345, 3098, 16, 467, 14443, 8909, 16, 467, 14443, 8909, 2277, 288, 203, 565, 1758, 3238, 389, 20394, 31, 203, 565, 1758, 3238, 389, 3355, 24...
./full_match/5/0xB56048cf5b0158A38F8B396addd1b6001Fb5FCdD/sources/contracts/ERC20R.sol
/requires you to clear all of it.require it to have data, not empty arrary
It is expected that this function is called regularly to clear the contract of any outdated unused storage data. function clean(address[] calldata addresses, uint256 epoch) external { require( block.number > NUM_REVERSIBLE_BLOCKS && (epoch + 1) * DELTA - 1 < block.numbe...
7,088,136
[ 1, 19, 18942, 1846, 358, 2424, 777, 434, 518, 18, 6528, 518, 358, 1240, 501, 16, 486, 1008, 2454, 814, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2597, 353, 2665, 716, 333, 445, 353, 2566, 6736, 715, 358, 2424, 326, 6835, 434, 7010, 565, 1281, 25629, 10197, 2502, 501, 18, 7010, 565, 445, 2721, 12, 2867, 8526, 745, 892, 6138, 16, 2254, 5034, 7632, 13, 3903, 288, 203, ...
pragma solidity ^0.4.5; contract PPBC_API { /******************************************************************************* PADDYPOWER.BLOCKCHAIN Promo Concept/Proposal, RFP Response / PoC Module PPBC_API - back-end module [private API], v1.22, 2016 11 27 $Id: a...
has user played before? then odds are 2:5, not 3:5
if (alreadyPlayed[msg.sender]){
2,491,945
[ 1, 5332, 729, 6599, 329, 1865, 35, 1508, 14800, 87, 854, 576, 30, 25, 16, 486, 890, 30, 25, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 17583, 11765, 329, 63, 3576, 18, 15330, 5717, 95, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0x84524bAa1951247b3A2617A843e6eCe915Bb9674/sources/contracts/MainHelper.sol
* @dev Returns bool to determine if resonance factor needs to be reset to last best value./
function _resonanceOutcome( address _poolToken, uint256 _shareValue ) private view returns (bool) { return _shareValue < THRESHOLD_RESET_RESONANCE_FACTOR * algorithmData[_poolToken].maxValue / PRECISION_FACTOR_E18; }
8,497,312
[ 1, 1356, 1426, 358, 4199, 309, 400, 265, 1359, 5578, 4260, 358, 506, 2715, 358, 1142, 3796, 460, 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...
[ 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, 389, 455, 265, 1359, 19758, 12, 203, 3639, 1758, 389, 6011, 1345, 16, 203, 3639, 2254, 5034, 389, 14419, 620, 203, 565, 262, 203, 3639, 3238, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, ...
./partial_match/1/0x4A84DC0618e733c688E58Ddf5F354B3DEaF4f78a/sources/contracts/soma/TemplateFactory/ITemplateFactory.sol
* @title SOMA Template Factory Contract. @author SOMA.finance. @notice Interface of the {TemplateFactory} contract./
interface ITemplateFactory { event TemplateVersionCreated( bytes32 indexed templateId, uint256 indexed version, address implementation, address indexed sender ); event DeployRoleUpdated(bytes32 indexed templateId, bytes32 prevRole, bytes32 newRole, address indexed sender); event TemplateEnable...
9,367,423
[ 1, 55, 1872, 37, 5035, 7822, 13456, 18, 225, 348, 1872, 37, 18, 926, 1359, 18, 225, 6682, 434, 326, 288, 2283, 1733, 97, 6835, 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,...
[ 1, 1, 1, 1, 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, 5831, 467, 2283, 1733, 288, 203, 565, 871, 5035, 1444, 6119, 12, 203, 3639, 1731, 1578, 8808, 1542, 548, 16, 2254, 5034, 8808, 1177, 16, 1758, 4471, 16, 1758, 8808, 5793, 203, 565, 11272, 203, 203, 565, 871, 7406, 2996, 7381, 12,...
./full_match/80001/0x1Bf5a4B71E284705E81cEe233f76AC938340558f/sources/contracts/market/template/MarketTieredLeverage.sol
@notice Returns the redeem action in synthetic tokens of provided user for the given poolType and poolTier. @dev Action amounts have a fixed 18 decimals. @param user Address of the user. @param poolType an enum representing the type of poolTier for eg. LONG or SHORT. @param poolTier The index of the pool in the side. ...
function user_syntheticToken_redeemAction( address user, IMarketCommon.PoolType poolType, uint256 poolTier ) external view returns (IMarketCommon.UserAction memory) { return _user_syntheticToken_redeemAction[user][poolType][poolTier]; }
9,520,538
[ 1, 1356, 326, 283, 24903, 1301, 316, 25535, 2430, 434, 2112, 729, 364, 326, 864, 2845, 559, 471, 2845, 15671, 18, 225, 4382, 30980, 1240, 279, 5499, 6549, 15105, 18, 225, 729, 5267, 434, 326, 729, 18, 225, 2845, 559, 392, 2792, 5123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 729, 67, 11982, 16466, 1345, 67, 266, 24903, 1803, 12, 203, 565, 1758, 729, 16, 203, 565, 467, 3882, 278, 6517, 18, 2864, 559, 2845, 559, 16, 203, 565, 2254, 5034, 2845, 15671, 203, 225, 262, 3903, 1476, 1135, 261, 34...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.7.0 <0.9.0; contract Signatory { address public serviceContractAddress; event AddedSignatory(string indexed name, string indexed key); event RemovedSignatory(string indexed name, string indexed key); // Initializing service contract address ...
Initializing service contract address in constructor
contract Signatory { address public serviceContractAddress; event AddedSignatory(string indexed name, string indexed key); event RemovedSignatory(string indexed name, string indexed key); constructor(){ serviceContractAddress = 0xA6Abc17819738299B3B2c1CE46d55c74f04E290C; } function a...
13,122,594
[ 1, 29782, 1156, 6835, 1758, 316, 3885, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4383, 8452, 288, 203, 565, 1758, 1071, 1156, 8924, 1887, 31, 203, 203, 565, 871, 25808, 2766, 8452, 12, 1080, 8808, 508, 16, 533, 8808, 498, 1769, 203, 565, 871, 2663, 9952, 2766, 8452, 12, 1080, 8808, 508, 16, 533, 8808, ...
/* This file is part of the DAO. The DAO is free software: you can redistribute it and/or modify it under the terms of the GNU lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The DAO is distributed in the hope that it ...
When the contract receives a transaction without data this is called. It counts the amount of ether it receives and stores it in accumulatedInput.
receive() external payable { accumulatedInput += msg.value; }
12,829,163
[ 1, 9434, 326, 6835, 17024, 279, 2492, 2887, 501, 333, 353, 2566, 18, 2597, 6880, 326, 3844, 434, 225, 2437, 518, 17024, 471, 9064, 518, 316, 24893, 1210, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 6798, 1435, 3903, 8843, 429, 288, 203, 3639, 24893, 1210, 1011, 1234, 18, 1132, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...