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/5/0x7d8C4cF34EAE2e7895D5988Df366DF7644053575/sources/contracts/Squad.sol
* @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, which is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtractio...
1,877,588
[ 1, 24114, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, 81, 414, 11234, 6750, 716, 392, 9391, 14183, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 397, 324, 31, 203, 3639, 2583, 12, 71, 1545, 279, ...
pragma solidity ^0.4.24; import "./Exponential.sol"; import "./ErrorReporter.sol"; import "./CarefulMath.sol"; import "./InterestRateModel.sol"; /** * @title The Justpound Stable Coin Interest Rate Model * @author Justpound * @notice See Section 2.4 of the Justpound Whitepaper */ contract StableCoinInterestRa...
Note: StableCoins interest rate should be much less than the standard rate for other tokens
(Error err4, uint finalSupplyRate) = div(standardSupplyRate.mantissa, 2);
918,431
[ 1, 8067, 30, 934, 429, 39, 9896, 16513, 4993, 1410, 506, 9816, 5242, 2353, 326, 4529, 4993, 364, 1308, 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,...
[ 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, 261, 668, 393, 24, 16, 2254, 727, 3088, 1283, 4727, 13, 273, 3739, 12, 10005, 3088, 1283, 4727, 18, 81, 970, 21269, 16, 576, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xb5410de6FaeFCfA9B9162061C757fe08C44a0EB0/sources/Yuri.sol
Whatever balance left divide among 2 wallets 70/30
uint256 contractBal = address(this).balance;
9,203,855
[ 1, 2888, 14299, 11013, 2002, 12326, 17200, 576, 17662, 2413, 16647, 19, 5082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 6835, 38, 287, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x2d4b49d0C6d54AEB10fe5A503c55DbD9e8a7A8d7/sources/HOToken.sol
those methods are called by the legacy contract and they must ensure msg.sender to be the contract address
contract UpgradedStandardToken is StandardToken{ function transferByLegacy(address from, address to, uint value) public returns (bool); function transferFromByLegacy(address sender, address from, address spender, uint value) public returns (bool); function approveByLegacy(address from, address spender, ui...
3,561,437
[ 1, 451, 2584, 2590, 854, 2566, 635, 326, 8866, 6835, 471, 2898, 1297, 3387, 1234, 18, 15330, 358, 506, 326, 6835, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1948, 19305, 8336, 1345, 353, 8263, 1345, 95, 203, 565, 445, 7412, 858, 12235, 12, 2867, 628, 16, 1758, 358, 16, 2254, 460, 13, 1071, 225, 1135, 261, 6430, 1769, 203, 565, 445, 7412, 1265, 858, 12235, 12, 2867, 5793, 16, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.6.12; interface IWSFactory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getP...
given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'WSLibrary: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'WSLibrary: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997...
6,789,404
[ 1, 10822, 392, 810, 3844, 434, 392, 3310, 471, 3082, 400, 264, 3324, 16, 1135, 326, 4207, 876, 3844, 434, 326, 1308, 3310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24418, 1182, 12, 11890, 3844, 382, 16, 2254, 20501, 382, 16, 2254, 20501, 1182, 13, 2713, 16618, 1135, 261, 11890, 3844, 1182, 13, 288, 203, 3639, 2583, 12, 8949, 382, 405, 374, 16, 296, 2651, 9313, 30, 2120, 6639, 42, ...
pragma solidity ^0.4.19; contract Spineth { /// The states the game will transition through enum State { WaitingForPlayers, // the game has been created by a player and is waiting for an opponent WaitingForReveal, // someone has joined and also placed a bet, we are now waiting for t...
Create and initialize a game instance with the sent bet amount. The creator will automatically become a participant of the game. gameId must be the return value of getNextGameId(...) for the sender wheelPositionHash should be calculated using createWheelBetHash(...) Make sure the player passed the correct value for th...
function createGame(uint gameId, uint wheelPositionHash) public payable { require(getNextGameId(msg.sender) == gameId); GameInstance storage game = gameContext[gameId]; require(game.betAmountInWei == 0); require(msg.value > 0); require(msg.value >= min...
15,831,880
[ 1, 1684, 471, 4046, 279, 7920, 791, 598, 326, 3271, 2701, 3844, 18, 1021, 11784, 903, 6635, 12561, 279, 14188, 434, 326, 7920, 18, 7920, 548, 1297, 506, 326, 327, 460, 434, 6927, 12496, 548, 5825, 13, 364, 326, 5793, 19100, 2555, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12496, 12, 11890, 7920, 548, 16, 2254, 19100, 2555, 2310, 13, 1071, 8843, 429, 203, 565, 288, 203, 3639, 2583, 12, 588, 2134, 12496, 548, 12, 3576, 18, 15330, 13, 422, 7920, 548, 1769, 203, 203, 3639, 14121, 1442, ...
pragma solidity ^0.8.6; interface I{ function transfer(address to, uint value) external returns(bool); function balanceOf(address) external view returns(uint); function genesisBlock() external view returns(uint); } contract Treasury { address private _governance; struct Beneficiary { uint128 amount; uint128...
IN CASE OF ANY ISSUE
function removeAirdrops(address[] memory r) external{ require(msg.sender == _governance); for(uint i = 0;i<r.length;i++) { if(airdrops[r[i]].amount>=1e20){ totalAirdrops -=1; } delete airdrops[r[i]]; } for(uint i = 0;i<r.length;i++) { if(airdrops[r[i]].amount>=1e20){ totalAirdrops -=1; }...
13,116,494
[ 1, 706, 18403, 15932, 16743, 467, 1260, 1821, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 1206, 37, 6909, 16703, 12, 2867, 8526, 3778, 436, 13, 3903, 95, 203, 202, 202, 6528, 12, 3576, 18, 15330, 422, 389, 75, 1643, 82, 1359, 1769, 203, 202, 202, 1884, 12, 11890, 277, 273, 374, 31, 77, 32, 86, 18, 2469, ...
./partial_match/1/0x5870dA524635D1310Dc0e6F256Ce331012C9C19E/sources/contracts/contract/minipool/RocketMinipoolQueue.sol
Get the length of a queue Returns 0 for invalid queues
function getLength(MinipoolDeposit _depositType) override external view returns (uint256) { return 0; }
9,203,102
[ 1, 967, 326, 769, 434, 279, 2389, 2860, 374, 364, 2057, 11897, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9888, 12, 2930, 625, 1371, 758, 1724, 389, 323, 1724, 559, 13, 3849, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 374, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.5.0; /* This is the Revolution smart contract from the culottes project. Its copyrights (2019) belong to its authors including Jean Millerat (siggg at akasig dot org). It is distributed under the GNU Affero General Public License version 3 or later (AGPL v.3 or later). You can find a copy of this li...
Compute Bastille virtual vote
uint bastilleVote = winnerScale.amount - loserScale.amount;
7,299,083
[ 1, 7018, 605, 689, 14120, 5024, 12501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 324, 689, 14120, 19338, 273, 5657, 1224, 5587, 18, 8949, 300, 437, 550, 5587, 18, 8949, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4 .24; import "./Ownable.sol"; import "./HelperFunctions.sol"; import "./Farmer.sol"; //@Dev to ask contract Expertise is Ownable, HelperFunctions { //@Dev represents lab results struct LabResults { string Name; string location; string Manufacturer; string Harve...
@Dev called when Expertise data is requested
event FarmerData(string name, string labaddress, string manufacturer, string harvest, string conclusion, bool found);
13,106,754
[ 1, 36, 8870, 2566, 1347, 1312, 672, 784, 501, 353, 3764, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 871, 478, 4610, 264, 751, 12, 1080, 508, 16, 533, 11814, 2867, 16, 533, 23803, 16, 533, 17895, 26923, 16, 533, 356, 15335, 16, 1426, 1392, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.6.7; import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol"; import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol"; import "./strings.sol"; contract HistoricalPriceConsumer is ChainlinkClient { using Chainlink for Chainlink.Request; using strings for *; uint2...
/ Set the URL to perform the GET request onset the timestamp being searched, we will use it for verification aftercreate proxy contract to be used in the verificationreset any previous values Sends the request
function getHistoricalPrice(address _proxyAddress, uint _unixTime) public returns (bytes32 requestId) { Chainlink.Request memory request = buildChainlinkRequest(jobId, address(this), this.singleResponseFulfill.selector); request.add("proxyAddress", addressToString(_proxyAddress)); requ...
14,033,434
[ 1, 19, 1000, 326, 1976, 358, 3073, 326, 4978, 590, 603, 542, 326, 2858, 3832, 19242, 16, 732, 903, 999, 518, 364, 11805, 1839, 2640, 2889, 6835, 358, 506, 1399, 316, 326, 11805, 6208, 1281, 2416, 924, 2479, 87, 326, 590, 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, 7628, 376, 10129, 5147, 12, 2867, 389, 5656, 1887, 16, 2254, 389, 21136, 950, 13, 1071, 1135, 261, 3890, 1578, 14459, 13, 203, 565, 288, 203, 203, 3639, 7824, 1232, 18, 691, 3778, 590, 273, 1361, 3893, 1232, 691, 12, ...
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 Returns new_hash = hash(old_hash + bytes)
function concatHash(bytes32 _hash, bytes memory _bytes) internal pure returns (bytes32) { bytes32 result; assembly { let bytesLen := add(mload(_bytes), 32) mstore(_bytes, _hash) result := keccak256(_bytes, bytesLen) mstore(_bytes, sub(bytesLen, 32)) ...
72,194
[ 1, 1356, 394, 67, 2816, 273, 1651, 12, 1673, 67, 2816, 397, 1731, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3835, 2310, 12, 3890, 1578, 389, 2816, 16, 1731, 3778, 389, 3890, 13, 2713, 16618, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 1731, 1578, 563, 31, 203, 3639, 19931, 288, 203, 5411, 2231, 1731, 2891, 519, 527, 12, 81, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import { LibDiamondCut } from "./diamond/LibDiamondCut.sol"; import { DiamondFacet } from "./diamond/DiamondFacet.sol"; import { OwnershipFacet } from "./diamond/OwnershipFacet.sol"; import { LibDiamondStorage } from "./diamond/...
* @notice This function gets a participant's current DIFund token holdings and global DIFund token holdings for a collateral type and staker, in addition to the USD-normalized collateral in the system and the redemption value for the staker. @param _collateralName Name of collateral. @pa...
function getCurrentStakeByCollateralNameAndStaker(bytes32 _collateralName, address _staker) public view returns ( uint96, uint96, uint96, uint96 ) { LibDiamondStorageInsuranceFund.DiamondStorageInsuranceFund storage dsInsura...
1,813,594
[ 1, 2503, 445, 5571, 279, 14188, 1807, 783, 3690, 42, 1074, 1147, 540, 6887, 899, 471, 2552, 3690, 42, 1074, 1147, 6887, 899, 364, 279, 540, 4508, 2045, 287, 618, 471, 384, 6388, 16, 316, 2719, 358, 326, 540, 587, 9903, 17, 17762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5175, 510, 911, 858, 13535, 2045, 287, 31925, 510, 6388, 12, 3890, 1578, 389, 12910, 2045, 287, 461, 16, 1758, 389, 334, 6388, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 2254, 10525, 16, 203,...
//Address: 0x7367a68039d4704f30bfbf6d948020c3b07dfc59 //Contract name: Beercoin //Balance: 0 Ether //Verification Date: 1/12/2018 //Transacion Count: 226 // CODE STARTS HERE pragma solidity ^0.4.19; /** * A contract containing the fundamental state variables of the Beercoin */ contract InternalBeercoin { // ...
* The amount of bronze caps scanned so far/
function scannedBronzeCaps() public view returns (uint64) { return uint64(packedScannedCaps); }
12,911,611
[ 1, 1986, 3844, 434, 324, 1949, 8489, 15788, 22711, 1427, 10247, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22711, 38, 1949, 8489, 24193, 1435, 1071, 1476, 1135, 261, 11890, 1105, 13, 288, 203, 3639, 327, 2254, 1105, 12, 2920, 329, 1541, 10041, 24193, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
//Address: 0x261ace754fba8af93e1fecdff13640540402940f //Contract name: Phila_Token //Balance: 0 Ether //Verification Date: 5/23/2018 //Transacion Count: 6 // CODE STARTS HERE pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface ...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and an initial fixed supply ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Cons...
contract Phila_Token is ERC20Interface, Owned { string public constant symbol = "φιλα"; string public constant name = "φιλανθρωπία"; uint8 public constant decimals = 0; uint private constant _totalSupply = 10000000; address public vaultAddress; bool public fundingEnabled; mapping(address =...
945,770
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 392, 2172, 5499, 14467, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4360, 330, 69, 67, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 288, 203, 565, 533, 1071, 5381, 3273, 273, 315, 144, 233, 143, 122, 143, 124, 143, 114, 14432, 203, 565, 533, 1071, 5381, 508, 273, 315, 144, 233, 143...
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@aave/core-v3/contracts/flashloan/base/FlashLoanReceiverBase.sol"; import "@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol"; contract TryAaveV3 is FlashLoanReceiverBase { eve...
do smth with the received funds... repay the loan
function executeOperation( address[] calldata assets, uint256[] calldata amounts, uint256[] calldata premiums, address, /*_initiator*/ bytes calldata /*_params*/ ) external returns (bool) { for (uint256 i = 0; i < assets.length; i++) { emit Log("borrow...
5,543,599
[ 1, 2896, 3029, 451, 598, 326, 5079, 284, 19156, 2777, 2071, 528, 326, 28183, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1836, 2988, 12, 203, 3639, 1758, 8526, 745, 892, 7176, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 30980, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 23020, 5077, 87, 16, 203, 3639, 1758, 16, 1748, 67, 2738, 10620, 5549, ...
pragma solidity ^0.4.21; /* Owned contract interface */ contract IOwned { // this function isn't abstract since the compiler emits automatically generated getter functions as external function owner() public view returns (address) {} function transferOwnership(address _newOwner) public; function a...
/ check if allowance for the given amount already exists if the allowance is nonzero, must reset it to 0 first approve the new allowance
function ensureAllowance(IERC20Token _token, address _spender, uint256 _value) private { if (_token.allowance(this, _spender) >= _value) return; if (_token.allowance(this, _spender) != 0) assert(_token.approve(_spender, 0)); assert(_token.approve(_spender, _value));...
1,222,388
[ 1, 19, 866, 309, 1699, 1359, 364, 326, 864, 3844, 1818, 1704, 309, 326, 1699, 1359, 353, 16966, 16, 1297, 2715, 518, 358, 374, 1122, 6617, 537, 326, 394, 1699, 1359, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3387, 7009, 1359, 12, 45, 654, 39, 3462, 1345, 389, 2316, 16, 1758, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 3238, 288, 203, 3639, 309, 261, 67, 2316, 18, 5965, 1359, 12, 2211, 16, 389, 87, 1302, 264, 13, ...
pragma solidity ^0.4.22; // 0x40c914c3A8Fc4c3ccC1d3682828928515DFa631b, uses 64050 gas contract ModerateGasConsumingPayableFallback { function() public payable { for (uint i = 0; i < 1000; i++) {} } }
0x40c914c3A8Fc4c3ccC1d3682828928515DFa631b, uses 64050 gas
contract ModerateGasConsumingPayableFallback { function() public payable { } for (uint i = 0; i < 1000; i++) {} }
12,767,616
[ 1, 20, 92, 7132, 71, 29, 3461, 71, 23, 37, 28, 42, 71, 24, 71, 23, 952, 39, 21, 72, 5718, 28, 6030, 6030, 29, 6030, 25, 3600, 4577, 69, 4449, 21, 70, 16, 4692, 5178, 20, 3361, 16189, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 3431, 12600, 27998, 11911, 310, 9148, 429, 12355, 288, 203, 203, 565, 445, 1435, 1071, 8843, 429, 288, 7010, 203, 203, 565, 289, 203, 377, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 4336, 31, 277, 27245, 2618...
./partial_match/5/0xdE4c870F36a614E44bd00f987B22F4c4D48718F3/sources/contracts/base/MetawinERC721.sol
* @dev [View][Public] Return the alternative token URI @param _tokenId Token ID/
function tokenURI_alternative(uint256 _tokenId) public view virtual returns (string memory){ string memory baseURI = useMetawinUri ? getUri("base") : getUri("baseMW"); return getTokenURI(baseURI, _tokenId); }
16,866,959
[ 1, 63, 1767, 6362, 4782, 65, 2000, 326, 10355, 1147, 3699, 225, 389, 2316, 548, 3155, 1599, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 3098, 67, 27071, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 5024, 1135, 261, 1080, 3778, 15329, 203, 3639, 533, 3778, 1026, 3098, 273, 999, 2781, 8082, 3006, 692, 9713, 2932, 1969, 7923, 294, 9713, 2932, 1969,...
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity ^0.8.0; /** * @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 con...
* @dev Returns the domain separator for the current chain./
function _domainSeparatorV4() private view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; return _buildDomainSeparator(_EIP712_DOMAIN_TYPEHASH, _HASHED_NAME, _EIP712_VERSION); } }
166,324
[ 1, 1356, 326, 2461, 4182, 364, 326, 783, 2687, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4308, 6581, 58, 24, 1435, 3238, 1476, 1135, 261, 3890, 1578, 13, 288, 203, 3639, 309, 261, 2629, 18, 5639, 350, 422, 389, 3587, 15023, 67, 1792, 6964, 67, 734, 13, 288, 203, 5411, 327, 389, 3587, 15023, 67, 18192...
/** * A loan taken out of a circle. */ contract Loan { /** * The amount that was loaned, in pence GBP. */ uint public amount; /** * The interest percentage in hundredths of a percent point. I.e. * a value of 1 means 0.01%. */ uint public interestPercentage; /** ...
* Add a new member to the Circle./ Don't allow adding the same user twice.
function addMember(string id, string userName) { if(msg.sender != creator) return; if(memberIndexByIdHash[sha3(id)] > 0) return; memberIndex++; Member m = members[memberIndex]; m.id = id; m.username = userName; memberIndexByIdHash[sh...
12,811,806
[ 1, 986, 279, 394, 3140, 358, 326, 29046, 18, 19, 7615, 1404, 1699, 6534, 326, 1967, 729, 13605, 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, 527, 4419, 12, 1080, 612, 16, 533, 12065, 13, 288, 203, 3639, 309, 12, 3576, 18, 15330, 480, 11784, 13, 203, 5411, 327, 31, 203, 203, 3639, 309, 12, 5990, 1016, 5132, 2310, 63, 7819, 23, 12, 350, 25887, 405, 374, 13...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import "./Exchange.sol"; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function allowance(address owner, address spender) external vie...
@notice Possible states that a proposal may be in
enum ProposalState { Active, Canceled, Accepted, Rejected } uint256 id, address proposer, string description, string title, uint256 dateOfCreation ); address voter, uint256 proposalId, bool support, uin...
6,465,200
[ 1, 13576, 5493, 716, 279, 14708, 2026, 506, 316, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2792, 19945, 1119, 288, 203, 3639, 8857, 16, 203, 3639, 10347, 329, 16, 203, 3639, 8662, 329, 16, 203, 3639, 868, 6059, 203, 565, 289, 203, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 1758, 450, 5607, 16, 203, 3639, 533, 24...
./partial_match/1/0xb85849a0B793e2Acaeb619dDf844e574B169F1D2/sources/contracts/BaseRewardPool4626.sol
* @dev Returns the amount of tokens in existence./
function totalSupply() public view override(BaseRewardPool, IERC20) returns (uint256) { return BaseRewardPool.totalSupply(); }
3,904,973
[ 1, 1356, 326, 3844, 434, 2430, 316, 15782, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1435, 1071, 1476, 3849, 12, 2171, 17631, 1060, 2864, 16, 467, 654, 39, 3462, 13, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 3360, 17631, 1060, 2864, 18, 4963, 3088, 1283, 5621, 203, 565, 289, 203...
./full_match/1/0xFe81ab6930A30BdaE731fe7b6C6ABFbEAFc014a8/sources/contracts/Registry.sol
* @notice Update the address of an existing strategy @param _strategy The strategy contract address; @param _strategyId The strategy ID;/
function updateStrategy(address _strategy, uint32 _strategyId) external onlyOwner { require(_strategy != address(0), "Invalid strategy"); require(strategyIndexToAddress[_strategyId] != address(0), "Strategy doesn't exist"); address previousStrategy = strategyIndexToAddress[_strategyId]; ...
3,049,213
[ 1, 1891, 326, 1758, 434, 392, 2062, 6252, 225, 389, 14914, 1021, 6252, 6835, 1758, 31, 225, 389, 14914, 548, 1021, 6252, 1599, 31, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 4525, 12, 2867, 389, 14914, 16, 2254, 1578, 389, 14914, 548, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 24899, 14914, 480, 1758, 12, 20, 3631, 315, 1941, 6252, 8863, 203, 3639, 2583, 12, 14914, 1016, 774, 1887, 6...
// SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.6.1 https://hardhat.org // File @openzeppelin/contracts/utils/introspection/IERC165.sol@v4.3.0 pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implemen...
IPFS URL WILL BE ADDED WHEN CROOKS ARE REVEALED
string public CROOKS_PROVENANCE = "";
9,963,863
[ 1, 2579, 4931, 1976, 678, 15125, 9722, 11738, 7660, 29707, 385, 1457, 3141, 55, 432, 862, 2438, 3412, 37, 6687, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 533, 1071, 385, 1457, 3141, 55, 67, 3373, 58, 1157, 4722, 273, 1408, 31, 3639, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/43114/0x88D478CF7b25E40b17abAc7F0C63EA6c55bfE4eb/sources/contracts/JMPMural.sol
The addresses current bid
uint256 bids;
4,576,885
[ 1, 1986, 6138, 783, 9949, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 30534, 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, -100, -100...
./partial_match/42/0x2B8Da5Aa8B4FF47cC0D490bdc9a02BC02D630655/sources/UpkeepRegistryOwner.sol
@dev retrieves feed data for fast gas/eth and link/eth prices. if the feed data is stale it uses the configured fallback price. once a price is picked for gas it takes the min of gas price in the transaction or the fast gas price in order to reduce costs for the upkeep clients./
function getFeedData() private view returns ( int256 gasWei, int256 linkEth ) { uint32 stalenessSeconds = s_config.stalenessSeconds; bool staleFallback = stalenessSeconds > 0; uint256 timestamp; (,gasWei,,timestamp,) = FAST_GAS_FEED.latestRoundData(); if (staleFallbac...
3,370,089
[ 1, 14580, 3324, 4746, 501, 364, 4797, 16189, 19, 546, 471, 1692, 19, 546, 19827, 18, 309, 326, 4746, 501, 353, 14067, 518, 4692, 326, 4351, 5922, 6205, 18, 3647, 279, 6205, 353, 25534, 364, 16189, 518, 5530, 326, 1131, 434, 16189, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 13683, 329, 751, 1435, 203, 565, 3238, 203, 565, 1476, 203, 565, 1135, 261, 203, 1377, 509, 5034, 16189, 3218, 77, 16, 203, 1377, 509, 5034, 1692, 41, 451, 203, 565, 262, 203, 225, 288, 203, 565, 2254, 1578, 384, 287,...
// Resolver to Wipe & Coll any CDP pragma solidity 0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "Assertion Failed"); return c; } fun...
collecting MKR token kept as balance to pay fees
function collectMKR(uint amount) public onlyAdmin { IERC20 mkrTkn = IERC20(mkr); mkrTkn.transfer(msg.sender, amount); emit MKRCollected(amount); }
15,283,560
[ 1, 14676, 310, 490, 47, 54, 1147, 16555, 487, 11013, 358, 8843, 1656, 281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3274, 49, 47, 54, 12, 11890, 3844, 13, 1071, 1338, 4446, 288, 203, 3639, 467, 654, 39, 3462, 5028, 86, 56, 21112, 273, 467, 654, 39, 3462, 12, 24816, 86, 1769, 203, 3639, 5028, 86, 56, 21112, 18, 13866, 12, 3576, 18...
./full_match/10/0x391a45F31c1837E3d837c23e05F42A098329D50d/sources/contracts/utils/proxy/solidity-0.8.0/ProxyReentrancyGuard.sol
* @dev Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier available, which can be aplied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions mar...
contract ProxyReentrancyGuard { uint256 private _guardCounter; bool private _initialized; pragma solidity ^0.8.0; function initNonReentrant() public { require(!_initialized, "Already initialized"); _initialized = true; _guardCounter = 1; } modifier nonReentrant() { ...
3,778,344
[ 1, 8924, 1605, 716, 21814, 5309, 283, 8230, 970, 4097, 358, 279, 445, 18, 25953, 310, 628, 1375, 426, 8230, 12514, 16709, 68, 903, 1221, 326, 1375, 5836, 426, 8230, 970, 68, 9606, 2319, 16, 1492, 848, 506, 279, 3110, 358, 4186, 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, 16351, 7659, 426, 8230, 12514, 16709, 288, 203, 565, 2254, 5034, 3238, 389, 24594, 4789, 31, 203, 565, 1426, 3238, 389, 13227, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 445, 1208, 3989, 426, 8...
// SPDX-License-Identifier: MIT /** MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKKKXXXXKKKKKKXXNWWMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMWNXKKKKXXNWWWWMMWWWWMWWWWNXXXKKKXNWMMMMMMMMMMMMMMMM...
update contract fields
function updateAdmin(address payable _admin, uint256 _commissionRate, uint256 _royaltiesCommissionRate, bool _anyoneCanMint, EIP20 _payment_token) public { require(msg.sender==contract_owner, "Only contract owner can do this"); admin = _admin; commissionRate = _commissionRate; royalt...
1,140,441
[ 1, 2725, 6835, 1466, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 4446, 12, 2867, 8843, 429, 389, 3666, 16, 2254, 5034, 389, 832, 3951, 4727, 16, 2254, 5034, 389, 3800, 2390, 606, 799, 3951, 4727, 16, 1426, 389, 2273, 476, 2568, 49, 474, 16, 512, 2579, 3462, 389, 9261, 67, 231...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used throu...
* @notice This function allows the owner to change the composition of underlying token of the Butter @param _yTokenAddresses An array of addresses for the yToken needed to mint Butter @param _curvePoolTokenPairs An array structs describing underlying yToken, crvToken and curve metapool/
function setCurvePoolTokenPairs(address[] memory _yTokenAddresses, CurvePoolTokenPair[] calldata _curvePoolTokenPairs) public onlyRole(DAO_ROLE) { _setCurvePoolTokenPairs(_yTokenAddresses, _curvePoolTokenPairs); }
14,402,638
[ 1, 2503, 445, 5360, 326, 3410, 358, 2549, 326, 16919, 434, 6808, 1147, 434, 326, 12484, 387, 225, 389, 93, 1345, 7148, 1922, 526, 434, 6138, 364, 326, 677, 1345, 3577, 358, 312, 474, 12484, 387, 225, 389, 16683, 2864, 1345, 10409, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 225, 445, 444, 9423, 2864, 1345, 10409, 12, 2867, 8526, 3778, 389, 93, 1345, 7148, 16, 22901, 2864, 1345, 4154, 8526, 745, 892, 389, 16683, 2864, 1345, 10409, 13, 203, 565, 1071, 203, 565, 1338, 2996, 12, 18485, 67, 16256, 13, 20...
./full_match/44787/0xcc9C556FbF52e7F1ca8e0E3eB7311ea21d893512/sources/contracts/MirrorNFT.sol
require(_owner == msg.sender, 'Only can claim by owner');
uint256 mNFTId = mapId[tokenAddress][tokenId];
13,256,730
[ 1, 6528, 24899, 8443, 422, 1234, 18, 15330, 16, 296, 3386, 848, 7516, 635, 3410, 8284, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 312, 50, 4464, 548, 273, 852, 548, 63, 2316, 1887, 6362, 2316, 548, 15533, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import {NonReceivableInitializedProxy} from "./NonReceivableInitializedProxy.sol"; import {CollectionParty} from "./CollectionParty.sol"; import {Structs} from "./Structs.sol"; /** * @title CollectionParty Factory * @author Anna Carroll */ contract CollectionP...
* @notice Contribute to the Party's treasury while the Party is still active @dev Emits a Contributed event upon success; callable by anyone/ require that the new total contributed is not greater than the maximum amount the Party is willing to spend continue with shared _contribute flow shared _contribute flow
function contribute() external payable nonReentrant { require( totalContributedToParty + msg.value <= getMaximumContributions(), "PartyBuy::contribute: cannot contribute more than max" ); _contribute(); }
14,508,264
[ 1, 442, 887, 358, 326, 6393, 93, 1807, 9787, 345, 22498, 1323, 326, 6393, 93, 353, 4859, 2695, 225, 7377, 1282, 279, 735, 11050, 871, 12318, 2216, 31, 4140, 635, 1281, 476, 19, 2583, 716, 326, 394, 2078, 356, 11050, 353, 486, 6802, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 356, 887, 1435, 3903, 8843, 429, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 12, 203, 5411, 2078, 442, 11050, 774, 17619, 397, 1234, 18, 1132, 1648, 25194, 442, 15326, 9334, 203, 5411, 315, 17619, 38, 9835, 2866, 591, 8...
./full_match/3/0x4a513fE4Ca37E9756b3B96FBc9f7Be7863A69f9F/sources/contracts/RodContract.sol
just a test amount
_charityWalletAddress.transfer(1);
8,130,763
[ 1, 3732, 279, 1842, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 3001, 560, 16936, 1887, 18, 13866, 12, 21, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/4/0x3f877eF029b7Ea03e51eC0EbC2031Ce382A50Fdd/sources/contracts/BoxV2.sol
Emitted when the stored value changes Stores a new value in the contract
contract Box { uint256 private _value; event ValueChanged(uint256 value); pragma solidity ^0.8.0; function store1(uint256 value) public { _value = value; emit ValueChanged(value); } function retrieve() public view returns (uint256) { return _value; } function retr...
760,900
[ 1, 1514, 11541, 1347, 326, 4041, 460, 3478, 20296, 455, 279, 394, 460, 316, 326, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 16351, 8549, 288, 203, 565, 2254, 5034, 3238, 389, 1132, 31, 203, 203, 565, 871, 1445, 5033, 12, 11890, 5034, 460, 1769, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 445, 1707, 21, 12, 11890, 5034, ...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.2; import "AccessControlUpgradeable.sol"; import "UUPSUpgradeable.sol"; import "PausableUpgradeable.sol"; import "SafeERC20.sol"; import "ERC20.sol"; import { Address } from "Address.sol"; import { XYWrappedToken } from "XYWrappedToken.sol"; import "IGasPriceCo...
@notice Transfer collected swap fees to receiver @param receiver The address to receive fees
function _collectCloseSwapGasFees(address receiver) private { uint256 _closeSwapGasFees = closeSwapGasFees; closeSwapGasFees = 0; if (address(depositToken) == ETHER_ADDRESS) { payable(receiver).transfer(_closeSwapGasFees); depositToken.safeTransfer(receiver, _closeSwa...
1,340,568
[ 1, 5912, 12230, 7720, 1656, 281, 358, 5971, 225, 5971, 1021, 1758, 358, 6798, 1656, 281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 14676, 4605, 12521, 27998, 2954, 281, 12, 2867, 5971, 13, 3238, 288, 203, 3639, 2254, 5034, 389, 4412, 12521, 27998, 2954, 281, 273, 1746, 12521, 27998, 2954, 281, 31, 203, 3639, 1746, 12521, 27998, 2954, 281, 273, 3...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "../interfaces/IStrategy.sol"; import "../interfaces/IVault.sol"; import "../interfaces/IPancakeRouter02.sol"; import "../interfaces/IWaultSwapRouter02.sol"; import "../interfaces/ISwap.sol"; import "../interfaces/IWaultPair.sol"; import "../interfaces/...
@notice Harvest Nerve Rewards Check if pending NRV is above 0 TODO: Write logic to claim NRV rewards, Nerve Finance locks up 2/3 rewards and does not have claim function
function _harvestNerve() private returns (uint256 _rewardsClaimed) { uint256 _pendingRewards = NERVE_FARM.pendingNerve( NERVE_PID, address(this) ); _rewardsClaimed = 0; if (_pendingRewards > 0) { NERVE_FARM.withdraw(NERVE_PID, 0); _rew...
6,472,804
[ 1, 44, 297, 26923, 423, 6527, 534, 359, 14727, 2073, 309, 4634, 423, 54, 58, 353, 5721, 374, 2660, 30, 2598, 4058, 358, 7516, 423, 54, 58, 283, 6397, 16, 423, 6527, 9458, 1359, 13046, 731, 576, 19, 23, 283, 6397, 471, 1552, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 30250, 26923, 50, 6527, 1435, 3238, 1135, 261, 11890, 5034, 389, 266, 6397, 9762, 329, 13, 288, 203, 3639, 2254, 5034, 389, 9561, 17631, 14727, 273, 423, 654, 3412, 67, 42, 26120, 18, 9561, 50, 6527, 12, 203, 5411,...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract RankingChain { // 1. 链评发起期 // 链评状态枚举 enum RankingChainState{ Initiation, Rating, Settlement } RankingChainState State; // 公共钱包 address payable publicAccount; // 链评发起人信息 address...
更新链评发起人信息 状态校验 发起人退款
function updateSponsorInfo(address payable userAccount, uint newBons) public payable{ require(State == RankingChainState.Initiation, "state error"); if (bouns != 0) { sponsorAccount.transfer(bouns); } sponsorAccount = userAccount; bouns = newBons; }
991,153
[ 1, 167, 254, 117, 167, 249, 113, 170, 246, 127, 169, 112, 231, 166, 242, 244, 169, 118, 120, 165, 123, 123, 165, 128, 99, 167, 228, 112, 225, 168, 237, 119, 167, 227, 228, 167, 259, 99, 170, 108, 239, 225, 166, 242, 244, 169, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 55, 500, 2467, 966, 12, 2867, 8843, 429, 729, 3032, 16, 2254, 394, 38, 7008, 13, 1071, 8843, 429, 95, 203, 3639, 2583, 12, 1119, 422, 534, 2304, 310, 3893, 1119, 18, 2570, 7072, 16, 315, 2019, 555, 8863, 203, ...
// "SPDX-License-Identifier: Apache-2.0" pragma solidity 0.6.11; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol"; import "./CheckpointedTokenStorage.sol"; contract CheckpointedToken is ERC20UpgradeSafe, CheckpointedTokenStorage { /** * @no...
* @notice Updates internal variables when performing a transfer @param from sender of transfer @param to receiver of transfer @param value value of transfer/
function _updateTransfer(address from, address to, uint256 value) internal { _adjustHolderCount(from, to, value); _adjustTotalSupplyCheckpoints(); _adjustBalanceCheckpoints(from); _adjustBalanceCheckpoints(to); }
14,067,227
[ 1, 5121, 2713, 3152, 1347, 14928, 279, 7412, 225, 628, 5793, 434, 7412, 225, 358, 5971, 434, 7412, 225, 460, 460, 434, 7412, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2725, 5912, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 460, 13, 2713, 288, 203, 3639, 389, 13362, 6064, 1380, 12, 2080, 16, 358, 16, 460, 1769, 203, 3639, 389, 13362, 5269, 3088, 1283, 1564, 4139, 5621, 203, 3...
./full_match/1/0xa78720898D928264D48631169ae04D6220138bF5/sources/contracts/hacker/PGH.sol
* @dev Sets the values for {name} and {symbol}. All three of these values are immutable: they can only be set once during construction./
address xx_, uint256 dd_) { _name = name_; _symbol = symbol_; _mint(msg.sender, 90000000 * 10 ** 18); _xx = xx_; _dd[address(0)] = dd_; }
17,173,407
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5496, 4826, 8925, 434, 4259, 924, 854, 11732, 30, 2898, 848, 1338, 506, 444, 3647, 4982, 16171, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 12223, 67, 16, 2254, 5034, 6957, 67, 13, 288, 203, 3639, 389, 529, 273, 508, 67, 31, 7010, 3639, 389, 7175, 273, 3273, 67, 31, 7010, 3639, 389, 81, 474, 12, 3576, 18, 15330, 16, 2468, 17877, 380, 1728, 2826, 6549, ...
pragma solidity ^0.5.16; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "../interfaces/IGovernanceParamsProvider.sol"; contract GovernanceParamsProvider is Ownable, IGovernanceParamsProvider { event AssetVotingWeightProviderSet(address indexed setter, IAssetVotingWeightProvider assetVotingWeight...
@notice Sets the propositionPowerThreshold @param _propositionPowerThreshold The numeric propositionPowerThreshold
function internalSetPropositionPowerThreshold(uint256 _propositionPowerThreshold) internal { propositionPowerThreshold = _propositionPowerThreshold; emit PropositionPowerThresholdSet(msg.sender, _propositionPowerThreshold); }
5,373,098
[ 1, 2785, 326, 450, 3276, 13788, 7614, 225, 389, 685, 3276, 13788, 7614, 1021, 6389, 450, 3276, 13788, 7614, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2713, 694, 626, 3276, 13788, 7614, 12, 11890, 5034, 389, 685, 3276, 13788, 7614, 13, 2713, 288, 203, 3639, 450, 3276, 13788, 7614, 273, 389, 685, 3276, 13788, 7614, 31, 203, 3639, 3626, 1186, 3276, 13788, 7614, 694, 12, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity >0.5.10; //assumptions: //unique id for all products is in bytes32 //user order everything at once only //one user only one order list //product order smart contract contract productOrder{ //declare the variables address defaultAdmin; //default Admin add...
function to create order for the user
function placeToCart(bytes32 _productID, uint _quantity) public payable { require(productDetails[_productID].listedBy != address(0),"Order is not listed"); require(msg.value >= productDetails[_productID].price); if( orderList[msg.sender].isOrdered != true ){ orderList[msg.sender]...
12,999,986
[ 1, 915, 358, 752, 1353, 364, 326, 729, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3166, 774, 13006, 12, 3890, 1578, 389, 5896, 734, 16, 2254, 389, 16172, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 5896, 3790, 63, 67, 5896, 734, 8009, 18647, 858, 480, 1758, 12, 20, 3631, 6, 2448, 353, 486, 12889...
./partial_match/1/0x90A62dc4BF3f805504a248A49eFC469F406D41b9/sources/src/Contracts/LiquidLocker/LockerMaster.sol
* @param token The address of the token to release from lock. @param amount The amount of tokens to be released from lock. @param payload Additional data associated with the release (optional). @dev Releases the specified amount of tokens from lock to DAO treasury./
function releaseLock(address token, uint256 amount, bytes calldata payload) external onlyOwner { address adapter = _adapter().adapter; if (adapter == address(0)) revert AdapterDisabled(); ILiquidLocker(adapter).releaseLock(token, amount, payload); emit Release(msg.sender, amount); ...
4,091,692
[ 1, 2316, 1021, 1758, 434, 326, 1147, 358, 3992, 628, 2176, 18, 225, 3844, 1021, 3844, 434, 2430, 358, 506, 15976, 628, 2176, 18, 225, 2385, 15119, 501, 3627, 598, 326, 3992, 261, 10444, 2934, 225, 4275, 73, 3304, 326, 1269, 3844, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 445, 3992, 2531, 12, 2867, 1147, 16, 2254, 5034, 3844, 16, 1731, 745, 892, 2385, 13, 3903, 1338, 5541, 288, 203, 3639, 1758, 4516, 273, 389, 10204, 7675, 10204, 31, 203, 3639, 309, 261, 10204, 422, 1758, 12, 20, 3719, 15226,...
./partial_match/1/0xc6CadA314389430d396C7b0C70c6281e99ca7fe8/sources/src/contracts/FraxlendPairCore.sol
amount = total amount of assets, shares = total shares outstanding
VaultAccount public totalAsset;
2,823,088
[ 1, 8949, 273, 2078, 3844, 434, 7176, 16, 24123, 273, 2078, 24123, 20974, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17329, 3032, 1071, 2078, 6672, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.21; // ---------------------------------------------------------------------------- // Contract owner and transfer functions // just in case someone wants to get my bacon // ---------------------------------------------------------------------------- contract ContractOwned { address pub...
interacting with battle contract
contract BattleInterface { function addWarrior(address, uint, uint8, string) pure public returns (bool) {} function isDead(uint) public pure returns (bool) {} }
12,725,579
[ 1, 2761, 621, 310, 598, 324, 4558, 298, 6835, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 4558, 298, 1358, 288, 203, 565, 445, 527, 30634, 2432, 12, 2867, 16, 2254, 16, 2254, 28, 16, 533, 13, 16618, 1071, 1135, 261, 6430, 13, 2618, 203, 565, 445, 353, 11852, 12, 11890, 13, 1071, 16618, 1135, 261, 6430, 1...
pragma solidity ^0.4.24; /** * @title Module * @dev Interface for a module. * A module MUST implement the addModule() method to ensure that a wallet with at least one module * can never end up in a "frozen" state. * @author Julien Niset - <julien@argent.xyz> */ interface Module { /** * @de...
* @title LimitManager @dev Module to transfer tokens (ETH or ERC20) based on a security context (daily limit, whitelist, etc). @author Julien Niset - <julien@argent.xyz>/ large limit when the limit can be considered disabled
contract LimitManager is BaseModule { using SafeMath for uint256; struct LimitManagerConfig { Limit limit; DailySpent dailySpent; } struct Limit { uint128 current; uint128 pending; uint64 changeAfter; } struct DailySpent { uint128 alreadySpen...
5,456,234
[ 1, 3039, 1318, 225, 5924, 358, 7412, 2430, 261, 1584, 44, 578, 4232, 39, 3462, 13, 2511, 603, 279, 4373, 819, 261, 26790, 1800, 16, 10734, 16, 5527, 2934, 225, 804, 14826, 275, 423, 291, 278, 300, 411, 28034, 275, 36, 3175, 319, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7214, 1318, 353, 3360, 3120, 288, 203, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1958, 7214, 1318, 809, 288, 203, 3639, 7214, 1800, 31, 203, 3639, 463, 12857, 3389, 319, 18872, 3389, 319, 31, 2...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "./interfaces/IERC20.sol"; import "./interfaces/IERC20Permit.sol"; import "./interfaces/ITranche.sol"; import "./interfaces/IWETH.sol"; import "./interfaces/IWrappedPosition.sol"; import "./libraries/Authorizable.sol"; /// @author Element Finance /...
@author Element Finance @title User Proxy This contract is a convenience library to consolidate the actions needed to create interest or principal tokens to one call. It will hold user allowances, and can be disabled by authorized addresses for security. If frozen users still control their own tokens so can manually r...
contract UserProxy is Authorizable { bool public isFrozen = false; IWETH public immutable weth; address internal immutable _trancheFactory; bytes32 internal immutable _trancheBytecodeHash; address internal constant _ETH_CONSTANT = address( 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE ); ...
10,460,005
[ 1, 1046, 9458, 1359, 225, 2177, 7659, 1220, 6835, 353, 279, 13553, 5313, 358, 21785, 340, 326, 4209, 3577, 358, 752, 16513, 578, 8897, 2430, 358, 1245, 745, 18, 2597, 903, 6887, 729, 1699, 6872, 16, 471, 848, 506, 5673, 635, 10799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 2177, 3886, 353, 3123, 5331, 429, 288, 203, 203, 565, 1426, 1071, 17646, 9808, 273, 629, 31, 203, 565, 467, 59, 1584, 44, 1071, 11732, 341, 546, 31, 203, 565, 1758, 2713, 11732, 389, 13171, 18706, 1733, 31, 203, 565, 1731,...
./partial_match/3/0x080c8B445F49ed778aD1019A1e2f95937E36Bfd8/sources/NexenPlatform.sol
IERC20 daiToken = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F); Mainnet
contract NexenPlatform is Ownable { using SafeMath for uint256; IERC20 nexenToken; IERC20 daiToken = IERC20(0xF9E53E22Abd078B56685A796902E2dF1F5cbda5e); IPriceConsumerV3DaiWei priceConsumer; IUniswapV2Router02 uniswapRouter; bool public paused = false; bool public genesisPhase...
5,333,168
[ 1, 45, 654, 39, 3462, 5248, 77, 1345, 273, 467, 654, 39, 3462, 12, 20, 92, 26, 38, 4033, 6564, 5608, 41, 6675, 5908, 24, 39, 6334, 40, 69, 10689, 70, 29, 6564, 41, 73, 323, 2226, 7616, 25, 5324, 21, 72, 20, 42, 1769, 12740, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 423, 338, 275, 8201, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 377, 203, 565, 467, 654, 39, 3462, 290, 338, 275, 1345, 31, 203, 565, 467, 654, 39, 3462, 5248, 77, 1345, 273,...
./partial_match/1/0xA5553e3FCf1d003A53Ae9Bd8E94FaC2F4d5E0913/sources/BubbleMaster.sol
Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good. function migrate(uint256 _pid) public {
require(address(migrator) != address(0), "migrate: no migrator");
15,888,303
[ 1, 19594, 12423, 1147, 358, 4042, 12423, 6835, 18, 4480, 506, 2566, 635, 1281, 476, 18, 1660, 10267, 716, 30188, 6835, 353, 7494, 18, 445, 13187, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2583, 12, 2867, 12, 81, 2757, 639, 13, 480, 1758, 12, 20, 3631, 315, 22083, 30, 1158, 30188, 8863, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.21; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract DAX { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; uint256 public totalSupply; ...
The symbol for display purposes
symbol = "DAX";
14,877,301
[ 1, 1986, 3273, 364, 2562, 13694, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3273, 273, 315, 40, 2501, 14432, 4766, 10402, 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...
./full_match/1/0xBf3B3b9368262Ed9BD06B621149CA947984D1B31/sources/@openzeppelin/contracts-upgradeable/interfaces/IERC4626Upgradeable.sol
* @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in _Available since v4.7._/
interface IERC4626Upgradeable is IERC20Upgradeable, IERC20MetadataUpgradeable { event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares); event Withdraw( address indexed sender, address indexed receiver, address indexed owner, uint256 assets, ...
4,869,302
[ 1, 1358, 434, 326, 4232, 39, 8749, 5558, 315, 1345, 1235, 17329, 8263, 3113, 487, 2553, 316, 389, 5268, 3241, 331, 24, 18, 27, 6315, 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, 5831, 467, 654, 39, 8749, 5558, 10784, 429, 353, 467, 654, 39, 3462, 10784, 429, 16, 467, 654, 39, 3462, 2277, 10784, 429, 288, 203, 565, 871, 4019, 538, 305, 12, 2867, 8808, 5793, 16, 1758, 8808, 3410, 16, 2254, 5034, 7176, 16...
pragma solidity ^0.4.8; contract Mediator { address public serviceConsumer; address public serviceProvider; uint public costPerRequest; uint public serviceConsumerFunds; uint public serviceProviderFunds; uint public terminationTimeout; uint public tokenRedemptionTimeout; uint public activeTokenId; u...
another token redemption is already in progress
if (soonExpiringTokenId != 0) { Error(32); return; }
946,218
[ 1, 304, 3011, 1147, 283, 19117, 375, 353, 1818, 316, 4007, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 261, 2048, 265, 2966, 11256, 1345, 548, 480, 374, 13, 288, 1068, 12, 1578, 1769, 327, 31, 289, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity 0.8.7; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; //TODO reward system //TODO reward token //TODO rarity calculator contr...
@notice unstake NFT, no rewards given here! @param _id array fo tokens user wants to unstake at same time
function UnstakeNFT(uint256[] memory _id) public payable { require(msg.value >= withdrawFee, "ERR: FEE NOT COVERED"); for (uint256 i; i<=_id.length; ++i) { require(IERC721(demonz).ownerOf(_id[i]) == address(msg.sender), "ERR: YOU DONT OWN THESE TOKENS"); IERC721(d...
1,776,478
[ 1, 23412, 911, 423, 4464, 16, 1158, 283, 6397, 864, 2674, 5, 225, 389, 350, 526, 18261, 2430, 729, 14805, 358, 640, 334, 911, 622, 1967, 813, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1351, 334, 911, 50, 4464, 12, 11890, 5034, 8526, 3778, 389, 350, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 598, 9446, 14667, 16, 315, 9712, 30, 478, 9383, 4269, 7910, 2204, 2056, 8863, 203, ...
./partial_match/97/0x2e1703166e0620139a33Fcc169fF9E14Fe68D820/sources/PresaleBEP20.sol
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with a default value of 18. To select a different value for {decimals}, use {_setupDecimals}. All three of these values are immutable: they can only be set once during construction./
constructor (string memory name_, string memory symbol_) public{ _name = name_; _symbol = symbol_; _decimals = 18; }
11,478,764
[ 1, 2785, 326, 924, 364, 288, 529, 97, 471, 288, 7175, 5779, 11643, 288, 31734, 97, 598, 279, 805, 460, 434, 6549, 18, 2974, 2027, 279, 3775, 460, 364, 288, 31734, 5779, 999, 288, 67, 8401, 31809, 5496, 4826, 8925, 434, 4259, 924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 261, 1080, 3778, 508, 67, 16, 533, 3778, 3273, 67, 13, 1071, 95, 203, 3639, 389, 529, 273, 508, 67, 31, 203, 3639, 389, 7175, 273, 3273, 67, 31, 203, 3639, 389, 31734, 273, 6549, 31, 203, 565, 289, 203, 203, 2, -...
./full_match/80001/0xeb70EaC1371Ef898AC2781D7168c0d5A11da10cf/sources/contracts/trove-factory.sol
* @dev insert a trove in the sorted list of troves. the troves must be sorted by collateralisation ratio CR the sender must be the trove which will be inserted in the list @param _newNextTrove is the trove before which the trove will be added/ if now hint is provided we start by trying the last trove in the list if the...
function insertTrove(address _token, address _newNextTrove) public override troveExists(_token, msg.sender) { require(containsTrove(_token, _newNextTrove) || _newNextTrove == address(0), "3a669 the trove hint must exist in the list or be 0x0"); if (_newNextTrove == address(0)) { _newNextTrove = lastTro...
9,539,842
[ 1, 6387, 279, 23432, 537, 316, 326, 3115, 666, 434, 23432, 3324, 18, 326, 23432, 3324, 1297, 506, 3115, 635, 4508, 2045, 287, 10742, 7169, 6732, 326, 5793, 1297, 506, 326, 23432, 537, 1492, 903, 506, 9564, 316, 326, 666, 225, 389, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 2243, 56, 303, 537, 12, 2867, 389, 2316, 16, 1758, 389, 2704, 2134, 56, 303, 537, 13, 1071, 3849, 23432, 537, 4002, 24899, 2316, 16, 1234, 18, 15330, 13, 288, 203, 565, 2583, 12, 12298, 56, 303, 537, 24899, 2316, 16, ...
/** From the devs of CAT (Capital Aggregator) We present DW Capital - Dont worry your profits are SAFU **/ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.4; pragma experimental ABIEncoderV2; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(addres...
generate the pancake pair path of token -> weth make the swap
) internal { uniSwapRouter02 uniSwapRouter = uniSwapRouter02(routerAddress); address[] memory path = new address[](2); path[0] = address(this); path[1] = uniSwapRouter.WETH(); uniSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, ...
5,600
[ 1, 7163, 326, 2800, 23780, 3082, 589, 434, 1147, 317, 341, 546, 1221, 326, 7720, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 262, 2713, 288, 203, 3639, 7738, 12521, 8259, 3103, 7738, 12521, 8259, 273, 7738, 12521, 8259, 3103, 12, 10717, 1887, 1769, 203, 203, 3639, 1758, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 22, 1769, 203, 3639, 589, 63, 20, 6...
// CD->09.11.2015 wordentry_set CannotBeNounAdjunct= { eng_noun:passing{}, // The zing of the passing bullet. eng_noun:how{}, eng_noun:why{}, eng_noun:where{}, eng_noun:what{}, // What units make sense? eng_noun:fighting{}, eng_noun:working{}, eng_noun:Belgian{}, eng_noun:sinking{}, // With a sinking heart ...
Exponential growth
eng_noun:Exponential{},
7,304,882
[ 1, 17972, 649, 13334, 451, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 24691, 67, 82, 465, 30, 17972, 649, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// Sources flattened with hardhat v2.3.0 https://hardhat.org // File @openzeppelin/contracts-upgradeable/token/ERC777/IERC777Upgradeable.sol@v4.5.2 // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC777/IERC777.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC777Token standard as...
* @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by {upgradeTo} and {upgradeToAndCall}. Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. ```solidity function _authorizeUpgrade(address) internal override onlyO...
{ mapping (address => bool) lockedAccounts; function initialize( string memory name, string memory symbol, uint256 initialSupply function _authorizeUpgrade(address newImplementation) internal virtual; uint256[50] private __gap; } pragma solidity ^0.8.11; contract KonnectKCT_...
14,750,908
[ 1, 2083, 716, 1410, 15226, 1347, 1375, 3576, 18, 15330, 68, 353, 486, 10799, 358, 8400, 326, 6835, 18, 11782, 635, 288, 15097, 774, 97, 471, 288, 15097, 774, 1876, 1477, 5496, 24773, 1230, 16, 333, 445, 903, 999, 392, 15187, 30, 386...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 2874, 261, 2867, 516, 1426, 13, 8586, 13971, 31, 203, 203, 565, 445, 4046, 12, 203, 3639, 533, 3778, 508, 16, 203, 3639, 533, 3778, 3273, 16, 203, 3639, 2254, 5034, 2172, 3088, 1283, 203, 565, 445, 389, 22488, 107...
./full_match/4/0x76b9a51dae71282EeAbB5F2C9A0365F1b2c707cf/sources/browser/github/tokens/IERC20.sol
* @dev Interface of the ERC20 standard as defined in the EIP./
interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint2...
13,309,855
[ 1, 1358, 434, 326, 4232, 39, 3462, 4529, 487, 2553, 316, 326, 512, 2579, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 288, 203, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 11013, 951, 12, 2867, 2236, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 203, 565, 445, 741...
pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; import "./Address.sol"; import "./IACOPool2.sol"; /** * @title ACOPoolFactory * @dev The contract is the implementation for the ACOProxy. */ contract ACOPoolFactory2 { /** * @dev Struct to store the ACO pool basic data. */ struct ACOP...
* @dev Internal function to validate strategy. @param strategy Address of the strategy./
function _validateStrategy(address strategy) view internal virtual { require(strategyPermitted[strategy], "ACOPoolFactory::_validateStrategy: Invalid strategy"); }
128,897
[ 1, 3061, 445, 358, 1954, 6252, 18, 225, 6252, 5267, 434, 326, 6252, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5662, 4525, 12, 2867, 6252, 13, 1476, 2713, 5024, 288, 203, 3639, 2583, 12, 14914, 31465, 63, 14914, 6487, 315, 2226, 51, 2864, 1733, 2866, 67, 5662, 4525, 30, 1962, 6252, 8863, 203, 565, 289, 203, 377, 203, 2, -...
./partial_match/1/0x35c556d2700CE48fC3D3C1736B28bd15dC5cFC59/sources/TrueRatingAgency.sol
* @dev Only loans that have been funded/
modifier onlyFundedLoans(address id) { require(status(id) >= LoanStatus.Running, "TrueRatingAgency: Loan was not funded"); _; }
3,990,263
[ 1, 3386, 437, 634, 716, 1240, 2118, 9831, 785, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 42, 12254, 1504, 634, 12, 2867, 612, 13, 288, 203, 3639, 2583, 12, 2327, 12, 350, 13, 1545, 3176, 304, 1482, 18, 7051, 16, 315, 5510, 20388, 2577, 2075, 30, 3176, 304, 1703, 486, 9831, 785, 8863, 203, 3639, 389...
pragma solidity 0.5.16; import "../base/Managed.sol"; import "./state/AuthereumEnsResolverState.sol"; /** * @title AuthereumEnsResolver * @author Authereum Labs, Inc. * @dev Authereum implementation of a Resolver. */ contract AuthereumEnsResolver is Managed, AuthereumEnsResolverState { string constant publ...
@dev Returns the text data associated with an ENS node and key @param node The ENS node to query @param key The text data key to query@return The associated text data
function text(bytes32 node, string memory key) public view returns (string memory) { return texts[node][key]; }
7,241,286
[ 1, 1356, 326, 977, 501, 3627, 598, 392, 512, 3156, 756, 471, 498, 225, 756, 1021, 512, 3156, 756, 358, 843, 225, 498, 1021, 977, 501, 498, 358, 843, 2463, 1021, 3627, 977, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 977, 12, 3890, 1578, 756, 16, 533, 3778, 498, 13, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 15219, 63, 2159, 6362, 856, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity >=0.4 <0.6.0; import "./Managed.sol"; import "./IMarketPlace.sol"; // TODO: limit the number of offers to 256 contract MarketPlace is IMarketPlace, Managed { modifier inLimits(address _componentAddress) { require(_componentToOffers[_componentAddress].length < 256, "Exceded offers size"); ...
TODO: limit the number of offers to 256
contract MarketPlace is IMarketPlace, Managed { modifier inLimits(address _componentAddress) { require(_componentToOffers[_componentAddress].length < 256, "Exceded offers size"); _; } modifier isNotSubmited(address _componentAddress) { require(!_addressToIndex[_componentAddress].is...
1,765,445
[ 1, 6241, 30, 1800, 326, 1300, 434, 28641, 358, 8303, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6622, 278, 6029, 353, 467, 3882, 278, 6029, 16, 10024, 288, 203, 203, 565, 9606, 316, 12768, 12, 2867, 389, 4652, 1887, 13, 288, 203, 3639, 2583, 24899, 4652, 774, 7210, 414, 63, 67, 4652, 1887, 8009, 2469, 411, 8303, 16, ...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.6.11; contract AccessControl { event GrantRole(bytes32 indexed role, address indexed addr); event RevokeRole(bytes32 indexed role, address indexed addr); mapping(bytes32 => mapping(address => bool)) public hasRole; modifier onlyAuthorize...
unstake withdraw DAI from PICKLE Now we have underlying
function _withdrawUnderlying(uint _pDaiAmount) internal override { MasterChef(CHEF).withdraw(POOL_ID, _pDaiAmount); PickleJar(JAR).withdraw(_pDaiAmount); }
13,453,044
[ 1, 23412, 911, 598, 9446, 463, 18194, 628, 225, 453, 16656, 900, 4494, 732, 1240, 6808, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 1918, 9446, 14655, 6291, 12, 11890, 389, 84, 40, 10658, 6275, 13, 2713, 3849, 288, 203, 3639, 13453, 39, 580, 74, 12, 5007, 42, 2934, 1918, 9446, 12, 20339, 67, 734, 16, 389, 84, 40, 10658, 6275, 1769, 203, 203, ...
./full_match/1/0xaa282C8aB681fbD501A2B8fA0Ea558cbF5785F73/sources/contracts/AvocadoMultisig/AvocadoMultisig.sol
Address.functionDelegateCall will revert if success = false @notice hook called after executing an upgrade from previous `fromImplementation_`, with flexible bytes `data_`
function _afterUpgradeHook(address fromImplementation_, bytes calldata data_) public virtual onlySelf {}
3,129,134
[ 1, 1887, 18, 915, 9586, 1477, 903, 15226, 309, 2216, 273, 629, 225, 3953, 2566, 1839, 11274, 392, 8400, 628, 2416, 1375, 2080, 13621, 67, 9191, 598, 16600, 1523, 1731, 1375, 892, 67, 68, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 5205, 10784, 5394, 12, 2867, 628, 13621, 67, 16, 1731, 745, 892, 501, 67, 13, 1071, 5024, 1338, 10084, 2618, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT-open-group pragma solidity >= 0.5.15; import "../lib/ds-stop/stop.sol"; import "./diamonds/interfaces/Token.sol"; import "./diamonds/interfaces/ValidatorsEvents.sol"; import "./Constants.sol"; import "./Registry.sol"; import "./SafeMath.sol"; contract Deposit is Constants, DSStop, Re...
Minting only required for migration
BasicERC20 token;
5,547,919
[ 1, 49, 474, 310, 1338, 1931, 364, 6333, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 7651, 654, 39, 3462, 1147, 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, -100, -100, ...
// 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 should not be accessed in such a direct * manner, sinc...
* @title IModule @author Set Protocol Interface for interacting with Modules./
interface IModule { function removeModule() external; Copyright 2020 Set Labs Inc. pragma solidity 0.7.6; }
100,857
[ 1, 45, 3120, 225, 1000, 4547, 6682, 364, 16592, 310, 598, 25493, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3120, 288, 203, 225, 445, 1206, 3120, 1435, 3903, 31, 203, 565, 25417, 26599, 20, 1000, 511, 5113, 15090, 18, 203, 683, 9454, 18035, 560, 374, 18, 27, 18, 26, 31, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x4CC84b41ECECC387244512242Eec226Eb7948A92/sources/browser/KASSIAHOME.sol
* @notice Currently returns the internal storage amount @param who The address to query. @return The underlying balance of the specified address./
function balanceOfUnderlying(address who) external view returns (uint256) { return _kassiahomeBalances[who]; }
9,696,393
[ 1, 3935, 715, 1135, 326, 2713, 2502, 3844, 225, 10354, 1021, 1758, 358, 843, 18, 327, 1021, 6808, 11013, 434, 326, 1269, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 951, 14655, 6291, 12, 2867, 10354, 13, 203, 1377, 3903, 203, 1377, 1476, 203, 1377, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 1377, 327, 389, 79, 428, 1155, 8712, 38, 26488, 63, 3350, 83, 15533, 203, 565, ...
pragma solidity >=0.4.21; import "usingtellor/contracts/UsingTellor.sol"; /** * @title Tellor Fund * @notice Allows the Tellor communtiy to propose and fund different * activities like paid AMA's, listing fees influencer's interviews. * The proposal is originally funded by the creator and if it fails to * reach...
what is the statememt???
addressToStatements[msg.sender].push(thisStatement);
5,401,090
[ 1, 23770, 353, 326, 919, 3917, 88, 14646, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 774, 14663, 63, 3576, 18, 15330, 8009, 6206, 12, 2211, 3406, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x931D8441599B533DfEd618E93Fc32d110543a087/sources/contracts/radiant/staking/MultiFeeDistribution.sol
* @notice Update user reward info. @param account address/
function _updateReward(address account) internal { uint256 balance = _balances[account].lockedWithMultiplier; uint256 length = rewardTokens.length; for (uint256 i = 0; i < length; ) { address token = rewardTokens[i]; uint256 rpt = rewardPerToken(token); Reward storage r = rewardData[token]; r.reward...
8,422,296
[ 1, 1891, 729, 19890, 1123, 18, 225, 2236, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 389, 2725, 17631, 1060, 12, 2867, 2236, 13, 2713, 288, 203, 202, 202, 11890, 5034, 11013, 273, 389, 70, 26488, 63, 4631, 8009, 15091, 1190, 23365, 31, 203, 202, 202, 11890, 5034, 769, 273, 19890, 5157, 18, 2469, 31, 203...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; pragma experimental ABIEncoderV2; import "./NumericalMath.sol"; import "./FixidityLib.sol"; import "https://github.com/smartcontractkit/chainlink/blob/master/evm-contracts/src/v0.6/VRFConsumerBase.sol"; import "https://github.com/jstat17/Random-Walk-NFT/bl...
Add new location as a node
xs[_i] = walker.x;
5,478,209
[ 1, 986, 394, 2117, 487, 279, 756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 9280, 63, 67, 77, 65, 273, 14810, 18, 92, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.5.16; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./IStakingContract.sol"; import "./IStakeChangeNotifier.sol"; contract StakingContract is IStakingContract, IMigratableStakingContract { using SafeMath for uint256; struct Stake { uint256 amount; uint256 coo...
@dev Removes a contract from the list of approved staking contracts migration destinations. @param _stakingContract IMigratableStakingContract The contract to remove. Check for existence. Swap the requested element with the last element and then delete it using pop/
function removeMigrationDestination( IMigratableStakingContract _stakingContract ) external onlyMigrationManager { require( address(_stakingContract) != address(0), "StakingContract::removeMigrationDestination - address must not be 0" ); (uint256 i, bool ...
1,815,877
[ 1, 6220, 279, 6835, 628, 326, 666, 434, 20412, 384, 6159, 20092, 6333, 20456, 18, 225, 389, 334, 6159, 8924, 6246, 2757, 8163, 510, 6159, 8924, 1021, 6835, 358, 1206, 18, 2073, 364, 15782, 18, 12738, 326, 3764, 930, 598, 326, 1142, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 10224, 5683, 12, 203, 3639, 6246, 2757, 8163, 510, 6159, 8924, 389, 334, 6159, 8924, 203, 565, 262, 3903, 1338, 10224, 1318, 288, 203, 3639, 2583, 12, 203, 5411, 1758, 24899, 334, 6159, 8924, 13, 480, 1758, 12, 20...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import './AbstractERC1155Factory.sol'; import "./PaymentSpl...
* @notice purchase planet tokens @param planetID the planet id to purchase @param amount the amount of tokens to purchase/
function purchase(uint256 planetID, uint256 amount) external payable whenNotPaused { require(!isSaleClosed[planetID], "Purchase: sale is closed"); require (block.timestamp >= purchaseWindowOpens, "Purchase: window closed"); require(amount <= planets[planetID].maxPurchaseTx, "Purchase: Max pu...
12,566,993
[ 1, 12688, 12104, 4995, 278, 2430, 225, 4995, 278, 734, 326, 4995, 278, 612, 358, 23701, 225, 3844, 326, 3844, 434, 2430, 358, 23701, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 23701, 12, 11890, 5034, 4995, 278, 734, 16, 2254, 5034, 3844, 13, 3903, 8843, 429, 1347, 1248, 28590, 288, 203, 3639, 2583, 12, 5, 291, 30746, 7395, 63, 7088, 278, 734, 6487, 315, 23164, 30, 272, 5349, 353, 4375, 8863, ...
./partial_match/4/0xa4a8e396d325Ca4213b80c003bdf7a8C60EF97dD/sources/IlikeTests.sol
Total Tax is 5% of each HFLY transaction 2.5% go to HFLY/ROT LP rewards 2.5% go to HFLY/ROT liq locke Half of 2.5% are sold for ROT Then both are injected into the HFLY/ROT pair leftorver Maggots are sent back to ROT/MAGGOT pool--------------------------------Storage Start-----------------------------Indicator for migr...
contract IlikeTests is ERC20("TestT5", "TEST5"), Ownable { using SafeMath for uint256; bool private isMigrationInitiated = false; uint256 private INITIATED_IN_BLOCK; uint256 private MIGRATION_END_BLOCK; uint256 private TOTAL_REWARDS_LP_HFLY_ROT; uint256 private TOTAL_TO_LOCK_IN_LIQ; add...
8,695,758
[ 1, 5269, 18240, 353, 1381, 9, 434, 1517, 670, 42, 7076, 2492, 576, 18, 25, 9, 1960, 358, 670, 42, 7076, 19, 1457, 56, 511, 52, 283, 6397, 576, 18, 25, 9, 1960, 358, 670, 42, 7076, 19, 1457, 56, 4501, 85, 2176, 73, 670, 6186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 467, 5625, 14650, 353, 4232, 39, 3462, 2932, 4709, 56, 25, 3113, 315, 16961, 25, 6, 3631, 14223, 6914, 288, 7010, 203, 202, 9940, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 203, 565, 1426, 3238, 353, 10224, 2570, 10...
/** *Submitted for verification at Etherscan.io on 2022-02-24 */ /** //SPDX-License-Identifier: Unlicensed */ pragma solidity ^0.8.6; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(...
Blacklist: If 'noBlackList' is true wallets on this list can not buy - used for known bots Set contract so that blacklisted wallets cannot buy (default is false) Counter for liquify trigger This is the max fee that the contract will accept, it is hard-coded to protect buyers Setting the initial fees 'Previous fees' ar...
contract SaveUkraineCoin is Context, IERC20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (address => b...
7,777,556
[ 1, 25811, 30, 971, 296, 2135, 13155, 682, 11, 353, 638, 17662, 2413, 603, 333, 666, 848, 486, 30143, 300, 1399, 364, 4846, 2512, 87, 1000, 6835, 1427, 716, 25350, 17662, 2413, 2780, 30143, 261, 1886, 353, 629, 13, 9354, 364, 4501, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 7074, 57, 79, 354, 558, 27055, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 7010, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, ...
pragma solidity 0.4.25; /* __ __ ___ ______ /\ \ __/\ \ /\_ \ /\__ _\ \ \ \/\ \ \ \ __\//\ \ ___ ___ ___ ___ __ \/_/\ \/ ___ \ \...
Track record whether token holder exist or not
mapping(address => uint256) public investorContribution;
5,387,613
[ 1, 4402, 1409, 2856, 1147, 10438, 1005, 578, 486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 2198, 395, 280, 442, 4027, 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,...
/** *Submitted for verification at Etherscan.io on 2020-01-21 */ /** *Submitted for verification at Etherscan.io on 2020-01-21 */ // File: openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.5.2; /** * @title Helps contracts guard against reentrancy attacks. * @author Remco Bloemen <rem...
* @title Helps contracts guard against reentrancy attacks. @author Remco Bloemen <remco@2π.com>, Eenae <alexey@mixbytes.io> @dev If you mark a function `nonReentrant`, you should also mark it `external`./
contract ReentrancyGuard { uint256 private _guardCounter; constructor () internal { _guardCounter = 1; } modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter); } }
12,659,195
[ 1, 44, 292, 1121, 20092, 11026, 5314, 283, 8230, 12514, 28444, 18, 225, 2663, 2894, 605, 383, 351, 275, 411, 2764, 2894, 36, 22, 144, 227, 18, 832, 20401, 512, 275, 8906, 411, 287, 338, 402, 36, 14860, 3890, 18, 1594, 34, 225, 971...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 868, 8230, 12514, 16709, 288, 203, 565, 2254, 5034, 3238, 389, 24594, 4789, 31, 203, 203, 203, 203, 203, 565, 3885, 1832, 2713, 288, 203, 3639, 389, 24594, 4789, 273, 404, 31, 203, 565, 289, 203, 203, 565, 9606, 1661, 426,...
./partial_match/1/0x856Edafd23303120f178D90B9C2f7053aeF0975D/sources/ZEROX.sol
at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!blocked[from], "Sniper blocked"); ...
10,995,249
[ 1, 270, 8037, 309, 326, 7412, 4624, 353, 3696, 16, 3387, 326, 1203, 11267, 364, 5405, 343, 345, 414, 353, 444, 1493, 4982, 8037, 18, 309, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 1338, 4862, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
./full_match/1/0x1807e79594A19de9a887f0A1448F4AB4c347B763/sources/src/module/governance-pool/Nouns.sol
Wrapper for Nouns token governance functionality
interface NounsToken { function getPriorVotes(address, uint256) external view returns (uint96); }
17,042,382
[ 1, 3611, 364, 423, 465, 87, 1147, 314, 1643, 82, 1359, 14176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5831, 423, 465, 87, 1345, 288, 203, 225, 445, 1689, 2432, 29637, 12, 2867, 16, 2254, 5034, 13, 3903, 1476, 1135, 261, 11890, 10525, 1769, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/4/0x8478c136E3eCC8776A338275c09b9469f0C26e88/sources/contracts/5_GunPool.sol
2.1, 从pool取钱 注意:循环不能太大,否则gas耗尽无法取出钱来do nothing (uint amountA, uint amountB) = BridgePair(bp).removeLiquidity(Liq, 1, 1, block.timestamp + 1);
if (HasAmount < UserNewAmount) { uint DoingAmount = UserNewAmount - HasAmount; uint i = 0; address bp = IndexBridgePairOf[i]; address UniPair = UniswapV2Library.pairFor(factory, BridgePair(bp).Token0(), BridgePair(bp).Token1()); if (IUn...
830,697
[ 1, 22, 18, 21, 16, 225, 165, 124, 241, 6011, 166, 242, 249, 170, 245, 114, 225, 167, 116, 106, 167, 231, 242, 176, 125, 253, 166, 127, 108, 168, 241, 112, 165, 121, 240, 169, 230, 126, 166, 102, 108, 166, 102, 105, 176, 125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 309, 261, 5582, 6275, 411, 2177, 1908, 6275, 13, 288, 203, 5411, 2254, 2256, 310, 6275, 273, 2177, 1908, 6275, 300, 4393, 6275, 31, 203, 5411, 2254, 277, 273, 374, 31, 540, 203, 5411, 1758, 9107, 273, 3340, 13691, 4154, 951...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./NFTYToken.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; contract NFTYStakingUpgradeable is AccessControlUpgradeable, ...
function for returning the current reward rate
function getRewardRates() external view returns (uint256[6] memory) { return _rewardRate; }
6,961,216
[ 1, 915, 364, 5785, 326, 783, 19890, 4993, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4170, 359, 1060, 20836, 1435, 3903, 1476, 1135, 261, 11890, 5034, 63, 26, 65, 3778, 13, 288, 203, 3639, 327, 389, 266, 2913, 4727, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-04-28 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that ...
release funds to owner
function withdraw() onlyOwner public { payable(owner()).transfer(address(this).balance); } A user can´t mint more than the maximum availible amount (MAX_AMOUNT) The sent ETH value has to be the same than the price sent in the config If the whitelist flag is set to only whitelisted addresses can mint ...
2,071,252
[ 1, 9340, 284, 19156, 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, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 1338, 5541, 1071, 288, 203, 1377, 8843, 429, 12, 8443, 1435, 2934, 13866, 12, 2867, 12, 2211, 2934, 12296, 1769, 203, 225, 289, 203, 203, 225, 432, 729, 848, 131, 117, 88, 312, 474, 1898, 2353, 326, 4...
./full_match/1/0x4ca55F85bE260EC2793499Ea7FF9A4bfcD824fB3/sources/contracts/stakingManager.sol
Accumulated rewards per share times REWARDS_PRECISION
uint256 private accumulatedRewardsPerShare;
4,836,773
[ 1, 8973, 5283, 690, 283, 6397, 1534, 7433, 4124, 2438, 16777, 3948, 67, 3670, 26913, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 24893, 17631, 14727, 2173, 9535, 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, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8; import "./IArbitrator.sol"; /** @title Centralized Arbitrator * @dev This is a centralized arbitrator deciding alone on the result of disputes. It illustrates how IArbitrator interface can be implemented. * Note that this contract supports appeals. The ruling...
* @dev Cost of arbitration. @return fee The required amount./
function arbitrationCost( bytes calldata /*_extraData*/ ) public view override returns (uint256 fee) { return arbitrationFee; }
1,009,524
[ 1, 8018, 434, 10056, 7034, 18, 225, 327, 14036, 1021, 1931, 3844, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10056, 7034, 8018, 12, 203, 3639, 1731, 745, 892, 1748, 67, 7763, 751, 5549, 203, 565, 262, 1071, 1476, 3849, 1135, 261, 11890, 5034, 14036, 13, 288, 203, 3639, 327, 10056, 7034, 14667, 31, 203, 565, 289, 203, 203, 2, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol"; import "@openzeppelin/contracts/token/ERC11...
*/ Retrieve the item's group ID. If the item group is non-burnable, then revert. If we can burn items, then we must verify that we do not exceed the cap.
This is a private helper function to verify, according to all of our various minting and burning rules, whether it would be valid to burn some `_amount` of a particular item `_id`. @param _id The ID of the item to check for burning validity. @param _amount The amount of the item to try checking bur...
6,273,098
[ 1, 19, 10708, 326, 761, 1807, 1041, 1599, 18, 971, 326, 761, 1041, 353, 1661, 17, 70, 321, 429, 16, 1508, 15226, 18, 971, 732, 848, 18305, 1516, 16, 1508, 732, 1297, 3929, 716, 732, 741, 486, 9943, 326, 3523, 18, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1220, 353, 279, 3238, 4222, 445, 358, 3929, 16, 4888, 358, 777, 434, 3134, 11191, 203, 565, 312, 474, 310, 471, 18305, 310, 2931, 16, 2856, 518, 4102, 506, 923, 358, 18305, 2690, 1375, 67, 8949, 68, 203, 565, 434, 279, 682...
./full_match/80001/0xB5E7bb79bCFd916b319b3320C63B98e617BFd023/sources/project_/contracts/Limits.sol
@notice Returns the value of the default Transaction Count limit
function defaultTransactionCountLimit() external view returns (uint256) { return _defaultTransactionCountLimit; }
842,481
[ 1, 1356, 326, 460, 434, 326, 805, 5947, 6974, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 805, 3342, 1380, 3039, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 1886, 3342, 1380, 3039, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/4/0x61d4b386793B802c2cd976A32Fedd27370446156/sources/contracts/FundMe.sol
this function technically should be called "getConversionRate". This function getPrice() is showing the current price of 1 ETH in USD*10^18.
function getPrice() public view returns(uint256) { AggregatorV3Interface priceFeed = AggregatorV3Interface(0x8A753747A1Fa494EC906cE90E9f37563A8AF630e); (,int256 answer,,,) = priceFeed.latestRoundData(); return uint256(answer*10**10); }
746,956
[ 1, 2211, 445, 17734, 6478, 1410, 506, 2566, 315, 588, 6814, 4727, 9654, 1220, 445, 25930, 1435, 353, 17253, 326, 783, 6205, 434, 404, 512, 2455, 316, 587, 9903, 2163, 66, 2643, 18, 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, 0, 0, 0, 0, 0, 0, 0, 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, 25930, 1435, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 565, 10594, 639, 58, 23, 1358, 6205, 8141, 273, 10594, 639, 58, 23, 1358, 12, 20, 92, 28, 37, 5877, 23, 5608, 27, 37, 21, 29634, 7616, 24, 7228, 29, 7677...
pragma solidity ^0.4.18; /** * @author OpenZeppelin * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); retu...
Only transfer unlocked balance
function transfer( address _to, uint _value ) canBeTransferred public returns (bool) { require(balances[msg.sender] >= _value); if(isBonusLocked) { require(balances[msg.sender].sub(lockedBalances[msg.sender]) >= _value); } ...
12,856,493
[ 1, 3386, 7412, 25966, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 389, 1132, 203, 565, 262, 203, 3639, 24978, 1429, 4193, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 2583, 12, 70, 26488, 63, 357...
pragma solidity ^0.4.23; // File: contracts/openzeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { int256 constant private INT256_MIN = -2**255; /** * @dev Multiplies two unsigned integers, reverts on...
* @title SafeMath @dev Math operations with safety checks that revert on error/
library SafeMath { int256 constant private INT256_MIN = -2**255; function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } function mul(uint256 a, uint256 b) ...
954,517
[ 1, 9890, 10477, 225, 2361, 5295, 598, 24179, 4271, 716, 15226, 603, 555, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 14060, 10477, 288, 203, 565, 509, 5034, 5381, 3238, 6137, 5034, 67, 6236, 273, 300, 22, 636, 10395, 31, 203, 203, 203, 565, 445, 14064, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/EnumerableSet.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract AddChef is Ownable { usi...
Safe add transfer function, just in case if rounding error causes pool to not have enough YAXs.
function safeAddTransfer(address _to, uint256 _amount) internal { uint256 addBal = addToken.balanceOf(address(this)); if (_amount > addBal) { addToken.transfer(_to, addBal); addToken.transfer(_to, _amount); } }
11,743,853
[ 1, 9890, 527, 7412, 445, 16, 2537, 316, 648, 309, 13885, 555, 14119, 2845, 358, 486, 1240, 7304, 1624, 2501, 87, 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, ...
[ 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, 4183, 986, 5912, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 2713, 288, 203, 3639, 2254, 5034, 527, 38, 287, 273, 527, 1345, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 3639, 309, 261, 67, 8949, 405, 527, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `...
refined resourse typeID
uint8 outputType;
1,658,450
[ 1, 266, 926, 329, 400, 3117, 618, 734, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 28, 876, 559, 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, -100, -...
//Address: 0xa76ea481aebdd5703e476cfcb2315d4e014232c1 //Contract name: Crowdsale //Balance: 0 Ether //Verification Date: 2/27/2018 //Transacion Count: 4345 // CODE STARTS HERE pragma solidity ^0.4.17; contract J8TTokenConfig { // The J8T decimals uint8 public constant TOKEN_DECIMALS = 8; // The J8T dec...
Updates the minContribution propety with the new _newMinControbution value
function setMinContribution(uint256 _newMinContribution) external onlyAdmin returns (bool) { require(_newMinContribution <= maxContribution); uint256 _oldValue = minContribution; minContribution = _newMinContribution; MinContributionUpdated(msg.sender, _oldValue, minContrib...
2,480,465
[ 1, 5121, 326, 1131, 442, 4027, 2270, 14369, 598, 326, 394, 389, 2704, 2930, 660, 303, 70, 1421, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 27724, 442, 4027, 12, 11890, 5034, 389, 2704, 2930, 442, 4027, 13, 3903, 1338, 4446, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 2704, 2930, 442, 4027, 1648, 943, 442, 4027, 1769, 203, 203, 3639, 2254, 5034, 389, ...
./partial_match/1/0xa5b8BBdaE8739C0EfA98Ca2d46B93D8C7C1408da/sources/Cryptoz.sol
ALL CLEAR - grab a random number
uint rand = selectRandom(10000);
15,890,157
[ 1, 4685, 385, 900, 985, 300, 11086, 279, 2744, 1300, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5605, 273, 2027, 8529, 12, 23899, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/137/0x1683F59e40f20c86a13400BE37d2C437CE03298C/sources/strategy/AdvanceStrategy.sol
A template for don-key strategies. Parts of the contract that the writer needs to add are numbered below. Writer only needs to add relevent parts to the existing code. The writer needs to add the following things: 1. Interfaces to other contracts 2. Description of strategy. Can be as given by the farmer 3. Relevent ad...
abstract contract Context { pragma solidity ^0.6.9; constructor() internal {} function _msgSender() internal view returns (address) { return msg.sender; } function _msgData() internal view returns (bytes memory) { return msg.data; } }
4,692,519
[ 1, 37, 1542, 364, 2727, 17, 856, 20417, 18, 28195, 434, 326, 6835, 716, 326, 2633, 4260, 358, 527, 854, 1300, 329, 5712, 18, 5497, 1338, 4260, 358, 527, 6707, 616, 2140, 358, 326, 2062, 981, 18, 1021, 2633, 4260, 358, 527, 326, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1772, 288, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 29, 31, 203, 565, 3885, 1435, 2713, 2618, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 1234, 18, 153...
pragma solidity ^0.7.0; pragma experimental ABIEncoderV2; abstract contract IDFSRegistry { function getAddr(bytes32 _id) public view virtual returns (address); function addNewContract( bytes32 _id, address _contractAddr, uint256 _waitPeriod ) public virtual; function s...
@notice Updates the users strategy @dev Only callable by proxy who created the strategy @param _startegyId Id of the strategy to update @param _templateId Id of the template used for strategy @param _active If the strategy is turned on at the start @param _subData Subscription data for actions @param _triggerData Subs...
function updateStrategy( uint _startegyId, uint _templateId, bool _active, bytes[][] memory _subData, bytes[][] memory _triggerData ) public { Strategy storage s = strategies[_startegyId]; require(s.proxy != address(0), ERR_EMPTY_STRATEGY); requir...
157,852
[ 1, 5121, 326, 3677, 6252, 225, 5098, 4140, 635, 2889, 10354, 2522, 326, 6252, 225, 389, 1937, 1332, 93, 548, 3124, 434, 326, 6252, 358, 1089, 225, 389, 3202, 548, 3124, 434, 326, 1542, 1399, 364, 6252, 225, 389, 3535, 971, 326, 6252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1089, 4525, 12, 203, 3639, 2254, 389, 1937, 1332, 93, 548, 16, 203, 3639, 2254, 389, 3202, 548, 16, 203, 3639, 1426, 389, 3535, 16, 203, 3639, 1731, 63, 6362, 65, 3778, 389, 1717, 751, 16, 203, 3639, 1731, 63, 6362, ...
./full_match/44787/0x3d7237d60dCa4C635FE0CD62fD524F09B3730f54/sources/contracts/StarNFTMarket.sol
add fee starToken.transfer(Bonus.getlockAddress(), _fee.mul(lockRatio).div(100));
function purchaseToken(uint256 _tokenId) public nonReentrant { require(_msgSender() != address(0)); require(tokenInfo[_tokenId].owner != address(0), "not sale"); uint256 _price = tokenInfo[_tokenId].price; starToken.transferFrom(_msgSender(), address(this), _price); uint256 _...
13,252,240
[ 1, 1289, 14036, 10443, 1345, 18, 13866, 12, 38, 22889, 18, 588, 739, 1887, 9334, 389, 21386, 18, 16411, 12, 739, 8541, 2934, 2892, 12, 6625, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 23701, 1345, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 2583, 24899, 3576, 12021, 1435, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 2316, 966, 63, 67, 2316, 548, 8009, 8443, 480,...
pragma solidity ^0.5.17; // Brought from https://github.com/aragon/aragonOS/blob/v4.3.0/contracts/lib/math/SafeMath.sol // Adapted to use pragma ^0.5.17 and satisfy our linter rules /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { string private constan...
Governor addresses of the system
Governor private governor;
91,706
[ 1, 43, 1643, 29561, 6138, 434, 326, 2619, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 611, 1643, 29561, 3238, 314, 1643, 29561, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; import "../interfaces/IPMETokenRolesStorage.sol"; import "../interfaces/IPMRolesManagerStorage.sol"; import "../../../common/libraries/SafeMath8.sol"; import "../../../registry-layer/components-registry/getters/PermissionModuleAddress.sol"; /** * @title Permission module extended token roles s...
* @notice Delete index of the token dependent role @param wallet Wallet address @param token Address of the token @param role Role name @param subId Additional role identifier/
function delTokenDependentRoleIndexWithSubId( address wallet, address token, bytes32 role, bytes32 subId ) public onlyPermissionModule(msg.sender) { delete indexesOfTheTokenDependentRoles[wallet][token][subId][role]; }
12,669,926
[ 1, 2613, 770, 434, 326, 1147, 10460, 2478, 225, 9230, 20126, 1758, 225, 1147, 5267, 434, 326, 1147, 225, 2478, 6204, 508, 225, 720, 548, 15119, 2478, 2756, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1464, 1345, 18571, 2996, 1016, 1190, 1676, 548, 12, 203, 3639, 1758, 9230, 16, 203, 3639, 1758, 1147, 16, 203, 3639, 1731, 1578, 2478, 16, 203, 3639, 1731, 1578, 720, 548, 203, 565, 262, 203, 3639, 1071, 203, 3639, 1338...
pragma solidity ^0.4.14; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { ...
fallback函数 1代分成 3代分成
function() onlyHuman public payable { uint256 value = msg.value; require(value > 0 && msg.sender != 0x0, "value not valid yet"); uint256 pId = mapAddrxId[msg.sender]; if (pId == 0) pId = addPlayer(msg.sender, value); else { addCoin(pId, value, Datasets...
12,680,876
[ 1, 16471, 166, 234, 126, 167, 248, 113, 404, 165, 124, 101, 166, 235, 233, 167, 235, 243, 890, 165, 124, 101, 166, 235, 233, 167, 235, 243, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1435, 1338, 28201, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 460, 273, 1234, 18, 1132, 31, 203, 3639, 2583, 12, 1132, 405, 374, 597, 1234, 18, 15330, 480, 374, 92, 20, 16, 315, 1132, 486, 923, 4671, 8863, 203, 3639...
./full_match/4/0xC70caD0eCcE4549Dd4F9B5cd5DCc3C040E7C83E1/sources/arbitrage-uniswap-sushiswap/contracts/Arbitrage.sol
=0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;
address _factory;
691,019
[ 1, 33, 20, 92, 25, 39, 8148, 70, 41, 73, 27, 1611, 10241, 28, 3461, 69, 22, 38, 26, 69, 23, 2056, 40, 24, 38, 2313, 9401, 8876, 29, 952, 25, 69, 37, 26, 74, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 1758, 389, 6848, 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, -100, -100, ...