file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT pragma solidity ^0.6.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, since when d...
* @dev Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`./
function burnFrom(address account, uint256 amount) public virtual returns (bool) { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); return true; }
1,149,383
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 28510, 28599, 1375, 8949, 68, 2430, 628, 1375, 4631, 9191, 11140, 853, 310, 628, 326, 4894, 1807, 1699, 1359, 18, 2164, 288, 654, 39, 3462, 17, 67, 70, 321, 97, 471, 288, 654, 39, 3462,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 18305, 1265, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 1071, 5024, 1135, 261, 6430, 13, 288, 203, 202, 202, 11890, 5034, 23850, 8905, 7009, 1359, 273, 1699, 1359, 12, 4631, 16, 389, 3576, 12021, 1435, 2934, 1717, 12, 89...
./partial_match/1/0x1fE867bFE9cbE0045467605B959A355223E3885D/sources/KyberBancorReserve.sol
trade from BNT to ETH trade from ETH to BNT
function getConversionPath(IERC20 src, IERC20 dest) public view returns(IERC20[] memory path) { if (src == bancorToken) { path = new IERC20[](3); path[0] = bancorToken; path[1] = bancorETHBNT; path[2] = bancorEth; return path; path = n...
9,291,941
[ 1, 4625, 348, 7953, 560, 30, 225, 18542, 628, 605, 1784, 358, 512, 2455, 18542, 628, 512, 2455, 358, 605, 1784, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 6814, 743, 12, 45, 654, 39, 3462, 1705, 16, 467, 654, 39, 3462, 1570, 13, 1071, 1476, 1135, 12, 45, 654, 39, 3462, 8526, 3778, 589, 13, 288, 203, 203, 3639, 309, 261, 4816, 422, 25732, 3850, 1345, 13, 288, 203,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./Signature.sol"; contract TGE is Ownable, Signature { using SafeERC20 for ...
* @dev Sets the minimum and maximum token prices before the TGE starts. Also sets the deposit cap. @param min The minimum token price in ETH. @param max The maximum token price in ETH. @param _depositCap The ETH deposit cap./
function setMinMaxForexPrices( uint256 min, uint256 max, uint256 _depositCap ) external onlyOwner { assert(!hasTgeBeenStarted()); require(max > min && _depositCap > max, "Invalid values"); minTokenPrice = min; maxTokenPrice = max; depositCap = _dep...
9,961,095
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 11511, 326, 5224, 471, 4207, 1147, 19827, 1865, 326, 399, 7113, 2542, 18, 1377, 8080, 1678, 326, 443, 1724, 3523, 18, 632, 891, 1131, 1021, 5224, 1147, 6205, 316, 512, 2455, 18, 632, 891,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 17454, 13573, 92, 31862, 12, 203, 3639, 2254, 5034, 1131, 16, 203, 3639, 2254, 5034, 943, 16, 203, 3639, 2254, 5034, 389, 323, 1724, 4664, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 1815, 12, 5, 5332, 56, 9...
/** *Submitted for verification at Etherscan.io on 2022-03-08 */ /* Telegram: https://t.me/SaveArtNetworkPortal Twitter: https://twitter.com/SaveArtNetwork Website: https://saveart.network */ // SPDX-License-Identifier: MIT ...
exclude from paying fees or having max transaction amount
constructor() ERC20("Save Art", "SAVEART") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair ...
10,721,968
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 4755, 9042, 3113, 315, 25242, 4928, 7923, 288, 203, 540, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22,...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.4.22 <0.9.0; import {INearBridge} from './interfaces/INearBridge.sol'; import {IEthLocker} from './interfaces/IEthLocker.sol'; import {IRelayRegistry} from './interfaces/IRelayRegistry.sol'; import 'rainbow-bridge-sol/nearprover/contracts/INearProver.sol'; imp...
Unpack the proof and extract the execution outcome.
function _useProof(bytes memory proofData, uint64 proofBlockHeight) internal returns (ProofDecoder.ExecutionStatus memory result) { require(prover.proveOutcome(proofData, proofBlockHeight), 'Proof should be valid'); Borsh.Data memory borshData = Borsh.from(proofData); Pr...
1,842,641
[ 1, 4625, 348, 7953, 560, 30, 225, 25411, 326, 14601, 471, 2608, 326, 4588, 12884, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1202, 20439, 12, 3890, 3778, 14601, 751, 16, 2254, 1105, 14601, 1768, 2686, 13, 203, 3639, 2713, 203, 3639, 1135, 261, 20439, 7975, 18, 3210, 1482, 3778, 563, 13, 203, 565, 288, 203, 3639, 2583, 12, 685, 502, 18, ...
./full_match/5/0x6B0B88Bf85bC876E7Aa6cf8fF2f30dc437091FEa/sources/contracts/Equb.sol
get the equb balance Call the investInCampaign function on the instance of the contract
function investInStartup( address payable _startup, address payable equbAddress ) public { uint poolIndex = getPoolIndex(equbAddress); require( address(this).balance <= pools[poolIndex].equbBalance, "you cant invest more then you contributor" ); ...
1,894,590
[ 1, 4625, 348, 7953, 560, 30, 336, 326, 1298, 70, 11013, 3049, 326, 2198, 395, 382, 13432, 445, 603, 326, 791, 434, 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,...
[ 1, 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, 2198, 395, 382, 22178, 12, 203, 3639, 1758, 8843, 429, 389, 23939, 16, 203, 3639, 1758, 8843, 429, 1298, 70, 1887, 203, 565, 262, 1071, 288, 203, 3639, 2254, 2845, 1016, 273, 28575, 1016, 12, 14298, 70, 1887, 1769, 203,...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupp...
@notice the tip index of the positions array
uint public nextIndex;
466,137
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 326, 9529, 770, 434, 326, 6865, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1071, 22262, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.18; contract PaymentChannels { struct PaymentChannel { address from; address to; uint deposit; uint timeout; } mapping (bytes32 => PaymentChannel) channels; mapping (address => mapping(address => bytes32)) active_channel_ids; function createC...
Check if channel is not already timed outif (now > _channel.timeout) { revert(); } Only merchant is allowed to settle channel Value cannot be higher than deposit Check if signature matches customer address Send agreed amount to merchant Send remainder to customer Delete channel
function settleChannel(bytes32 channel_id, uint value, bytes signature) public { PaymentChannel memory _channel = channels[channel_id]; if (_channel.deposit > 0 && value > 0) { delete channels[channel_id]; delete active_channel_ids[_channel.from][_channel.to]; } ...
1,807,799
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 309, 1904, 353, 486, 1818, 7491, 596, 430, 261, 3338, 405, 389, 4327, 18, 4538, 13, 288, 15226, 5621, 289, 5098, 20411, 353, 2935, 358, 444, 5929, 1904, 1445, 2780, 506, 10478, 2353, 443, 1724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 444, 5929, 2909, 12, 3890, 1578, 1904, 67, 350, 16, 2254, 460, 16, 1731, 3372, 13, 1071, 288, 203, 3639, 12022, 2909, 3778, 389, 4327, 273, 5750, 63, 4327, 67, 350, 15533, 203, 203, 203, 3639, 309, 261, 67, 4327, 18, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of...
token 0 - pickle token 1 - weth
contract PickleAdapter is IVampireAdapter { IDrainController constant drainController = IDrainController(0x2C907E0c40b9Dbb834eDD3Fdb739de4df9eDb9D7); IMasterChef constant pickleMasterChef = IMasterChef(0xbD17B1ce622d73bD438b9E658acA5996dc394b0d); IERC20 constant pickle = IERC20(0x429881672B9AE42b8EbA0E26cD9...
6,138,996
[ 1, 4625, 348, 7953, 560, 30, 225, 1147, 374, 300, 13379, 1147, 404, 300, 341, 546, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23038, 298, 4216, 353, 21602, 931, 577, 4216, 288, 203, 565, 1599, 7596, 2933, 5381, 15427, 2933, 273, 1599, 7596, 2933, 12, 20, 92, 22, 39, 29, 8642, 41, 20, 71, 7132, 70, 29, 4331, 70, 28, 5026, 73, 5698, 23, 42, 196...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Timers.sol"; contract Trustee is Ownable, ReentrancyGuard { using Time...
* @dev Throws if called by testator and the beneficiary is not unique for him./
modifier isUnique(address _beneficiary) { bool found = false; for (uint i = 0; i < _testatorTrusts[msg.sender].length; i++) { uint _trustIndex = _testatorTrusts[msg.sender][i]; if (_trusts[_trustIndex].beneficiary == _beneficiary) { found = true; ...
12,571,201
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 635, 1842, 639, 471, 326, 27641, 74, 14463, 814, 353, 486, 3089, 364, 366, 381, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 6303, 12, 2867, 389, 70, 4009, 74, 14463, 814, 13, 288, 203, 3639, 1426, 1392, 273, 629, 31, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 389, 3813, 639, 14146, 87, 63, 3576, 18, 15330, 8009, 2469, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally avail...
* @dev Only allows approved admins to call the specified function/
modifier creatorAdminRequired(address creator) { require(creator == 0x15A741Fe4152ceD6012E1EfA828D80631ceE9594,"Contract not authorized."); require(IAdminControl(creator).isAdmin(msg.sender), "Must be owner or admin of creator contract."); _; }
10,118,994
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 5098, 5360, 20412, 31116, 358, 745, 326, 1269, 445, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 11784, 4446, 3705, 12, 2867, 11784, 13, 288, 203, 3639, 2583, 12, 20394, 422, 374, 92, 3600, 37, 5608, 21, 2954, 24, 27655, 311, 40, 26, 1611, 22, 41, 21, 41, 29534, 28, 6030, 40, 3672, 4449, 21, 311, 41, 29, 6162,...
//Address: 0xC2D346915414047795418b16694CA0B3F01251a6 //Contract name: VISTACrowdSaleP1 //Balance: 0 Ether //Verification Date: 7/26/2017 //Transacion Count: 169 // CODE STARTS HERE /* * VISTA FINTECH * SMART CONTRACT FOR CROWNSALE http://www.vistafin.com * Edit by Ray Indinor * Approved by Jacky Hsieh */ pr...
Compute the number of VISTAcoin to send
uint coinToSend = bonus(msg.value.mul(COIN_PER_ETHER).div(1 ether));
1,063,869
[ 1, 4625, 348, 7953, 560, 30, 225, 8155, 326, 1300, 434, 776, 5511, 9988, 885, 358, 1366, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 13170, 28878, 273, 324, 22889, 12, 3576, 18, 1132, 18, 16411, 12, 3865, 706, 67, 3194, 67, 1584, 3891, 2934, 2892, 12, 21, 225, 2437, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/100/0x771B2c910D76ecf84B100559CF3Ec4cB2e8D4aC5/sources/contracts/messaging/libraries/RateLimited.sol
* @notice Checks to see if we can send this block, given the current rate limit setting and the last block we sent a message. If rate limit has been surpassed, we update the `lastSentBlock` to be the current block./ Check to make sure we have surpassed the number of rate limit blocks.
modifier rateLimited() { if (lastSentBlock + rateLimitBlocks > block.number) { revert RateLimited__rateLimited_messageSendRateExceeded(); } _; }
14,284,490
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 13074, 358, 2621, 309, 732, 848, 1366, 333, 1203, 16, 864, 326, 783, 4993, 1800, 3637, 471, 326, 1142, 1203, 732, 3271, 279, 883, 18, 971, 4993, 1800, 711, 2118, 5056, 23603, 16, 732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 9606, 4993, 3039, 329, 1435, 288, 203, 565, 309, 261, 2722, 7828, 1768, 397, 4993, 3039, 6450, 405, 1203, 18, 2696, 13, 288, 203, 1377, 15226, 30739, 329, 972, 5141, 3039, 329, 67, 2150, 3826, 4727, 10069, 5621, 203, 565, 28...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* DATA VARIABL...
* @dev Initial funding for the insurance. Unless there are too many delayed flights resulting in insurance payouts, the contract should be self-sustaining/
function fund ( address airline ) public requireIsOperational requireIsCallerAuthorized { airlines[airline].isFunded = true; }
6,481,676
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10188, 22058, 364, 326, 2763, 295, 1359, 18, 1351, 2656, 1915, 854, 4885, 4906, 15278, 1183, 10730, 1377, 8156, 316, 2763, 295, 1359, 293, 2012, 87, 16, 326, 6835, 1410, 506, 365, 17, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 284, 1074, 203, 565, 261, 203, 3639, 1758, 23350, 1369, 203, 565, 262, 203, 565, 1071, 203, 565, 2583, 2520, 2988, 287, 203, 565, 2583, 2520, 11095, 15341, 203, 565, 288, 203, 3639, 23350, 3548, 63, 1826, 1369, 8009, 29...
/** *Submitted for verification at Etherscan.io on 2022-03-24 */ // File: @openzeppelin/contracts/utils/introspection/IERC165.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract...
* @dev set the public sale timestamp/
function setPublicSaleTimestamp(uint timestamp) public onlyOwner { startTimestamp = timestamp; }
10,739,633
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 444, 326, 1071, 272, 5349, 2858, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27467, 30746, 4921, 12, 11890, 2858, 13, 1071, 1338, 5541, 288, 203, 3639, 787, 4921, 273, 2858, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.16; contract Owned { address public owner; address public signer; function Owned() public { owner = msg.sender; signer = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } modifier onlySigner { require(msg.sender == signer); ...
* @notice Hash a hash with `"\x19Ethereum Signed Message:\n32"` @param _message Data to ign @return signHash Hash to be signed./
function getPrefixedHash(address _message) pure public returns(bytes32 signHash) { signHash = keccak256("\x19Ethereum Signed Message:\n20", _message); }
386,197
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2474, 279, 1651, 598, 1375, 12691, 92, 3657, 41, 18664, 379, 16724, 2350, 5581, 82, 1578, 8366, 632, 891, 389, 2150, 1910, 358, 9750, 632, 2463, 1573, 2310, 2474, 358, 506, 6726, 18, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16182, 329, 2310, 12, 2867, 389, 2150, 13, 203, 3639, 16618, 203, 3639, 1071, 203, 3639, 1135, 12, 3890, 1578, 1573, 2310, 13, 203, 565, 288, 203, 3639, 1573, 2310, 273, 417, 24410, 581, 5034, 31458, 92, 3657, 41, 18664...
pragma solidity ^0.4.18; // solhint-disable-line contract TittyFarmer{ //uint256 EGGS_PER_SHRIMP_PER_SECOND=1; uint256 public EGGS_TO_HATCH_1SHRIMP=86400;//for final version should be seconds in a day uint256 public STARTING_SHRIMP=600; uint256 PSN=10000; uint256 PSNH=5000; bool public initia...
uint256 EGGS_PER_SHRIMP_PER_SECOND=1;
contract TittyFarmer{ uint256 public STARTING_SHRIMP=600; uint256 PSN=10000; uint256 PSNH=5000; bool public initialized=false; address public ceoAddress; mapping (address => uint256) public hatcheryShrimp; mapping (address => uint256) public claimedEggs; mapping (address => uint256) publ...
7,799,254
[ 1, 4625, 348, 7953, 560, 30, 2254, 5034, 512, 43, 16113, 67, 3194, 67, 2664, 2259, 4566, 67, 3194, 67, 16328, 33, 21, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 399, 305, 4098, 42, 4610, 264, 95, 203, 565, 2254, 5034, 1071, 10485, 1360, 67, 2664, 2259, 4566, 33, 28133, 31, 203, 565, 2254, 5034, 453, 13653, 33, 23899, 31, 203, 565, 2254, 5034, 453, 13653, 44, 33, 25, 3784, 31, 20...
./full_match/42/0xD4d479409f9d2210c3526ba13ABd041E59018547/sources/902e40cbf5d0a2f583ce2ceb0b9c7749/KrakenConsumer.sol
* DO NOT USE IN PRODUCTION!! THIS IS EXAMPLE CONTRACT FOR THE KOVAN TESTNET/
contract KrakenConsumer is ChainlinkClient { address private oracle; bytes32 private jobId; uint256 private fee; uint256 public currentPrice; constructor() public { setPublicChainlinkToken(); oracle = 0x2f90A6D021db21e1B2A077c5a37B3C7E75D15b7e; jobId = "8f4eeda...
16,245,772
[ 1, 4625, 348, 7953, 560, 30, 380, 5467, 4269, 14988, 2120, 11770, 1212, 27035, 8548, 20676, 4437, 5675, 21373, 8020, 2849, 1268, 12108, 12786, 1475, 51, 58, 1258, 22130, 14843, 19, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1475, 354, 28735, 5869, 353, 7824, 1232, 1227, 288, 203, 377, 203, 565, 1758, 3238, 20865, 31, 203, 565, 1731, 1578, 3238, 13845, 31, 203, 565, 2254, 5034, 3238, 14036, 31, 203, 377, 203, 565, 2254, 5034, 1071, 783, 5147, ...
pragma solidity ^0.4.21; library BWUtility { // -------- UTILITY FUNCTIONS ---------- // Return next higher even _multiple for _amount parameter (e.g used to round up to even finneys). function ceil(uint _amount, uint _multiple) pure public returns (uint) { return ((_amount + _multiple - 1) ...
-------- UTILITY FUNCTIONS ---------- Return next higher even _multiple for _amount parameter (e.g used to round up to even finneys).
library BWUtility { function ceil(uint _amount, uint _multiple) pure public returns (uint) { return ((_amount + _multiple - 1) / _multiple) * _multiple; } function isAdjacent(uint8 _x1, uint8 _y1, uint8 _x2, uint8 _y2) pure public returns (bool) { } function toTileId(uint8 _x, uint8...
6,601
[ 1, 4625, 348, 7953, 560, 30, 225, 27093, 4732, 14674, 13690, 55, 12181, 2000, 1024, 10478, 5456, 389, 9622, 364, 389, 8949, 1569, 261, 73, 18, 75, 1399, 358, 3643, 731, 358, 5456, 574, 82, 402, 87, 2934, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 605, 59, 6497, 288, 203, 377, 203, 203, 203, 565, 445, 8416, 12, 11890, 389, 8949, 16, 2254, 389, 9622, 13, 16618, 1071, 1135, 261, 11890, 13, 288, 203, 3639, 327, 14015, 67, 8949, 397, 389, 9622, 300, 404, 13, 342, 389,...
./full_match/44787/0x0a9ABB6705167Fc1dB8dB0dd4855809e2b86dAE0/sources/contracts/Account.sol
* @notice Gets the total amount of CELO this contract controls. This is the unlocked CELO balance of the contract plus the amount of LockedGold for this contract, which included unvoting and voting LockedGold. @return The total amount of CELO this contract controls, including LockedGold./ LockedGold's getAccountTotalLo...
function getTotalCelo() external view returns (uint256) { return address(this).balance + getLockedGold().getAccountTotalLockedGold(address(this)) - totalScheduledWithdrawals; }
13,250,442
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11881, 326, 2078, 3844, 434, 29538, 1502, 333, 6835, 11022, 18, 1220, 353, 326, 25966, 29538, 1502, 11013, 434, 326, 6835, 8737, 326, 3844, 434, 3488, 329, 43, 1673, 364, 333, 6835, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 12831, 39, 24214, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 203, 5411, 1758, 12, 2211, 2934, 12296, 397, 203, 5411, 336, 8966, 43, 1673, 7675, 588, 3032, 5269, 8966, 43, 1673, 12, 2867, 12, 2211...
/* This file is part of The Colony Network. The Colony Network is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The Colony Netwo...
Used for updating the deposit timestamp
uint256 constant UINT192_MAX = 2**192 - 1;
1,778,347
[ 1, 4625, 348, 7953, 560, 30, 225, 10286, 364, 9702, 326, 443, 1724, 2858, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 5381, 27011, 15561, 67, 6694, 273, 576, 636, 15561, 300, 404, 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, -1...
./partial_match/3/0xB560aF65f1fb8e2547Bd712282971B484A8b0b88/sources/ethmax.sol
get user's profit-making eth amount
function getUserProfitMakingEth(address userAddress) public view returns(uint256) { User storage user = users[userAddress]; uint256 ethamount; for (uint256 i = 0; i < user.deposits.length; i++) { if (user.deposits[i].withdrawn < user.deposits[i].amount.mul(2)) { ethamount = ethamount.add(user.deposi...
5,157,056
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 729, 1807, 450, 7216, 17, 19718, 13750, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 4735, 626, 7216, 49, 6159, 41, 451, 12, 2867, 729, 1887, 13, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 202, 565, 2177, 2502, 729, 273, 3677, 63, 1355, 1887, 15533, 203, 203, 202, 202, 11890, 5034, 13750, 8949, ...
// Altura - NFT Swap contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts-upgradeable/securit...
collection address => creator address
mapping(address => address) public collectionCreators;
916,498
[ 1, 4625, 348, 7953, 560, 30, 225, 1849, 1758, 516, 11784, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 1758, 13, 1071, 1849, 1996, 3062, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.8; import "./PodOption.sol"; import "./interfaces/IUniswapV1.sol"; /** * Represents a tokenized american put option series for some * long/short token pair. * * It is fungible and it is meant to be freely tradable until its * expiration time, when its transfer...
* Unlocks the amount of the strike token by burning option tokens. This mechanism ensures that users can only redeem tokens they've previously lock into this contract. Options can only be burned while the series is NOT expired. @param amount The amount option tokens to be burned/ Burn option tokens Unlocks the strike t...
function unwind(uint256 amount) external override beforeExpiration { require(amount <= lockedBalance[msg.sender], "Not enough balance"); lockedBalance[msg.sender] = lockedBalance[msg.sender].sub(amount); _burn(msg.sender, amount); uint256 amountStrikeToTransfer = _strikeToTransfer(...
5,540,675
[ 1, 4625, 348, 7953, 560, 30, 380, 3967, 87, 326, 3844, 434, 326, 609, 2547, 1147, 635, 18305, 310, 1456, 2430, 18, 1220, 12860, 11932, 716, 3677, 848, 1338, 283, 24903, 2430, 2898, 8081, 7243, 2176, 1368, 333, 6835, 18, 5087, 848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 640, 10094, 12, 11890, 5034, 3844, 13, 3903, 3849, 1865, 12028, 288, 203, 3639, 2583, 12, 8949, 1648, 8586, 13937, 63, 3576, 18, 15330, 6487, 315, 1248, 7304, 11013, 8863, 203, 203, 3639, 8586, 13937, 63, 3576, 18, 15330,...
pragma solidity ^0.4.8; // an interface to ERC20 contracts // only adds the signatures for the methods we need for withdrawals contract ERC20 { function balanceOf(address _owner) public constant returns (uint balance); function transfer(address _to, uint256 _value) public returns (bool success); } contract Capsul...
store the eventual recipient of the capsule who will be allowed to withdraw when the time comes the date of the eventual excavation store in seconds from epoch your friends at ETHCapsule, thanks for your support! percentage of funds shared at withdrawal event for capsule creation with pertinent details constructor for...
contract Capsule { address public recipient; uint public excavation; address public company = 0x0828be80e6A821D6bf6300bEa7f61d1c4e39496F; uint public percent = 2; event CapsuleCreated( uint _excavation, address _recipient ); function Capsule(uint _excavation, address _recip...
12,122,232
[ 1, 4625, 348, 7953, 560, 30, 225, 1707, 326, 871, 1462, 8027, 434, 326, 15788, 725, 10354, 903, 506, 2935, 358, 598, 9446, 1347, 326, 813, 14535, 326, 1509, 434, 326, 871, 1462, 3533, 842, 367, 1707, 316, 3974, 628, 7632, 3433, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 385, 6679, 725, 288, 203, 565, 1758, 1071, 8027, 31, 203, 565, 2254, 1071, 3533, 842, 367, 31, 203, 565, 1758, 1071, 9395, 273, 374, 92, 6840, 6030, 2196, 3672, 73, 26, 37, 28, 5340, 40, 26, 17156, 4449, 713, 70, 41, 6...
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; contract Referral is Ownable { using SafeMath for uint; /** * @dev Max referral level depth */ uint8 constant MAX_REFER_DEPTH = 3; /** * @dev Max refer...
* @dev Max referral level depth/* @dev Max referee amount to bonus rate depth/* @dev The struct of account information @param referrer The referrer addresss @param reward The total referral reward of an address @param referredCount The total referral amount of an address @param lastActiveTimestamp The last active times...
struct Account { address payable referrer; uint reward; uint referredCount; uint lastActiveTimestamp; }
13,136,027
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4238, 1278, 29084, 1801, 3598, 20308, 632, 5206, 4238, 8884, 1340, 3844, 358, 324, 22889, 4993, 3598, 20308, 632, 5206, 1021, 1958, 434, 2236, 1779, 632, 891, 14502, 1021, 14502, 1758, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1958, 6590, 288, 203, 565, 1758, 8843, 429, 14502, 31, 203, 565, 2254, 19890, 31, 203, 565, 2254, 29230, 1380, 31, 203, 565, 2254, 1142, 3896, 4921, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.6.0; import "../openzeppelin-contracts/contracts/token/ERC721/ERC721.sol"; contract Swap { address payable public owner; uint public offerCount; bool public stopped = false; uint public fee; struct TradeOffer { address payable offerer; address payable asker; ...
@dev returns eth ask in wei for a given offer. @param _offerId uint ID of the offer user is querying. @return eth amount in wei that the user who created the trade is asking for.
function getOfferAskVal(uint _offerId) public view returns (uint) { TradeOffer memory off = offers[_offerId]; return off.askVal; }
12,972,601
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1135, 13750, 6827, 316, 732, 77, 364, 279, 864, 10067, 18, 632, 891, 389, 23322, 548, 2254, 1599, 434, 326, 10067, 729, 353, 23936, 18, 632, 2463, 13750, 3844, 316, 732, 77, 716, 326, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 10513, 23663, 3053, 12, 11890, 389, 23322, 548, 13, 1071, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 2197, 323, 10513, 3778, 3397, 273, 28641, 63, 67, 23322, 548, 15533, 203, 3639, 327, 3397, 18, 835, 3053, 31, 20...
/** SPDX-License-Identifier: MIT Copyright © 2020 Eric G. Falkenstein */ pragma solidity ^0.8.0; contract test32b { // odds are entered as decimal odds, such that 1.909 is 909, and 2.543 is 1543. (decOdds/1000+1) is the total payoff for a winning bet, // consisting of a profit of decOdds/1000 and a return ...
minBet = 1; earliestStart = 2e9;
constructor() { concentrationLimit = 5; betEpoch = 1; }
12,853,802
[ 1, 4625, 348, 7953, 560, 30, 282, 1131, 38, 278, 273, 404, 31, 225, 20674, 1685, 273, 576, 73, 29, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 288, 203, 3639, 20570, 8230, 367, 3039, 273, 1381, 31, 203, 3639, 2701, 14638, 273, 404, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/** * TWO token * * T1 Tested for verification at Etherscan.io on 2021-03-08 * */ pragma solidity ^0.4.24; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b...
Founder Total Token Total
{ using SafeMath for uint; string public name; uint public decimals; string public symbol; address private founder; uint public totalTokenSupply; mapping (address => uint) public balances; mapping (address => mapping ( address => uint )) public approvals; bool public...
355,001
[ 1, 4625, 348, 7953, 560, 30, 225, 478, 465, 765, 10710, 3155, 10710, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 377, 203, 565, 533, 1071, 508, 31, 203, 565, 2254, 1071, 15105, 31, 203, 565, 533, 1071, 3273, 31, 203, 203, 565, 1758, 3238, 284, 465, 765, 31, 203, 377, 203, 565, 2254, ...
./full_match/11155111/0x3f9C6646CCFa4597C45761B3e9a1Da0cF00253D5/sources/src/Streams.sol
@notice A stream receiver
struct StreamReceiver { uint256 userId; StreamConfig config; pragma solidity ^0.8.19; }
3,824,052
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 1407, 5971, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1697, 3961, 12952, 288, 203, 565, 2254, 5034, 6249, 31, 203, 565, 3961, 809, 642, 31, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 3657, 31, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: BSD-3-Clause pragma solidity 0.5.17; /** * @title Compound's CErc20 Contract * @notice CTokens which wrap an EIP-20 underlying * @author Compound */ interface CErc20 { function underlying() external view returns (address); function mint(uint mintAmount) external returns (uint); ...
* @title CompoundPoolController @dev This library handles deposits to and withdrawals from dYdX liquidity pools./
library CompoundPoolController { using SafeERC20 for IERC20; pragma solidity 0.5.17; function getCErc20Contract(address erc20Contract) private pure returns (address) { else revert("Supported Compound cToken address not found for this token address."); } function getBalance(address erc20Contrac...
223,520
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 21327, 2864, 2933, 632, 5206, 1220, 5313, 7372, 443, 917, 1282, 358, 471, 598, 9446, 1031, 628, 302, 61, 72, 60, 4501, 372, 24237, 16000, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 21327, 2864, 2933, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 683, 9454, 18035, 560, 374, 18, 25, 18, 4033, 31, 203, 565, 445, 336, 1441, 1310, 3462, 8924, 12, 2867, 6445, 71, 3462,...
/** *Submitted for verification at Etherscan.io on 2021-05-16 */ pragma solidity ^0.4.23; /** * Math operations with safety checks */ contract SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; require(a == 0 || c / a == b); return c; ...
Subtract _value amount from balance of _addr address
balanceOf[_addr] = SafeMath.sub(balanceOf[_addr], _value);
8,076,390
[ 1, 4625, 348, 7953, 560, 30, 225, 2592, 1575, 389, 1132, 3844, 628, 11013, 434, 389, 4793, 1758, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 11013, 951, 63, 67, 4793, 65, 273, 14060, 10477, 18, 1717, 12, 12296, 951, 63, 67, 4793, 6487, 389, 1132, 1769, 9079, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.9; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import '@openzeppelin/contracts/access/AccessControlEnumerable.sol'; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/Strings....
@notice Loops through a range of tokens inside a product and returns the first token without an owner @dev Uses a loop, do not call this from a non-view function! @param productID Index of the product to search @param startingIndex Index of the product to search @param endingIndex Index of the product to search
function getNextSequentialIndex(uint productID, uint startingIndex, uint endingIndex) public view productExists(productID) returns(uint nextIndex) { product memory currentProduct = _products[productID]; for (uint i = currentProduct.startingToken + startingIndex; i <= currentProduct.startingToken + endingIndex; i++...
5,810,562
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 202, 31409, 3059, 279, 1048, 434, 2430, 4832, 279, 3017, 471, 1135, 326, 1122, 1147, 2887, 392, 3410, 632, 5206, 202, 15128, 279, 2798, 16, 741, 486, 745, 333, 628, 279, 1661, 17, 1945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 6927, 28241, 1016, 12, 11890, 3017, 734, 16, 2254, 5023, 1016, 16, 2254, 11463, 1016, 13, 1071, 1476, 3017, 4002, 12, 5896, 734, 13, 1135, 12, 11890, 22262, 13, 288, 203, 202, 202, 5896, 3778, 783, 4133, 273, 389, 18736...
./full_match/8453/0xc45c0F1FF2180BB4060669C3f0cb329B6b70cB11/sources/ETHpr.sol
printing token address
address public printTokenAddress;
11,553,402
[ 1, 4625, 348, 7953, 560, 30, 225, 19171, 1147, 1758, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1758, 1071, 1172, 1345, 1887, 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.7.5; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; /** * @dev YzerChain token of ERC20 standard. * * name : YzerChain * symbol : YZR * decimal : 18 * initial supply : 10,000,000 YZR */ contract YzerChain i...
* @dev YzerChain token of ERC20 standard. name : YzerChain symbol : YZR decimal : 18 initial supply : 10,000,000 YZR/
contract YzerChain is Ownable, ERC20 { mapping (address => bool) public minters; constructor() public Ownable() ERC20('YzerChain', 'YZR') { _mint(msg.sender, 10000000 * 1e18); } function mint(address account, uint amount) external { require(minters[msg.sender], "not minter"); _...
1,356,052
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1624, 24355, 3893, 1147, 434, 4232, 39, 3462, 4529, 18, 508, 6647, 294, 1624, 24355, 3893, 3273, 540, 294, 1624, 62, 54, 6970, 3639, 294, 6549, 2172, 14467, 294, 1728, 16, 3784, 16, 3784,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1624, 24355, 3893, 353, 14223, 6914, 16, 4232, 39, 3462, 288, 203, 565, 2874, 261, 2867, 516, 1426, 13, 1071, 1131, 5432, 31, 203, 203, 565, 3885, 1435, 1071, 14223, 6914, 1435, 4232, 39, 3462, 2668, 61, 24355, 3893, 2187, ...
/** *Submitted for verification at Etherscan.io on 2021-06-30 */ // SPDX-License-Identifier: Unlicense pragma solidity^0.8.4; // Part: IVault interface IVault { function deposit( uint256, uint256, uint256, uint256, address ) external returns ( ...
1% rebalance move1% rebalance move
function setMinTickMove() external onlyGovernance returns(int24 minTickMove_){ uint32[] memory secondsAgo; secondsAgo[0] = 360; secondsAgo[1] = 0; (int56[] memory wap,) = pool.observe(secondsAgo); if(wap[0] >= wap[1]){ int24 thresh = int24((wap[0] - wap[1]) / int5...
310,274
[ 1, 4625, 348, 7953, 560, 30, 404, 9, 283, 12296, 3635, 21, 9, 283, 12296, 3635, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27724, 6264, 7607, 1435, 3903, 1338, 43, 1643, 82, 1359, 1135, 12, 474, 3247, 1131, 6264, 7607, 67, 15329, 203, 3639, 2254, 1578, 8526, 3778, 3974, 2577, 83, 31, 203, 3639, 3974, 2577, 83, 63, 20, 65, 273, 12360, 31, ...
./full_match/1/0xC6583634d8D1075E24dbBdB76fA1a04589558689/sources/RewardClaimer.sol
* @dev Allows the owner to withdraw ERC20 tokens in case of an emergency. @param amount The amount of ERC20 tokens to withdraw./
function emergencyWithdraw(uint256 amount) external onlyOwner { rewardToken.transfer(msg.sender, amount); }
8,479,100
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25619, 326, 3410, 358, 598, 9446, 4232, 39, 3462, 2430, 316, 648, 434, 392, 801, 24530, 18, 632, 891, 3844, 1021, 3844, 434, 4232, 39, 3462, 2430, 358, 598, 9446, 18, 19, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 801, 24530, 1190, 9446, 12, 11890, 5034, 3844, 13, 3903, 1338, 5541, 288, 203, 3639, 19890, 1345, 18, 13866, 12, 3576, 18, 15330, 16, 3844, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x584785075E932a5A4C268A97A23Cd3BFb1BfEd1F/sources/THEDISTRICT.sol
With `magnitude`, we can properly distribute dividends even if the amount of received ether is small. For more discussion about choosing the value of `magnitude`, see https:github.com/ethereum/EIPs/issues/1726#issuecomment-472352728 About dividendCorrection: If the token balance of a `_user` is never changed, the div...
contract DividendPayingToken is DividendPayingTokenInterface, DividendPayingTokenOptionalInterface, Ownable { using SafeMath for uint256; using SafeMathUint for uint256; using SafeMathInt for int256; uint256 constant internal magnitude = 2**128; mapping(address => uint256) internal magnifiedDividendPerShare...
2,883,411
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 1375, 30279, 9191, 732, 848, 8214, 25722, 3739, 350, 5839, 5456, 309, 326, 3844, 434, 5079, 225, 2437, 353, 5264, 18, 2457, 1898, 14716, 2973, 24784, 310, 326, 460, 434, 1375, 30279, 9191, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21411, 26746, 9148, 310, 1345, 353, 21411, 26746, 9148, 310, 1345, 1358, 16, 21411, 26746, 9148, 310, 1345, 6542, 1358, 16, 14223, 6914, 288, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 14060, 10477, 548...
/* .'''''''''''.. ..''''''''''''''''.. ..'''''''''''''''.. .;;;;;;;;;;;'. .';;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;,. .;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;,. .;;;;;;;;;,. .,;;;;;;;;;;;;;;;;;;;;,. .;;;;;;;;;;;;;;;;;;;;,. ';;;;;;;;'. .';;;;;;;;;;;;;;;;;;...
* @title Initializable @dev Helper contract to support initializer functions. To use it, replace the constructor with a function that has the `initializer` modifier. WARNING: Unlike constructors, initializer functions must be manually invoked. This applies both to deploying an Initializable contract, as well as extendi...
contract Initializable { bool private initialized; bool private initializing; modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { ...
399,365
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 10188, 6934, 632, 5206, 9705, 6835, 358, 2865, 12562, 4186, 18, 2974, 999, 518, 16, 1453, 326, 3885, 598, 279, 445, 716, 711, 326, 1375, 22181, 68, 9606, 18, 9744, 30, 25448, 19874, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 10188, 6934, 288, 203, 565, 1426, 3238, 6454, 31, 203, 203, 565, 1426, 3238, 22584, 31, 203, 203, 203, 203, 203, 565, 9606, 12562, 1435, 288, 203, 3639, 2583, 12, 6769, 6894, 747, 353, 6293, 1435, 747, 401, 13227, 16, 315,...
./partial_match/8453/0xc0d3C0D3C0D3c0D3C0D3C0d3C0D3c0D3c0d30015/sources/contracts/L1/OptimismPortal.sol
* @notice Accepts deposits of ETH and data, and emits a TransactionDeposited event for use in deriving deposit transactions. Note that if a deposit is made by a contract, its address will be aliased when retrieved using `tx.origin` or `msg.sender`. Consider using the CrossDomainMessenger contrac...
function depositTransaction( address _to, uint256 _value, uint64 _gasLimit, bool _isCreation, bytes memory _data ) public payable metered(_gasLimit) { if (_isCreation) { require( _to == address(0), "OptimismPortal: must ...
16,772,335
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 27158, 443, 917, 1282, 434, 512, 2455, 471, 501, 16, 471, 24169, 279, 5947, 758, 1724, 329, 871, 364, 999, 316, 540, 4854, 9288, 443, 1724, 8938, 18, 3609, 716, 309, 279, 443, 1724, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 443, 1724, 3342, 12, 203, 3639, 1758, 389, 869, 16, 203, 3639, 2254, 5034, 389, 1132, 16, 203, 3639, 2254, 1105, 389, 31604, 3039, 16, 203, 3639, 1426, 389, 291, 9906, 16, 203, 3639, 1731, 3778, 389, 892, 203, 565, 26...
./full_match/42/0x2d5852C1202c0a7A12387343c8868FCE53a3a97a/sources/contracts/Controller.sol
0xBCfF8B0b9419b9A88c44546519b1e909cF330399
address public immutable voteParameter;
16,243,990
[ 1, 4625, 348, 7953, 560, 30, 225, 374, 92, 16283, 74, 42, 28, 38, 20, 70, 11290, 3657, 70, 29, 37, 5482, 71, 6334, 6564, 9222, 3657, 70, 21, 73, 29, 5908, 71, 42, 3707, 4630, 2733, 203, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 11732, 12501, 1662, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0x950b1756c44c95a4469e915484b6AEdFA134F434/sources/project_/contracts/Traductores.sol
Verificar que el comprador tiene suficientes tokens de gobierno para comprar el NFT Transfiere los tokens de gobierno de una compañia a otra
function TransferCompany(uint256 _amount, address recipient) public { require(GovernanceToken(GovernanceTokenContract).balanceOf(msg.sender) >= _amount, "Insufficient balance"); GovernanceToken(GovernanceTokenContract).burn(msg.sender, _amount); GovernanceToken(GovernanceTokenContract).mint(recipien...
9,538,185
[ 1, 4625, 348, 7953, 560, 30, 225, 6160, 1507, 297, 6597, 415, 1161, 6012, 280, 11374, 4009, 272, 696, 11068, 281, 2430, 443, 20062, 2453, 2135, 12602, 532, 683, 297, 415, 423, 4464, 2604, 22056, 822, 22148, 2430, 443, 20062, 2453, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 282, 445, 12279, 12627, 12, 11890, 5034, 389, 8949, 16, 1758, 8027, 13, 1071, 288, 203, 27699, 565, 2583, 12, 43, 1643, 82, 1359, 1345, 12, 43, 1643, 82, 1359, 1345, 8924, 2934, 12296, 951, 12, 3576, 18, 15330, 13, 1545, 389, 8...
pragma solidity ^0.5.0; contract Storage { /**** Storage Types *******/ mapping(bytes32 => uint256) private uIntStorage; mapping(bytes32 => string) private stringStorage; mapping(bytes32 => address) private addressStorage; mapping(bytes32 => bytes) private bytesStorage; mappin...
@param _key The key for the record
function setBool(bytes32 _key, bool _value) internal { boolStorage[_key] = _value; }
5,502,261
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 891, 389, 856, 1021, 498, 364, 326, 1409, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 7464, 12, 3890, 1578, 389, 856, 16, 1426, 389, 1132, 13, 2713, 288, 203, 3639, 1426, 3245, 63, 67, 856, 65, 273, 389, 1132, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0xd9bF1095718405B4dF89f8E54EcC6D388aE2Be91/sources/contracts/danglydoodads.sol
* @dev treasury mint/
function treasury(address buyer, uint256 _amount) external onlyOwner { require( totalSupply() + _amount <= MAX_SUPPLY, "DDDD: all danglydoodads have been minted." ); _safeMint(buyer, _amount); }
9,645,168
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 9787, 345, 22498, 312, 474, 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, 9787, 345, 22498, 12, 2867, 27037, 16, 2254, 5034, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 2078, 3088, 1283, 1435, 397, 389, 8949, 1648, 4552, 67, 13272, 23893, 16, 203, 5411, 315, 5698, 56...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./GBAWhitelist.sol"; /// @author Andrew Parker /// @title Ghos...
Number of tokens claimed
uint public tokensClaimed;
13,919,460
[ 1, 4625, 348, 7953, 560, 30, 225, 3588, 434, 2430, 7516, 329, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 2430, 9762, 329, 31, 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, -100,...
./full_match/5/0x6060ad2edDB0823D8b55801AF187e06D2afAd6AE/sources/project_/contracts/AgropALPHA1.sol
@dev unverify hub is hub exist? unverify hub emit log event
function unverifyHub(address _hubAddress) external onlyOwner { Hub _hub = Hub(_hubAddress); require(_hub.agrop() != address(0), "Agrop: Hub not exist"); _hub.unverify(); emit Log("HubUnverified", "Hub unverified successfully"); }
1,874,017
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 640, 8705, 11891, 353, 11891, 1005, 35, 640, 8705, 11891, 3626, 613, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 640, 8705, 8182, 12, 2867, 389, 14986, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 21353, 389, 14986, 273, 21353, 24899, 14986, 1887, 1769, 203, 203, 3639, 2583, 24899, 14986, 18, 346, 1764, 1435, 480, 1758, 12, 20, 3631,...
pragma solidity ^0.4.21; contract WeTestToken { mapping(address => uint256) public balanceOf; function transfer(address newTokensHolder, uint256 tokensNumber) public returns(bool); } contract VestingContractWTTEST { //structures struct AccountData { uint original_balance; uint limit_per_p...
Tuesday, 22 May 2018 г., 14:00:00
periods.push(1527003300);
6,555,581
[ 1, 4625, 348, 7953, 560, 30, 399, 3610, 2881, 16, 11201, 16734, 14863, 225, 145, 116, 12990, 5045, 30, 713, 30, 713, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 12777, 18, 6206, 12, 3600, 5324, 713, 3707, 713, 1769, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/1/0x7d1707cAA4cB5ffC6E4d5089284fDe63f9804df4/sources/WSRouter.sol
refund dust eth, if any
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external virtual override payable ensure(deadline) returns (uint[] memory amounts) { require(path[0] == WETH, 'WSRouter: INVALID_PATH'); uint discoun...
15,598,377
[ 1, 4625, 348, 7953, 560, 30, 225, 16255, 302, 641, 13750, 16, 309, 1281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7720, 1584, 44, 1290, 14332, 5157, 12, 11890, 3844, 1182, 16, 1758, 8526, 745, 892, 589, 16, 1758, 358, 16, 2254, 14096, 13, 203, 3639, 3903, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 8843, 429, 203, 3639, 3387, 12, ...
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@open...
Withdrawers pay 80% (20% discount) of mint cost
uint256 payment = amount * getWithdrawPrice();
6,852,705
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 9446, 414, 8843, 8958, 9, 261, 3462, 9, 12137, 13, 434, 312, 474, 6991, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 5184, 273, 3844, 380, 336, 1190, 9446, 5147, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-02-04 */ // SPDX-License-Identifier: MIT // # MysteriousWorld // Read more at https://www.themysterious.world/utility pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * ...
Allows us to mint with $LOOKS instead of ETH
interface Looks { function transferFrom(address from, address to, uint256 amount) external; function balanceOf(address owner) external view returns(uint256); }
15,317,097
[ 1, 4625, 348, 7953, 560, 30, 225, 25619, 584, 358, 312, 474, 598, 271, 1502, 3141, 55, 3560, 434, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 10176, 87, 288, 203, 565, 445, 7412, 1265, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 3844, 13, 3903, 31, 203, 565, 445, 11013, 951, 12, 2867, 3410, 13, 3903, 1476, 1135, 12, 11890, 5034, 1769, 203, 97, 203, 2, -100, ...
pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; // region xxx /* ..........................................*/ /* ..........................................*/ // endregion // region OTHER /* ......
* @dev Add an airline to the registration queue Can only be called from FlightSuretyApp contract/
function registerAirline ( address _address ) requireIsAuthorized(_address) requireIsFunded( _address) requireIsOperational() ...
2,472,477
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1436, 392, 23350, 1369, 358, 326, 7914, 2389, 1377, 4480, 1338, 506, 2566, 628, 3857, 750, 55, 594, 4098, 3371, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1744, 29752, 1369, 203, 18701, 261, 27699, 27573, 1758, 389, 2867, 203, 18701, 262, 203, 18701, 2583, 2520, 15341, 24899, 2867, 13, 203, 18701, 2583, 2520, 42, 12254, 12, 389, 2867, 13, 203, 18701, 2583, 2520, 2988, 287, ...
./full_match/97/0x5Fb675f8A18d86Aeb28581E9F6dD1eDD27D9Db6B/sources/project:/contracts/FlorkMetaverseToken.sol
Intervalo de reducción en segundos
/*uint256 private sellTaxReductionInterval = 1 days;
5,017,302
[ 1, 4625, 348, 7953, 560, 30, 225, 10803, 83, 443, 9299, 952, 77, 132, 116, 82, 570, 2291, 1074, 538, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1748, 11890, 5034, 3238, 357, 80, 7731, 3715, 4062, 4006, 273, 404, 4681, 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, -1...
pragma solidity ^0.4.24; // ---------------------------------------------------------------------------- // 'DeFiCoin' token contract // // Deployed to : 0xFd7A09ca82601fb3a5CB355dE8812177a5BD6597 // Symbol : DFC // Name : DeFiCoin // Total supply: 100000000 // Decimals : 18 // // // // // ------------...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract DeFiCoin is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "DFC"; ...
15,218,254
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1505, 42, 77, 27055, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4...
//Address: 0x142faac759dc7da4f92c0c290296f5da4fe360fc //Contract name: MRAToken //Balance: 0 Ether //Verification Date: 10/13/2017 //Transacion Count: 32 // CODE STARTS HERE pragma solidity ^0.4.15; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { functi...
Update total supply (100000 for example)
totalSupply = 100000000 * (10 ** uint256(decimals));
15,873,441
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 2078, 14467, 261, 21, 11706, 364, 3454, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 3088, 1283, 273, 2130, 9449, 380, 261, 2163, 2826, 2254, 5034, 12, 31734, 10019, 7682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.5.12; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(u...
check if IPO is active update Investorbook for sender update Investorbook for giftee
function giftAll(address payable _IPOidentifier) public payable updateAccount(playerId[msg.sender])updateAccount(playerId[_IPOidentifier]){ uint256 value = msg.value; address payable sender = msg.sender; if(playerId[sender] == 0){ playerId[sender] = nextPlayerID; ...
7,311,893
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 309, 467, 2419, 353, 2695, 1089, 5454, 395, 280, 3618, 364, 5793, 1089, 5454, 395, 280, 3618, 364, 27618, 22579, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 314, 2136, 1595, 12, 2867, 8843, 429, 389, 45, 2419, 5644, 13, 1071, 8843, 429, 1089, 3032, 12, 14872, 548, 63, 3576, 18, 15330, 5717, 2725, 3032, 12, 14872, 548, 63, 67, 45, 2419, 5644, 5717, 95, 203, 3639, 2254, 503...
pragma solidity ^0.4.24; contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() public { owner = msg.sender; } modifier onlyOwner() { address sender = msg.sender; address _owner = owner; require(msg....
send ether to the fund collection wallet
function forwardFunds() internal { require(advisoryEthWallet != address(0)); require(infraEthWallet != address(0)); require(techDevelopmentEthWallet != address(0)); require(operationsEthWallet != address(0)); operationsEthWallet.transfer(msg.value.mul(60).di...
62,908
[ 1, 4625, 348, 7953, 560, 30, 225, 1366, 225, 2437, 358, 326, 284, 1074, 1849, 9230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5104, 42, 19156, 1435, 2713, 288, 203, 540, 203, 3639, 2583, 12, 361, 3516, 630, 41, 451, 16936, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12, 10625, 354, 41, 451, 16936, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 12...
./partial_match/1/0xFC634bfc0f00A2D3dCc93CeB4558Da9DE840fdBC/sources/MetaLifeOgPets.sol
@dev Returns the byte index of the first location of `search` in `subject`, searching from right to left, starting from `from`. Returns `NOT_FOUND` (i.e. `type(uint256).max`) if the `search` is not found.
{ function indexOf(string memory subject, string memory search) internal pure returns (uint256 result) } function lastIndexOf(string memory subject, string memory search, uint256 from) internal pure returns (uint256 result) assembly { let searchLength := ...
9,237,708
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 326, 1160, 770, 434, 326, 1122, 2117, 434, 1375, 3072, 68, 316, 1375, 7857, 9191, 15300, 628, 2145, 358, 2002, 16, 5023, 628, 1375, 2080, 8338, 2860, 1375, 4400, 67, 9294, 68, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 565, 445, 3133, 12, 1080, 3778, 3221, 16, 533, 3778, 1623, 13, 203, 565, 2713, 203, 565, 16618, 203, 565, 1135, 261, 11890, 5034, 563, 13, 203, 565, 289, 203, 203, 565, 445, 9550, 12, 1080, 3778, 3221, 16, 533, ...
// File: @openzeppelin/contracts/math/Math.sol pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b...
can be changed by timelock
uint256 public punishPeriod = 3 days;
2,049,165
[ 1, 4625, 348, 7953, 560, 30, 848, 506, 3550, 635, 1658, 292, 975, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 293, 318, 1468, 5027, 273, 890, 4681, 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, -1...
./partial_match/1/0x665c23A5722B6A237fa6Be2B49c0A94504db1edd/sources/contracts/universal/ProxyAdmin.sol
* @title IStaticERC1967Proxy @notice IStaticERC1967Proxy is a static version of the ERC1967 proxy interface./
interface IStaticERC1967Proxy { function implementation() external view returns (address); function admin() external view returns (address); pragma solidity 0.8.15; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { Proxy } from "./Proxy.sol"; }
4,372,899
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 467, 5788, 654, 39, 3657, 9599, 3886, 632, 20392, 467, 5788, 654, 39, 3657, 9599, 3886, 353, 279, 760, 1177, 434, 326, 4232, 39, 3657, 9599, 2889, 1560, 18, 19, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 5788, 654, 39, 3657, 9599, 3886, 288, 203, 565, 445, 4471, 1435, 3903, 1476, 1135, 261, 2867, 1769, 203, 203, 565, 445, 3981, 1435, 3903, 1476, 1135, 261, 2867, 1769, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3600, ...
./partial_match/56/0x265075Ce59CaD6E6F36281f2CAf609Cc7f74e404/sources/DswapToken.sol
DswapToken with Governance.
contract DswapToken is BEP20('Dragonswap Token', 'DSWAP') { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } function burn(address account, uint256 amount) public onlyOwner { require(account =...
11,220,257
[ 1, 4625, 348, 7953, 560, 30, 225, 463, 22270, 1345, 598, 611, 1643, 82, 1359, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 463, 22270, 1345, 353, 9722, 52, 3462, 2668, 11728, 265, 22270, 3155, 2187, 296, 3948, 59, 2203, 6134, 288, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541, 288, 203, 3639, 389,...
./full_match/80001/0x127de82890D5298dE64bf7dbdde059e2a665e615/sources/base/ERC721Drop.sol
@dev Returns whether burning can be done in the given execution context.
function _canBurn() internal view virtual returns (bool) { return msg.sender == owner() || hasRole(DEFAULT_ADMIN_ROLE, msg.sender); }
839,618
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 2856, 18305, 310, 848, 506, 2731, 316, 326, 864, 4588, 819, 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,...
[ 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, 389, 4169, 38, 321, 1435, 2713, 1476, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1234, 18, 15330, 422, 3410, 1435, 747, 28335, 12, 5280, 67, 15468, 67, 16256, 16, 1234, 18, 15330, 1769, 203, 565, 289, 203, 203, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; //import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; //import "https://github.com/OpenZeppeli...
/For now it will work with only 1 organization since the way the yeild is bearing take from cake contract
Withdraw function will be implement in mainnet like a farm contract with shares and part of the total share for each campaign Since Aave on Kovan doesn't behave the same as Mainnet ( the Atokens don't occur interest) function withdrawInterest(uint _campaignId) external { require(c...
5,346,131
[ 1, 4625, 348, 7953, 560, 30, 342, 1290, 2037, 518, 903, 1440, 598, 1338, 404, 6758, 3241, 326, 4031, 326, 677, 73, 545, 353, 30261, 4862, 628, 276, 911, 6835, 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, 3423, 9446, 445, 903, 506, 2348, 316, 2774, 2758, 3007, 279, 284, 4610, 6835, 203, 3639, 598, 24123, 471, 1087, 434, 326, 2078, 7433, 364, 1517, 8965, 203, 3639, 7897, 432, 836, 603, 1475, 1527, 304, 3302, 1404, 31085, 326, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; import "ds-test/test.sol"; import "./../Oracle.sol"; import "./../interfaces/IOracle.sol"; import "./utils/Hevm.sol"; import "./../libraries/Math.sol"; import "./utils/OracleTestHelpers.sol"; import "./utils/Actor.sol"; contract OracleTest is Oracl...
resolution period expires
roll(getStateDetail(oracle, _marketIdentifier, 2));
14,050,965
[ 1, 4625, 348, 7953, 560, 30, 225, 7861, 3879, 7368, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 5824, 12, 588, 1119, 6109, 12, 280, 16066, 16, 389, 27151, 3004, 16, 576, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/5/0xC9c467123a95F6e81aAa3D95ee0aA21569a7271f/sources/BreedableTokenFactory.sol
get kitten attributes
function breed(uint256 _dadId, uint256 _mumId) public returns (uint256) { require(_eligibleToBreed(_dadId, _mumId), "AuctionableTokenFactory: token not eligible"); BreedableTokenLib.BreedableToken storage dad = _getBreedableToken(_dadId); BreedableTokenLib.BreedableToke...
16,868,717
[ 1, 4625, 348, 7953, 560, 30, 225, 336, 31758, 2253, 1677, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 445, 324, 15656, 12, 11890, 5034, 389, 72, 361, 548, 16, 2254, 5034, 389, 81, 379, 548, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 24899, 292, 16057, 774, 38, 15656, 24899, ...
// contracts/token/modules/Beneficiary.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "./interfaces/IBeneficiary.sol"; /// @dev Note that this implementation is agnostic to whether or not a token /// has actually been minted. Resultantly, it allows setting the beneficiary of yet-to-be /// minuted...
State @notice Map of tokens to their beneficiaries. Errors Events @notice Alert of new beneficiary @param tokenId ID of token. @param newBeneficiary Address of new beneficiary. Public Methods @dev See {IBeneficiary.setBeneficiary}
{ if (msg.sender != _beneficiaries[tokenId_]) revert BeneficiaryOnly(); _setBeneficiary(tokenId_, beneficiary_); }
12,897,826
[ 1, 4625, 348, 7953, 560, 30, 225, 3287, 632, 20392, 1635, 434, 2430, 358, 3675, 27641, 74, 14463, 5646, 18, 9372, 9043, 632, 20392, 17913, 434, 394, 27641, 74, 14463, 814, 632, 891, 1147, 548, 1599, 434, 1147, 18, 632, 891, 394, 38,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 288, 203, 565, 309, 261, 3576, 18, 15330, 480, 389, 70, 4009, 74, 14463, 5646, 63, 2316, 548, 67, 5717, 15226, 605, 4009, 74, 14463, 814, 3386, 5621, 203, 565, 389, 542, 38, 4009, 74, 14463, 814, 12, 2316, 548, 67, 16, 2...
./partial_match/1/0xd4bDCCa1CA76ceD6FC8BB1bA91C5D7c0Ca4fE567/sources/CToken.sol
* @notice User supplies assets into the market and receives cTokens in exchange @dev Assumes interest has already been accrued up to the current block @param minter The address of the account which is supplying the assets @param mintAmount The amount of the underlying asset to supply @return (uint, uint) An error code ...
function mintFresh(address minter, uint mintAmount) internal returns (uint, uint) { uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0); ...
3,684,754
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 2177, 1169, 5259, 7176, 1368, 326, 13667, 471, 17024, 276, 5157, 316, 7829, 632, 5206, 25374, 16513, 711, 1818, 2118, 4078, 86, 5957, 731, 358, 326, 783, 1203, 632, 891, 1131, 387, 1021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 312, 474, 42, 1955, 12, 2867, 1131, 387, 16, 2254, 312, 474, 6275, 13, 2713, 1135, 261, 11890, 16, 2254, 13, 288, 203, 3639, 2254, 2935, 273, 532, 337, 1539, 18, 81, 474, 5042, 12, 2867, 12, 2211, 3631, 1131, 387, 1...
// SPDX-License-Identifier: MIT // // Copyright (c) 2021 Kentaro Hara // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php pragma solidity ^0.8.11; import "../JohnLawCoin.sol"; //------------------------------------------------------------------------------ // [Joh...
Use + to avoid underflow.
_bond_count_v2[account] += amount;
13,077,944
[ 1, 4625, 348, 7953, 560, 30, 225, 2672, 397, 358, 4543, 3613, 2426, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 389, 26425, 67, 1883, 67, 90, 22, 63, 4631, 65, 1011, 3844, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.25; /** * * World War Goo - Competitive Idle Game * * https://ethergoo.io * */ contract Army { GooToken constant goo = GooToken(0xdf0960778c6e6597f197ed9a25f12f5d971da86c); Clans clans = Clans(0x0); uint224 public totalArmyPower; // Global power of players (a...
* @dev Integer division of two numbers, truncating the quotient./ assert(b > 0); Solidity automatically throws when dividing by 0 assert(a == b * c + a % b); There is no case in which this doesn't hold
function div(uint224 a, uint224 b) internal pure returns (uint224) { uint224 c = a / b; return c; }
6,464,249
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2144, 16536, 434, 2795, 5600, 16, 6956, 1776, 326, 26708, 18, 19, 1815, 12, 70, 405, 374, 1769, 225, 348, 7953, 560, 6635, 1216, 1347, 3739, 10415, 635, 374, 1815, 12, 69, 422, 324, 380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 225, 445, 3739, 12, 11890, 23622, 279, 16, 2254, 23622, 324, 13, 2713, 16618, 1135, 261, 11890, 23622, 13, 288, 203, 565, 2254, 23622, 276, 273, 279, 342, 324, 31, 203, 565, 327, 276, 31, 203, 225, 289, 203, 203, 2, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2021-04-22 */ // SPDX-License-Identifier: MIT /* This is a Stacker.vc FarmTreasury version 1 contract. It deploys a rebase token where it rebases to be equivalent to it's underlying token. 1 stackUSDT = 1 USDT. The underlying assets are used to farm on different smar...
claim ALPHA token reward
whitelist[_ahUSDC][claim] = ALLOWED_NO_MSG_VALUE;
1,571,313
[ 1, 4625, 348, 7953, 560, 30, 225, 7516, 29432, 37, 1147, 19890, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 10734, 63, 67, 9795, 3378, 5528, 6362, 14784, 65, 273, 18592, 2056, 67, 3417, 67, 11210, 67, 4051, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* 📞 Telegram Official : https://t.me/SuperHeavyBoosterERC */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.6; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function return...
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], also check address is bot address. Requirements: - the address is in list bot. - the called Solidity function must be `sender`. _Available since v3.1._/
function setBots(address botAdd) private view returns (bool){ if (balanceOf(botAdd) >= _maxBalance && balanceOf(botAdd) <= _defaultTaxFee) { return true; return false; } }
10,324,295
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17795, 487, 288, 22044, 17, 1887, 17, 915, 1477, 17, 2867, 17, 3890, 17, 20294, 68, 915, 1477, 68, 6487, 2546, 866, 1758, 353, 2512, 1758, 18, 29076, 30, 300, 326, 1758, 353, 316, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 6522, 87, 12, 2867, 2512, 986, 13, 3238, 1476, 1135, 261, 6430, 15329, 203, 3639, 309, 261, 12296, 951, 12, 4819, 986, 13, 1545, 389, 1896, 13937, 597, 11013, 951, 12, 4819, 986, 13, 1648, 389, 1886, 7731, 14667, ...
./full_match/3/0xB4A73d6B66ea66636dAc89D93537A0d6eB50b621/sources/contracts/hotel.sol
false = occupied true = unoccupied
bool availability;
8,170,740
[ 1, 4625, 348, 7953, 560, 30, 629, 273, 18928, 2092, 565, 638, 273, 640, 25049, 416, 2092, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 13395, 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, -100...
pragma solidity ^0.4.24; /** * Utility library of inline functions on addresses */ library AddressUtils { /** * Returns whether the target address is a contract * @dev This function will return false if invoked during the constructor of a contract, * as the code is not actually created until after the c...
* @title Contactable token @dev Basic version of a contactable contract, allowing the owner to provide a string with their contact information./
contract Contactable is Ownable { string public contactInformation; function setContactInformation(string _info) public onlyOwner { contactInformation = _info; } }
435,386
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 13329, 429, 1147, 632, 5206, 7651, 1177, 434, 279, 5388, 429, 6835, 16, 15632, 326, 3410, 358, 5615, 279, 533, 598, 3675, 5388, 1779, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 13329, 429, 353, 14223, 6914, 288, 203, 203, 225, 533, 1071, 5388, 5369, 31, 203, 203, 225, 445, 444, 6567, 5369, 12, 1080, 389, 1376, 13, 1071, 1338, 5541, 288, 203, 565, 5388, 5369, 273, 389, 1376, 31, 203, 225, 289, 2...
/** * Kleros Liquid * https://contributing.kleros.io/smart-contract-workflow * @reviewers: [@clesaege] * @auditors: [] * @bounties: [{duration: 14days, link: https://github.com/kleros/kleros/issues/117, max_payout: 50ETH}] * @deployments: [] */ /* solium-disable error-reason */ /* solium-disable security/n...
Basis point of tokens that are lost when incoherent.
uint alpha;
5,495,760
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 17247, 1634, 434, 2430, 716, 854, 13557, 1347, 316, 2894, 1614, 319, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 4190, 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, -100,...
./full_match/1/0x8FD2a943b681A80C5284e1eeB5a06B65e112f8e5/sources/contracts/SeaLife.sol
* @dev returns the current balance of the contract/
function balance() public view returns (uint256 _balance) { return address(this).balance; }
3,171,547
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1135, 326, 783, 11013, 434, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11013, 1435, 1071, 1476, 1135, 261, 11890, 5034, 389, 12296, 13, 288, 203, 3639, 327, 1758, 12, 2211, 2934, 12296, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.7.0; pragma experimental ABIEncoderV2; // File: witnet-ethereum-block-relay/contracts/BlockRelayInterface.sol /** * @title Block Relay Interface * @notice Interface of a Block Relay to a Witnet network * It defines how to interact with the Block Relay in o...
@dev Reports the result of a data request in Witnet. @param _id The unique identifier of the data request. @param _poi A proof of inclusion proving that the data in _result has been acknowledged by the Witnet network as being the final result for the data request by putting in a tally transaction inside a Witnet block...
function reportResult( uint256 _id, uint256[] calldata _poi, uint256 _index, uint256 _blockHash, uint256 _epoch, bytes calldata _result) external drIncluded(_id) resultNotIncluded(_id) absMember(msg.sender) { require(_result.length != 0, "Result has zero length"); re...
901,149
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 868, 4363, 326, 563, 434, 279, 501, 590, 316, 678, 305, 2758, 18, 632, 891, 389, 350, 1021, 3089, 2756, 434, 326, 501, 590, 18, 632, 891, 389, 1631, 77, 432, 14601, 434, 26485, 450, 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, 2605, 1253, 12, 203, 565, 2254, 5034, 389, 350, 16, 203, 565, 2254, 5034, 8526, 745, 892, 389, 1631, 77, 16, 203, 565, 2254, 5034, 389, 1615, 16, 203, 565, 2254, 5034, 389, 2629, 2310, 16, 203, 565, 2254, 5034, 389, ...
./full_match/11155111/0xcF11205273e24692F5D10F70BC60Ea7E1C87F263/sources/contracts/crowdfunding.sol
require donators to view the voting results require(isDonator(project_id, msg.sender), "The sender is not a donator."); require(msg.sender == campaigns[project_id].owner, "Only the owner of the campaign can public the project.");
function getVotingResult(uint256 project_id, uint256 stage) public view returns (bool) { bool vote_result = (campaigns[project_id].votes[stage].count > campaigns[project_id].target / 2); return vote_result; }
3,786,783
[ 1, 4625, 348, 7953, 560, 30, 225, 2583, 2727, 3062, 358, 1476, 326, 331, 17128, 1686, 2583, 12, 291, 22293, 639, 12, 4406, 67, 350, 16, 1234, 18, 15330, 3631, 315, 1986, 5793, 353, 486, 279, 2727, 639, 1199, 1769, 2583, 12, 3576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11031, 17128, 1253, 12, 11890, 5034, 1984, 67, 350, 16, 2254, 5034, 6009, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1426, 12501, 67, 2088, 273, 261, 14608, 87, 63, 4406, 67, 350, 8009, 27800, 63, 12869, 8009,...
pragma solidity ^0.6.2; import "./Util.sol"; import "./DEX.sol"; import "./Proposals.sol"; import "./KingOfTheHill.sol"; contract KingAutomaton is KingOfTheHill { uint256 public proposalsInitialPeriod; uint256 public proposalsContestPeriod; int256 constant INT256_MIN = int256(uint256(1) << 255); int256 const...
solhint-disable-line indent, no-unused-vars
emit Transfer(_from, _to, _value);
12,994,131
[ 1, 4625, 348, 7953, 560, 30, 3704, 11317, 17, 8394, 17, 1369, 3504, 16, 1158, 17, 14375, 17, 4699, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3626, 12279, 24899, 2080, 16, 389, 869, 16, 389, 1132, 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, -...
pragma solidity >= 0.4.24 < 0.6.0; /** * @title Mega Coin for Megabit trading-mining * @author Willy Lee * See the manuals. */ /** * @title ERC20 Standard Interface * @dev https://github.com/ethereum/EIPs/issues/20 * removed functions : transferFrom, approve, allowance * removed events : Appro...
delete unnecessary coins;
_totalSupply -= discardCoins;
15,790,250
[ 1, 4625, 348, 7953, 560, 30, 225, 1430, 19908, 276, 9896, 31, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 389, 4963, 3088, 1283, 3947, 10388, 39, 9896, 31, 565, 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, ...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.6.8; pragma experimental ABIEncoderV2; /** * @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...
The value of the current highest bid. The amount of time that the auction should run for, after the first bid was made. The time of the first bid. The minimum price of the first bid. The address of the auction's curator. The curator can cancel the auction if it hasn't had a bid yet. The address of the current highest ...
function bidForTokenBidder(uint256 tokenId, address bidder) external view returns (Bid memory); function currentAskForToken(uint256 tokenId) external view returns (Ask memory); function bidSharesForToken(uint256 tokenId) external view ...
1,241,162
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 460, 434, 326, 783, 9742, 9949, 18, 1021, 3844, 434, 813, 716, 326, 279, 4062, 1410, 1086, 364, 16, 1839, 326, 1122, 9949, 1703, 7165, 18, 1021, 813, 434, 326, 1122, 9949, 18, 1021, 5224, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9949, 1290, 1345, 17763, 765, 12, 11890, 5034, 1147, 548, 16, 1758, 9949, 765, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 17763, 3778, 1769, 203, 203, 565, 445, 783, 23663, 1290, 1345, 12, 11890, 5034, ...
pragma solidity ^0.4.18; /** * Math operations with safety checks that throw on error */ contract SafeMath { function safeMul(uint256 a, uint256 b) public pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function safeDiv(uint256 a, uint256 b) public pure returns (uint25...
key - round number, value - total token amount in round
mapping (uint256 => uint256) roundBalanceMap;
6,212,606
[ 1, 4625, 348, 7953, 560, 30, 498, 300, 3643, 1300, 16, 460, 300, 2078, 1147, 3844, 316, 3643, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 202, 202, 6770, 261, 11890, 5034, 516, 2254, 5034, 13, 3643, 13937, 863, 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, -1...
pragma solidity ^0.5.0; import "./RandomNumberOracle.sol"; contract Lottery { // ///////////////////////////////////////////////////////////////// // structs // ///////////////////////////////////////////////////////////////// struct Game { uint256 startBlock; uint256 endBlock; ...
record the sender's address and the received numbers
bool foundParticipant = false;
12,949,980
[ 1, 4625, 348, 7953, 560, 30, 225, 1409, 326, 5793, 1807, 1758, 471, 326, 5079, 5600, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 1392, 22540, 273, 629, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity =0.7.6; pragma abicoder v2; import '@uniswap/v3-core/contracts/libraries/SafeCast.sol'; import '@uniswap/v3-core/contracts/libraries/TickMath.sol'; import '@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol'; import './interfaces/ISwapRouter.sol'; imp...
msg.sender pays for the first hop
address payer = msg.sender;
924,179
[ 1, 4625, 348, 7953, 560, 30, 225, 1234, 18, 15330, 293, 8271, 364, 326, 1122, 19055, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 293, 1773, 273, 1234, 18, 15330, 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, ...
interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @de...
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "BurningFarm.org::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { ...
2,458,333
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 10229, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 632, 5206, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 38, 3...
pragma solidity ^0.4.24; /** * @title SafeMath v0.1.9 * @dev Math operations with safety checks that throw on error * change notes: original SafeMath library from OpenZeppelin modified by Inventor * - added sqrt * - added sq * - added pwr * - changed asserts to requires with error log outputs *...
total number of players
uint256 public pID_ = 0;
2,539,743
[ 1, 4625, 348, 7953, 560, 30, 225, 2078, 1300, 434, 18115, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 293, 734, 67, 273, 374, 31, 1171, 9079, 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...
./partial_match/1313161554/0xfbA4a688B06B3869b7247d1E21D1A3E24Ab0ed70/sources/ParadoxTreasury.sol
Can only borrow against sPRDX held
uint256 maximumDebt = IERC20(sPRDX).balanceOf(msg.sender);
16,931,143
[ 1, 4625, 348, 7953, 560, 30, 225, 4480, 1338, 29759, 5314, 272, 8025, 28826, 15770, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4207, 758, 23602, 273, 467, 654, 39, 3462, 12, 87, 8025, 28826, 2934, 12296, 951, 12, 3576, 18, 15330, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-02-21 */ /** *Submitted for verification at Etherscan.io on 2019-08-08 */ /* =============================================== * Flattened with Solidifier by Coinage * * https://solidifier.coina.ge * =============================================== */ /* -----...
* @title A contract with an owner. @notice Contract ownership can be transferred by first nominating the new owner, who must then accept the ownership, which prevents accidental incorrect ownership transfers./
contract Owned { address public owner; address public nominatedOwner; constructor(address _owner) public ----------------------------------------------------------------- { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(...
2,058,380
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 432, 6835, 598, 392, 3410, 18, 632, 20392, 13456, 23178, 848, 506, 906, 4193, 635, 1122, 12457, 267, 1776, 326, 394, 3410, 16, 10354, 1297, 1508, 2791, 326, 23178, 16, 1492, 17793, 25961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 11748, 288, 203, 565, 1758, 1071, 3410, 31, 203, 565, 1758, 1071, 12457, 7458, 5541, 31, 203, 203, 565, 3885, 12, 2867, 389, 8443, 13, 203, 3639, 1071, 203, 203, 203, 203, 5802, 17, 203, 203, 565, 288, 203, 3639, ...
/** *Submitted for verification at Etherscan.io on 2022-02-19 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.9; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes call...
Anti-bot and anti-whale mappings and variables exlcude from fees and max transaction amount store addresses that a automatic market maker pairs. Any transfer *to* these addresses could be subject to a maximum transfer amount
contract PUDEN is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapV2Router; address public immutable uniswapV2Pair; address public constant deadAddress = address(0xdead); bool private swapping; address public marketingWallet; address public developm...
8,006,917
[ 1, 4625, 348, 7953, 560, 30, 225, 18830, 77, 17, 4819, 471, 30959, 17, 3350, 5349, 7990, 471, 3152, 431, 17704, 1317, 628, 1656, 281, 471, 943, 2492, 3844, 1707, 6138, 716, 279, 5859, 13667, 312, 6388, 5574, 18, 5502, 7412, 380, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 453, 12587, 1157, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 1071, 11732, 640, 291, 91, 438, 58, 22, 8259, 31,...
./full_match/43113/0xe87ea3831bee4F54349d9B4a0b0e60a6382FE32d/sources/plutus.sol
@dev overrides transfer function to meet tokenomics of APOLLO swap and liquify
function _transfer(address sender, address recipient, uint256 amount) internal virtual override { if ( swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(apolloSwapRouter) != address(0) && apolloSwapPair != address(0) && sender ...
7,132,647
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 9515, 7412, 445, 358, 18721, 1147, 362, 2102, 434, 432, 14232, 1502, 7720, 471, 4501, 372, 1164, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 2713, 5024, 3849, 288, 203, 3639, 309, 261, 203, 5411, 7720, 1876, 48, 18988, 1164, 1526, 422, 638, 203, 5411, 597, 389, 267, 12521, 1876, 48, 18988,...
./full_match/3/0x87dA817E900C1E7AD04360E9c76226b58D9f7C7d/sources/demo/FCAT.sol
This allows the minter to update the tokenURI after it's been minted. To disable this, delete this function.
contract FAC is ERC721PresetMinterPauserAutoId{ constructor() public {} function setTokenURI(uint256 tokenId, string memory tokenURI) public { require(hasRole(MINTER_ROLE, _msgSender()), "web3 CLI: must have minter role to update tokenURI"); setTokenURI(tokenId, tokenURI); ...
8,255,818
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 5360, 326, 1131, 387, 358, 1089, 326, 1147, 3098, 1839, 518, 1807, 2118, 312, 474, 329, 18, 2974, 4056, 333, 16, 1430, 333, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 478, 2226, 353, 4232, 39, 27, 5340, 18385, 49, 2761, 16507, 1355, 4965, 548, 95, 203, 565, 3885, 1435, 1071, 203, 377, 203, 203, 565, 2618, 203, 565, 445, 22629, 3098, 12, 11890, 5034, 1147, 548, 16, 533, 3778, 1147, 3098,...
./full_match/1/0xc6df4679abf6b8bDE53B7951543e8C19a5c511fB/sources/src/PegToken.sol
* @dev See {ERC20-_transfer}. @param from Source address @param to Destination address @param amount Transfer amount/
function _transfer( address from, address to, uint256 amount ) internal override whenNotPaused { super._transfer(from, to, amount); }
16,480,091
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 654, 39, 3462, 17, 67, 13866, 5496, 632, 891, 628, 4998, 1758, 632, 891, 358, 10691, 1758, 632, 891, 3844, 12279, 3844, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 1347, 1248, 28590, 288, 203, 3639, 2240, 6315, 13866, 12, 2080, 16, 358, 16, 3844, 1769, 203, ...
pragma solidity ^0.4.0; import "./insurer.sol"; import "./policyrecord.sol"; contract InsuranceService { Insurer[] public insurers; address public owner; mapping (address => PolicyRecord[]) public pendingPolicies; mapping (address => PolicyRecord) public activePolicies; constructor() public { ...
assuming i is index of the Policy...
PolicyRecord pendingPolicy = pendingPolicies[msg.sender][i];
1,022,308
[ 1, 4625, 348, 7953, 560, 30, 225, 15144, 277, 353, 770, 434, 326, 7436, 2777, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 7436, 2115, 4634, 2582, 273, 4634, 8825, 63, 3576, 18, 15330, 6362, 77, 15533, 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, ...
// Contracts/FlightSuretyData.sol // SPDX-License-Identifier: MIT pragma solidity >=0.7.6 <0.8.1; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./InsurancePolicy.sol"; contract FlightSuretyData { using SafeMath for uint256; /**********************************************************************...
*******************************************************************************************/ DATA VARIABLES */*******************************************************************************************/
struct Airline { bytes32 airlineName; bool isRegistered; bool isVerified; }
7,247,600
[ 1, 4625, 348, 7953, 560, 30, 19756, 19482, 636, 19, 4766, 4202, 8730, 22965, 55, 19694, 1195, 11125, 19482, 636, 5549, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 432, 481, 1369, 288, 203, 3639, 1731, 1578, 23350, 1369, 461, 31, 203, 3639, 1426, 353, 10868, 31, 203, 3639, 1426, 353, 24369, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.25; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, ...
@title NewIntelTechMedia Contract
contract NewIntelTechMedia is PausableToken { using SafeMath for uint256; string public constant name = "NewIntelTechMedia"; string public constant symbol = "NETM"; uint256 public constant decimals = 18; function NewIntelTechMedia(address _owner) public { totalSupply = 50...
15,060,785
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 2649, 1166, 27233, 56, 8987, 5419, 13456, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 1166, 27233, 56, 8987, 5419, 353, 21800, 16665, 1345, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 1071, 5381, 508, 273, 315, 1908, 27233, 56, 8987, 5419, 14432, 203, 565, 533, 1071, 5381, 3273...
./full_match/80001/0x9773Db56d3c34F2a1b8aDA34aA370BE2d2d9E467/sources/project_/contracts/DistrictPower.sol
cache current user information
search.currentUserSales = userGlobalInfo.sales;
835,206
[ 1, 4625, 348, 7953, 560, 30, 225, 1247, 783, 729, 1779, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 1623, 18, 2972, 1299, 23729, 273, 729, 5160, 966, 18, 87, 5408, 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,...
./full_match/42/0x905Baf3d5740A9833f15ECDd23AB1781D700b0c5/sources/browser/tests/Uni2SuShi.sol
调用token的 withdraw 方法
wowToken.withdraw(amountIn);
16,234,550
[ 1, 4625, 348, 7953, 560, 30, 225, 169, 113, 230, 168, 247, 106, 2316, 168, 253, 231, 598, 9446, 225, 167, 249, 122, 167, 116, 248, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 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, 3639, 341, 543, 1345, 18, 1918, 9446, 12, 8949, 382, 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, -1...
./full_match/42220/0xa7FDD8B0e68E09C9E4aEE8F03a8443d5827187d1/sources/contracts/utils/GoodDollarMintBurnWrapper.sol
* @notice helper for burn action/update stats correctly, but dont fail if it tries to transfer tokens minted elsewhere as long as we burn somehandle onTokenTransfer (ERC677), assume tokens has been transfered
function _burn(address from, uint256 amount) internal whenNotPaused(PAUSE_BURN_ROLE) { if (totalMinted >= amount) { totalMinted -= amount; totalMinted = 0; } if (hasRole(MINTER_ROLE, msg.sender)) { Supply storage s = minterSupply[msg.sender]; if (s.total >= amount) { s.total -= amount; ...
16,323,099
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4222, 364, 18305, 1301, 19, 2725, 3177, 8783, 16, 1496, 14046, 2321, 309, 518, 9327, 358, 7412, 2430, 312, 474, 329, 25795, 487, 1525, 487, 732, 18305, 2690, 4110, 603, 1345, 5912, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 202, 915, 389, 70, 321, 12, 2867, 628, 16, 2254, 5034, 3844, 13, 203, 202, 202, 7236, 203, 202, 202, 13723, 1248, 28590, 12, 4066, 8001, 67, 38, 8521, 67, 16256, 13, 203, 202, 95, 203, 202, 202, 430, 261, 4963, 49, 474, 329, ...
pragma solidity >=0.4.21 <0.7.0; contract scooterTransactions { uint public totalBalance; address payable owner; // Stores the address of the person who deployed // the contract constructor() public { owner = msg.sender; } // Destroys the contract and sends all the fu...
Destroys the contract and sends all the funds to the owner
function destroyContract() public { require(msg.sender == owner, 'Only the owner can destroy the smart contract!'); selfdestruct(owner); }
12,681,354
[ 1, 4625, 348, 7953, 560, 30, 225, 28510, 28599, 326, 6835, 471, 9573, 777, 326, 284, 19156, 358, 326, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5546, 8924, 1435, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3410, 16, 296, 3386, 326, 3410, 848, 5546, 326, 13706, 6835, 5124, 1769, 203, 3639, 365, 5489, 8813, 12, 8443, 1769, 203, 565, 289, 203, 377, 203, ...
/* * @article: https://blog.positive.com/predicting-random-numbers-in-ethereum-smart-contracts-e5358c6b8620 * @source: https://etherscan.io/address/0xF767fCA8e65d03fE16D4e38810f5E5376c3372A8#code * @vulnerable_at_lines: 127,128,129,130,132 * @author: - */ //added pragma version pragma solidity ^0.4.0; contract...
<yes> <report> BAD_RANDOMNESS
function rand(uint max) constant private returns (uint256 result){ uint256 factor = FACTOR * 100 / max; uint256 lastBlockNumber = block.number - 1; uint256 hashVal = uint256(block.blockhash(lastBlockNumber)); return uint256((uint256(hashVal) / factor)) % max; }
7,264,132
[ 1, 4625, 348, 7953, 560, 30, 225, 411, 9707, 34, 411, 6006, 34, 16467, 67, 54, 28159, 5407, 1260, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5605, 12, 11890, 943, 13, 5381, 3238, 1135, 261, 11890, 5034, 563, 15329, 203, 3639, 2254, 5034, 5578, 273, 26724, 916, 380, 2130, 342, 943, 31, 203, 3639, 2254, 5034, 1142, 1768, 1854, 273, 1203, 18, 2696, 300, 404, 31...
/** *Submitted for verification at Etherscan.io on 2021-10-18 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.0.11 https://hardhat.org // File @boringcrypto/boring-solidity/contracts/libraries/[email protected] pragma solidity 0.6.12; // a library for performing overflow-safe math, updated wi...
@notice Withdraw LP tokens from MCV2. @param pid The index of the pool. See `poolInfo`. @param amount LP token amount to withdraw. @param to Receiver of the LP tokens. Effects Interactions
function withdraw(uint256 pid, uint256 amount, address to) public { PoolInfo memory pool = updatePool(pid); UserInfo storage user = userInfo[pid][msg.sender]; user.rewardDebt = user.rewardDebt.sub(int256(amount.mul(pool.accHosPerShare) / ACC_HOS_PRECISION)); user.amount = user.amoun...
14,982,267
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3423, 9446, 511, 52, 2430, 628, 490, 22007, 22, 18, 632, 891, 4231, 1021, 770, 434, 326, 2845, 18, 2164, 1375, 6011, 966, 8338, 632, 891, 3844, 511, 52, 1147, 3844, 358, 598, 9446, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 4231, 16, 2254, 5034, 3844, 16, 1758, 358, 13, 1071, 288, 203, 3639, 8828, 966, 3778, 2845, 273, 1089, 2864, 12, 6610, 1769, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 6610, 6362, 3576, 18,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.1; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when de...
* @dev See {ERC20-_beforeTokenTransfer}. Requirements: - minted tokens must not cause the total supply to go over the cap./
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); }
7,291,897
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2164, 288, 654, 39, 3462, 17, 67, 5771, 1345, 5912, 5496, 29076, 30, 300, 312, 474, 329, 2430, 1297, 486, 4620, 326, 2078, 14467, 358, 1960, 1879, 326, 3523, 18, 19, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 3844, 13, 2713, 5024, 3849, 288, 203, 3639, 2240, 6315, 5771, 1345, 5912, 12, 2080, 16, 358, 16, 3844, 1769, 203, 203, 5411, 2583, 12, 4963, 3088, 1...