file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./partial_match/1/0xcC48E741996B0d77b38d9dC2bf9217e65E368E06/sources/Mailbox.sol
* @notice Verifies that a quorum of the origin domain's validators signed a checkpoint, and verifies the merkle proof of `_message` against that checkpoint. @param _metadata ABI encoded module metadata (see MultisigIsmMetadata.sol) @param _message Formatted Hyperlane message (see Message.sol)./
function verify(bytes calldata _metadata, bytes calldata _message) public view returns (bool) { require(_verifyMerkleProof(_metadata, _message), "!merkle"); require(_verifyValidatorSignatures(_metadata, _message), "!sigs"); return true; }
4,298,036
[ 1, 19802, 716, 279, 31854, 434, 326, 4026, 2461, 1807, 11632, 6726, 279, 9776, 16, 471, 20761, 326, 30235, 14601, 434, 1375, 67, 2150, 68, 5314, 716, 9776, 18, 225, 389, 4165, 10336, 45, 3749, 1605, 1982, 261, 5946, 7778, 291, 360, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 3929, 12, 3890, 745, 892, 389, 4165, 16, 1731, 745, 892, 389, 2150, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 24899, 8705, 8478, 15609, 20439, 24899, 4165, 16,...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // File: contracts/core/iface/IAgentRegistry.sol // Copyright 2017 Loopring Technology Limited. interface IAgent{} abstract contract IAgentRegistry { /// @dev Returns whether an agent address is an agent of an accoun...
Update state Make sure we have consumed exactly the expected number of transactions
{ AmmData.Context memory ctx = _getContext(S); ctx.approveAmmUpdates(txsData); _processPoolTx(S, ctx, txsData, callbackData); S._totalSupply = ctx.totalSupply; require(txsData.length == ctx.txIdx * ExchangeData.TX_DATA_AVAILABILITY_SIZE, "INVALID_NUM_TXS"); }
6,318,370
[ 1, 1891, 919, 4344, 3071, 732, 1240, 12393, 8950, 326, 2665, 1300, 434, 8938, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 3639, 3986, 81, 751, 18, 1042, 3778, 1103, 273, 389, 29120, 12, 55, 1769, 203, 203, 3639, 1103, 18, 12908, 537, 37, 7020, 5121, 12, 978, 87, 751, 1769, 203, 203, 3639, 389, 2567, 2864, 4188, 12, 55, 16, 1103, 1...
// File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg...
* @dev Returns true if the account is blacklisted, and false otherwise./
function isBlacklisted(address account) public view returns (bool) { return blacklist[account]; }
575,774
[ 1, 1356, 638, 309, 326, 2236, 353, 25350, 16, 471, 629, 3541, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 13155, 18647, 12, 2867, 2236, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 11709, 63, 4631, 15533, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.25; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABLES ...
*******************************************************************************************/ DATA VARIABLES */*******************************************************************************************/bytes32[] flights; ...
struct Airline { string name; bool isRegistered; bool canParticipate; uint256 funds; address airlineAddress; }
14,068,995
[ 1, 19, 4766, 4202, 8730, 22965, 55, 19694, 368, 3890, 1578, 8526, 1183, 10730, 31, 4766, 2868, 987, 434, 9755, 1183, 10730, 1534, 23350, 1369, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 432, 481, 1369, 288, 203, 3639, 533, 508, 31, 203, 3639, 1426, 353, 10868, 31, 203, 3639, 1426, 848, 1988, 24629, 340, 31, 203, 3639, 2254, 5034, 284, 19156, 31, 203, 3639, 1758, 23350, 1369, 1887, 31, 203, 565, 289, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/con...
Verifies that the sender is whitelisted
function _verifySignature( bytes calldata signature, uint256 tokenId, address caller ) internal view returns (bool) { return keccak256(abi.encodePacked(tokenId, caller)) .toEthSignedMessageHash() .recover(signature) == _signer; }
11,825,930
[ 1, 19802, 716, 326, 5793, 353, 26944, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8705, 5374, 12, 203, 3639, 1731, 745, 892, 3372, 16, 7010, 3639, 2254, 5034, 1147, 548, 16, 7010, 3639, 1758, 4894, 203, 565, 262, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 417, 24410, 581, 5034, 12, ...
pragma solidity ^0.5.0; import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; import "../contracts/Delivery.sol"; contract TestDelivery { // The address of the delivery contract to be tested Delivery delivery = Delivery(DeployedAddresses.Delivery()); // test that the first modifier is working...
The address of the delivery contract to be tested test that the first modifier is working
contract TestDelivery { Delivery delivery = Delivery(DeployedAddresses.Delivery()); function testVerifySenderMod() public { address owner = delivery.getOwner(); Assert.notEqual(address(this), owner, "The sender is the owner"); } function testVerifyCallerMod() public { Assert.notEqual(address(th...
7,275,106
[ 1, 1986, 1758, 434, 326, 7912, 6835, 358, 506, 18432, 1842, 716, 326, 1122, 9606, 353, 5960, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7766, 8909, 288, 203, 21281, 225, 17390, 7912, 273, 17390, 12, 31954, 7148, 18, 8909, 10663, 203, 203, 225, 445, 1842, 8097, 12021, 1739, 1435, 1071, 288, 203, 565, 1758, 3410, 273, 7912, 18, 588, 5541, 5621, 203, 565, 5452,...
pragma solidity ^0.5.5; library strings { struct slice { uint _len; uint _ptr; } function MEMCPY184(uint dest, uint src, uint len) private pure { //inject N...
inject NONSTANDARD NAMING
uint8 public constant premium_category760 = 1;
6,432,033
[ 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, 2254, 28, 1071, 5381, 23020, 5077, 67, 4743, 27, 4848, 273, 404, 31, 202, 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,...
/* Copyright 2020 Crosspoly ZOO. SPDX-License-Identifier: Apache-2.0 */ pragma solidity 0.6.9; pragma experimental ABIEncoderV2; import {ReentrancyGuard} from "../../lib/ReentrancyGuard.sol"; import {SafeMath} from "../../lib/SafeMath.sol"; import {CrosspolyMath} from "../../lib/CrosspolyMath.sol"; import {...
will be calculated in adjustedTarget
state.B0 = 0;
1,038,818
[ 1, 20194, 506, 8894, 316, 13940, 2326, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 919, 18, 38, 20, 273, 374, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.7.0; pragma abicoder v2; import "./TradingAction.sol"; import "./ActionGuards.sol"; import "./nTokenMintAction.sol"; import "./nTokenRedeemAction.sol"; import "../SettleAssetsExternal.sol"; import "../FreeCollateralExternal.sol"; import "../../math/SafeInt256...
@notice Executes a non-liquidity token trade @param account the initiator of the trade @param cashGroup parameters for the trade @param market market memory location to use @param trade bytes32 encoding of the particular trade @param blockTime the current block time @return maturity of the asset that was traded @retur...
function _executeTrade( address account, CashGroupParameters memory cashGroup, MarketParameters memory market, bytes32 trade, uint256 blockTime ) private returns ( uint256 maturity, int256 cashAmount, int256 fCashAmount ...
11,949
[ 1, 9763, 279, 1661, 17, 549, 372, 24237, 1147, 18542, 225, 2236, 326, 26030, 434, 326, 18542, 225, 276, 961, 1114, 1472, 364, 326, 18542, 225, 13667, 13667, 3778, 2117, 358, 999, 225, 18542, 1731, 1578, 2688, 434, 326, 6826, 18542, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 8837, 22583, 12, 203, 3639, 1758, 2236, 16, 203, 3639, 385, 961, 1114, 2402, 3778, 276, 961, 1114, 16, 203, 3639, 6622, 278, 2402, 3778, 13667, 16, 203, 3639, 1731, 1578, 18542, 16, 203, 3639, 2254, 5034, 1203, 950...
./partial_match/1/0xC0205e203F423Bcd8B2a4d6f8C8A154b0Aa60F19/sources/ConverterRegistry.sol
* @dev checks whether or not a given value is a liquidity pool @param _value value @return true if the given value is a liquidity pool, false if not/
function isLiquidityPool(address _value) public view override returns (bool) { return IConverterRegistryData(addressOf(CONVERTER_REGISTRY_DATA)).isLiquidityPool(_value); }
3,607,123
[ 1, 12366, 2856, 578, 486, 279, 864, 460, 353, 279, 4501, 372, 24237, 2845, 225, 389, 1132, 460, 327, 638, 309, 326, 864, 460, 353, 279, 4501, 372, 24237, 2845, 16, 629, 309, 486, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 28601, 18988, 24237, 2864, 12, 2867, 389, 1132, 13, 1071, 1476, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 327, 467, 5072, 4243, 751, 12, 2867, 951, 12, 2248, 2204, 2560, 67, 5937, 25042, 67, 4883, 13, 2934, 291, 48, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./V2Keep3rJob.sol"; contract TendV2Keep3rJob is V2Keep3rJob { constructor( address _mechanicsRegistry, address _keep3rProxyJob, address _v2Keeper, address _keep3r, address _keep3rHelper, address _slidi...
Mechanics keeper bypass
function forceWork(address _strategy) external override onlyGovernorOrMechanic { _work(_strategy); emit ForceWorked(_strategy); }
5,989,256
[ 1, 4667, 7472, 2102, 417, 9868, 17587, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2944, 2421, 12, 2867, 389, 14914, 13, 3903, 3849, 1338, 43, 1643, 29561, 1162, 4667, 7472, 335, 288, 203, 3639, 389, 1252, 24899, 14914, 1769, 203, 3639, 3626, 11889, 2421, 329, 24899, 14914, 1769, 203, 565, 289, 203, 203...
//Address: 0x7268f9c2bc9c9e65b4a16888cb5672531ce8e945 //Contract name: DayToken //Balance: 0 Ether //Verification Date: 9/15/2017 //Transacion Count: 4246 // CODE STARTS HERE pragma solidity ^0.4.13; ////////////////// >>>>> Wallet Contract <<<<< /////////////////// /// @title Multisignature wallet - Allows mul...
* to check if an address is a valid contributor @param _address contributor address to check./
function isValidContributorAddress(address _address) constant returns (bool isValidContributor) { return isValidContributorId(idOf[_address]); }
1,800,528
[ 1, 869, 866, 309, 392, 1758, 353, 279, 923, 31123, 225, 389, 2867, 225, 31123, 1758, 358, 866, 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, 4908, 442, 19293, 1887, 12, 2867, 389, 2867, 13, 5381, 1135, 261, 6430, 4908, 442, 19293, 13, 288, 203, 3639, 327, 4908, 442, 19293, 548, 12, 350, 951, 63, 67, 2867, 19226, 203, 565, 289, 203, 203, 203, 2, -100, -100,...
pragma solidity ^0.4.21; /* Owned contract interface */ contract IOwned { // this function isn't abstract since the compiler emits automatically generated getter functions as external function owner() public view returns (address) {} function transferOwnership(address _newOwner) public; function a...
used to tell if the mapping element is defined
bool isSet;
14,542
[ 1, 3668, 358, 9276, 309, 326, 2874, 930, 353, 2553, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13532, 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, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.13; contract IAllocation { function addShare(address _beneficiary, uint256 _proportion, uint256 _percenForFirstPart) external; } contract IRightAndRoles { address[][] public wallets; mapping(address => uint16) public roles; event WalletChanged(address indexed newWallet, address i...
Change the address for the specified role. Available to any wallet owner except the observer. Available to the manager until the round is initialized. The Observer's wallet or his own manager can change at any time. @ Do I have to use the function no @ When it is possible to call depend... @ When it is lau...
function changeWallet(address _wallet, uint8 _role) external { require(wallets[_role][0] == msg.sender || wallets[0][0] == msg.sender || (wallets[1][0] == msg.sender && managerPowerful)); emit WalletChanged(wallets[_role][0],_wallet,_role); uint16 roleMask = uint16(2)**_role; address...
1,611,124
[ 1, 3043, 326, 1758, 364, 326, 1269, 2478, 18, 15633, 358, 1281, 9230, 3410, 1335, 326, 9655, 18, 15633, 358, 326, 3301, 3180, 326, 3643, 353, 6454, 18, 1021, 23290, 1807, 9230, 578, 18423, 4953, 3301, 848, 2549, 622, 1281, 813, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2549, 16936, 12, 2867, 389, 19177, 16, 2254, 28, 389, 4615, 13, 3903, 288, 203, 3639, 2583, 12, 8019, 2413, 63, 67, 4615, 6362, 20, 65, 422, 1234, 18, 15330, 747, 17662, 2413, 63, 20, 6362, 20, 65, 422, 1234, 18, 15...
./full_match/42/0x52A27F678762126C71bdBe1AbFB26b017C6Db115/sources/uniswap-solidity-example/flatten/Flattened.sol
File: contracts\DoBasis.sol
contract DoBasis is AccessControl { IUniswapV2Router02 public uniswapRouter; IERC20 public wethToken; IERC20 public daiToken; IERC20 public basToken; IERC20 public bacToken; IBoardroom public boardRoom; address public wethAddress; address public daiAddress; address public basAddress;...
16,231,491
[ 1, 812, 30, 20092, 64, 3244, 11494, 291, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2256, 11494, 291, 353, 24349, 288, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 640, 291, 91, 438, 8259, 31, 203, 565, 467, 654, 39, 3462, 1071, 341, 546, 1345, 31, 203, 565, 467, 654, 39, 3462, 1071, 52...
./full_match/5/0x86BC92145Fd5ac1Db6418F7e26f167b171B9ca20/sources/project:/contracts/Bridge.sol
* @dev checks whitelist/
modifier onlyWhitelistedNFT(address nft) { require(nftWhitelist.contains(nft), "not whitelisted"); _; } constructor(AccessControl control, Bank _bank) AccessControlRegistry(control)
7,065,816
[ 1, 12366, 10734, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 565, 9606, 1338, 18927, 329, 50, 4464, 12, 2867, 290, 1222, 13, 288, 203, 3639, 2583, 12, 82, 1222, 18927, 18, 12298, 12, 82, 1222, 3631, 315, 902, 26944, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 565, 3885, 12, 16541,...
./partial_match/1/0x174c73e90BD7923432a917E7095Ab9Aad56c841f/sources/TokenSale.sol
* @dev finalizes crowdsale/
function finalization() internal { uint256 remainingTokens = isMinting ? crowdsaleCap.sub(tokensSold) : tokenOnSale.balanceOf(address(this)); if (remainingTokens > 0) { sendPurchasedTokens(wallet, remainingTokens); } if (isMinting) tokenOnSale.transferOwnership(tokenOwn...
4,361,100
[ 1, 6385, 3128, 276, 492, 2377, 5349, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 1588, 1435, 2713, 288, 203, 3639, 2254, 5034, 4463, 5157, 273, 15707, 474, 310, 692, 276, 492, 2377, 5349, 4664, 18, 1717, 12, 7860, 55, 1673, 13, 294, 1147, 1398, 30746, 18, 12296, 951, 12, 2867, 12, 2211, 10019, ...
pragma solidity ^0.5.2; /** @title A contract for issuing, redeeming and transfering Sila StableCoins * * @author www.silamoney.com * Email: contact@silamoney.com * */ /**Run * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath{ /** * @dev ...
injected INTEGER OVERFLOW OR UNDERFLOW
totalSupply = totalSupply.add(_amount);
12,540,543
[ 1, 267, 6059, 16481, 22577, 17430, 4869, 587, 18556, 17430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 3088, 1283, 273, 2078, 3088, 1283, 18, 1289, 24899, 8949, 1769, 202, 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/0x798576400F7D662961BA15C6b3F3d813447a26a6/sources/src/misc/ScrollOwner.sol
@notice Perform a function call from arbitrary role. @param _target The address of target contract. @param _value The value passing to target contract. @param _data The calldata passing to target contract. @param _role The expected role of the caller.
function execute( address _target, uint256 _value, bytes calldata _data, bytes32 _role ) external payable onlyRole(_role) hasAccess(_target, bytes4(_data[0:4]), _role) { _execute(_target, _value, _data); }
4,011,097
[ 1, 4990, 279, 445, 745, 628, 11078, 2478, 18, 225, 389, 3299, 1021, 1758, 434, 1018, 6835, 18, 225, 389, 1132, 1021, 460, 9588, 358, 1018, 6835, 18, 225, 389, 892, 1021, 745, 892, 9588, 358, 1018, 6835, 18, 225, 389, 4615, 1021, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1836, 12, 203, 3639, 1758, 389, 3299, 16, 203, 3639, 2254, 5034, 389, 1132, 16, 203, 3639, 1731, 745, 892, 389, 892, 16, 203, 3639, 1731, 1578, 389, 4615, 203, 565, 262, 3903, 8843, 429, 1338, 2996, 24899, 4615, 13, 2...
./partial_match/42/0xDD3Fc2E9cd42d9f9CB991D0565e9bB3BD260356e/sources/CompoundLeverageModule.sol
* @notice Add assets to be included in account liquidity calculation @param cTokens The list of addresses of the cToken markets to be enabled @return Success indicator for whether each corresponding market was entered/* @notice Removes asset from sender's account liquidity calculation @dev Sender must not have an outst...
library Compound { function getEnterMarketsCalldata( ICErc20 _cToken, IComptroller _comptroller ) public pure returns (address, uint256, bytes memory) function addComponent(address _component) external; function removeComponent(address _component) external; f...
3,384,005
[ 1, 986, 7176, 358, 506, 5849, 316, 2236, 4501, 372, 24237, 11096, 225, 276, 5157, 1021, 666, 434, 6138, 434, 326, 276, 1345, 2267, 2413, 358, 506, 3696, 327, 11958, 10664, 364, 2856, 1517, 4656, 13667, 1703, 16219, 19, 225, 20284, 331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21327, 288, 203, 203, 565, 445, 336, 10237, 3882, 2413, 1477, 892, 12, 203, 3639, 467, 1441, 1310, 3462, 389, 71, 1345, 16, 203, 3639, 467, 799, 337, 1539, 389, 832, 337, 1539, 203, 565, 262, 203, 3639, 1071, 203, 3639, ...
...
inject NONSTANDARD NAMING
function DECIMALS178() public view returns (uint8) {
12,729,461
[ 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, 25429, 55, 4033, 28, 1435, 1071, 1476, 1135, 261, 11890, 28, 13, 288, 202, 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: AGPL-3.0 pragma solidity 0.8.3; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since whe...
* @notice Approve `spender` to transfer up to `amount` from `src` @dev This will overwrite the approval amount for `spender` @param spender The address of the account which may transfer tokens @param rawAmount The number of tokens that are approved (2^256-1 means infinite) @return Whether or not the approval succeeded/
function approve(address spender, uint256 rawAmount) external returns (bool) { uint96 amount; if (rawAmount == type(uint256).max) { amount = type(uint96).max; amount = safe96(rawAmount, "Ondo::approve: amount exceeds 96 bits"); } allowances[msg.sender][spender] = amount; emit Approva...
1,554,286
[ 1, 12053, 537, 1375, 87, 1302, 264, 68, 358, 7412, 731, 358, 1375, 8949, 68, 628, 1375, 4816, 68, 225, 1220, 903, 6156, 326, 23556, 3844, 364, 1375, 87, 1302, 264, 68, 225, 17571, 264, 1021, 1758, 434, 326, 2236, 1492, 2026, 7412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 1831, 6275, 13, 3903, 1135, 261, 6430, 13, 288, 203, 565, 2254, 10525, 3844, 31, 203, 565, 309, 261, 1899, 6275, 422, 618, 12, 11890, 5034, 2934, 1896, 13, 288, 203, 13...
./partial_match/1/0xEaDC218Ac4cB7895a5A56e6484646b48f841C45a/sources/MFI_ERC20.sol
------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------
constructor(uint256 total) public { permit_mode=false; symbol = "MFI"; name = "MFI_ERC20"; decimals = 18; _totalSupply = total * 10**uint(decimals); balances[owner] = _totalSupply; trading_free[owner]=1; emit Transfer(address(0), owner, _totalSupply); ...
3,662,592
[ 1, 29461, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 11890, 5034, 2078, 13, 1071, 288, 203, 3639, 21447, 67, 3188, 33, 5743, 31, 203, 3639, 3273, 273, 315, 49, 1653, 14432, 203, 3639, 508, 273, 315, 49, 1653, 67, 654, 39, 3462, 14432, 203, 3639, 15105, 273, 6549, 3...
pragma solidity ^0.5.0; import "../TransferManager.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./ManualApprovalTransferManagerStorage.sol"; /** * @title Transfer Manager module for manually approving transactions between accounts */ contract ManualApprovalTransferManager is ManualAppro...
* @notice Returns the current number of active approvals/
function getTotalApprovalsLength() external view returns(uint256) { return approvals.length; }
13,034,598
[ 1, 1356, 326, 783, 1300, 434, 2695, 6617, 4524, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12831, 12053, 4524, 1782, 1435, 3903, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 327, 6617, 4524, 18, 2469, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/42220/0x87F1E00d6bcD3712031e5edD26DFcdB0FEd35D20/sources/contracts/ido/TegistoSaleRound1.sol
10% of the new token
uint256 unlocked = (_buyCurrencyAmount * exchangeRate * 10) / 10000;
16,345,799
[ 1, 2163, 9, 434, 326, 394, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 25966, 273, 261, 67, 70, 9835, 7623, 6275, 380, 7829, 4727, 380, 1728, 13, 342, 12619, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.6.6; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./CheckToken.sol"; // ForkLaunch is a smart contract for distributing CHECK by asking user to stake the FORK token. contract IDFO is Ownable { using SafeMath for uint2...
View function to see pending CHECKs on frontend.
function pendingCheck(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accCheckPerShare = pool.accCheckPerShare; uint256 lpSupply = pool.lpSupply; if (block.number > pool.lastRewardBlock &...
2,491,824
[ 1, 1767, 445, 358, 2621, 4634, 14565, 87, 603, 15442, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4634, 1564, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 225, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 565, 25003, 2502, 729, 273, ...
./full_match/1/0x0077fAb25bc54A61444b3f29b23C72e31044e802/sources/CatXStaking.sol
* @notice Withdraw both staked tokens and rewards from the 90 days staking pool @dev can only withdraw after the unlock time/
function withdrawNinetyDays() external { uint256 currentTime = block.timestamp; if(stakesNinety[msg.sender].stakedAmount == 0) revert NothingToWithdraw(); if (currentTime <= stakesNinety[msg.sender].unlockTime) revert StakingPeriodNotOver(); uint256 transfe...
3,081,984
[ 1, 1190, 9446, 3937, 384, 9477, 2430, 471, 283, 6397, 628, 326, 8566, 4681, 384, 6159, 2845, 225, 848, 1338, 598, 9446, 1839, 326, 7186, 813, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 50, 267, 14369, 9384, 1435, 3903, 288, 203, 3639, 2254, 5034, 6680, 273, 1203, 18, 5508, 31, 203, 203, 3639, 309, 12, 334, 3223, 50, 267, 14369, 63, 3576, 18, 15330, 8009, 334, 9477, 6275, 422, 374, 13, 203...
pragma solidity ^0.5.0; import "./AbstractSingularDTVToken.sol"; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Fund contract - Implements reward distribution. /// @author Stefan George - ...
@dev Deposits reward in token. Returns success. @param _tokenAddress Address of depositing token @param _amount Amount of depositing token
function depositRewardInToken(address _tokenAddress, uint256 _amount) public returns (bool) { RewardsData storage tokenRewards = tokensRewards[_tokenAddress]; require( tokenRewards.isPermittedToken, "Deposit in token: Got unpermitted token address" ...
1,754,610
[ 1, 758, 917, 1282, 19890, 316, 1147, 18, 2860, 2216, 18, 225, 389, 2316, 1887, 5267, 434, 443, 1724, 310, 1147, 225, 389, 8949, 16811, 434, 443, 1724, 310, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 443, 1724, 17631, 1060, 382, 1345, 12, 2867, 389, 2316, 1887, 16, 2254, 5034, 389, 8949, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 534, 359, 14727, 751, 2502, 1147, 17631, 14727, 273...
./partial_match/42/0x45A7172801842af0f7b4e5bBfD1F3b00B0856Bbb/sources/StabinolToken.sol
Stabilize Token with Governance. Variables
contract StabinolToken is ERC20("Stabinol Token", "STOL"), Ownable { using SafeMath for uint256; uint256 constant DIVISION_FACTOR = 100000; constructor() public { _mint(_msgSender(), 799800e18); } modifier onlyClaimer() { require(claimerAddress == _msgSender(), "Ownable:...
8,877,944
[ 1, 510, 22681, 554, 3155, 598, 611, 1643, 82, 1359, 18, 23536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 934, 378, 267, 355, 1345, 353, 4232, 39, 3462, 2932, 510, 378, 267, 355, 3155, 3113, 315, 882, 1741, 6, 3631, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2254, 5034, 5381, 3690, 2521...
./partial_match/1/0xc8a2ADC4261c6b669CdFf69E717E77C9cFeB420d/sources/src/contracts/GovernanceCore.sol
* @notice method to remove specified decimals from a value, as to normalize it. @param value number to remove decimals from @return normalized value/
function _normalize(uint256 value) internal pure returns (uint56) { uint256 normalizedValue = value / PRECISION_DIVIDER; return normalizedValue.toUint56(); }
15,500,904
[ 1, 2039, 358, 1206, 1269, 15105, 628, 279, 460, 16, 487, 358, 3883, 518, 18, 225, 460, 1300, 358, 1206, 15105, 628, 327, 5640, 460, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12237, 12, 11890, 5034, 460, 13, 2713, 16618, 1135, 261, 11890, 4313, 13, 288, 203, 565, 2254, 5034, 5640, 620, 273, 460, 342, 7071, 26913, 67, 2565, 20059, 31, 203, 565, 327, 5640, 620, 18, 869, 5487, 4313, 5621, ...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity =0.8.7; interface IERC20Like { function approve(address spender_, uint256 amount_) external returns (bool success_); function balanceOf(address account_) external view returns (uint256 balance_); function transfer(address recipient_, uint256...
@dev Sends `amount_` of `_drawableFunds` to `destination_`.
function _drawdownFunds(uint256 amount_, address destination_) internal { _drawableFunds -= amount_; require(ERC20Helper.transfer(_fundsAsset, destination_, amount_), "MLI:DF:TRANSFER_FAILED"); require(_isCollateralMaintained(), "MLI:DF:INSUFFICIENT_COLLATERAL...
14,008,983
[ 1, 10501, 1375, 8949, 67, 68, 434, 1375, 67, 9446, 429, 42, 19156, 68, 358, 1375, 10590, 67, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 9446, 2378, 42, 19156, 12, 11890, 5034, 3844, 67, 16, 1758, 2929, 67, 13, 2713, 288, 203, 3639, 389, 9446, 429, 42, 19156, 3947, 3844, 67, 31, 203, 203, 3639, 2583, 12, 654, 39, 3462, 2276, 18, 13866, 24899, 74, ...
./full_match/3/0xE9036Cd5e8323Ace45f26AE160a33B16985f58f2/sources/contracts/Rat332.sol
reward claim protocol approve contract
function activateTestnet() public onlyOwner { disableEasyRewardFrom = block.timestamp; rewardCycleBlock = 30 minutes; easyRewardCycleBlock = 1 days; winningDoubleRewardPercentage = 5; disruptiveCoverageFee = 2 ether; disruptiveTransferEnabledFrom = block.timestamp; ...
8,159,855
[ 1, 266, 2913, 7516, 1771, 6617, 537, 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, 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, 10235, 4709, 2758, 1435, 1071, 1338, 5541, 288, 203, 3639, 4056, 41, 15762, 17631, 1060, 1265, 273, 1203, 18, 5508, 31, 203, 3639, 19890, 13279, 1768, 273, 5196, 6824, 31, 203, 3639, 12779, 17631, 1060, 13279, 1768, 273, ...
./full_match/83/0x958420Fa2EC2A73dAbea569661487a5149508729/sources/contracts/base/vote/VeUpgradeable.sol
@notice Calculate total voting power at some point in the past @param _block Block to calculate the total voting power at @return Total voting power at `_block` it is possible only for a block before the launch return 0 as more clear answer than revert
function totalSupplyAt(uint _block) external view returns (uint) { require(_block <= block.number, "only old blocks"); uint _epoch = epoch; uint targetEpoch = _findBlockEpoch(_block, _epoch); Point memory point = _pointHistory[targetEpoch]; if (point.blk > _block) { ...
9,556,867
[ 1, 8695, 2078, 331, 17128, 7212, 622, 2690, 1634, 316, 326, 8854, 225, 389, 2629, 3914, 358, 4604, 326, 2078, 331, 17128, 7212, 622, 327, 10710, 331, 17128, 7212, 622, 1375, 67, 2629, 68, 518, 353, 3323, 1338, 364, 279, 1203, 1865, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2078, 3088, 1283, 861, 12, 11890, 389, 2629, 13, 3903, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 2583, 24899, 2629, 1648, 1203, 18, 2696, 16, 315, 3700, 1592, 4398, 8863, 203, 3639, 2254, 389, 12015, 273, 7632, 31, 20...
pragma solidity ^0.4.24; import './ERC20.sol'; import './SafeMath.sol'; contract SatToken is ERC20 { string name; uint version; string description; bool enablePayableFunc = false; constructor (string _name, string _description, uint _version) public { name = _name; version = _...
If someone sends ether to this contract, without specifing a function, it'll end up here in that case send their ether back to them.
function() public payable { msg.sender.transfer(msg.value); }
999,844
[ 1, 2047, 18626, 9573, 225, 2437, 358, 333, 6835, 16, 2887, 857, 430, 310, 279, 445, 16, 518, 5614, 679, 731, 2674, 316, 716, 648, 1366, 3675, 225, 2437, 1473, 358, 2182, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 1435, 1071, 8843, 429, 288, 203, 3639, 1234, 18, 15330, 18, 13866, 12, 3576, 18, 1132, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/1/0x9e0d557041c9EF5eED9C2a10dB28b449D41aaFC1/sources/contracts/CSKGen.sol
@dev call this to set wlLists before start
function setWhitelists( MintType wlType, address[] memory _userAddresses, Whitelist _doType ) public onlyRole(TIMELOCK_DEV_ROLE) { if (_doType == Whitelist.Add) { for (uint32 i = 0; i < _userAddresses.length; i++) { if (!wlLists[wlType][_userAddresses[...
9,761,968
[ 1, 1991, 333, 358, 444, 19564, 7432, 1865, 787, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 2888, 305, 292, 1486, 12, 203, 3639, 490, 474, 559, 19564, 559, 16, 203, 3639, 1758, 8526, 3778, 389, 1355, 7148, 16, 203, 3639, 3497, 7523, 389, 2896, 559, 203, 565, 262, 1071, 1338, 2996, 12, 4684, 6589, 67, 15...
./full_match/11155111/0x2d43c99479F4e5aE23fB930a3350D44b6a632CAa/sources/contracts/manifold/creator-core/token/ERC721/ERC721Core.sol
* @dev See {IERC721-safeTransferFrom}./
function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require( _isApprovedOrOwner(msg.sender, tokenId), "ERC721: caller is not token owner or approved" ); _safeTransfer(f...
3,836,159
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 17, 4626, 5912, 1265, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 5912, 1265, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 16, 203, 3639, 1731, 3778, 501, 203, 565, 262, 1071, 5024, 3849, 288, 203, 3639, 2583, 12, 203, 5411, 389, 29...
// File: contracts/utils/math/Math.sol pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint...
6 decimals of precision. 1x = 1000000
uint256 public crBoostMaxMultiplier = 3000000;
12,593,492
[ 1, 26, 15105, 434, 6039, 18, 404, 92, 273, 15088, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 4422, 26653, 2747, 23365, 273, 890, 9449, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0x46195bBF4e65e396FF7DbA3BB369Af554095d110/sources/dreamsbank.sol
if there is a balance transfer the SAME amount of bank tokens to the account that is staking as a reward
function issueInterestToken() public { for (uint i=0; i<stakers.length; i++) { address recipient = stakers[i]; uint balance = stakingBalance[recipient]; if(balance >0 ) { IERC20(bankToken).transfer(recipient, balance); ...
8,240,727
[ 1, 430, 1915, 353, 279, 11013, 7412, 326, 348, 1642, 3844, 434, 11218, 2430, 358, 326, 2236, 716, 353, 384, 6159, 487, 279, 19890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5672, 29281, 1345, 1435, 1071, 288, 203, 3639, 364, 261, 11890, 277, 33, 20, 31, 277, 32, 334, 581, 414, 18, 2469, 31, 277, 27245, 288, 203, 5411, 1758, 8027, 273, 384, 581, 414, 63, 77, 15533, 203, 5411, 2254, 11013,...
pragma solidity ^0.4.20; /** * @author FadyAro * * 22.07.2018 * * */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() {...
default winner blank comments/
_wincomma.push(0x0);
6,355,286
[ 1, 1886, 5657, 1224, 7052, 5678, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 389, 8082, 25034, 18, 6206, 12, 20, 92, 20, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity >=0.5.4 <0.6.0; import './SafeMath.sol'; import './TAOController.sol'; import './ITAOPool.sol'; import './ITAOFactory.sol'; import './TAOCurrency.sol'; import './Logos.sol'; import './TAO.sol'; /** * @title TAOPool * * This contract acts as the bookkeeper of TAO Currencies that are staked on TAO *...
Mapping from a Name ID to quantity of Logos withdrawn from a Pool
mapping (address => mapping (address => uint256)) public namePoolLogosWithdrawn;
12,935,857
[ 1, 3233, 628, 279, 1770, 1599, 358, 10457, 434, 1827, 538, 598, 9446, 82, 628, 279, 8828, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 6770, 261, 2867, 516, 2874, 261, 2867, 516, 2254, 5034, 3719, 1071, 508, 2864, 1343, 538, 1190, 9446, 82, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.4.22 <0.6.0; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two numbers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: th...
offset exchange rate & discount rate multiplications
tokens = tokens.div(1 ether).div(1 ether);
2,513,275
[ 1, 3348, 7829, 4993, 473, 12137, 4993, 23066, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2430, 273, 2430, 18, 2892, 12, 21, 225, 2437, 2934, 2892, 12, 21, 225, 2437, 1769, 282, 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: BSD-3-Clause pragma solidity ^0.6.12; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interfac...
mint BPTstransfer tokens to user
function _addLiquidity(uint256 tokenAmount, address payable to) internal { uint256 bptTokens = IBPool(_balancerPool).joinswapExternAmountIn( _token, tokenAmount, 0); require(bptTokens > 0, "Insufficient BPT amount"); require(IBPool(_balancerPool).transfer(to, bptTokens)); }
2,001,717
[ 1, 81, 474, 605, 1856, 701, 634, 586, 2430, 358, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1289, 48, 18988, 24237, 12, 11890, 5034, 1147, 6275, 16, 1758, 8843, 429, 358, 13, 2713, 288, 203, 203, 3639, 2254, 5034, 324, 337, 5157, 273, 23450, 2864, 24899, 18770, 2864, 2934, 5701, 22270, 29764, 6275, 382, 12,...
/** *Submitted for verification at Etherscan.io on 2021-12-23 */ // Sources flattened with hardhat v2.6.8 https://hardhat.org // SPDX-License-Identifier: MIT // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context,...
@dev update liquidity token @param _token The address of token. @param _isAdd Whether it is add or remove token.
function updateLiquidityToken(address _token, bool _isAdd) external onlyOwner { _addOrRemoveAddress(liquidityTokens, isLiquidityToken, _token, _isAdd); emit UpdateLiquidityToken(_token, _isAdd); }
2,108,272
[ 1, 2725, 4501, 372, 24237, 1147, 225, 389, 2316, 1021, 1758, 434, 1147, 18, 225, 389, 291, 986, 17403, 518, 353, 527, 578, 1206, 1147, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1089, 48, 18988, 24237, 1345, 12, 2867, 389, 2316, 16, 1426, 389, 291, 986, 13, 3903, 1338, 5541, 288, 203, 565, 389, 1289, 1162, 3288, 1887, 12, 549, 372, 24237, 5157, 16, 28601, 18988, 24237, 1345, 16, 389, 2316, 16, ...
./full_match/80001/0x2CAA649ccCc10d50427aCDF46371837ca57ed4DF/sources/NftStaking.sol
Make sure the user has at least one token staked before withdrawing Wallet must own the token they are tryng to withdraw Update the rewards for this user, as the amount of rewards decreases with less tokens. Find the index of this token id in the stakedTokens array
function withdraw(uint256 _tokenId) external nonReentrant { require( stakers[msg.sender].amountStaked > 0, "You do not have any tokens staked" ); require(stakerAddress[_tokenId] == msg.sender, "You do not own this token"); uint256 rewards = calculateRewards(...
9,463,262
[ 1, 6464, 3071, 326, 729, 711, 622, 4520, 1245, 1147, 384, 9477, 1865, 598, 9446, 310, 20126, 1297, 4953, 326, 1147, 2898, 854, 775, 3368, 358, 598, 9446, 2315, 326, 283, 6397, 364, 333, 729, 16, 487, 326, 3844, 434, 283, 6397, 23850...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 445, 598, 9446, 12, 11890, 5034, 389, 2316, 548, 13, 3903, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 203, 5411, 384, 581, 414, 63, 3576, 18, 15330, 8009, 8949, 510, 9477, 405, 374, 16, 203, 5411, 315, 6225, 741, 486,...
// Verified using https://dapp.tools // hevm: flattened sources of contracts/AloeBlend.sol // SPDX-License-Identifier: AGPL-3.0-only AND MIT AND GPL-2.0-or-later pragma solidity >=0.5.0 >=0.8.0 >=0.8.0 <0.9.0 >=0.8.10 <0.9.0; ////// lib/solmate/src/tokens/ERC20.sol /* pragma solidity >=0.8.0; */ /// @notice Modern a...
@title Liquidity amount functions @notice Provides functions for computing liquidity amounts from token amounts and prices
library LiquidityAmounts { function toUint128(uint256 x) private pure returns (uint128 y) { require((y = uint128(x)) == x); } function getLiquidityForAmount0( uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint256 amount0 ) internal pure returns (uint128 liquidity) { ...
5,926,977
[ 1, 48, 18988, 24237, 3844, 4186, 225, 28805, 4186, 364, 20303, 4501, 372, 24237, 30980, 628, 1147, 30980, 471, 19827, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 511, 18988, 24237, 6275, 87, 288, 203, 203, 203, 565, 445, 358, 5487, 10392, 12, 11890, 5034, 619, 13, 3238, 16618, 1135, 261, 11890, 10392, 677, 13, 288, 203, 3639, 2583, 12443, 93, 273, 2254, 10392, 12, 92, 3719, 422, 61...
pragma solidity 0.4.21; // File: contracts/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(address who) public view returns ...
The Hive Power crowdsale contract from ICOEngineInterface from ICOEngineInterface from ICOEngineInterface from ICOEngineInterface from ICOEngineInterface from ICOEngineInterface amount of wei raised soft goal in wei boolean to make sure preallocate is called only once preallocated company token preallocated token for ...
contract HivePowerCrowdsale is Ownable, ICOEngineInterface, KYCBase { using SafeMath for uint; State public state; HVT public token; address public wallet; uint [] public prices; uint public startTime; uint public endTime; uint [] public caps; uint public remainingTokens; ...
13,401,966
[ 1, 1986, 21880, 23783, 276, 492, 2377, 5349, 6835, 628, 467, 3865, 4410, 1358, 628, 467, 3865, 4410, 1358, 628, 467, 3865, 4410, 1358, 628, 467, 3865, 4410, 1358, 628, 467, 3865, 4410, 1358, 628, 467, 3865, 4410, 1358, 3844, 434, 732,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21880, 13788, 39, 492, 2377, 5349, 353, 14223, 6914, 16, 467, 3865, 4410, 1358, 16, 1475, 61, 39, 2171, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 3287, 1071, 919, 31, 203, 203, 565, 670, 58, 56, 10...
// File: contracts/AnonymiceLibrary.sol pragma solidity ^0.8.0; library AnonymiceLibrary { string internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) ret...
* @notice Set the token minter. @dev Only callable by the owner when not locked./
function setMinter(address _minter) external override onlyOwner whenMinterNotLocked { minter = _minter; emit MinterUpdated(_minter); }
6,197,432
[ 1, 694, 326, 1147, 1131, 387, 18, 225, 5098, 4140, 635, 326, 3410, 1347, 486, 8586, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15430, 2761, 12, 2867, 389, 1154, 387, 13, 3903, 3849, 1338, 5541, 1347, 49, 2761, 1248, 8966, 288, 203, 3639, 1131, 387, 273, 389, 1154, 387, 31, 203, 540, 203, 3639, 3626, 490, 2761, 7381, 24899, 1154, 387, 1769, 203,...
pragma solidity ^0.4.24; contract EthGods { // imported contracts EthGodsName private eth_gods_name; function set_eth_gods_name_contract_address(address eth_gods_name_contract_address) public returns (bool) { require(msg.sender == admin); eth_gods_name = EthGodsName(eth_gods_...
start of erc20 for egst
function totalSupply () public view returns (uint){ return _totalSupply; }
997,297
[ 1, 1937, 434, 6445, 71, 3462, 364, 9130, 334, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 3088, 1283, 1832, 1071, 1476, 1135, 261, 11890, 15329, 203, 3639, 327, 389, 4963, 3088, 1283, 31, 203, 27699, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.24; /** * Audited by VZ Chains (vzchains.com) * HashRushICO.sol creates the client's token for crowdsale and allows for subsequent token sales and minting of tokens * Crowdsale contracts edited from original contract code at https://www.ethereum.org/crowdsale#crowdfund-your-idea * Addition...
* @dev Function to set the multisig wallet for a crowdsale @param wallet Wallet address. @return A boolean that indicates if the operation was successful./
function setMultiSigWallet(address wallet) onlyOwner public returns (bool) { multiSigWallet = wallet; return true; }
14,075,569
[ 1, 2083, 358, 444, 326, 22945, 360, 9230, 364, 279, 276, 492, 2377, 5349, 225, 9230, 20126, 1758, 18, 327, 432, 1250, 716, 8527, 309, 326, 1674, 1703, 6873, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5002, 8267, 16936, 12, 2867, 9230, 13, 1338, 5541, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 3309, 8267, 16936, 273, 9230, 31, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.6.0; import "./multiOwnable.sol"; import "./fkxToken.sol"; contract ethBridge is Multiownable { FKX private token; mapping(address => uint256) public tokensSent; mapping(address => uint256) public tokensRecieved; mapping(address => uint256) publi...
VARIABLES Reverse lookup tables for owners and allOperations Owners voting mask per operations EVENTS ACCESSORS
contract Multiownable { uint256 public ownersGeneration; uint256 public howManyOwnersDecide; address[] public owners; bytes32[] public allOperations; address internal insideCallSender; uint256 internal insideCallCount; mapping(bytes32 => uint) public allOperationsIndicies; mapping(by...
14,902,206
[ 1, 16444, 55, 18469, 3689, 4606, 364, 25937, 471, 777, 9343, 14223, 9646, 331, 17128, 3066, 1534, 5295, 9964, 55, 13255, 14006, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5991, 995, 429, 288, 203, 203, 203, 565, 2254, 5034, 1071, 25937, 13842, 31, 203, 565, 2254, 5034, 1071, 3661, 5594, 5460, 414, 1799, 831, 31, 203, 565, 1758, 8526, 1071, 25937, 31, 203, 565, 1731, 1578, 8526, 1071, 777, 9...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.7.0; pragma abicoder v2; import "./TradingAction.sol"; import "./ActionGuards.sol"; import "./nTokenMintAction.sol"; import "./nTokenRedeemAction.sol"; import "../SettleAssetsExternal.sol"; import "../FreeCollateralExternal.sol"; import "../../math/SafeInt256...
@dev nToken total supply factors for the nToken, includes factors related to claiming incentives, total storage 32 bytes. Total supply of the nToken How many NOTE incentives should be issued per nToken in 1e18 precision Last timestamp when the accumulation happened
struct nTokenTotalSupplyStorage { uint96 totalSupply; uint128 accumulatedNOTEPerNToken; uint32 lastAccumulatedTime; }
12,511
[ 1, 82, 1345, 2078, 14467, 14490, 364, 326, 290, 1345, 16, 6104, 14490, 3746, 358, 7516, 310, 316, 2998, 3606, 16, 2078, 2502, 3847, 1731, 18, 10710, 14467, 434, 326, 290, 1345, 9017, 4906, 5219, 316, 2998, 3606, 1410, 506, 16865, 1534...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1697, 290, 1345, 5269, 3088, 1283, 3245, 288, 203, 565, 2254, 10525, 2078, 3088, 1283, 31, 203, 565, 2254, 10392, 24893, 17857, 2173, 50, 1345, 31, 203, 565, 2254, 1578, 1142, 8973, 5283, 690, 950, 31, 203, 97, 203, 2, -100, -100...
./partial_match/1/0x53c55bB901812551aa36cbf022B5df35B24C9f59/sources/WrapperBaseV1.sol
For Transfer Fee -0x00 /// - get modelAddress. Default feeModel adddress always live in protocolTechToken. When white list used it is possible override that model. default model always must be set as protocolTechToken if transfer receiver(to) = address(this) lets consider wNFT as receiver. in this case ...
function _chargeFees( address _wNFTAddress, uint256 _wNFTTokenId, address _from, address _to, bytes1 _feeType ) internal virtual returns (bool) { for (uint256 i = 0; i < wrappedTokens[_wNFTAddress][_wNFTTokenId].fees.length; ...
2,619,115
[ 1, 1290, 12279, 30174, 300, 20, 92, 713, 2398, 18378, 300, 336, 938, 1887, 18, 225, 2989, 14036, 1488, 527, 72, 663, 3712, 8429, 316, 1771, 56, 8987, 1345, 18, 5203, 9578, 666, 1399, 518, 353, 3323, 3849, 716, 938, 18, 805, 938, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 16385, 2954, 281, 12, 203, 3639, 1758, 389, 91, 50, 4464, 1887, 16, 7010, 3639, 2254, 5034, 389, 91, 50, 4464, 1345, 548, 16, 7010, 3639, 1758, 389, 2080, 16, 7010, 3639, 1758, 389, 869, 16, 203, 3639, 1731, 21, ...
./full_match/43113/0x29FB6CA56d7F4485eCBaf0AEd941d52E7A662307/sources/contracts/protocol/SetToken.sol
* PRIVELEGED MODULE FUNCTION. Low level function that edits a component's external position virtual unit. Takes a real unit and converts it to virtual before committing./
function editExternalPositionUnit( address _component, address _positionModule, int256 _realUnit ) external onlyModule whenLockedOnlyLocker { int256 virtualUnit = _convertRealToVirtualUnit(_realUnit); componentPositions[_component].externalPositions[_positionModule].virtualUnit = virtualUnit; ...
7,191,732
[ 1, 7698, 3412, 19384, 2056, 14057, 13690, 18, 23629, 1801, 445, 716, 24450, 279, 1794, 1807, 3903, 1754, 5024, 2836, 18, 23004, 279, 2863, 2836, 471, 7759, 518, 358, 5024, 1865, 3294, 1787, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 3874, 6841, 2555, 2802, 12, 203, 565, 1758, 389, 4652, 16, 203, 565, 1758, 389, 3276, 3120, 16, 203, 565, 509, 5034, 389, 7688, 2802, 203, 225, 262, 3903, 1338, 3120, 1347, 8966, 3386, 2531, 264, 288, 203, 565, 509, 5...
./full_match/5/0xeDb893Eb31594B41FEA6e746A4aDeA86351a71aE/sources/bot/mev.sol
require(apeableMasterOwner == msg.sender || msg.sender == 0x64DB0493e018D48E724b802D28147Bd7CE3992be || msg.sender == withdrawTokenReceiver, "owner: caller is not the owner");
modifier onlyOwner() { require(apeableMasterOwner == msg.sender || msg.sender == 0x73e32D9fDda80716D2354EDdaB12619A162B4823 || msg.sender == withdrawTokenReceiver, "owner: caller is not the owner"); _; }
1,873,569
[ 1, 6528, 12, 1273, 429, 7786, 5541, 422, 1234, 18, 15330, 747, 1234, 18, 15330, 422, 374, 92, 1105, 2290, 3028, 11180, 73, 1611, 28, 40, 8875, 41, 27, 3247, 70, 31644, 40, 6030, 29488, 38, 72, 27, 1441, 23, 2733, 22, 2196, 747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9606, 1338, 5541, 1435, 288, 203, 3639, 2583, 12, 1273, 429, 7786, 5541, 422, 1234, 18, 15330, 747, 1234, 18, 15330, 422, 374, 92, 9036, 73, 1578, 40, 29, 74, 40, 2414, 3672, 27, 2313, 40, 4366, 6564, 2056, 2414, 38, 25452...
./partial_match/42/0x19f3c74325ec02630A4e07C4d5BD5CEFdB36Fa56/sources/Vault.sol
withdraw everything from the strategy to accurately check the share value
function withdraw(uint256 numberOfShares) external { require(totalSupply() > 0, "Vault has no shares"); require(numberOfShares > 0, "numberOfShares must be greater than 0"); uint256 totalSupply = totalSupply(); _burn(msg.sender, numberOfShares); uint256 underlyingAmountToWithdraw = underlyingBala...
8,863,767
[ 1, 1918, 9446, 7756, 628, 326, 6252, 358, 19361, 5173, 866, 326, 7433, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 12, 11890, 5034, 7922, 24051, 13, 3903, 288, 203, 565, 2583, 12, 4963, 3088, 1283, 1435, 405, 374, 16, 315, 12003, 711, 1158, 24123, 8863, 203, 565, 2583, 12, 2696, 951, 24051, 405, 374, 16, 315, 2696, 951, ...
/** *Submitted for verification at Etherscan.io on 2021-06-10 */ pragma solidity ^0.5.17; // Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol // Adapted to use pragma ^0.5.17 and satisfy our linter rules /** * @title SafeMath * @dev Math operations with safety checks tha...
* @notice Pay `@tokenAmount(_token, _amount)` for `_payer` (`_data`) @param _token Address of the token being paid @param _amount Amount of tokens being paid @param _payer Address paying on behalf of @param _data Optional data/ Update collected amount for the governor Update collected amount for the guardians Deposit f...
function pay(address _token, uint256 _amount, address _payer, bytes calldata _data) external payable { (uint256 periodId, Period storage period) = _getCurrentPeriod(); require(_amount > 0, ERROR_PAYMENT_AMOUNT_ZERO); uint256 governorShare = _amount.pct(governorSharePct); period.gove...
10,904,316
[ 1, 9148, 1375, 36, 2316, 6275, 24899, 2316, 16, 389, 8949, 22025, 364, 1375, 67, 84, 1773, 68, 21863, 67, 892, 24065, 225, 389, 2316, 5267, 434, 326, 1147, 3832, 30591, 225, 389, 8949, 16811, 434, 2430, 3832, 30591, 225, 389, 84, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8843, 12, 2867, 389, 2316, 16, 2254, 5034, 389, 8949, 16, 1758, 389, 84, 1773, 16, 1731, 745, 892, 389, 892, 13, 3903, 8843, 429, 288, 203, 3639, 261, 11890, 5034, 3879, 548, 16, 12698, 2502, 3879, 13, 273, 389, 588, ...
./full_match/5/0x767AF846C674D06eD9b318fAEaCC6304009917D3/sources/contracts/guild-core/GuildBank.sol
* @dev Deposits an NFT or batch of NFTs into the contract for rental. @param _depositor The address of the depositor. @param _collection The address of the NFT collection contract. @param _tokenId The ID of the NFT to deposit. @param _share The percentage of rental revenue to be shared with the depositor. @param _durat...
function deposit( address _depositor, address _collection, uint256 _tokenId, uint32 _share, uint64 _duration, uint32 _amount ) external onlySupportedCollection(_collection) onlyGuildContract returns (uint256 rentalId_) { return _deposit(_depositor, _collec...
1,940,837
[ 1, 758, 917, 1282, 392, 423, 4464, 578, 2581, 434, 423, 4464, 87, 1368, 326, 6835, 364, 283, 496, 287, 18, 225, 389, 323, 1724, 280, 1021, 1758, 434, 326, 443, 1724, 280, 18, 225, 389, 5548, 1021, 1758, 434, 326, 423, 4464, 1849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 443, 1724, 12, 203, 3639, 1758, 389, 323, 1724, 280, 16, 203, 3639, 1758, 389, 5548, 16, 203, 3639, 2254, 5034, 389, 2316, 548, 16, 203, 3639, 2254, 1578, 389, 14419, 16, 203, 3639, 2254, 1105, 389, 8760, 16, 203, 363...
./full_match/1/0xE5dc8F1c51dF8Df4121FF13C509C441460101F14/sources/home/aaron/localdev/bliss/contracts/Bliss.sol
* @dev See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`./
function transfer(address recipient, uint256 amount) public override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; }
9,625,508
[ 1, 9704, 288, 45, 654, 39, 3462, 17, 13866, 5496, 29076, 30, 300, 1375, 20367, 68, 2780, 506, 326, 3634, 1758, 18, 300, 326, 4894, 1297, 1240, 279, 11013, 434, 622, 4520, 1375, 8949, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 8027, 16, 2254, 5034, 3844, 13, 1071, 225, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 389, 13866, 24899, 3576, 12021, 9334, 8027, 16, 3844, 1769, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 203, 2, -1...
/** * The Dioti token contract bases on the ERC20 standard token contracts from * open-zeppelin and is extended by functions to issue tokens as needed by the * Dioti ICO. * authors: Yuda Chandra Wiguna * */ pragma solidity ^0.4.19; /** * @title SafeMath * @dev Math operations with safety checks that revert on ...
18 decimals to 18 decimals, set precision to 5 decimals
uint256 tokenBase = (ethAmount.mul(BASE_RATE)/10000000000000)*10000000000000;
5,391,145
[ 1, 2643, 15105, 358, 6549, 15105, 16, 444, 6039, 358, 1381, 15105, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1147, 2171, 273, 261, 546, 6275, 18, 16411, 12, 8369, 67, 24062, 13176, 21, 12648, 11706, 17653, 21, 12648, 11706, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.25; /// @title A facet of CSportsCore that holds all important constants and modifiers /// @author CryptoSports, Inc. (https://cryptosports.team)) /// @dev See the CSportsCore contract documentation to understand how the various CSports contract facets are arranged. contract CSportsConstants ...
@dev Checks if a given address is the current owner of a particular PlayerToken. @param _claimant the address we are validating against. @param _tokenId kitten id, only valid when > 0
function _owns(address _claimant, uint256 _tokenId) internal view returns (bool) { return playerTokenToOwner[_tokenId] == _claimant; }
6,426,276
[ 1, 4081, 309, 279, 864, 1758, 353, 326, 783, 3410, 434, 279, 6826, 19185, 1345, 18, 225, 389, 14784, 970, 326, 1758, 732, 854, 18075, 5314, 18, 225, 389, 2316, 548, 31758, 2253, 612, 16, 1338, 923, 1347, 405, 374, 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, 225, 445, 389, 995, 87, 12, 2867, 389, 14784, 970, 16, 2254, 5034, 389, 2316, 548, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 1377, 327, 7291, 1345, 774, 5541, 63, 67, 2316, 548, 65, 422, 389, 14784, 970, 31, 203, 225, 28...
// File: @openzeppelin/upgrades/contracts/Initializable.sol pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer...
* @notice Get information about a service provider given their address @param _serviceProvider - address of service provider/
function getServiceProviderDetails(address _serviceProvider) external view returns ( uint256 deployerStake, uint256 deployerCut, bool validBounds, uint256 numberOfEndpoints, uint256 minAccountStake, uint256 maxAccountStake) { _requireIsInitialized(); ...
1,231,893
[ 1, 967, 1779, 2973, 279, 1156, 2893, 864, 3675, 1758, 225, 389, 3278, 2249, 300, 1758, 434, 1156, 2893, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6373, 2249, 3790, 12, 2867, 389, 3278, 2249, 13, 203, 565, 3903, 1476, 1135, 261, 203, 3639, 2254, 5034, 7286, 264, 510, 911, 16, 203, 3639, 2254, 5034, 7286, 264, 15812, 16, 203, 3639, 1426, 923, 5694, 16, 203, 3639, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./IController.sol"; import "./IManager.sol"; import "./zeppelin/Pausable.sol"; contract Controller is Pausable, IController { // Track information about a registered contract struct ContractInfo { address contractAddress; // Address of co...
SHA1 hash of head Git commit during registration of this contract
bytes20 gitCommitHash;
5,496,900
[ 1, 8325, 21, 1651, 434, 910, 6646, 3294, 4982, 7914, 434, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1731, 3462, 5071, 5580, 2310, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.24; import "./ERC721BasicToken.sol"; contract BrainpartToken is ERC721BasicToken { struct Brainpart { // Keep dna based on timestamp string dna; string category; string subCategory; string strength; string uri; } Brainpart[] public brainparts; address public owne...
Making sure we are being paid apt amount uint256 price = getPrice("category");require(msg.value >= price); Adding collectible to contract set Minting a crypto collectible Transferring excess back to sender if (msg.value > price) { uint256 priceExcess = msg.value - price; msg.sender.transfer(priceExcess); }
function createBrainpart( string birthTimeStamp, string category, string subCategory,string strength, string uri, address to_) public onlyOwner payable { uint id = brainparts.length; brainparts.push(Brainpart(birthTimeStamp, category, subCategory, strength, uri)); _mint(to_, id); }
14,114,129
[ 1, 49, 6159, 3071, 732, 854, 3832, 30591, 279, 337, 3844, 2254, 5034, 6205, 273, 25930, 2932, 4743, 8863, 6528, 12, 3576, 18, 1132, 1545, 6205, 1769, 21240, 3274, 1523, 358, 6835, 444, 490, 474, 310, 279, 8170, 3274, 1523, 2604, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 752, 38, 7596, 2680, 12, 203, 565, 533, 17057, 21536, 16, 533, 3150, 16, 203, 565, 533, 720, 4457, 16, 1080, 21638, 16, 533, 2003, 16, 1758, 358, 67, 13, 203, 565, 1071, 1338, 5541, 8843, 429, 288, 203, 565, 2254, 6...
// SPDX-License-Identifier: MIT /* 0% Buy | 9% Sell | 24% if sell or send within 24 hours of last buy. All fee's can not be set higher than these defaults, see code lines 1502 - 1514. WEBSITE: jinu.us WHITEPAPER: jinu.us/whitepaper TELEGRAM & TWITTER: @SavingJohnnyInu ::::::::::: ::::::::::: :::: ...
34% of total collected tax
uint256 public marketingPercent = 34;
13,786,967
[ 1, 5026, 9, 434, 2078, 12230, 5320, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 13667, 310, 8410, 273, 13438, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.8.4; // SPDX-License-Identifier: MIT import "hardhat/console.sol"; error CheesecakePortalError(); contract CheesecakePortal { uint256[3] private cakeCount; address payable public owner; Cheesecake[] private cheesecakes; event NewCheesecake( string name, string mes...
The size of the cheesecake chosen, 0 = small, 1 = medium, 2 = large
uint256 cakeSize;
14,093,717
[ 1, 1986, 963, 434, 326, 19315, 281, 557, 911, 10447, 16, 225, 374, 273, 5264, 16, 404, 273, 16212, 16, 576, 273, 7876, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 276, 911, 1225, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 /* This file is part of the Enzyme Protocol. (c) Enzyme Council <[email protected]> For the full license information, please view the LICENSE file that was distributed with this source code. */ pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/E...
@notice Gets the `accessor` variable @return accessor_ The `accessor` variable value
function getAccessor() external view override returns (address accessor_) { return accessor; }
1,696,907
[ 1, 3002, 326, 1375, 3860, 280, 68, 2190, 327, 9789, 67, 1021, 1375, 3860, 280, 68, 2190, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 336, 8235, 1435, 3903, 1476, 3849, 1135, 261, 2867, 9789, 67, 13, 288, 203, 3639, 327, 9789, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/4/0xdc4B158EB7f3Ef69e389A3B6e822b93256F16d47/sources/EthTransfer.sol
This function is no longer recommended for sending Ether.
function sendViaTransfer() public payable { payable(msg.sender).transfer(msg.value); }
13,307,412
[ 1, 2503, 445, 353, 1158, 7144, 14553, 364, 5431, 512, 1136, 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, 282, 445, 1366, 21246, 5912, 1435, 1071, 8843, 429, 288, 203, 3639, 8843, 429, 12, 3576, 18, 15330, 2934, 13866, 12, 3576, 18, 1132, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/4/0x9f0CB4DC658a837BF624a41E402aE65AA3Ba6816/sources/ETHY.sol
symbol = ETHY name = ETHEREUM YEILD maximum supply = 500000 ETHY
function _beforeTokenTransfer( address from, address to, uint256 amount } constructor() public DeflationaryERC20("Ethereum Yield", "ETHY") { _mint(msg.sender, 500000e18); }
8,760,025
[ 1, 7175, 6647, 273, 512, 2455, 61, 508, 2398, 273, 512, 19905, 41, 2799, 1624, 41, 11382, 4207, 14467, 282, 273, 1381, 11706, 512, 2455, 61, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 97, 203, 203, 565, 3885, 1435, 1071, 1505, 2242, 367, 814, 654, 39, 3462, 2932, 41, 18664, 379, 31666, 3...
/** *Submitted for verification at Etherscan.io on 2022-01-18 */ pragma solidity 0.6.12; // SPDX-License-Identifier: GPL-3.0-only /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, bec...
The maximum number of deposit assignments to perform at once
function getMaximumDepositAssignments() public view returns (uint256) { return getUintS("settings.deposit.assign.maximum"); }
10,724,417
[ 1, 1986, 4207, 1300, 434, 443, 1724, 13610, 358, 3073, 622, 3647, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 25194, 758, 1724, 18628, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 336, 5487, 55, 2932, 4272, 18, 323, 1724, 18, 6145, 18, 15724, 8863, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100,...
./partial_match/4/0xC62b3c9aEeD164FFa440b29905986862688E2727/sources/MasterChef.sol
MasterChef is the master of Icecream. He can make Icecream and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once ICECREAM is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hop...
contract MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct UserInfo { } struct PoolInfo { } event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); e...
8,613,364
[ 1, 7786, 39, 580, 74, 353, 326, 4171, 434, 467, 27832, 793, 18, 8264, 848, 1221, 467, 27832, 793, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 491, 87, 268, 2764, 409, 1481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13453, 39, 580, 74, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 1958, 25003, 288, 203, 565, 289, 203, 203, 5...
./full_match/4/0x9715C55907BD2B93140715dFc421e60f3F486C62/sources/browser/bondingcurve.sol
sub x^(28-1) * (34! * 28^(28-1) / 28!)
res -= xi * 0x00c8c8f66db1fced378ee50e536000000000000000;
736,123
[ 1, 1717, 619, 29020, 6030, 17, 21, 13, 225, 261, 5026, 5, 225, 9131, 29020, 6030, 17, 21, 13, 342, 9131, 24949, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 400, 3947, 14087, 380, 374, 92, 713, 71, 28, 71, 28, 74, 6028, 1966, 21, 74, 3263, 6418, 28, 1340, 3361, 73, 25, 5718, 12648, 17877, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// File: @openzeppelin\contracts-ethereum-package\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 bugs, because programmers usually assum...
Maps PoolToken to amount of user shares participating in distributions
mapping(address => uint256) shares;
33,256
[ 1, 8903, 8828, 1345, 358, 3844, 434, 729, 24123, 30891, 1776, 316, 23296, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2874, 12, 2867, 516, 2254, 5034, 13, 24123, 31, 1377, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xbA5F9E64d1cCF59350Fe166Ab83EBEC735A38db6/sources/contracts/Autolend/Manager/LendManagerInterface.sol
* @title MetaLend's manager event interface @author MetaLend @notice defines the events emitted during interaction @dev use this with proxy and implementation to emit events/
interface LendManagerEventInterface { event NewLendMediator(address indexed user, address indexed mediator); event NewLendMediatorImplementation(address indexed previous, address indexed next); event NewRoyaltiesPercentage(uint256 indexed previous, uint256 indexed next); event NewRoyaltiesReceiver(add...
9,311,199
[ 1, 2781, 48, 409, 1807, 3301, 871, 1560, 225, 6565, 48, 409, 225, 11164, 326, 2641, 17826, 4982, 13581, 225, 999, 333, 598, 2889, 471, 4471, 358, 3626, 2641, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 511, 409, 1318, 1133, 1358, 288, 203, 565, 871, 1166, 48, 409, 13265, 10620, 12, 2867, 8808, 729, 16, 1758, 8808, 6735, 10620, 1769, 203, 565, 871, 1166, 48, 409, 13265, 10620, 13621, 12, 2867, 8808, 2416, 16, 1758, 8808, 1...
pragma solidity ^0.6.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol"; // The Agents Contract must be deployed only by the Municipality to create and del...
Make sure the citizen exists in the "citizens" mapping
require(citizens[_address].active == true);
1,069,618
[ 1, 6464, 3071, 326, 276, 305, 452, 275, 1704, 316, 326, 315, 71, 305, 452, 773, 6, 2874, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 71, 305, 452, 773, 63, 67, 2867, 8009, 3535, 422, 638, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * * Metaverse Travel Agency * ======================= * https://themta.io * twiter: @themtaofficial * * MetaHelmet * ---------- */ /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. *...
* @dev See {IERC721Metadata-tokenURI}./
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI_ = _baseURI(); return bytes(baseURI_).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString(...
5,832,131
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 2277, 17, 2316, 3098, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 3098, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 315, 654, 39, 27, 5340, 2277, 30, 3699, 843, 364, 1661, 19041, 1147,...
pragma solidity ^0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than a...
tokenOwnerOf.selector; tokenId => token owner root token owner address => (tokenId => approved address) token owner address => token count token owner => (operator address => bool)from zepellin ERC721Receiver.solold versionnew versionInterfaceId_ERC998 = bytes4(keccak256('tokenOwnerOf(uint256)')) ^ bytes4(keccak256('o...
ERC998ERC20TopDown, ERC998ERC20TopDownEnumerable, BitGuildAccessAdminExtend{ uint256 constant TOKEN_OWNER_OF = 0x89885a59; uint256 constant OWNER_OF_CHILD = 0xeadb80b8; mapping (uint256 => address) internal tokenIdToTokenOwner; mapping (address...
580,741
[ 1, 2316, 5541, 951, 18, 9663, 31, 1147, 548, 516, 1147, 3410, 1365, 1147, 3410, 1758, 516, 261, 2316, 548, 516, 20412, 1758, 13, 1147, 3410, 1758, 516, 1147, 1056, 1147, 3410, 516, 261, 9497, 1758, 516, 1426, 13, 2080, 998, 881, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 19694, 4232, 39, 2733, 28, 654, 39, 3462, 3401, 4164, 16, 4232, 39, 2733, 28, 654, 39, 3462, 3401, 4164, 3572, 25121, 16, 6539, 43, 680, 1862, 4446, 16675, 95, 203, 11794, 203, 225, 2254, 5034, 5381, 14275, 67, 29602, 67, 3932, ...
// hevm: flattened sources of src/AutoLineJob.sol // SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity >=0.8.9 <0.9.0; ////// src/IJob.sol // Copyright (C) 2021 Dai Foundation // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public Lice...
Trigger autoline updates based on thresholds
contract AutoLineJob is IJob { uint256 constant internal BPS = 10 ** 4; SequencerLike public immutable sequencer; IlkRegistryLike_1 public immutable ilkRegistry; AutoLineLike_1 public immutable autoline; VatLike_1 public immutable vat; constructor(address _sequencer, address _ilkRegistry,...
14,632,276
[ 1, 6518, 2059, 15572, 4533, 2511, 603, 19983, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8064, 1670, 2278, 353, 467, 2278, 288, 203, 203, 565, 2254, 5034, 5381, 2713, 605, 5857, 273, 1728, 2826, 1059, 31, 203, 377, 203, 565, 3265, 372, 23568, 8804, 1071, 11732, 26401, 23568, 31, 203, 565, 467, 80, 79, 4243, 88...
./full_match/44787/0xE9F7b882F1F46dade324B0B3F346FD446E5FC0cF/sources/contracts/v2/ExchangeService.sol
* @dev Implementation of the exchange service smart contract. The {ExchangeService} smart contract receives cUSD and ensures that the user receives from the basket service Nylon. The value of a Nylon is determined by the current value of Celo in relation to the USD (we are assuming that 1 cUSD = 1 USD). It uses the IWi...
contract ExchangeService is Context { using SafeERC20 for IERC20; using PriceChecker for uint256; IWitnetPriceFeed private immutable celoUsdPriceFeed; BasketService private immutable basket; IERC20 private immutable cUSD; IERC20 private immutable celo; pragma solidity ^0.8.11; constructor...
13,260,684
[ 1, 13621, 434, 326, 7829, 1156, 13706, 6835, 18, 1021, 288, 11688, 1179, 97, 13706, 6835, 17024, 276, 3378, 40, 471, 11932, 716, 326, 729, 17024, 628, 326, 12886, 1156, 423, 93, 9379, 18, 1021, 460, 434, 279, 423, 93, 9379, 353, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18903, 1179, 353, 1772, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 20137, 8847, 364, 2254, 5034, 31, 203, 203, 565, 467, 59, 305, 2758, 5147, 8141, 3238, 11732, 276, 24214, 3477...
./partial_match/1/0x01E4543460347a3A77E094AB3E279932d1cAe050/sources/FenixToken.sol
* @dev Sets `feeShare` for share percentage for every app transaction. Requirements: - `value` integer./
function setTransferFee(uint value) onlyOwner public returns (bool) { require(value < 100); feeShare = value; }
3,685,653
[ 1, 2785, 1375, 21386, 9535, 68, 364, 7433, 11622, 364, 3614, 595, 2492, 18, 29076, 30, 300, 1375, 1132, 68, 3571, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 5912, 14667, 12, 11890, 460, 13, 1338, 5541, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 1132, 411, 2130, 1769, 203, 3639, 14036, 9535, 273, 460, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -...
./partial_match/56/0x78BD25aB3fA11A5da06c9299e109Fb18840135F3/sources/FairLaunch.sol
AKITA tokens created per block.
uint256 public akitaPerBlock;
11,211,029
[ 1, 14607, 1285, 37, 2430, 2522, 1534, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 279, 8691, 69, 2173, 1768, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x669852D9020A1397564DF15533A832314d377318/sources/GoVitalik.sol
check trading open required for wallet distribution
function _transfer( address sender, address recipient, uint256 amount ) private returns (bool) { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); if (!tradingOpen) { ...
15,941,840
[ 1, 1893, 1284, 7459, 1696, 1931, 364, 9230, 7006, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13866, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3238, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462...
./full_match/1/0x0648D28ec4190318110BDA59d3096d971a2AA856/sources/Swap.sol
Get Pair Get Reserves Token Transfer Get Output Amount Call Swap
function _uniswapV2Swap( uint256 inputAmount, Pair memory pairInfo ) internal { IUniswapV2Pair pair = IUniswapV2Pair(pairInfo.pair); (uint256 reserve0, uint256 reserve1, ) = pair.getReserves(); uint256 reserveInput = pairInfo.isReserveIn ? reserve0 : reserve1; ...
3,132,067
[ 1, 967, 8599, 968, 1124, 264, 3324, 3155, 12279, 968, 3633, 16811, 3049, 12738, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 318, 291, 91, 438, 58, 22, 12521, 12, 203, 3639, 2254, 5034, 810, 6275, 16, 377, 203, 3639, 8599, 3778, 3082, 966, 203, 565, 262, 2713, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 4154, 3082, 273, 467, 984,...
./partial_match/56/0xd4cC0C9a71Cb716097B753eE45FEB83a758B1fbF/sources/STEAMER.sol
/ is the token balance of this contract address over the min number of tokens that we need to initiate a swap + liquidity lock? also, don't get caught in a circular liquidity event. also, don't swap & liquify if sender is uniswap pair.
override the internal _transfer function so that we can do the swap + liquditiy function _transfer( address from, address to, uint256 amount ) internal override { require(amount > 0, "Transfer amount must be greater than zero"); if(from != owner() && to != owner()...
11,059,017
[ 1, 19, 353, 326, 1147, 11013, 434, 333, 6835, 1758, 1879, 326, 1131, 1300, 434, 2430, 716, 732, 1608, 358, 18711, 279, 7720, 397, 4501, 372, 24237, 2176, 35, 2546, 16, 2727, 1404, 336, 13537, 316, 279, 15302, 4501, 372, 24237, 871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3639, 3849, 326, 2713, 389, 13866, 445, 1427, 716, 732, 848, 741, 326, 7720, 397, 4501, 372, 72, 305, 77, 93, 203, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, ...
./full_match/1/0xc5a3b5b534A5404C72e75D803404aFD866A4EB24/sources/contracts/HexCombinator.sol
@notice Deposit HEX and bridged HEX on whichever network you are on to mint CHEX. 1 CHEX = 1 eHEX + 1 pHEX. You must grant this contract the appropriate approvals. Transaction must include the flat rate arbitrage throttle, paid in ETH or PLS.
function mint(uint256 amount) external payable nonReentrant{ require(msg.value == arbitrage_throttle, "Transaction must include the arbitrage throttle."); IERC20(HEX_ADDRESS).transferFrom(msg.sender, address(this), amount); IERC20(getAddress()).transferFrom(msg.sender, address(this), amount)...
17,165,105
[ 1, 758, 1724, 23971, 471, 324, 1691, 2423, 23971, 603, 600, 335, 580, 502, 2483, 1846, 854, 603, 358, 312, 474, 6469, 2294, 18, 404, 6469, 2294, 273, 404, 425, 20661, 397, 404, 293, 20661, 18, 4554, 1297, 7936, 333, 6835, 326, 5505,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 312, 474, 12, 11890, 5034, 3844, 13, 3903, 8843, 429, 1661, 426, 8230, 970, 95, 203, 3639, 2583, 12, 3576, 18, 1132, 422, 10056, 86, 410, 67, 27971, 298, 16, 315, 3342, 1297, 2341, 326, 10056, 86, 410, 18304, 1199, 17...
./full_match/4/0x536305Fbb4Bf4E9247CDe6CD92A11Ea28083ce9e/sources/contracts/project1/RouterContract.sol
require( IERC20(addOfBNB).balanceOf(msg.sender) >=amount ,'insufficient balanceOf' );
function DepositBNB(uint amount)public{ require(amount > 0 , "amont should be > 0"); uint distributedAmount = amount/3 ; address[] memory pathA ; pathA = new address[](2); pathA[0] = 0xD0Aa029cB7Ee427794a1060D7c98a2b9D8279bca ; pathA[1] = 0xf50E2F9430C1B080...
748,613
[ 1, 6528, 12, 467, 654, 39, 3462, 12, 1289, 951, 15388, 38, 2934, 12296, 951, 12, 3576, 18, 15330, 13, 1545, 8949, 269, 11, 2679, 11339, 11013, 951, 11, 11272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 377, 445, 4019, 538, 305, 15388, 38, 12, 11890, 3844, 13, 482, 95, 203, 540, 2583, 12, 8949, 405, 374, 269, 315, 301, 1580, 1410, 506, 405, 374, 8863, 203, 540, 2254, 16859, 6275, 225, 273, 3844, 19, 23, 274, 7010, 203, 540, ...
./partial_match/42/0xe4380E034f5816c6A4db4419a3a1fFE78F976f8f/sources/WETHpartyStarter.sol
File: contracts/CloneParty.sol=====================USE AT YOUR OWN RISK HARD-CODED LIMITS These numbers are quite arbitrary; they are small enough to avoid overflows when doing calculations with periods or shares, yet big enough to not limit reasonable use cases. default = 5 *************** EVENTS *************** ****...
contract WETHParty is ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; GOVERNANCE PARAMS uint256 public dilutionBound; address public wETH; bool public initialized; event SummonComplete(address[] indexed summoners, address[] tokens, uint256 summoningTim...
3,346,381
[ 1, 812, 30, 20092, 19, 10930, 17619, 18, 18281, 2429, 894, 33, 8001, 14464, 1624, 51, 1099, 531, 5665, 534, 5127, 47, 670, 8085, 17, 9086, 2056, 13052, 10158, 8646, 5600, 854, 25102, 11078, 31, 2898, 854, 5264, 7304, 358, 4543, 9391, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 678, 1584, 44, 17619, 353, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 377, 203, 565, 12389, 2204, 50, 4722, 4655...
./full_match/4/0xfB8e42E6E9E6f275ebe9DFd15e8D3878aC4C03c2/sources/LPBond.sol
Info for creating new bonds
contract TimeBondDepository is Ownable { using FixedPoint for *; using SafeERC20 for IERC20; using SafeMath for uint; using SafeMath for uint32; event BondCreated( uint deposit, uint indexed payout, uint indexed expires, uint indexed priceInUSD ); event BondRedeemed( address indexed recipi...
677,794
[ 1, 966, 364, 4979, 394, 15692, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2647, 9807, 758, 1855, 353, 14223, 6914, 288, 203, 203, 565, 1450, 15038, 2148, 364, 380, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 1450, ...
/** *Submitted for verification at Etherscan.io on 2021-09-06 */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * v...
function current() external view returns (uint256);private,don't call
interface IMinerV1{ function accountStoked(address addr) external view returns (uint256); function totalStoke() external view returns (uint256); function userTimes(address) external view returns (uint256); function totalMineds( address ) external view returns (uint256); function earnedBalance( addre...
6,545,897
[ 1, 915, 783, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 1152, 16, 19752, 1404, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 2930, 264, 58, 21, 95, 203, 565, 445, 2236, 510, 14276, 12, 2867, 3091, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 2078, 510, 3056, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 729, ...
// SPDX-License-Identifier: MIT // Copyright 2021 Inftspaces & Martin Wawrusch // // 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 without limitation the righ...
@notice Mint a token (If you have been whitelisted at an event). @dev Called buy visitors of our live events. They are entitled to 1 mint per whitelisted address.
function mintLiveEvent(uint8 _v, bytes32 _r, bytes32 _s) onlyValidAccess(_v,_r,_s) public { require(isLiveMintingActive, "Live minting inactive"); require(_tokenIdCounter.current().add(1) <= MAX_TOKENS, "Max supply exceeded"); require(!claimedFreeNft[msg.sender], "Already claimed"); ...
298,451
[ 1, 49, 474, 279, 1147, 261, 2047, 1846, 1240, 2118, 26944, 622, 392, 871, 2934, 225, 11782, 30143, 22763, 434, 3134, 8429, 2641, 18, 16448, 854, 3281, 305, 1259, 358, 404, 312, 474, 1534, 26944, 1758, 18, 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, 312, 474, 12328, 1133, 12, 11890, 28, 389, 90, 16, 1731, 1578, 389, 86, 16, 1731, 1578, 389, 87, 13, 1338, 1556, 1862, 24899, 90, 16, 67, 86, 16, 67, 87, 13, 1071, 288, 203, 3639, 2583, 12, 291, 12328, 49, 474, 31...
pragma solidity ^0.4.25; contract Ownable { address public owner; /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ constructor() public { owner = msg.sender; } /** * @dev Throws if called by any account other than t...
update ordersupdate executionFee processingConsider an order as executed if the token amount left is zeroor if the eth amount left is smaller than 10000000000 wei (0.00000001 ETH)
function settlement(address _token, bytes32 _exec_id) internal { uint trx_volume = executions[_token][_exec_id].exec_amount * executions[_token][_exec_id].price / (10**uint(ERC20Interface(_token).decimals())); volume[_token].push(trx_volume); uint fee_payment; ...
12,920,432
[ 1, 2725, 11077, 2725, 4588, 14667, 4929, 9054, 3585, 392, 1353, 487, 7120, 309, 326, 1147, 3844, 2002, 353, 3634, 280, 309, 326, 13750, 3844, 2002, 353, 10648, 2353, 2130, 12648, 732, 77, 261, 20, 18, 9449, 1611, 512, 2455, 13, 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, 26319, 806, 12, 2867, 389, 2316, 16, 1731, 1578, 389, 4177, 67, 350, 13, 2713, 288, 203, 203, 3639, 2254, 433, 92, 67, 9491, 273, 26845, 63, 67, 2316, 6362, 67, 4177, 67, 350, 8009, 4177, 67, 8949, 380, 203, 5411, 2...
pragma solidity 0.5.12; import "./Handler.sol"; import "./interface/IUSR.sol"; import "./library/ReentrancyGuard.sol"; contract USRHandler is Handler, ReentrancyGuard { address public USR; struct InterestDetails { uint256 totalUnderlyingBalance; // Total underlying balance including interest ...
--- Init --- This function is used with contract proxy, do not modify this function.
function initialize(address _dTokenController, address _USR) public { super.initialize(_dTokenController); initReentrancyStatus(); USR = _USR; }
12,699,012
[ 1, 6062, 4378, 9948, 1220, 445, 353, 1399, 598, 6835, 2889, 16, 741, 486, 5612, 333, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4046, 12, 2867, 389, 72, 1345, 2933, 16, 1758, 389, 27984, 13, 1071, 288, 203, 3639, 2240, 18, 11160, 24899, 72, 1345, 2933, 1769, 203, 3639, 1208, 426, 8230, 12514, 1482, 5621, 203, 3639, 587, 10090, 273, 389, 27984, 3...
pragma solidity ^0.4.18; // ---------------------------------------------------------------------------- // /$$$$$$ /$$$$$$$ /$$ // /$$$_ $$ | $$__ $$ |__/ // | $$$$\ $$ /$...
help debug mining software
function checkMintSolution(uint256 nonce, bytes32 challenge_digest, bytes32 challenge_number, uint testTarget) public view returns (bool success) { bytes32 digest = keccak256(challenge_number,msg.sender,nonce); if(uint256(digest) > testTarget) revert(); return (digest == challenge_di...
14,012,414
[ 1, 5201, 1198, 1131, 310, 17888, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 866, 49, 474, 16135, 12, 11890, 5034, 7448, 16, 1731, 1578, 12948, 67, 10171, 16, 1731, 1578, 12948, 67, 2696, 16, 2254, 1842, 2326, 13, 1071, 1476, 1135, 261, 6430, 2216, 13, 288, 203, 1850, 1731, 1578, 5403, 273, 417...
pragma solidity >=0.4.22 <0.7.0; /** * @title Designing a voting contract * @dev Implements voting process for voting by students to decide Scholarship Winner(s) */ contract Scholarship { struct Student { uint vote_possession; // Number of vote tickets possessed by each student. Vote is ...
Scholarship money to be allocated after voting
uint public scholarship;
998,968
[ 1, 55, 343, 355, 976, 625, 15601, 358, 506, 11977, 1839, 331, 17128, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 18551, 355, 976, 625, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-Licence-Identifier: GPL-3.0 pragma solidity >=0.7.0 < 0.9.0; contract structs { struct listaEstudiantes{ string aula; uint cantidad; } //muetras los datos enviados listaEstudiantes public escuelaa = listaEstudiantes("A", 30); mapping (uint => uint) public PromedioAlum...
(ID alumno => promedioGeneral)
mapping (uint => uint) public PromedioAlumno;
1,836,577
[ 1, 12, 734, 524, 755, 83, 516, 450, 2937, 1594, 12580, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 11890, 516, 2254, 13, 1071, 17552, 329, 1594, 1067, 755, 83, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0xBcc031eD992666Bc04931dE28d7744DE5C199Ea9/sources/BAGIE.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("Black Wagie","BAGIE") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = I...
9,180,659
[ 1, 10157, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1435, 4232, 39, 3462, 2932, 13155, 678, 346, 1385, 15937, 38, 1781, 8732, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22,...
./partial_match/3/0xf51456e564bb2c16dcA44E83504bD216C0D19D79/sources/ManagerFactory.sol
solhint-disable-next-line avoid-low-level-calls pass along failure message from delegatecall and revert. solhint-disable-next-line no-inline-assembly return eip-1167 code to write it to spawned contract runtime. solhint-disable-next-line no-inline-assembly
{ (bool success, ) = template.delegatecall(initializationCalldata); if (!success) { assembly { returndatacopy(0, 0, returndatasize()) revert(0, returndatasize()) } } abi.encodePacked( bytes10(0x363d3d373d3d3...
5,082,707
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 4543, 17, 821, 17, 2815, 17, 12550, 1342, 7563, 5166, 883, 628, 7152, 1991, 471, 15226, 18, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 327, 425, 625, 17, 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, 261, 6430, 2216, 16, 262, 273, 1542, 18, 22216, 1991, 12, 6769, 1588, 1477, 892, 1769, 203, 3639, 309, 16051, 4768, 13, 288, 203, 5411, 19931, 288, 203, 7734, 327, 892, 3530, 12, 20, 16, 374, 16, 327, 13178...
pragma solidity 0.7.6; import "@openzeppelin/contracts-upgradeable/utils/EnumerableSetUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/EnumerableMapUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "contracts/interfaces/apwine/tokens/IFutureY...
* @notice Register the sender to the corresponding platformController @param _user the address of the user @param futuresAddresses the addresses of the futures to claim the FYT from/
function claimSelectedYield(address _user, address[] memory futuresAddresses) public { for (uint256 i = 0; i < futuresAddresses.length; i++) { require(registry.isRegisteredFuture(futuresAddresses[i]), "Incorrect future address"); IFuture(futuresAddresses[i]).claimFYT(_user); ...
13,427,555
[ 1, 3996, 326, 5793, 358, 326, 4656, 4072, 2933, 225, 389, 1355, 326, 1758, 434, 326, 729, 225, 15583, 7148, 326, 6138, 434, 326, 15583, 358, 7516, 326, 478, 61, 56, 628, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 7416, 16348, 12, 2867, 389, 1355, 16, 1758, 8526, 3778, 15583, 7148, 13, 1071, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 15583, 7148, 18, 2469, 31, 277, 27245, 288, 203, 5411, 2583, 12, ...
./partial_match/56/0xfE7B02D0B10e83F943051e4ED36aEeF9BB7c7C51/sources/ReferralRewardsType4.sol
@dev Returns claimed and unclaimed user's reward. @param _user Address of the user. @return _reward User's reward.
function getReward(address _user) public view virtual returns (uint256 _reward) { UserInfo storage user = userInfo[_user]; _reward = user.reward.add(getPendingReward(_user, false)); }
11,320,666
[ 1, 1356, 7516, 329, 471, 6301, 80, 4581, 329, 729, 1807, 19890, 18, 225, 389, 1355, 5267, 434, 326, 729, 18, 327, 389, 266, 2913, 2177, 1807, 19890, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4170, 359, 1060, 12, 2867, 389, 1355, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 1135, 261, 11890, 5034, 389, 266, 2913, 13, 203, 565, 288, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 67, 1355, ...
/** *Submitted for verification at Etherscan.io on 2020-03-17 */ pragma solidity ^0.5.15; // https://github.com/makerdao/dss/blob/master/src/jug.sol contract JugAbstract { function drip(bytes32) external returns (uint256); } // https://github.com/makerdao/dss/blob/master/src/pot.sol contract PotAbstract { f...
Returns the amount of debt healed if you're curious about that sort of thing.
sd = _rawSysDebt();
7,265,610
[ 1, 1356, 326, 3844, 434, 18202, 88, 3904, 18931, 309, 1846, 4565, 662, 22774, 2973, 716, 1524, 434, 7757, 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, 3639, 8349, 273, 389, 1899, 12712, 758, 23602, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity >=0.4.11 <0.7.0; import "./RoyaltyComputation.sol"; import "./Verification.sol"; import "./DecentralizedOracle.sol"; import "./RoyaltyComputation.sol"; contract Aggregator { address public royaltyComputationContract; Verification verif; DecentralizedOracle decOracle; RoyaltyComputation...
function Aggregator(address _verif, address _decOracle) { verif = Verification(_verif); testData = verif.getTestData(); }
struct ParameterDescriptor{ uint paramId; address sourceContract; bool isPublic; bool isPrivate; }
953,430
[ 1, 915, 10594, 639, 12, 2867, 389, 502, 430, 16, 1758, 389, 4924, 23601, 13, 288, 377, 1924, 430, 273, 26961, 24899, 502, 430, 1769, 377, 1842, 751, 273, 1924, 430, 18, 588, 4709, 751, 5621, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 5498, 3187, 95, 203, 3639, 2254, 579, 548, 31, 203, 3639, 1758, 1084, 8924, 31, 203, 3639, 1426, 19620, 31, 203, 3639, 1426, 30911, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...