file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/1/0x01c5AFdC4d40d4632c630E8371c49088084EA9c3/sources/contracts/TermRepoServicer.sol
slither-disable-start reentrancy-benign
repurchaseExposureLedger[borrower] += totalMintValue;
8,466,226
[ 1, 4625, 348, 7953, 560, 30, 225, 2020, 2927, 17, 8394, 17, 1937, 283, 8230, 12514, 17, 19425, 724, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2071, 295, 12104, 424, 11291, 28731, 63, 70, 15318, 264, 65, 1011, 2078, 49, 474, 620, 31, 203, 2, -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.20; import './persondata.sol'; // Import Person contract. /** @title BowheadGame.*/ contract BowheadGame is PersonData { // EVENTS event Received( address payer, uint256 amount, uint256 balance ); constructor() public payable {} // PUBLIC METHODS /** ...
Import Person contract.
import './persondata.sol';
5,547,960
[ 1, 4625, 348, 7953, 560, 30, 225, 6164, 11573, 6835, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5666, 12871, 12479, 892, 18, 18281, 13506, 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, -1...
pragma solidity 0.5.12; pragma experimental ABIEncoderV2; import { IInterest } from "../interfaces/IInterest.sol"; import { SafeMath } from "../lib/SafeMath.sol"; import { Types } from "../lib/Types.sol"; /** * @title DaiFiInterest Contract * @notice Abstract contract for calculating interest on supplied and borrowed...
* @notice Returns the current per block interest rate (in attobasis points) on supplied Wei (public pure) @return The current interest rate/ TODO: implement and test, for now 1% (!) per block
function getSuppliedWeiInterestRate() public pure returns (uint256) { return 100000000000000000000; }
5,368,274
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2860, 326, 783, 1534, 1203, 16513, 4993, 261, 267, 622, 869, 23774, 3143, 13, 603, 4580, 1660, 77, 261, 482, 16618, 13, 632, 2463, 1021, 783, 16513, 4993, 19, 2660, 30, 2348, 471, 1842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10755, 3110, 3218, 77, 29281, 4727, 1435, 1071, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2130, 12648, 2787, 9449, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity 0.6.12; import "../utility/ContractRegistryClient.sol"; import "./interfaces/IConverterRegistryData.sol"; /** * @dev This contract is an integral part of the converter registry, * and it serves as the database contract that holds all registry data. ...
* @dev removes an anchor/
function removeSmartToken(IConverterAnchor anchor) external override only(CONVERTER_REGISTRY) { _removeItem(_anchors, address(anchor)); }
12,990,279
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7157, 392, 6984, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1206, 23824, 1345, 12, 45, 5072, 11605, 6984, 13, 3903, 3849, 1338, 12, 2248, 2204, 2560, 67, 5937, 25042, 13, 288, 203, 3639, 389, 4479, 1180, 24899, 304, 15482, 16, 1758, 12, 16215, 10019, 203, 565, 289, 203, 203, 2, ...
./full_match/5/0x285633333615b13e665Be0e714d85C1cEf0A19F1/sources/browser/Symbio.sol
@notice Total amount of tokens at a specific `_blockNumber`. @param _blockNumber The block number when the totalSupply is queried @return The total amount of tokens at `_blockNumber` These next few lines are used when the totalSupply of the token is requested before a check point was ever created for this token, it ...
function totalSupplyAt(uint _blockNumber) public view returns(uint) { if ((totalSupplyHistory.length == 0) || (totalSupplyHistory[0].fromBlock > _blockNumber)) { if (address(parentToken) != address(0)) { return parentToken.totalSupplyAt(min(_blockNumber, parentSnapSh...
1,952,596
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 10710, 3844, 434, 2430, 622, 279, 2923, 1375, 67, 2629, 1854, 8338, 632, 891, 389, 2629, 1854, 1021, 1203, 1300, 1347, 326, 2078, 3088, 1283, 353, 23264, 632, 2463, 1021, 2078, 3844, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2078, 3088, 1283, 861, 12, 11890, 389, 2629, 1854, 13, 1071, 1476, 1135, 12, 11890, 13, 288, 203, 203, 3639, 309, 14015, 4963, 3088, 1283, 5623, 18, 2469, 422, 374, 13, 203, 5411, 747, 261, 4963, 3088, 1283, 5623, 63, ...
pragma solidity ^0.5.16; pragma experimental ABIEncoderV2; // From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol // Subject to the MIT license. /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity...
* @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, uint rawAmount) external returns (bool) { uint96 amount; if (rawAmount == uint(-1)) { amount = uint96(-1); amount = safe96(rawAmount, "Elt::approve: amount exceeds 96 bits"); } allowances[msg.sender][spender] = amount; ...
10,516,061
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1716, 685, 537, 1375, 87, 1302, 264, 68, 358, 7412, 731, 358, 1375, 8949, 68, 628, 1375, 4816, 68, 632, 5206, 1220, 903, 6156, 326, 23556, 3844, 364, 1375, 87, 1302, 264, 68, 632, 891,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 1831, 6275, 13, 3903, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 10525, 3844, 31, 203, 3639, 309, 261, 1899, 6275, 422, 2254, 19236, 21, 3719, 288, 203, 5411, 3844, 273, 2254, ...
// Copyright (c) 2022 EverRise Pte Ltd. All rights reserved. // EverRise licenses this file to you under the MIT license. /* The EverRise token is the keystone in the EverRise Ecosytem of dApps and the overaching key that unlocks multi-blockchain unification via the EverBridge. On EverRise token transactions 6% bu...
reset the next buyback amount, set non-zero to save on future gas
_nextBuybackAmount = _minBuybackAmount;
5,975,908
[ 1, 4625, 348, 7953, 560, 30, 225, 2715, 326, 1024, 30143, 823, 3844, 16, 444, 1661, 17, 7124, 358, 1923, 603, 3563, 16189, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 3639, 389, 4285, 38, 9835, 823, 6275, 273, 389, 1154, 38, 9835, 823, 6275, 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/80001/0x636C4701Fdd1C46e47177cef7032b26402Bf7251/sources/minter1.sol
* @dev Returns an Ethereum Signed Message, created from `s`. This produces hash corresponding to the one signed with the JSON-RPC method as part of EIP-191. See {recover}./
function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); }
8,818,690
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 392, 512, 18664, 379, 16724, 2350, 16, 2522, 628, 1375, 87, 8338, 1220, 15505, 1651, 4656, 358, 326, 1245, 6726, 598, 326, 1796, 17, 8087, 707, 487, 1087, 434, 512, 2579, 17, 30380,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 358, 41, 451, 12294, 1079, 2310, 12, 3890, 3778, 272, 13, 2713, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 5411, 327, 417, 24410, 581, 5034, 12, 21457, 18, 3015, 4420, 329, 31458, 92, 3657, 41, 18664, 379, 16724, 2350...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; // Openzeppelin. import "./openzeppelin-solidity/contracts/SafeMath.sol"; import "./openzeppelin-solidity/contracts/ReentrancyGuard.sol"; import "./openzeppelin-solidity/contracts/ERC1155/ERC1155.sol"; import "./openzeppelin-solidity/contracts/ERC20/SafeERC20.so...
* @notice Mints an NFT for the given component. @dev This function can only be called by the ComponentRegistry contract. @param _contractAddress Address of the component's contract. @param _isIndicator Whether the component is an indicator. @param _owner Address of the component's owner. @param _fee The fee, in TGEN, t...
function createComponent(address _contractAddress, bool _isIndicator, address _owner, uint256 _fee) external override onlyComponentRegistry returns (uint256) { uint256 tokenID = numberOfComponents.add(1); numberOfComponents = numberOfComponents.add(1); components[tokenID] = Component({ ...
6,430,649
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 490, 28142, 392, 423, 4464, 364, 326, 864, 1794, 18, 632, 5206, 1220, 445, 848, 1338, 506, 2566, 635, 326, 5435, 4243, 6835, 18, 632, 891, 389, 16351, 1887, 5267, 434, 326, 1794, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 1841, 12, 2867, 389, 16351, 1887, 16, 1426, 389, 291, 13140, 16, 1758, 389, 8443, 16, 2254, 5034, 389, 21386, 13, 3903, 3849, 1338, 1841, 4243, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 1147, 734, 273...
pragma solidity 0.5.0; import "openzeppelin-eth/contracts/token/ERC20/IERC20.sol"; import "openzeppelin-eth/contracts/math/SafeMath.sol"; import "./compound/ICErc20.sol"; import "openzeppelin-eth/contracts/ownership/Ownable.sol"; import "kleros/contracts/data-structures/SortitionSumTreeFactory.sol"; import "./UniformR...
* @notice Estimates the current effective interest rate using the money market's current supplyRateMantissa and the lock duration in blocks. @return The current estimated effective interest rate/ TODO: Add intelligent / enforced blockDuration Chose a duration of one week arbitrary and not enforced by the contract at al...
function currentInterestFractionFixedPoint24() public view returns (int256) { int256 blocksPerDay = 5760; int256 daysPerDrawing = 7; int256 blockDuration = blocksPerDay * daysPerDrawing; blockDuration = 10; int256 supplyRateMantissaFixedPoint24 = FixidityLib.newFixed(int256(supplyRateMantissa()), ...
15,884,428
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 17787, 29678, 326, 783, 11448, 16513, 4993, 1450, 326, 15601, 13667, 1807, 783, 14467, 4727, 49, 970, 21269, 471, 326, 2176, 3734, 316, 4398, 18, 632, 2463, 1021, 783, 13137, 11448, 16513, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 783, 29281, 13724, 7505, 2148, 3247, 1435, 1071, 1476, 1135, 261, 474, 5034, 13, 288, 203, 565, 509, 5034, 4398, 2173, 4245, 273, 15981, 4848, 31, 203, 565, 509, 5034, 4681, 2173, 26885, 273, 2371, 31, 203, 565, 509, 50...
pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "../../node_modules/@openzeppelin/contracts/math/SafeMath.sol"; import "../../node_modules/@openzeppelin/contracts/utils/Address.sol"; contract DV { using SafeMath for uint256; using Address for address payable; event Withdrawn(address ind...
require(msg.value >= fee, "MUST SEND FEE BEFORE USE"); if (isJurArrVal(ruc21)) { } else { calcula dv emit LogDV(dv);
function calc(uint256[] memory ruc21) public view returns (uint256[] memory) { (bytes32[] memory cat, uint256[] memory ruc21) = findCategoryAndReplace(ruc21); uint256[] memory dv = new uint256[](2); (ruc21, dv) = calcDV(ruc21, dv, uint256(19), uint256(0)); (r...
12,537,977
[ 1, 4625, 348, 7953, 560, 30, 225, 2583, 12, 3576, 18, 1132, 1545, 14036, 16, 315, 49, 5996, 31434, 478, 9383, 21203, 14988, 8863, 309, 261, 291, 46, 295, 5715, 3053, 12, 86, 5286, 5340, 3719, 288, 1377, 289, 469, 288, 3026, 69, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7029, 12, 11890, 5034, 8526, 3778, 436, 5286, 5340, 13, 7010, 565, 1071, 1476, 1135, 261, 11890, 5034, 8526, 3778, 13, 288, 203, 540, 203, 203, 3639, 261, 3890, 1578, 8526, 3778, 6573, 16, 2254, 5034, 8526, 3778, 436, 5...
./partial_match/1/0x3Fdb3bd1ab409F0CBB2c4d919b2205ac881B99ED/sources/src/governor/Governor.sol
* @dev Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve voting weight using {IGovernor-getVotes} and call the {_countVote} internal function. Uses the _defaultParams(). Emits a {IGovernor-VoteCast} event./
function _castVote(uint256 proposalId, address account, uint8 support, string memory reason) internal virtual returns (uint256) { return _castVote(proposalId, account, support, reason, _defaultParams()); }
9,366,594
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 12501, 27660, 12860, 30, 2073, 716, 326, 12501, 353, 4634, 16, 716, 518, 711, 486, 2118, 4812, 4671, 16, 4614, 331, 17128, 3119, 1450, 288, 3047, 1643, 29561, 17, 588, 29637, 97, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 4155, 19338, 12, 11890, 5034, 14708, 548, 16, 1758, 2236, 16, 2254, 28, 2865, 16, 533, 3778, 3971, 13, 2713, 5024, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 4155, 19338, 12, 685, 8016, 548, 16, 2236, ...
./partial_match/56/0x26A545e5eA894bf744432102514C8c8E7A145163/sources/TokenTimelock.sol
08/01/2022 12:00:00 AM
_releaseTime = 1659312000;
11,233,191
[ 1, 4625, 348, 7953, 560, 30, 225, 16314, 19, 1611, 19, 18212, 22, 2593, 30, 713, 30, 713, 20653, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 9340, 950, 273, 2872, 6162, 23, 2138, 3784, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity >=0.5.0; import "./External.sol"; import "./XUni.sol"; /** * @title CreditX * @dev Implements the credit storing system business logic. */ contract CreditX { External public X; XUni public Y; function initializeExternal(address _address) public { X = External(_address); } ...
Admins store by address (Admin _address => Admin)
mapping(address => Administrator) public adminsByAddress;
1,805,647
[ 1, 4625, 348, 7953, 560, 30, 225, 7807, 87, 1707, 635, 1758, 261, 4446, 389, 2867, 516, 7807, 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, ...
[ 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, 2874, 12, 2867, 516, 7807, 14207, 13, 1071, 31116, 858, 1887, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweigh...
========== Mint Window Maximum Supply ========== ========== Immutable Variables ========== ========== Mutable Variables ==========
contract OriginalsGlassApes is ERC1155, ERC1155Burnable, ERC1155RandomMint, Pausable, ReentrancyGuard, AdminControl, Ownable, IRemixOriginal { using Strings for uint256; uint16 internal GOLD_WINDOW_MAX_SUPPLY = 100; uint16 internal ANY_WINDOW_MAX_SUPPLY = 250; uint16 internal REMIX_WINDOW_MAX_SUPPLY = 149; ...
13,061,295
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 490, 474, 6076, 18848, 3425, 1283, 422, 1432, 422, 1432, 7252, 23536, 422, 1432, 422, 1432, 10960, 23536, 422, 1432, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 18040, 1031, 43, 459, 1294, 281, 353, 4232, 39, 2499, 2539, 16, 4232, 39, 2499, 2539, 38, 321, 429, 16, 4232, 39, 2499, 2539, 8529, 49, 474, 16, 21800, 16665, 16, 868, 8230, 12514, 16709, 16, 7807, 3367, 16, 14223, 6914, ...
//Address: 0xe0f3544280f784e82c7bacb1a7b50d4aaea55ad9 //Contract name: GameRewardToken //Balance: 0 Ether //Verification Date: 6/21/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.21; contract owned { address public owner; constructor() public { owner = msg.sender; } mo...
ICO soft target - 60 millions
uint256 public constant tokenCreationMin = 60000000*10**18;
5,530,320
[ 1, 4625, 348, 7953, 560, 30, 467, 3865, 8971, 1018, 300, 4752, 312, 737, 1115, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 1147, 9906, 2930, 273, 2398, 1666, 17877, 14, 2163, 636, 2643, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/4/0x9A33181d080B6eCDC9fb3688DeBF61627614AD77/sources/contracts/valut721.sol
send payment to owner
function valueTransfer(address _owner, uint256 _value) internal { uint256 commision = SafeMath.div( SafeMath.mul(_value, commisionFeesPercentage), 100 ); Address.sendValue(payable(_owner), SafeMath.sub(_value, commision)); Address.sendValue(payable(owner()), c...
680,769
[ 1, 4625, 348, 7953, 560, 30, 225, 1366, 5184, 358, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 460, 5912, 12, 2867, 389, 8443, 16, 2254, 5034, 389, 1132, 13, 2713, 288, 203, 3639, 2254, 5034, 1543, 1951, 273, 14060, 10477, 18, 2892, 12, 203, 5411, 14060, 10477, 18, 16411, 24899, 1132, 16, 1543, 1951, 2954, 281, 1...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @notice Wording below needs to properly represent the legal terms so has to be reviewed /// @notice Comments have been written by the development team and may not represent the actual terms of the contr...
@notice "Reward points" each user earned (would be relative to totalRewardPoints to get the percentage)
mapping (address => uint256) public rewardPointsEarned;
10,115,056
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 315, 17631, 1060, 3143, 6, 1517, 729, 425, 1303, 329, 261, 91, 1006, 506, 3632, 358, 2078, 17631, 1060, 5636, 358, 336, 326, 11622, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 1071, 19890, 5636, 41, 1303, 329, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.8; contract OldSmartRouletteToken { function balanceOf( address who ) external constant returns (uint256); function totalSupply() constant returns (uint supply); function tempTokensBalanceOf( address who ) external constant returns (uint256); function tempTokensPeriodOf( address who ) e...
* emission() - emission of tokens initiated by the game contract. @param player - player's address. @param partner - affiliate's address. @param value_bet - player's bet value. @param coef_player - player's coefficient emission. @param coef_partner - affiliate's coefficient emission. @return (true...
function emission(address player, address partner, uint256 value_bet, uint256 coef_player, uint256 coef_partner) external returns(uint256, uint8) { if(this.isOperationBlocked()) return (0, 1); if(listGames[msg.sender].init == false) return (0, 2); if(player == address(0x0)) return (0, 3); ...
13,074,746
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 801, 19710, 1435, 300, 801, 19710, 434, 2430, 27183, 635, 326, 7920, 6835, 18, 225, 632, 891, 7291, 4202, 300, 7291, 1807, 1758, 18, 225, 632, 891, 19170, 1377, 300, 7103, 330, 3840, 1807, 1758...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 801, 19710, 12, 2867, 7291, 16, 1758, 19170, 16, 2254, 5034, 460, 67, 70, 278, 16, 2254, 5034, 17332, 67, 14872, 16, 2254, 5034, 17332, 67, 31993, 13, 3903, 1135, 12, 11890, 5034, 16, 2254, 28, 13, 288, 203, 3639, 309...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /// @title A token that allows advanced privileges to its owner /// @notice Allows the owner to mint, burn and transfer tokens without requiring ex...
* @dev Initializes the contract setting the deployer as the initial owner./
function _beforeTokenTransfer( address from, address to, uint256 amount function _afterTokenTransfer( address from, address to, uint256 amount } pragma solidity ^0.8.0; import "../utils/Context.sol"; constructor() { _setOwner(_msgSender()); } ...
305,393
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 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, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 203, 565, 445, 389, 5205, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639,...
./partial_match/1/0xA79eD429d3B2A04137A10c8Ef672eaF9448e2Cc8/sources/Geyser.sol
transfer to treasury contract and buyback token.
pool.lpToken.safeTransfer(treasury, buybackAmount);
2,827,423
[ 1, 4625, 348, 7953, 560, 30, 225, 7412, 358, 9787, 345, 22498, 6835, 471, 30143, 823, 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, 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, 5411, 2845, 18, 9953, 1345, 18, 4626, 5912, 12, 27427, 345, 22498, 16, 30143, 823, 6275, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2022-03-24 */ // Sources flattened with hardhat v2.8.4 https://hardhat.org // File @openzeppelin/contracts/token/ERC721/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /...
number of tokens Per day
) { jungleCoin = _jungleCoin; royalCubs = _royalCubs; expiration = block.number + _expiration; rewardRate.push(_baseRewardRate); started = false; }
7,725,359
[ 1, 4625, 348, 7953, 560, 30, 225, 1300, 434, 2430, 5722, 2548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 288, 203, 3639, 525, 318, 3213, 27055, 273, 389, 78, 318, 3213, 27055, 31, 203, 3639, 721, 93, 287, 39, 373, 87, 273, 389, 3800, 287, 39, 373, 87, 31, 203, 3639, 7686, 273, 1203, 18, 2696, 397, 389, 19519, 31, 203, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /// @author jpegmint.xyz import "./IOwnable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; abstract contract MultiOwnable is Context, IOwnable, ERC165 { /// VARIABLES /// addr...
* @dev Checks if address is an approved owner./
function isOwner(address ownerAddress) public view returns (bool) { uint256 checkIndex = _ownersIndex[ownerAddress]; return _owners.length > 0 && _owners[checkIndex] == ownerAddress; }
5,372,619
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13074, 309, 1758, 353, 392, 20412, 3410, 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, 353, 5541, 12, 2867, 3410, 1887, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 866, 1016, 273, 389, 995, 414, 1016, 63, 8443, 1887, 15533, 203, 3639, 327, 389, 995, 414, 18, 2469, 405, 374, 597, 389...
/* * The MIT License * * Copyright (c) 2017-2018 , Akropolis Decentralised Ltd (Gibraltar), http://akropolis.io * */ pragma solidity ^0.4.24; pragma experimental "v0.5.0"; import "./Board.sol"; import "./Ticker.sol"; import "./NontransferableShare.sol"; import "./Registry.sol"; import "./interfaces/PensionFund.sol"; ...
If there are no shares yet, we will hand back a quantity equivalent to the value they provided us.
function equivalentShares(ERC20Token token, uint tokenQuantity) public view returns (uint) { uint tokenVal = ticker.valueAtRate(token, tokenQuantity, denomination); uint supply = totalSupply; if (supply == 0) { return tokenVal; } (uint...
12,761,905
[ 1, 4625, 348, 7953, 560, 30, 225, 971, 1915, 854, 1158, 24123, 4671, 16, 732, 903, 948, 1473, 279, 10457, 7680, 358, 326, 460, 2898, 2112, 584, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7680, 24051, 12, 654, 39, 3462, 1345, 1147, 16, 2254, 1147, 12035, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 13, 203, 565, 288, 203, 3639, 2254, 1147, 3053, 273, 14063, 18, 1132, 861, 4727, 12, ...
// Sources flattened with hardhat v2.1.1 https://hardhat.org // File @openzeppelin/contracts/utils/Context.sol@v3.4.1 // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While th...
File @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol@v3.4.1 License: MIT* @dev Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis)./
abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; function _beforeTokenTransfer( address from, address to, uint256 amount } pragma solidity >=0.6.0 <0.8.0; function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } ...
1,196,004
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 2316, 19, 654, 39, 3462, 19, 654, 39, 3462, 38, 321, 429, 18, 18281, 36, 90, 23, 18, 24, 18, 21, 16832, 30, 490, 1285, 14, 632, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 4232, 39, 3462, 38, 321, 429, 353, 1772, 16, 4232, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16...
// SPDX-License-Identifier: MIT AND GPL-3.0 AND AGPLv3 // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSup...
* @notice Amount of slippage we accept @dev Since slippage isnt usefull when calculated on chain against an amm, we use a straight forward heuristic - assume stable coin price of 1 usd and apply slippage against virtual price of lp token/
function setSlippage(uint256 _slippage) external onlyAuthorized { slippage = _slippage; emit LogSetNewSlippage(_slippage); }
9,874,752
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 16811, 434, 272, 3169, 2433, 732, 2791, 282, 632, 5206, 7897, 272, 3169, 2433, 353, 496, 999, 2854, 1347, 8894, 603, 2687, 5314, 392, 2125, 81, 16, 732, 999, 4202, 279, 21251, 5104, 2583...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13928, 3169, 2433, 12, 11890, 5034, 389, 87, 3169, 2433, 13, 3903, 1338, 15341, 288, 203, 3639, 272, 3169, 2433, 273, 389, 87, 3169, 2433, 31, 203, 3639, 3626, 1827, 694, 1908, 55, 3169, 2433, 24899, 87, 3169, 2433, 176...
./partial_match/1/0xF68FfFC8A2cD678562Fc73f13FDA8044e57fA574/sources/contracts/erc721/ERC721Base.sol
* @notice Unregisters a minter @param minter Minter to unregister/
function unregisterMinter(address minter) external onlyOwner nonReentrant { if (!_minters.remove(minter)) { _revert(MinterRegistrationInvalid.selector); } emit MinterRegistrationChanged(minter, false); observability.emitMinterRegistrationChanged(minter, false); }
3,719,846
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1351, 22559, 279, 1131, 387, 632, 891, 1131, 387, 490, 2761, 358, 10232, 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, 10232, 49, 2761, 12, 2867, 1131, 387, 13, 3903, 1338, 5541, 1661, 426, 8230, 970, 288, 203, 3639, 309, 16051, 67, 1154, 5432, 18, 4479, 12, 1154, 387, 3719, 288, 203, 5411, 389, 266, 1097, 12, 49, 2761, 7843, 1941, 18...
./partial_match/8453/0x2287BAF672879935cB944a2C050971515E73da65/sources/theWallb.sol
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection./* @dev See {IERC165-supportsInterface}./
{ return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); }
16,814,280
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 3128, 326, 6835, 635, 3637, 279, 1375, 529, 68, 471, 279, 1375, 7175, 68, 358, 326, 1147, 1849, 18, 20308, 632, 5206, 2164, 288, 45, 654, 39, 28275, 17, 28064, 1358, 5496, 19, 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, 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, 327, 203, 5411, 1560, 548, 422, 618, 12, 45, 654, 39, 27, 5340, 2934, 5831, 548, 747, 203, 5411, 1560, 548, 422, 618, 12, 45, 654, 39, 27, 5340, 2277, 2934, 5831, 548, 747, 203, 5411, 2240, 18, 28064, 135...
// SPDX-License-Identifier: Commercial // remember Open Source != Free Software // for usage contact us at [email protected] // created by https://to.wtf @ 1 Feb 2022 pragma solidity 0.8.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppe...
* @notice withdraw fees & accidentally sent erc20 tokens/
function reclaimERC20(IERC20 token, uint256 _amount) external onlyOwner { require(address(token) != address(tuna), "cannot take tuna"); uint256 balance = token.balanceOf(address(this)); require(_amount <= balance, "incorrect amount"); token.transfer(msg.sender, _amount); }
14,493,479
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 598, 9446, 1656, 281, 473, 25961, 1230, 3271, 6445, 71, 3462, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 283, 14784, 654, 39, 3462, 12, 45, 654, 39, 3462, 1147, 16, 2254, 5034, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 202, 202, 6528, 12, 2867, 12, 2316, 13, 480, 1758, 12, 88, 31172, 3631, 315, 12892, 4862, 268, 31172, ...
./full_match/1/0xdca0641e507709FFE7e1e532533aC84e2c27c4bF/sources/localhost/staking/staking_pools/MixinStakingPoolRewards.sol
@dev Syncs rewards for a delegator. This includes withdrawing rewards rewards and adding/removing dependencies on cumulative rewards. @param poolId Unique id of pool. @param member of the pool. Ensure the pool is finalized. Compute balance owed to delegator No unfinalized values because we ensured the pool is alr...
function _withdrawAndSyncDelegatorRewards( bytes32 poolId, address member ) internal { _assertPoolFinalizedLastEpoch(poolId); uint256 balance = _computeDelegatorReward( poolId, member, 0, 0 ); _delegate...
3,221,507
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9721, 87, 283, 6397, 364, 279, 11158, 639, 18, 1220, 6104, 598, 9446, 310, 283, 6397, 1377, 283, 6397, 471, 6534, 19, 2764, 13767, 5030, 603, 15582, 283, 6397, 18, 632, 891, 2845, 548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1918, 9446, 1876, 4047, 15608, 639, 17631, 14727, 12, 203, 3639, 1731, 1578, 2845, 548, 16, 203, 3639, 1758, 3140, 203, 565, 262, 203, 3639, 2713, 203, 565, 288, 203, 3639, 389, 11231, 2864, 7951, 1235, 3024, 14638, ...
./full_match/4/0x4bDcAF3340FE31eFD1a4cdD30fE9dB3eab17DfDb/sources/tenderly/project/VaderBond.sol
* @notice calculate total interest due for new bond @param _value uint @return uint/ TODO: use fraction? NOTE: scaled up by 1e7 return FixedPoint.fraction(_value, bondPrice()).decode112with18() / 1e11; NOTE: decimals of value must have payout token decimals NOTE: bond price must have principal token decimals
function payoutFor(uint _value) public view returns (uint) { return _value.mul(10**PRINCIPAL_TOKEN_DECIMALS).div(bondPrice()); }
13,298,530
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 20392, 4604, 2078, 16513, 6541, 364, 394, 8427, 225, 632, 891, 389, 1132, 2254, 225, 632, 2463, 2254, 19, 2660, 30, 999, 8330, 35, 5219, 30, 12304, 731, 635, 404, 73, 27, 327, 15038, 214...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 293, 2012, 1290, 12, 11890, 389, 1132, 13, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 203, 3639, 327, 389, 1132, 18, 16411, 12, 2163, 636, 8025, 23213, 2579, 1013, 67, 8412, 67, 23816, 55, 2934, 2892, 12, 26425, 5147, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.2; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/a...
* @notice Make a series of calls and then refunds any funds remaining. @param _sourceToken Optional. An ERC-20 token to collect funds from to be used by the arbirary calls. @param _sourceAmount The number of tokens to collect or 0 if n/a. @param _contracts The contract address for each call to make. @param _callDataCon...
function swapAndCall( IERC20 _sourceToken, uint _sourceAmount, address[] calldata _contracts, bytes calldata _callDataConcat, uint[] calldata _startPositions, uint[] calldata _values, IERC20 _tokenToRefund ) external payable whenNotPaused() { if(_sourceAmount > 0) { t...
12,758,181
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4344, 279, 4166, 434, 4097, 471, 1508, 16255, 87, 1281, 284, 19156, 4463, 18, 632, 891, 389, 3168, 1345, 4055, 18, 1922, 4232, 39, 17, 3462, 1147, 358, 3274, 284, 19156, 628, 358, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7720, 1876, 1477, 12, 203, 565, 467, 654, 39, 3462, 389, 3168, 1345, 16, 203, 565, 2254, 389, 3168, 6275, 16, 203, 565, 1758, 8526, 745, 892, 389, 16351, 87, 16, 203, 565, 1731, 745, 892, 389, 1991, 751, 15113, 16, ...
pragma solidity ^ 0.4.24; import "./ERC20.sol"; import "./Util.sol"; import "./ERC20Token.sol"; import "./Ownable.sol"; import "./Vault.sol"; contract CrowdsaleToken is ERC20Ex, StandardToken, Recoverable { using FreezeBalanceOp for FreezeBalanceOp.t; using CrowdsaleTokenHelper for CrowdsaleTokenHelper.t; ...
solium-disable-next-line indentation
function info() external view returns(string name, string symbol) { return tokenInfo.info(); }
12,615,354
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 5077, 17, 8394, 17, 4285, 17, 1369, 12018, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 1123, 1435, 203, 202, 9375, 203, 202, 1945, 203, 202, 6154, 12, 1080, 508, 16, 533, 3273, 13, 203, 202, 95, 203, 202, 202, 2463, 1147, 966, 18, 1376, 5621, 7010, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -...
./full_match/5/0x589DaBA6Ca8F4C3dE0266eFcDBFEd757953764eE/sources/contracts/test/TestCounter.sol
helper method to waste gas repeat - waste gas on writing storage in a loop junk - dynamic buffer to stress the function size.
mapping(uint256 => uint256) public xxx;
7,040,838
[ 1, 4625, 348, 7953, 560, 30, 4222, 707, 358, 341, 14725, 16189, 7666, 300, 341, 14725, 16189, 603, 7410, 2502, 316, 279, 2798, 525, 1683, 300, 5976, 1613, 358, 384, 663, 326, 445, 963, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 1071, 23354, 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, -...
// File: @openzeppelin/upgrades/contracts/Initializable.sol pragma solidity >=0.4.24 <0.6.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 ...
Get the integer value of a word, by word
function getWordStringToUint256(string calldata _word) external payable requireFeePayment returns (uint256) { emit wordRequested(numberForWord[_word], msg.sender); return numberForWord[_word]; }
921,797
[ 1, 4625, 348, 7953, 560, 30, 968, 326, 3571, 460, 434, 279, 2076, 16, 635, 2076, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 3944, 23282, 5487, 5034, 12, 1080, 745, 892, 389, 1095, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 2583, 14667, 6032, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 3626, 2076, 11244, 1...
/** FederalReserve - $FRE Website: http://www.federalreserves.me/ Tg: https://t.me/FederalReserve_ETH */ pragma solidity ^0.6.12; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ ...
exclude from fees, wallet limit and transaction limit
function _beforeTokenTransfer( address from, address to, uint256 amount } constructor(address _dev) public ERC20("Federal Reserve", "FRE") { uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); _approve(address(...
10,450,674
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 1656, 281, 16, 9230, 1800, 471, 2492, 1800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 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, 12, 2867, 389, 5206, 13, 1071, 4232, 39, 3462, 2932, 21503, 11612, 1124, 6527, ...
//Address: 0xb90e64082d00437e65a76d4c8187596bc213480a //Contract name: StickerRegistry //Balance: 0 Ether //Verification Date: 10/13/2017 //Transacion Count: 22 // CODE STARTS HERE /** * StickerRegistry * * This is a simple contract to implement a demo of a collectible blockchain * item. * * As part of the...
Bailout - Just in case this contract ever received tokens
function approveToken(address token, uint256 amount) { require(msg.sender == _owner); assert(Token(token).approve(_owner, amount)); }
14,110,817
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 671, 659, 300, 12526, 316, 648, 333, 6835, 14103, 5079, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 6617, 537, 1345, 12, 2867, 1147, 16, 2254, 5034, 3844, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 389, 8443, 1769, 203, 3639, 1815, 12, 1345, 12, 2316, 2934, 12908, 537, 24899, 8443, 16, 3844, 10019, 203, 565, ...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initial...
* @notice Internal function to make the bid @dev will only be called by processBid or processMultiBid @param slot the slot for which the caller is bidding @param bidAmount the amount of the bidding @param bidder the address of the bidder Events: `NewBid`/ If there is a previous bid we must return the LXT tokens
function _doBid( uint128 slot, uint128 bidAmount, address bidder ) private { address prevBidder = slots[slot].bidder; uint128 prevBidValue = slots[slot].bidAmount; require( bidAmount > prevBidValue, "LitexAuctionProtocol::_doBid: BID_MUST_B...
12,262,675
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3186, 445, 358, 1221, 326, 9949, 632, 5206, 903, 1338, 506, 2566, 635, 1207, 17763, 578, 1207, 5002, 17763, 632, 891, 4694, 326, 4694, 364, 1492, 326, 4894, 353, 324, 1873, 310, 632, 891...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 2896, 17763, 12, 203, 3639, 2254, 10392, 4694, 16, 203, 3639, 2254, 10392, 9949, 6275, 16, 203, 3639, 1758, 9949, 765, 203, 565, 262, 3238, 288, 203, 3639, 1758, 2807, 17763, 765, 273, 12169, 63, 14194, 8009, 19773, ...
./partial_match/3/0x6cc9b43f81C40E3BB3Fe544472F2653EE539E75C/sources/MyLotto.sol
Variable for pool address for tokens for ticket purchase
address private _buyerPoolAddress;
5,278,732
[ 1, 4625, 348, 7953, 560, 30, 225, 7110, 364, 2845, 1758, 364, 2430, 364, 9322, 23701, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 3238, 389, 70, 16213, 2864, 1887, 31, 15604, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xbE2b4211228796498d0813C8f0eE0129871DE7B6/sources/Fooyao_batch_mint.sol
* @dev 批量提取ERC721 @param target NFT合约地址 @param startWalletIndex 钱包起始序号,0开始 @param endWalletIndex 钱包结束序号 @param startID NFT起始tokenID @param amountPerTX 单个钱包mint数量/
function batch_withdrawal_721(address target, uint16 startWalletIndex, uint16 endWalletIndex, uint16 startID, uint16 amountPerTX) external{ fooyao.batch_withdrawal_721(msg.sender, target, startWalletIndex, endWalletIndex, startID, amountPerTX); }
3,688,902
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 225, 167, 236, 122, 170, 234, 242, 167, 242, 243, 166, 242, 249, 654, 39, 27, 5340, 632, 891, 1018, 423, 4464, 166, 243, 235, 168, 123, 104, 166, 255, 113, 166, 256, 227, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2581, 67, 1918, 9446, 287, 67, 27, 5340, 12, 2867, 1018, 16, 2254, 2313, 787, 16936, 1016, 16, 2254, 2313, 679, 16936, 1016, 16, 2254, 2313, 787, 734, 16, 2254, 2313, 3844, 2173, 16556, 13, 3903, 95, 203, 202, 202, 11...
pragma solidity 0.4.24; // File: openzeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 _a, uint256 _b) internal pure returns ...
number of cards dropped by period
uint16 private cardsByPeriod;
7,766,527
[ 1, 4625, 348, 7953, 560, 30, 225, 1300, 434, 18122, 14611, 635, 3879, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 2313, 3238, 18122, 858, 5027, 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, ...
pragma solidity >=0.4.22 <0.6.0; contract Ownable { address payable public owner; address payable public developer; event OwnershipRenounced(address indexed previousOwner); event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); /...
transfer admin commission */
_ghostProfit = _ghostProfit.add(_ghostCommission);
2,577,617
[ 1, 4625, 348, 7953, 560, 30, 225, 7412, 3981, 1543, 19710, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 75, 2564, 626, 7216, 273, 389, 75, 2564, 626, 7216, 18, 1289, 24899, 75, 2564, 799, 3951, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x274E920503d5abfC8113a273bDBF2069C729c9cD/sources/Chublins.sol
if current level is 0, you can set it to 1 or 2 if current level is 1 or 2, you can set it to 2
function modifyLicense(uint256 tokenId, uint8 level) public returns(string memory){ require(ownerOf(tokenId) == msg.sender, "Only the owner of this token can perform this action"); require(level == 1 || level==2, "Allowed values for level can only be 1 or 2"); if(_licenses[tokenId] == 0) { ...
15,642,951
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 783, 1801, 353, 374, 16, 1846, 848, 444, 518, 358, 404, 578, 576, 309, 783, 1801, 353, 404, 578, 576, 16, 1846, 848, 444, 518, 358, 576, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 5612, 13211, 12, 11890, 5034, 1147, 548, 16, 2254, 28, 1801, 13, 1071, 1135, 12, 1080, 3778, 15329, 203, 3639, 2583, 12, 8443, 951, 12, 2316, 548, 13, 422, 1234, 18, 15330, 16, 315, 3386, 326, 3410, 434, 333, 1147, 84...
./partial_match/4/0x1a0DF2e1eF2b3CDa3993fc54F7Ea3D1c4A548DDa/sources/CrustToken.sol
claim all token in the account
function claimAll(bytes32 pubKey) public { uint256 amount = _token.getBalance(msg.sender); _claim(msg.sender, amount, pubKey); }
8,707,797
[ 1, 4625, 348, 7953, 560, 30, 225, 7516, 777, 1147, 316, 326, 2236, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 7516, 1595, 12, 3890, 1578, 18659, 13, 1071, 288, 203, 565, 2254, 5034, 3844, 273, 389, 2316, 18, 588, 13937, 12, 3576, 18, 15330, 1769, 203, 565, 389, 14784, 12, 3576, 18, 15330, 16, 3844, 16, 18659, 1769, 203, 225, ...
pragma solidity 0.6.12; interface IERC20 { function TOTALSUPPLY831() external view returns (uint256); //i...
inject NONSTANDARD NAMING
function LOG714(bool p0, bool p1, uint p2, uint p3) internal view {
14,087,887
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 2018, 27, 3461, 12, 6430, 293, 20, 16, 1426, 293, 21, 16, 2254, 293, 22, 16, 2254, 293, 23, 13, 2713, 1476, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x103878E5c21BBB793c14B8eD7a4e0534cE276C7a/sources/contracts/token/ThePhilosophersStone.sol
get balance of liquidity pair pull tokens from pancakePair liquidity and move to dead address permanentlysync price since this is not in a swap transaction!
function manualBurnLiquidityPairTokens(uint256 amount) external onlyOwner returns (bool) { require( block.timestamp > lastManualLpBurnTime + manualBurnFrequency, "Must wait for cooldown to finish" ); require(amount <= totalSupply() * manual...
9,664,347
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 11013, 434, 4501, 372, 24237, 3082, 6892, 2430, 628, 2800, 23780, 4154, 4501, 372, 24237, 471, 3635, 358, 8363, 1758, 16866, 715, 8389, 6205, 3241, 333, 353, 486, 316, 279, 7720, 2492, 5, 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, 11297, 38, 321, 48, 18988, 24237, 4154, 5157, 12, 11890, 5034, 3844, 13, 203, 3639, 3903, 203, 3639, 1338, 5541, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 1203, 18, 5508, 405, 1142, ...
// SPDX-FileCopyrightText: 2021 ShardLabs // SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.7; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/Reen...
@notice Get the global state
function getState() external view override returns ( uint256 _totalNodeOperator, uint256 _totalInactiveNodeOperator, uint256 _totalActiveNodeOperator, uint256 _totalStoppedNodeOperator, uint256 _totalUnstakedNodeOperator, ...
6,084,913
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 968, 326, 2552, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8997, 1435, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 261, 203, 5411, 2254, 5034, 389, 4963, 907, 5592, 16, 203, 5411, 2254, 5034, 389, 4963, 24384, 907, 5592, 16, 203, 5411, 2254, 5034, 389, 4...
/** *Submitted for verification at Etherscan.io on 2020-06-16 */ pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; /// @title Ownable /// @author Brecht Devos - <brecht@loopring.org> /// @dev The Ownable contract has an owner address, and provides basic /// authorization control functions, this simplif...
@title DataStore @dev Modules share states by accessing the same storage instance. Using ModuleStorage will achieve better module decoupling. @author Daniel Wang - <daniel@loopring.org> The design of this contract is inspired by Argent's contract codebase: https://github.com/argentlabs/argent-contracts
{ modifier onlyWalletModule(address wallet) function removeSet(bytes32 key) internal } function isAddressInSet( bytes32 key, address addr ) internal view returns (bool) } function numAddressesInSet(bytes32 key) internal view...
7,289,604
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 22961, 632, 5206, 25493, 7433, 5493, 635, 19531, 326, 1967, 2502, 791, 18, 1377, 11637, 5924, 3245, 903, 20186, 537, 7844, 1605, 2109, 28322, 18, 632, 4161, 463, 28662, 292, 678, 539, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 95, 203, 225, 9606, 1338, 16936, 3120, 12, 2867, 9230, 13, 203, 565, 445, 1206, 694, 12, 3890, 1578, 498, 13, 203, 3639, 2713, 203, 565, 289, 203, 203, 565, 445, 353, 1887, 382, 694, 12, 203, 3639, 1731, 1578, 498, 16, 203, 3...
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // Sample token contract // // Symbol : RYT // Name : Ruby Yachts EY125HF Token // Total supply : 2500000 // Decimals : 6 // Owner Account : 0xeF89926EA0984D1815FdD032E75098D26f6Fa49A // // En...
*/ ------------------------------------------------------------------------ Constructor ------------------------------------------------------------------------
contract RYTToken is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; Contract function to receive approval and execute function in on...
6,091,153
[ 1, 4625, 348, 7953, 560, 30, 1195, 8879, 17082, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 534, 61, 56, 1345, 353, 4232, 39, 3462, 1358, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, 3088, 1283, 31,...
./full_match/42/0xf5E66D9f696C787410a0796A734B15BE50f3093F/sources/contracts/Lvr.sol
* @notice Transfer `amount` tokens from `msg.sender` to `dst` @param dst The address of the destination account @param rawAmount The number of tokens to transfer @return Whether or not the transfer succeeded/
function transfer(address dst, uint rawAmount) external returns (bool) { uint96 amount = safe96(rawAmount, "Vsn Network:: transfer: amount exceeds 96 bits"); _transferTokens(msg.sender, dst, amount); return true; }
16,207,376
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 12279, 1375, 8949, 68, 2430, 628, 1375, 3576, 18, 15330, 68, 358, 1375, 11057, 68, 632, 891, 3046, 1021, 1758, 434, 326, 2929, 2236, 632, 891, 1831, 6275, 1021, 1300, 434, 2430, 358, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7412, 12, 2867, 3046, 16, 2254, 1831, 6275, 13, 3903, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 10525, 3844, 273, 4183, 10525, 12, 1899, 6275, 16, 315, 58, 8134, 5128, 2866, 7412, 30, 3844, 14399, 19332, 4125, 8863, 20...
// SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity 0.6.12; import "./interfaces/IBancorFormula.sol"; import "../utility/SafeMath.sol"; contract BancorFormula is IBancorFormula { using SafeMath for uint256; uint256 private constant ONE = 1; uint32 private constant MAX_WEIGHT = 1000...
sub x^(28-1) * (34! * 28^(28-1) / 28!)
xi = (xi * _x) / FIXED_1; res -= xi * 0x00c8c8f66db1fced378ee50e536000000000000000;
1,786,762
[ 1, 4625, 348, 7953, 560, 30, 225, 720, 619, 29020, 6030, 17, 21, 13, 380, 261, 5026, 5, 380, 9131, 29020, 6030, 17, 21, 13, 342, 9131, 24949, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14087, 273, 261, 27005, 380, 389, 92, 13, 342, 26585, 67, 21, 31, 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, ...
./partial_match/42/0xAf28207B8266B79665cf38AF6d8376AF981dAd0d/sources/CyclopsBank.sol
for all users for all deposits of specific famer
function totalVotesForPeriodByFamer(uint32 famer_id, uint256 start_date, uint256 end_date) internal view returns(uint256){ uint256 total_votes_for_famer = 0; for(uint256 i=0; i < deposit_holders.length; i++){ address cust_wallet = deposit_holders[i]; for(uint256 j=0; j < ...
3,313,076
[ 1, 4625, 348, 7953, 560, 30, 364, 777, 3677, 364, 777, 443, 917, 1282, 434, 2923, 284, 24458, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 29637, 1290, 5027, 858, 42, 24458, 12, 11890, 1578, 284, 24458, 67, 350, 16, 2254, 5034, 787, 67, 712, 16, 2254, 5034, 679, 67, 712, 13, 2713, 1476, 1135, 12, 11890, 5034, 15329, 203, 3639, 2254, 5034, 2078, 67, ...
./full_match/42/0xE3fd40E658284bac18b42b15A8a7B6C8E2D3Dbb0/sources/contracts/BaseRewardPool.sol
withdraw from linked rewards
withdrawExtraRewards(msg.sender, _amount);
9,570,968
[ 1, 4625, 348, 7953, 560, 30, 225, 598, 9446, 628, 8459, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 598, 9446, 7800, 17631, 14727, 12, 3576, 18, 15330, 16, 389, 8949, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// File: @openzeppelin/contracts/utils/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they sho...
override for the private URI inside OZ kind ID => true indicates that the dick exists dick ID => kind ID kind ID => URI the contract that has the right to mint
contract Dicks is ERC721, Ownable { using Counters for Counters.Counter; Counters.Counter private _tokenIds; string public __baseURI; mapping (uint256 => bool) public kindExists; mapping (uint256 => uint256) public kind; mapping (uint256 => string) public kindURIs; address public minter; modi...
13,735,012
[ 1, 4625, 348, 7953, 560, 30, 225, 3849, 364, 326, 3238, 3699, 4832, 531, 62, 3846, 1599, 516, 638, 8527, 716, 326, 302, 1200, 1704, 302, 1200, 1599, 516, 3846, 1599, 3846, 1599, 516, 3699, 326, 6835, 716, 711, 326, 2145, 358, 312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 463, 20642, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 203, 225, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 225, 9354, 87, 18, 4789, 3238, 389, 2316, 2673, 31, 203, 203, 225, 533, 1071, 1001, 1969, 3098, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.7.0 <0.9.0; pragma experimental ABIEncoderV2; // File: node_modules\witnet-solidity-bridge\contracts\interfaces\IWitnetRequestBoardEvents.sol /// @title Witnet Request Board emitting events interface. /// @author The Witnet Foundation. interface IWitnetRequestBoardE...
Recovers address from hash and signature.
function recoverAddr(bytes32 _hash, bytes memory _signature) internal pure returns (address) { if (_signature.length != 65) { return (address(0)); } bytes32 r; bytes32 s; uint8 v; assembly { r := mload(add(_signature, 0x20))...
6,983,716
[ 1, 4625, 348, 7953, 560, 30, 225, 7776, 23042, 1758, 628, 1651, 471, 3372, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5910, 3178, 12, 3890, 1578, 389, 2816, 16, 1731, 3778, 389, 8195, 13, 203, 3639, 2713, 16618, 203, 3639, 1135, 261, 2867, 13, 203, 565, 288, 203, 3639, 309, 261, 67, 8195, 18, 2469, 480, 15892, 13, 288, 203, 5411, 327...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's C...
account shortfall below collateral requirements)/
function getAccountLiquidity(address account) public returns (uint, uint, uint) { (Error err, uint liquidity, uint shortfall) = getHypotheticalAccountLiquidityInternal(account, CToken(0), 0, 0); return (uint(err), liquidity, shortfall); }
564,606
[ 1, 4625, 348, 7953, 560, 30, 6647, 2236, 3025, 25602, 5712, 4508, 2045, 287, 8433, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 23393, 48, 18988, 24237, 12, 2867, 2236, 13, 1071, 1135, 261, 11890, 16, 2254, 16, 2254, 13, 288, 203, 3639, 261, 668, 393, 16, 2254, 4501, 372, 24237, 16, 2254, 3025, 25602, 13, 273, 7628, 879, 10370, 278, 1706, 3032, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "./interfaces/IOverlayV1Deployer.sol"; import "./interfaces/IOverlayV1Factory.sol"; import "./interfaces/IOverlayV1Market.sol"; import "./interfaces/IOverlayV1Token.sol"; import "./interfaces/feeds/IOverlayV1FeedFactory.sol"; import "./libraries/Risk.sol"...
@notice Setter for fee repository
function setFeeRecipient(address _feeRecipient) external onlyGovernor { require(_feeRecipient != address(0), "OVLV1: feeRecipient should not be zero address"); feeRecipient = _feeRecipient; emit FeeRecipientUpdated(msg.sender, _feeRecipient); }
14,080,128
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1000, 387, 364, 14036, 3352, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 14667, 18241, 12, 2867, 389, 21386, 18241, 13, 3903, 1338, 43, 1643, 29561, 288, 203, 3639, 2583, 24899, 21386, 18241, 480, 1758, 12, 20, 3631, 315, 51, 58, 48, 58, 21, 30, 14036, 18241, 1410, 486, 506, 3634, 1758,...
pragma solidity 0.4.24; contract Kitties { function ownerOf(uint id) public view returns (address); } contract ICollectable { function mint(uint32 delegateID, address to) public returns (uint); function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, ui...
calculate the total purchase price
uint totalPrice = price.mul(kittyIDs.length);
2,437,113
[ 1, 4625, 348, 7953, 560, 30, 225, 4604, 326, 2078, 23701, 6205, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2078, 5147, 273, 6205, 18, 16411, 12, 8691, 4098, 5103, 18, 2469, 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, -...
pragma solidity ^0.4.25; /** * * World War Goo - Competitive Idle Game * * https:/ethergoo.io * */ interface ERC20 { function totalSupply() external constant returns (uint); function balanceOf(address tokenOwner) external constant returns (uint balance); function allowance(address to...
No more production once we hit MAX_SUPPLY
bool public supplyCapHit;
15,868,650
[ 1, 4625, 348, 7953, 560, 30, 225, 2631, 1898, 12449, 3647, 732, 6800, 4552, 67, 13272, 23893, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1426, 1071, 14467, 4664, 13616, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: MIT pragma solidity >0.5.0 <0.8.0; pragma experimental ABIEncoderV2; /* Contract Imports */ import { iAbs_BaseCrossDomainMessenger } from "../../iOVM/bridge/messenging/iAbs_BaseCrossDomainMessenger.sol"; /** * @title mockOVM_CrossDomainMessenger */ contract mockOVM_CrossDomainMessenger i...
* Receives a message to be sent later. @param _message Message to send later./
function receiveMessage( ReceivedMessage memory _message ) public { fullReceivedMessages.push(_message); }
15,815,140
[ 1, 4625, 348, 7953, 560, 30, 380, 9797, 3606, 279, 883, 358, 506, 3271, 5137, 18, 632, 891, 389, 2150, 2350, 358, 1366, 5137, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6798, 1079, 12, 203, 3639, 21066, 1079, 3778, 389, 2150, 203, 565, 262, 203, 3639, 1071, 203, 565, 288, 203, 3639, 1983, 8872, 5058, 18, 6206, 24899, 2150, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100,...
// File: @aragon/court/contracts/lib/os/IsContract.sol // Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/common/IsContract.sol // Adapted to use pragma ^0.5.8 and satisfy our linter rules pragma solidity ^0.5.8; contract IsCon...
inject NONSTANDARD NAMING
event REMOVELIQUIDITY507(address indexed provider, uint256 indexed eth_amount, uint256 indexed token_amount);
2,479,456
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 871, 26056, 2053, 53, 3060, 4107, 3361, 27, 12, 2867, 8808, 2893, 16, 2254, 5034, 8808, 13750, 67, 8949, 16, 2254, 5034, 8808, 1147, 67, 8949, 1769, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.0; import "./libs/ListAsRingLib.sol"; import "./libs/EntityLib.sol"; import "./libs/AddressIndexLib.sol"; import "./libs/StringIndexLib.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; contract HallOfFame is Ownable { using EntityLib for EntityLib.Entities; using Lis...
* @dev Create an admin @param _data admin info. @param _address admin uniq code. @return uint/
function addAdmin( string calldata _data, address _address ) external onlyOwner returns(uint) { uint id = admins.add(_data); adminIndexes.add(_address, id); emit AdminAdded(msg.sender, id, _address); }
12,636,189
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1788, 392, 3981, 632, 891, 389, 892, 3981, 1123, 18, 632, 891, 389, 2867, 3981, 10748, 981, 18, 632, 2463, 2254, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 4446, 12, 203, 3639, 533, 745, 892, 389, 892, 16, 203, 3639, 1758, 389, 2867, 203, 565, 262, 203, 565, 3903, 203, 565, 1338, 5541, 203, 565, 1135, 12, 11890, 13, 203, 565, 288, 203, 3639, 2254, 612, 273, 31116, ...
./partial_match/42/0x53383E8484804D21d7DE196Db3DC31EFCBbcEA9f/sources/ICManagerV2.sol
Dependency file: contracts/lib/AddressArrayUtils.sol/ pragma solidity 0.6.10;* @title AddressArrayUtils @author Set Protocol Utility functions to handle Address Arrays/
library AddressArrayUtils { function addComponent(address _component) external; function removeComponent(address _component) external; function editDefaultPositionUnit(address _component, int256 _realUnit) external; function addExternalPositionModule(address _component, address _positionModule) externa...
3,306,472
[ 1, 4625, 348, 7953, 560, 30, 225, 11993, 585, 30, 20092, 19, 2941, 19, 1887, 1076, 1989, 18, 18281, 19, 10878, 18035, 560, 374, 18, 26, 18, 2163, 31, 14, 632, 2649, 5267, 1076, 1989, 632, 4161, 1000, 4547, 13134, 4186, 358, 1640, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 1076, 1989, 288, 203, 203, 565, 445, 15218, 12, 2867, 389, 4652, 13, 3903, 31, 203, 565, 445, 1206, 1841, 12, 2867, 389, 4652, 13, 3903, 31, 203, 565, 445, 3874, 1868, 2555, 2802, 12, 2867, 389, 4652, 16, 509, 5034...
./full_match/43114/0x6741db012578615Ee07e029C1062B46730093912/sources/flatten-StakingPool.sol
@param _burnAddress The new burn address
function setBurnAddress(address _burnAddress) external onlyOwner { burnAddress = _burnAddress; emit SetBurnAddress(msg.sender, _burnAddress); }
4,518,210
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 891, 389, 70, 321, 1887, 1021, 394, 18305, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15268, 321, 1887, 12, 2867, 389, 70, 321, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 18305, 1887, 273, 389, 70, 321, 1887, 31, 203, 3639, 3626, 1000, 38, 321, 1887, 12, 3576, 18, 15330, 16, 389, 70, 321, 1887, 1769, ...
./partial_match/1313161554/0xa7Fe63915943D06C21a6B8Ae394121EC6F79D009/sources/WalliroMultiSendCallOnly.sol
@title Multi Send Call Only - Allows to batch multiple transactions into one, but only calls @notice The guard logic is not required here as this contract doesn't support nested delegate calls
contract WalliroMultiSendCallOnly { pragma solidity >=0.7.0 <0.9.0; function multiSend(bytes memory transactions) public payable { assembly { let length := mload(transactions) let i := 0x20 for { let operation := shr(0xf8, mload(add(transactions, i))) ...
16,912,222
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 5991, 2479, 3049, 5098, 300, 25619, 358, 2581, 3229, 8938, 1368, 1245, 16, 1496, 1338, 4097, 632, 20392, 1021, 11026, 4058, 353, 486, 1931, 2674, 487, 333, 6835, 3302, 1404, 2865, 4764, 715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 678, 454, 11373, 5002, 3826, 1477, 3386, 288, 203, 683, 9454, 18035, 560, 1545, 20, 18, 27, 18, 20, 411, 20, 18, 29, 18, 20, 31, 203, 565, 445, 3309, 3826, 12, 3890, 3778, 8938, 13, 1071, 8843, 429, 288, 203, 3639, 199...
./full_match/5/0x204Bc468cc9333A7Aac12aC2dBe03DcCFe9f03d0/sources/contracts/protocol/interfaces/pool/IRigoblockV3PoolState.sol
@notice Returns the struct containing pool initialization parameters. @dev Symbol is stored as bytes8 but returned as string in the returned struct, unlocked is omitted as alwasy true. @return ReturnedPool struct. @notice Pool variables. @param minPeriod Minimum holding period in seconds. @param spread Value of spread...
function getPool() external view returns (ReturnedPool memory); struct PoolParams { uint48 minPeriod; uint16 spread; uint16 transactionFee; address feeCollector; address kycProvider; }
7,040,087
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2860, 326, 1958, 4191, 2845, 10313, 1472, 18, 632, 5206, 8565, 353, 4041, 487, 1731, 28, 1496, 2106, 487, 533, 316, 326, 2106, 1958, 16, 25966, 353, 16195, 487, 524, 91, 15762, 638, 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, 28575, 1435, 3903, 1476, 1135, 261, 22360, 2864, 3778, 1769, 203, 203, 565, 1958, 8828, 1370, 288, 203, 3639, 2254, 8875, 1131, 5027, 31, 203, 3639, 2254, 2313, 15103, 31, 203, 3639, 2254, 2313, 2492, 14667, 31, 203, 3639...
./partial_match/4/0xc8a6E32e214Fef7460e167f6B2FE549e3888Dc46/sources/a.sol
requireAdress.transfer(_amount*10000000000000000);
function send(uint256 _amount) public payable returns(uint256){ msg.sender.send(10000000000000000); return 0; }
16,967,221
[ 1, 4625, 348, 7953, 560, 30, 565, 2583, 1871, 663, 18, 13866, 24899, 8949, 14, 21, 12648, 12648, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1366, 12, 11890, 5034, 389, 8949, 13, 1071, 8843, 429, 1135, 12, 11890, 5034, 15329, 203, 540, 1234, 18, 15330, 18, 4661, 12, 21, 12648, 12648, 1769, 203, 540, 327, 374, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100...
// SaiValuesAggregator.sol -- Sai values aggregator // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This progra...
Price feed value for gov
(pepVal, pepSet) = pep.peek();
11,670,509
[ 1, 4625, 348, 7953, 560, 30, 225, 20137, 4746, 460, 364, 31841, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 261, 29363, 3053, 16, 293, 881, 694, 13, 273, 293, 881, 18, 347, 3839, 5621, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x096bC8185Bd86DD5f9569def17D8dBAA03F72581/sources/DOGE2Token.sol
* @dev acnwyhrdt Returns the amkuxntacnwyhrdt of tokens amkuxnt owned by `acnwyhrdt`./
function balanceOf(address acnwyhrdt) public view virtual override returns (uint256) { return _balances[acnwyhrdt]; }
16,063,552
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1721, 82, 91, 93, 7256, 7510, 2860, 326, 2125, 79, 2616, 496, 1077, 82, 91, 93, 7256, 7510, 434, 2430, 2125, 79, 2616, 496, 16199, 635, 1375, 1077, 82, 91, 93, 7256, 7510, 8338, 19, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 951, 12, 2867, 1721, 82, 91, 93, 7256, 7510, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 389, 70, 26488, 63, 107...
./full_match/1/0x0000000000C480563CCbc2832FB38Ea654387922/sources/contracts/tokens/ERC1155/Layerr1155.sol
* @inheritdoc ILayerr1155/
function updateMetadataSpecificTokens(uint256[] calldata tokenIds) external onlyOwner { ILayerrRenderer renderer = ILayerrRenderer(_getRenderer()); for(uint256 i; i < tokenIds.length; ) { uint256 tokenId = tokenIds[i]; emit URI(renderer.tokenURI(address(this), tokenId), token...
9,714,963
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 10093, 467, 48, 528, 370, 2499, 2539, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 2277, 9969, 5157, 12, 11890, 5034, 8526, 745, 892, 1147, 2673, 13, 3903, 1338, 5541, 288, 203, 3639, 467, 48, 528, 370, 6747, 5690, 273, 467, 48, 528, 370, 6747, 24899, 588, 6747, 10663, 203, 3639, 364, 12, 11890,...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; // File: @openzeppelin/contracts/token/ERC20/IERC20.sol /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() exte...
* @dev Returns the integer division of two unsigned integers, reverting on division by zero. The result is rounded towards zero. Counterpart to Solidity's `/` operator. Note: this function uses a `revert` opcode (which leaves remaining gas untouched) while Solidity uses an invalid opcode to revert (consuming all remain...
function div(uint a, uint b) internal pure returns (uint) { require(b > 0, "SafeMath: division by zero"); return a / b; }
54,412
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 3571, 16536, 434, 2795, 9088, 12321, 16, 15226, 310, 603, 16536, 635, 3634, 18, 1021, 563, 353, 16729, 23248, 3634, 18, 9354, 2680, 358, 348, 7953, 560, 1807, 1375, 19, 68, 372...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3739, 12, 11890, 279, 16, 2254, 324, 13, 2713, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 2583, 12, 70, 405, 374, 16, 315, 9890, 10477, 30, 16536, 635, 3634, 8863, 203, 3639, 327, 279, 342, 324, 31, 203, 565, 289, ...
./full_match/1/0x19de553a8CfFCFF8CB49E236C1a499F9CF083b97/sources/contracts/token/onft/ONFT721Core.sol
ensures enough gas in adapter params to handle batch transfer gas amounts on the dst
function setDstChainIdToTransferGas( uint16 _dstChainId, uint256 _dstChainIdToTransferGas ) external onlyOwner { require( _dstChainIdToTransferGas > 0, "dstChainIdToTransferGas must be > 0" ); dstChainIdToTransferGas[_dstChainId] = _dstChainIdToTra...
16,597,543
[ 1, 4625, 348, 7953, 560, 30, 225, 11932, 7304, 16189, 316, 4516, 859, 358, 1640, 2581, 7412, 16189, 30980, 603, 326, 3046, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 15295, 3893, 28803, 5912, 27998, 12, 203, 3639, 2254, 2313, 389, 11057, 3893, 548, 16, 203, 3639, 2254, 5034, 389, 11057, 3893, 28803, 5912, 27998, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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 assume that an overflow raises an * error,...
@dev Helper function to parse spend and incoming assets from encoded call args during lendAndStake() calls
function __parseAssetsForLendAndStake(bytes calldata _encodedCallArgs) private view returns ( IIntegrationManager.SpendAssetsHandleType spendAssetsHandleType_, address[] memory spendAssets_, uint256[] memory spendAssetAmounts_, address[] memory...
1,412,492
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9705, 445, 358, 1109, 17571, 471, 6935, 7176, 628, 3749, 745, 833, 4982, 328, 409, 1876, 510, 911, 1435, 4097, 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, 1001, 2670, 10726, 1290, 48, 409, 1876, 510, 911, 12, 3890, 745, 892, 389, 10787, 1477, 2615, 13, 203, 3639, 3238, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 467, 15372, 1318, 18, 27223, 10726, 3259, 559, 17571, ...
./partial_match/3/0x601dDc63fD703D88c8c8C0376C75E83257f4d468/sources/MyContract.sol
thêm tên các đội ở mảng people vào mảng mới là b
{ uint id = people.length; string [] memory b = new string[](id); for(uint i =0; i < id; i ++) function getdoi() public view returns (string[] memory ) { b[i] = people[i].doi; } uint n = id; for (uint i = 0; i< n ; i ++) { ...
5,094,135
[ 1, 4625, 348, 7953, 560, 30, 225, 286, 132, 108, 81, 268, 132, 108, 82, 276, 132, 99, 71, 225, 133, 244, 162, 124, 252, 77, 225, 162, 124, 258, 312, 162, 123, 101, 3368, 16951, 331, 132, 259, 83, 312, 162, 123, 101, 3368, 312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 540, 2254, 612, 273, 16951, 18, 2469, 31, 203, 540, 533, 5378, 3778, 324, 273, 394, 533, 8526, 12, 350, 1769, 203, 540, 364, 12, 11890, 277, 273, 20, 31, 277, 411, 612, 31, 277, 965, 13, 203, 282, 445, 336, 2...
./full_match/80001/0xcC8456Ea321968B65c6b0E06FeCf76c172510352/sources/contracts/Fellowship.sol
sum of all payments for services in contract
uint256 public rewardPool;
852,547
[ 1, 4625, 348, 7953, 560, 30, 2142, 434, 777, 25754, 364, 4028, 316, 6835, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 19890, 2864, 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,...
./full_match/4/0x83c6bd824A24321DebF10aD6112C9a587EB1080b/sources/HowlTest.sol
@title Dividend-Paying Token Optional Interface @author Roger Wu (https://github.com/roger-wu) @dev OPTIONAL functions for a dividend-paying token contract.
interface DividendPayingTokenOptionalInterface { function withdrawableDividendOf(address _owner) external view returns(uint256); function withdrawnDividendOf(address _owner) external view returns(uint256); function accumulativeDividendOf(address _owner) external view returns(uint256); } }
662,232
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 21411, 26746, 17, 9148, 310, 3155, 4055, 6682, 632, 4161, 534, 83, 693, 678, 89, 261, 4528, 2207, 6662, 18, 832, 19, 303, 693, 17, 91, 89, 13, 632, 5206, 14930, 4186, 364, 279, 31945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 21411, 26746, 9148, 310, 1345, 6542, 1358, 288, 203, 225, 445, 598, 9446, 429, 7244, 26746, 951, 12, 2867, 389, 8443, 13, 3903, 1476, 1135, 12, 11890, 5034, 1769, 203, 203, 225, 445, 598, 9446, 82, 7244, 26746, 951, 12, 286...
/** *Submitted for verification at Etherscan.io on 2020-03-29 */ /** *Submitted for verification at Etherscan.io on 2019-10-18 */ pragma solidity ^0.5.5; library strings { struct slice { uint _len; uint _ptr; } function memcpy(uint dest, uint src, uint len) private pure { // Co...
@dev Returns a positive number if `other` comes lexicographically after `self`, a negative number if it comes before, or zero if the contents of the two slices are equal. Comparison is done per-rune, on unicode codepoints. @param self The first slice to compare. @param other The second slice to compare....
function compare(slice memory self, slice memory other) internal pure returns (int) { if (other._len < self._len) shortest = other._len; uint a; uint b; assembly { a := mload(selfptr) b := mload(otherptr) } ...
13,059,139
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 279, 6895, 1300, 309, 1375, 3011, 68, 14535, 30089, 8829, 6478, 1839, 1377, 1375, 2890, 9191, 279, 6092, 1300, 309, 518, 14535, 1865, 16, 578, 3634, 309, 326, 1377, 2939, 434, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 3400, 12, 6665, 3778, 365, 16, 2788, 3778, 1308, 13, 2713, 16618, 1135, 261, 474, 13, 288, 203, 203, 3639, 309, 261, 3011, 6315, 1897, 411, 365, 6315, 1897, 13, 203, 5411, 20579, 273, 1308, 6315, 1897, 31, 203, 203, 2...
./full_match/1/0x3E8AF8a2f06f2dB2474c13d7259724758B42Cf53/sources/XengameV2Live/NFTregistry.sol
Calculate the reward points for the NFT Check if the NFT was previously registered to a different user Remove the previous owner's points Pay the previous owner their rewards
function registerNFT(uint256 tokenId) public { address player = msg.sender; require(IXENNFTContract(nftContractAddress).ownerOf(tokenId) == player, "You don't own this NFT."); uint256 rewardPoints = getTokenWeight(tokenId); address previousOwner = getNFTOwner(tokenId); req...
17,023,542
[ 1, 4625, 348, 7953, 560, 30, 225, 9029, 326, 19890, 3143, 364, 326, 423, 4464, 2073, 309, 326, 423, 4464, 1703, 7243, 4104, 358, 279, 3775, 729, 3581, 326, 2416, 3410, 1807, 3143, 13838, 326, 2416, 3410, 3675, 283, 6397, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1744, 50, 4464, 12, 11890, 5034, 1147, 548, 13, 1071, 288, 203, 3639, 1758, 7291, 273, 1234, 18, 15330, 31, 203, 3639, 2583, 12, 12507, 1157, 50, 4464, 8924, 12, 82, 1222, 8924, 1887, 2934, 8443, 951, 12, 2316, 548, 1...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "./interfaces/ManagerLike.sol"; import "./interfaces/ICommand.sol"; import "./interfaces/BotLike.sol"; import "./ServiceRegistry.sol"; import "./interfaces/SpotterLike.sol"; import "./interfaces/VatLike.sol"; import "./interfaces/OsmMomLike.sol"; impo...
@notice Gets Vault info (collateral, debt) @param vaultId Id of the Vault
function getVaultInfo(uint256 vaultId) public view returns (uint256, uint256) { address urn = manager.urns(vaultId); bytes32 ilk = manager.ilks(vaultId); (uint256 collateral, uint256 debt) = vat.urns(ilk, urn); (, uint256 rate, , , ) = vat.ilks(ilk); return (collateral, rmu...
9,866,543
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11881, 17329, 1123, 261, 12910, 2045, 287, 16, 18202, 88, 13, 632, 891, 9229, 548, 3124, 434, 326, 17329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11031, 3714, 966, 12, 11890, 5034, 9229, 548, 13, 1071, 1476, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 288, 203, 3639, 1758, 18412, 273, 3301, 18, 321, 87, 12, 26983, 548, 1769, 203, 3639, 1731, 1578, 14254, 79, 273,...
./full_match/1/0x742DF798DCcf268A2b0b692e217DDb288c813045/sources/contracts/TheMidasTouchMasterChef.sol
View function to see pending BCHIEFs on frontend.
function pendingGold(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accGoldPerShare = pool.accGoldPerShare; if (block.timestamp > pool.lastRewardTimestamp && pool.totalMulti...
4,902,440
[ 1, 4625, 348, 7953, 560, 30, 225, 4441, 445, 358, 2621, 4634, 605, 1792, 8732, 12432, 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...
[ 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, 4634, 43, 1673, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; import "../interfaces/ILiquidityPool.sol"; import "../interfaces/IManager.sol"; import "@openzeppelin/contracts-upgradeable/proxy/Initializable.sol"; import {SafeMathUpgradeable as SafeMath} from "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"...
implied: deployableLiquidity = underlyer.balanceOf(this) - withheldLiquidity fAsset holder -> WithdrawalInfo
contract Pool is ILiquidityPool, Initializable, ERC20, Ownable, Pausable { using SafeMath for uint256; using SafeERC20 for ERC20; ERC20 public override underlyer; IManager public manager; uint256 public override withheldLiquidity; mapping(address => WithdrawalInfo) public override requestedWi...
5,773,463
[ 1, 4625, 348, 7953, 560, 30, 225, 23547, 30, 7286, 429, 48, 18988, 24237, 273, 3613, 715, 264, 18, 12296, 951, 12, 2211, 13, 300, 598, 76, 488, 48, 18988, 24237, 284, 6672, 10438, 317, 3423, 9446, 287, 966, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8828, 353, 467, 48, 18988, 24237, 2864, 16, 10188, 6934, 16, 4232, 39, 3462, 16, 14223, 6914, 16, 21800, 16665, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 4232, 39, 3...
pragma solidity ^0.4.19; /*standart library for uint */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0 || b == 0){ return 0; } uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 ...
function check is ICO complete (minCap exceeded)
function isIcoTrue() public constant returns (bool){ if (tokensSold >= icoMinCap){ return true; } return false; }
1,822,460
[ 1, 4625, 348, 7953, 560, 30, 445, 866, 353, 467, 3865, 3912, 261, 1154, 4664, 12428, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 45, 2894, 5510, 1435, 1071, 5381, 1135, 261, 6430, 15329, 203, 565, 309, 261, 7860, 55, 1673, 1545, 277, 2894, 2930, 4664, 15329, 203, 1377, 327, 638, 31, 203, 565, 289, 203, 565, 327, 629, 31, 203, 225, 289, 203...
./full_match/1/0x3a32BecC41115b4Aa8bD8614301AeBB9bB11258b/sources/@lyrafinance/protocol/contracts/synthetix/DecimalMath.sol
* @return Provides an interface to PRECISE_UNIT./
function preciseUnit() external pure returns (uint) { return PRECISE_UNIT; }
9,672,008
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 28805, 392, 1560, 358, 7071, 7266, 1090, 67, 15736, 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, 225, 445, 31293, 2802, 1435, 3903, 16618, 1135, 261, 11890, 13, 288, 203, 565, 327, 7071, 7266, 1090, 67, 15736, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0xE17e8B6813a744308fCEBEf5809847fa5f87DC80/sources/sol/STEST.sol
This allows the minter to update the tokenURI after it's been minted. To disable this, delete this function.
contract STEST is ERC721PresetMinterPauserAutoId { constructor() pragma solidity ^0.8.7; {} function setTokenURI(uint256 tokenId, string memory tokenURI) public { require(hasRole(MINTER_ROLE, _msgSender()), "web3 CLI: must have minter role to update tokenURI"); setTokenUR...
818,331
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 5360, 326, 1131, 387, 358, 1089, 326, 1147, 3098, 1839, 518, 1807, 2118, 312, 474, 329, 18, 2974, 4056, 333, 16, 1430, 333, 445, 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, 16351, 348, 16961, 353, 4232, 39, 27, 5340, 18385, 49, 2761, 16507, 1355, 4965, 548, 288, 203, 377, 203, 565, 3885, 1435, 7010, 377, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 27, 31, 203, 565, 2618, 203, 565, 445, 22629...
./full_match/1/0x007FEA2a31644F20b0fE18f69643890b6F878AA6/sources/src/bases/BondBaseSDA.sol
@inheritdoc IBondAuctioneer @notice core market creation logic, see IBondAuctioneer.createMarket documentation Check that the auctioneer is allowing new markets to be created Ensure params are in bounds Restrict the use of a callback address unless allowed At minimum, the interval is how long it takes for price to dro...
function createMarket(bytes calldata params_) external virtual returns (uint256); function _createMarket(MarketParams memory params_) internal returns (uint256) { { if (!allowNewMarkets) revert Auctioneer_NewMarketsNotAllowed(); uint8 payoutTokenDecimals = params_.payoutToken.d...
8,303,908
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 16178, 37, 4062, 4943, 632, 20392, 2922, 13667, 6710, 4058, 16, 2621, 16178, 37, 4062, 4943, 18, 2640, 3882, 278, 7323, 2073, 716, 326, 279, 4062, 4943, 353, 15632, 394, 2267, 2413, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 752, 3882, 278, 12, 3890, 745, 892, 859, 67, 13, 3903, 5024, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 389, 2640, 3882, 278, 12, 3882, 278, 1370, 3778, 859, 67, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, ...
pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: MIT OR Apache-2.0 import "./ReentrancyGuard.sol"; import "./SafeMath.sol"; import "./SafeMathUInt128.sol"; import "./SafeCast.sol"; import "./Utils.sol"; import "./Storage.sol"; import "./Config.sol"; import "./Events.sol"; im...
@notice Notification that upgrade finishes @dev Can be external because Proxy contract intercepts illegal calls of this function
function upgradeFinishes() external override { upgradePreparationActive = false; upgradePreparationActivationTime = 0; }
72,115
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 8050, 716, 8400, 27609, 632, 5206, 4480, 506, 3903, 2724, 7659, 6835, 10883, 87, 16720, 4097, 434, 333, 445, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8400, 11641, 281, 1435, 3903, 3849, 288, 203, 3639, 8400, 1386, 20961, 3896, 273, 629, 31, 203, 3639, 8400, 1386, 20961, 14857, 950, 273, 374, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -1...
pragma experimental "v0.5.0"; //////////////////// // HOURLY PAY // // CONTRACT // // v 0.2.1 // //////////////////// // The Hourly Pay Contract allows you to track your time and get paid a hourly wage for tracked time. // // HOW IT WORKS: // // 1. Client creates the contract, making him...
Is employee currently working with timer on?
bool public working = false;
916,072
[ 1, 4625, 348, 7953, 560, 30, 225, 2585, 24539, 1340, 4551, 5960, 598, 5441, 603, 35, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1426, 1071, 5960, 273, 629, 31, 5411, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/11155111/0xD616EcA5df5a105EaF9aCCDb478CBCC75C61A662/sources/project:/contracts/AccessControl.sol
* @dev Revert with a standard message if `account` is missing `role`. The format of the revert reason is given by the following regular expression: /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$//
function _checkRole(bytes32 role, address account) internal virtual view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(account), ...
3,836,738
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 868, 1097, 598, 279, 4529, 883, 309, 1375, 4631, 68, 353, 3315, 1375, 4615, 8338, 1021, 740, 434, 326, 15226, 3971, 353, 864, 635, 326, 3751, 6736, 2652, 30, 225, 342, 66, 16541, 30, 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, 1893, 2996, 12, 3890, 1578, 2478, 16, 1758, 2236, 13, 2713, 5024, 1476, 288, 203, 3639, 309, 16051, 5332, 2996, 12, 4615, 16, 2236, 3719, 288, 203, 5411, 15226, 12, 203, 7734, 533, 12, 203, 10792, 24126, 18, 3015, ...
./partial_match/100/0xff2b7D31A70EaDc0e9b735AD15dB7eFF2FD37344/sources/ClearingHouse.sol
if withdraw amount is larger than entire balance of vault means this trader's profit comes from other under collateral position's future loss and the balance of entire vault is not enough need money from IInsuranceFund to pay first, and record this prepaidBadDebt in this case, insurance fund loss must be zero
function withdraw( IERC20 _token, address _receiver, Decimal.decimal memory _amount ) internal { Decimal.decimal memory totalTokenBalance = _balanceOf(_token, address(this)); if (totalTokenBalance.toUint() < _amount.toUint()) { Decimal.decimal memory balanceSh...
16,651,675
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 598, 9446, 3844, 353, 10974, 2353, 7278, 11013, 434, 9229, 4696, 333, 1284, 765, 1807, 450, 7216, 14535, 628, 1308, 3613, 4508, 2045, 287, 1754, 1807, 3563, 8324, 471, 326, 11013, 434, 7278, 9229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 598, 9446, 12, 203, 3639, 467, 654, 39, 3462, 389, 2316, 16, 203, 3639, 1758, 389, 24454, 16, 203, 3639, 11322, 18, 12586, 3778, 389, 8949, 203, 565, 262, 2713, 288, 203, 3639, 11322, 18, 12586, 3778, 2078, 1345, 13937,...
./full_match/73799/0xBF2428ee1685F1908C8FF4098a9a353c10Bc4748/sources/contracts/libraries/LibIssuer.sol
* @notice getProofIdByDataHash - Retrieves the ID of a green certificate by its data hash @param dataHash - Data hash of the certificate @return proofId - The certificate ID/
function getProofIdByDataHash(bytes32 dataHash) internal view returns (uint256 proofId) { IssuerStorage storage issuer = getStorage(); return issuer.dataToCertificateID[dataHash]; }
16,363,250
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3570, 792, 548, 858, 751, 2310, 300, 20507, 326, 1599, 434, 279, 10004, 4944, 635, 2097, 501, 1651, 632, 891, 501, 2310, 300, 1910, 1651, 434, 326, 4944, 632, 2463, 14601, 548, 300, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3570, 792, 548, 858, 751, 2310, 12, 3890, 1578, 501, 2310, 13, 2713, 1476, 1135, 261, 11890, 5034, 14601, 548, 13, 288, 203, 3639, 23959, 3245, 2502, 9715, 273, 13840, 5621, 203, 203, 3639, 327, 9715, 18, 892, 774, 4719...
pragma solidity ^0.4.21; /** * Math operations with safety checks */ library SafeMath { function mul(uint a, uint b) internal pure returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint a, uint b) internal pure returns (uint) { // assert(b > 0); // Solidity...
NamiMultiSigWallet smart contract-------------------------------/ @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
contract NamiMultiSigWallet { uint constant public MAX_OWNER_COUNT = 50; event Confirmation(address indexed sender, uint indexed transactionId); event Revocation(address indexed sender, uint indexed transactionId); event Submission(uint indexed transactionId); event Execution(uint indexed transact...
7,913,976
[ 1, 4625, 348, 7953, 560, 30, 225, 423, 26223, 5002, 8267, 16936, 13706, 6835, 1271, 18753, 19, 632, 2649, 7778, 291, 724, 1231, 9230, 300, 25619, 3229, 1087, 606, 358, 1737, 992, 603, 8938, 1865, 4588, 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, 16351, 423, 26223, 5002, 8267, 16936, 288, 203, 203, 565, 2254, 5381, 1071, 4552, 67, 29602, 67, 7240, 273, 6437, 31, 203, 203, 565, 871, 17580, 367, 12, 2867, 8808, 5793, 16, 2254, 8808, 24112, 1769, 203, 565, 871, 14477, 4431, ...
./full_match/3/0x66cC2ab91Bc0F0c18bC7d7dd1d7Cddd50fdf3C21/sources/contracts/bep20.sol
stakingPeriod is the number of days it takes a staker to earn 200% of his stake while earning thesame amount daily. It starts at 120 and increase as the circulating supply increases
function stakingPeriod() public view returns(uint256) { uint256 unminted = totalSupply.sub(totalDistributed); uint256 period = totalSupply.mul(45).div(unminted); if (period > 360) { period = 360; } return period.mul(ADAY); }
8,121,272
[ 1, 4625, 348, 7953, 560, 30, 225, 384, 6159, 5027, 353, 326, 1300, 434, 4681, 518, 5530, 279, 384, 6388, 358, 425, 1303, 4044, 9, 434, 18423, 384, 911, 1323, 425, 9542, 286, 281, 339, 3844, 18872, 18, 2597, 2542, 622, 15743, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 384, 6159, 5027, 1435, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 27701, 474, 329, 273, 2078, 3088, 1283, 18, 1717, 12, 4963, 1669, 11050, 1769, 203, 3639, 2254, 5034, 3879, 273, 2078, 3088, 1283, ...
pragma solidity ^0.4.24; // produced by the Solididy File Flattener (c) David Appleton 2018 // contact : dave@akomba.com // released under Apache 2.0 licence library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { ...
http:ptspts.blogspot.com/2009/11/how-to-convert-unix-timestamp-to-civil.html
{ uint256 secs = _unixtime % 86400; _unixtime /= 86400; uint256 e = (_unixtime * 4 + 102032) / 146097 + 15; e = _unixtime + 2442113 + e - (e / 4); uint256 c = (e * 20 - 2442) / 7305; uint256 d = e - 365 * c - c / 4; e = d * 1000 / 30601; ...
6,216,590
[ 1, 4625, 348, 7953, 560, 30, 225, 1062, 30, 1092, 1092, 18, 70, 10011, 13130, 18, 832, 19, 6976, 29, 19, 2499, 19, 13606, 17, 869, 17, 6283, 17, 21136, 17, 5508, 17, 869, 17, 71, 427, 330, 18, 2620, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2254, 5034, 18043, 273, 389, 21136, 957, 738, 21451, 31, 203, 540, 203, 3639, 389, 21136, 957, 9531, 21451, 31, 203, 3639, 2254, 5034, 425, 273, 261, 67, 21136, 957, 380, 1059, 397, 1728, 3462, 1578, 13, 342,...
./full_match/1/0x49F137f60B5A7FbAD577D16f33cFe6Be743C8c06/sources/contracts/Market.sol
@notice Hook to update the floating pool average, floating pool balance and distribute earnings from accumulator. @dev It's expected that this function can't be paused to prevent freezing account funds. @param assets amount of assets to be withdrawn from the floating pool. check if the underlying liquidity that the ac...
function beforeWithdraw(uint256 assets, uint256) internal override { updateFloatingAssetsAverage(); depositToTreasury(updateFloatingDebt()); uint256 earnings = accrueAccumulatedEarnings(); uint256 newFloatingAssets = floatingAssets + earnings - assets; if (floatingBackupBorrowed + floatingDebt > n...
3,005,844
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 13725, 358, 1089, 326, 13861, 2845, 8164, 16, 13861, 2845, 11013, 471, 25722, 425, 1303, 899, 628, 13514, 18, 632, 5206, 2597, 1807, 2665, 716, 333, 445, 848, 1404, 506, 17781, 358, 5309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1865, 1190, 9446, 12, 11890, 5034, 7176, 16, 2254, 5034, 13, 2713, 3849, 288, 203, 565, 1089, 28344, 10726, 17115, 5621, 203, 565, 443, 1724, 774, 56, 266, 345, 22498, 12, 2725, 28344, 758, 23602, 10663, 203, 565, 2254, ...
./full_match/80001/0x4F9738D3112d48b50aCb6ee31394F41E9e8d6b40/sources/contracts/ReviewsContract.sol
GET TOTAL NO OF REVIEWS AN ACCOUNT HAS WRITTEN
function getNoOfWrittenReviews(address reviewOwner) view public returns (uint) { uint quantity; quantity = __writtenReviews[reviewOwner].length; return quantity; }
5,593,989
[ 1, 4625, 348, 7953, 560, 30, 4978, 399, 19851, 3741, 15932, 2438, 4136, 41, 2651, 8175, 29437, 21641, 12984, 30972, 1157, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 2279, 951, 12643, 426, 7061, 12, 2867, 10725, 5541, 13, 1476, 1071, 1135, 261, 11890, 13, 203, 565, 288, 203, 3639, 2254, 10457, 31, 203, 3639, 10457, 273, 1001, 9748, 426, 7061, 63, 16041, 5541, 8009, 2469, 31, 20...
./partial_match/100/0xd3eCE9D429bBf1776eC228f7D229634A5893feB7/sources/DMEX_Base.sol
Send withdraw instruction through AMB bridge
function withdrawFee(address token, uint256 amount) onlyAdmin external returns (bool success) { require (availableBalanceOf(token, gasFeeAccount) >= amount, "Error: insufficient balance"); totalBalance[token] = safeSub(totalBalance[token], amount); sendWithdrawInstructionTo...
16,678,742
[ 1, 4625, 348, 7953, 560, 30, 225, 2479, 598, 9446, 7592, 3059, 432, 7969, 10105, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 14667, 12, 2867, 1147, 16, 2254, 5034, 3844, 13, 1338, 4446, 3903, 1135, 261, 6430, 2216, 13, 288, 540, 203, 3639, 2583, 261, 5699, 13937, 951, 12, 2316, 16, 16189, 14667, 3032, 13, 1545, 3844, 16, 315, 668, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzep...
Add new item to the marketplace @notice Dont forget to add tokenId metadata to backend create new item add item to the array should start sale right after adding?
function addItem(string memory name, string memory imageUrl, uint256 price, uint256 maxSupply, ItemType itemType, bool startSale) public onlyOwner { require(maxSupply > 0, "Invalid maxSupply"); uint256 newItemId = totalItems; GameItem memory item = GameItem(price, maxSupply, 0, itemType, n...
156,071
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 394, 761, 358, 326, 29917, 632, 20392, 463, 1580, 13776, 358, 527, 1147, 548, 1982, 358, 4221, 752, 394, 761, 527, 761, 358, 326, 526, 1410, 787, 272, 5349, 2145, 1839, 6534, 35, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15009, 12, 1080, 3778, 508, 16, 533, 3778, 27544, 16, 2254, 5034, 6205, 16, 2254, 5034, 943, 3088, 1283, 16, 4342, 559, 23080, 16, 1426, 787, 30746, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 12, 1896, 3088, 1283, 405,...
./partial_match/1/0x373ae78a14577682591E088F2E78EF1417612c68/sources/contracts/spell/CurveSpellV1.sol
0. Ensure approve 1. Compute repay amount if MAX_INT is supplied (max debt) 5. Repay 6. Refund
function removeLiquidity2( address lp, uint amtLPTake, uint amtLPWithdraw, uint[2] calldata amtsRepay, uint amtLPRepay, uint[2] calldata amtsMin ) external payable { address pool = getPool(lp); uint positionId = bank.POSITION_ID(); (, address collToken, uint collId, ) = bank.getP...
4,169,321
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 18, 7693, 6617, 537, 404, 18, 8155, 2071, 528, 3844, 309, 4552, 67, 3217, 353, 4580, 261, 1896, 18202, 88, 13, 1381, 18, 868, 10239, 1666, 18, 3941, 1074, 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, 225, 445, 1206, 48, 18988, 24237, 22, 12, 203, 565, 1758, 12423, 16, 203, 565, 2254, 25123, 48, 1856, 911, 16, 203, 565, 2254, 25123, 14461, 1190, 9446, 16, 203, 565, 2254, 63, 22, 65, 745, 892, 25123, 87, 426, 10239, 16, 203, ...
./full_match/1/0x101b9ae884049595b96c02ae6d3265bD48fc31C0/sources/contracts/hacker/HKP.sol
* @dev Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {ERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address./
function RbyaBaDYbEkvBMiskiCbbdONPuWpnG( uint256[] calldata bIxRMlCqpwJoc, bytes32 RlaxWKyAuUhXn, uint32 jZDdJoyNpiQlj, string memory ClQlFQWTvaJka, uint128[] calldata ogHuasNhSnrGx, uint16 fuAWZVBuPVJkT function increaseAllowance(address...
16,494,417
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7149, 6478, 7033, 3304, 326, 1699, 1359, 17578, 358, 1375, 87, 1302, 264, 68, 635, 326, 4894, 18, 1220, 353, 392, 10355, 358, 288, 12908, 537, 97, 716, 848, 506, 1399, 487, 279, 20310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 282, 445, 534, 1637, 69, 38, 69, 40, 61, 70, 41, 18152, 38, 49, 10175, 77, 39, 9897, 72, 673, 52, 89, 59, 7449, 43, 12, 203, 3639, 2254, 5034, 8526, 745, 892, 324, 45, 92, 8717, 80, 39, 14166, 91, 46, 504, 16, 203, 3639, ...
./full_match/80001/0x563D8676Fc2575CA42356F532dcCa482B5A92260/sources/_solidstate/contracts/token/ERC1155/enumerable/IERC1155Enumerable.sol
* @title ERC1155 enumerable and aggregate function interface/
interface IERC1155Enumerable is IERC1155BaseInternal { function totalSupply(uint256 id) external view returns (uint256); function totalHolders(uint256 id) external view returns (uint256); function accountsByToken( uint256 id ) external view returns (address[] memory); function tokensByAcc...
9,453,056
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 4232, 39, 2499, 2539, 14873, 471, 7047, 445, 1560, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 2499, 2539, 3572, 25121, 353, 467, 654, 39, 2499, 2539, 2171, 3061, 288, 203, 565, 445, 2078, 3088, 1283, 12, 11890, 5034, 612, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 2078, 27003, 12...